1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for libFS 1.0.10.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libfs/-/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else case e in #(
29  e) case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as 'sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed 'exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144then :
145  emulate sh
146  NULLCMD=:
147  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148  # is contrary to our usage.  Disable this feature.
149  alias -g '\${1+\"\$@\"}'='\"\$@\"'
150  setopt NO_GLOB_SUBST
151else case e in #(
152  e) case \`(set -o) 2>/dev/null\` in #(
153  *posix*) :
154    set -o posix ;; #(
155  *) :
156     ;;
157esac ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else case e in #(
176  e) exitcode=1; echo positional parameters were not saved. ;;
177esac
178fi
179test x\$exitcode = x0 || exit 1
180blah=\$(echo \$(echo blah))
181test x\"\$blah\" = xblah || exit 1
182test -x / || exit 1"
183  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187
188  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192    PATH=/empty FPATH=/empty; export PATH FPATH
193    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
195test \$(( 1 + 1 )) = 2 || exit 1"
196  if (eval "$as_required") 2>/dev/null
197then :
198  as_have_required=yes
199else case e in #(
200  e) as_have_required=no ;;
201esac
202fi
203  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204then :
205
206else case e in #(
207  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208as_found=false
209for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210do
211  IFS=$as_save_IFS
212  case $as_dir in #(((
213    '') as_dir=./ ;;
214    */) ;;
215    *) as_dir=$as_dir/ ;;
216  esac
217  as_found=:
218  case $as_dir in #(
219	 /*)
220	   for as_base in sh bash ksh sh5; do
221	     # Try only shells that exist, to save several forks.
222	     as_shell=$as_dir$as_base
223	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225then :
226  CONFIG_SHELL=$as_shell as_have_required=yes
227		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228then :
229  break 2
230fi
231fi
232	   done;;
233       esac
234  as_found=false
235done
236IFS=$as_save_IFS
237if $as_found
238then :
239
240else case e in #(
241  e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243then :
244  CONFIG_SHELL=$SHELL as_have_required=yes
245fi ;;
246esac
247fi
248
249
250      if test "x$CONFIG_SHELL" != x
251then :
252  export CONFIG_SHELL
253             # We cannot yet assume a decent shell, so we have to provide a
254# neutralization value for shells without unset; and this also
255# works around shells that cannot unset nonexistent variables.
256# Preserve -v and -x to the replacement shell.
257BASH_ENV=/dev/null
258ENV=/dev/null
259(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260case $- in # ((((
261  *v*x* | *x*v* ) as_opts=-vx ;;
262  *v* ) as_opts=-v ;;
263  *x* ) as_opts=-x ;;
264  * ) as_opts= ;;
265esac
266exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267# Admittedly, this is quite paranoid, since all the known shells bail
268# out after a failed 'exec'.
269printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270exit 255
271fi
272
273    if test x$as_have_required = xno
274then :
275  printf "%s\n" "$0: This script requires a shell more modern than all"
276  printf "%s\n" "$0: the shells that I found on your system."
277  if test ${ZSH_VERSION+y} ; then
278    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280  else
281    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
282$0: https://gitlab.freedesktop.org/xorg/lib/libfs/-/issues
283$0: about your system, including any error possibly output
284$0: before this message. Then install a modern shell, or
285$0: manually run the script under such a shell if you do
286$0: have one."
287  fi
288  exit 1
289fi ;;
290esac
291fi
292fi
293SHELL=${CONFIG_SHELL-/bin/sh}
294export SHELL
295# Unset more variables known to interfere with behavior of common tools.
296CLICOLOR_FORCE= GREP_OPTIONS=
297unset CLICOLOR_FORCE GREP_OPTIONS
298
299## --------------------- ##
300## M4sh Shell Functions. ##
301## --------------------- ##
302# as_fn_unset VAR
303# ---------------
304# Portably unset VAR.
305as_fn_unset ()
306{
307  { eval $1=; unset $1;}
308}
309as_unset=as_fn_unset
310
311
312# as_fn_set_status STATUS
313# -----------------------
314# Set $? to STATUS, without forking.
315as_fn_set_status ()
316{
317  return $1
318} # as_fn_set_status
319
320# as_fn_exit STATUS
321# -----------------
322# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
323as_fn_exit ()
324{
325  set +e
326  as_fn_set_status $1
327  exit $1
328} # as_fn_exit
329
330# as_fn_mkdir_p
331# -------------
332# Create "$as_dir" as a directory, including parents if necessary.
333as_fn_mkdir_p ()
334{
335
336  case $as_dir in #(
337  -*) as_dir=./$as_dir;;
338  esac
339  test -d "$as_dir" || eval $as_mkdir_p || {
340    as_dirs=
341    while :; do
342      case $as_dir in #(
343      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344      *) as_qdir=$as_dir;;
345      esac
346      as_dirs="'$as_qdir' $as_dirs"
347      as_dir=`$as_dirname -- "$as_dir" ||
348$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349	 X"$as_dir" : 'X\(//\)[^/]' \| \
350	 X"$as_dir" : 'X\(//\)$' \| \
351	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352printf "%s\n" X"$as_dir" |
353    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354	    s//\1/
355	    q
356	  }
357	  /^X\(\/\/\)[^/].*/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\/\)$/{
362	    s//\1/
363	    q
364	  }
365	  /^X\(\/\).*/{
366	    s//\1/
367	    q
368	  }
369	  s/.*/./; q'`
370      test -d "$as_dir" && break
371    done
372    test -z "$as_dirs" || eval "mkdir $as_dirs"
373  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376} # as_fn_mkdir_p
377
378# as_fn_executable_p FILE
379# -----------------------
380# Test if FILE is an executable regular file.
381as_fn_executable_p ()
382{
383  test -f "$1" && test -x "$1"
384} # as_fn_executable_p
385# as_fn_append VAR VALUE
386# ----------------------
387# Append the text in VALUE to the end of the definition contained in VAR. Take
388# advantage of any shell optimizations that allow amortized linear growth over
389# repeated appends, instead of the typical quadratic growth present in naive
390# implementations.
391if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392then :
393  eval 'as_fn_append ()
394  {
395    eval $1+=\$2
396  }'
397else case e in #(
398  e) as_fn_append ()
399  {
400    eval $1=\$$1\$2
401  } ;;
402esac
403fi # as_fn_append
404
405# as_fn_arith ARG...
406# ------------------
407# Perform arithmetic evaluation on the ARGs, and store the result in the
408# global $as_val. Take advantage of shells that can avoid forks. The arguments
409# must be portable across $(()) and expr.
410if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
411then :
412  eval 'as_fn_arith ()
413  {
414    as_val=$(( $* ))
415  }'
416else case e in #(
417  e) as_fn_arith ()
418  {
419    as_val=`expr "$@" || test $? -eq 1`
420  } ;;
421esac
422fi # as_fn_arith
423
424
425# as_fn_error STATUS ERROR [LINENO LOG_FD]
426# ----------------------------------------
427# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429# script with STATUS, using 1 if that was 0.
430as_fn_error ()
431{
432  as_status=$1; test $as_status -eq 0 && as_status=1
433  if test "$4"; then
434    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
435    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
436  fi
437  printf "%s\n" "$as_me: error: $2" >&2
438  as_fn_exit $as_status
439} # as_fn_error
440
441if expr a : '\(a\)' >/dev/null 2>&1 &&
442   test "X`expr 00001 : '.*\(...\)'`" = X001; then
443  as_expr=expr
444else
445  as_expr=false
446fi
447
448if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
449  as_basename=basename
450else
451  as_basename=false
452fi
453
454if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
455  as_dirname=dirname
456else
457  as_dirname=false
458fi
459
460as_me=`$as_basename -- "$0" ||
461$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462	 X"$0" : 'X\(//\)$' \| \
463	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464printf "%s\n" X/"$0" |
465    sed '/^.*\/\([^/][^/]*\)\/*$/{
466	    s//\1/
467	    q
468	  }
469	  /^X\/\(\/\/\)$/{
470	    s//\1/
471	    q
472	  }
473	  /^X\/\(\/\).*/{
474	    s//\1/
475	    q
476	  }
477	  s/.*/./; q'`
478
479# Avoid depending upon Character Ranges.
480as_cr_letters='abcdefghijklmnopqrstuvwxyz'
481as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482as_cr_Letters=$as_cr_letters$as_cr_LETTERS
483as_cr_digits='0123456789'
484as_cr_alnum=$as_cr_Letters$as_cr_digits
485
486
487  as_lineno_1=$LINENO as_lineno_1a=$LINENO
488  as_lineno_2=$LINENO as_lineno_2a=$LINENO
489  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
491  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
492  sed -n '
493    p
494    /[$]LINENO/=
495  ' <$as_myself |
496    sed '
497      t clear
498      :clear
499      s/[$]LINENO.*/&-/
500      t lineno
501      b
502      :lineno
503      N
504      :loop
505      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506      t loop
507      s/-\n.*//
508    ' >$as_me.lineno &&
509  chmod +x "$as_me.lineno" ||
510    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513  # already done that, so ensure we don't try to do so again and fall
514  # in an infinite loop.  This has already happened in practice.
515  _as_can_reexec=no; export _as_can_reexec
516  # Don't try to exec as it changes $[0], causing all sort of problems
517  # (the dirname of $[0] is not the place where we might find the
518  # original and so on.  Autoconf is especially sensitive to this).
519  . "./$as_me.lineno"
520  # Exit status is that of the last command.
521  exit
522}
523
524
525# Determine whether it's possible to make 'echo' print without a newline.
526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527# for compatibility with existing Makefiles.
528ECHO_C= ECHO_N= ECHO_T=
529case `echo -n x` in #(((((
530-n*)
531  case `echo 'xy\c'` in
532  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
533  xy)  ECHO_C='\c';;
534  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
535       ECHO_T='	';;
536  esac;;
537*)
538  ECHO_N='-n';;
539esac
540
541# For backward compatibility with old third-party macros, we provide
542# the shell variables $as_echo and $as_echo_n.  New code should use
543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544as_echo='printf %s\n'
545as_echo_n='printf %s'
546
547rm -f conf$$ conf$$.exe conf$$.file
548if test -d conf$$.dir; then
549  rm -f conf$$.dir/conf$$.file
550else
551  rm -f conf$$.dir
552  mkdir conf$$.dir 2>/dev/null
553fi
554if (echo >conf$$.file) 2>/dev/null; then
555  if ln -s conf$$.file conf$$ 2>/dev/null; then
556    as_ln_s='ln -s'
557    # ... but there are two gotchas:
558    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
559    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
560    # In both cases, we have to default to 'cp -pR'.
561    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562      as_ln_s='cp -pR'
563  elif ln conf$$.file conf$$ 2>/dev/null; then
564    as_ln_s=ln
565  else
566    as_ln_s='cp -pR'
567  fi
568else
569  as_ln_s='cp -pR'
570fi
571rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572rmdir conf$$.dir 2>/dev/null
573
574if mkdir -p . 2>/dev/null; then
575  as_mkdir_p='mkdir -p "$as_dir"'
576else
577  test -d ./-p && rmdir ./-p
578  as_mkdir_p=false
579fi
580
581as_test_x='test -x'
582as_executable_p=as_fn_executable_p
583
584# Sed expression to map a string onto a valid CPP name.
585as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
586as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
587
588# Sed expression to map a string onto a valid variable name.
589as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
590as_tr_sh="eval sed '$as_sed_sh'" # deprecated
591
592SHELL=${CONFIG_SHELL-/bin/sh}
593
594
595test -n "$DJDIR" || exec 7<&0 </dev/null
596exec 6>&1
597
598# Name of the host.
599# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
600# so uname gets run too.
601ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
602
603#
604# Initializations.
605#
606ac_default_prefix=/usr/local
607ac_clean_files=
608ac_config_libobj_dir=.
609LIBOBJS=
610cross_compiling=no
611subdirs=
612MFLAGS=
613MAKEFLAGS=
614
615# Identity of this package.
616PACKAGE_NAME='libFS'
617PACKAGE_TARNAME='libFS'
618PACKAGE_VERSION='1.0.10'
619PACKAGE_STRING='libFS 1.0.10'
620PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libfs/-/issues'
621PACKAGE_URL=''
622
623ac_unique_file="Makefile.am"
624# Factoring default headers for most tests.
625ac_includes_default="\
626#include <stddef.h>
627#ifdef HAVE_STDIO_H
628# include <stdio.h>
629#endif
630#ifdef HAVE_STDLIB_H
631# include <stdlib.h>
632#endif
633#ifdef HAVE_STRING_H
634# include <string.h>
635#endif
636#ifdef HAVE_INTTYPES_H
637# include <inttypes.h>
638#endif
639#ifdef HAVE_STDINT_H
640# include <stdint.h>
641#endif
642#ifdef HAVE_STRINGS_H
643# include <strings.h>
644#endif
645#ifdef HAVE_SYS_TYPES_H
646# include <sys/types.h>
647#endif
648#ifdef HAVE_SYS_STAT_H
649# include <sys/stat.h>
650#endif
651#ifdef HAVE_UNISTD_H
652# include <unistd.h>
653#endif"
654
655ac_header_c_list=
656ac_subst_vars='am__EXEEXT_FALSE
657am__EXEEXT_TRUE
658LTLIBOBJS
659MAKE_LINT_LIB_FALSE
660MAKE_LINT_LIB_TRUE
661LINTLIB
662LINT_FALSE
663LINT_TRUE
664LINT_FLAGS
665LINT
666LIBOBJS
667FS_LIBS
668FS_CFLAGS
669XTMALLOC_ZERO_CFLAGS
670XMALLOC_ZERO_CFLAGS
671MALLOC_ZERO_CFLAGS
672MAN_SUBSTS
673XORG_MAN_PAGE
674ADMIN_MAN_DIR
675DRIVER_MAN_DIR
676MISC_MAN_DIR
677FILE_MAN_DIR
678LIB_MAN_DIR
679APP_MAN_DIR
680ADMIN_MAN_SUFFIX
681DRIVER_MAN_SUFFIX
682MISC_MAN_SUFFIX
683FILE_MAN_SUFFIX
684LIB_MAN_SUFFIX
685APP_MAN_SUFFIX
686INSTALL_CMD
687PKG_CONFIG_LIBDIR
688PKG_CONFIG_PATH
689PKG_CONFIG
690CHANGELOG_CMD
691STRICT_CFLAGS
692CWARNFLAGS
693BASE_CFLAGS
694LT_SYS_LIBRARY_PATH
695OTOOL64
696OTOOL
697LIPO
698NMEDIT
699DSYMUTIL
700MANIFEST_TOOL
701RANLIB
702ac_ct_AR
703AR
704DLLTOOL
705OBJDUMP
706FILECMD
707LN_S
708NM
709ac_ct_DUMPBIN
710DUMPBIN
711LD
712FGREP
713EGREP
714GREP
715SED
716host_os
717host_vendor
718host_cpu
719host
720build_os
721build_vendor
722build_cpu
723build
724LIBTOOL
725am__fastdepCC_FALSE
726am__fastdepCC_TRUE
727CCDEPMODE
728am__nodep
729AMDEPBACKSLASH
730AMDEP_FALSE
731AMDEP_TRUE
732am__include
733DEPDIR
734OBJEXT
735EXEEXT
736ac_ct_CC
737CPPFLAGS
738LDFLAGS
739CFLAGS
740CC
741am__xargs_n
742am__rm_f_notfound
743AM_BACKSLASH
744AM_DEFAULT_VERBOSITY
745AM_DEFAULT_V
746AM_V
747CSCOPE
748ETAGS
749CTAGS
750am__untar
751am__tar
752AMTAR
753am__leading_dot
754SET_MAKE
755AWK
756mkdir_p
757MKDIR_P
758INSTALL_STRIP_PROGRAM
759STRIP
760install_sh
761MAKEINFO
762AUTOHEADER
763AUTOMAKE
764AUTOCONF
765ACLOCAL
766VERSION
767PACKAGE
768CYGPATH_W
769am__isrc
770INSTALL_DATA
771INSTALL_SCRIPT
772INSTALL_PROGRAM
773target_alias
774host_alias
775build_alias
776LIBS
777ECHO_T
778ECHO_N
779ECHO_C
780DEFS
781mandir
782localedir
783libdir
784psdir
785pdfdir
786dvidir
787htmldir
788infodir
789docdir
790oldincludedir
791includedir
792runstatedir
793localstatedir
794sharedstatedir
795sysconfdir
796datadir
797datarootdir
798libexecdir
799sbindir
800bindir
801program_transform_name
802prefix
803exec_prefix
804PACKAGE_URL
805PACKAGE_BUGREPORT
806PACKAGE_STRING
807PACKAGE_VERSION
808PACKAGE_TARNAME
809PACKAGE_NAME
810PATH_SEPARATOR
811SHELL
812am__quote'
813ac_subst_files=''
814ac_user_opts='
815enable_option_checking
816enable_silent_rules
817enable_dependency_tracking
818enable_shared
819enable_static
820with_pic
821enable_fast_install
822with_aix_soname
823with_gnu_ld
824with_sysroot
825enable_libtool_lock
826enable_selective_werror
827enable_strict_compilation
828enable_malloc0returnsnull
829enable_unix_transport
830enable_tcp_transport
831enable_ipv6
832enable_local_transport
833with_lint
834enable_lint_library
835'
836      ac_precious_vars='build_alias
837host_alias
838target_alias
839CC
840CFLAGS
841LDFLAGS
842LIBS
843CPPFLAGS
844LT_SYS_LIBRARY_PATH
845PKG_CONFIG
846PKG_CONFIG_PATH
847PKG_CONFIG_LIBDIR
848FS_CFLAGS
849FS_LIBS
850LINT
851LINT_FLAGS'
852
853
854# Initialize some variables set by options.
855ac_init_help=
856ac_init_version=false
857ac_unrecognized_opts=
858ac_unrecognized_sep=
859# The variables have the same names as the options, with
860# dashes changed to underlines.
861cache_file=/dev/null
862exec_prefix=NONE
863no_create=
864no_recursion=
865prefix=NONE
866program_prefix=NONE
867program_suffix=NONE
868program_transform_name=s,x,x,
869silent=
870site=
871srcdir=
872verbose=
873x_includes=NONE
874x_libraries=NONE
875
876# Installation directory options.
877# These are left unexpanded so users can "make install exec_prefix=/foo"
878# and all the variables that are supposed to be based on exec_prefix
879# by default will actually change.
880# Use braces instead of parens because sh, perl, etc. also accept them.
881# (The list follows the same order as the GNU Coding Standards.)
882bindir='${exec_prefix}/bin'
883sbindir='${exec_prefix}/sbin'
884libexecdir='${exec_prefix}/libexec'
885datarootdir='${prefix}/share'
886datadir='${datarootdir}'
887sysconfdir='${prefix}/etc'
888sharedstatedir='${prefix}/com'
889localstatedir='${prefix}/var'
890runstatedir='${localstatedir}/run'
891includedir='${prefix}/include'
892oldincludedir='/usr/include'
893docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
894infodir='${datarootdir}/info'
895htmldir='${docdir}'
896dvidir='${docdir}'
897pdfdir='${docdir}'
898psdir='${docdir}'
899libdir='${exec_prefix}/lib'
900localedir='${datarootdir}/locale'
901mandir='${datarootdir}/man'
902
903ac_prev=
904ac_dashdash=
905for ac_option
906do
907  # If the previous option needs an argument, assign it.
908  if test -n "$ac_prev"; then
909    eval $ac_prev=\$ac_option
910    ac_prev=
911    continue
912  fi
913
914  case $ac_option in
915  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
916  *=)   ac_optarg= ;;
917  *)    ac_optarg=yes ;;
918  esac
919
920  case $ac_dashdash$ac_option in
921  --)
922    ac_dashdash=yes ;;
923
924  -bindir | --bindir | --bindi | --bind | --bin | --bi)
925    ac_prev=bindir ;;
926  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
927    bindir=$ac_optarg ;;
928
929  -build | --build | --buil | --bui | --bu)
930    ac_prev=build_alias ;;
931  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
932    build_alias=$ac_optarg ;;
933
934  -cache-file | --cache-file | --cache-fil | --cache-fi \
935  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
936    ac_prev=cache_file ;;
937  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
938  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
939    cache_file=$ac_optarg ;;
940
941  --config-cache | -C)
942    cache_file=config.cache ;;
943
944  -datadir | --datadir | --datadi | --datad)
945    ac_prev=datadir ;;
946  -datadir=* | --datadir=* | --datadi=* | --datad=*)
947    datadir=$ac_optarg ;;
948
949  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
950  | --dataroo | --dataro | --datar)
951    ac_prev=datarootdir ;;
952  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
953  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
954    datarootdir=$ac_optarg ;;
955
956  -disable-* | --disable-*)
957    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
958    # Reject names that are not valid shell variable names.
959    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960      as_fn_error $? "invalid feature name: '$ac_useropt'"
961    ac_useropt_orig=$ac_useropt
962    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
963    case $ac_user_opts in
964      *"
965"enable_$ac_useropt"
966"*) ;;
967      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
968	 ac_unrecognized_sep=', ';;
969    esac
970    eval enable_$ac_useropt=no ;;
971
972  -docdir | --docdir | --docdi | --doc | --do)
973    ac_prev=docdir ;;
974  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
975    docdir=$ac_optarg ;;
976
977  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
978    ac_prev=dvidir ;;
979  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
980    dvidir=$ac_optarg ;;
981
982  -enable-* | --enable-*)
983    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
984    # Reject names that are not valid shell variable names.
985    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986      as_fn_error $? "invalid feature name: '$ac_useropt'"
987    ac_useropt_orig=$ac_useropt
988    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
989    case $ac_user_opts in
990      *"
991"enable_$ac_useropt"
992"*) ;;
993      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
994	 ac_unrecognized_sep=', ';;
995    esac
996    eval enable_$ac_useropt=\$ac_optarg ;;
997
998  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
999  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1000  | --exec | --exe | --ex)
1001    ac_prev=exec_prefix ;;
1002  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1003  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1004  | --exec=* | --exe=* | --ex=*)
1005    exec_prefix=$ac_optarg ;;
1006
1007  -gas | --gas | --ga | --g)
1008    # Obsolete; use --with-gas.
1009    with_gas=yes ;;
1010
1011  -help | --help | --hel | --he | -h)
1012    ac_init_help=long ;;
1013  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1014    ac_init_help=recursive ;;
1015  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1016    ac_init_help=short ;;
1017
1018  -host | --host | --hos | --ho)
1019    ac_prev=host_alias ;;
1020  -host=* | --host=* | --hos=* | --ho=*)
1021    host_alias=$ac_optarg ;;
1022
1023  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1024    ac_prev=htmldir ;;
1025  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1026  | --ht=*)
1027    htmldir=$ac_optarg ;;
1028
1029  -includedir | --includedir | --includedi | --included | --include \
1030  | --includ | --inclu | --incl | --inc)
1031    ac_prev=includedir ;;
1032  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1033  | --includ=* | --inclu=* | --incl=* | --inc=*)
1034    includedir=$ac_optarg ;;
1035
1036  -infodir | --infodir | --infodi | --infod | --info | --inf)
1037    ac_prev=infodir ;;
1038  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1039    infodir=$ac_optarg ;;
1040
1041  -libdir | --libdir | --libdi | --libd)
1042    ac_prev=libdir ;;
1043  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1044    libdir=$ac_optarg ;;
1045
1046  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1047  | --libexe | --libex | --libe)
1048    ac_prev=libexecdir ;;
1049  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1050  | --libexe=* | --libex=* | --libe=*)
1051    libexecdir=$ac_optarg ;;
1052
1053  -localedir | --localedir | --localedi | --localed | --locale)
1054    ac_prev=localedir ;;
1055  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1056    localedir=$ac_optarg ;;
1057
1058  -localstatedir | --localstatedir | --localstatedi | --localstated \
1059  | --localstate | --localstat | --localsta | --localst | --locals)
1060    ac_prev=localstatedir ;;
1061  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1062  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1063    localstatedir=$ac_optarg ;;
1064
1065  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1066    ac_prev=mandir ;;
1067  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1068    mandir=$ac_optarg ;;
1069
1070  -nfp | --nfp | --nf)
1071    # Obsolete; use --without-fp.
1072    with_fp=no ;;
1073
1074  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1075  | --no-cr | --no-c | -n)
1076    no_create=yes ;;
1077
1078  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1079  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1080    no_recursion=yes ;;
1081
1082  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1083  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1084  | --oldin | --oldi | --old | --ol | --o)
1085    ac_prev=oldincludedir ;;
1086  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1087  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1088  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1089    oldincludedir=$ac_optarg ;;
1090
1091  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1092    ac_prev=prefix ;;
1093  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1094    prefix=$ac_optarg ;;
1095
1096  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1097  | --program-pre | --program-pr | --program-p)
1098    ac_prev=program_prefix ;;
1099  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1100  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1101    program_prefix=$ac_optarg ;;
1102
1103  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1104  | --program-suf | --program-su | --program-s)
1105    ac_prev=program_suffix ;;
1106  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1107  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1108    program_suffix=$ac_optarg ;;
1109
1110  -program-transform-name | --program-transform-name \
1111  | --program-transform-nam | --program-transform-na \
1112  | --program-transform-n | --program-transform- \
1113  | --program-transform | --program-transfor \
1114  | --program-transfo | --program-transf \
1115  | --program-trans | --program-tran \
1116  | --progr-tra | --program-tr | --program-t)
1117    ac_prev=program_transform_name ;;
1118  -program-transform-name=* | --program-transform-name=* \
1119  | --program-transform-nam=* | --program-transform-na=* \
1120  | --program-transform-n=* | --program-transform-=* \
1121  | --program-transform=* | --program-transfor=* \
1122  | --program-transfo=* | --program-transf=* \
1123  | --program-trans=* | --program-tran=* \
1124  | --progr-tra=* | --program-tr=* | --program-t=*)
1125    program_transform_name=$ac_optarg ;;
1126
1127  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1128    ac_prev=pdfdir ;;
1129  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1130    pdfdir=$ac_optarg ;;
1131
1132  -psdir | --psdir | --psdi | --psd | --ps)
1133    ac_prev=psdir ;;
1134  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1135    psdir=$ac_optarg ;;
1136
1137  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1138  | -silent | --silent | --silen | --sile | --sil)
1139    silent=yes ;;
1140
1141  -runstatedir | --runstatedir | --runstatedi | --runstated \
1142  | --runstate | --runstat | --runsta | --runst | --runs \
1143  | --run | --ru | --r)
1144    ac_prev=runstatedir ;;
1145  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1146  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1147  | --run=* | --ru=* | --r=*)
1148    runstatedir=$ac_optarg ;;
1149
1150  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1151    ac_prev=sbindir ;;
1152  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1153  | --sbi=* | --sb=*)
1154    sbindir=$ac_optarg ;;
1155
1156  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1157  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1158  | --sharedst | --shareds | --shared | --share | --shar \
1159  | --sha | --sh)
1160    ac_prev=sharedstatedir ;;
1161  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1162  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1163  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1164  | --sha=* | --sh=*)
1165    sharedstatedir=$ac_optarg ;;
1166
1167  -site | --site | --sit)
1168    ac_prev=site ;;
1169  -site=* | --site=* | --sit=*)
1170    site=$ac_optarg ;;
1171
1172  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1173    ac_prev=srcdir ;;
1174  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1175    srcdir=$ac_optarg ;;
1176
1177  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1178  | --syscon | --sysco | --sysc | --sys | --sy)
1179    ac_prev=sysconfdir ;;
1180  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1181  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1182    sysconfdir=$ac_optarg ;;
1183
1184  -target | --target | --targe | --targ | --tar | --ta | --t)
1185    ac_prev=target_alias ;;
1186  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1187    target_alias=$ac_optarg ;;
1188
1189  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190    verbose=yes ;;
1191
1192  -version | --version | --versio | --versi | --vers | -V)
1193    ac_init_version=: ;;
1194
1195  -with-* | --with-*)
1196    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1197    # Reject names that are not valid shell variable names.
1198    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199      as_fn_error $? "invalid package name: '$ac_useropt'"
1200    ac_useropt_orig=$ac_useropt
1201    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1202    case $ac_user_opts in
1203      *"
1204"with_$ac_useropt"
1205"*) ;;
1206      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1207	 ac_unrecognized_sep=', ';;
1208    esac
1209    eval with_$ac_useropt=\$ac_optarg ;;
1210
1211  -without-* | --without-*)
1212    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1213    # Reject names that are not valid shell variable names.
1214    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215      as_fn_error $? "invalid package name: '$ac_useropt'"
1216    ac_useropt_orig=$ac_useropt
1217    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1218    case $ac_user_opts in
1219      *"
1220"with_$ac_useropt"
1221"*) ;;
1222      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1223	 ac_unrecognized_sep=', ';;
1224    esac
1225    eval with_$ac_useropt=no ;;
1226
1227  --x)
1228    # Obsolete; use --with-x.
1229    with_x=yes ;;
1230
1231  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1232  | --x-incl | --x-inc | --x-in | --x-i)
1233    ac_prev=x_includes ;;
1234  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1235  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1236    x_includes=$ac_optarg ;;
1237
1238  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1239  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1240    ac_prev=x_libraries ;;
1241  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1242  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1243    x_libraries=$ac_optarg ;;
1244
1245  -*) as_fn_error $? "unrecognized option: '$ac_option'
1246Try '$0 --help' for more information"
1247    ;;
1248
1249  *=*)
1250    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1251    # Reject names that are not valid shell variable names.
1252    case $ac_envvar in #(
1253      '' | [0-9]* | *[!_$as_cr_alnum]* )
1254      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1255    esac
1256    eval $ac_envvar=\$ac_optarg
1257    export $ac_envvar ;;
1258
1259  *)
1260    # FIXME: should be removed in autoconf 3.0.
1261    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1262    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1264    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1265    ;;
1266
1267  esac
1268done
1269
1270if test -n "$ac_prev"; then
1271  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1272  as_fn_error $? "missing argument to $ac_option"
1273fi
1274
1275if test -n "$ac_unrecognized_opts"; then
1276  case $enable_option_checking in
1277    no) ;;
1278    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1279    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1280  esac
1281fi
1282
1283# Check all directory arguments for consistency.
1284for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1285		datadir sysconfdir sharedstatedir localstatedir includedir \
1286		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1287		libdir localedir mandir runstatedir
1288do
1289  eval ac_val=\$$ac_var
1290  # Remove trailing slashes.
1291  case $ac_val in
1292    */ )
1293      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1294      eval $ac_var=\$ac_val;;
1295  esac
1296  # Be sure to have absolute directory names.
1297  case $ac_val in
1298    [\\/$]* | ?:[\\/]* )  continue;;
1299    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1300  esac
1301  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1302done
1303
1304# There might be people who depend on the old broken behavior: '$host'
1305# used to hold the argument of --host etc.
1306# FIXME: To remove some day.
1307build=$build_alias
1308host=$host_alias
1309target=$target_alias
1310
1311# FIXME: To remove some day.
1312if test "x$host_alias" != x; then
1313  if test "x$build_alias" = x; then
1314    cross_compiling=maybe
1315  elif test "x$build_alias" != "x$host_alias"; then
1316    cross_compiling=yes
1317  fi
1318fi
1319
1320ac_tool_prefix=
1321test -n "$host_alias" && ac_tool_prefix=$host_alias-
1322
1323test "$silent" = yes && exec 6>/dev/null
1324
1325
1326ac_pwd=`pwd` && test -n "$ac_pwd" &&
1327ac_ls_di=`ls -di .` &&
1328ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1329  as_fn_error $? "working directory cannot be determined"
1330test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1331  as_fn_error $? "pwd does not report name of working directory"
1332
1333
1334# Find the source files, if location was not specified.
1335if test -z "$srcdir"; then
1336  ac_srcdir_defaulted=yes
1337  # Try the directory containing this script, then the parent directory.
1338  ac_confdir=`$as_dirname -- "$as_myself" ||
1339$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340	 X"$as_myself" : 'X\(//\)[^/]' \| \
1341	 X"$as_myself" : 'X\(//\)$' \| \
1342	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1343printf "%s\n" X"$as_myself" |
1344    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345	    s//\1/
1346	    q
1347	  }
1348	  /^X\(\/\/\)[^/].*/{
1349	    s//\1/
1350	    q
1351	  }
1352	  /^X\(\/\/\)$/{
1353	    s//\1/
1354	    q
1355	  }
1356	  /^X\(\/\).*/{
1357	    s//\1/
1358	    q
1359	  }
1360	  s/.*/./; q'`
1361  srcdir=$ac_confdir
1362  if test ! -r "$srcdir/$ac_unique_file"; then
1363    srcdir=..
1364  fi
1365else
1366  ac_srcdir_defaulted=no
1367fi
1368if test ! -r "$srcdir/$ac_unique_file"; then
1369  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1371fi
1372ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1373ac_abs_confdir=`(
1374	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1375	pwd)`
1376# When building in place, set srcdir=.
1377if test "$ac_abs_confdir" = "$ac_pwd"; then
1378  srcdir=.
1379fi
1380# Remove unnecessary trailing slashes from srcdir.
1381# Double slashes in file names in object file debugging info
1382# mess up M-x gdb in Emacs.
1383case $srcdir in
1384*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1385esac
1386for ac_var in $ac_precious_vars; do
1387  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1388  eval ac_env_${ac_var}_value=\$${ac_var}
1389  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1390  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1391done
1392
1393#
1394# Report the --help message.
1395#
1396if test "$ac_init_help" = "long"; then
1397  # Omit some internal or obsolete options to make the list less imposing.
1398  # This message is too long to be a string in the A/UX 3.1 sh.
1399  cat <<_ACEOF
1400'configure' configures libFS 1.0.10 to adapt to many kinds of systems.
1401
1402Usage: $0 [OPTION]... [VAR=VALUE]...
1403
1404To assign environment variables (e.g., CC, CFLAGS...), specify them as
1405VAR=VALUE.  See below for descriptions of some of the useful variables.
1406
1407Defaults for the options are specified in brackets.
1408
1409Configuration:
1410  -h, --help              display this help and exit
1411      --help=short        display options specific to this package
1412      --help=recursive    display the short help of all the included packages
1413  -V, --version           display version information and exit
1414  -q, --quiet, --silent   do not print 'checking ...' messages
1415      --cache-file=FILE   cache test results in FILE [disabled]
1416  -C, --config-cache      alias for '--cache-file=config.cache'
1417  -n, --no-create         do not create output files
1418      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1419
1420Installation directories:
1421  --prefix=PREFIX         install architecture-independent files in PREFIX
1422                          [$ac_default_prefix]
1423  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1424                          [PREFIX]
1425
1426By default, 'make install' will install all the files in
1427'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1428an installation prefix other than '$ac_default_prefix' using '--prefix',
1429for instance '--prefix=\$HOME'.
1430
1431For better control, use the options below.
1432
1433Fine tuning of the installation directories:
1434  --bindir=DIR            user executables [EPREFIX/bin]
1435  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1436  --libexecdir=DIR        program executables [EPREFIX/libexec]
1437  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1438  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1439  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1440  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1441  --libdir=DIR            object code libraries [EPREFIX/lib]
1442  --includedir=DIR        C header files [PREFIX/include]
1443  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1444  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1445  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1446  --infodir=DIR           info documentation [DATAROOTDIR/info]
1447  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1448  --mandir=DIR            man documentation [DATAROOTDIR/man]
1449  --docdir=DIR            documentation root [DATAROOTDIR/doc/libFS]
1450  --htmldir=DIR           html documentation [DOCDIR]
1451  --dvidir=DIR            dvi documentation [DOCDIR]
1452  --pdfdir=DIR            pdf documentation [DOCDIR]
1453  --psdir=DIR             ps documentation [DOCDIR]
1454_ACEOF
1455
1456  cat <<\_ACEOF
1457
1458Program names:
1459  --program-prefix=PREFIX            prepend PREFIX to installed program names
1460  --program-suffix=SUFFIX            append SUFFIX to installed program names
1461  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1462
1463System types:
1464  --build=BUILD     configure for building on BUILD [guessed]
1465  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1466_ACEOF
1467fi
1468
1469if test -n "$ac_init_help"; then
1470  case $ac_init_help in
1471     short | recursive ) echo "Configuration of libFS 1.0.10:";;
1472   esac
1473  cat <<\_ACEOF
1474
1475Optional Features:
1476  --disable-option-checking  ignore unrecognized --enable/--with options
1477  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1478  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1479  --enable-silent-rules   less verbose build output (undo: "make V=1")
1480  --disable-silent-rules  verbose build output (undo: "make V=0")
1481  --enable-dependency-tracking
1482                          do not reject slow dependency extractors
1483  --disable-dependency-tracking
1484                          speeds up one-time build
1485  --enable-shared[=PKGS]  build shared libraries [default=yes]
1486  --enable-static[=PKGS]  build static libraries [default=yes]
1487  --enable-fast-install[=PKGS]
1488                          optimize for fast installation [default=yes]
1489  --disable-libtool-lock  avoid locking (might break parallel builds)
1490  --disable-selective-werror
1491                          Turn off selective compiler errors. (default:
1492                          enabled)
1493  --enable-strict-compilation
1494                          Enable all warnings from compiler and make them
1495                          errors (default: disabled)
1496  --enable-malloc0returnsnull
1497                          malloc(0) returns NULL (default: auto)
1498  --enable-unix-transport Enable UNIX domain socket transport
1499  --enable-tcp-transport  Enable TCP socket transport
1500  --enable-ipv6           Enable IPv6 support
1501  --enable-local-transport
1502                          Enable os-specific local transport
1503  --enable-lint-library   Create lint library (default: disabled)
1504
1505Optional Packages:
1506  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1507  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1508  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1509                          both]
1510  --with-aix-soname=aix|svr4|both
1511                          shared library versioning (aka "SONAME") variant to
1512                          provide on AIX, [default=aix].
1513  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1514  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1515                          compiler's sysroot if not specified).
1516  --with-lint             Use a lint-style source code checker (default:
1517                          disabled)
1518
1519Some influential environment variables:
1520  CC          C compiler command
1521  CFLAGS      C compiler flags
1522  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1523              nonstandard directory <lib dir>
1524  LIBS        libraries to pass to the linker, e.g. -l<library>
1525  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1526              you have headers in a nonstandard directory <include dir>
1527  LT_SYS_LIBRARY_PATH
1528              User-defined run-time library search path.
1529  PKG_CONFIG  path to pkg-config utility
1530  PKG_CONFIG_PATH
1531              directories to add to pkg-config's search path
1532  PKG_CONFIG_LIBDIR
1533              path overriding pkg-config's built-in search path
1534  FS_CFLAGS   C compiler flags for FS, overriding pkg-config
1535  FS_LIBS     linker flags for FS, overriding pkg-config
1536  LINT        Path to a lint-style command
1537  LINT_FLAGS  Flags for the lint-style command
1538
1539Use these variables to override the choices made by 'configure' or to help
1540it to find libraries and programs with nonstandard names/locations.
1541
1542Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libfs/-/issues>.
1543_ACEOF
1544ac_status=$?
1545fi
1546
1547if test "$ac_init_help" = "recursive"; then
1548  # If there are subdirs, report their specific --help.
1549  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1550    test -d "$ac_dir" ||
1551      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1552      continue
1553    ac_builddir=.
1554
1555case "$ac_dir" in
1556.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557*)
1558  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1559  # A ".." for each directory in $ac_dir_suffix.
1560  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1561  case $ac_top_builddir_sub in
1562  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1564  esac ;;
1565esac
1566ac_abs_top_builddir=$ac_pwd
1567ac_abs_builddir=$ac_pwd$ac_dir_suffix
1568# for backward compatibility:
1569ac_top_builddir=$ac_top_build_prefix
1570
1571case $srcdir in
1572  .)  # We are building in place.
1573    ac_srcdir=.
1574    ac_top_srcdir=$ac_top_builddir_sub
1575    ac_abs_top_srcdir=$ac_pwd ;;
1576  [\\/]* | ?:[\\/]* )  # Absolute name.
1577    ac_srcdir=$srcdir$ac_dir_suffix;
1578    ac_top_srcdir=$srcdir
1579    ac_abs_top_srcdir=$srcdir ;;
1580  *) # Relative name.
1581    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1582    ac_top_srcdir=$ac_top_build_prefix$srcdir
1583    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1584esac
1585ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1586
1587    cd "$ac_dir" || { ac_status=$?; continue; }
1588    # Check for configure.gnu first; this name is used for a wrapper for
1589    # Metaconfig's "Configure" on case-insensitive file systems.
1590    if test -f "$ac_srcdir/configure.gnu"; then
1591      echo &&
1592      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1593    elif test -f "$ac_srcdir/configure"; then
1594      echo &&
1595      $SHELL "$ac_srcdir/configure" --help=recursive
1596    else
1597      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1598    fi || ac_status=$?
1599    cd "$ac_pwd" || { ac_status=$?; break; }
1600  done
1601fi
1602
1603test -n "$ac_init_help" && exit $ac_status
1604if $ac_init_version; then
1605  cat <<\_ACEOF
1606libFS configure 1.0.10
1607generated by GNU Autoconf 2.72
1608
1609Copyright (C) 2023 Free Software Foundation, Inc.
1610This configure script is free software; the Free Software Foundation
1611gives unlimited permission to copy, distribute and modify it.
1612_ACEOF
1613  exit
1614fi
1615
1616## ------------------------ ##
1617## Autoconf initialization. ##
1618## ------------------------ ##
1619
1620# ac_fn_c_try_compile LINENO
1621# --------------------------
1622# Try to compile conftest.$ac_ext, and return whether this succeeded.
1623ac_fn_c_try_compile ()
1624{
1625  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626  rm -f conftest.$ac_objext conftest.beam
1627  if { { ac_try="$ac_compile"
1628case "(($ac_try" in
1629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630  *) ac_try_echo=$ac_try;;
1631esac
1632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633printf "%s\n" "$ac_try_echo"; } >&5
1634  (eval "$ac_compile") 2>conftest.err
1635  ac_status=$?
1636  if test -s conftest.err; then
1637    grep -v '^ *+' conftest.err >conftest.er1
1638    cat conftest.er1 >&5
1639    mv -f conftest.er1 conftest.err
1640  fi
1641  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642  test $ac_status = 0; } && {
1643	 test -z "$ac_c_werror_flag" ||
1644	 test ! -s conftest.err
1645       } && test -s conftest.$ac_objext
1646then :
1647  ac_retval=0
1648else case e in #(
1649  e) printf "%s\n" "$as_me: failed program was:" >&5
1650sed 's/^/| /' conftest.$ac_ext >&5
1651
1652	ac_retval=1 ;;
1653esac
1654fi
1655  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656  as_fn_set_status $ac_retval
1657
1658} # ac_fn_c_try_compile
1659
1660# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1661# -------------------------------------------------------
1662# Tests whether HEADER exists and can be compiled using the include files in
1663# INCLUDES, setting the cache variable VAR accordingly.
1664ac_fn_c_check_header_compile ()
1665{
1666  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1668printf %s "checking for $2... " >&6; }
1669if eval test \${$3+y}
1670then :
1671  printf %s "(cached) " >&6
1672else case e in #(
1673  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674/* end confdefs.h.  */
1675$4
1676#include <$2>
1677_ACEOF
1678if ac_fn_c_try_compile "$LINENO"
1679then :
1680  eval "$3=yes"
1681else case e in #(
1682  e) eval "$3=no" ;;
1683esac
1684fi
1685rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1686esac
1687fi
1688eval ac_res=\$$3
1689	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1690printf "%s\n" "$ac_res" >&6; }
1691  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692
1693} # ac_fn_c_check_header_compile
1694
1695# ac_fn_c_try_link LINENO
1696# -----------------------
1697# Try to link conftest.$ac_ext, and return whether this succeeded.
1698ac_fn_c_try_link ()
1699{
1700  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1702  if { { ac_try="$ac_link"
1703case "(($ac_try" in
1704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705  *) ac_try_echo=$ac_try;;
1706esac
1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708printf "%s\n" "$ac_try_echo"; } >&5
1709  (eval "$ac_link") 2>conftest.err
1710  ac_status=$?
1711  if test -s conftest.err; then
1712    grep -v '^ *+' conftest.err >conftest.er1
1713    cat conftest.er1 >&5
1714    mv -f conftest.er1 conftest.err
1715  fi
1716  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717  test $ac_status = 0; } && {
1718	 test -z "$ac_c_werror_flag" ||
1719	 test ! -s conftest.err
1720       } && test -s conftest$ac_exeext && {
1721	 test "$cross_compiling" = yes ||
1722	 test -x conftest$ac_exeext
1723       }
1724then :
1725  ac_retval=0
1726else case e in #(
1727  e) printf "%s\n" "$as_me: failed program was:" >&5
1728sed 's/^/| /' conftest.$ac_ext >&5
1729
1730	ac_retval=1 ;;
1731esac
1732fi
1733  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1734  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1735  # interfere with the next link command; also delete a directory that is
1736  # left behind by Apple's compiler.  We do this before executing the actions.
1737  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1738  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739  as_fn_set_status $ac_retval
1740
1741} # ac_fn_c_try_link
1742
1743# ac_fn_c_check_func LINENO FUNC VAR
1744# ----------------------------------
1745# Tests whether FUNC exists, setting the cache variable VAR accordingly
1746ac_fn_c_check_func ()
1747{
1748  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750printf %s "checking for $2... " >&6; }
1751if eval test \${$3+y}
1752then :
1753  printf %s "(cached) " >&6
1754else case e in #(
1755  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756/* end confdefs.h.  */
1757/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1758   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1759#define $2 innocuous_$2
1760
1761/* System header to define __stub macros and hopefully few prototypes,
1762   which can conflict with char $2 (void); below.  */
1763
1764#include <limits.h>
1765#undef $2
1766
1767/* Override any GCC internal prototype to avoid an error.
1768   Use char because int might match the return type of a GCC
1769   builtin and then its argument prototype would still apply.  */
1770#ifdef __cplusplus
1771extern "C"
1772#endif
1773char $2 (void);
1774/* The GNU C library defines this for functions which it implements
1775    to always fail with ENOSYS.  Some functions are actually named
1776    something starting with __ and the normal name is an alias.  */
1777#if defined __stub_$2 || defined __stub___$2
1778choke me
1779#endif
1780
1781int
1782main (void)
1783{
1784return $2 ();
1785  ;
1786  return 0;
1787}
1788_ACEOF
1789if ac_fn_c_try_link "$LINENO"
1790then :
1791  eval "$3=yes"
1792else case e in #(
1793  e) eval "$3=no" ;;
1794esac
1795fi
1796rm -f core conftest.err conftest.$ac_objext conftest.beam \
1797    conftest$ac_exeext conftest.$ac_ext ;;
1798esac
1799fi
1800eval ac_res=\$$3
1801	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802printf "%s\n" "$ac_res" >&6; }
1803  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804
1805} # ac_fn_c_check_func
1806
1807# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1808# ------------------------------------------------------------------
1809# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1810# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1811ac_fn_check_decl ()
1812{
1813  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814  as_decl_name=`echo $2|sed 's/ *(.*//'`
1815  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1816printf %s "checking whether $as_decl_name is declared... " >&6; }
1817if eval test \${$3+y}
1818then :
1819  printf %s "(cached) " >&6
1820else case e in #(
1821  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1822  eval ac_save_FLAGS=\$$6
1823  as_fn_append $6 " $5"
1824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825/* end confdefs.h.  */
1826$4
1827int
1828main (void)
1829{
1830#ifndef $as_decl_name
1831#ifdef __cplusplus
1832  (void) $as_decl_use;
1833#else
1834  (void) $as_decl_name;
1835#endif
1836#endif
1837
1838  ;
1839  return 0;
1840}
1841_ACEOF
1842if ac_fn_c_try_compile "$LINENO"
1843then :
1844  eval "$3=yes"
1845else case e in #(
1846  e) eval "$3=no" ;;
1847esac
1848fi
1849rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1850  eval $6=\$ac_save_FLAGS
1851 ;;
1852esac
1853fi
1854eval ac_res=\$$3
1855	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856printf "%s\n" "$ac_res" >&6; }
1857  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858
1859} # ac_fn_check_decl
1860
1861# ac_fn_c_try_run LINENO
1862# ----------------------
1863# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1864# executables *can* be run.
1865ac_fn_c_try_run ()
1866{
1867  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868  if { { ac_try="$ac_link"
1869case "(($ac_try" in
1870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871  *) ac_try_echo=$ac_try;;
1872esac
1873eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874printf "%s\n" "$ac_try_echo"; } >&5
1875  (eval "$ac_link") 2>&5
1876  ac_status=$?
1877  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1879  { { case "(($ac_try" in
1880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881  *) ac_try_echo=$ac_try;;
1882esac
1883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884printf "%s\n" "$ac_try_echo"; } >&5
1885  (eval "$ac_try") 2>&5
1886  ac_status=$?
1887  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888  test $ac_status = 0; }; }
1889then :
1890  ac_retval=0
1891else case e in #(
1892  e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1893       printf "%s\n" "$as_me: failed program was:" >&5
1894sed 's/^/| /' conftest.$ac_ext >&5
1895
1896       ac_retval=$ac_status ;;
1897esac
1898fi
1899  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1900  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901  as_fn_set_status $ac_retval
1902
1903} # ac_fn_c_try_run
1904
1905# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1906# ----------------------------------------------------
1907# Tries to find if the field MEMBER exists in type AGGR, after including
1908# INCLUDES, setting cache variable VAR accordingly.
1909ac_fn_c_check_member ()
1910{
1911  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1913printf %s "checking for $2.$3... " >&6; }
1914if eval test \${$4+y}
1915then :
1916  printf %s "(cached) " >&6
1917else case e in #(
1918  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919/* end confdefs.h.  */
1920$5
1921int
1922main (void)
1923{
1924static $2 ac_aggr;
1925if (ac_aggr.$3)
1926return 0;
1927  ;
1928  return 0;
1929}
1930_ACEOF
1931if ac_fn_c_try_compile "$LINENO"
1932then :
1933  eval "$4=yes"
1934else case e in #(
1935  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936/* end confdefs.h.  */
1937$5
1938int
1939main (void)
1940{
1941static $2 ac_aggr;
1942if (sizeof ac_aggr.$3)
1943return 0;
1944  ;
1945  return 0;
1946}
1947_ACEOF
1948if ac_fn_c_try_compile "$LINENO"
1949then :
1950  eval "$4=yes"
1951else case e in #(
1952  e) eval "$4=no" ;;
1953esac
1954fi
1955rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1956esac
1957fi
1958rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1959esac
1960fi
1961eval ac_res=\$$4
1962	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963printf "%s\n" "$ac_res" >&6; }
1964  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965
1966} # ac_fn_c_check_member
1967
1968# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1969# -------------------------------------------
1970# Tests whether TYPE exists after having included INCLUDES, setting cache
1971# variable VAR accordingly.
1972ac_fn_c_check_type ()
1973{
1974  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976printf %s "checking for $2... " >&6; }
1977if eval test \${$3+y}
1978then :
1979  printf %s "(cached) " >&6
1980else case e in #(
1981  e) eval "$3=no"
1982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983/* end confdefs.h.  */
1984$4
1985int
1986main (void)
1987{
1988if (sizeof ($2))
1989	 return 0;
1990  ;
1991  return 0;
1992}
1993_ACEOF
1994if ac_fn_c_try_compile "$LINENO"
1995then :
1996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997/* end confdefs.h.  */
1998$4
1999int
2000main (void)
2001{
2002if (sizeof (($2)))
2003	    return 0;
2004  ;
2005  return 0;
2006}
2007_ACEOF
2008if ac_fn_c_try_compile "$LINENO"
2009then :
2010
2011else case e in #(
2012  e) eval "$3=yes" ;;
2013esac
2014fi
2015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2016fi
2017rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2018esac
2019fi
2020eval ac_res=\$$3
2021	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022printf "%s\n" "$ac_res" >&6; }
2023  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024
2025} # ac_fn_c_check_type
2026ac_configure_args_raw=
2027for ac_arg
2028do
2029  case $ac_arg in
2030  *\'*)
2031    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2032  esac
2033  as_fn_append ac_configure_args_raw " '$ac_arg'"
2034done
2035
2036case $ac_configure_args_raw in
2037  *$as_nl*)
2038    ac_safe_unquote= ;;
2039  *)
2040    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2041    ac_unsafe_a="$ac_unsafe_z#~"
2042    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2043    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2044esac
2045
2046cat >config.log <<_ACEOF
2047This file contains any messages produced by compilers while
2048running configure, to aid debugging if configure makes a mistake.
2049
2050It was created by libFS $as_me 1.0.10, which was
2051generated by GNU Autoconf 2.72.  Invocation command line was
2052
2053  $ $0$ac_configure_args_raw
2054
2055_ACEOF
2056exec 5>>config.log
2057{
2058cat <<_ASUNAME
2059## --------- ##
2060## Platform. ##
2061## --------- ##
2062
2063hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2064uname -m = `(uname -m) 2>/dev/null || echo unknown`
2065uname -r = `(uname -r) 2>/dev/null || echo unknown`
2066uname -s = `(uname -s) 2>/dev/null || echo unknown`
2067uname -v = `(uname -v) 2>/dev/null || echo unknown`
2068
2069/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2070/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2071
2072/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2073/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2074/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2075/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2076/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2077/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2078/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2079
2080_ASUNAME
2081
2082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083for as_dir in $PATH
2084do
2085  IFS=$as_save_IFS
2086  case $as_dir in #(((
2087    '') as_dir=./ ;;
2088    */) ;;
2089    *) as_dir=$as_dir/ ;;
2090  esac
2091    printf "%s\n" "PATH: $as_dir"
2092  done
2093IFS=$as_save_IFS
2094
2095} >&5
2096
2097cat >&5 <<_ACEOF
2098
2099
2100## ----------- ##
2101## Core tests. ##
2102## ----------- ##
2103
2104_ACEOF
2105
2106
2107# Keep a trace of the command line.
2108# Strip out --no-create and --no-recursion so they do not pile up.
2109# Strip out --silent because we don't want to record it for future runs.
2110# Also quote any args containing shell meta-characters.
2111# Make two passes to allow for proper duplicate-argument suppression.
2112ac_configure_args=
2113ac_configure_args0=
2114ac_configure_args1=
2115ac_must_keep_next=false
2116for ac_pass in 1 2
2117do
2118  for ac_arg
2119  do
2120    case $ac_arg in
2121    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2122    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2123    | -silent | --silent | --silen | --sile | --sil)
2124      continue ;;
2125    *\'*)
2126      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2127    esac
2128    case $ac_pass in
2129    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2130    2)
2131      as_fn_append ac_configure_args1 " '$ac_arg'"
2132      if test $ac_must_keep_next = true; then
2133	ac_must_keep_next=false # Got value, back to normal.
2134      else
2135	case $ac_arg in
2136	  *=* | --config-cache | -C | -disable-* | --disable-* \
2137	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2138	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2139	  | -with-* | --with-* | -without-* | --without-* | --x)
2140	    case "$ac_configure_args0 " in
2141	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2142	    esac
2143	    ;;
2144	  -* ) ac_must_keep_next=true ;;
2145	esac
2146      fi
2147      as_fn_append ac_configure_args " '$ac_arg'"
2148      ;;
2149    esac
2150  done
2151done
2152{ ac_configure_args0=; unset ac_configure_args0;}
2153{ ac_configure_args1=; unset ac_configure_args1;}
2154
2155# When interrupted or exit'd, cleanup temporary files, and complete
2156# config.log.  We remove comments because anyway the quotes in there
2157# would cause problems or look ugly.
2158# WARNING: Use '\'' to represent an apostrophe within the trap.
2159# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2160trap 'exit_status=$?
2161  # Sanitize IFS.
2162  IFS=" ""	$as_nl"
2163  # Save into config.log some information that might help in debugging.
2164  {
2165    echo
2166
2167    printf "%s\n" "## ---------------- ##
2168## Cache variables. ##
2169## ---------------- ##"
2170    echo
2171    # The following way of writing the cache mishandles newlines in values,
2172(
2173  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2174    eval ac_val=\$$ac_var
2175    case $ac_val in #(
2176    *${as_nl}*)
2177      case $ac_var in #(
2178      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2179printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2180      esac
2181      case $ac_var in #(
2182      _ | IFS | as_nl) ;; #(
2183      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2184      *) { eval $ac_var=; unset $ac_var;} ;;
2185      esac ;;
2186    esac
2187  done
2188  (set) 2>&1 |
2189    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2190    *${as_nl}ac_space=\ *)
2191      sed -n \
2192	"s/'\''/'\''\\\\'\'''\''/g;
2193	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2194      ;; #(
2195    *)
2196      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2197      ;;
2198    esac |
2199    sort
2200)
2201    echo
2202
2203    printf "%s\n" "## ----------------- ##
2204## Output variables. ##
2205## ----------------- ##"
2206    echo
2207    for ac_var in $ac_subst_vars
2208    do
2209      eval ac_val=\$$ac_var
2210      case $ac_val in
2211      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2212      esac
2213      printf "%s\n" "$ac_var='\''$ac_val'\''"
2214    done | sort
2215    echo
2216
2217    if test -n "$ac_subst_files"; then
2218      printf "%s\n" "## ------------------- ##
2219## File substitutions. ##
2220## ------------------- ##"
2221      echo
2222      for ac_var in $ac_subst_files
2223      do
2224	eval ac_val=\$$ac_var
2225	case $ac_val in
2226	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2227	esac
2228	printf "%s\n" "$ac_var='\''$ac_val'\''"
2229      done | sort
2230      echo
2231    fi
2232
2233    if test -s confdefs.h; then
2234      printf "%s\n" "## ----------- ##
2235## confdefs.h. ##
2236## ----------- ##"
2237      echo
2238      cat confdefs.h
2239      echo
2240    fi
2241    test "$ac_signal" != 0 &&
2242      printf "%s\n" "$as_me: caught signal $ac_signal"
2243    printf "%s\n" "$as_me: exit $exit_status"
2244  } >&5
2245  rm -f core *.core core.conftest.* &&
2246    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2247    exit $exit_status
2248' 0
2249for ac_signal in 1 2 13 15; do
2250  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2251done
2252ac_signal=0
2253
2254# confdefs.h avoids OS command line length limits that DEFS can exceed.
2255rm -f -r conftest* confdefs.h
2256
2257printf "%s\n" "/* confdefs.h */" > confdefs.h
2258
2259# Predefined preprocessor variables.
2260
2261printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2262
2263printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2264
2265printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2266
2267printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2268
2269printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2270
2271printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2272
2273
2274# Let the site file select an alternate cache file if it wants to.
2275# Prefer an explicitly selected file to automatically selected ones.
2276if test -n "$CONFIG_SITE"; then
2277  ac_site_files="$CONFIG_SITE"
2278elif test "x$prefix" != xNONE; then
2279  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2280else
2281  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2282fi
2283
2284for ac_site_file in $ac_site_files
2285do
2286  case $ac_site_file in #(
2287  */*) :
2288     ;; #(
2289  *) :
2290    ac_site_file=./$ac_site_file ;;
2291esac
2292  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2293    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2294printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2295    sed 's/^/| /' "$ac_site_file" >&5
2296    . "$ac_site_file" \
2297      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2298printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2299as_fn_error $? "failed to load site script $ac_site_file
2300See 'config.log' for more details" "$LINENO" 5; }
2301  fi
2302done
2303
2304if test -r "$cache_file"; then
2305  # Some versions of bash will fail to source /dev/null (special files
2306  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2307  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2308    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2309printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2310    case $cache_file in
2311      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2312      *)                      . "./$cache_file";;
2313    esac
2314  fi
2315else
2316  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2317printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2318  >$cache_file
2319fi
2320
2321as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2322# Test code for whether the C compiler supports C89 (global declarations)
2323ac_c_conftest_c89_globals='
2324/* Does the compiler advertise C89 conformance?
2325   Do not test the value of __STDC__, because some compilers set it to 0
2326   while being otherwise adequately conformant. */
2327#if !defined __STDC__
2328# error "Compiler does not advertise C89 conformance"
2329#endif
2330
2331#include <stddef.h>
2332#include <stdarg.h>
2333struct stat;
2334/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2335struct buf { int x; };
2336struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2337static char *e (char **p, int i)
2338{
2339  return p[i];
2340}
2341static char *f (char * (*g) (char **, int), char **p, ...)
2342{
2343  char *s;
2344  va_list v;
2345  va_start (v,p);
2346  s = g (p, va_arg (v,int));
2347  va_end (v);
2348  return s;
2349}
2350
2351/* C89 style stringification. */
2352#define noexpand_stringify(a) #a
2353const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2354
2355/* C89 style token pasting.  Exercises some of the corner cases that
2356   e.g. old MSVC gets wrong, but not very hard. */
2357#define noexpand_concat(a,b) a##b
2358#define expand_concat(a,b) noexpand_concat(a,b)
2359extern int vA;
2360extern int vbee;
2361#define aye A
2362#define bee B
2363int *pvA = &expand_concat(v,aye);
2364int *pvbee = &noexpand_concat(v,bee);
2365
2366/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2367   function prototypes and stuff, but not \xHH hex character constants.
2368   These do not provoke an error unfortunately, instead are silently treated
2369   as an "x".  The following induces an error, until -std is added to get
2370   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2371   array size at least.  It is necessary to write \x00 == 0 to get something
2372   that is true only with -std.  */
2373int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2374
2375/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2376   inside strings and character constants.  */
2377#define FOO(x) '\''x'\''
2378int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2379
2380int test (int i, double x);
2381struct s1 {int (*f) (int a);};
2382struct s2 {int (*f) (double a);};
2383int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2384               int, int);'
2385
2386# Test code for whether the C compiler supports C89 (body of main).
2387ac_c_conftest_c89_main='
2388ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2389'
2390
2391# Test code for whether the C compiler supports C99 (global declarations)
2392ac_c_conftest_c99_globals='
2393/* Does the compiler advertise C99 conformance? */
2394#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2395# error "Compiler does not advertise C99 conformance"
2396#endif
2397
2398// See if C++-style comments work.
2399
2400#include <stdbool.h>
2401extern int puts (const char *);
2402extern int printf (const char *, ...);
2403extern int dprintf (int, const char *, ...);
2404extern void *malloc (size_t);
2405extern void free (void *);
2406
2407// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2408// dprintf is used instead of fprintf to avoid needing to declare
2409// FILE and stderr.
2410#define debug(...) dprintf (2, __VA_ARGS__)
2411#define showlist(...) puts (#__VA_ARGS__)
2412#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2413static void
2414test_varargs_macros (void)
2415{
2416  int x = 1234;
2417  int y = 5678;
2418  debug ("Flag");
2419  debug ("X = %d\n", x);
2420  showlist (The first, second, and third items.);
2421  report (x>y, "x is %d but y is %d", x, y);
2422}
2423
2424// Check long long types.
2425#define BIG64 18446744073709551615ull
2426#define BIG32 4294967295ul
2427#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2428#if !BIG_OK
2429  #error "your preprocessor is broken"
2430#endif
2431#if BIG_OK
2432#else
2433  #error "your preprocessor is broken"
2434#endif
2435static long long int bignum = -9223372036854775807LL;
2436static unsigned long long int ubignum = BIG64;
2437
2438struct incomplete_array
2439{
2440  int datasize;
2441  double data[];
2442};
2443
2444struct named_init {
2445  int number;
2446  const wchar_t *name;
2447  double average;
2448};
2449
2450typedef const char *ccp;
2451
2452static inline int
2453test_restrict (ccp restrict text)
2454{
2455  // Iterate through items via the restricted pointer.
2456  // Also check for declarations in for loops.
2457  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2458    continue;
2459  return 0;
2460}
2461
2462// Check varargs and va_copy.
2463static bool
2464test_varargs (const char *format, ...)
2465{
2466  va_list args;
2467  va_start (args, format);
2468  va_list args_copy;
2469  va_copy (args_copy, args);
2470
2471  const char *str = "";
2472  int number = 0;
2473  float fnumber = 0;
2474
2475  while (*format)
2476    {
2477      switch (*format++)
2478	{
2479	case '\''s'\'': // string
2480	  str = va_arg (args_copy, const char *);
2481	  break;
2482	case '\''d'\'': // int
2483	  number = va_arg (args_copy, int);
2484	  break;
2485	case '\''f'\'': // float
2486	  fnumber = va_arg (args_copy, double);
2487	  break;
2488	default:
2489	  break;
2490	}
2491    }
2492  va_end (args_copy);
2493  va_end (args);
2494
2495  return *str && number && fnumber;
2496}
2497'
2498
2499# Test code for whether the C compiler supports C99 (body of main).
2500ac_c_conftest_c99_main='
2501  // Check bool.
2502  _Bool success = false;
2503  success |= (argc != 0);
2504
2505  // Check restrict.
2506  if (test_restrict ("String literal") == 0)
2507    success = true;
2508  char *restrict newvar = "Another string";
2509
2510  // Check varargs.
2511  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2512  test_varargs_macros ();
2513
2514  // Check flexible array members.
2515  struct incomplete_array *ia =
2516    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2517  ia->datasize = 10;
2518  for (int i = 0; i < ia->datasize; ++i)
2519    ia->data[i] = i * 1.234;
2520  // Work around memory leak warnings.
2521  free (ia);
2522
2523  // Check named initializers.
2524  struct named_init ni = {
2525    .number = 34,
2526    .name = L"Test wide string",
2527    .average = 543.34343,
2528  };
2529
2530  ni.number = 58;
2531
2532  int dynamic_array[ni.number];
2533  dynamic_array[0] = argv[0][0];
2534  dynamic_array[ni.number - 1] = 543;
2535
2536  // work around unused variable warnings
2537  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2538	 || dynamic_array[ni.number - 1] != 543);
2539'
2540
2541# Test code for whether the C compiler supports C11 (global declarations)
2542ac_c_conftest_c11_globals='
2543/* Does the compiler advertise C11 conformance? */
2544#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2545# error "Compiler does not advertise C11 conformance"
2546#endif
2547
2548// Check _Alignas.
2549char _Alignas (double) aligned_as_double;
2550char _Alignas (0) no_special_alignment;
2551extern char aligned_as_int;
2552char _Alignas (0) _Alignas (int) aligned_as_int;
2553
2554// Check _Alignof.
2555enum
2556{
2557  int_alignment = _Alignof (int),
2558  int_array_alignment = _Alignof (int[100]),
2559  char_alignment = _Alignof (char)
2560};
2561_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2562
2563// Check _Noreturn.
2564int _Noreturn does_not_return (void) { for (;;) continue; }
2565
2566// Check _Static_assert.
2567struct test_static_assert
2568{
2569  int x;
2570  _Static_assert (sizeof (int) <= sizeof (long int),
2571                  "_Static_assert does not work in struct");
2572  long int y;
2573};
2574
2575// Check UTF-8 literals.
2576#define u8 syntax error!
2577char const utf8_literal[] = u8"happens to be ASCII" "another string";
2578
2579// Check duplicate typedefs.
2580typedef long *long_ptr;
2581typedef long int *long_ptr;
2582typedef long_ptr long_ptr;
2583
2584// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2585struct anonymous
2586{
2587  union {
2588    struct { int i; int j; };
2589    struct { int k; long int l; } w;
2590  };
2591  int m;
2592} v1;
2593'
2594
2595# Test code for whether the C compiler supports C11 (body of main).
2596ac_c_conftest_c11_main='
2597  _Static_assert ((offsetof (struct anonymous, i)
2598		   == offsetof (struct anonymous, w.k)),
2599		  "Anonymous union alignment botch");
2600  v1.i = 2;
2601  v1.w.k = 5;
2602  ok |= v1.i != 5;
2603'
2604
2605# Test code for whether the C compiler supports C11 (complete).
2606ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2607${ac_c_conftest_c99_globals}
2608${ac_c_conftest_c11_globals}
2609
2610int
2611main (int argc, char **argv)
2612{
2613  int ok = 0;
2614  ${ac_c_conftest_c89_main}
2615  ${ac_c_conftest_c99_main}
2616  ${ac_c_conftest_c11_main}
2617  return ok;
2618}
2619"
2620
2621# Test code for whether the C compiler supports C99 (complete).
2622ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2623${ac_c_conftest_c99_globals}
2624
2625int
2626main (int argc, char **argv)
2627{
2628  int ok = 0;
2629  ${ac_c_conftest_c89_main}
2630  ${ac_c_conftest_c99_main}
2631  return ok;
2632}
2633"
2634
2635# Test code for whether the C compiler supports C89 (complete).
2636ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2637
2638int
2639main (int argc, char **argv)
2640{
2641  int ok = 0;
2642  ${ac_c_conftest_c89_main}
2643  return ok;
2644}
2645"
2646
2647as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2648as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2649as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2650as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2651as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2652as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2653as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2654as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2655as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2656as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2657
2658# Auxiliary files required by this configure script.
2659ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2660
2661# Locations in which to look for auxiliary files.
2662ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2663
2664# Search for a directory containing all of the required auxiliary files,
2665# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2666# If we don't find one directory that contains all the files we need,
2667# we report the set of missing files from the *first* directory in
2668# $ac_aux_dir_candidates and give up.
2669ac_missing_aux_files=""
2670ac_first_candidate=:
2671printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673as_found=false
2674for as_dir in $ac_aux_dir_candidates
2675do
2676  IFS=$as_save_IFS
2677  case $as_dir in #(((
2678    '') as_dir=./ ;;
2679    */) ;;
2680    *) as_dir=$as_dir/ ;;
2681  esac
2682  as_found=:
2683
2684  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2685  ac_aux_dir_found=yes
2686  ac_install_sh=
2687  for ac_aux in $ac_aux_files
2688  do
2689    # As a special case, if "install-sh" is required, that requirement
2690    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2691    # and $ac_install_sh is set appropriately for whichever one is found.
2692    if test x"$ac_aux" = x"install-sh"
2693    then
2694      if test -f "${as_dir}install-sh"; then
2695        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2696        ac_install_sh="${as_dir}install-sh -c"
2697      elif test -f "${as_dir}install.sh"; then
2698        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2699        ac_install_sh="${as_dir}install.sh -c"
2700      elif test -f "${as_dir}shtool"; then
2701        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2702        ac_install_sh="${as_dir}shtool install -c"
2703      else
2704        ac_aux_dir_found=no
2705        if $ac_first_candidate; then
2706          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2707        else
2708          break
2709        fi
2710      fi
2711    else
2712      if test -f "${as_dir}${ac_aux}"; then
2713        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2714      else
2715        ac_aux_dir_found=no
2716        if $ac_first_candidate; then
2717          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2718        else
2719          break
2720        fi
2721      fi
2722    fi
2723  done
2724  if test "$ac_aux_dir_found" = yes; then
2725    ac_aux_dir="$as_dir"
2726    break
2727  fi
2728  ac_first_candidate=false
2729
2730  as_found=false
2731done
2732IFS=$as_save_IFS
2733if $as_found
2734then :
2735
2736else case e in #(
2737  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2738esac
2739fi
2740
2741
2742# These three variables are undocumented and unsupported,
2743# and are intended to be withdrawn in a future Autoconf release.
2744# They can cause serious problems if a builder's source tree is in a directory
2745# whose full name contains unusual characters.
2746if test -f "${ac_aux_dir}config.guess"; then
2747  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2748fi
2749if test -f "${ac_aux_dir}config.sub"; then
2750  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2751fi
2752if test -f "$ac_aux_dir/configure"; then
2753  ac_configure="$SHELL ${ac_aux_dir}configure"
2754fi
2755
2756# Check that the precious variables saved in the cache have kept the same
2757# value.
2758ac_cache_corrupted=false
2759for ac_var in $ac_precious_vars; do
2760  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2761  eval ac_new_set=\$ac_env_${ac_var}_set
2762  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2763  eval ac_new_val=\$ac_env_${ac_var}_value
2764  case $ac_old_set,$ac_new_set in
2765    set,)
2766      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2767printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2768      ac_cache_corrupted=: ;;
2769    ,set)
2770      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2771printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2772      ac_cache_corrupted=: ;;
2773    ,);;
2774    *)
2775      if test "x$ac_old_val" != "x$ac_new_val"; then
2776	# differences in whitespace do not lead to failure.
2777	ac_old_val_w=`echo x $ac_old_val`
2778	ac_new_val_w=`echo x $ac_new_val`
2779	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2780	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2781printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2782	  ac_cache_corrupted=:
2783	else
2784	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2785printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2786	  eval $ac_var=\$ac_old_val
2787	fi
2788	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2789printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2790	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2791printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2792      fi;;
2793  esac
2794  # Pass precious variables to config.status.
2795  if test "$ac_new_set" = set; then
2796    case $ac_new_val in
2797    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2798    *) ac_arg=$ac_var=$ac_new_val ;;
2799    esac
2800    case " $ac_configure_args " in
2801      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2802      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2803    esac
2804  fi
2805done
2806if $ac_cache_corrupted; then
2807  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2808printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2809  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2810printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2811  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2812	    and start over" "$LINENO" 5
2813fi
2814## -------------------- ##
2815## Main body of script. ##
2816## -------------------- ##
2817
2818ac_ext=c
2819ac_cpp='$CPP $CPPFLAGS'
2820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2822ac_compiler_gnu=$ac_cv_c_compiler_gnu
2823
2824
2825
2826ac_config_headers="$ac_config_headers config.h"
2827
2828
2829
2830# Initialize Automake
2831am__api_version='1.17'
2832
2833
2834
2835  # Find a good install program.  We prefer a C program (faster),
2836# so one script is as good as another.  But avoid the broken or
2837# incompatible versions:
2838# SysV /etc/install, /usr/sbin/install
2839# SunOS /usr/etc/install
2840# IRIX /sbin/install
2841# AIX /bin/install
2842# AmigaOS /C/install, which installs bootblocks on floppy discs
2843# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2844# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2845# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2846# OS/2's system install, which has a completely different semantic
2847# ./install, which can be erroneously created by make from ./install.sh.
2848# Reject install programs that cannot install multiple files.
2849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2850printf %s "checking for a BSD-compatible install... " >&6; }
2851if test -z "$INSTALL"; then
2852if test ${ac_cv_path_install+y}
2853then :
2854  printf %s "(cached) " >&6
2855else case e in #(
2856  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857for as_dir in $PATH
2858do
2859  IFS=$as_save_IFS
2860  case $as_dir in #(((
2861    '') as_dir=./ ;;
2862    */) ;;
2863    *) as_dir=$as_dir/ ;;
2864  esac
2865    # Account for fact that we put trailing slashes in our PATH walk.
2866case $as_dir in #((
2867  ./ | /[cC]/* | \
2868  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2869  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2870  /usr/ucb/* ) ;;
2871  *)
2872    # OSF1 and SCO ODT 3.0 have their own names for install.
2873    # Don't use installbsd from OSF since it installs stuff as root
2874    # by default.
2875    for ac_prog in ginstall scoinst install; do
2876      for ac_exec_ext in '' $ac_executable_extensions; do
2877	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2878	  if test $ac_prog = install &&
2879	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2880	    # AIX install.  It has an incompatible calling convention.
2881	    :
2882	  elif test $ac_prog = install &&
2883	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2884	    # program-specific install script used by HP pwplus--don't use.
2885	    :
2886	  else
2887	    rm -rf conftest.one conftest.two conftest.dir
2888	    echo one > conftest.one
2889	    echo two > conftest.two
2890	    mkdir conftest.dir
2891	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2892	      test -s conftest.one && test -s conftest.two &&
2893	      test -s conftest.dir/conftest.one &&
2894	      test -s conftest.dir/conftest.two
2895	    then
2896	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2897	      break 3
2898	    fi
2899	  fi
2900	fi
2901      done
2902    done
2903    ;;
2904esac
2905
2906  done
2907IFS=$as_save_IFS
2908
2909rm -rf conftest.one conftest.two conftest.dir
2910 ;;
2911esac
2912fi
2913  if test ${ac_cv_path_install+y}; then
2914    INSTALL=$ac_cv_path_install
2915  else
2916    # As a last resort, use the slow shell script.  Don't cache a
2917    # value for INSTALL within a source directory, because that will
2918    # break other packages using the cache if that directory is
2919    # removed, or if the value is a relative name.
2920    INSTALL=$ac_install_sh
2921  fi
2922fi
2923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2924printf "%s\n" "$INSTALL" >&6; }
2925
2926# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2927# It thinks the first close brace ends the variable substitution.
2928test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2929
2930test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2931
2932test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2933
2934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2935printf %s "checking whether sleep supports fractional seconds... " >&6; }
2936if test ${am_cv_sleep_fractional_seconds+y}
2937then :
2938  printf %s "(cached) " >&6
2939else case e in #(
2940  e) if sleep 0.001 2>/dev/null
2941then :
2942  am_cv_sleep_fractional_seconds=yes
2943else case e in #(
2944  e) am_cv_sleep_fractional_seconds=no ;;
2945esac
2946fi
2947 ;;
2948esac
2949fi
2950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2951printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2952
2953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2954printf %s "checking filesystem timestamp resolution... " >&6; }
2955if test ${am_cv_filesystem_timestamp_resolution+y}
2956then :
2957  printf %s "(cached) " >&6
2958else case e in #(
2959  e) # Default to the worst case.
2960am_cv_filesystem_timestamp_resolution=2
2961
2962# Only try to go finer than 1 sec if sleep can do it.
2963# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2964# - 1 sec is not much of a win compared to 2 sec, and
2965# - it takes 2 seconds to perform the test whether 1 sec works.
2966#
2967# Instead, just use the default 2s on platforms that have 1s resolution,
2968# accept the extra 1s delay when using $sleep in the Automake tests, in
2969# exchange for not incurring the 2s delay for running the test for all
2970# packages.
2971#
2972am_try_resolutions=
2973if test "$am_cv_sleep_fractional_seconds" = yes; then
2974  # Even a millisecond often causes a bunch of false positives,
2975  # so just try a hundredth of a second. The time saved between .001 and
2976  # .01 is not terribly consequential.
2977  am_try_resolutions="0.01 0.1 $am_try_resolutions"
2978fi
2979
2980# In order to catch current-generation FAT out, we must *modify* files
2981# that already exist; the *creation* timestamp is finer.  Use names
2982# that make ls -t sort them differently when they have equal
2983# timestamps than when they have distinct timestamps, keeping
2984# in mind that ls -t prints the *newest* file first.
2985rm -f conftest.ts?
2986: > conftest.ts1
2987: > conftest.ts2
2988: > conftest.ts3
2989
2990# Make sure ls -t actually works.  Do 'set' in a subshell so we don't
2991# clobber the current shell's arguments. (Outer-level square brackets
2992# are removed by m4; they're present so that m4 does not expand
2993# <dollar><star>; be careful, easy to get confused.)
2994if (
2995     set X `ls -t conftest.ts[12]` &&
2996     {
2997       test "$*" != "X conftest.ts1 conftest.ts2" ||
2998       test "$*" != "X conftest.ts2 conftest.ts1";
2999     }
3000); then :; else
3001  # If neither matched, then we have a broken ls.  This can happen
3002  # if, for instance, CONFIG_SHELL is bash and it inherits a
3003  # broken ls alias from the environment.  This has actually
3004  # happened.  Such a system could not be considered "sane".
3005  printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3006  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3007printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3008as_fn_error $? "ls -t produces unexpected output.
3009Make sure there is not a broken ls alias in your environment.
3010See 'config.log' for more details" "$LINENO" 5; }
3011fi
3012
3013for am_try_res in $am_try_resolutions; do
3014  # Any one fine-grained sleep might happen to cross the boundary
3015  # between two values of a coarser actual resolution, but if we do
3016  # two fine-grained sleeps in a row, at least one of them will fall
3017  # entirely within a coarse interval.
3018  echo alpha > conftest.ts1
3019  sleep $am_try_res
3020  echo beta > conftest.ts2
3021  sleep $am_try_res
3022  echo gamma > conftest.ts3
3023
3024  # We assume that 'ls -t' will make use of high-resolution
3025  # timestamps if the operating system supports them at all.
3026  if (set X `ls -t conftest.ts?` &&
3027      test "$2" = conftest.ts3 &&
3028      test "$3" = conftest.ts2 &&
3029      test "$4" = conftest.ts1); then
3030    #
3031    # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3032    # because we don't need to test make.
3033    make_ok=true
3034    if test $am_try_res != 1; then
3035      # But if we've succeeded so far with a subsecond resolution, we
3036      # have one more thing to check: make. It can happen that
3037      # everything else supports the subsecond mtimes, but make doesn't;
3038      # notably on macOS, which ships make 3.81 from 2006 (the last one
3039      # released under GPLv2). https://bugs.gnu.org/68808
3040      #
3041      # We test $MAKE if it is defined in the environment, else "make".
3042      # It might get overridden later, but our hope is that in practice
3043      # it does not matter: it is the system "make" which is (by far)
3044      # the most likely to be broken, whereas if the user overrides it,
3045      # probably they did so with a better, or at least not worse, make.
3046      # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3047      #
3048      # Create a Makefile (real tab character here):
3049      rm -f conftest.mk
3050      echo 'conftest.ts1: conftest.ts2' >conftest.mk
3051      echo '	touch conftest.ts2' >>conftest.mk
3052      #
3053      # Now, running
3054      #   touch conftest.ts1; touch conftest.ts2; make
3055      # should touch ts1 because ts2 is newer. This could happen by luck,
3056      # but most often, it will fail if make's support is insufficient. So
3057      # test for several consecutive successes.
3058      #
3059      # (We reuse conftest.ts[12] because we still want to modify existing
3060      # files, not create new ones, per above.)
3061      n=0
3062      make=${MAKE-make}
3063      until test $n -eq 3; do
3064        echo one > conftest.ts1
3065        sleep $am_try_res
3066        echo two > conftest.ts2 # ts2 should now be newer than ts1
3067        if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3068          make_ok=false
3069          break # out of $n loop
3070        fi
3071        n=`expr $n + 1`
3072      done
3073    fi
3074    #
3075    if $make_ok; then
3076      # Everything we know to check worked out, so call this resolution good.
3077      am_cv_filesystem_timestamp_resolution=$am_try_res
3078      break # out of $am_try_res loop
3079    fi
3080    # Otherwise, we'll go on to check the next resolution.
3081  fi
3082done
3083rm -f conftest.ts?
3084# (end _am_filesystem_timestamp_resolution)
3085 ;;
3086esac
3087fi
3088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3089printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3090
3091# This check should not be cached, as it may vary across builds of
3092# different projects.
3093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3094printf %s "checking whether build environment is sane... " >&6; }
3095# Reject unsafe characters in $srcdir or the absolute working directory
3096# name.  Accept space and tab only in the latter.
3097am_lf='
3098'
3099case `pwd` in
3100  *[\\\"\#\$\&\'\`$am_lf]*)
3101    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3102esac
3103case $srcdir in
3104  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3105    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3106esac
3107
3108# Do 'set' in a subshell so we don't clobber the current shell's
3109# arguments.  Must try -L first in case configure is actually a
3110# symlink; some systems play weird games with the mod time of symlinks
3111# (eg FreeBSD returns the mod time of the symlink's containing
3112# directory).
3113am_build_env_is_sane=no
3114am_has_slept=no
3115rm -f conftest.file
3116for am_try in 1 2; do
3117  echo "timestamp, slept: $am_has_slept" > conftest.file
3118  if (
3119    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3120    if test "$*" = "X"; then
3121      # -L didn't work.
3122      set X `ls -t "$srcdir/configure" conftest.file`
3123    fi
3124    test "$2" = conftest.file
3125  ); then
3126    am_build_env_is_sane=yes
3127    break
3128  fi
3129  # Just in case.
3130  sleep "$am_cv_filesystem_timestamp_resolution"
3131  am_has_slept=yes
3132done
3133
3134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3135printf "%s\n" "$am_build_env_is_sane" >&6; }
3136if test "$am_build_env_is_sane" = no; then
3137  as_fn_error $? "newly created file is older than distributed files!
3138Check your system clock" "$LINENO" 5
3139fi
3140
3141# If we didn't sleep, we still need to ensure time stamps of config.status and
3142# generated files are strictly newer.
3143am_sleep_pid=
3144if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3145then :
3146
3147else case e in #(
3148  e)   ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3149  am_sleep_pid=$!
3150 ;;
3151esac
3152fi
3153
3154rm -f conftest.file
3155
3156test "$program_prefix" != NONE &&
3157  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3158# Use a double $ so make ignores it.
3159test "$program_suffix" != NONE &&
3160  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3161# Double any \ or $.
3162# By default was 's,x,x', remove it if useless.
3163ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3164program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3165
3166
3167# Expand $ac_aux_dir to an absolute path.
3168am_aux_dir=`cd "$ac_aux_dir" && pwd`
3169
3170
3171  if test x"${MISSING+set}" != xset; then
3172  MISSING="\${SHELL} '$am_aux_dir/missing'"
3173fi
3174# Use eval to expand $SHELL
3175if eval "$MISSING --is-lightweight"; then
3176  am_missing_run="$MISSING "
3177else
3178  am_missing_run=
3179  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3180printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3181fi
3182
3183if test x"${install_sh+set}" != xset; then
3184  case $am_aux_dir in
3185  *\ * | *\	*)
3186    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3187  *)
3188    install_sh="\${SHELL} $am_aux_dir/install-sh"
3189  esac
3190fi
3191
3192# Installed binaries are usually stripped using 'strip' when the user
3193# run "make install-strip".  However 'strip' might not be the right
3194# tool to use in cross-compilation environments, therefore Automake
3195# will honor the 'STRIP' environment variable to overrule this program.
3196if test "$cross_compiling" != no; then
3197  if test -n "$ac_tool_prefix"; then
3198  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3199set dummy ${ac_tool_prefix}strip; ac_word=$2
3200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201printf %s "checking for $ac_word... " >&6; }
3202if test ${ac_cv_prog_STRIP+y}
3203then :
3204  printf %s "(cached) " >&6
3205else case e in #(
3206  e) if test -n "$STRIP"; then
3207  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3208else
3209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210for as_dir in $PATH
3211do
3212  IFS=$as_save_IFS
3213  case $as_dir in #(((
3214    '') as_dir=./ ;;
3215    */) ;;
3216    *) as_dir=$as_dir/ ;;
3217  esac
3218    for ac_exec_ext in '' $ac_executable_extensions; do
3219  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3220    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3221    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3222    break 2
3223  fi
3224done
3225  done
3226IFS=$as_save_IFS
3227
3228fi ;;
3229esac
3230fi
3231STRIP=$ac_cv_prog_STRIP
3232if test -n "$STRIP"; then
3233  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3234printf "%s\n" "$STRIP" >&6; }
3235else
3236  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237printf "%s\n" "no" >&6; }
3238fi
3239
3240
3241fi
3242if test -z "$ac_cv_prog_STRIP"; then
3243  ac_ct_STRIP=$STRIP
3244  # Extract the first word of "strip", so it can be a program name with args.
3245set dummy strip; ac_word=$2
3246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3247printf %s "checking for $ac_word... " >&6; }
3248if test ${ac_cv_prog_ac_ct_STRIP+y}
3249then :
3250  printf %s "(cached) " >&6
3251else case e in #(
3252  e) if test -n "$ac_ct_STRIP"; then
3253  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3254else
3255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256for as_dir in $PATH
3257do
3258  IFS=$as_save_IFS
3259  case $as_dir in #(((
3260    '') as_dir=./ ;;
3261    */) ;;
3262    *) as_dir=$as_dir/ ;;
3263  esac
3264    for ac_exec_ext in '' $ac_executable_extensions; do
3265  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3266    ac_cv_prog_ac_ct_STRIP="strip"
3267    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3268    break 2
3269  fi
3270done
3271  done
3272IFS=$as_save_IFS
3273
3274fi ;;
3275esac
3276fi
3277ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3278if test -n "$ac_ct_STRIP"; then
3279  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3280printf "%s\n" "$ac_ct_STRIP" >&6; }
3281else
3282  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283printf "%s\n" "no" >&6; }
3284fi
3285
3286  if test "x$ac_ct_STRIP" = x; then
3287    STRIP=":"
3288  else
3289    case $cross_compiling:$ac_tool_warned in
3290yes:)
3291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3292printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3293ac_tool_warned=yes ;;
3294esac
3295    STRIP=$ac_ct_STRIP
3296  fi
3297else
3298  STRIP="$ac_cv_prog_STRIP"
3299fi
3300
3301fi
3302INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3303
3304
3305  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3306printf %s "checking for a race-free mkdir -p... " >&6; }
3307if test -z "$MKDIR_P"; then
3308  if test ${ac_cv_path_mkdir+y}
3309then :
3310  printf %s "(cached) " >&6
3311else case e in #(
3312  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3314do
3315  IFS=$as_save_IFS
3316  case $as_dir in #(((
3317    '') as_dir=./ ;;
3318    */) ;;
3319    *) as_dir=$as_dir/ ;;
3320  esac
3321    for ac_prog in mkdir gmkdir; do
3322	 for ac_exec_ext in '' $ac_executable_extensions; do
3323	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3324	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3325	     'mkdir ('*'coreutils) '* | \
3326	     *'BusyBox '* | \
3327	     'mkdir (fileutils) '4.1*)
3328	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3329	       break 3;;
3330	   esac
3331	 done
3332       done
3333  done
3334IFS=$as_save_IFS
3335 ;;
3336esac
3337fi
3338
3339  test -d ./--version && rmdir ./--version
3340  if test ${ac_cv_path_mkdir+y}; then
3341    MKDIR_P="$ac_cv_path_mkdir -p"
3342  else
3343    # As a last resort, use plain mkdir -p,
3344    # in the hope it doesn't have the bugs of ancient mkdir.
3345    MKDIR_P='mkdir -p'
3346  fi
3347fi
3348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3349printf "%s\n" "$MKDIR_P" >&6; }
3350
3351for ac_prog in gawk mawk nawk awk
3352do
3353  # Extract the first word of "$ac_prog", so it can be a program name with args.
3354set dummy $ac_prog; ac_word=$2
3355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3356printf %s "checking for $ac_word... " >&6; }
3357if test ${ac_cv_prog_AWK+y}
3358then :
3359  printf %s "(cached) " >&6
3360else case e in #(
3361  e) if test -n "$AWK"; then
3362  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3363else
3364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365for as_dir in $PATH
3366do
3367  IFS=$as_save_IFS
3368  case $as_dir in #(((
3369    '') as_dir=./ ;;
3370    */) ;;
3371    *) as_dir=$as_dir/ ;;
3372  esac
3373    for ac_exec_ext in '' $ac_executable_extensions; do
3374  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3375    ac_cv_prog_AWK="$ac_prog"
3376    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3377    break 2
3378  fi
3379done
3380  done
3381IFS=$as_save_IFS
3382
3383fi ;;
3384esac
3385fi
3386AWK=$ac_cv_prog_AWK
3387if test -n "$AWK"; then
3388  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3389printf "%s\n" "$AWK" >&6; }
3390else
3391  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392printf "%s\n" "no" >&6; }
3393fi
3394
3395
3396  test -n "$AWK" && break
3397done
3398
3399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3400printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3401set x ${MAKE-make}
3402ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3403if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3404then :
3405  printf %s "(cached) " >&6
3406else case e in #(
3407  e) cat >conftest.make <<\_ACEOF
3408SHELL = /bin/sh
3409all:
3410	@echo '@@@%%%=$(MAKE)=@@@%%%'
3411_ACEOF
3412# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3413case `${MAKE-make} -f conftest.make 2>/dev/null` in
3414  *@@@%%%=?*=@@@%%%*)
3415    eval ac_cv_prog_make_${ac_make}_set=yes;;
3416  *)
3417    eval ac_cv_prog_make_${ac_make}_set=no;;
3418esac
3419rm -f conftest.make ;;
3420esac
3421fi
3422if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3423  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3424printf "%s\n" "yes" >&6; }
3425  SET_MAKE=
3426else
3427  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428printf "%s\n" "no" >&6; }
3429  SET_MAKE="MAKE=${MAKE-make}"
3430fi
3431
3432rm -rf .tst 2>/dev/null
3433mkdir .tst 2>/dev/null
3434if test -d .tst; then
3435  am__leading_dot=.
3436else
3437  am__leading_dot=_
3438fi
3439rmdir .tst 2>/dev/null
3440
3441AM_DEFAULT_VERBOSITY=1
3442# Check whether --enable-silent-rules was given.
3443if test ${enable_silent_rules+y}
3444then :
3445  enableval=$enable_silent_rules;
3446fi
3447
3448am_make=${MAKE-make}
3449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3450printf %s "checking whether $am_make supports nested variables... " >&6; }
3451if test ${am_cv_make_support_nested_variables+y}
3452then :
3453  printf %s "(cached) " >&6
3454else case e in #(
3455  e) if printf "%s\n" 'TRUE=$(BAR$(V))
3456BAR0=false
3457BAR1=true
3458V=1
3459am__doit:
3460	@$(TRUE)
3461.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3462  am_cv_make_support_nested_variables=yes
3463else
3464  am_cv_make_support_nested_variables=no
3465fi ;;
3466esac
3467fi
3468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3469printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3470AM_BACKSLASH='\'
3471
3472am__rm_f_notfound=
3473if (rm -f && rm -fr && rm -rf) 2>/dev/null
3474then :
3475
3476else case e in #(
3477  e) am__rm_f_notfound='""' ;;
3478esac
3479fi
3480
3481
3482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3483printf %s "checking xargs -n works... " >&6; }
3484if test ${am_cv_xargs_n_works+y}
3485then :
3486  printf %s "(cached) " >&6
3487else case e in #(
3488  e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
34893"
3490then :
3491  am_cv_xargs_n_works=yes
3492else case e in #(
3493  e) am_cv_xargs_n_works=no ;;
3494esac
3495fi ;;
3496esac
3497fi
3498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3499printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3500if test "$am_cv_xargs_n_works" = yes
3501then :
3502  am__xargs_n='xargs -n'
3503else case e in #(
3504  e)   am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3505 ;;
3506esac
3507fi
3508
3509if test "`cd $srcdir && pwd`" != "`pwd`"; then
3510  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3511  # is not polluted with repeated "-I."
3512  am__isrc=' -I$(srcdir)'
3513  # test to see if srcdir already configured
3514  if test -f $srcdir/config.status; then
3515    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3516  fi
3517fi
3518
3519# test whether we have cygpath
3520if test -z "$CYGPATH_W"; then
3521  if (cygpath --version) >/dev/null 2>/dev/null; then
3522    CYGPATH_W='cygpath -w'
3523  else
3524    CYGPATH_W=echo
3525  fi
3526fi
3527
3528
3529# Define the identity of the package.
3530 PACKAGE='libFS'
3531 VERSION='1.0.10'
3532
3533
3534printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3535
3536
3537printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3538
3539# Some tools Automake needs.
3540
3541ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3542
3543
3544AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3545
3546
3547AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3548
3549
3550AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3551
3552
3553MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3554
3555# For better backward compatibility.  To be removed once Automake 1.9.x
3556# dies out for good.  For more background, see:
3557# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3558# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3559mkdir_p='$(MKDIR_P)'
3560
3561# We need awk for the "check" target (and possibly the TAP driver).  The
3562# system "awk" is bad on some platforms.
3563# Always define AMTAR for backward compatibility.  Yes, it's still used
3564# in the wild :-(  We should find a proper way to deprecate it ...
3565AMTAR='$${TAR-tar}'
3566
3567
3568# We'll loop over all known methods to create a tar archive until one works.
3569_am_tools='gnutar  pax cpio none'
3570
3571am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3572
3573
3574
3575
3576
3577# Variables for tags utilities; see am/tags.am
3578if test -z "$CTAGS"; then
3579  CTAGS=ctags
3580fi
3581
3582if test -z "$ETAGS"; then
3583  ETAGS=etags
3584fi
3585
3586if test -z "$CSCOPE"; then
3587  CSCOPE=cscope
3588fi
3589
3590
3591
3592
3593
3594
3595
3596
3597# Set common system defines for POSIX extensions, such as _GNU_SOURCE
3598# Must be called before any macros that run the compiler (like
3599# LT_INIT) to avoid autoconf errors.
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609DEPDIR="${am__leading_dot}deps"
3610
3611ac_config_commands="$ac_config_commands depfiles"
3612
3613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3614printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3615cat > confinc.mk << 'END'
3616am__doit:
3617	@echo this is the am__doit target >confinc.out
3618.PHONY: am__doit
3619END
3620am__include="#"
3621am__quote=
3622# BSD make does it like this.
3623echo '.include "confinc.mk" # ignored' > confmf.BSD
3624# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3625echo 'include confinc.mk # ignored' > confmf.GNU
3626_am_result=no
3627for s in GNU BSD; do
3628  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3629   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3630   ac_status=$?
3631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632   (exit $ac_status); }
3633  case $?:`cat confinc.out 2>/dev/null` in #(
3634  '0:this is the am__doit target') :
3635    case $s in #(
3636  BSD) :
3637    am__include='.include' am__quote='"' ;; #(
3638  *) :
3639    am__include='include' am__quote='' ;;
3640esac ;; #(
3641  *) :
3642     ;;
3643esac
3644  if test "$am__include" != "#"; then
3645    _am_result="yes ($s style)"
3646    break
3647  fi
3648done
3649rm -f confinc.* confmf.*
3650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3651printf "%s\n" "${_am_result}" >&6; }
3652
3653# Check whether --enable-dependency-tracking was given.
3654if test ${enable_dependency_tracking+y}
3655then :
3656  enableval=$enable_dependency_tracking;
3657fi
3658
3659if test "x$enable_dependency_tracking" != xno; then
3660  am_depcomp="$ac_aux_dir/depcomp"
3661  AMDEPBACKSLASH='\'
3662  am__nodep='_no'
3663fi
3664 if test "x$enable_dependency_tracking" != xno; then
3665  AMDEP_TRUE=
3666  AMDEP_FALSE='#'
3667else
3668  AMDEP_TRUE='#'
3669  AMDEP_FALSE=
3670fi
3671
3672
3673ac_ext=c
3674ac_cpp='$CPP $CPPFLAGS'
3675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3677ac_compiler_gnu=$ac_cv_c_compiler_gnu
3678if test -n "$ac_tool_prefix"; then
3679  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3680set dummy ${ac_tool_prefix}gcc; ac_word=$2
3681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3682printf %s "checking for $ac_word... " >&6; }
3683if test ${ac_cv_prog_CC+y}
3684then :
3685  printf %s "(cached) " >&6
3686else case e in #(
3687  e) if test -n "$CC"; then
3688  ac_cv_prog_CC="$CC" # Let the user override the test.
3689else
3690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691for as_dir in $PATH
3692do
3693  IFS=$as_save_IFS
3694  case $as_dir in #(((
3695    '') as_dir=./ ;;
3696    */) ;;
3697    *) as_dir=$as_dir/ ;;
3698  esac
3699    for ac_exec_ext in '' $ac_executable_extensions; do
3700  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3701    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3702    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3703    break 2
3704  fi
3705done
3706  done
3707IFS=$as_save_IFS
3708
3709fi ;;
3710esac
3711fi
3712CC=$ac_cv_prog_CC
3713if test -n "$CC"; then
3714  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3715printf "%s\n" "$CC" >&6; }
3716else
3717  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718printf "%s\n" "no" >&6; }
3719fi
3720
3721
3722fi
3723if test -z "$ac_cv_prog_CC"; then
3724  ac_ct_CC=$CC
3725  # Extract the first word of "gcc", so it can be a program name with args.
3726set dummy gcc; ac_word=$2
3727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3728printf %s "checking for $ac_word... " >&6; }
3729if test ${ac_cv_prog_ac_ct_CC+y}
3730then :
3731  printf %s "(cached) " >&6
3732else case e in #(
3733  e) if test -n "$ac_ct_CC"; then
3734  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3735else
3736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737for as_dir in $PATH
3738do
3739  IFS=$as_save_IFS
3740  case $as_dir in #(((
3741    '') as_dir=./ ;;
3742    */) ;;
3743    *) as_dir=$as_dir/ ;;
3744  esac
3745    for ac_exec_ext in '' $ac_executable_extensions; do
3746  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3747    ac_cv_prog_ac_ct_CC="gcc"
3748    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3749    break 2
3750  fi
3751done
3752  done
3753IFS=$as_save_IFS
3754
3755fi ;;
3756esac
3757fi
3758ac_ct_CC=$ac_cv_prog_ac_ct_CC
3759if test -n "$ac_ct_CC"; then
3760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3761printf "%s\n" "$ac_ct_CC" >&6; }
3762else
3763  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764printf "%s\n" "no" >&6; }
3765fi
3766
3767  if test "x$ac_ct_CC" = x; then
3768    CC=""
3769  else
3770    case $cross_compiling:$ac_tool_warned in
3771yes:)
3772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3773printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3774ac_tool_warned=yes ;;
3775esac
3776    CC=$ac_ct_CC
3777  fi
3778else
3779  CC="$ac_cv_prog_CC"
3780fi
3781
3782if test -z "$CC"; then
3783          if test -n "$ac_tool_prefix"; then
3784    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3785set dummy ${ac_tool_prefix}cc; ac_word=$2
3786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3787printf %s "checking for $ac_word... " >&6; }
3788if test ${ac_cv_prog_CC+y}
3789then :
3790  printf %s "(cached) " >&6
3791else case e in #(
3792  e) if test -n "$CC"; then
3793  ac_cv_prog_CC="$CC" # Let the user override the test.
3794else
3795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796for as_dir in $PATH
3797do
3798  IFS=$as_save_IFS
3799  case $as_dir in #(((
3800    '') as_dir=./ ;;
3801    */) ;;
3802    *) as_dir=$as_dir/ ;;
3803  esac
3804    for ac_exec_ext in '' $ac_executable_extensions; do
3805  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3806    ac_cv_prog_CC="${ac_tool_prefix}cc"
3807    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3808    break 2
3809  fi
3810done
3811  done
3812IFS=$as_save_IFS
3813
3814fi ;;
3815esac
3816fi
3817CC=$ac_cv_prog_CC
3818if test -n "$CC"; then
3819  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3820printf "%s\n" "$CC" >&6; }
3821else
3822  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3823printf "%s\n" "no" >&6; }
3824fi
3825
3826
3827  fi
3828fi
3829if test -z "$CC"; then
3830  # Extract the first word of "cc", so it can be a program name with args.
3831set dummy cc; ac_word=$2
3832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3833printf %s "checking for $ac_word... " >&6; }
3834if test ${ac_cv_prog_CC+y}
3835then :
3836  printf %s "(cached) " >&6
3837else case e in #(
3838  e) if test -n "$CC"; then
3839  ac_cv_prog_CC="$CC" # Let the user override the test.
3840else
3841  ac_prog_rejected=no
3842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843for as_dir in $PATH
3844do
3845  IFS=$as_save_IFS
3846  case $as_dir in #(((
3847    '') as_dir=./ ;;
3848    */) ;;
3849    *) as_dir=$as_dir/ ;;
3850  esac
3851    for ac_exec_ext in '' $ac_executable_extensions; do
3852  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3853    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3854       ac_prog_rejected=yes
3855       continue
3856     fi
3857    ac_cv_prog_CC="cc"
3858    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3859    break 2
3860  fi
3861done
3862  done
3863IFS=$as_save_IFS
3864
3865if test $ac_prog_rejected = yes; then
3866  # We found a bogon in the path, so make sure we never use it.
3867  set dummy $ac_cv_prog_CC
3868  shift
3869  if test $# != 0; then
3870    # We chose a different compiler from the bogus one.
3871    # However, it has the same basename, so the bogon will be chosen
3872    # first if we set CC to just the basename; use the full file name.
3873    shift
3874    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3875  fi
3876fi
3877fi ;;
3878esac
3879fi
3880CC=$ac_cv_prog_CC
3881if test -n "$CC"; then
3882  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3883printf "%s\n" "$CC" >&6; }
3884else
3885  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886printf "%s\n" "no" >&6; }
3887fi
3888
3889
3890fi
3891if test -z "$CC"; then
3892  if test -n "$ac_tool_prefix"; then
3893  for ac_prog in cl.exe
3894  do
3895    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3896set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3898printf %s "checking for $ac_word... " >&6; }
3899if test ${ac_cv_prog_CC+y}
3900then :
3901  printf %s "(cached) " >&6
3902else case e in #(
3903  e) if test -n "$CC"; then
3904  ac_cv_prog_CC="$CC" # Let the user override the test.
3905else
3906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907for as_dir in $PATH
3908do
3909  IFS=$as_save_IFS
3910  case $as_dir in #(((
3911    '') as_dir=./ ;;
3912    */) ;;
3913    *) as_dir=$as_dir/ ;;
3914  esac
3915    for ac_exec_ext in '' $ac_executable_extensions; do
3916  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3917    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3918    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3919    break 2
3920  fi
3921done
3922  done
3923IFS=$as_save_IFS
3924
3925fi ;;
3926esac
3927fi
3928CC=$ac_cv_prog_CC
3929if test -n "$CC"; then
3930  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3931printf "%s\n" "$CC" >&6; }
3932else
3933  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3934printf "%s\n" "no" >&6; }
3935fi
3936
3937
3938    test -n "$CC" && break
3939  done
3940fi
3941if test -z "$CC"; then
3942  ac_ct_CC=$CC
3943  for ac_prog in cl.exe
3944do
3945  # Extract the first word of "$ac_prog", so it can be a program name with args.
3946set dummy $ac_prog; ac_word=$2
3947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3948printf %s "checking for $ac_word... " >&6; }
3949if test ${ac_cv_prog_ac_ct_CC+y}
3950then :
3951  printf %s "(cached) " >&6
3952else case e in #(
3953  e) if test -n "$ac_ct_CC"; then
3954  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3955else
3956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957for as_dir in $PATH
3958do
3959  IFS=$as_save_IFS
3960  case $as_dir in #(((
3961    '') as_dir=./ ;;
3962    */) ;;
3963    *) as_dir=$as_dir/ ;;
3964  esac
3965    for ac_exec_ext in '' $ac_executable_extensions; do
3966  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3967    ac_cv_prog_ac_ct_CC="$ac_prog"
3968    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3969    break 2
3970  fi
3971done
3972  done
3973IFS=$as_save_IFS
3974
3975fi ;;
3976esac
3977fi
3978ac_ct_CC=$ac_cv_prog_ac_ct_CC
3979if test -n "$ac_ct_CC"; then
3980  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3981printf "%s\n" "$ac_ct_CC" >&6; }
3982else
3983  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3984printf "%s\n" "no" >&6; }
3985fi
3986
3987
3988  test -n "$ac_ct_CC" && break
3989done
3990
3991  if test "x$ac_ct_CC" = x; then
3992    CC=""
3993  else
3994    case $cross_compiling:$ac_tool_warned in
3995yes:)
3996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3997printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3998ac_tool_warned=yes ;;
3999esac
4000    CC=$ac_ct_CC
4001  fi
4002fi
4003
4004fi
4005if test -z "$CC"; then
4006  if test -n "$ac_tool_prefix"; then
4007  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4008set dummy ${ac_tool_prefix}clang; ac_word=$2
4009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4010printf %s "checking for $ac_word... " >&6; }
4011if test ${ac_cv_prog_CC+y}
4012then :
4013  printf %s "(cached) " >&6
4014else case e in #(
4015  e) if test -n "$CC"; then
4016  ac_cv_prog_CC="$CC" # Let the user override the test.
4017else
4018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019for as_dir in $PATH
4020do
4021  IFS=$as_save_IFS
4022  case $as_dir in #(((
4023    '') as_dir=./ ;;
4024    */) ;;
4025    *) as_dir=$as_dir/ ;;
4026  esac
4027    for ac_exec_ext in '' $ac_executable_extensions; do
4028  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4029    ac_cv_prog_CC="${ac_tool_prefix}clang"
4030    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4031    break 2
4032  fi
4033done
4034  done
4035IFS=$as_save_IFS
4036
4037fi ;;
4038esac
4039fi
4040CC=$ac_cv_prog_CC
4041if test -n "$CC"; then
4042  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4043printf "%s\n" "$CC" >&6; }
4044else
4045  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4046printf "%s\n" "no" >&6; }
4047fi
4048
4049
4050fi
4051if test -z "$ac_cv_prog_CC"; then
4052  ac_ct_CC=$CC
4053  # Extract the first word of "clang", so it can be a program name with args.
4054set dummy clang; ac_word=$2
4055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056printf %s "checking for $ac_word... " >&6; }
4057if test ${ac_cv_prog_ac_ct_CC+y}
4058then :
4059  printf %s "(cached) " >&6
4060else case e in #(
4061  e) if test -n "$ac_ct_CC"; then
4062  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4063else
4064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065for as_dir in $PATH
4066do
4067  IFS=$as_save_IFS
4068  case $as_dir in #(((
4069    '') as_dir=./ ;;
4070    */) ;;
4071    *) as_dir=$as_dir/ ;;
4072  esac
4073    for ac_exec_ext in '' $ac_executable_extensions; do
4074  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4075    ac_cv_prog_ac_ct_CC="clang"
4076    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4077    break 2
4078  fi
4079done
4080  done
4081IFS=$as_save_IFS
4082
4083fi ;;
4084esac
4085fi
4086ac_ct_CC=$ac_cv_prog_ac_ct_CC
4087if test -n "$ac_ct_CC"; then
4088  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4089printf "%s\n" "$ac_ct_CC" >&6; }
4090else
4091  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4092printf "%s\n" "no" >&6; }
4093fi
4094
4095  if test "x$ac_ct_CC" = x; then
4096    CC=""
4097  else
4098    case $cross_compiling:$ac_tool_warned in
4099yes:)
4100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4101printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4102ac_tool_warned=yes ;;
4103esac
4104    CC=$ac_ct_CC
4105  fi
4106else
4107  CC="$ac_cv_prog_CC"
4108fi
4109
4110fi
4111
4112
4113test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4114printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4115as_fn_error $? "no acceptable C compiler found in \$PATH
4116See 'config.log' for more details" "$LINENO" 5; }
4117
4118# Provide some information about the compiler.
4119printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4120set X $ac_compile
4121ac_compiler=$2
4122for ac_option in --version -v -V -qversion -version; do
4123  { { ac_try="$ac_compiler $ac_option >&5"
4124case "(($ac_try" in
4125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126  *) ac_try_echo=$ac_try;;
4127esac
4128eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4129printf "%s\n" "$ac_try_echo"; } >&5
4130  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4131  ac_status=$?
4132  if test -s conftest.err; then
4133    sed '10a\
4134... rest of stderr output deleted ...
4135         10q' conftest.err >conftest.er1
4136    cat conftest.er1 >&5
4137  fi
4138  rm -f conftest.er1 conftest.err
4139  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4140  test $ac_status = 0; }
4141done
4142
4143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144/* end confdefs.h.  */
4145
4146int
4147main (void)
4148{
4149
4150  ;
4151  return 0;
4152}
4153_ACEOF
4154ac_clean_files_save=$ac_clean_files
4155ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4156# Try to create an executable without -o first, disregard a.out.
4157# It will help us diagnose broken compilers, and finding out an intuition
4158# of exeext.
4159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4160printf %s "checking whether the C compiler works... " >&6; }
4161ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4162
4163# The possible output files:
4164ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4165
4166ac_rmfiles=
4167for ac_file in $ac_files
4168do
4169  case $ac_file in
4170    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4171    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4172  esac
4173done
4174rm -f $ac_rmfiles
4175
4176if { { ac_try="$ac_link_default"
4177case "(($ac_try" in
4178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4179  *) ac_try_echo=$ac_try;;
4180esac
4181eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4182printf "%s\n" "$ac_try_echo"; } >&5
4183  (eval "$ac_link_default") 2>&5
4184  ac_status=$?
4185  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4186  test $ac_status = 0; }
4187then :
4188  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4189# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4190# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4191# so that the user can short-circuit this test for compilers unknown to
4192# Autoconf.
4193for ac_file in $ac_files ''
4194do
4195  test -f "$ac_file" || continue
4196  case $ac_file in
4197    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4198	;;
4199    [ab].out )
4200	# We found the default executable, but exeext='' is most
4201	# certainly right.
4202	break;;
4203    *.* )
4204	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4205	then :; else
4206	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4207	fi
4208	# We set ac_cv_exeext here because the later test for it is not
4209	# safe: cross compilers may not add the suffix if given an '-o'
4210	# argument, so we may need to know it at that point already.
4211	# Even if this section looks crufty: it has the advantage of
4212	# actually working.
4213	break;;
4214    * )
4215	break;;
4216  esac
4217done
4218test "$ac_cv_exeext" = no && ac_cv_exeext=
4219
4220else case e in #(
4221  e) ac_file='' ;;
4222esac
4223fi
4224if test -z "$ac_file"
4225then :
4226  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227printf "%s\n" "no" >&6; }
4228printf "%s\n" "$as_me: failed program was:" >&5
4229sed 's/^/| /' conftest.$ac_ext >&5
4230
4231{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4232printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4233as_fn_error 77 "C compiler cannot create executables
4234See 'config.log' for more details" "$LINENO" 5; }
4235else case e in #(
4236  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4237printf "%s\n" "yes" >&6; } ;;
4238esac
4239fi
4240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4241printf %s "checking for C compiler default output file name... " >&6; }
4242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4243printf "%s\n" "$ac_file" >&6; }
4244ac_exeext=$ac_cv_exeext
4245
4246rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4247ac_clean_files=$ac_clean_files_save
4248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4249printf %s "checking for suffix of executables... " >&6; }
4250if { { ac_try="$ac_link"
4251case "(($ac_try" in
4252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253  *) ac_try_echo=$ac_try;;
4254esac
4255eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4256printf "%s\n" "$ac_try_echo"; } >&5
4257  (eval "$ac_link") 2>&5
4258  ac_status=$?
4259  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4260  test $ac_status = 0; }
4261then :
4262  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4263# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
4264# work properly (i.e., refer to 'conftest.exe'), while it won't with
4265# 'rm'.
4266for ac_file in conftest.exe conftest conftest.*; do
4267  test -f "$ac_file" || continue
4268  case $ac_file in
4269    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4270    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4271	  break;;
4272    * ) break;;
4273  esac
4274done
4275else case e in #(
4276  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4277printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4278as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4279See 'config.log' for more details" "$LINENO" 5; } ;;
4280esac
4281fi
4282rm -f conftest conftest$ac_cv_exeext
4283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4284printf "%s\n" "$ac_cv_exeext" >&6; }
4285
4286rm -f conftest.$ac_ext
4287EXEEXT=$ac_cv_exeext
4288ac_exeext=$EXEEXT
4289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290/* end confdefs.h.  */
4291#include <stdio.h>
4292int
4293main (void)
4294{
4295FILE *f = fopen ("conftest.out", "w");
4296 if (!f)
4297  return 1;
4298 return ferror (f) || fclose (f) != 0;
4299
4300  ;
4301  return 0;
4302}
4303_ACEOF
4304ac_clean_files="$ac_clean_files conftest.out"
4305# Check that the compiler produces executables we can run.  If not, either
4306# the compiler is broken, or we cross compile.
4307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4308printf %s "checking whether we are cross compiling... " >&6; }
4309if test "$cross_compiling" != yes; then
4310  { { ac_try="$ac_link"
4311case "(($ac_try" in
4312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313  *) ac_try_echo=$ac_try;;
4314esac
4315eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4316printf "%s\n" "$ac_try_echo"; } >&5
4317  (eval "$ac_link") 2>&5
4318  ac_status=$?
4319  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4320  test $ac_status = 0; }
4321  if { ac_try='./conftest$ac_cv_exeext'
4322  { { case "(($ac_try" in
4323  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324  *) ac_try_echo=$ac_try;;
4325esac
4326eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4327printf "%s\n" "$ac_try_echo"; } >&5
4328  (eval "$ac_try") 2>&5
4329  ac_status=$?
4330  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4331  test $ac_status = 0; }; }; then
4332    cross_compiling=no
4333  else
4334    if test "$cross_compiling" = maybe; then
4335	cross_compiling=yes
4336    else
4337	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4338printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4339as_fn_error 77 "cannot run C compiled programs.
4340If you meant to cross compile, use '--host'.
4341See 'config.log' for more details" "$LINENO" 5; }
4342    fi
4343  fi
4344fi
4345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4346printf "%s\n" "$cross_compiling" >&6; }
4347
4348rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4349  conftest.o conftest.obj conftest.out
4350ac_clean_files=$ac_clean_files_save
4351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4352printf %s "checking for suffix of object files... " >&6; }
4353if test ${ac_cv_objext+y}
4354then :
4355  printf %s "(cached) " >&6
4356else case e in #(
4357  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358/* end confdefs.h.  */
4359
4360int
4361main (void)
4362{
4363
4364  ;
4365  return 0;
4366}
4367_ACEOF
4368rm -f conftest.o conftest.obj
4369if { { ac_try="$ac_compile"
4370case "(($ac_try" in
4371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372  *) ac_try_echo=$ac_try;;
4373esac
4374eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4375printf "%s\n" "$ac_try_echo"; } >&5
4376  (eval "$ac_compile") 2>&5
4377  ac_status=$?
4378  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4379  test $ac_status = 0; }
4380then :
4381  for ac_file in conftest.o conftest.obj conftest.*; do
4382  test -f "$ac_file" || continue;
4383  case $ac_file in
4384    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4385    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4386       break;;
4387  esac
4388done
4389else case e in #(
4390  e) printf "%s\n" "$as_me: failed program was:" >&5
4391sed 's/^/| /' conftest.$ac_ext >&5
4392
4393{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4394printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4395as_fn_error $? "cannot compute suffix of object files: cannot compile
4396See 'config.log' for more details" "$LINENO" 5; } ;;
4397esac
4398fi
4399rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4400esac
4401fi
4402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4403printf "%s\n" "$ac_cv_objext" >&6; }
4404OBJEXT=$ac_cv_objext
4405ac_objext=$OBJEXT
4406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4407printf %s "checking whether the compiler supports GNU C... " >&6; }
4408if test ${ac_cv_c_compiler_gnu+y}
4409then :
4410  printf %s "(cached) " >&6
4411else case e in #(
4412  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413/* end confdefs.h.  */
4414
4415int
4416main (void)
4417{
4418#ifndef __GNUC__
4419       choke me
4420#endif
4421
4422  ;
4423  return 0;
4424}
4425_ACEOF
4426if ac_fn_c_try_compile "$LINENO"
4427then :
4428  ac_compiler_gnu=yes
4429else case e in #(
4430  e) ac_compiler_gnu=no ;;
4431esac
4432fi
4433rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4434ac_cv_c_compiler_gnu=$ac_compiler_gnu
4435 ;;
4436esac
4437fi
4438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4439printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4440ac_compiler_gnu=$ac_cv_c_compiler_gnu
4441
4442if test $ac_compiler_gnu = yes; then
4443  GCC=yes
4444else
4445  GCC=
4446fi
4447ac_test_CFLAGS=${CFLAGS+y}
4448ac_save_CFLAGS=$CFLAGS
4449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4450printf %s "checking whether $CC accepts -g... " >&6; }
4451if test ${ac_cv_prog_cc_g+y}
4452then :
4453  printf %s "(cached) " >&6
4454else case e in #(
4455  e) ac_save_c_werror_flag=$ac_c_werror_flag
4456   ac_c_werror_flag=yes
4457   ac_cv_prog_cc_g=no
4458   CFLAGS="-g"
4459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460/* end confdefs.h.  */
4461
4462int
4463main (void)
4464{
4465
4466  ;
4467  return 0;
4468}
4469_ACEOF
4470if ac_fn_c_try_compile "$LINENO"
4471then :
4472  ac_cv_prog_cc_g=yes
4473else case e in #(
4474  e) CFLAGS=""
4475      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476/* end confdefs.h.  */
4477
4478int
4479main (void)
4480{
4481
4482  ;
4483  return 0;
4484}
4485_ACEOF
4486if ac_fn_c_try_compile "$LINENO"
4487then :
4488
4489else case e in #(
4490  e) ac_c_werror_flag=$ac_save_c_werror_flag
4491	 CFLAGS="-g"
4492	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493/* end confdefs.h.  */
4494
4495int
4496main (void)
4497{
4498
4499  ;
4500  return 0;
4501}
4502_ACEOF
4503if ac_fn_c_try_compile "$LINENO"
4504then :
4505  ac_cv_prog_cc_g=yes
4506fi
4507rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4508esac
4509fi
4510rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4511esac
4512fi
4513rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4514   ac_c_werror_flag=$ac_save_c_werror_flag ;;
4515esac
4516fi
4517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4518printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4519if test $ac_test_CFLAGS; then
4520  CFLAGS=$ac_save_CFLAGS
4521elif test $ac_cv_prog_cc_g = yes; then
4522  if test "$GCC" = yes; then
4523    CFLAGS="-g -O2"
4524  else
4525    CFLAGS="-g"
4526  fi
4527else
4528  if test "$GCC" = yes; then
4529    CFLAGS="-O2"
4530  else
4531    CFLAGS=
4532  fi
4533fi
4534ac_prog_cc_stdc=no
4535if test x$ac_prog_cc_stdc = xno
4536then :
4537  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4538printf %s "checking for $CC option to enable C11 features... " >&6; }
4539if test ${ac_cv_prog_cc_c11+y}
4540then :
4541  printf %s "(cached) " >&6
4542else case e in #(
4543  e) ac_cv_prog_cc_c11=no
4544ac_save_CC=$CC
4545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4546/* end confdefs.h.  */
4547$ac_c_conftest_c11_program
4548_ACEOF
4549for ac_arg in '' -std=gnu11
4550do
4551  CC="$ac_save_CC $ac_arg"
4552  if ac_fn_c_try_compile "$LINENO"
4553then :
4554  ac_cv_prog_cc_c11=$ac_arg
4555fi
4556rm -f core conftest.err conftest.$ac_objext conftest.beam
4557  test "x$ac_cv_prog_cc_c11" != "xno" && break
4558done
4559rm -f conftest.$ac_ext
4560CC=$ac_save_CC ;;
4561esac
4562fi
4563
4564if test "x$ac_cv_prog_cc_c11" = xno
4565then :
4566  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4567printf "%s\n" "unsupported" >&6; }
4568else case e in #(
4569  e) if test "x$ac_cv_prog_cc_c11" = x
4570then :
4571  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4572printf "%s\n" "none needed" >&6; }
4573else case e in #(
4574  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4575printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4576     CC="$CC $ac_cv_prog_cc_c11" ;;
4577esac
4578fi
4579  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4580  ac_prog_cc_stdc=c11 ;;
4581esac
4582fi
4583fi
4584if test x$ac_prog_cc_stdc = xno
4585then :
4586  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4587printf %s "checking for $CC option to enable C99 features... " >&6; }
4588if test ${ac_cv_prog_cc_c99+y}
4589then :
4590  printf %s "(cached) " >&6
4591else case e in #(
4592  e) ac_cv_prog_cc_c99=no
4593ac_save_CC=$CC
4594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595/* end confdefs.h.  */
4596$ac_c_conftest_c99_program
4597_ACEOF
4598for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4599do
4600  CC="$ac_save_CC $ac_arg"
4601  if ac_fn_c_try_compile "$LINENO"
4602then :
4603  ac_cv_prog_cc_c99=$ac_arg
4604fi
4605rm -f core conftest.err conftest.$ac_objext conftest.beam
4606  test "x$ac_cv_prog_cc_c99" != "xno" && break
4607done
4608rm -f conftest.$ac_ext
4609CC=$ac_save_CC ;;
4610esac
4611fi
4612
4613if test "x$ac_cv_prog_cc_c99" = xno
4614then :
4615  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4616printf "%s\n" "unsupported" >&6; }
4617else case e in #(
4618  e) if test "x$ac_cv_prog_cc_c99" = x
4619then :
4620  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4621printf "%s\n" "none needed" >&6; }
4622else case e in #(
4623  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4624printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4625     CC="$CC $ac_cv_prog_cc_c99" ;;
4626esac
4627fi
4628  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4629  ac_prog_cc_stdc=c99 ;;
4630esac
4631fi
4632fi
4633if test x$ac_prog_cc_stdc = xno
4634then :
4635  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4636printf %s "checking for $CC option to enable C89 features... " >&6; }
4637if test ${ac_cv_prog_cc_c89+y}
4638then :
4639  printf %s "(cached) " >&6
4640else case e in #(
4641  e) ac_cv_prog_cc_c89=no
4642ac_save_CC=$CC
4643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644/* end confdefs.h.  */
4645$ac_c_conftest_c89_program
4646_ACEOF
4647for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4648do
4649  CC="$ac_save_CC $ac_arg"
4650  if ac_fn_c_try_compile "$LINENO"
4651then :
4652  ac_cv_prog_cc_c89=$ac_arg
4653fi
4654rm -f core conftest.err conftest.$ac_objext conftest.beam
4655  test "x$ac_cv_prog_cc_c89" != "xno" && break
4656done
4657rm -f conftest.$ac_ext
4658CC=$ac_save_CC ;;
4659esac
4660fi
4661
4662if test "x$ac_cv_prog_cc_c89" = xno
4663then :
4664  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4665printf "%s\n" "unsupported" >&6; }
4666else case e in #(
4667  e) if test "x$ac_cv_prog_cc_c89" = x
4668then :
4669  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4670printf "%s\n" "none needed" >&6; }
4671else case e in #(
4672  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4673printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4674     CC="$CC $ac_cv_prog_cc_c89" ;;
4675esac
4676fi
4677  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4678  ac_prog_cc_stdc=c89 ;;
4679esac
4680fi
4681fi
4682
4683ac_ext=c
4684ac_cpp='$CPP $CPPFLAGS'
4685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4687ac_compiler_gnu=$ac_cv_c_compiler_gnu
4688
4689
4690  ac_ext=c
4691ac_cpp='$CPP $CPPFLAGS'
4692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4694ac_compiler_gnu=$ac_cv_c_compiler_gnu
4695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4696printf %s "checking whether $CC understands -c and -o together... " >&6; }
4697if test ${am_cv_prog_cc_c_o+y}
4698then :
4699  printf %s "(cached) " >&6
4700else case e in #(
4701  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702/* end confdefs.h.  */
4703
4704int
4705main (void)
4706{
4707
4708  ;
4709  return 0;
4710}
4711_ACEOF
4712  # Make sure it works both with $CC and with simple cc.
4713  # Following AC_PROG_CC_C_O, we do the test twice because some
4714  # compilers refuse to overwrite an existing .o file with -o,
4715  # though they will create one.
4716  am_cv_prog_cc_c_o=yes
4717  for am_i in 1 2; do
4718    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4719   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4720   ac_status=$?
4721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722   (exit $ac_status); } \
4723         && test -f conftest2.$ac_objext; then
4724      : OK
4725    else
4726      am_cv_prog_cc_c_o=no
4727      break
4728    fi
4729  done
4730  rm -f core conftest*
4731  unset am_i ;;
4732esac
4733fi
4734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4735printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4736if test "$am_cv_prog_cc_c_o" != yes; then
4737   # Losing compiler, so override with the script.
4738   # FIXME: It is wrong to rewrite CC.
4739   # But if we don't then we get into trouble of one sort or another.
4740   # A longer-term fix would be to have automake use am__CC in this case,
4741   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4742   CC="$am_aux_dir/compile $CC"
4743fi
4744ac_ext=c
4745ac_cpp='$CPP $CPPFLAGS'
4746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4748ac_compiler_gnu=$ac_cv_c_compiler_gnu
4749
4750
4751depcc="$CC"   am_compiler_list=
4752
4753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4754printf %s "checking dependency style of $depcc... " >&6; }
4755if test ${am_cv_CC_dependencies_compiler_type+y}
4756then :
4757  printf %s "(cached) " >&6
4758else case e in #(
4759  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4760  # We make a subdir and do the tests there.  Otherwise we can end up
4761  # making bogus files that we don't know about and never remove.  For
4762  # instance it was reported that on HP-UX the gcc test will end up
4763  # making a dummy file named 'D' -- because '-MD' means "put the output
4764  # in D".
4765  rm -rf conftest.dir
4766  mkdir conftest.dir
4767  # Copy depcomp to subdir because otherwise we won't find it if we're
4768  # using a relative directory.
4769  cp "$am_depcomp" conftest.dir
4770  cd conftest.dir
4771  # We will build objects and dependencies in a subdirectory because
4772  # it helps to detect inapplicable dependency modes.  For instance
4773  # both Tru64's cc and ICC support -MD to output dependencies as a
4774  # side effect of compilation, but ICC will put the dependencies in
4775  # the current directory while Tru64 will put them in the object
4776  # directory.
4777  mkdir sub
4778
4779  am_cv_CC_dependencies_compiler_type=none
4780  if test "$am_compiler_list" = ""; then
4781     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4782  fi
4783  am__universal=false
4784  case " $depcc " in #(
4785     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4786     esac
4787
4788  for depmode in $am_compiler_list; do
4789    # Setup a source with many dependencies, because some compilers
4790    # like to wrap large dependency lists on column 80 (with \), and
4791    # we should not choose a depcomp mode which is confused by this.
4792    #
4793    # We need to recreate these files for each test, as the compiler may
4794    # overwrite some of them when testing with obscure command lines.
4795    # This happens at least with the AIX C compiler.
4796    : > sub/conftest.c
4797    for i in 1 2 3 4 5 6; do
4798      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4799      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4800      # Solaris 10 /bin/sh.
4801      echo '/* dummy */' > sub/conftst$i.h
4802    done
4803    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4804
4805    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4806    # mode.  It turns out that the SunPro C++ compiler does not properly
4807    # handle '-M -o', and we need to detect this.  Also, some Intel
4808    # versions had trouble with output in subdirs.
4809    am__obj=sub/conftest.${OBJEXT-o}
4810    am__minus_obj="-o $am__obj"
4811    case $depmode in
4812    gcc)
4813      # This depmode causes a compiler race in universal mode.
4814      test "$am__universal" = false || continue
4815      ;;
4816    nosideeffect)
4817      # After this tag, mechanisms are not by side-effect, so they'll
4818      # only be used when explicitly requested.
4819      if test "x$enable_dependency_tracking" = xyes; then
4820	continue
4821      else
4822	break
4823      fi
4824      ;;
4825    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4826      # This compiler won't grok '-c -o', but also, the minuso test has
4827      # not run yet.  These depmodes are late enough in the game, and
4828      # so weak that their functioning should not be impacted.
4829      am__obj=conftest.${OBJEXT-o}
4830      am__minus_obj=
4831      ;;
4832    none) break ;;
4833    esac
4834    if depmode=$depmode \
4835       source=sub/conftest.c object=$am__obj \
4836       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4837       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4838         >/dev/null 2>conftest.err &&
4839       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4840       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4841       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4842       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4843      # icc doesn't choke on unknown options, it will just issue warnings
4844      # or remarks (even with -Werror).  So we grep stderr for any message
4845      # that says an option was ignored or not supported.
4846      # When given -MP, icc 7.0 and 7.1 complain thus:
4847      #   icc: Command line warning: ignoring option '-M'; no argument required
4848      # The diagnosis changed in icc 8.0:
4849      #   icc: Command line remark: option '-MP' not supported
4850      if (grep 'ignoring option' conftest.err ||
4851          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4852        am_cv_CC_dependencies_compiler_type=$depmode
4853        break
4854      fi
4855    fi
4856  done
4857
4858  cd ..
4859  rm -rf conftest.dir
4860else
4861  am_cv_CC_dependencies_compiler_type=none
4862fi
4863 ;;
4864esac
4865fi
4866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4867printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4868CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4869
4870 if
4871  test "x$enable_dependency_tracking" != xno \
4872  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4873  am__fastdepCC_TRUE=
4874  am__fastdepCC_FALSE='#'
4875else
4876  am__fastdepCC_TRUE='#'
4877  am__fastdepCC_FALSE=
4878fi
4879
4880
4881
4882ac_header= ac_cache=
4883for ac_item in $ac_header_c_list
4884do
4885  if test $ac_cache; then
4886    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4887    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4888      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4889    fi
4890    ac_header= ac_cache=
4891  elif test $ac_header; then
4892    ac_cache=$ac_item
4893  else
4894    ac_header=$ac_item
4895  fi
4896done
4897
4898
4899
4900
4901
4902
4903
4904
4905if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4906then :
4907
4908printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4909
4910fi
4911
4912
4913
4914
4915
4916
4917  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4918printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4919if test ${ac_cv_safe_to_define___extensions__+y}
4920then :
4921  printf %s "(cached) " >&6
4922else case e in #(
4923  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924/* end confdefs.h.  */
4925
4926#         define __EXTENSIONS__ 1
4927          $ac_includes_default
4928int
4929main (void)
4930{
4931
4932  ;
4933  return 0;
4934}
4935_ACEOF
4936if ac_fn_c_try_compile "$LINENO"
4937then :
4938  ac_cv_safe_to_define___extensions__=yes
4939else case e in #(
4940  e) ac_cv_safe_to_define___extensions__=no ;;
4941esac
4942fi
4943rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4944esac
4945fi
4946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4947printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4948
4949  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4950printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4951if test ${ac_cv_should_define__xopen_source+y}
4952then :
4953  printf %s "(cached) " >&6
4954else case e in #(
4955  e) ac_cv_should_define__xopen_source=no
4956    if test $ac_cv_header_wchar_h = yes
4957then :
4958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959/* end confdefs.h.  */
4960
4961          #include <wchar.h>
4962          mbstate_t x;
4963int
4964main (void)
4965{
4966
4967  ;
4968  return 0;
4969}
4970_ACEOF
4971if ac_fn_c_try_compile "$LINENO"
4972then :
4973
4974else case e in #(
4975  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976/* end confdefs.h.  */
4977
4978            #define _XOPEN_SOURCE 500
4979            #include <wchar.h>
4980            mbstate_t x;
4981int
4982main (void)
4983{
4984
4985  ;
4986  return 0;
4987}
4988_ACEOF
4989if ac_fn_c_try_compile "$LINENO"
4990then :
4991  ac_cv_should_define__xopen_source=yes
4992fi
4993rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4994esac
4995fi
4996rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4997fi ;;
4998esac
4999fi
5000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5001printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5002
5003  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5004
5005  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5006
5007  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5008
5009  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5010
5011  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5012
5013  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5014
5015  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5016
5017  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5018
5019  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5020
5021  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5022
5023  printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
5024
5025  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5026
5027  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5028
5029  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5030
5031  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5032
5033  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5034
5035  if test $ac_cv_header_minix_config_h = yes
5036then :
5037  MINIX=yes
5038    printf "%s\n" "#define _MINIX 1" >>confdefs.h
5039
5040    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5041
5042    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5043
5044else case e in #(
5045  e) MINIX= ;;
5046esac
5047fi
5048  if test $ac_cv_safe_to_define___extensions__ = yes
5049then :
5050  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5051
5052fi
5053  if test $ac_cv_should_define__xopen_source = yes
5054then :
5055  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5056
5057fi
5058
5059
5060# Initialize libtool
5061case `pwd` in
5062  *\ * | *\	*)
5063    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5064printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5065esac
5066
5067
5068
5069macro_version='2.4.7'
5070macro_revision='2.4.7'
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085ltmain=$ac_aux_dir/ltmain.sh
5086
5087
5088
5089  # Make sure we can run config.sub.
5090$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5091  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5092
5093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5094printf %s "checking build system type... " >&6; }
5095if test ${ac_cv_build+y}
5096then :
5097  printf %s "(cached) " >&6
5098else case e in #(
5099  e) ac_build_alias=$build_alias
5100test "x$ac_build_alias" = x &&
5101  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5102test "x$ac_build_alias" = x &&
5103  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5104ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5105  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5106 ;;
5107esac
5108fi
5109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5110printf "%s\n" "$ac_cv_build" >&6; }
5111case $ac_cv_build in
5112*-*-*) ;;
5113*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5114esac
5115build=$ac_cv_build
5116ac_save_IFS=$IFS; IFS='-'
5117set x $ac_cv_build
5118shift
5119build_cpu=$1
5120build_vendor=$2
5121shift; shift
5122# Remember, the first character of IFS is used to create $*,
5123# except with old shells:
5124build_os=$*
5125IFS=$ac_save_IFS
5126case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5127
5128
5129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5130printf %s "checking host system type... " >&6; }
5131if test ${ac_cv_host+y}
5132then :
5133  printf %s "(cached) " >&6
5134else case e in #(
5135  e) if test "x$host_alias" = x; then
5136  ac_cv_host=$ac_cv_build
5137else
5138  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5139    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5140fi
5141 ;;
5142esac
5143fi
5144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5145printf "%s\n" "$ac_cv_host" >&6; }
5146case $ac_cv_host in
5147*-*-*) ;;
5148*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5149esac
5150host=$ac_cv_host
5151ac_save_IFS=$IFS; IFS='-'
5152set x $ac_cv_host
5153shift
5154host_cpu=$1
5155host_vendor=$2
5156shift; shift
5157# Remember, the first character of IFS is used to create $*,
5158# except with old shells:
5159host_os=$*
5160IFS=$ac_save_IFS
5161case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5162
5163
5164# Backslashify metacharacters that are still active within
5165# double-quoted strings.
5166sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5167
5168# Same as above, but do not quote variable references.
5169double_quote_subst='s/\(["`\\]\)/\\\1/g'
5170
5171# Sed substitution to delay expansion of an escaped shell variable in a
5172# double_quote_subst'ed string.
5173delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5174
5175# Sed substitution to delay expansion of an escaped single quote.
5176delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5177
5178# Sed substitution to avoid accidental globbing in evaled expressions
5179no_glob_subst='s/\*/\\\*/g'
5180
5181ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5182ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5183ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5184
5185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5186printf %s "checking how to print strings... " >&6; }
5187# Test print first, because it will be a builtin if present.
5188if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5189   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5190  ECHO='print -r --'
5191elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5192  ECHO='printf %s\n'
5193else
5194  # Use this function as a fallback that always works.
5195  func_fallback_echo ()
5196  {
5197    eval 'cat <<_LTECHO_EOF
5198$1
5199_LTECHO_EOF'
5200  }
5201  ECHO='func_fallback_echo'
5202fi
5203
5204# func_echo_all arg...
5205# Invoke $ECHO with all args, space-separated.
5206func_echo_all ()
5207{
5208    $ECHO ""
5209}
5210
5211case $ECHO in
5212  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5213printf "%s\n" "printf" >&6; } ;;
5214  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5215printf "%s\n" "print -r" >&6; } ;;
5216  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5217printf "%s\n" "cat" >&6; } ;;
5218esac
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5234printf %s "checking for a sed that does not truncate output... " >&6; }
5235if test ${ac_cv_path_SED+y}
5236then :
5237  printf %s "(cached) " >&6
5238else case e in #(
5239  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5240     for ac_i in 1 2 3 4 5 6 7; do
5241       ac_script="$ac_script$as_nl$ac_script"
5242     done
5243     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5244     { ac_script=; unset ac_script;}
5245     if test -z "$SED"; then
5246  ac_path_SED_found=false
5247  # Loop through the user's path and test for each of PROGNAME-LIST
5248  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249for as_dir in $PATH
5250do
5251  IFS=$as_save_IFS
5252  case $as_dir in #(((
5253    '') as_dir=./ ;;
5254    */) ;;
5255    *) as_dir=$as_dir/ ;;
5256  esac
5257    for ac_prog in sed gsed
5258   do
5259    for ac_exec_ext in '' $ac_executable_extensions; do
5260      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5261      as_fn_executable_p "$ac_path_SED" || continue
5262# Check for GNU ac_path_SED and select it if it is found.
5263  # Check for GNU $ac_path_SED
5264case `"$ac_path_SED" --version 2>&1` in #(
5265*GNU*)
5266  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5267#(
5268*)
5269  ac_count=0
5270  printf %s 0123456789 >"conftest.in"
5271  while :
5272  do
5273    cat "conftest.in" "conftest.in" >"conftest.tmp"
5274    mv "conftest.tmp" "conftest.in"
5275    cp "conftest.in" "conftest.nl"
5276    printf "%s\n" '' >> "conftest.nl"
5277    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5278    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5279    as_fn_arith $ac_count + 1 && ac_count=$as_val
5280    if test $ac_count -gt ${ac_path_SED_max-0}; then
5281      # Best one so far, save it but keep looking for a better one
5282      ac_cv_path_SED="$ac_path_SED"
5283      ac_path_SED_max=$ac_count
5284    fi
5285    # 10*(2^10) chars as input seems more than enough
5286    test $ac_count -gt 10 && break
5287  done
5288  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5289esac
5290
5291      $ac_path_SED_found && break 3
5292    done
5293  done
5294  done
5295IFS=$as_save_IFS
5296  if test -z "$ac_cv_path_SED"; then
5297    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5298  fi
5299else
5300  ac_cv_path_SED=$SED
5301fi
5302 ;;
5303esac
5304fi
5305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5306printf "%s\n" "$ac_cv_path_SED" >&6; }
5307 SED="$ac_cv_path_SED"
5308  rm -f conftest.sed
5309
5310test -z "$SED" && SED=sed
5311Xsed="$SED -e 1s/^X//"
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5324printf %s "checking for grep that handles long lines and -e... " >&6; }
5325if test ${ac_cv_path_GREP+y}
5326then :
5327  printf %s "(cached) " >&6
5328else case e in #(
5329  e) if test -z "$GREP"; then
5330  ac_path_GREP_found=false
5331  # Loop through the user's path and test for each of PROGNAME-LIST
5332  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5334do
5335  IFS=$as_save_IFS
5336  case $as_dir in #(((
5337    '') as_dir=./ ;;
5338    */) ;;
5339    *) as_dir=$as_dir/ ;;
5340  esac
5341    for ac_prog in grep ggrep
5342   do
5343    for ac_exec_ext in '' $ac_executable_extensions; do
5344      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5345      as_fn_executable_p "$ac_path_GREP" || continue
5346# Check for GNU ac_path_GREP and select it if it is found.
5347  # Check for GNU $ac_path_GREP
5348case `"$ac_path_GREP" --version 2>&1` in #(
5349*GNU*)
5350  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5351#(
5352*)
5353  ac_count=0
5354  printf %s 0123456789 >"conftest.in"
5355  while :
5356  do
5357    cat "conftest.in" "conftest.in" >"conftest.tmp"
5358    mv "conftest.tmp" "conftest.in"
5359    cp "conftest.in" "conftest.nl"
5360    printf "%s\n" 'GREP' >> "conftest.nl"
5361    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5362    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5363    as_fn_arith $ac_count + 1 && ac_count=$as_val
5364    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5365      # Best one so far, save it but keep looking for a better one
5366      ac_cv_path_GREP="$ac_path_GREP"
5367      ac_path_GREP_max=$ac_count
5368    fi
5369    # 10*(2^10) chars as input seems more than enough
5370    test $ac_count -gt 10 && break
5371  done
5372  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5373esac
5374
5375      $ac_path_GREP_found && break 3
5376    done
5377  done
5378  done
5379IFS=$as_save_IFS
5380  if test -z "$ac_cv_path_GREP"; then
5381    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5382  fi
5383else
5384  ac_cv_path_GREP=$GREP
5385fi
5386 ;;
5387esac
5388fi
5389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5390printf "%s\n" "$ac_cv_path_GREP" >&6; }
5391 GREP="$ac_cv_path_GREP"
5392
5393
5394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5395printf %s "checking for egrep... " >&6; }
5396if test ${ac_cv_path_EGREP+y}
5397then :
5398  printf %s "(cached) " >&6
5399else case e in #(
5400  e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5401   then ac_cv_path_EGREP="$GREP -E"
5402   else
5403     if test -z "$EGREP"; then
5404  ac_path_EGREP_found=false
5405  # Loop through the user's path and test for each of PROGNAME-LIST
5406  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5408do
5409  IFS=$as_save_IFS
5410  case $as_dir in #(((
5411    '') as_dir=./ ;;
5412    */) ;;
5413    *) as_dir=$as_dir/ ;;
5414  esac
5415    for ac_prog in egrep
5416   do
5417    for ac_exec_ext in '' $ac_executable_extensions; do
5418      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5419      as_fn_executable_p "$ac_path_EGREP" || continue
5420# Check for GNU ac_path_EGREP and select it if it is found.
5421  # Check for GNU $ac_path_EGREP
5422case `"$ac_path_EGREP" --version 2>&1` in #(
5423*GNU*)
5424  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5425#(
5426*)
5427  ac_count=0
5428  printf %s 0123456789 >"conftest.in"
5429  while :
5430  do
5431    cat "conftest.in" "conftest.in" >"conftest.tmp"
5432    mv "conftest.tmp" "conftest.in"
5433    cp "conftest.in" "conftest.nl"
5434    printf "%s\n" 'EGREP' >> "conftest.nl"
5435    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5436    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5437    as_fn_arith $ac_count + 1 && ac_count=$as_val
5438    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5439      # Best one so far, save it but keep looking for a better one
5440      ac_cv_path_EGREP="$ac_path_EGREP"
5441      ac_path_EGREP_max=$ac_count
5442    fi
5443    # 10*(2^10) chars as input seems more than enough
5444    test $ac_count -gt 10 && break
5445  done
5446  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5447esac
5448
5449      $ac_path_EGREP_found && break 3
5450    done
5451  done
5452  done
5453IFS=$as_save_IFS
5454  if test -z "$ac_cv_path_EGREP"; then
5455    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5456  fi
5457else
5458  ac_cv_path_EGREP=$EGREP
5459fi
5460
5461   fi ;;
5462esac
5463fi
5464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5465printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5466 EGREP="$ac_cv_path_EGREP"
5467
5468         EGREP_TRADITIONAL=$EGREP
5469 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5470
5471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5472printf %s "checking for fgrep... " >&6; }
5473if test ${ac_cv_path_FGREP+y}
5474then :
5475  printf %s "(cached) " >&6
5476else case e in #(
5477  e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5478   then ac_cv_path_FGREP="$GREP -F"
5479   else
5480     if test -z "$FGREP"; then
5481  ac_path_FGREP_found=false
5482  # Loop through the user's path and test for each of PROGNAME-LIST
5483  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5485do
5486  IFS=$as_save_IFS
5487  case $as_dir in #(((
5488    '') as_dir=./ ;;
5489    */) ;;
5490    *) as_dir=$as_dir/ ;;
5491  esac
5492    for ac_prog in fgrep
5493   do
5494    for ac_exec_ext in '' $ac_executable_extensions; do
5495      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5496      as_fn_executable_p "$ac_path_FGREP" || continue
5497# Check for GNU ac_path_FGREP and select it if it is found.
5498  # Check for GNU $ac_path_FGREP
5499case `"$ac_path_FGREP" --version 2>&1` in #(
5500*GNU*)
5501  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5502#(
5503*)
5504  ac_count=0
5505  printf %s 0123456789 >"conftest.in"
5506  while :
5507  do
5508    cat "conftest.in" "conftest.in" >"conftest.tmp"
5509    mv "conftest.tmp" "conftest.in"
5510    cp "conftest.in" "conftest.nl"
5511    printf "%s\n" 'FGREP' >> "conftest.nl"
5512    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5513    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5514    as_fn_arith $ac_count + 1 && ac_count=$as_val
5515    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5516      # Best one so far, save it but keep looking for a better one
5517      ac_cv_path_FGREP="$ac_path_FGREP"
5518      ac_path_FGREP_max=$ac_count
5519    fi
5520    # 10*(2^10) chars as input seems more than enough
5521    test $ac_count -gt 10 && break
5522  done
5523  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5524esac
5525
5526      $ac_path_FGREP_found && break 3
5527    done
5528  done
5529  done
5530IFS=$as_save_IFS
5531  if test -z "$ac_cv_path_FGREP"; then
5532    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5533  fi
5534else
5535  ac_cv_path_FGREP=$FGREP
5536fi
5537
5538   fi ;;
5539esac
5540fi
5541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5542printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5543 FGREP="$ac_cv_path_FGREP"
5544
5545
5546test -z "$GREP" && GREP=grep
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566# Check whether --with-gnu-ld was given.
5567if test ${with_gnu_ld+y}
5568then :
5569  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5570else case e in #(
5571  e) with_gnu_ld=no ;;
5572esac
5573fi
5574
5575ac_prog=ld
5576if test yes = "$GCC"; then
5577  # Check if gcc -print-prog-name=ld gives a path.
5578  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5579printf %s "checking for ld used by $CC... " >&6; }
5580  case $host in
5581  *-*-mingw*)
5582    # gcc leaves a trailing carriage return, which upsets mingw
5583    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5584  *)
5585    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5586  esac
5587  case $ac_prog in
5588    # Accept absolute paths.
5589    [\\/]* | ?:[\\/]*)
5590      re_direlt='/[^/][^/]*/\.\./'
5591      # Canonicalize the pathname of ld
5592      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5593      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5594	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5595      done
5596      test -z "$LD" && LD=$ac_prog
5597      ;;
5598  "")
5599    # If it fails, then pretend we aren't using GCC.
5600    ac_prog=ld
5601    ;;
5602  *)
5603    # If it is relative, then search for the first ld in PATH.
5604    with_gnu_ld=unknown
5605    ;;
5606  esac
5607elif test yes = "$with_gnu_ld"; then
5608  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5609printf %s "checking for GNU ld... " >&6; }
5610else
5611  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5612printf %s "checking for non-GNU ld... " >&6; }
5613fi
5614if test ${lt_cv_path_LD+y}
5615then :
5616  printf %s "(cached) " >&6
5617else case e in #(
5618  e) if test -z "$LD"; then
5619  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5620  for ac_dir in $PATH; do
5621    IFS=$lt_save_ifs
5622    test -z "$ac_dir" && ac_dir=.
5623    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5624      lt_cv_path_LD=$ac_dir/$ac_prog
5625      # Check to see if the program is GNU ld.  I'd rather use --version,
5626      # but apparently some variants of GNU ld only accept -v.
5627      # Break only if it was the GNU/non-GNU ld that we prefer.
5628      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5629      *GNU* | *'with BFD'*)
5630	test no != "$with_gnu_ld" && break
5631	;;
5632      *)
5633	test yes != "$with_gnu_ld" && break
5634	;;
5635      esac
5636    fi
5637  done
5638  IFS=$lt_save_ifs
5639else
5640  lt_cv_path_LD=$LD # Let the user override the test with a path.
5641fi ;;
5642esac
5643fi
5644
5645LD=$lt_cv_path_LD
5646if test -n "$LD"; then
5647  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5648printf "%s\n" "$LD" >&6; }
5649else
5650  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651printf "%s\n" "no" >&6; }
5652fi
5653test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5655printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5656if test ${lt_cv_prog_gnu_ld+y}
5657then :
5658  printf %s "(cached) " >&6
5659else case e in #(
5660  e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5661case `$LD -v 2>&1 </dev/null` in
5662*GNU* | *'with BFD'*)
5663  lt_cv_prog_gnu_ld=yes
5664  ;;
5665*)
5666  lt_cv_prog_gnu_ld=no
5667  ;;
5668esac ;;
5669esac
5670fi
5671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5672printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5673with_gnu_ld=$lt_cv_prog_gnu_ld
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5684printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5685if test ${lt_cv_path_NM+y}
5686then :
5687  printf %s "(cached) " >&6
5688else case e in #(
5689  e) if test -n "$NM"; then
5690  # Let the user override the test.
5691  lt_cv_path_NM=$NM
5692else
5693  lt_nm_to_check=${ac_tool_prefix}nm
5694  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5695    lt_nm_to_check="$lt_nm_to_check nm"
5696  fi
5697  for lt_tmp_nm in $lt_nm_to_check; do
5698    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5699    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5700      IFS=$lt_save_ifs
5701      test -z "$ac_dir" && ac_dir=.
5702      tmp_nm=$ac_dir/$lt_tmp_nm
5703      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5704	# Check to see if the nm accepts a BSD-compat flag.
5705	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5706	#   nm: unknown option "B" ignored
5707	# Tru64's nm complains that /dev/null is an invalid object file
5708	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5709	case $build_os in
5710	mingw*) lt_bad_file=conftest.nm/nofile ;;
5711	*) lt_bad_file=/dev/null ;;
5712	esac
5713	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5714	*$lt_bad_file* | *'Invalid file or object type'*)
5715	  lt_cv_path_NM="$tmp_nm -B"
5716	  break 2
5717	  ;;
5718	*)
5719	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5720	  */dev/null*)
5721	    lt_cv_path_NM="$tmp_nm -p"
5722	    break 2
5723	    ;;
5724	  *)
5725	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5726	    continue # so that we can try to find one that supports BSD flags
5727	    ;;
5728	  esac
5729	  ;;
5730	esac
5731      fi
5732    done
5733    IFS=$lt_save_ifs
5734  done
5735  : ${lt_cv_path_NM=no}
5736fi ;;
5737esac
5738fi
5739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5740printf "%s\n" "$lt_cv_path_NM" >&6; }
5741if test no != "$lt_cv_path_NM"; then
5742  NM=$lt_cv_path_NM
5743else
5744  # Didn't find any BSD compatible name lister, look for dumpbin.
5745  if test -n "$DUMPBIN"; then :
5746    # Let the user override the test.
5747  else
5748    if test -n "$ac_tool_prefix"; then
5749  for ac_prog in dumpbin "link -dump"
5750  do
5751    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5752set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5754printf %s "checking for $ac_word... " >&6; }
5755if test ${ac_cv_prog_DUMPBIN+y}
5756then :
5757  printf %s "(cached) " >&6
5758else case e in #(
5759  e) if test -n "$DUMPBIN"; then
5760  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5761else
5762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763for as_dir in $PATH
5764do
5765  IFS=$as_save_IFS
5766  case $as_dir in #(((
5767    '') as_dir=./ ;;
5768    */) ;;
5769    *) as_dir=$as_dir/ ;;
5770  esac
5771    for ac_exec_ext in '' $ac_executable_extensions; do
5772  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5773    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5774    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5775    break 2
5776  fi
5777done
5778  done
5779IFS=$as_save_IFS
5780
5781fi ;;
5782esac
5783fi
5784DUMPBIN=$ac_cv_prog_DUMPBIN
5785if test -n "$DUMPBIN"; then
5786  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5787printf "%s\n" "$DUMPBIN" >&6; }
5788else
5789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5790printf "%s\n" "no" >&6; }
5791fi
5792
5793
5794    test -n "$DUMPBIN" && break
5795  done
5796fi
5797if test -z "$DUMPBIN"; then
5798  ac_ct_DUMPBIN=$DUMPBIN
5799  for ac_prog in dumpbin "link -dump"
5800do
5801  # Extract the first word of "$ac_prog", so it can be a program name with args.
5802set dummy $ac_prog; ac_word=$2
5803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5804printf %s "checking for $ac_word... " >&6; }
5805if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5806then :
5807  printf %s "(cached) " >&6
5808else case e in #(
5809  e) if test -n "$ac_ct_DUMPBIN"; then
5810  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5811else
5812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813for as_dir in $PATH
5814do
5815  IFS=$as_save_IFS
5816  case $as_dir in #(((
5817    '') as_dir=./ ;;
5818    */) ;;
5819    *) as_dir=$as_dir/ ;;
5820  esac
5821    for ac_exec_ext in '' $ac_executable_extensions; do
5822  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5823    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5824    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5825    break 2
5826  fi
5827done
5828  done
5829IFS=$as_save_IFS
5830
5831fi ;;
5832esac
5833fi
5834ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5835if test -n "$ac_ct_DUMPBIN"; then
5836  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5837printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5838else
5839  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840printf "%s\n" "no" >&6; }
5841fi
5842
5843
5844  test -n "$ac_ct_DUMPBIN" && break
5845done
5846
5847  if test "x$ac_ct_DUMPBIN" = x; then
5848    DUMPBIN=":"
5849  else
5850    case $cross_compiling:$ac_tool_warned in
5851yes:)
5852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5853printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5854ac_tool_warned=yes ;;
5855esac
5856    DUMPBIN=$ac_ct_DUMPBIN
5857  fi
5858fi
5859
5860    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5861    *COFF*)
5862      DUMPBIN="$DUMPBIN -symbols -headers"
5863      ;;
5864    *)
5865      DUMPBIN=:
5866      ;;
5867    esac
5868  fi
5869
5870  if test : != "$DUMPBIN"; then
5871    NM=$DUMPBIN
5872  fi
5873fi
5874test -z "$NM" && NM=nm
5875
5876
5877
5878
5879
5880
5881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5882printf %s "checking the name lister ($NM) interface... " >&6; }
5883if test ${lt_cv_nm_interface+y}
5884then :
5885  printf %s "(cached) " >&6
5886else case e in #(
5887  e) lt_cv_nm_interface="BSD nm"
5888  echo "int some_variable = 0;" > conftest.$ac_ext
5889  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5890  (eval "$ac_compile" 2>conftest.err)
5891  cat conftest.err >&5
5892  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5893  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5894  cat conftest.err >&5
5895  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5896  cat conftest.out >&5
5897  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5898    lt_cv_nm_interface="MS dumpbin"
5899  fi
5900  rm -f conftest* ;;
5901esac
5902fi
5903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5904printf "%s\n" "$lt_cv_nm_interface" >&6; }
5905
5906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5907printf %s "checking whether ln -s works... " >&6; }
5908LN_S=$as_ln_s
5909if test "$LN_S" = "ln -s"; then
5910  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5911printf "%s\n" "yes" >&6; }
5912else
5913  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5914printf "%s\n" "no, using $LN_S" >&6; }
5915fi
5916
5917# find the maximum length of command line arguments
5918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5919printf %s "checking the maximum length of command line arguments... " >&6; }
5920if test ${lt_cv_sys_max_cmd_len+y}
5921then :
5922  printf %s "(cached) " >&6
5923else case e in #(
5924  e)   i=0
5925  teststring=ABCD
5926
5927  case $build_os in
5928  msdosdjgpp*)
5929    # On DJGPP, this test can blow up pretty badly due to problems in libc
5930    # (any single argument exceeding 2000 bytes causes a buffer overrun
5931    # during glob expansion).  Even if it were fixed, the result of this
5932    # check would be larger than it should be.
5933    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5934    ;;
5935
5936  gnu*)
5937    # Under GNU Hurd, this test is not required because there is
5938    # no limit to the length of command line arguments.
5939    # Libtool will interpret -1 as no limit whatsoever
5940    lt_cv_sys_max_cmd_len=-1;
5941    ;;
5942
5943  cygwin* | mingw* | cegcc*)
5944    # On Win9x/ME, this test blows up -- it succeeds, but takes
5945    # about 5 minutes as the teststring grows exponentially.
5946    # Worse, since 9x/ME are not pre-emptively multitasking,
5947    # you end up with a "frozen" computer, even though with patience
5948    # the test eventually succeeds (with a max line length of 256k).
5949    # Instead, let's just punt: use the minimum linelength reported by
5950    # all of the supported platforms: 8192 (on NT/2K/XP).
5951    lt_cv_sys_max_cmd_len=8192;
5952    ;;
5953
5954  mint*)
5955    # On MiNT this can take a long time and run out of memory.
5956    lt_cv_sys_max_cmd_len=8192;
5957    ;;
5958
5959  amigaos*)
5960    # On AmigaOS with pdksh, this test takes hours, literally.
5961    # So we just punt and use a minimum line length of 8192.
5962    lt_cv_sys_max_cmd_len=8192;
5963    ;;
5964
5965  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5966    # This has been around since 386BSD, at least.  Likely further.
5967    if test -x /sbin/sysctl; then
5968      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5969    elif test -x /usr/sbin/sysctl; then
5970      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5971    else
5972      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5973    fi
5974    # And add a safety zone
5975    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5976    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5977    ;;
5978
5979  interix*)
5980    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5981    lt_cv_sys_max_cmd_len=196608
5982    ;;
5983
5984  os2*)
5985    # The test takes a long time on OS/2.
5986    lt_cv_sys_max_cmd_len=8192
5987    ;;
5988
5989  osf*)
5990    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5991    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5992    # nice to cause kernel panics so lets avoid the loop below.
5993    # First set a reasonable default.
5994    lt_cv_sys_max_cmd_len=16384
5995    #
5996    if test -x /sbin/sysconfig; then
5997      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5998        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5999      esac
6000    fi
6001    ;;
6002  sco3.2v5*)
6003    lt_cv_sys_max_cmd_len=102400
6004    ;;
6005  sysv5* | sco5v6* | sysv4.2uw2*)
6006    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6007    if test -n "$kargmax"; then
6008      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
6009    else
6010      lt_cv_sys_max_cmd_len=32768
6011    fi
6012    ;;
6013  *)
6014    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6015    if test -n "$lt_cv_sys_max_cmd_len" && \
6016       test undefined != "$lt_cv_sys_max_cmd_len"; then
6017      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6018      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6019    else
6020      # Make teststring a little bigger before we do anything with it.
6021      # a 1K string should be a reasonable start.
6022      for i in 1 2 3 4 5 6 7 8; do
6023        teststring=$teststring$teststring
6024      done
6025      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6026      # If test is not a shell built-in, we'll probably end up computing a
6027      # maximum length that is only half of the actual maximum length, but
6028      # we can't tell.
6029      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6030	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6031	      test 17 != "$i" # 1/2 MB should be enough
6032      do
6033        i=`expr $i + 1`
6034        teststring=$teststring$teststring
6035      done
6036      # Only check the string length outside the loop.
6037      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6038      teststring=
6039      # Add a significant safety factor because C++ compilers can tack on
6040      # massive amounts of additional arguments before passing them to the
6041      # linker.  It appears as though 1/2 is a usable value.
6042      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6043    fi
6044    ;;
6045  esac
6046 ;;
6047esac
6048fi
6049
6050if test -n "$lt_cv_sys_max_cmd_len"; then
6051  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6052printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6053else
6054  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6055printf "%s\n" "none" >&6; }
6056fi
6057max_cmd_len=$lt_cv_sys_max_cmd_len
6058
6059
6060
6061
6062
6063
6064: ${CP="cp -f"}
6065: ${MV="mv -f"}
6066: ${RM="rm -f"}
6067
6068if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6069  lt_unset=unset
6070else
6071  lt_unset=false
6072fi
6073
6074
6075
6076
6077
6078# test EBCDIC or ASCII
6079case `echo X|tr X '\101'` in
6080 A) # ASCII based system
6081    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6082  lt_SP2NL='tr \040 \012'
6083  lt_NL2SP='tr \015\012 \040\040'
6084  ;;
6085 *) # EBCDIC based system
6086  lt_SP2NL='tr \100 \n'
6087  lt_NL2SP='tr \r\n \100\100'
6088  ;;
6089esac
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6100printf %s "checking how to convert $build file names to $host format... " >&6; }
6101if test ${lt_cv_to_host_file_cmd+y}
6102then :
6103  printf %s "(cached) " >&6
6104else case e in #(
6105  e) case $host in
6106  *-*-mingw* )
6107    case $build in
6108      *-*-mingw* ) # actually msys
6109        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6110        ;;
6111      *-*-cygwin* )
6112        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6113        ;;
6114      * ) # otherwise, assume *nix
6115        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6116        ;;
6117    esac
6118    ;;
6119  *-*-cygwin* )
6120    case $build in
6121      *-*-mingw* ) # actually msys
6122        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6123        ;;
6124      *-*-cygwin* )
6125        lt_cv_to_host_file_cmd=func_convert_file_noop
6126        ;;
6127      * ) # otherwise, assume *nix
6128        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6129        ;;
6130    esac
6131    ;;
6132  * ) # unhandled hosts (and "normal" native builds)
6133    lt_cv_to_host_file_cmd=func_convert_file_noop
6134    ;;
6135esac
6136 ;;
6137esac
6138fi
6139
6140to_host_file_cmd=$lt_cv_to_host_file_cmd
6141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6142printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6143
6144
6145
6146
6147
6148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6149printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6150if test ${lt_cv_to_tool_file_cmd+y}
6151then :
6152  printf %s "(cached) " >&6
6153else case e in #(
6154  e) #assume ordinary cross tools, or native build.
6155lt_cv_to_tool_file_cmd=func_convert_file_noop
6156case $host in
6157  *-*-mingw* )
6158    case $build in
6159      *-*-mingw* ) # actually msys
6160        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6161        ;;
6162    esac
6163    ;;
6164esac
6165 ;;
6166esac
6167fi
6168
6169to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6171printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6172
6173
6174
6175
6176
6177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6178printf %s "checking for $LD option to reload object files... " >&6; }
6179if test ${lt_cv_ld_reload_flag+y}
6180then :
6181  printf %s "(cached) " >&6
6182else case e in #(
6183  e) lt_cv_ld_reload_flag='-r' ;;
6184esac
6185fi
6186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6187printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6188reload_flag=$lt_cv_ld_reload_flag
6189case $reload_flag in
6190"" | " "*) ;;
6191*) reload_flag=" $reload_flag" ;;
6192esac
6193reload_cmds='$LD$reload_flag -o $output$reload_objs'
6194case $host_os in
6195  cygwin* | mingw* | pw32* | cegcc*)
6196    if test yes != "$GCC"; then
6197      reload_cmds=false
6198    fi
6199    ;;
6200  darwin*)
6201    if test yes = "$GCC"; then
6202      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6203    else
6204      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6205    fi
6206    ;;
6207esac
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217if test -n "$ac_tool_prefix"; then
6218  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6219set dummy ${ac_tool_prefix}file; ac_word=$2
6220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6221printf %s "checking for $ac_word... " >&6; }
6222if test ${ac_cv_prog_FILECMD+y}
6223then :
6224  printf %s "(cached) " >&6
6225else case e in #(
6226  e) if test -n "$FILECMD"; then
6227  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6228else
6229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230for as_dir in $PATH
6231do
6232  IFS=$as_save_IFS
6233  case $as_dir in #(((
6234    '') as_dir=./ ;;
6235    */) ;;
6236    *) as_dir=$as_dir/ ;;
6237  esac
6238    for ac_exec_ext in '' $ac_executable_extensions; do
6239  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6240    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6241    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6242    break 2
6243  fi
6244done
6245  done
6246IFS=$as_save_IFS
6247
6248fi ;;
6249esac
6250fi
6251FILECMD=$ac_cv_prog_FILECMD
6252if test -n "$FILECMD"; then
6253  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6254printf "%s\n" "$FILECMD" >&6; }
6255else
6256  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257printf "%s\n" "no" >&6; }
6258fi
6259
6260
6261fi
6262if test -z "$ac_cv_prog_FILECMD"; then
6263  ac_ct_FILECMD=$FILECMD
6264  # Extract the first word of "file", so it can be a program name with args.
6265set dummy file; ac_word=$2
6266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6267printf %s "checking for $ac_word... " >&6; }
6268if test ${ac_cv_prog_ac_ct_FILECMD+y}
6269then :
6270  printf %s "(cached) " >&6
6271else case e in #(
6272  e) if test -n "$ac_ct_FILECMD"; then
6273  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6274else
6275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276for as_dir in $PATH
6277do
6278  IFS=$as_save_IFS
6279  case $as_dir in #(((
6280    '') as_dir=./ ;;
6281    */) ;;
6282    *) as_dir=$as_dir/ ;;
6283  esac
6284    for ac_exec_ext in '' $ac_executable_extensions; do
6285  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6286    ac_cv_prog_ac_ct_FILECMD="file"
6287    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6288    break 2
6289  fi
6290done
6291  done
6292IFS=$as_save_IFS
6293
6294fi ;;
6295esac
6296fi
6297ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6298if test -n "$ac_ct_FILECMD"; then
6299  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6300printf "%s\n" "$ac_ct_FILECMD" >&6; }
6301else
6302  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6303printf "%s\n" "no" >&6; }
6304fi
6305
6306  if test "x$ac_ct_FILECMD" = x; then
6307    FILECMD=":"
6308  else
6309    case $cross_compiling:$ac_tool_warned in
6310yes:)
6311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6312printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6313ac_tool_warned=yes ;;
6314esac
6315    FILECMD=$ac_ct_FILECMD
6316  fi
6317else
6318  FILECMD="$ac_cv_prog_FILECMD"
6319fi
6320
6321
6322
6323
6324
6325
6326
6327if test -n "$ac_tool_prefix"; then
6328  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6329set dummy ${ac_tool_prefix}objdump; ac_word=$2
6330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6331printf %s "checking for $ac_word... " >&6; }
6332if test ${ac_cv_prog_OBJDUMP+y}
6333then :
6334  printf %s "(cached) " >&6
6335else case e in #(
6336  e) if test -n "$OBJDUMP"; then
6337  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6338else
6339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340for as_dir in $PATH
6341do
6342  IFS=$as_save_IFS
6343  case $as_dir in #(((
6344    '') as_dir=./ ;;
6345    */) ;;
6346    *) as_dir=$as_dir/ ;;
6347  esac
6348    for ac_exec_ext in '' $ac_executable_extensions; do
6349  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6350    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6351    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6352    break 2
6353  fi
6354done
6355  done
6356IFS=$as_save_IFS
6357
6358fi ;;
6359esac
6360fi
6361OBJDUMP=$ac_cv_prog_OBJDUMP
6362if test -n "$OBJDUMP"; then
6363  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6364printf "%s\n" "$OBJDUMP" >&6; }
6365else
6366  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6367printf "%s\n" "no" >&6; }
6368fi
6369
6370
6371fi
6372if test -z "$ac_cv_prog_OBJDUMP"; then
6373  ac_ct_OBJDUMP=$OBJDUMP
6374  # Extract the first word of "objdump", so it can be a program name with args.
6375set dummy objdump; ac_word=$2
6376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6377printf %s "checking for $ac_word... " >&6; }
6378if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6379then :
6380  printf %s "(cached) " >&6
6381else case e in #(
6382  e) if test -n "$ac_ct_OBJDUMP"; then
6383  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6384else
6385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386for as_dir in $PATH
6387do
6388  IFS=$as_save_IFS
6389  case $as_dir in #(((
6390    '') as_dir=./ ;;
6391    */) ;;
6392    *) as_dir=$as_dir/ ;;
6393  esac
6394    for ac_exec_ext in '' $ac_executable_extensions; do
6395  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6396    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6397    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6398    break 2
6399  fi
6400done
6401  done
6402IFS=$as_save_IFS
6403
6404fi ;;
6405esac
6406fi
6407ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6408if test -n "$ac_ct_OBJDUMP"; then
6409  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6410printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6411else
6412  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413printf "%s\n" "no" >&6; }
6414fi
6415
6416  if test "x$ac_ct_OBJDUMP" = x; then
6417    OBJDUMP="false"
6418  else
6419    case $cross_compiling:$ac_tool_warned in
6420yes:)
6421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6422printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6423ac_tool_warned=yes ;;
6424esac
6425    OBJDUMP=$ac_ct_OBJDUMP
6426  fi
6427else
6428  OBJDUMP="$ac_cv_prog_OBJDUMP"
6429fi
6430
6431test -z "$OBJDUMP" && OBJDUMP=objdump
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6442printf %s "checking how to recognize dependent libraries... " >&6; }
6443if test ${lt_cv_deplibs_check_method+y}
6444then :
6445  printf %s "(cached) " >&6
6446else case e in #(
6447  e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6448lt_cv_file_magic_test_file=
6449lt_cv_deplibs_check_method='unknown'
6450# Need to set the preceding variable on all platforms that support
6451# interlibrary dependencies.
6452# 'none' -- dependencies not supported.
6453# 'unknown' -- same as none, but documents that we really don't know.
6454# 'pass_all' -- all dependencies passed with no checks.
6455# 'test_compile' -- check by making test program.
6456# 'file_magic [[regex]]' -- check by looking for files in library path
6457# that responds to the $file_magic_cmd with a given extended regex.
6458# If you have 'file' or equivalent on your system and you're not sure
6459# whether 'pass_all' will *always* work, you probably want this one.
6460
6461case $host_os in
6462aix[4-9]*)
6463  lt_cv_deplibs_check_method=pass_all
6464  ;;
6465
6466beos*)
6467  lt_cv_deplibs_check_method=pass_all
6468  ;;
6469
6470bsdi[45]*)
6471  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6472  lt_cv_file_magic_cmd='$FILECMD -L'
6473  lt_cv_file_magic_test_file=/shlib/libc.so
6474  ;;
6475
6476cygwin*)
6477  # func_win32_libid is a shell function defined in ltmain.sh
6478  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6479  lt_cv_file_magic_cmd='func_win32_libid'
6480  ;;
6481
6482mingw* | pw32*)
6483  # Base MSYS/MinGW do not provide the 'file' command needed by
6484  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6485  # unless we find 'file', for example because we are cross-compiling.
6486  if ( file / ) >/dev/null 2>&1; then
6487    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6488    lt_cv_file_magic_cmd='func_win32_libid'
6489  else
6490    # Keep this pattern in sync with the one in func_win32_libid.
6491    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6492    lt_cv_file_magic_cmd='$OBJDUMP -f'
6493  fi
6494  ;;
6495
6496cegcc*)
6497  # use the weaker test based on 'objdump'. See mingw*.
6498  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6499  lt_cv_file_magic_cmd='$OBJDUMP -f'
6500  ;;
6501
6502darwin* | rhapsody*)
6503  lt_cv_deplibs_check_method=pass_all
6504  ;;
6505
6506freebsd* | dragonfly* | midnightbsd*)
6507  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6508    case $host_cpu in
6509    i*86 )
6510      # Not sure whether the presence of OpenBSD here was a mistake.
6511      # Let's accept both of them until this is cleared up.
6512      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6513      lt_cv_file_magic_cmd=$FILECMD
6514      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6515      ;;
6516    esac
6517  else
6518    lt_cv_deplibs_check_method=pass_all
6519  fi
6520  ;;
6521
6522haiku*)
6523  lt_cv_deplibs_check_method=pass_all
6524  ;;
6525
6526hpux10.20* | hpux11*)
6527  lt_cv_file_magic_cmd=$FILECMD
6528  case $host_cpu in
6529  ia64*)
6530    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6531    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6532    ;;
6533  hppa*64*)
6534    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]'
6535    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6536    ;;
6537  *)
6538    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6539    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6540    ;;
6541  esac
6542  ;;
6543
6544interix[3-9]*)
6545  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6546  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6547  ;;
6548
6549irix5* | irix6* | nonstopux*)
6550  case $LD in
6551  *-32|*"-32 ") libmagic=32-bit;;
6552  *-n32|*"-n32 ") libmagic=N32;;
6553  *-64|*"-64 ") libmagic=64-bit;;
6554  *) libmagic=never-match;;
6555  esac
6556  lt_cv_deplibs_check_method=pass_all
6557  ;;
6558
6559# This must be glibc/ELF.
6560linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6561  lt_cv_deplibs_check_method=pass_all
6562  ;;
6563
6564netbsd*)
6565  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6566    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6567  else
6568    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6569  fi
6570  ;;
6571
6572newos6*)
6573  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6574  lt_cv_file_magic_cmd=$FILECMD
6575  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6576  ;;
6577
6578*nto* | *qnx*)
6579  lt_cv_deplibs_check_method=pass_all
6580  ;;
6581
6582openbsd* | bitrig*)
6583  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6584    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6585  else
6586    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6587  fi
6588  ;;
6589
6590osf3* | osf4* | osf5*)
6591  lt_cv_deplibs_check_method=pass_all
6592  ;;
6593
6594rdos*)
6595  lt_cv_deplibs_check_method=pass_all
6596  ;;
6597
6598solaris*)
6599  lt_cv_deplibs_check_method=pass_all
6600  ;;
6601
6602sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6603  lt_cv_deplibs_check_method=pass_all
6604  ;;
6605
6606sysv4 | sysv4.3*)
6607  case $host_vendor in
6608  motorola)
6609    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]'
6610    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6611    ;;
6612  ncr)
6613    lt_cv_deplibs_check_method=pass_all
6614    ;;
6615  sequent)
6616    lt_cv_file_magic_cmd='/bin/file'
6617    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6618    ;;
6619  sni)
6620    lt_cv_file_magic_cmd='/bin/file'
6621    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6622    lt_cv_file_magic_test_file=/lib/libc.so
6623    ;;
6624  siemens)
6625    lt_cv_deplibs_check_method=pass_all
6626    ;;
6627  pc)
6628    lt_cv_deplibs_check_method=pass_all
6629    ;;
6630  esac
6631  ;;
6632
6633tpf*)
6634  lt_cv_deplibs_check_method=pass_all
6635  ;;
6636os2*)
6637  lt_cv_deplibs_check_method=pass_all
6638  ;;
6639esac
6640 ;;
6641esac
6642fi
6643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6644printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6645
6646file_magic_glob=
6647want_nocaseglob=no
6648if test "$build" = "$host"; then
6649  case $host_os in
6650  mingw* | pw32*)
6651    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6652      want_nocaseglob=yes
6653    else
6654      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6655    fi
6656    ;;
6657  esac
6658fi
6659
6660file_magic_cmd=$lt_cv_file_magic_cmd
6661deplibs_check_method=$lt_cv_deplibs_check_method
6662test -z "$deplibs_check_method" && deplibs_check_method=unknown
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685if test -n "$ac_tool_prefix"; then
6686  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6687set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6689printf %s "checking for $ac_word... " >&6; }
6690if test ${ac_cv_prog_DLLTOOL+y}
6691then :
6692  printf %s "(cached) " >&6
6693else case e in #(
6694  e) if test -n "$DLLTOOL"; then
6695  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6696else
6697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698for as_dir in $PATH
6699do
6700  IFS=$as_save_IFS
6701  case $as_dir in #(((
6702    '') as_dir=./ ;;
6703    */) ;;
6704    *) as_dir=$as_dir/ ;;
6705  esac
6706    for ac_exec_ext in '' $ac_executable_extensions; do
6707  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6708    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6709    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6710    break 2
6711  fi
6712done
6713  done
6714IFS=$as_save_IFS
6715
6716fi ;;
6717esac
6718fi
6719DLLTOOL=$ac_cv_prog_DLLTOOL
6720if test -n "$DLLTOOL"; then
6721  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6722printf "%s\n" "$DLLTOOL" >&6; }
6723else
6724  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725printf "%s\n" "no" >&6; }
6726fi
6727
6728
6729fi
6730if test -z "$ac_cv_prog_DLLTOOL"; then
6731  ac_ct_DLLTOOL=$DLLTOOL
6732  # Extract the first word of "dlltool", so it can be a program name with args.
6733set dummy dlltool; ac_word=$2
6734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735printf %s "checking for $ac_word... " >&6; }
6736if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6737then :
6738  printf %s "(cached) " >&6
6739else case e in #(
6740  e) if test -n "$ac_ct_DLLTOOL"; then
6741  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6742else
6743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744for as_dir in $PATH
6745do
6746  IFS=$as_save_IFS
6747  case $as_dir in #(((
6748    '') as_dir=./ ;;
6749    */) ;;
6750    *) as_dir=$as_dir/ ;;
6751  esac
6752    for ac_exec_ext in '' $ac_executable_extensions; do
6753  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6754    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6755    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6756    break 2
6757  fi
6758done
6759  done
6760IFS=$as_save_IFS
6761
6762fi ;;
6763esac
6764fi
6765ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6766if test -n "$ac_ct_DLLTOOL"; then
6767  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6768printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6769else
6770  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6771printf "%s\n" "no" >&6; }
6772fi
6773
6774  if test "x$ac_ct_DLLTOOL" = x; then
6775    DLLTOOL="false"
6776  else
6777    case $cross_compiling:$ac_tool_warned in
6778yes:)
6779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6780printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6781ac_tool_warned=yes ;;
6782esac
6783    DLLTOOL=$ac_ct_DLLTOOL
6784  fi
6785else
6786  DLLTOOL="$ac_cv_prog_DLLTOOL"
6787fi
6788
6789test -z "$DLLTOOL" && DLLTOOL=dlltool
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6801printf %s "checking how to associate runtime and link libraries... " >&6; }
6802if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6803then :
6804  printf %s "(cached) " >&6
6805else case e in #(
6806  e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6807
6808case $host_os in
6809cygwin* | mingw* | pw32* | cegcc*)
6810  # two different shell functions defined in ltmain.sh;
6811  # decide which one to use based on capabilities of $DLLTOOL
6812  case `$DLLTOOL --help 2>&1` in
6813  *--identify-strict*)
6814    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6815    ;;
6816  *)
6817    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6818    ;;
6819  esac
6820  ;;
6821*)
6822  # fallback: assume linklib IS sharedlib
6823  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6824  ;;
6825esac
6826 ;;
6827esac
6828fi
6829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6830printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6831sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6832test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6833
6834
6835
6836
6837
6838
6839
6840if test -n "$ac_tool_prefix"; then
6841  for ac_prog in ar
6842  do
6843    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6844set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6846printf %s "checking for $ac_word... " >&6; }
6847if test ${ac_cv_prog_AR+y}
6848then :
6849  printf %s "(cached) " >&6
6850else case e in #(
6851  e) if test -n "$AR"; then
6852  ac_cv_prog_AR="$AR" # Let the user override the test.
6853else
6854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855for as_dir in $PATH
6856do
6857  IFS=$as_save_IFS
6858  case $as_dir in #(((
6859    '') as_dir=./ ;;
6860    */) ;;
6861    *) as_dir=$as_dir/ ;;
6862  esac
6863    for ac_exec_ext in '' $ac_executable_extensions; do
6864  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6865    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6866    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6867    break 2
6868  fi
6869done
6870  done
6871IFS=$as_save_IFS
6872
6873fi ;;
6874esac
6875fi
6876AR=$ac_cv_prog_AR
6877if test -n "$AR"; then
6878  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6879printf "%s\n" "$AR" >&6; }
6880else
6881  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882printf "%s\n" "no" >&6; }
6883fi
6884
6885
6886    test -n "$AR" && break
6887  done
6888fi
6889if test -z "$AR"; then
6890  ac_ct_AR=$AR
6891  for ac_prog in ar
6892do
6893  # Extract the first word of "$ac_prog", so it can be a program name with args.
6894set dummy $ac_prog; ac_word=$2
6895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6896printf %s "checking for $ac_word... " >&6; }
6897if test ${ac_cv_prog_ac_ct_AR+y}
6898then :
6899  printf %s "(cached) " >&6
6900else case e in #(
6901  e) if test -n "$ac_ct_AR"; then
6902  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6903else
6904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905for as_dir in $PATH
6906do
6907  IFS=$as_save_IFS
6908  case $as_dir in #(((
6909    '') as_dir=./ ;;
6910    */) ;;
6911    *) as_dir=$as_dir/ ;;
6912  esac
6913    for ac_exec_ext in '' $ac_executable_extensions; do
6914  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6915    ac_cv_prog_ac_ct_AR="$ac_prog"
6916    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6917    break 2
6918  fi
6919done
6920  done
6921IFS=$as_save_IFS
6922
6923fi ;;
6924esac
6925fi
6926ac_ct_AR=$ac_cv_prog_ac_ct_AR
6927if test -n "$ac_ct_AR"; then
6928  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6929printf "%s\n" "$ac_ct_AR" >&6; }
6930else
6931  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932printf "%s\n" "no" >&6; }
6933fi
6934
6935
6936  test -n "$ac_ct_AR" && break
6937done
6938
6939  if test "x$ac_ct_AR" = x; then
6940    AR="false"
6941  else
6942    case $cross_compiling:$ac_tool_warned in
6943yes:)
6944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6945printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6946ac_tool_warned=yes ;;
6947esac
6948    AR=$ac_ct_AR
6949  fi
6950fi
6951
6952: ${AR=ar}
6953
6954
6955
6956
6957
6958
6959# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6960# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6961# higher priority because thats what people were doing historically (setting
6962# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6963# variable obsoleted/removed.
6964
6965test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6966lt_ar_flags=$AR_FLAGS
6967
6968
6969
6970
6971
6972
6973# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6974# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6975
6976
6977
6978
6979
6980
6981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6982printf %s "checking for archiver @FILE support... " >&6; }
6983if test ${lt_cv_ar_at_file+y}
6984then :
6985  printf %s "(cached) " >&6
6986else case e in #(
6987  e) lt_cv_ar_at_file=no
6988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6989/* end confdefs.h.  */
6990
6991int
6992main (void)
6993{
6994
6995  ;
6996  return 0;
6997}
6998_ACEOF
6999if ac_fn_c_try_compile "$LINENO"
7000then :
7001  echo conftest.$ac_objext > conftest.lst
7002      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7003      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7004  (eval $lt_ar_try) 2>&5
7005  ac_status=$?
7006  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7007  test $ac_status = 0; }
7008      if test 0 -eq "$ac_status"; then
7009	# Ensure the archiver fails upon bogus file names.
7010	rm -f conftest.$ac_objext libconftest.a
7011	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7012  (eval $lt_ar_try) 2>&5
7013  ac_status=$?
7014  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7015  test $ac_status = 0; }
7016	if test 0 -ne "$ac_status"; then
7017          lt_cv_ar_at_file=@
7018        fi
7019      fi
7020      rm -f conftest.* libconftest.a
7021
7022fi
7023rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7024   ;;
7025esac
7026fi
7027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7028printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7029
7030if test no = "$lt_cv_ar_at_file"; then
7031  archiver_list_spec=
7032else
7033  archiver_list_spec=$lt_cv_ar_at_file
7034fi
7035
7036
7037
7038
7039
7040
7041
7042if test -n "$ac_tool_prefix"; then
7043  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7044set dummy ${ac_tool_prefix}strip; ac_word=$2
7045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7046printf %s "checking for $ac_word... " >&6; }
7047if test ${ac_cv_prog_STRIP+y}
7048then :
7049  printf %s "(cached) " >&6
7050else case e in #(
7051  e) if test -n "$STRIP"; then
7052  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7053else
7054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055for as_dir in $PATH
7056do
7057  IFS=$as_save_IFS
7058  case $as_dir in #(((
7059    '') as_dir=./ ;;
7060    */) ;;
7061    *) as_dir=$as_dir/ ;;
7062  esac
7063    for ac_exec_ext in '' $ac_executable_extensions; do
7064  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7065    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7066    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7067    break 2
7068  fi
7069done
7070  done
7071IFS=$as_save_IFS
7072
7073fi ;;
7074esac
7075fi
7076STRIP=$ac_cv_prog_STRIP
7077if test -n "$STRIP"; then
7078  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7079printf "%s\n" "$STRIP" >&6; }
7080else
7081  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7082printf "%s\n" "no" >&6; }
7083fi
7084
7085
7086fi
7087if test -z "$ac_cv_prog_STRIP"; then
7088  ac_ct_STRIP=$STRIP
7089  # Extract the first word of "strip", so it can be a program name with args.
7090set dummy strip; ac_word=$2
7091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7092printf %s "checking for $ac_word... " >&6; }
7093if test ${ac_cv_prog_ac_ct_STRIP+y}
7094then :
7095  printf %s "(cached) " >&6
7096else case e in #(
7097  e) if test -n "$ac_ct_STRIP"; then
7098  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7099else
7100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101for as_dir in $PATH
7102do
7103  IFS=$as_save_IFS
7104  case $as_dir in #(((
7105    '') as_dir=./ ;;
7106    */) ;;
7107    *) as_dir=$as_dir/ ;;
7108  esac
7109    for ac_exec_ext in '' $ac_executable_extensions; do
7110  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7111    ac_cv_prog_ac_ct_STRIP="strip"
7112    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7113    break 2
7114  fi
7115done
7116  done
7117IFS=$as_save_IFS
7118
7119fi ;;
7120esac
7121fi
7122ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7123if test -n "$ac_ct_STRIP"; then
7124  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7125printf "%s\n" "$ac_ct_STRIP" >&6; }
7126else
7127  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128printf "%s\n" "no" >&6; }
7129fi
7130
7131  if test "x$ac_ct_STRIP" = x; then
7132    STRIP=":"
7133  else
7134    case $cross_compiling:$ac_tool_warned in
7135yes:)
7136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7137printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7138ac_tool_warned=yes ;;
7139esac
7140    STRIP=$ac_ct_STRIP
7141  fi
7142else
7143  STRIP="$ac_cv_prog_STRIP"
7144fi
7145
7146test -z "$STRIP" && STRIP=:
7147
7148
7149
7150
7151
7152
7153if test -n "$ac_tool_prefix"; then
7154  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7155set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7157printf %s "checking for $ac_word... " >&6; }
7158if test ${ac_cv_prog_RANLIB+y}
7159then :
7160  printf %s "(cached) " >&6
7161else case e in #(
7162  e) if test -n "$RANLIB"; then
7163  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7164else
7165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166for as_dir in $PATH
7167do
7168  IFS=$as_save_IFS
7169  case $as_dir in #(((
7170    '') as_dir=./ ;;
7171    */) ;;
7172    *) as_dir=$as_dir/ ;;
7173  esac
7174    for ac_exec_ext in '' $ac_executable_extensions; do
7175  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7176    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7177    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7178    break 2
7179  fi
7180done
7181  done
7182IFS=$as_save_IFS
7183
7184fi ;;
7185esac
7186fi
7187RANLIB=$ac_cv_prog_RANLIB
7188if test -n "$RANLIB"; then
7189  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7190printf "%s\n" "$RANLIB" >&6; }
7191else
7192  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7193printf "%s\n" "no" >&6; }
7194fi
7195
7196
7197fi
7198if test -z "$ac_cv_prog_RANLIB"; then
7199  ac_ct_RANLIB=$RANLIB
7200  # Extract the first word of "ranlib", so it can be a program name with args.
7201set dummy ranlib; ac_word=$2
7202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7203printf %s "checking for $ac_word... " >&6; }
7204if test ${ac_cv_prog_ac_ct_RANLIB+y}
7205then :
7206  printf %s "(cached) " >&6
7207else case e in #(
7208  e) if test -n "$ac_ct_RANLIB"; then
7209  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7210else
7211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212for as_dir in $PATH
7213do
7214  IFS=$as_save_IFS
7215  case $as_dir in #(((
7216    '') as_dir=./ ;;
7217    */) ;;
7218    *) as_dir=$as_dir/ ;;
7219  esac
7220    for ac_exec_ext in '' $ac_executable_extensions; do
7221  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7222    ac_cv_prog_ac_ct_RANLIB="ranlib"
7223    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7224    break 2
7225  fi
7226done
7227  done
7228IFS=$as_save_IFS
7229
7230fi ;;
7231esac
7232fi
7233ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7234if test -n "$ac_ct_RANLIB"; then
7235  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7236printf "%s\n" "$ac_ct_RANLIB" >&6; }
7237else
7238  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239printf "%s\n" "no" >&6; }
7240fi
7241
7242  if test "x$ac_ct_RANLIB" = x; then
7243    RANLIB=":"
7244  else
7245    case $cross_compiling:$ac_tool_warned in
7246yes:)
7247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7248printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7249ac_tool_warned=yes ;;
7250esac
7251    RANLIB=$ac_ct_RANLIB
7252  fi
7253else
7254  RANLIB="$ac_cv_prog_RANLIB"
7255fi
7256
7257test -z "$RANLIB" && RANLIB=:
7258
7259
7260
7261
7262
7263
7264# Determine commands to create old-style static archives.
7265old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7266old_postinstall_cmds='chmod 644 $oldlib'
7267old_postuninstall_cmds=
7268
7269if test -n "$RANLIB"; then
7270  case $host_os in
7271  bitrig* | openbsd*)
7272    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7273    ;;
7274  *)
7275    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7276    ;;
7277  esac
7278  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7279fi
7280
7281case $host_os in
7282  darwin*)
7283    lock_old_archive_extraction=yes ;;
7284  *)
7285    lock_old_archive_extraction=no ;;
7286esac
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326# If no C compiler was specified, use CC.
7327LTCC=${LTCC-"$CC"}
7328
7329# If no C compiler flags were specified, use CFLAGS.
7330LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7331
7332# Allow CC to be a program name with arguments.
7333compiler=$CC
7334
7335
7336# Check for command to grab the raw symbol name followed by C symbol from nm.
7337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7338printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7339if test ${lt_cv_sys_global_symbol_pipe+y}
7340then :
7341  printf %s "(cached) " >&6
7342else case e in #(
7343  e)
7344# These are sane defaults that work on at least a few old systems.
7345# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7346
7347# Character class describing NM global symbol codes.
7348symcode='[BCDEGRST]'
7349
7350# Regexp to match symbols that can be accessed directly from C.
7351sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7352
7353# Define system-specific variables.
7354case $host_os in
7355aix*)
7356  symcode='[BCDT]'
7357  ;;
7358cygwin* | mingw* | pw32* | cegcc*)
7359  symcode='[ABCDGISTW]'
7360  ;;
7361hpux*)
7362  if test ia64 = "$host_cpu"; then
7363    symcode='[ABCDEGRST]'
7364  fi
7365  ;;
7366irix* | nonstopux*)
7367  symcode='[BCDEGRST]'
7368  ;;
7369osf*)
7370  symcode='[BCDEGQRST]'
7371  ;;
7372solaris*)
7373  symcode='[BDRT]'
7374  ;;
7375sco3.2v5*)
7376  symcode='[DT]'
7377  ;;
7378sysv4.2uw2*)
7379  symcode='[DT]'
7380  ;;
7381sysv5* | sco5v6* | unixware* | OpenUNIX*)
7382  symcode='[ABDT]'
7383  ;;
7384sysv4)
7385  symcode='[DFNSTU]'
7386  ;;
7387esac
7388
7389# If we're using GNU nm, then use its standard symbol codes.
7390case `$NM -V 2>&1` in
7391*GNU* | *'with BFD'*)
7392  symcode='[ABCDGIRSTW]' ;;
7393esac
7394
7395if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7396  # Gets list of data symbols to import.
7397  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7398  # Adjust the below global symbol transforms to fixup imported variables.
7399  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7400  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7401  lt_c_name_lib_hook="\
7402  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7403  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7404else
7405  # Disable hooks by default.
7406  lt_cv_sys_global_symbol_to_import=
7407  lt_cdecl_hook=
7408  lt_c_name_hook=
7409  lt_c_name_lib_hook=
7410fi
7411
7412# Transform an extracted symbol line into a proper C declaration.
7413# Some systems (esp. on ia64) link data and code symbols differently,
7414# so use this general approach.
7415lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7416$lt_cdecl_hook\
7417" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7418" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7419
7420# Transform an extracted symbol line into symbol name and symbol address
7421lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7422$lt_c_name_hook\
7423" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7424" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7425
7426# Transform an extracted symbol line into symbol name with lib prefix and
7427# symbol address.
7428lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7429$lt_c_name_lib_hook\
7430" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7431" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7432" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7433
7434# Handle CRLF in mingw tool chain
7435opt_cr=
7436case $build_os in
7437mingw*)
7438  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7439  ;;
7440esac
7441
7442# Try without a prefix underscore, then with it.
7443for ac_symprfx in "" "_"; do
7444
7445  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7446  symxfrm="\\1 $ac_symprfx\\2 \\2"
7447
7448  # Write the raw and C identifiers.
7449  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7450    # Fake it for dumpbin and say T for any non-static function,
7451    # D for any global variable and I for any imported variable.
7452    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7453    # which start with @ or ?.
7454    lt_cv_sys_global_symbol_pipe="$AWK '"\
7455"     {last_section=section; section=\$ 3};"\
7456"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7457"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7458"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7459"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7460"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7461"     \$ 0!~/External *\|/{next};"\
7462"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7463"     {if(hide[section]) next};"\
7464"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7465"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7466"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7467"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7468"     ' prfx=^$ac_symprfx"
7469  else
7470    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7471  fi
7472  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7473
7474  # Check to see that the pipe works correctly.
7475  pipe_works=no
7476
7477  rm -f conftest*
7478  cat > conftest.$ac_ext <<_LT_EOF
7479#ifdef __cplusplus
7480extern "C" {
7481#endif
7482char nm_test_var;
7483void nm_test_func(void);
7484void nm_test_func(void){}
7485#ifdef __cplusplus
7486}
7487#endif
7488int main(){nm_test_var='a';nm_test_func();return(0);}
7489_LT_EOF
7490
7491  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7492  (eval $ac_compile) 2>&5
7493  ac_status=$?
7494  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7495  test $ac_status = 0; }; then
7496    # Now try to grab the symbols.
7497    nlist=conftest.nm
7498    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7499  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7500  ac_status=$?
7501  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7502  test $ac_status = 0; } && test -s "$nlist"; then
7503      # Try sorting and uniquifying the output.
7504      if sort "$nlist" | uniq > "$nlist"T; then
7505	mv -f "$nlist"T "$nlist"
7506      else
7507	rm -f "$nlist"T
7508      fi
7509
7510      # Make sure that we snagged all the symbols we need.
7511      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7512	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7513	  cat <<_LT_EOF > conftest.$ac_ext
7514/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7515#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7516/* DATA imports from DLLs on WIN32 can't be const, because runtime
7517   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7518# define LT_DLSYM_CONST
7519#elif defined __osf__
7520/* This system does not cope well with relocations in const data.  */
7521# define LT_DLSYM_CONST
7522#else
7523# define LT_DLSYM_CONST const
7524#endif
7525
7526#ifdef __cplusplus
7527extern "C" {
7528#endif
7529
7530_LT_EOF
7531	  # Now generate the symbol file.
7532	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7533
7534	  cat <<_LT_EOF >> conftest.$ac_ext
7535
7536/* The mapping between symbol names and symbols.  */
7537LT_DLSYM_CONST struct {
7538  const char *name;
7539  void       *address;
7540}
7541lt__PROGRAM__LTX_preloaded_symbols[] =
7542{
7543  { "@PROGRAM@", (void *) 0 },
7544_LT_EOF
7545	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7546	  cat <<\_LT_EOF >> conftest.$ac_ext
7547  {0, (void *) 0}
7548};
7549
7550/* This works around a problem in FreeBSD linker */
7551#ifdef FREEBSD_WORKAROUND
7552static const void *lt_preloaded_setup() {
7553  return lt__PROGRAM__LTX_preloaded_symbols;
7554}
7555#endif
7556
7557#ifdef __cplusplus
7558}
7559#endif
7560_LT_EOF
7561	  # Now try linking the two files.
7562	  mv conftest.$ac_objext conftstm.$ac_objext
7563	  lt_globsym_save_LIBS=$LIBS
7564	  lt_globsym_save_CFLAGS=$CFLAGS
7565	  LIBS=conftstm.$ac_objext
7566	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7567	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7568  (eval $ac_link) 2>&5
7569  ac_status=$?
7570  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7571  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7572	    pipe_works=yes
7573	  fi
7574	  LIBS=$lt_globsym_save_LIBS
7575	  CFLAGS=$lt_globsym_save_CFLAGS
7576	else
7577	  echo "cannot find nm_test_func in $nlist" >&5
7578	fi
7579      else
7580	echo "cannot find nm_test_var in $nlist" >&5
7581      fi
7582    else
7583      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7584    fi
7585  else
7586    echo "$progname: failed program was:" >&5
7587    cat conftest.$ac_ext >&5
7588  fi
7589  rm -rf conftest* conftst*
7590
7591  # Do not use the global_symbol_pipe unless it works.
7592  if test yes = "$pipe_works"; then
7593    break
7594  else
7595    lt_cv_sys_global_symbol_pipe=
7596  fi
7597done
7598 ;;
7599esac
7600fi
7601
7602if test -z "$lt_cv_sys_global_symbol_pipe"; then
7603  lt_cv_sys_global_symbol_to_cdecl=
7604fi
7605if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7606  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7607printf "%s\n" "failed" >&6; }
7608else
7609  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7610printf "%s\n" "ok" >&6; }
7611fi
7612
7613# Response file support.
7614if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7615  nm_file_list_spec='@'
7616elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7617  nm_file_list_spec='@'
7618fi
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7657printf %s "checking for sysroot... " >&6; }
7658
7659# Check whether --with-sysroot was given.
7660if test ${with_sysroot+y}
7661then :
7662  withval=$with_sysroot;
7663else case e in #(
7664  e) with_sysroot=no ;;
7665esac
7666fi
7667
7668
7669lt_sysroot=
7670case $with_sysroot in #(
7671 yes)
7672   if test yes = "$GCC"; then
7673     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7674   fi
7675   ;; #(
7676 /*)
7677   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7678   ;; #(
7679 no|'')
7680   ;; #(
7681 *)
7682   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7683printf "%s\n" "$with_sysroot" >&6; }
7684   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7685   ;;
7686esac
7687
7688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7689printf "%s\n" "${lt_sysroot:-no}" >&6; }
7690
7691
7692
7693
7694
7695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7696printf %s "checking for a working dd... " >&6; }
7697if test ${ac_cv_path_lt_DD+y}
7698then :
7699  printf %s "(cached) " >&6
7700else case e in #(
7701  e) printf 0123456789abcdef0123456789abcdef >conftest.i
7702cat conftest.i conftest.i >conftest2.i
7703: ${lt_DD:=$DD}
7704if test -z "$lt_DD"; then
7705  ac_path_lt_DD_found=false
7706  # Loop through the user's path and test for each of PROGNAME-LIST
7707  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708for as_dir in $PATH
7709do
7710  IFS=$as_save_IFS
7711  case $as_dir in #(((
7712    '') as_dir=./ ;;
7713    */) ;;
7714    *) as_dir=$as_dir/ ;;
7715  esac
7716    for ac_prog in dd
7717   do
7718    for ac_exec_ext in '' $ac_executable_extensions; do
7719      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7720      as_fn_executable_p "$ac_path_lt_DD" || continue
7721if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7722  cmp -s conftest.i conftest.out \
7723  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7724fi
7725      $ac_path_lt_DD_found && break 3
7726    done
7727  done
7728  done
7729IFS=$as_save_IFS
7730  if test -z "$ac_cv_path_lt_DD"; then
7731    :
7732  fi
7733else
7734  ac_cv_path_lt_DD=$lt_DD
7735fi
7736
7737rm -f conftest.i conftest2.i conftest.out ;;
7738esac
7739fi
7740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7741printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7742
7743
7744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7745printf %s "checking how to truncate binary pipes... " >&6; }
7746if test ${lt_cv_truncate_bin+y}
7747then :
7748  printf %s "(cached) " >&6
7749else case e in #(
7750  e) printf 0123456789abcdef0123456789abcdef >conftest.i
7751cat conftest.i conftest.i >conftest2.i
7752lt_cv_truncate_bin=
7753if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7754  cmp -s conftest.i conftest.out \
7755  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7756fi
7757rm -f conftest.i conftest2.i conftest.out
7758test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7759esac
7760fi
7761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7762printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7763
7764
7765
7766
7767
7768
7769
7770# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7771func_cc_basename ()
7772{
7773    for cc_temp in $*""; do
7774      case $cc_temp in
7775        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7776        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7777        \-*) ;;
7778        *) break;;
7779      esac
7780    done
7781    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7782}
7783
7784# Check whether --enable-libtool-lock was given.
7785if test ${enable_libtool_lock+y}
7786then :
7787  enableval=$enable_libtool_lock;
7788fi
7789
7790test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7791
7792# Some flags need to be propagated to the compiler or linker for good
7793# libtool support.
7794case $host in
7795ia64-*-hpux*)
7796  # Find out what ABI is being produced by ac_compile, and set mode
7797  # options accordingly.
7798  echo 'int i;' > conftest.$ac_ext
7799  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7800  (eval $ac_compile) 2>&5
7801  ac_status=$?
7802  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7803  test $ac_status = 0; }; then
7804    case `$FILECMD conftest.$ac_objext` in
7805      *ELF-32*)
7806	HPUX_IA64_MODE=32
7807	;;
7808      *ELF-64*)
7809	HPUX_IA64_MODE=64
7810	;;
7811    esac
7812  fi
7813  rm -rf conftest*
7814  ;;
7815*-*-irix6*)
7816  # Find out what ABI is being produced by ac_compile, and set linker
7817  # options accordingly.
7818  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7819  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7820  (eval $ac_compile) 2>&5
7821  ac_status=$?
7822  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7823  test $ac_status = 0; }; then
7824    if test yes = "$lt_cv_prog_gnu_ld"; then
7825      case `$FILECMD conftest.$ac_objext` in
7826	*32-bit*)
7827	  LD="${LD-ld} -melf32bsmip"
7828	  ;;
7829	*N32*)
7830	  LD="${LD-ld} -melf32bmipn32"
7831	  ;;
7832	*64-bit*)
7833	  LD="${LD-ld} -melf64bmip"
7834	;;
7835      esac
7836    else
7837      case `$FILECMD conftest.$ac_objext` in
7838	*32-bit*)
7839	  LD="${LD-ld} -32"
7840	  ;;
7841	*N32*)
7842	  LD="${LD-ld} -n32"
7843	  ;;
7844	*64-bit*)
7845	  LD="${LD-ld} -64"
7846	  ;;
7847      esac
7848    fi
7849  fi
7850  rm -rf conftest*
7851  ;;
7852
7853mips64*-*linux*)
7854  # Find out what ABI is being produced by ac_compile, and set linker
7855  # options accordingly.
7856  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7857  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7858  (eval $ac_compile) 2>&5
7859  ac_status=$?
7860  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7861  test $ac_status = 0; }; then
7862    emul=elf
7863    case `$FILECMD conftest.$ac_objext` in
7864      *32-bit*)
7865	emul="${emul}32"
7866	;;
7867      *64-bit*)
7868	emul="${emul}64"
7869	;;
7870    esac
7871    case `$FILECMD conftest.$ac_objext` in
7872      *MSB*)
7873	emul="${emul}btsmip"
7874	;;
7875      *LSB*)
7876	emul="${emul}ltsmip"
7877	;;
7878    esac
7879    case `$FILECMD conftest.$ac_objext` in
7880      *N32*)
7881	emul="${emul}n32"
7882	;;
7883    esac
7884    LD="${LD-ld} -m $emul"
7885  fi
7886  rm -rf conftest*
7887  ;;
7888
7889x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7890s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7891  # Find out what ABI is being produced by ac_compile, and set linker
7892  # options accordingly.  Note that the listed cases only cover the
7893  # situations where additional linker options are needed (such as when
7894  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7895  # vice versa); the common cases where no linker options are needed do
7896  # not appear in the list.
7897  echo 'int i;' > conftest.$ac_ext
7898  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7899  (eval $ac_compile) 2>&5
7900  ac_status=$?
7901  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7902  test $ac_status = 0; }; then
7903    case `$FILECMD conftest.o` in
7904      *32-bit*)
7905	case $host in
7906	  x86_64-*kfreebsd*-gnu)
7907	    LD="${LD-ld} -m elf_i386_fbsd"
7908	    ;;
7909	  x86_64-*linux*)
7910	    case `$FILECMD conftest.o` in
7911	      *x86-64*)
7912		LD="${LD-ld} -m elf32_x86_64"
7913		;;
7914	      *)
7915		LD="${LD-ld} -m elf_i386"
7916		;;
7917	    esac
7918	    ;;
7919	  powerpc64le-*linux*)
7920	    LD="${LD-ld} -m elf32lppclinux"
7921	    ;;
7922	  powerpc64-*linux*)
7923	    LD="${LD-ld} -m elf32ppclinux"
7924	    ;;
7925	  s390x-*linux*)
7926	    LD="${LD-ld} -m elf_s390"
7927	    ;;
7928	  sparc64-*linux*)
7929	    LD="${LD-ld} -m elf32_sparc"
7930	    ;;
7931	esac
7932	;;
7933      *64-bit*)
7934	case $host in
7935	  x86_64-*kfreebsd*-gnu)
7936	    LD="${LD-ld} -m elf_x86_64_fbsd"
7937	    ;;
7938	  x86_64-*linux*)
7939	    LD="${LD-ld} -m elf_x86_64"
7940	    ;;
7941	  powerpcle-*linux*)
7942	    LD="${LD-ld} -m elf64lppc"
7943	    ;;
7944	  powerpc-*linux*)
7945	    LD="${LD-ld} -m elf64ppc"
7946	    ;;
7947	  s390*-*linux*|s390*-*tpf*)
7948	    LD="${LD-ld} -m elf64_s390"
7949	    ;;
7950	  sparc*-*linux*)
7951	    LD="${LD-ld} -m elf64_sparc"
7952	    ;;
7953	esac
7954	;;
7955    esac
7956  fi
7957  rm -rf conftest*
7958  ;;
7959
7960*-*-sco3.2v5*)
7961  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7962  SAVE_CFLAGS=$CFLAGS
7963  CFLAGS="$CFLAGS -belf"
7964  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7965printf %s "checking whether the C compiler needs -belf... " >&6; }
7966if test ${lt_cv_cc_needs_belf+y}
7967then :
7968  printf %s "(cached) " >&6
7969else case e in #(
7970  e) ac_ext=c
7971ac_cpp='$CPP $CPPFLAGS'
7972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7974ac_compiler_gnu=$ac_cv_c_compiler_gnu
7975
7976     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977/* end confdefs.h.  */
7978
7979int
7980main (void)
7981{
7982
7983  ;
7984  return 0;
7985}
7986_ACEOF
7987if ac_fn_c_try_link "$LINENO"
7988then :
7989  lt_cv_cc_needs_belf=yes
7990else case e in #(
7991  e) lt_cv_cc_needs_belf=no ;;
7992esac
7993fi
7994rm -f core conftest.err conftest.$ac_objext conftest.beam \
7995    conftest$ac_exeext conftest.$ac_ext
7996     ac_ext=c
7997ac_cpp='$CPP $CPPFLAGS'
7998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8000ac_compiler_gnu=$ac_cv_c_compiler_gnu
8001 ;;
8002esac
8003fi
8004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8005printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8006  if test yes != "$lt_cv_cc_needs_belf"; then
8007    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8008    CFLAGS=$SAVE_CFLAGS
8009  fi
8010  ;;
8011*-*solaris*)
8012  # Find out what ABI is being produced by ac_compile, and set linker
8013  # options accordingly.
8014  echo 'int i;' > conftest.$ac_ext
8015  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8016  (eval $ac_compile) 2>&5
8017  ac_status=$?
8018  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8019  test $ac_status = 0; }; then
8020    case `$FILECMD conftest.o` in
8021    *64-bit*)
8022      case $lt_cv_prog_gnu_ld in
8023      yes*)
8024        case $host in
8025        i?86-*-solaris*|x86_64-*-solaris*)
8026          LD="${LD-ld} -m elf_x86_64"
8027          ;;
8028        sparc*-*-solaris*)
8029          LD="${LD-ld} -m elf64_sparc"
8030          ;;
8031        esac
8032        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8033        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8034          LD=${LD-ld}_sol2
8035        fi
8036        ;;
8037      *)
8038	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8039	  LD="${LD-ld} -64"
8040	fi
8041	;;
8042      esac
8043      ;;
8044    esac
8045  fi
8046  rm -rf conftest*
8047  ;;
8048esac
8049
8050need_locks=$enable_libtool_lock
8051
8052if test -n "$ac_tool_prefix"; then
8053  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8054set dummy ${ac_tool_prefix}mt; ac_word=$2
8055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8056printf %s "checking for $ac_word... " >&6; }
8057if test ${ac_cv_prog_MANIFEST_TOOL+y}
8058then :
8059  printf %s "(cached) " >&6
8060else case e in #(
8061  e) if test -n "$MANIFEST_TOOL"; then
8062  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8063else
8064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065for as_dir in $PATH
8066do
8067  IFS=$as_save_IFS
8068  case $as_dir in #(((
8069    '') as_dir=./ ;;
8070    */) ;;
8071    *) as_dir=$as_dir/ ;;
8072  esac
8073    for ac_exec_ext in '' $ac_executable_extensions; do
8074  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8075    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8076    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8077    break 2
8078  fi
8079done
8080  done
8081IFS=$as_save_IFS
8082
8083fi ;;
8084esac
8085fi
8086MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8087if test -n "$MANIFEST_TOOL"; then
8088  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8089printf "%s\n" "$MANIFEST_TOOL" >&6; }
8090else
8091  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8092printf "%s\n" "no" >&6; }
8093fi
8094
8095
8096fi
8097if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8098  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8099  # Extract the first word of "mt", so it can be a program name with args.
8100set dummy mt; ac_word=$2
8101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8102printf %s "checking for $ac_word... " >&6; }
8103if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8104then :
8105  printf %s "(cached) " >&6
8106else case e in #(
8107  e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8108  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8109else
8110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8111for as_dir in $PATH
8112do
8113  IFS=$as_save_IFS
8114  case $as_dir in #(((
8115    '') as_dir=./ ;;
8116    */) ;;
8117    *) as_dir=$as_dir/ ;;
8118  esac
8119    for ac_exec_ext in '' $ac_executable_extensions; do
8120  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8121    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8122    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8123    break 2
8124  fi
8125done
8126  done
8127IFS=$as_save_IFS
8128
8129fi ;;
8130esac
8131fi
8132ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8133if test -n "$ac_ct_MANIFEST_TOOL"; then
8134  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8135printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8136else
8137  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8138printf "%s\n" "no" >&6; }
8139fi
8140
8141  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8142    MANIFEST_TOOL=":"
8143  else
8144    case $cross_compiling:$ac_tool_warned in
8145yes:)
8146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8147printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8148ac_tool_warned=yes ;;
8149esac
8150    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8151  fi
8152else
8153  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8154fi
8155
8156test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8158printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8159if test ${lt_cv_path_mainfest_tool+y}
8160then :
8161  printf %s "(cached) " >&6
8162else case e in #(
8163  e) lt_cv_path_mainfest_tool=no
8164  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8165  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8166  cat conftest.err >&5
8167  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8168    lt_cv_path_mainfest_tool=yes
8169  fi
8170  rm -f conftest* ;;
8171esac
8172fi
8173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8174printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8175if test yes != "$lt_cv_path_mainfest_tool"; then
8176  MANIFEST_TOOL=:
8177fi
8178
8179
8180
8181
8182
8183
8184  case $host_os in
8185    rhapsody* | darwin*)
8186    if test -n "$ac_tool_prefix"; then
8187  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8188set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8190printf %s "checking for $ac_word... " >&6; }
8191if test ${ac_cv_prog_DSYMUTIL+y}
8192then :
8193  printf %s "(cached) " >&6
8194else case e in #(
8195  e) if test -n "$DSYMUTIL"; then
8196  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8197else
8198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8199for as_dir in $PATH
8200do
8201  IFS=$as_save_IFS
8202  case $as_dir in #(((
8203    '') as_dir=./ ;;
8204    */) ;;
8205    *) as_dir=$as_dir/ ;;
8206  esac
8207    for ac_exec_ext in '' $ac_executable_extensions; do
8208  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8209    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8210    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8211    break 2
8212  fi
8213done
8214  done
8215IFS=$as_save_IFS
8216
8217fi ;;
8218esac
8219fi
8220DSYMUTIL=$ac_cv_prog_DSYMUTIL
8221if test -n "$DSYMUTIL"; then
8222  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8223printf "%s\n" "$DSYMUTIL" >&6; }
8224else
8225  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226printf "%s\n" "no" >&6; }
8227fi
8228
8229
8230fi
8231if test -z "$ac_cv_prog_DSYMUTIL"; then
8232  ac_ct_DSYMUTIL=$DSYMUTIL
8233  # Extract the first word of "dsymutil", so it can be a program name with args.
8234set dummy dsymutil; ac_word=$2
8235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8236printf %s "checking for $ac_word... " >&6; }
8237if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8238then :
8239  printf %s "(cached) " >&6
8240else case e in #(
8241  e) if test -n "$ac_ct_DSYMUTIL"; then
8242  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8243else
8244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8245for as_dir in $PATH
8246do
8247  IFS=$as_save_IFS
8248  case $as_dir in #(((
8249    '') as_dir=./ ;;
8250    */) ;;
8251    *) as_dir=$as_dir/ ;;
8252  esac
8253    for ac_exec_ext in '' $ac_executable_extensions; do
8254  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8255    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8256    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8257    break 2
8258  fi
8259done
8260  done
8261IFS=$as_save_IFS
8262
8263fi ;;
8264esac
8265fi
8266ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8267if test -n "$ac_ct_DSYMUTIL"; then
8268  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8269printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8270else
8271  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8272printf "%s\n" "no" >&6; }
8273fi
8274
8275  if test "x$ac_ct_DSYMUTIL" = x; then
8276    DSYMUTIL=":"
8277  else
8278    case $cross_compiling:$ac_tool_warned in
8279yes:)
8280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8281printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8282ac_tool_warned=yes ;;
8283esac
8284    DSYMUTIL=$ac_ct_DSYMUTIL
8285  fi
8286else
8287  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8288fi
8289
8290    if test -n "$ac_tool_prefix"; then
8291  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8292set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8294printf %s "checking for $ac_word... " >&6; }
8295if test ${ac_cv_prog_NMEDIT+y}
8296then :
8297  printf %s "(cached) " >&6
8298else case e in #(
8299  e) if test -n "$NMEDIT"; then
8300  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8301else
8302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303for as_dir in $PATH
8304do
8305  IFS=$as_save_IFS
8306  case $as_dir in #(((
8307    '') as_dir=./ ;;
8308    */) ;;
8309    *) as_dir=$as_dir/ ;;
8310  esac
8311    for ac_exec_ext in '' $ac_executable_extensions; do
8312  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8313    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8314    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8315    break 2
8316  fi
8317done
8318  done
8319IFS=$as_save_IFS
8320
8321fi ;;
8322esac
8323fi
8324NMEDIT=$ac_cv_prog_NMEDIT
8325if test -n "$NMEDIT"; then
8326  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8327printf "%s\n" "$NMEDIT" >&6; }
8328else
8329  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8330printf "%s\n" "no" >&6; }
8331fi
8332
8333
8334fi
8335if test -z "$ac_cv_prog_NMEDIT"; then
8336  ac_ct_NMEDIT=$NMEDIT
8337  # Extract the first word of "nmedit", so it can be a program name with args.
8338set dummy nmedit; ac_word=$2
8339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8340printf %s "checking for $ac_word... " >&6; }
8341if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8342then :
8343  printf %s "(cached) " >&6
8344else case e in #(
8345  e) if test -n "$ac_ct_NMEDIT"; then
8346  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8347else
8348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8349for as_dir in $PATH
8350do
8351  IFS=$as_save_IFS
8352  case $as_dir in #(((
8353    '') as_dir=./ ;;
8354    */) ;;
8355    *) as_dir=$as_dir/ ;;
8356  esac
8357    for ac_exec_ext in '' $ac_executable_extensions; do
8358  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8359    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8360    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8361    break 2
8362  fi
8363done
8364  done
8365IFS=$as_save_IFS
8366
8367fi ;;
8368esac
8369fi
8370ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8371if test -n "$ac_ct_NMEDIT"; then
8372  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8373printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8374else
8375  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376printf "%s\n" "no" >&6; }
8377fi
8378
8379  if test "x$ac_ct_NMEDIT" = x; then
8380    NMEDIT=":"
8381  else
8382    case $cross_compiling:$ac_tool_warned in
8383yes:)
8384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8385printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8386ac_tool_warned=yes ;;
8387esac
8388    NMEDIT=$ac_ct_NMEDIT
8389  fi
8390else
8391  NMEDIT="$ac_cv_prog_NMEDIT"
8392fi
8393
8394    if test -n "$ac_tool_prefix"; then
8395  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8396set dummy ${ac_tool_prefix}lipo; ac_word=$2
8397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8398printf %s "checking for $ac_word... " >&6; }
8399if test ${ac_cv_prog_LIPO+y}
8400then :
8401  printf %s "(cached) " >&6
8402else case e in #(
8403  e) if test -n "$LIPO"; then
8404  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8405else
8406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8407for as_dir in $PATH
8408do
8409  IFS=$as_save_IFS
8410  case $as_dir in #(((
8411    '') as_dir=./ ;;
8412    */) ;;
8413    *) as_dir=$as_dir/ ;;
8414  esac
8415    for ac_exec_ext in '' $ac_executable_extensions; do
8416  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8417    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8418    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8419    break 2
8420  fi
8421done
8422  done
8423IFS=$as_save_IFS
8424
8425fi ;;
8426esac
8427fi
8428LIPO=$ac_cv_prog_LIPO
8429if test -n "$LIPO"; then
8430  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8431printf "%s\n" "$LIPO" >&6; }
8432else
8433  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8434printf "%s\n" "no" >&6; }
8435fi
8436
8437
8438fi
8439if test -z "$ac_cv_prog_LIPO"; then
8440  ac_ct_LIPO=$LIPO
8441  # Extract the first word of "lipo", so it can be a program name with args.
8442set dummy lipo; ac_word=$2
8443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8444printf %s "checking for $ac_word... " >&6; }
8445if test ${ac_cv_prog_ac_ct_LIPO+y}
8446then :
8447  printf %s "(cached) " >&6
8448else case e in #(
8449  e) if test -n "$ac_ct_LIPO"; then
8450  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8451else
8452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8453for as_dir in $PATH
8454do
8455  IFS=$as_save_IFS
8456  case $as_dir in #(((
8457    '') as_dir=./ ;;
8458    */) ;;
8459    *) as_dir=$as_dir/ ;;
8460  esac
8461    for ac_exec_ext in '' $ac_executable_extensions; do
8462  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8463    ac_cv_prog_ac_ct_LIPO="lipo"
8464    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8465    break 2
8466  fi
8467done
8468  done
8469IFS=$as_save_IFS
8470
8471fi ;;
8472esac
8473fi
8474ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8475if test -n "$ac_ct_LIPO"; then
8476  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8477printf "%s\n" "$ac_ct_LIPO" >&6; }
8478else
8479  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8480printf "%s\n" "no" >&6; }
8481fi
8482
8483  if test "x$ac_ct_LIPO" = x; then
8484    LIPO=":"
8485  else
8486    case $cross_compiling:$ac_tool_warned in
8487yes:)
8488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8489printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8490ac_tool_warned=yes ;;
8491esac
8492    LIPO=$ac_ct_LIPO
8493  fi
8494else
8495  LIPO="$ac_cv_prog_LIPO"
8496fi
8497
8498    if test -n "$ac_tool_prefix"; then
8499  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8500set dummy ${ac_tool_prefix}otool; ac_word=$2
8501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8502printf %s "checking for $ac_word... " >&6; }
8503if test ${ac_cv_prog_OTOOL+y}
8504then :
8505  printf %s "(cached) " >&6
8506else case e in #(
8507  e) if test -n "$OTOOL"; then
8508  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8509else
8510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8511for as_dir in $PATH
8512do
8513  IFS=$as_save_IFS
8514  case $as_dir in #(((
8515    '') as_dir=./ ;;
8516    */) ;;
8517    *) as_dir=$as_dir/ ;;
8518  esac
8519    for ac_exec_ext in '' $ac_executable_extensions; do
8520  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8521    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8522    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8523    break 2
8524  fi
8525done
8526  done
8527IFS=$as_save_IFS
8528
8529fi ;;
8530esac
8531fi
8532OTOOL=$ac_cv_prog_OTOOL
8533if test -n "$OTOOL"; then
8534  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8535printf "%s\n" "$OTOOL" >&6; }
8536else
8537  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8538printf "%s\n" "no" >&6; }
8539fi
8540
8541
8542fi
8543if test -z "$ac_cv_prog_OTOOL"; then
8544  ac_ct_OTOOL=$OTOOL
8545  # Extract the first word of "otool", so it can be a program name with args.
8546set dummy otool; ac_word=$2
8547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8548printf %s "checking for $ac_word... " >&6; }
8549if test ${ac_cv_prog_ac_ct_OTOOL+y}
8550then :
8551  printf %s "(cached) " >&6
8552else case e in #(
8553  e) if test -n "$ac_ct_OTOOL"; then
8554  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8555else
8556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557for as_dir in $PATH
8558do
8559  IFS=$as_save_IFS
8560  case $as_dir in #(((
8561    '') as_dir=./ ;;
8562    */) ;;
8563    *) as_dir=$as_dir/ ;;
8564  esac
8565    for ac_exec_ext in '' $ac_executable_extensions; do
8566  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8567    ac_cv_prog_ac_ct_OTOOL="otool"
8568    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8569    break 2
8570  fi
8571done
8572  done
8573IFS=$as_save_IFS
8574
8575fi ;;
8576esac
8577fi
8578ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8579if test -n "$ac_ct_OTOOL"; then
8580  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8581printf "%s\n" "$ac_ct_OTOOL" >&6; }
8582else
8583  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8584printf "%s\n" "no" >&6; }
8585fi
8586
8587  if test "x$ac_ct_OTOOL" = x; then
8588    OTOOL=":"
8589  else
8590    case $cross_compiling:$ac_tool_warned in
8591yes:)
8592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8593printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8594ac_tool_warned=yes ;;
8595esac
8596    OTOOL=$ac_ct_OTOOL
8597  fi
8598else
8599  OTOOL="$ac_cv_prog_OTOOL"
8600fi
8601
8602    if test -n "$ac_tool_prefix"; then
8603  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8604set dummy ${ac_tool_prefix}otool64; ac_word=$2
8605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8606printf %s "checking for $ac_word... " >&6; }
8607if test ${ac_cv_prog_OTOOL64+y}
8608then :
8609  printf %s "(cached) " >&6
8610else case e in #(
8611  e) if test -n "$OTOOL64"; then
8612  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8613else
8614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8615for as_dir in $PATH
8616do
8617  IFS=$as_save_IFS
8618  case $as_dir in #(((
8619    '') as_dir=./ ;;
8620    */) ;;
8621    *) as_dir=$as_dir/ ;;
8622  esac
8623    for ac_exec_ext in '' $ac_executable_extensions; do
8624  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8625    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8626    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8627    break 2
8628  fi
8629done
8630  done
8631IFS=$as_save_IFS
8632
8633fi ;;
8634esac
8635fi
8636OTOOL64=$ac_cv_prog_OTOOL64
8637if test -n "$OTOOL64"; then
8638  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8639printf "%s\n" "$OTOOL64" >&6; }
8640else
8641  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8642printf "%s\n" "no" >&6; }
8643fi
8644
8645
8646fi
8647if test -z "$ac_cv_prog_OTOOL64"; then
8648  ac_ct_OTOOL64=$OTOOL64
8649  # Extract the first word of "otool64", so it can be a program name with args.
8650set dummy otool64; ac_word=$2
8651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8652printf %s "checking for $ac_word... " >&6; }
8653if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8654then :
8655  printf %s "(cached) " >&6
8656else case e in #(
8657  e) if test -n "$ac_ct_OTOOL64"; then
8658  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8659else
8660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8661for as_dir in $PATH
8662do
8663  IFS=$as_save_IFS
8664  case $as_dir in #(((
8665    '') as_dir=./ ;;
8666    */) ;;
8667    *) as_dir=$as_dir/ ;;
8668  esac
8669    for ac_exec_ext in '' $ac_executable_extensions; do
8670  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8671    ac_cv_prog_ac_ct_OTOOL64="otool64"
8672    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8673    break 2
8674  fi
8675done
8676  done
8677IFS=$as_save_IFS
8678
8679fi ;;
8680esac
8681fi
8682ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8683if test -n "$ac_ct_OTOOL64"; then
8684  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8685printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8686else
8687  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8688printf "%s\n" "no" >&6; }
8689fi
8690
8691  if test "x$ac_ct_OTOOL64" = x; then
8692    OTOOL64=":"
8693  else
8694    case $cross_compiling:$ac_tool_warned in
8695yes:)
8696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8697printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8698ac_tool_warned=yes ;;
8699esac
8700    OTOOL64=$ac_ct_OTOOL64
8701  fi
8702else
8703  OTOOL64="$ac_cv_prog_OTOOL64"
8704fi
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8733printf %s "checking for -single_module linker flag... " >&6; }
8734if test ${lt_cv_apple_cc_single_mod+y}
8735then :
8736  printf %s "(cached) " >&6
8737else case e in #(
8738  e) lt_cv_apple_cc_single_mod=no
8739      if test -z "$LT_MULTI_MODULE"; then
8740	# By default we will add the -single_module flag. You can override
8741	# by either setting the environment variable LT_MULTI_MODULE
8742	# non-empty at configure time, or by adding -multi_module to the
8743	# link flags.
8744	rm -rf libconftest.dylib*
8745	echo "int foo(void){return 1;}" > conftest.c
8746	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8747-dynamiclib -Wl,-single_module conftest.c" >&5
8748	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8749	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8750        _lt_result=$?
8751	# If there is a non-empty error log, and "single_module"
8752	# appears in it, assume the flag caused a linker warning
8753        if test -s conftest.err && $GREP single_module conftest.err; then
8754	  cat conftest.err >&5
8755	# Otherwise, if the output was created with a 0 exit code from
8756	# the compiler, it worked.
8757	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8758	  lt_cv_apple_cc_single_mod=yes
8759	else
8760	  cat conftest.err >&5
8761	fi
8762	rm -rf libconftest.dylib*
8763	rm -f conftest.*
8764      fi ;;
8765esac
8766fi
8767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8768printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8769
8770    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8771printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8772if test ${lt_cv_ld_exported_symbols_list+y}
8773then :
8774  printf %s "(cached) " >&6
8775else case e in #(
8776  e) lt_cv_ld_exported_symbols_list=no
8777      save_LDFLAGS=$LDFLAGS
8778      echo "_main" > conftest.sym
8779      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8780      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8781/* end confdefs.h.  */
8782
8783int
8784main (void)
8785{
8786
8787  ;
8788  return 0;
8789}
8790_ACEOF
8791if ac_fn_c_try_link "$LINENO"
8792then :
8793  lt_cv_ld_exported_symbols_list=yes
8794else case e in #(
8795  e) lt_cv_ld_exported_symbols_list=no ;;
8796esac
8797fi
8798rm -f core conftest.err conftest.$ac_objext conftest.beam \
8799    conftest$ac_exeext conftest.$ac_ext
8800	LDFLAGS=$save_LDFLAGS
8801     ;;
8802esac
8803fi
8804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8805printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8806
8807    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8808printf %s "checking for -force_load linker flag... " >&6; }
8809if test ${lt_cv_ld_force_load+y}
8810then :
8811  printf %s "(cached) " >&6
8812else case e in #(
8813  e) lt_cv_ld_force_load=no
8814      cat > conftest.c << _LT_EOF
8815int forced_loaded() { return 2;}
8816_LT_EOF
8817      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8818      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8819      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8820      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8821      echo "$RANLIB libconftest.a" >&5
8822      $RANLIB libconftest.a 2>&5
8823      cat > conftest.c << _LT_EOF
8824int main() { return 0;}
8825_LT_EOF
8826      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8827      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8828      _lt_result=$?
8829      if test -s conftest.err && $GREP force_load conftest.err; then
8830	cat conftest.err >&5
8831      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8832	lt_cv_ld_force_load=yes
8833      else
8834	cat conftest.err >&5
8835      fi
8836        rm -f conftest.err libconftest.a conftest conftest.c
8837        rm -rf conftest.dSYM
8838     ;;
8839esac
8840fi
8841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8842printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8843    case $host_os in
8844    rhapsody* | darwin1.[012])
8845      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8846    darwin1.*)
8847      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8848    darwin*)
8849      case $MACOSX_DEPLOYMENT_TARGET,$host in
8850        10.[012],*|,*powerpc*-darwin[5-8]*)
8851          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8852        *)
8853          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8854      esac
8855    ;;
8856  esac
8857    if test yes = "$lt_cv_apple_cc_single_mod"; then
8858      _lt_dar_single_mod='$single_module'
8859    fi
8860    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8861      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8862    else
8863      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8864    fi
8865    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8866      _lt_dsymutil='~$DSYMUTIL $lib || :'
8867    else
8868      _lt_dsymutil=
8869    fi
8870    ;;
8871  esac
8872
8873# func_munge_path_list VARIABLE PATH
8874# -----------------------------------
8875# VARIABLE is name of variable containing _space_ separated list of
8876# directories to be munged by the contents of PATH, which is string
8877# having a format:
8878# "DIR[:DIR]:"
8879#       string "DIR[ DIR]" will be prepended to VARIABLE
8880# ":DIR[:DIR]"
8881#       string "DIR[ DIR]" will be appended to VARIABLE
8882# "DIRP[:DIRP]::[DIRA:]DIRA"
8883#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8884#       "DIRA[ DIRA]" will be appended to VARIABLE
8885# "DIR[:DIR]"
8886#       VARIABLE will be replaced by "DIR[ DIR]"
8887func_munge_path_list ()
8888{
8889    case x$2 in
8890    x)
8891        ;;
8892    *:)
8893        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8894        ;;
8895    x:*)
8896        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8897        ;;
8898    *::*)
8899        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8900        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8901        ;;
8902    *)
8903        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8904        ;;
8905    esac
8906}
8907
8908ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8909"
8910if test "x$ac_cv_header_dlfcn_h" = xyes
8911then :
8912  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8913
8914fi
8915
8916
8917
8918
8919
8920# Set options
8921
8922
8923
8924        enable_dlopen=no
8925
8926
8927  enable_win32_dll=no
8928
8929
8930            # Check whether --enable-shared was given.
8931if test ${enable_shared+y}
8932then :
8933  enableval=$enable_shared; p=${PACKAGE-default}
8934    case $enableval in
8935    yes) enable_shared=yes ;;
8936    no) enable_shared=no ;;
8937    *)
8938      enable_shared=no
8939      # Look at the argument we got.  We use all the common list separators.
8940      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8941      for pkg in $enableval; do
8942	IFS=$lt_save_ifs
8943	if test "X$pkg" = "X$p"; then
8944	  enable_shared=yes
8945	fi
8946      done
8947      IFS=$lt_save_ifs
8948      ;;
8949    esac
8950else case e in #(
8951  e) enable_shared=yes ;;
8952esac
8953fi
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963  # Check whether --enable-static was given.
8964if test ${enable_static+y}
8965then :
8966  enableval=$enable_static; p=${PACKAGE-default}
8967    case $enableval in
8968    yes) enable_static=yes ;;
8969    no) enable_static=no ;;
8970    *)
8971     enable_static=no
8972      # Look at the argument we got.  We use all the common list separators.
8973      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8974      for pkg in $enableval; do
8975	IFS=$lt_save_ifs
8976	if test "X$pkg" = "X$p"; then
8977	  enable_static=yes
8978	fi
8979      done
8980      IFS=$lt_save_ifs
8981      ;;
8982    esac
8983else case e in #(
8984  e) enable_static=yes ;;
8985esac
8986fi
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997# Check whether --with-pic was given.
8998if test ${with_pic+y}
8999then :
9000  withval=$with_pic; lt_p=${PACKAGE-default}
9001    case $withval in
9002    yes|no) pic_mode=$withval ;;
9003    *)
9004      pic_mode=default
9005      # Look at the argument we got.  We use all the common list separators.
9006      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9007      for lt_pkg in $withval; do
9008	IFS=$lt_save_ifs
9009	if test "X$lt_pkg" = "X$lt_p"; then
9010	  pic_mode=yes
9011	fi
9012      done
9013      IFS=$lt_save_ifs
9014      ;;
9015    esac
9016else case e in #(
9017  e) pic_mode=default ;;
9018esac
9019fi
9020
9021
9022
9023
9024
9025
9026
9027
9028  # Check whether --enable-fast-install was given.
9029if test ${enable_fast_install+y}
9030then :
9031  enableval=$enable_fast_install; p=${PACKAGE-default}
9032    case $enableval in
9033    yes) enable_fast_install=yes ;;
9034    no) enable_fast_install=no ;;
9035    *)
9036      enable_fast_install=no
9037      # Look at the argument we got.  We use all the common list separators.
9038      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9039      for pkg in $enableval; do
9040	IFS=$lt_save_ifs
9041	if test "X$pkg" = "X$p"; then
9042	  enable_fast_install=yes
9043	fi
9044      done
9045      IFS=$lt_save_ifs
9046      ;;
9047    esac
9048else case e in #(
9049  e) enable_fast_install=yes ;;
9050esac
9051fi
9052
9053
9054
9055
9056
9057
9058
9059
9060  shared_archive_member_spec=
9061case $host,$enable_shared in
9062power*-*-aix[5-9]*,yes)
9063  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9064printf %s "checking which variant of shared library versioning to provide... " >&6; }
9065
9066# Check whether --with-aix-soname was given.
9067if test ${with_aix_soname+y}
9068then :
9069  withval=$with_aix_soname; case $withval in
9070    aix|svr4|both)
9071      ;;
9072    *)
9073      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9074      ;;
9075    esac
9076    lt_cv_with_aix_soname=$with_aix_soname
9077else case e in #(
9078  e) if test ${lt_cv_with_aix_soname+y}
9079then :
9080  printf %s "(cached) " >&6
9081else case e in #(
9082  e) lt_cv_with_aix_soname=aix ;;
9083esac
9084fi
9085
9086    with_aix_soname=$lt_cv_with_aix_soname ;;
9087esac
9088fi
9089
9090  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9091printf "%s\n" "$with_aix_soname" >&6; }
9092  if test aix != "$with_aix_soname"; then
9093    # For the AIX way of multilib, we name the shared archive member
9094    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9095    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9096    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9097    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9098    if test 64 = "${OBJECT_MODE-32}"; then
9099      shared_archive_member_spec=shr_64
9100    else
9101      shared_archive_member_spec=shr
9102    fi
9103  fi
9104  ;;
9105*)
9106  with_aix_soname=aix
9107  ;;
9108esac
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119# This can be used to rebuild libtool when needed
9120LIBTOOL_DEPS=$ltmain
9121
9122# Always use our own libtool.
9123LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154test -z "$LN_S" && LN_S="ln -s"
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169if test -n "${ZSH_VERSION+set}"; then
9170   setopt NO_GLOB_SUBST
9171fi
9172
9173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9174printf %s "checking for objdir... " >&6; }
9175if test ${lt_cv_objdir+y}
9176then :
9177  printf %s "(cached) " >&6
9178else case e in #(
9179  e) rm -f .libs 2>/dev/null
9180mkdir .libs 2>/dev/null
9181if test -d .libs; then
9182  lt_cv_objdir=.libs
9183else
9184  # MS-DOS does not allow filenames that begin with a dot.
9185  lt_cv_objdir=_libs
9186fi
9187rmdir .libs 2>/dev/null ;;
9188esac
9189fi
9190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9191printf "%s\n" "$lt_cv_objdir" >&6; }
9192objdir=$lt_cv_objdir
9193
9194
9195
9196
9197
9198printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9199
9200
9201
9202
9203case $host_os in
9204aix3*)
9205  # AIX sometimes has problems with the GCC collect2 program.  For some
9206  # reason, if we set the COLLECT_NAMES environment variable, the problems
9207  # vanish in a puff of smoke.
9208  if test set != "${COLLECT_NAMES+set}"; then
9209    COLLECT_NAMES=
9210    export COLLECT_NAMES
9211  fi
9212  ;;
9213esac
9214
9215# Global variables:
9216ofile=libtool
9217can_build_shared=yes
9218
9219# All known linkers require a '.a' archive for static linking (except MSVC and
9220# ICC, which need '.lib').
9221libext=a
9222
9223with_gnu_ld=$lt_cv_prog_gnu_ld
9224
9225old_CC=$CC
9226old_CFLAGS=$CFLAGS
9227
9228# Set sane defaults for various variables
9229test -z "$CC" && CC=cc
9230test -z "$LTCC" && LTCC=$CC
9231test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9232test -z "$LD" && LD=ld
9233test -z "$ac_objext" && ac_objext=o
9234
9235func_cc_basename $compiler
9236cc_basename=$func_cc_basename_result
9237
9238
9239# Only perform the check for file, if the check method requires it
9240test -z "$MAGIC_CMD" && MAGIC_CMD=file
9241case $deplibs_check_method in
9242file_magic*)
9243  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9244    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9245printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9246if test ${lt_cv_path_MAGIC_CMD+y}
9247then :
9248  printf %s "(cached) " >&6
9249else case e in #(
9250  e) case $MAGIC_CMD in
9251[\\/*] |  ?:[\\/]*)
9252  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9253  ;;
9254*)
9255  lt_save_MAGIC_CMD=$MAGIC_CMD
9256  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9257  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9258  for ac_dir in $ac_dummy; do
9259    IFS=$lt_save_ifs
9260    test -z "$ac_dir" && ac_dir=.
9261    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9262      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9263      if test -n "$file_magic_test_file"; then
9264	case $deplibs_check_method in
9265	"file_magic "*)
9266	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9267	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9268	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9269	    $EGREP "$file_magic_regex" > /dev/null; then
9270	    :
9271	  else
9272	    cat <<_LT_EOF 1>&2
9273
9274*** Warning: the command libtool uses to detect shared libraries,
9275*** $file_magic_cmd, produces output that libtool cannot recognize.
9276*** The result is that libtool may fail to recognize shared libraries
9277*** as such.  This will affect the creation of libtool libraries that
9278*** depend on shared libraries, but programs linked with such libtool
9279*** libraries will work regardless of this problem.  Nevertheless, you
9280*** may want to report the problem to your system manager and/or to
9281*** bug-libtool@gnu.org
9282
9283_LT_EOF
9284	  fi ;;
9285	esac
9286      fi
9287      break
9288    fi
9289  done
9290  IFS=$lt_save_ifs
9291  MAGIC_CMD=$lt_save_MAGIC_CMD
9292  ;;
9293esac ;;
9294esac
9295fi
9296
9297MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9298if test -n "$MAGIC_CMD"; then
9299  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9300printf "%s\n" "$MAGIC_CMD" >&6; }
9301else
9302  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9303printf "%s\n" "no" >&6; }
9304fi
9305
9306
9307
9308
9309
9310if test -z "$lt_cv_path_MAGIC_CMD"; then
9311  if test -n "$ac_tool_prefix"; then
9312    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9313printf %s "checking for file... " >&6; }
9314if test ${lt_cv_path_MAGIC_CMD+y}
9315then :
9316  printf %s "(cached) " >&6
9317else case e in #(
9318  e) case $MAGIC_CMD in
9319[\\/*] |  ?:[\\/]*)
9320  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9321  ;;
9322*)
9323  lt_save_MAGIC_CMD=$MAGIC_CMD
9324  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9325  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9326  for ac_dir in $ac_dummy; do
9327    IFS=$lt_save_ifs
9328    test -z "$ac_dir" && ac_dir=.
9329    if test -f "$ac_dir/file"; then
9330      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9331      if test -n "$file_magic_test_file"; then
9332	case $deplibs_check_method in
9333	"file_magic "*)
9334	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9335	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9336	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9337	    $EGREP "$file_magic_regex" > /dev/null; then
9338	    :
9339	  else
9340	    cat <<_LT_EOF 1>&2
9341
9342*** Warning: the command libtool uses to detect shared libraries,
9343*** $file_magic_cmd, produces output that libtool cannot recognize.
9344*** The result is that libtool may fail to recognize shared libraries
9345*** as such.  This will affect the creation of libtool libraries that
9346*** depend on shared libraries, but programs linked with such libtool
9347*** libraries will work regardless of this problem.  Nevertheless, you
9348*** may want to report the problem to your system manager and/or to
9349*** bug-libtool@gnu.org
9350
9351_LT_EOF
9352	  fi ;;
9353	esac
9354      fi
9355      break
9356    fi
9357  done
9358  IFS=$lt_save_ifs
9359  MAGIC_CMD=$lt_save_MAGIC_CMD
9360  ;;
9361esac ;;
9362esac
9363fi
9364
9365MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9366if test -n "$MAGIC_CMD"; then
9367  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9368printf "%s\n" "$MAGIC_CMD" >&6; }
9369else
9370  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9371printf "%s\n" "no" >&6; }
9372fi
9373
9374
9375  else
9376    MAGIC_CMD=:
9377  fi
9378fi
9379
9380  fi
9381  ;;
9382esac
9383
9384# Use C for the default configuration in the libtool script
9385
9386lt_save_CC=$CC
9387ac_ext=c
9388ac_cpp='$CPP $CPPFLAGS'
9389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9391ac_compiler_gnu=$ac_cv_c_compiler_gnu
9392
9393
9394# Source file extension for C test sources.
9395ac_ext=c
9396
9397# Object file extension for compiled C test sources.
9398objext=o
9399objext=$objext
9400
9401# Code to be used in simple compile tests
9402lt_simple_compile_test_code="int some_variable = 0;"
9403
9404# Code to be used in simple link tests
9405lt_simple_link_test_code='int main(){return(0);}'
9406
9407
9408
9409
9410
9411
9412
9413# If no C compiler was specified, use CC.
9414LTCC=${LTCC-"$CC"}
9415
9416# If no C compiler flags were specified, use CFLAGS.
9417LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9418
9419# Allow CC to be a program name with arguments.
9420compiler=$CC
9421
9422# Save the default compiler, since it gets overwritten when the other
9423# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9424compiler_DEFAULT=$CC
9425
9426# save warnings/boilerplate of simple test code
9427ac_outfile=conftest.$ac_objext
9428echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9429eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9430_lt_compiler_boilerplate=`cat conftest.err`
9431$RM conftest*
9432
9433ac_outfile=conftest.$ac_objext
9434echo "$lt_simple_link_test_code" >conftest.$ac_ext
9435eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9436_lt_linker_boilerplate=`cat conftest.err`
9437$RM -r conftest*
9438
9439
9440## CAVEAT EMPTOR:
9441## There is no encapsulation within the following macros, do not change
9442## the running order or otherwise move them around unless you know exactly
9443## what you are doing...
9444if test -n "$compiler"; then
9445
9446lt_prog_compiler_no_builtin_flag=
9447
9448if test yes = "$GCC"; then
9449  case $cc_basename in
9450  nvcc*)
9451    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9452  *)
9453    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9454  esac
9455
9456  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9457printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9458if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9459then :
9460  printf %s "(cached) " >&6
9461else case e in #(
9462  e) lt_cv_prog_compiler_rtti_exceptions=no
9463   ac_outfile=conftest.$ac_objext
9464   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9465   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9466   # Insert the option either (1) after the last *FLAGS variable, or
9467   # (2) before a word containing "conftest.", or (3) at the end.
9468   # Note that $ac_compile itself does not contain backslashes and begins
9469   # with a dollar sign (not a hyphen), so the echo should work correctly.
9470   # The option is referenced via a variable to avoid confusing sed.
9471   lt_compile=`echo "$ac_compile" | $SED \
9472   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9473   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9474   -e 's:$: $lt_compiler_flag:'`
9475   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9476   (eval "$lt_compile" 2>conftest.err)
9477   ac_status=$?
9478   cat conftest.err >&5
9479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480   if (exit $ac_status) && test -s "$ac_outfile"; then
9481     # The compiler can only warn and ignore the option if not recognized
9482     # So say no if there are warnings other than the usual output.
9483     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9484     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9485     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9486       lt_cv_prog_compiler_rtti_exceptions=yes
9487     fi
9488   fi
9489   $RM conftest*
9490 ;;
9491esac
9492fi
9493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9494printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9495
9496if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9497    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9498else
9499    :
9500fi
9501
9502fi
9503
9504
9505
9506
9507
9508
9509  lt_prog_compiler_wl=
9510lt_prog_compiler_pic=
9511lt_prog_compiler_static=
9512
9513
9514  if test yes = "$GCC"; then
9515    lt_prog_compiler_wl='-Wl,'
9516    lt_prog_compiler_static='-static'
9517
9518    case $host_os in
9519      aix*)
9520      # All AIX code is PIC.
9521      if test ia64 = "$host_cpu"; then
9522	# AIX 5 now supports IA64 processor
9523	lt_prog_compiler_static='-Bstatic'
9524      fi
9525      lt_prog_compiler_pic='-fPIC'
9526      ;;
9527
9528    amigaos*)
9529      case $host_cpu in
9530      powerpc)
9531            # see comment about AmigaOS4 .so support
9532            lt_prog_compiler_pic='-fPIC'
9533        ;;
9534      m68k)
9535            # FIXME: we need at least 68020 code to build shared libraries, but
9536            # adding the '-m68020' flag to GCC prevents building anything better,
9537            # like '-m68040'.
9538            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9539        ;;
9540      esac
9541      ;;
9542
9543    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9544      # PIC is the default for these OSes.
9545      ;;
9546
9547    mingw* | cygwin* | pw32* | os2* | cegcc*)
9548      # This hack is so that the source file can tell whether it is being
9549      # built for inclusion in a dll (and should export symbols for example).
9550      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9551      # (--disable-auto-import) libraries
9552      lt_prog_compiler_pic='-DDLL_EXPORT'
9553      case $host_os in
9554      os2*)
9555	lt_prog_compiler_static='$wl-static'
9556	;;
9557      esac
9558      ;;
9559
9560    darwin* | rhapsody*)
9561      # PIC is the default on this platform
9562      # Common symbols not allowed in MH_DYLIB files
9563      lt_prog_compiler_pic='-fno-common'
9564      ;;
9565
9566    haiku*)
9567      # PIC is the default for Haiku.
9568      # The "-static" flag exists, but is broken.
9569      lt_prog_compiler_static=
9570      ;;
9571
9572    hpux*)
9573      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9574      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9575      # sets the default TLS model and affects inlining.
9576      case $host_cpu in
9577      hppa*64*)
9578	# +Z the default
9579	;;
9580      *)
9581	lt_prog_compiler_pic='-fPIC'
9582	;;
9583      esac
9584      ;;
9585
9586    interix[3-9]*)
9587      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9588      # Instead, we relocate shared libraries at runtime.
9589      ;;
9590
9591    msdosdjgpp*)
9592      # Just because we use GCC doesn't mean we suddenly get shared libraries
9593      # on systems that don't support them.
9594      lt_prog_compiler_can_build_shared=no
9595      enable_shared=no
9596      ;;
9597
9598    *nto* | *qnx*)
9599      # QNX uses GNU C++, but need to define -shared option too, otherwise
9600      # it will coredump.
9601      lt_prog_compiler_pic='-fPIC -shared'
9602      ;;
9603
9604    sysv4*MP*)
9605      if test -d /usr/nec; then
9606	lt_prog_compiler_pic=-Kconform_pic
9607      fi
9608      ;;
9609
9610    *)
9611      lt_prog_compiler_pic='-fPIC'
9612      ;;
9613    esac
9614
9615    case $cc_basename in
9616    nvcc*) # Cuda Compiler Driver 2.2
9617      lt_prog_compiler_wl='-Xlinker '
9618      if test -n "$lt_prog_compiler_pic"; then
9619        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9620      fi
9621      ;;
9622    esac
9623  else
9624    # PORTME Check for flag to pass linker flags through the system compiler.
9625    case $host_os in
9626    aix*)
9627      lt_prog_compiler_wl='-Wl,'
9628      if test ia64 = "$host_cpu"; then
9629	# AIX 5 now supports IA64 processor
9630	lt_prog_compiler_static='-Bstatic'
9631      else
9632	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9633      fi
9634      ;;
9635
9636    darwin* | rhapsody*)
9637      # PIC is the default on this platform
9638      # Common symbols not allowed in MH_DYLIB files
9639      lt_prog_compiler_pic='-fno-common'
9640      case $cc_basename in
9641      nagfor*)
9642        # NAG Fortran compiler
9643        lt_prog_compiler_wl='-Wl,-Wl,,'
9644        lt_prog_compiler_pic='-PIC'
9645        lt_prog_compiler_static='-Bstatic'
9646        ;;
9647      esac
9648      ;;
9649
9650    mingw* | cygwin* | pw32* | os2* | cegcc*)
9651      # This hack is so that the source file can tell whether it is being
9652      # built for inclusion in a dll (and should export symbols for example).
9653      lt_prog_compiler_pic='-DDLL_EXPORT'
9654      case $host_os in
9655      os2*)
9656	lt_prog_compiler_static='$wl-static'
9657	;;
9658      esac
9659      ;;
9660
9661    hpux9* | hpux10* | hpux11*)
9662      lt_prog_compiler_wl='-Wl,'
9663      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9664      # not for PA HP-UX.
9665      case $host_cpu in
9666      hppa*64*|ia64*)
9667	# +Z the default
9668	;;
9669      *)
9670	lt_prog_compiler_pic='+Z'
9671	;;
9672      esac
9673      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9674      lt_prog_compiler_static='$wl-a ${wl}archive'
9675      ;;
9676
9677    irix5* | irix6* | nonstopux*)
9678      lt_prog_compiler_wl='-Wl,'
9679      # PIC (with -KPIC) is the default.
9680      lt_prog_compiler_static='-non_shared'
9681      ;;
9682
9683    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9684      case $cc_basename in
9685      # old Intel for x86_64, which still supported -KPIC.
9686      ecc*)
9687	lt_prog_compiler_wl='-Wl,'
9688	lt_prog_compiler_pic='-KPIC'
9689	lt_prog_compiler_static='-static'
9690        ;;
9691      # icc used to be incompatible with GCC.
9692      # ICC 10 doesn't accept -KPIC any more.
9693      icc* | ifort*)
9694	lt_prog_compiler_wl='-Wl,'
9695	lt_prog_compiler_pic='-fPIC'
9696	lt_prog_compiler_static='-static'
9697        ;;
9698      # Lahey Fortran 8.1.
9699      lf95*)
9700	lt_prog_compiler_wl='-Wl,'
9701	lt_prog_compiler_pic='--shared'
9702	lt_prog_compiler_static='--static'
9703	;;
9704      nagfor*)
9705	# NAG Fortran compiler
9706	lt_prog_compiler_wl='-Wl,-Wl,,'
9707	lt_prog_compiler_pic='-PIC'
9708	lt_prog_compiler_static='-Bstatic'
9709	;;
9710      tcc*)
9711	# Fabrice Bellard et al's Tiny C Compiler
9712	lt_prog_compiler_wl='-Wl,'
9713	lt_prog_compiler_pic='-fPIC'
9714	lt_prog_compiler_static='-static'
9715	;;
9716      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9717        # Portland Group compilers (*not* the Pentium gcc compiler,
9718	# which looks to be a dead project)
9719	lt_prog_compiler_wl='-Wl,'
9720	lt_prog_compiler_pic='-fpic'
9721	lt_prog_compiler_static='-Bstatic'
9722        ;;
9723      ccc*)
9724        lt_prog_compiler_wl='-Wl,'
9725        # All Alpha code is PIC.
9726        lt_prog_compiler_static='-non_shared'
9727        ;;
9728      xl* | bgxl* | bgf* | mpixl*)
9729	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9730	lt_prog_compiler_wl='-Wl,'
9731	lt_prog_compiler_pic='-qpic'
9732	lt_prog_compiler_static='-qstaticlink'
9733	;;
9734      *)
9735	case `$CC -V 2>&1 | $SED 5q` in
9736	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9737	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9738	  lt_prog_compiler_pic='-KPIC'
9739	  lt_prog_compiler_static='-Bstatic'
9740	  lt_prog_compiler_wl=''
9741	  ;;
9742	*Sun\ F* | *Sun*Fortran*)
9743	  lt_prog_compiler_pic='-KPIC'
9744	  lt_prog_compiler_static='-Bstatic'
9745	  lt_prog_compiler_wl='-Qoption ld '
9746	  ;;
9747	*Sun\ C*)
9748	  # Sun C 5.9
9749	  lt_prog_compiler_pic='-KPIC'
9750	  lt_prog_compiler_static='-Bstatic'
9751	  lt_prog_compiler_wl='-Wl,'
9752	  ;;
9753        *Intel*\ [CF]*Compiler*)
9754	  lt_prog_compiler_wl='-Wl,'
9755	  lt_prog_compiler_pic='-fPIC'
9756	  lt_prog_compiler_static='-static'
9757	  ;;
9758	*Portland\ Group*)
9759	  lt_prog_compiler_wl='-Wl,'
9760	  lt_prog_compiler_pic='-fpic'
9761	  lt_prog_compiler_static='-Bstatic'
9762	  ;;
9763	esac
9764	;;
9765      esac
9766      ;;
9767
9768    newsos6)
9769      lt_prog_compiler_pic='-KPIC'
9770      lt_prog_compiler_static='-Bstatic'
9771      ;;
9772
9773    *nto* | *qnx*)
9774      # QNX uses GNU C++, but need to define -shared option too, otherwise
9775      # it will coredump.
9776      lt_prog_compiler_pic='-fPIC -shared'
9777      ;;
9778
9779    osf3* | osf4* | osf5*)
9780      lt_prog_compiler_wl='-Wl,'
9781      # All OSF/1 code is PIC.
9782      lt_prog_compiler_static='-non_shared'
9783      ;;
9784
9785    rdos*)
9786      lt_prog_compiler_static='-non_shared'
9787      ;;
9788
9789    solaris*)
9790      lt_prog_compiler_pic='-KPIC'
9791      lt_prog_compiler_static='-Bstatic'
9792      case $cc_basename in
9793      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9794	lt_prog_compiler_wl='-Qoption ld ';;
9795      *)
9796	lt_prog_compiler_wl='-Wl,';;
9797      esac
9798      ;;
9799
9800    sunos4*)
9801      lt_prog_compiler_wl='-Qoption ld '
9802      lt_prog_compiler_pic='-PIC'
9803      lt_prog_compiler_static='-Bstatic'
9804      ;;
9805
9806    sysv4 | sysv4.2uw2* | sysv4.3*)
9807      lt_prog_compiler_wl='-Wl,'
9808      lt_prog_compiler_pic='-KPIC'
9809      lt_prog_compiler_static='-Bstatic'
9810      ;;
9811
9812    sysv4*MP*)
9813      if test -d /usr/nec; then
9814	lt_prog_compiler_pic='-Kconform_pic'
9815	lt_prog_compiler_static='-Bstatic'
9816      fi
9817      ;;
9818
9819    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9820      lt_prog_compiler_wl='-Wl,'
9821      lt_prog_compiler_pic='-KPIC'
9822      lt_prog_compiler_static='-Bstatic'
9823      ;;
9824
9825    unicos*)
9826      lt_prog_compiler_wl='-Wl,'
9827      lt_prog_compiler_can_build_shared=no
9828      ;;
9829
9830    uts4*)
9831      lt_prog_compiler_pic='-pic'
9832      lt_prog_compiler_static='-Bstatic'
9833      ;;
9834
9835    *)
9836      lt_prog_compiler_can_build_shared=no
9837      ;;
9838    esac
9839  fi
9840
9841case $host_os in
9842  # For platforms that do not support PIC, -DPIC is meaningless:
9843  *djgpp*)
9844    lt_prog_compiler_pic=
9845    ;;
9846  *)
9847    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9848    ;;
9849esac
9850
9851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9852printf %s "checking for $compiler option to produce PIC... " >&6; }
9853if test ${lt_cv_prog_compiler_pic+y}
9854then :
9855  printf %s "(cached) " >&6
9856else case e in #(
9857  e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9858esac
9859fi
9860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9861printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9862lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9863
9864#
9865# Check to make sure the PIC flag actually works.
9866#
9867if test -n "$lt_prog_compiler_pic"; then
9868  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9869printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9870if test ${lt_cv_prog_compiler_pic_works+y}
9871then :
9872  printf %s "(cached) " >&6
9873else case e in #(
9874  e) lt_cv_prog_compiler_pic_works=no
9875   ac_outfile=conftest.$ac_objext
9876   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9877   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9878   # Insert the option either (1) after the last *FLAGS variable, or
9879   # (2) before a word containing "conftest.", or (3) at the end.
9880   # Note that $ac_compile itself does not contain backslashes and begins
9881   # with a dollar sign (not a hyphen), so the echo should work correctly.
9882   # The option is referenced via a variable to avoid confusing sed.
9883   lt_compile=`echo "$ac_compile" | $SED \
9884   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9885   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9886   -e 's:$: $lt_compiler_flag:'`
9887   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9888   (eval "$lt_compile" 2>conftest.err)
9889   ac_status=$?
9890   cat conftest.err >&5
9891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892   if (exit $ac_status) && test -s "$ac_outfile"; then
9893     # The compiler can only warn and ignore the option if not recognized
9894     # So say no if there are warnings other than the usual output.
9895     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9896     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9897     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9898       lt_cv_prog_compiler_pic_works=yes
9899     fi
9900   fi
9901   $RM conftest*
9902 ;;
9903esac
9904fi
9905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9906printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9907
9908if test yes = "$lt_cv_prog_compiler_pic_works"; then
9909    case $lt_prog_compiler_pic in
9910     "" | " "*) ;;
9911     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9912     esac
9913else
9914    lt_prog_compiler_pic=
9915     lt_prog_compiler_can_build_shared=no
9916fi
9917
9918fi
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930#
9931# Check to make sure the static flag actually works.
9932#
9933wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9935printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9936if test ${lt_cv_prog_compiler_static_works+y}
9937then :
9938  printf %s "(cached) " >&6
9939else case e in #(
9940  e) lt_cv_prog_compiler_static_works=no
9941   save_LDFLAGS=$LDFLAGS
9942   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9943   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9944   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9945     # The linker can only warn and ignore the option if not recognized
9946     # So say no if there are warnings
9947     if test -s conftest.err; then
9948       # Append any errors to the config.log.
9949       cat conftest.err 1>&5
9950       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9951       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9952       if diff conftest.exp conftest.er2 >/dev/null; then
9953         lt_cv_prog_compiler_static_works=yes
9954       fi
9955     else
9956       lt_cv_prog_compiler_static_works=yes
9957     fi
9958   fi
9959   $RM -r conftest*
9960   LDFLAGS=$save_LDFLAGS
9961 ;;
9962esac
9963fi
9964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9965printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9966
9967if test yes = "$lt_cv_prog_compiler_static_works"; then
9968    :
9969else
9970    lt_prog_compiler_static=
9971fi
9972
9973
9974
9975
9976
9977
9978
9979  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9980printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9981if test ${lt_cv_prog_compiler_c_o+y}
9982then :
9983  printf %s "(cached) " >&6
9984else case e in #(
9985  e) lt_cv_prog_compiler_c_o=no
9986   $RM -r conftest 2>/dev/null
9987   mkdir conftest
9988   cd conftest
9989   mkdir out
9990   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9991
9992   lt_compiler_flag="-o out/conftest2.$ac_objext"
9993   # Insert the option either (1) after the last *FLAGS variable, or
9994   # (2) before a word containing "conftest.", or (3) at the end.
9995   # Note that $ac_compile itself does not contain backslashes and begins
9996   # with a dollar sign (not a hyphen), so the echo should work correctly.
9997   lt_compile=`echo "$ac_compile" | $SED \
9998   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9999   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10000   -e 's:$: $lt_compiler_flag:'`
10001   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10002   (eval "$lt_compile" 2>out/conftest.err)
10003   ac_status=$?
10004   cat out/conftest.err >&5
10005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10007   then
10008     # The compiler can only warn and ignore the option if not recognized
10009     # So say no if there are warnings
10010     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10011     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10012     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10013       lt_cv_prog_compiler_c_o=yes
10014     fi
10015   fi
10016   chmod u+w . 2>&5
10017   $RM conftest*
10018   # SGI C++ compiler will create directory out/ii_files/ for
10019   # template instantiation
10020   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10021   $RM out/* && rmdir out
10022   cd ..
10023   $RM -r conftest
10024   $RM conftest*
10025 ;;
10026esac
10027fi
10028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10029printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10030
10031
10032
10033
10034
10035
10036  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10037printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10038if test ${lt_cv_prog_compiler_c_o+y}
10039then :
10040  printf %s "(cached) " >&6
10041else case e in #(
10042  e) lt_cv_prog_compiler_c_o=no
10043   $RM -r conftest 2>/dev/null
10044   mkdir conftest
10045   cd conftest
10046   mkdir out
10047   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10048
10049   lt_compiler_flag="-o out/conftest2.$ac_objext"
10050   # Insert the option either (1) after the last *FLAGS variable, or
10051   # (2) before a word containing "conftest.", or (3) at the end.
10052   # Note that $ac_compile itself does not contain backslashes and begins
10053   # with a dollar sign (not a hyphen), so the echo should work correctly.
10054   lt_compile=`echo "$ac_compile" | $SED \
10055   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10056   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10057   -e 's:$: $lt_compiler_flag:'`
10058   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10059   (eval "$lt_compile" 2>out/conftest.err)
10060   ac_status=$?
10061   cat out/conftest.err >&5
10062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10064   then
10065     # The compiler can only warn and ignore the option if not recognized
10066     # So say no if there are warnings
10067     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10068     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10069     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10070       lt_cv_prog_compiler_c_o=yes
10071     fi
10072   fi
10073   chmod u+w . 2>&5
10074   $RM conftest*
10075   # SGI C++ compiler will create directory out/ii_files/ for
10076   # template instantiation
10077   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10078   $RM out/* && rmdir out
10079   cd ..
10080   $RM -r conftest
10081   $RM conftest*
10082 ;;
10083esac
10084fi
10085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10086printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10087
10088
10089
10090
10091hard_links=nottested
10092if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10093  # do not overwrite the value of need_locks provided by the user
10094  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10095printf %s "checking if we can lock with hard links... " >&6; }
10096  hard_links=yes
10097  $RM conftest*
10098  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10099  touch conftest.a
10100  ln conftest.a conftest.b 2>&5 || hard_links=no
10101  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10102  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10103printf "%s\n" "$hard_links" >&6; }
10104  if test no = "$hard_links"; then
10105    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10106printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10107    need_locks=warn
10108  fi
10109else
10110  need_locks=no
10111fi
10112
10113
10114
10115
10116
10117
10118  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10119printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10120
10121  runpath_var=
10122  allow_undefined_flag=
10123  always_export_symbols=no
10124  archive_cmds=
10125  archive_expsym_cmds=
10126  compiler_needs_object=no
10127  enable_shared_with_static_runtimes=no
10128  export_dynamic_flag_spec=
10129  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10130  hardcode_automatic=no
10131  hardcode_direct=no
10132  hardcode_direct_absolute=no
10133  hardcode_libdir_flag_spec=
10134  hardcode_libdir_separator=
10135  hardcode_minus_L=no
10136  hardcode_shlibpath_var=unsupported
10137  inherit_rpath=no
10138  link_all_deplibs=unknown
10139  module_cmds=
10140  module_expsym_cmds=
10141  old_archive_from_new_cmds=
10142  old_archive_from_expsyms_cmds=
10143  thread_safe_flag_spec=
10144  whole_archive_flag_spec=
10145  # include_expsyms should be a list of space-separated symbols to be *always*
10146  # included in the symbol list
10147  include_expsyms=
10148  # exclude_expsyms can be an extended regexp of symbols to exclude
10149  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10150  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10151  # as well as any symbol that contains 'd'.
10152  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10153  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10154  # platforms (ab)use it in PIC code, but their linkers get confused if
10155  # the symbol is explicitly referenced.  Since portable code cannot
10156  # rely on this symbol name, it's probably fine to never include it in
10157  # preloaded symbol tables.
10158  # Exclude shared library initialization/finalization symbols.
10159  extract_expsyms_cmds=
10160
10161  case $host_os in
10162  cygwin* | mingw* | pw32* | cegcc*)
10163    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10164    # When not using gcc, we currently assume that we are using
10165    # Microsoft Visual C++ or Intel C++ Compiler.
10166    if test yes != "$GCC"; then
10167      with_gnu_ld=no
10168    fi
10169    ;;
10170  interix*)
10171    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10172    with_gnu_ld=yes
10173    ;;
10174  openbsd* | bitrig*)
10175    with_gnu_ld=no
10176    ;;
10177  esac
10178
10179  ld_shlibs=yes
10180
10181  # On some targets, GNU ld is compatible enough with the native linker
10182  # that we're better off using the native interface for both.
10183  lt_use_gnu_ld_interface=no
10184  if test yes = "$with_gnu_ld"; then
10185    case $host_os in
10186      aix*)
10187	# The AIX port of GNU ld has always aspired to compatibility
10188	# with the native linker.  However, as the warning in the GNU ld
10189	# block says, versions before 2.19.5* couldn't really create working
10190	# shared libraries, regardless of the interface used.
10191	case `$LD -v 2>&1` in
10192	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10193	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10194	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10195	  *)
10196	    lt_use_gnu_ld_interface=yes
10197	    ;;
10198	esac
10199	;;
10200      *)
10201	lt_use_gnu_ld_interface=yes
10202	;;
10203    esac
10204  fi
10205
10206  if test yes = "$lt_use_gnu_ld_interface"; then
10207    # If archive_cmds runs LD, not CC, wlarc should be empty
10208    wlarc='$wl'
10209
10210    # Set some defaults for GNU ld with shared library support. These
10211    # are reset later if shared libraries are not supported. Putting them
10212    # here allows them to be overridden if necessary.
10213    runpath_var=LD_RUN_PATH
10214    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10215    export_dynamic_flag_spec='$wl--export-dynamic'
10216    # ancient GNU ld didn't support --whole-archive et. al.
10217    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10218      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10219    else
10220      whole_archive_flag_spec=
10221    fi
10222    supports_anon_versioning=no
10223    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10224      *GNU\ gold*) supports_anon_versioning=yes ;;
10225      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10226      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10227      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10228      *\ 2.11.*) ;; # other 2.11 versions
10229      *) supports_anon_versioning=yes ;;
10230    esac
10231
10232    # See if GNU ld supports shared libraries.
10233    case $host_os in
10234    aix[3-9]*)
10235      # On AIX/PPC, the GNU linker is very broken
10236      if test ia64 != "$host_cpu"; then
10237	ld_shlibs=no
10238	cat <<_LT_EOF 1>&2
10239
10240*** Warning: the GNU linker, at least up to release 2.19, is reported
10241*** to be unable to reliably create shared libraries on AIX.
10242*** Therefore, libtool is disabling shared libraries support.  If you
10243*** really care for shared libraries, you may want to install binutils
10244*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10245*** You will then need to restart the configuration process.
10246
10247_LT_EOF
10248      fi
10249      ;;
10250
10251    amigaos*)
10252      case $host_cpu in
10253      powerpc)
10254            # see comment about AmigaOS4 .so support
10255            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10256            archive_expsym_cmds=''
10257        ;;
10258      m68k)
10259            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)'
10260            hardcode_libdir_flag_spec='-L$libdir'
10261            hardcode_minus_L=yes
10262        ;;
10263      esac
10264      ;;
10265
10266    beos*)
10267      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10268	allow_undefined_flag=unsupported
10269	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10270	# support --undefined.  This deserves some investigation.  FIXME
10271	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10272      else
10273	ld_shlibs=no
10274      fi
10275      ;;
10276
10277    cygwin* | mingw* | pw32* | cegcc*)
10278      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10279      # as there is no search path for DLLs.
10280      hardcode_libdir_flag_spec='-L$libdir'
10281      export_dynamic_flag_spec='$wl--export-all-symbols'
10282      allow_undefined_flag=unsupported
10283      always_export_symbols=no
10284      enable_shared_with_static_runtimes=yes
10285      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'
10286      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10287
10288      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10289        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10290	# If the export-symbols file already is a .def file, use it as
10291	# is; otherwise, prepend EXPORTS...
10292	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10293          cp $export_symbols $output_objdir/$soname.def;
10294        else
10295          echo EXPORTS > $output_objdir/$soname.def;
10296          cat $export_symbols >> $output_objdir/$soname.def;
10297        fi~
10298        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10299      else
10300	ld_shlibs=no
10301      fi
10302      ;;
10303
10304    haiku*)
10305      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10306      link_all_deplibs=yes
10307      ;;
10308
10309    os2*)
10310      hardcode_libdir_flag_spec='-L$libdir'
10311      hardcode_minus_L=yes
10312      allow_undefined_flag=unsupported
10313      shrext_cmds=.dll
10314      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10315	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10316	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10317	$ECHO EXPORTS >> $output_objdir/$libname.def~
10318	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10319	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10320	emximp -o $lib $output_objdir/$libname.def'
10321      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10322	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10323	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10324	$ECHO EXPORTS >> $output_objdir/$libname.def~
10325	prefix_cmds="$SED"~
10326	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10327	  prefix_cmds="$prefix_cmds -e 1d";
10328	fi~
10329	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10330	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10331	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10332	emximp -o $lib $output_objdir/$libname.def'
10333      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10334      enable_shared_with_static_runtimes=yes
10335      file_list_spec='@'
10336      ;;
10337
10338    interix[3-9]*)
10339      hardcode_direct=no
10340      hardcode_shlibpath_var=no
10341      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10342      export_dynamic_flag_spec='$wl-E'
10343      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10344      # Instead, shared libraries are loaded at an image base (0x10000000 by
10345      # default) and relocated if they conflict, which is a slow very memory
10346      # consuming and fragmenting process.  To avoid this, we pick a random,
10347      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10348      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10349      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10350      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'
10351      ;;
10352
10353    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10354      tmp_diet=no
10355      if test linux-dietlibc = "$host_os"; then
10356	case $cc_basename in
10357	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10358	esac
10359      fi
10360      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10361	 && test no = "$tmp_diet"
10362      then
10363	tmp_addflag=' $pic_flag'
10364	tmp_sharedflag='-shared'
10365	case $cc_basename,$host_cpu in
10366        pgcc*)				# Portland Group C compiler
10367	  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'
10368	  tmp_addflag=' $pic_flag'
10369	  ;;
10370	pgf77* | pgf90* | pgf95* | pgfortran*)
10371					# Portland Group f77 and f90 compilers
10372	  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'
10373	  tmp_addflag=' $pic_flag -Mnomain' ;;
10374	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10375	  tmp_addflag=' -i_dynamic' ;;
10376	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10377	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10378	ifc* | ifort*)			# Intel Fortran compiler
10379	  tmp_addflag=' -nofor_main' ;;
10380	lf95*)				# Lahey Fortran 8.1
10381	  whole_archive_flag_spec=
10382	  tmp_sharedflag='--shared' ;;
10383        nagfor*)                        # NAGFOR 5.3
10384          tmp_sharedflag='-Wl,-shared' ;;
10385	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10386	  tmp_sharedflag='-qmkshrobj'
10387	  tmp_addflag= ;;
10388	nvcc*)	# Cuda Compiler Driver 2.2
10389	  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'
10390	  compiler_needs_object=yes
10391	  ;;
10392	esac
10393	case `$CC -V 2>&1 | $SED 5q` in
10394	*Sun\ C*)			# Sun C 5.9
10395	  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'
10396	  compiler_needs_object=yes
10397	  tmp_sharedflag='-G' ;;
10398	*Sun\ F*)			# Sun Fortran 8.3
10399	  tmp_sharedflag='-G' ;;
10400	esac
10401	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10402
10403        if test yes = "$supports_anon_versioning"; then
10404          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10405            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10406            echo "local: *; };" >> $output_objdir/$libname.ver~
10407            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10408        fi
10409
10410	case $cc_basename in
10411	tcc*)
10412	  export_dynamic_flag_spec='-rdynamic'
10413	  ;;
10414	xlf* | bgf* | bgxlf* | mpixlf*)
10415	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10416	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10417	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10418	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10419	  if test yes = "$supports_anon_versioning"; then
10420	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10421              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10422              echo "local: *; };" >> $output_objdir/$libname.ver~
10423              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10424	  fi
10425	  ;;
10426	esac
10427      else
10428        ld_shlibs=no
10429      fi
10430      ;;
10431
10432    netbsd*)
10433      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10434	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10435	wlarc=
10436      else
10437	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10438	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10439      fi
10440      ;;
10441
10442    solaris*)
10443      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10444	ld_shlibs=no
10445	cat <<_LT_EOF 1>&2
10446
10447*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10448*** create shared libraries on Solaris systems.  Therefore, libtool
10449*** is disabling shared libraries support.  We urge you to upgrade GNU
10450*** binutils to release 2.9.1 or newer.  Another option is to modify
10451*** your PATH or compiler configuration so that the native linker is
10452*** used, and then restart.
10453
10454_LT_EOF
10455      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10456	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10457	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10458      else
10459	ld_shlibs=no
10460      fi
10461      ;;
10462
10463    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10464      case `$LD -v 2>&1` in
10465        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10466	ld_shlibs=no
10467	cat <<_LT_EOF 1>&2
10468
10469*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10470*** reliably create shared libraries on SCO systems.  Therefore, libtool
10471*** is disabling shared libraries support.  We urge you to upgrade GNU
10472*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10473*** your PATH or compiler configuration so that the native linker is
10474*** used, and then restart.
10475
10476_LT_EOF
10477	;;
10478	*)
10479	  # For security reasons, it is highly recommended that you always
10480	  # use absolute paths for naming shared libraries, and exclude the
10481	  # DT_RUNPATH tag from executables and libraries.  But doing so
10482	  # requires that you compile everything twice, which is a pain.
10483	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10484	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10485	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10486	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10487	  else
10488	    ld_shlibs=no
10489	  fi
10490	;;
10491      esac
10492      ;;
10493
10494    sunos4*)
10495      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10496      wlarc=
10497      hardcode_direct=yes
10498      hardcode_shlibpath_var=no
10499      ;;
10500
10501    *)
10502      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10503	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10504	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10505      else
10506	ld_shlibs=no
10507      fi
10508      ;;
10509    esac
10510
10511    if test no = "$ld_shlibs"; then
10512      runpath_var=
10513      hardcode_libdir_flag_spec=
10514      export_dynamic_flag_spec=
10515      whole_archive_flag_spec=
10516    fi
10517  else
10518    # PORTME fill in a description of your system's linker (not GNU ld)
10519    case $host_os in
10520    aix3*)
10521      allow_undefined_flag=unsupported
10522      always_export_symbols=yes
10523      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'
10524      # Note: this linker hardcodes the directories in LIBPATH if there
10525      # are no directories specified by -L.
10526      hardcode_minus_L=yes
10527      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10528	# Neither direct hardcoding nor static linking is supported with a
10529	# broken collect2.
10530	hardcode_direct=unsupported
10531      fi
10532      ;;
10533
10534    aix[4-9]*)
10535      if test ia64 = "$host_cpu"; then
10536	# On IA64, the linker does run time linking by default, so we don't
10537	# have to do anything special.
10538	aix_use_runtimelinking=no
10539	exp_sym_flag='-Bexport'
10540	no_entry_flag=
10541      else
10542	# If we're using GNU nm, then we don't want the "-C" option.
10543	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10544	# Without the "-l" option, or with the "-B" option, AIX nm treats
10545	# weak defined symbols like other global defined symbols, whereas
10546	# GNU nm marks them as "W".
10547	# While the 'weak' keyword is ignored in the Export File, we need
10548	# it in the Import File for the 'aix-soname' feature, so we have
10549	# to replace the "-B" option with "-P" for AIX nm.
10550	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10551	  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'
10552	else
10553	  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'
10554	fi
10555	aix_use_runtimelinking=no
10556
10557	# Test if we are trying to use run time linking or normal
10558	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10559	# have runtime linking enabled, and use it for executables.
10560	# For shared libraries, we enable/disable runtime linking
10561	# depending on the kind of the shared library created -
10562	# when "with_aix_soname,aix_use_runtimelinking" is:
10563	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10564	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10565	#            lib.a           static archive
10566	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10567	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10568	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10569	#            lib.a(lib.so.V) shared, rtl:no
10570	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10571	#            lib.a           static archive
10572	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10573	  for ld_flag in $LDFLAGS; do
10574	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10575	    aix_use_runtimelinking=yes
10576	    break
10577	  fi
10578	  done
10579	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10580	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10581	    # so we don't have lib.a shared libs to link our executables.
10582	    # We have to force runtime linking in this case.
10583	    aix_use_runtimelinking=yes
10584	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10585	  fi
10586	  ;;
10587	esac
10588
10589	exp_sym_flag='-bexport'
10590	no_entry_flag='-bnoentry'
10591      fi
10592
10593      # When large executables or shared objects are built, AIX ld can
10594      # have problems creating the table of contents.  If linking a library
10595      # or program results in "error TOC overflow" add -mminimal-toc to
10596      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10597      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10598
10599      archive_cmds=''
10600      hardcode_direct=yes
10601      hardcode_direct_absolute=yes
10602      hardcode_libdir_separator=':'
10603      link_all_deplibs=yes
10604      file_list_spec='$wl-f,'
10605      case $with_aix_soname,$aix_use_runtimelinking in
10606      aix,*) ;; # traditional, no import file
10607      svr4,* | *,yes) # use import file
10608	# The Import File defines what to hardcode.
10609	hardcode_direct=no
10610	hardcode_direct_absolute=no
10611	;;
10612      esac
10613
10614      if test yes = "$GCC"; then
10615	case $host_os in aix4.[012]|aix4.[012].*)
10616	# We only want to do this on AIX 4.2 and lower, the check
10617	# below for broken collect2 doesn't work under 4.3+
10618	  collect2name=`$CC -print-prog-name=collect2`
10619	  if test -f "$collect2name" &&
10620	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10621	  then
10622	  # We have reworked collect2
10623	  :
10624	  else
10625	  # We have old collect2
10626	  hardcode_direct=unsupported
10627	  # It fails to find uninstalled libraries when the uninstalled
10628	  # path is not listed in the libpath.  Setting hardcode_minus_L
10629	  # to unsupported forces relinking
10630	  hardcode_minus_L=yes
10631	  hardcode_libdir_flag_spec='-L$libdir'
10632	  hardcode_libdir_separator=
10633	  fi
10634	  ;;
10635	esac
10636	shared_flag='-shared'
10637	if test yes = "$aix_use_runtimelinking"; then
10638	  shared_flag="$shared_flag "'$wl-G'
10639	fi
10640	# Need to ensure runtime linking is disabled for the traditional
10641	# shared library, or the linker may eventually find shared libraries
10642	# /with/ Import File - we do not want to mix them.
10643	shared_flag_aix='-shared'
10644	shared_flag_svr4='-shared $wl-G'
10645      else
10646	# not using gcc
10647	if test ia64 = "$host_cpu"; then
10648	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10649	# chokes on -Wl,-G. The following line is correct:
10650	  shared_flag='-G'
10651	else
10652	  if test yes = "$aix_use_runtimelinking"; then
10653	    shared_flag='$wl-G'
10654	  else
10655	    shared_flag='$wl-bM:SRE'
10656	  fi
10657	  shared_flag_aix='$wl-bM:SRE'
10658	  shared_flag_svr4='$wl-G'
10659	fi
10660      fi
10661
10662      export_dynamic_flag_spec='$wl-bexpall'
10663      # It seems that -bexpall does not export symbols beginning with
10664      # underscore (_), so it is better to generate a list of symbols to export.
10665      always_export_symbols=yes
10666      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10667	# Warning - without using the other runtime loading flags (-brtl),
10668	# -berok will link without error, but may produce a broken library.
10669	allow_undefined_flag='-berok'
10670        # Determine the default libpath from the value encoded in an
10671        # empty executable.
10672        if test set = "${lt_cv_aix_libpath+set}"; then
10673  aix_libpath=$lt_cv_aix_libpath
10674else
10675  if test ${lt_cv_aix_libpath_+y}
10676then :
10677  printf %s "(cached) " >&6
10678else case e in #(
10679  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10680/* end confdefs.h.  */
10681
10682int
10683main (void)
10684{
10685
10686  ;
10687  return 0;
10688}
10689_ACEOF
10690if ac_fn_c_try_link "$LINENO"
10691then :
10692
10693  lt_aix_libpath_sed='
10694      /Import File Strings/,/^$/ {
10695	  /^0/ {
10696	      s/^0  *\([^ ]*\) *$/\1/
10697	      p
10698	  }
10699      }'
10700  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10701  # Check for a 64-bit object if we didn't find anything.
10702  if test -z "$lt_cv_aix_libpath_"; then
10703    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10704  fi
10705fi
10706rm -f core conftest.err conftest.$ac_objext conftest.beam \
10707    conftest$ac_exeext conftest.$ac_ext
10708  if test -z "$lt_cv_aix_libpath_"; then
10709    lt_cv_aix_libpath_=/usr/lib:/lib
10710  fi
10711   ;;
10712esac
10713fi
10714
10715  aix_libpath=$lt_cv_aix_libpath_
10716fi
10717
10718        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10719        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
10720      else
10721	if test ia64 = "$host_cpu"; then
10722	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10723	  allow_undefined_flag="-z nodefs"
10724	  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"
10725	else
10726	 # Determine the default libpath from the value encoded in an
10727	 # empty executable.
10728	 if test set = "${lt_cv_aix_libpath+set}"; then
10729  aix_libpath=$lt_cv_aix_libpath
10730else
10731  if test ${lt_cv_aix_libpath_+y}
10732then :
10733  printf %s "(cached) " >&6
10734else case e in #(
10735  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736/* end confdefs.h.  */
10737
10738int
10739main (void)
10740{
10741
10742  ;
10743  return 0;
10744}
10745_ACEOF
10746if ac_fn_c_try_link "$LINENO"
10747then :
10748
10749  lt_aix_libpath_sed='
10750      /Import File Strings/,/^$/ {
10751	  /^0/ {
10752	      s/^0  *\([^ ]*\) *$/\1/
10753	      p
10754	  }
10755      }'
10756  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10757  # Check for a 64-bit object if we didn't find anything.
10758  if test -z "$lt_cv_aix_libpath_"; then
10759    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10760  fi
10761fi
10762rm -f core conftest.err conftest.$ac_objext conftest.beam \
10763    conftest$ac_exeext conftest.$ac_ext
10764  if test -z "$lt_cv_aix_libpath_"; then
10765    lt_cv_aix_libpath_=/usr/lib:/lib
10766  fi
10767   ;;
10768esac
10769fi
10770
10771  aix_libpath=$lt_cv_aix_libpath_
10772fi
10773
10774	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10775	  # Warning - without using the other run time loading flags,
10776	  # -berok will link without error, but may produce a broken library.
10777	  no_undefined_flag=' $wl-bernotok'
10778	  allow_undefined_flag=' $wl-berok'
10779	  if test yes = "$with_gnu_ld"; then
10780	    # We only use this code for GNU lds that support --whole-archive.
10781	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10782	  else
10783	    # Exported symbols can be pulled into shared objects from archives
10784	    whole_archive_flag_spec='$convenience'
10785	  fi
10786	  archive_cmds_need_lc=yes
10787	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10788	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10789	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10790	  if test svr4 != "$with_aix_soname"; then
10791	    # This is similar to how AIX traditionally builds its shared libraries.
10792	    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'
10793	  fi
10794	  if test aix != "$with_aix_soname"; then
10795	    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'
10796	  else
10797	    # used by -dlpreopen to get the symbols
10798	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10799	  fi
10800	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10801	fi
10802      fi
10803      ;;
10804
10805    amigaos*)
10806      case $host_cpu in
10807      powerpc)
10808            # see comment about AmigaOS4 .so support
10809            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10810            archive_expsym_cmds=''
10811        ;;
10812      m68k)
10813            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)'
10814            hardcode_libdir_flag_spec='-L$libdir'
10815            hardcode_minus_L=yes
10816        ;;
10817      esac
10818      ;;
10819
10820    bsdi[45]*)
10821      export_dynamic_flag_spec=-rdynamic
10822      ;;
10823
10824    cygwin* | mingw* | pw32* | cegcc*)
10825      # When not using gcc, we currently assume that we are using
10826      # Microsoft Visual C++ or Intel C++ Compiler.
10827      # hardcode_libdir_flag_spec is actually meaningless, as there is
10828      # no search path for DLLs.
10829      case $cc_basename in
10830      cl* | icl*)
10831	# Native MSVC or ICC
10832	hardcode_libdir_flag_spec=' '
10833	allow_undefined_flag=unsupported
10834	always_export_symbols=yes
10835	file_list_spec='@'
10836	# Tell ltmain to make .lib files, not .a files.
10837	libext=lib
10838	# Tell ltmain to make .dll files, not .so files.
10839	shrext_cmds=.dll
10840	# FIXME: Setting linknames here is a bad hack.
10841	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10842	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10843            cp "$export_symbols" "$output_objdir/$soname.def";
10844            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10845          else
10846            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10847          fi~
10848          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10849          linknames='
10850	# The linker will not automatically build a static lib if we build a DLL.
10851	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10852	enable_shared_with_static_runtimes=yes
10853	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10854	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10855	# Don't use ranlib
10856	old_postinstall_cmds='chmod 644 $oldlib'
10857	postlink_cmds='lt_outputfile="@OUTPUT@"~
10858          lt_tool_outputfile="@TOOL_OUTPUT@"~
10859          case $lt_outputfile in
10860            *.exe|*.EXE) ;;
10861            *)
10862              lt_outputfile=$lt_outputfile.exe
10863              lt_tool_outputfile=$lt_tool_outputfile.exe
10864              ;;
10865          esac~
10866          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10867            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10868            $RM "$lt_outputfile.manifest";
10869          fi'
10870	;;
10871      *)
10872	# Assume MSVC and ICC wrapper
10873	hardcode_libdir_flag_spec=' '
10874	allow_undefined_flag=unsupported
10875	# Tell ltmain to make .lib files, not .a files.
10876	libext=lib
10877	# Tell ltmain to make .dll files, not .so files.
10878	shrext_cmds=.dll
10879	# FIXME: Setting linknames here is a bad hack.
10880	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10881	# The linker will automatically build a .lib file if we build a DLL.
10882	old_archive_from_new_cmds='true'
10883	# FIXME: Should let the user specify the lib program.
10884	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10885	enable_shared_with_static_runtimes=yes
10886	;;
10887      esac
10888      ;;
10889
10890    darwin* | rhapsody*)
10891
10892
10893  archive_cmds_need_lc=no
10894  hardcode_direct=no
10895  hardcode_automatic=yes
10896  hardcode_shlibpath_var=unsupported
10897  if test yes = "$lt_cv_ld_force_load"; then
10898    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\"`'
10899
10900  else
10901    whole_archive_flag_spec=''
10902  fi
10903  link_all_deplibs=yes
10904  allow_undefined_flag=$_lt_dar_allow_undefined
10905  case $cc_basename in
10906     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10907     *) _lt_dar_can_shared=$GCC ;;
10908  esac
10909  if test yes = "$_lt_dar_can_shared"; then
10910    output_verbose_link_cmd=func_echo_all
10911    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10912    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10913    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"
10914    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"
10915
10916  else
10917  ld_shlibs=no
10918  fi
10919
10920      ;;
10921
10922    dgux*)
10923      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10924      hardcode_libdir_flag_spec='-L$libdir'
10925      hardcode_shlibpath_var=no
10926      ;;
10927
10928    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10929    # support.  Future versions do this automatically, but an explicit c++rt0.o
10930    # does not break anything, and helps significantly (at the cost of a little
10931    # extra space).
10932    freebsd2.2*)
10933      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10934      hardcode_libdir_flag_spec='-R$libdir'
10935      hardcode_direct=yes
10936      hardcode_shlibpath_var=no
10937      ;;
10938
10939    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10940    freebsd2.*)
10941      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10942      hardcode_direct=yes
10943      hardcode_minus_L=yes
10944      hardcode_shlibpath_var=no
10945      ;;
10946
10947    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10948    freebsd* | dragonfly* | midnightbsd*)
10949      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10950      hardcode_libdir_flag_spec='-R$libdir'
10951      hardcode_direct=yes
10952      hardcode_shlibpath_var=no
10953      ;;
10954
10955    hpux9*)
10956      if test yes = "$GCC"; then
10957	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'
10958      else
10959	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'
10960      fi
10961      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10962      hardcode_libdir_separator=:
10963      hardcode_direct=yes
10964
10965      # hardcode_minus_L: Not really in the search PATH,
10966      # but as the default location of the library.
10967      hardcode_minus_L=yes
10968      export_dynamic_flag_spec='$wl-E'
10969      ;;
10970
10971    hpux10*)
10972      if test yes,no = "$GCC,$with_gnu_ld"; then
10973	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10974      else
10975	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10976      fi
10977      if test no = "$with_gnu_ld"; then
10978	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10979	hardcode_libdir_separator=:
10980	hardcode_direct=yes
10981	hardcode_direct_absolute=yes
10982	export_dynamic_flag_spec='$wl-E'
10983	# hardcode_minus_L: Not really in the search PATH,
10984	# but as the default location of the library.
10985	hardcode_minus_L=yes
10986      fi
10987      ;;
10988
10989    hpux11*)
10990      if test yes,no = "$GCC,$with_gnu_ld"; then
10991	case $host_cpu in
10992	hppa*64*)
10993	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10994	  ;;
10995	ia64*)
10996	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10997	  ;;
10998	*)
10999	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11000	  ;;
11001	esac
11002      else
11003	case $host_cpu in
11004	hppa*64*)
11005	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11006	  ;;
11007	ia64*)
11008	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11009	  ;;
11010	*)
11011
11012	  # Older versions of the 11.00 compiler do not understand -b yet
11013	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11014	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11015printf %s "checking if $CC understands -b... " >&6; }
11016if test ${lt_cv_prog_compiler__b+y}
11017then :
11018  printf %s "(cached) " >&6
11019else case e in #(
11020  e) lt_cv_prog_compiler__b=no
11021   save_LDFLAGS=$LDFLAGS
11022   LDFLAGS="$LDFLAGS -b"
11023   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11024   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11025     # The linker can only warn and ignore the option if not recognized
11026     # So say no if there are warnings
11027     if test -s conftest.err; then
11028       # Append any errors to the config.log.
11029       cat conftest.err 1>&5
11030       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11031       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11032       if diff conftest.exp conftest.er2 >/dev/null; then
11033         lt_cv_prog_compiler__b=yes
11034       fi
11035     else
11036       lt_cv_prog_compiler__b=yes
11037     fi
11038   fi
11039   $RM -r conftest*
11040   LDFLAGS=$save_LDFLAGS
11041 ;;
11042esac
11043fi
11044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11045printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11046
11047if test yes = "$lt_cv_prog_compiler__b"; then
11048    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11049else
11050    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11051fi
11052
11053	  ;;
11054	esac
11055      fi
11056      if test no = "$with_gnu_ld"; then
11057	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11058	hardcode_libdir_separator=:
11059
11060	case $host_cpu in
11061	hppa*64*|ia64*)
11062	  hardcode_direct=no
11063	  hardcode_shlibpath_var=no
11064	  ;;
11065	*)
11066	  hardcode_direct=yes
11067	  hardcode_direct_absolute=yes
11068	  export_dynamic_flag_spec='$wl-E'
11069
11070	  # hardcode_minus_L: Not really in the search PATH,
11071	  # but as the default location of the library.
11072	  hardcode_minus_L=yes
11073	  ;;
11074	esac
11075      fi
11076      ;;
11077
11078    irix5* | irix6* | nonstopux*)
11079      if test yes = "$GCC"; then
11080	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'
11081	# Try to use the -exported_symbol ld option, if it does not
11082	# work, assume that -exports_file does not work either and
11083	# implicitly export all symbols.
11084	# This should be the same for all languages, so no per-tag cache variable.
11085	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11086printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11087if test ${lt_cv_irix_exported_symbol+y}
11088then :
11089  printf %s "(cached) " >&6
11090else case e in #(
11091  e) save_LDFLAGS=$LDFLAGS
11092	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11093	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11094/* end confdefs.h.  */
11095int foo (void) { return 0; }
11096_ACEOF
11097if ac_fn_c_try_link "$LINENO"
11098then :
11099  lt_cv_irix_exported_symbol=yes
11100else case e in #(
11101  e) lt_cv_irix_exported_symbol=no ;;
11102esac
11103fi
11104rm -f core conftest.err conftest.$ac_objext conftest.beam \
11105    conftest$ac_exeext conftest.$ac_ext
11106           LDFLAGS=$save_LDFLAGS ;;
11107esac
11108fi
11109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11110printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11111	if test yes = "$lt_cv_irix_exported_symbol"; then
11112          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'
11113	fi
11114      else
11115	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'
11116	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'
11117      fi
11118      archive_cmds_need_lc='no'
11119      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11120      hardcode_libdir_separator=:
11121      inherit_rpath=yes
11122      link_all_deplibs=yes
11123      ;;
11124
11125    linux*)
11126      case $cc_basename in
11127      tcc*)
11128	# Fabrice Bellard et al's Tiny C Compiler
11129	ld_shlibs=yes
11130	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11131	;;
11132      esac
11133      ;;
11134
11135    netbsd*)
11136      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11137	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11138      else
11139	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11140      fi
11141      hardcode_libdir_flag_spec='-R$libdir'
11142      hardcode_direct=yes
11143      hardcode_shlibpath_var=no
11144      ;;
11145
11146    newsos6)
11147      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11148      hardcode_direct=yes
11149      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11150      hardcode_libdir_separator=:
11151      hardcode_shlibpath_var=no
11152      ;;
11153
11154    *nto* | *qnx*)
11155      ;;
11156
11157    openbsd* | bitrig*)
11158      if test -f /usr/libexec/ld.so; then
11159	hardcode_direct=yes
11160	hardcode_shlibpath_var=no
11161	hardcode_direct_absolute=yes
11162	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11163	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11164	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11165	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11166	  export_dynamic_flag_spec='$wl-E'
11167	else
11168	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11169	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11170	fi
11171      else
11172	ld_shlibs=no
11173      fi
11174      ;;
11175
11176    os2*)
11177      hardcode_libdir_flag_spec='-L$libdir'
11178      hardcode_minus_L=yes
11179      allow_undefined_flag=unsupported
11180      shrext_cmds=.dll
11181      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11182	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11183	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11184	$ECHO EXPORTS >> $output_objdir/$libname.def~
11185	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11186	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11187	emximp -o $lib $output_objdir/$libname.def'
11188      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11189	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11190	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11191	$ECHO EXPORTS >> $output_objdir/$libname.def~
11192	prefix_cmds="$SED"~
11193	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11194	  prefix_cmds="$prefix_cmds -e 1d";
11195	fi~
11196	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11197	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11198	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11199	emximp -o $lib $output_objdir/$libname.def'
11200      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11201      enable_shared_with_static_runtimes=yes
11202      file_list_spec='@'
11203      ;;
11204
11205    osf3*)
11206      if test yes = "$GCC"; then
11207	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11208	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'
11209      else
11210	allow_undefined_flag=' -expect_unresolved \*'
11211	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'
11212      fi
11213      archive_cmds_need_lc='no'
11214      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11215      hardcode_libdir_separator=:
11216      ;;
11217
11218    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11219      if test yes = "$GCC"; then
11220	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11221	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'
11222	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11223      else
11224	allow_undefined_flag=' -expect_unresolved \*'
11225	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'
11226	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~
11227          $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'
11228
11229	# Both c and cxx compiler support -rpath directly
11230	hardcode_libdir_flag_spec='-rpath $libdir'
11231      fi
11232      archive_cmds_need_lc='no'
11233      hardcode_libdir_separator=:
11234      ;;
11235
11236    solaris*)
11237      no_undefined_flag=' -z defs'
11238      if test yes = "$GCC"; then
11239	wlarc='$wl'
11240	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11241	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11242          $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'
11243      else
11244	case `$CC -V 2>&1` in
11245	*"Compilers 5.0"*)
11246	  wlarc=''
11247	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11248	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11249            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11250	  ;;
11251	*)
11252	  wlarc='$wl'
11253	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11254	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11255            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11256	  ;;
11257	esac
11258      fi
11259      hardcode_libdir_flag_spec='-R$libdir'
11260      hardcode_shlibpath_var=no
11261      case $host_os in
11262      solaris2.[0-5] | solaris2.[0-5].*) ;;
11263      *)
11264	# The compiler driver will combine and reorder linker options,
11265	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11266	# but is careful enough not to reorder.
11267	# Supported since Solaris 2.6 (maybe 2.5.1?)
11268	if test yes = "$GCC"; then
11269	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11270	else
11271	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11272	fi
11273	;;
11274      esac
11275      link_all_deplibs=yes
11276      ;;
11277
11278    sunos4*)
11279      if test sequent = "$host_vendor"; then
11280	# Use $CC to link under sequent, because it throws in some extra .o
11281	# files that make .init and .fini sections work.
11282	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11283      else
11284	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11285      fi
11286      hardcode_libdir_flag_spec='-L$libdir'
11287      hardcode_direct=yes
11288      hardcode_minus_L=yes
11289      hardcode_shlibpath_var=no
11290      ;;
11291
11292    sysv4)
11293      case $host_vendor in
11294	sni)
11295	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11296	  hardcode_direct=yes # is this really true???
11297	;;
11298	siemens)
11299	  ## LD is ld it makes a PLAMLIB
11300	  ## CC just makes a GrossModule.
11301	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11302	  reload_cmds='$CC -r -o $output$reload_objs'
11303	  hardcode_direct=no
11304        ;;
11305	motorola)
11306	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11307	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11308	;;
11309      esac
11310      runpath_var='LD_RUN_PATH'
11311      hardcode_shlibpath_var=no
11312      ;;
11313
11314    sysv4.3*)
11315      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11316      hardcode_shlibpath_var=no
11317      export_dynamic_flag_spec='-Bexport'
11318      ;;
11319
11320    sysv4*MP*)
11321      if test -d /usr/nec; then
11322	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11323	hardcode_shlibpath_var=no
11324	runpath_var=LD_RUN_PATH
11325	hardcode_runpath_var=yes
11326	ld_shlibs=yes
11327      fi
11328      ;;
11329
11330    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11331      no_undefined_flag='$wl-z,text'
11332      archive_cmds_need_lc=no
11333      hardcode_shlibpath_var=no
11334      runpath_var='LD_RUN_PATH'
11335
11336      if test yes = "$GCC"; then
11337	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11338	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11339      else
11340	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11341	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11342      fi
11343      ;;
11344
11345    sysv5* | sco3.2v5* | sco5v6*)
11346      # Note: We CANNOT use -z defs as we might desire, because we do not
11347      # link with -lc, and that would cause any symbols used from libc to
11348      # always be unresolved, which means just about no library would
11349      # ever link correctly.  If we're not using GNU ld we use -z text
11350      # though, which does catch some bad symbols but isn't as heavy-handed
11351      # as -z defs.
11352      no_undefined_flag='$wl-z,text'
11353      allow_undefined_flag='$wl-z,nodefs'
11354      archive_cmds_need_lc=no
11355      hardcode_shlibpath_var=no
11356      hardcode_libdir_flag_spec='$wl-R,$libdir'
11357      hardcode_libdir_separator=':'
11358      link_all_deplibs=yes
11359      export_dynamic_flag_spec='$wl-Bexport'
11360      runpath_var='LD_RUN_PATH'
11361
11362      if test yes = "$GCC"; then
11363	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11364	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11365      else
11366	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11367	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11368      fi
11369      ;;
11370
11371    uts4*)
11372      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11373      hardcode_libdir_flag_spec='-L$libdir'
11374      hardcode_shlibpath_var=no
11375      ;;
11376
11377    *)
11378      ld_shlibs=no
11379      ;;
11380    esac
11381
11382    if test sni = "$host_vendor"; then
11383      case $host in
11384      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11385	export_dynamic_flag_spec='$wl-Blargedynsym'
11386	;;
11387      esac
11388    fi
11389  fi
11390
11391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11392printf "%s\n" "$ld_shlibs" >&6; }
11393test no = "$ld_shlibs" && can_build_shared=no
11394
11395with_gnu_ld=$with_gnu_ld
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411#
11412# Do we need to explicitly link libc?
11413#
11414case "x$archive_cmds_need_lc" in
11415x|xyes)
11416  # Assume -lc should be added
11417  archive_cmds_need_lc=yes
11418
11419  if test yes,yes = "$GCC,$enable_shared"; then
11420    case $archive_cmds in
11421    *'~'*)
11422      # FIXME: we may have to deal with multi-command sequences.
11423      ;;
11424    '$CC '*)
11425      # Test whether the compiler implicitly links with -lc since on some
11426      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11427      # to ld, don't add -lc before -lgcc.
11428      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11429printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11430if test ${lt_cv_archive_cmds_need_lc+y}
11431then :
11432  printf %s "(cached) " >&6
11433else case e in #(
11434  e) $RM conftest*
11435	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11436
11437	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11438  (eval $ac_compile) 2>&5
11439  ac_status=$?
11440  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11441  test $ac_status = 0; } 2>conftest.err; then
11442	  soname=conftest
11443	  lib=conftest
11444	  libobjs=conftest.$ac_objext
11445	  deplibs=
11446	  wl=$lt_prog_compiler_wl
11447	  pic_flag=$lt_prog_compiler_pic
11448	  compiler_flags=-v
11449	  linker_flags=-v
11450	  verstring=
11451	  output_objdir=.
11452	  libname=conftest
11453	  lt_save_allow_undefined_flag=$allow_undefined_flag
11454	  allow_undefined_flag=
11455	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11456  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11457  ac_status=$?
11458  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11459  test $ac_status = 0; }
11460	  then
11461	    lt_cv_archive_cmds_need_lc=no
11462	  else
11463	    lt_cv_archive_cmds_need_lc=yes
11464	  fi
11465	  allow_undefined_flag=$lt_save_allow_undefined_flag
11466	else
11467	  cat conftest.err 1>&5
11468	fi
11469	$RM conftest*
11470	 ;;
11471esac
11472fi
11473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11474printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11475      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11476      ;;
11477    esac
11478  fi
11479  ;;
11480esac
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11634printf %s "checking dynamic linker characteristics... " >&6; }
11635
11636if test yes = "$GCC"; then
11637  case $host_os in
11638    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11639    *) lt_awk_arg='/^libraries:/' ;;
11640  esac
11641  case $host_os in
11642    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11643    *) lt_sed_strip_eq='s|=/|/|g' ;;
11644  esac
11645  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11646  case $lt_search_path_spec in
11647  *\;*)
11648    # if the path contains ";" then we assume it to be the separator
11649    # otherwise default to the standard path separator (i.e. ":") - it is
11650    # assumed that no part of a normal pathname contains ";" but that should
11651    # okay in the real world where ";" in dirpaths is itself problematic.
11652    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11653    ;;
11654  *)
11655    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11656    ;;
11657  esac
11658  # Ok, now we have the path, separated by spaces, we can step through it
11659  # and add multilib dir if necessary...
11660  lt_tmp_lt_search_path_spec=
11661  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11662  # ...but if some path component already ends with the multilib dir we assume
11663  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11664  case "$lt_multi_os_dir; $lt_search_path_spec " in
11665  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11666    lt_multi_os_dir=
11667    ;;
11668  esac
11669  for lt_sys_path in $lt_search_path_spec; do
11670    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11671      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11672    elif test -n "$lt_multi_os_dir"; then
11673      test -d "$lt_sys_path" && \
11674	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11675    fi
11676  done
11677  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11678BEGIN {RS = " "; FS = "/|\n";} {
11679  lt_foo = "";
11680  lt_count = 0;
11681  for (lt_i = NF; lt_i > 0; lt_i--) {
11682    if ($lt_i != "" && $lt_i != ".") {
11683      if ($lt_i == "..") {
11684        lt_count++;
11685      } else {
11686        if (lt_count == 0) {
11687          lt_foo = "/" $lt_i lt_foo;
11688        } else {
11689          lt_count--;
11690        }
11691      }
11692    }
11693  }
11694  if (lt_foo != "") { lt_freq[lt_foo]++; }
11695  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11696}'`
11697  # AWK program above erroneously prepends '/' to C:/dos/paths
11698  # for these hosts.
11699  case $host_os in
11700    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11701      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11702  esac
11703  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11704else
11705  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11706fi
11707library_names_spec=
11708libname_spec='lib$name'
11709soname_spec=
11710shrext_cmds=.so
11711postinstall_cmds=
11712postuninstall_cmds=
11713finish_cmds=
11714finish_eval=
11715shlibpath_var=
11716shlibpath_overrides_runpath=unknown
11717version_type=none
11718dynamic_linker="$host_os ld.so"
11719sys_lib_dlsearch_path_spec="/lib /usr/lib"
11720need_lib_prefix=unknown
11721hardcode_into_libs=no
11722
11723# when you set need_version to no, make sure it does not cause -set_version
11724# flags to be left without arguments
11725need_version=unknown
11726
11727
11728
11729case $host_os in
11730aix3*)
11731  version_type=linux # correct to gnu/linux during the next big refactor
11732  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11733  shlibpath_var=LIBPATH
11734
11735  # AIX 3 has no versioning support, so we append a major version to the name.
11736  soname_spec='$libname$release$shared_ext$major'
11737  ;;
11738
11739aix[4-9]*)
11740  version_type=linux # correct to gnu/linux during the next big refactor
11741  need_lib_prefix=no
11742  need_version=no
11743  hardcode_into_libs=yes
11744  if test ia64 = "$host_cpu"; then
11745    # AIX 5 supports IA64
11746    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11747    shlibpath_var=LD_LIBRARY_PATH
11748  else
11749    # With GCC up to 2.95.x, collect2 would create an import file
11750    # for dependence libraries.  The import file would start with
11751    # the line '#! .'.  This would cause the generated library to
11752    # depend on '.', always an invalid library.  This was fixed in
11753    # development snapshots of GCC prior to 3.0.
11754    case $host_os in
11755      aix4 | aix4.[01] | aix4.[01].*)
11756      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11757	   echo ' yes '
11758	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11759	:
11760      else
11761	can_build_shared=no
11762      fi
11763      ;;
11764    esac
11765    # Using Import Files as archive members, it is possible to support
11766    # filename-based versioning of shared library archives on AIX. While
11767    # this would work for both with and without runtime linking, it will
11768    # prevent static linking of such archives. So we do filename-based
11769    # shared library versioning with .so extension only, which is used
11770    # when both runtime linking and shared linking is enabled.
11771    # Unfortunately, runtime linking may impact performance, so we do
11772    # not want this to be the default eventually. Also, we use the
11773    # versioned .so libs for executables only if there is the -brtl
11774    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11775    # To allow for filename-based versioning support, we need to create
11776    # libNAME.so.V as an archive file, containing:
11777    # *) an Import File, referring to the versioned filename of the
11778    #    archive as well as the shared archive member, telling the
11779    #    bitwidth (32 or 64) of that shared object, and providing the
11780    #    list of exported symbols of that shared object, eventually
11781    #    decorated with the 'weak' keyword
11782    # *) the shared object with the F_LOADONLY flag set, to really avoid
11783    #    it being seen by the linker.
11784    # At run time we better use the real file rather than another symlink,
11785    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11786
11787    case $with_aix_soname,$aix_use_runtimelinking in
11788    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11789    # soname into executable. Probably we can add versioning support to
11790    # collect2, so additional links can be useful in future.
11791    aix,yes) # traditional libtool
11792      dynamic_linker='AIX unversionable lib.so'
11793      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11794      # instead of lib<name>.a to let people know that these are not
11795      # typical AIX shared libraries.
11796      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11797      ;;
11798    aix,no) # traditional AIX only
11799      dynamic_linker='AIX lib.a(lib.so.V)'
11800      # We preserve .a as extension for shared libraries through AIX4.2
11801      # and later when we are not doing run time linking.
11802      library_names_spec='$libname$release.a $libname.a'
11803      soname_spec='$libname$release$shared_ext$major'
11804      ;;
11805    svr4,*) # full svr4 only
11806      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11807      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11808      # We do not specify a path in Import Files, so LIBPATH fires.
11809      shlibpath_overrides_runpath=yes
11810      ;;
11811    *,yes) # both, prefer svr4
11812      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11813      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11814      # unpreferred sharedlib libNAME.a needs extra handling
11815      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"'
11816      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"'
11817      # We do not specify a path in Import Files, so LIBPATH fires.
11818      shlibpath_overrides_runpath=yes
11819      ;;
11820    *,no) # both, prefer aix
11821      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11822      library_names_spec='$libname$release.a $libname.a'
11823      soname_spec='$libname$release$shared_ext$major'
11824      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11825      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)'
11826      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"'
11827      ;;
11828    esac
11829    shlibpath_var=LIBPATH
11830  fi
11831  ;;
11832
11833amigaos*)
11834  case $host_cpu in
11835  powerpc)
11836    # Since July 2007 AmigaOS4 officially supports .so libraries.
11837    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11838    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11839    ;;
11840  m68k)
11841    library_names_spec='$libname.ixlibrary $libname.a'
11842    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11843    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'
11844    ;;
11845  esac
11846  ;;
11847
11848beos*)
11849  library_names_spec='$libname$shared_ext'
11850  dynamic_linker="$host_os ld.so"
11851  shlibpath_var=LIBRARY_PATH
11852  ;;
11853
11854bsdi[45]*)
11855  version_type=linux # correct to gnu/linux during the next big refactor
11856  need_version=no
11857  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11858  soname_spec='$libname$release$shared_ext$major'
11859  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11860  shlibpath_var=LD_LIBRARY_PATH
11861  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11862  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11863  # the default ld.so.conf also contains /usr/contrib/lib and
11864  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11865  # libtool to hard-code these into programs
11866  ;;
11867
11868cygwin* | mingw* | pw32* | cegcc*)
11869  version_type=windows
11870  shrext_cmds=.dll
11871  need_version=no
11872  need_lib_prefix=no
11873
11874  case $GCC,$cc_basename in
11875  yes,*)
11876    # gcc
11877    library_names_spec='$libname.dll.a'
11878    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11879    postinstall_cmds='base_file=`basename \$file`~
11880      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11881      dldir=$destdir/`dirname \$dlpath`~
11882      test -d \$dldir || mkdir -p \$dldir~
11883      $install_prog $dir/$dlname \$dldir/$dlname~
11884      chmod a+x \$dldir/$dlname~
11885      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11886        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11887      fi'
11888    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11889      dlpath=$dir/\$dldll~
11890       $RM \$dlpath'
11891    shlibpath_overrides_runpath=yes
11892
11893    case $host_os in
11894    cygwin*)
11895      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11896      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11897
11898      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11899      ;;
11900    mingw* | cegcc*)
11901      # MinGW DLLs use traditional 'lib' prefix
11902      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11903      ;;
11904    pw32*)
11905      # pw32 DLLs use 'pw' prefix rather than 'lib'
11906      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11907      ;;
11908    esac
11909    dynamic_linker='Win32 ld.exe'
11910    ;;
11911
11912  *,cl* | *,icl*)
11913    # Native MSVC or ICC
11914    libname_spec='$name'
11915    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11916    library_names_spec='$libname.dll.lib'
11917
11918    case $build_os in
11919    mingw*)
11920      sys_lib_search_path_spec=
11921      lt_save_ifs=$IFS
11922      IFS=';'
11923      for lt_path in $LIB
11924      do
11925        IFS=$lt_save_ifs
11926        # Let DOS variable expansion print the short 8.3 style file name.
11927        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11928        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11929      done
11930      IFS=$lt_save_ifs
11931      # Convert to MSYS style.
11932      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11933      ;;
11934    cygwin*)
11935      # Convert to unix form, then to dos form, then back to unix form
11936      # but this time dos style (no spaces!) so that the unix form looks
11937      # like /cygdrive/c/PROGRA~1:/cygdr...
11938      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11939      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11940      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11941      ;;
11942    *)
11943      sys_lib_search_path_spec=$LIB
11944      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11945        # It is most probably a Windows format PATH.
11946        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11947      else
11948        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11949      fi
11950      # FIXME: find the short name or the path components, as spaces are
11951      # common. (e.g. "Program Files" -> "PROGRA~1")
11952      ;;
11953    esac
11954
11955    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11956    postinstall_cmds='base_file=`basename \$file`~
11957      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11958      dldir=$destdir/`dirname \$dlpath`~
11959      test -d \$dldir || mkdir -p \$dldir~
11960      $install_prog $dir/$dlname \$dldir/$dlname'
11961    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11962      dlpath=$dir/\$dldll~
11963       $RM \$dlpath'
11964    shlibpath_overrides_runpath=yes
11965    dynamic_linker='Win32 link.exe'
11966    ;;
11967
11968  *)
11969    # Assume MSVC and ICC wrapper
11970    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11971    dynamic_linker='Win32 ld.exe'
11972    ;;
11973  esac
11974  # FIXME: first we should search . and the directory the executable is in
11975  shlibpath_var=PATH
11976  ;;
11977
11978darwin* | rhapsody*)
11979  dynamic_linker="$host_os dyld"
11980  version_type=darwin
11981  need_lib_prefix=no
11982  need_version=no
11983  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11984  soname_spec='$libname$release$major$shared_ext'
11985  shlibpath_overrides_runpath=yes
11986  shlibpath_var=DYLD_LIBRARY_PATH
11987  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11988
11989  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11990  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11991  ;;
11992
11993dgux*)
11994  version_type=linux # correct to gnu/linux during the next big refactor
11995  need_lib_prefix=no
11996  need_version=no
11997  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11998  soname_spec='$libname$release$shared_ext$major'
11999  shlibpath_var=LD_LIBRARY_PATH
12000  ;;
12001
12002freebsd* | dragonfly* | midnightbsd*)
12003  # DragonFly does not have aout.  When/if they implement a new
12004  # versioning mechanism, adjust this.
12005  if test -x /usr/bin/objformat; then
12006    objformat=`/usr/bin/objformat`
12007  else
12008    case $host_os in
12009    freebsd[23].*) objformat=aout ;;
12010    *) objformat=elf ;;
12011    esac
12012  fi
12013  version_type=freebsd-$objformat
12014  case $version_type in
12015    freebsd-elf*)
12016      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12017      soname_spec='$libname$release$shared_ext$major'
12018      need_version=no
12019      need_lib_prefix=no
12020      ;;
12021    freebsd-*)
12022      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12023      need_version=yes
12024      ;;
12025  esac
12026  shlibpath_var=LD_LIBRARY_PATH
12027  case $host_os in
12028  freebsd2.*)
12029    shlibpath_overrides_runpath=yes
12030    ;;
12031  freebsd3.[01]* | freebsdelf3.[01]*)
12032    shlibpath_overrides_runpath=yes
12033    hardcode_into_libs=yes
12034    ;;
12035  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12036  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12037    shlibpath_overrides_runpath=no
12038    hardcode_into_libs=yes
12039    ;;
12040  *) # from 4.6 on, and DragonFly
12041    shlibpath_overrides_runpath=yes
12042    hardcode_into_libs=yes
12043    ;;
12044  esac
12045  ;;
12046
12047haiku*)
12048  version_type=linux # correct to gnu/linux during the next big refactor
12049  need_lib_prefix=no
12050  need_version=no
12051  dynamic_linker="$host_os runtime_loader"
12052  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12053  soname_spec='$libname$release$shared_ext$major'
12054  shlibpath_var=LIBRARY_PATH
12055  shlibpath_overrides_runpath=no
12056  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12057  hardcode_into_libs=yes
12058  ;;
12059
12060hpux9* | hpux10* | hpux11*)
12061  # Give a soname corresponding to the major version so that dld.sl refuses to
12062  # link against other versions.
12063  version_type=sunos
12064  need_lib_prefix=no
12065  need_version=no
12066  case $host_cpu in
12067  ia64*)
12068    shrext_cmds='.so'
12069    hardcode_into_libs=yes
12070    dynamic_linker="$host_os dld.so"
12071    shlibpath_var=LD_LIBRARY_PATH
12072    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12073    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12074    soname_spec='$libname$release$shared_ext$major'
12075    if test 32 = "$HPUX_IA64_MODE"; then
12076      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12077      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12078    else
12079      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12080      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12081    fi
12082    ;;
12083  hppa*64*)
12084    shrext_cmds='.sl'
12085    hardcode_into_libs=yes
12086    dynamic_linker="$host_os dld.sl"
12087    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12088    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12089    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12090    soname_spec='$libname$release$shared_ext$major'
12091    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12092    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12093    ;;
12094  *)
12095    shrext_cmds='.sl'
12096    dynamic_linker="$host_os dld.sl"
12097    shlibpath_var=SHLIB_PATH
12098    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12099    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12100    soname_spec='$libname$release$shared_ext$major'
12101    ;;
12102  esac
12103  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12104  postinstall_cmds='chmod 555 $lib'
12105  # or fails outright, so override atomically:
12106  install_override_mode=555
12107  ;;
12108
12109interix[3-9]*)
12110  version_type=linux # correct to gnu/linux during the next big refactor
12111  need_lib_prefix=no
12112  need_version=no
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='Interix 3.x ld.so.1 (PE, like ELF)'
12116  shlibpath_var=LD_LIBRARY_PATH
12117  shlibpath_overrides_runpath=no
12118  hardcode_into_libs=yes
12119  ;;
12120
12121irix5* | irix6* | nonstopux*)
12122  case $host_os in
12123    nonstopux*) version_type=nonstopux ;;
12124    *)
12125	if test yes = "$lt_cv_prog_gnu_ld"; then
12126		version_type=linux # correct to gnu/linux during the next big refactor
12127	else
12128		version_type=irix
12129	fi ;;
12130  esac
12131  need_lib_prefix=no
12132  need_version=no
12133  soname_spec='$libname$release$shared_ext$major'
12134  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12135  case $host_os in
12136  irix5* | nonstopux*)
12137    libsuff= shlibsuff=
12138    ;;
12139  *)
12140    case $LD in # libtool.m4 will add one of these switches to LD
12141    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12142      libsuff= shlibsuff= libmagic=32-bit;;
12143    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12144      libsuff=32 shlibsuff=N32 libmagic=N32;;
12145    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12146      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12147    *) libsuff= shlibsuff= libmagic=never-match;;
12148    esac
12149    ;;
12150  esac
12151  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12152  shlibpath_overrides_runpath=no
12153  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12154  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12155  hardcode_into_libs=yes
12156  ;;
12157
12158# No shared lib support for Linux oldld, aout, or coff.
12159linux*oldld* | linux*aout* | linux*coff*)
12160  dynamic_linker=no
12161  ;;
12162
12163linux*android*)
12164  version_type=none # Android doesn't support versioned libraries.
12165  need_lib_prefix=no
12166  need_version=no
12167  library_names_spec='$libname$release$shared_ext'
12168  soname_spec='$libname$release$shared_ext'
12169  finish_cmds=
12170  shlibpath_var=LD_LIBRARY_PATH
12171  shlibpath_overrides_runpath=yes
12172
12173  # This implies no fast_install, which is unacceptable.
12174  # Some rework will be needed to allow for fast_install
12175  # before this can be enabled.
12176  hardcode_into_libs=yes
12177
12178  dynamic_linker='Android linker'
12179  # Don't embed -rpath directories since the linker doesn't support them.
12180  hardcode_libdir_flag_spec='-L$libdir'
12181  ;;
12182
12183# This must be glibc/ELF.
12184linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12185  version_type=linux # correct to gnu/linux during the next big refactor
12186  need_lib_prefix=no
12187  need_version=no
12188  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12189  soname_spec='$libname$release$shared_ext$major'
12190  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12191  shlibpath_var=LD_LIBRARY_PATH
12192  shlibpath_overrides_runpath=no
12193
12194  # Some binutils ld are patched to set DT_RUNPATH
12195  if test ${lt_cv_shlibpath_overrides_runpath+y}
12196then :
12197  printf %s "(cached) " >&6
12198else case e in #(
12199  e) lt_cv_shlibpath_overrides_runpath=no
12200    save_LDFLAGS=$LDFLAGS
12201    save_libdir=$libdir
12202    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12203	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12204    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12205/* end confdefs.h.  */
12206
12207int
12208main (void)
12209{
12210
12211  ;
12212  return 0;
12213}
12214_ACEOF
12215if ac_fn_c_try_link "$LINENO"
12216then :
12217  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12218then :
12219  lt_cv_shlibpath_overrides_runpath=yes
12220fi
12221fi
12222rm -f core conftest.err conftest.$ac_objext conftest.beam \
12223    conftest$ac_exeext conftest.$ac_ext
12224    LDFLAGS=$save_LDFLAGS
12225    libdir=$save_libdir
12226     ;;
12227esac
12228fi
12229
12230  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12231
12232  # This implies no fast_install, which is unacceptable.
12233  # Some rework will be needed to allow for fast_install
12234  # before this can be enabled.
12235  hardcode_into_libs=yes
12236
12237  # Ideally, we could use ldconfig to report *all* directores which are
12238  # searched for libraries, however this is still not possible.  Aside from not
12239  # being certain /sbin/ldconfig is available, command
12240  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12241  # even though it is searched at run-time.  Try to do the best guess by
12242  # appending ld.so.conf contents (and includes) to the search path.
12243  if test -f /etc/ld.so.conf; then
12244    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' ' '`
12245    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12246  fi
12247
12248  # We used to test for /lib/ld.so.1 and disable shared libraries on
12249  # powerpc, because MkLinux only supported shared libraries with the
12250  # GNU dynamic linker.  Since this was broken with cross compilers,
12251  # most powerpc-linux boxes support dynamic linking these days and
12252  # people can always --disable-shared, the test was removed, and we
12253  # assume the GNU/Linux dynamic linker is in use.
12254  dynamic_linker='GNU/Linux ld.so'
12255  ;;
12256
12257netbsd*)
12258  version_type=sunos
12259  need_lib_prefix=no
12260  need_version=no
12261  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12262    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12263    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12264    dynamic_linker='NetBSD (a.out) ld.so'
12265  else
12266    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12267    soname_spec='$libname$release$shared_ext$major'
12268    dynamic_linker='NetBSD ld.elf_so'
12269  fi
12270  shlibpath_var=LD_LIBRARY_PATH
12271  shlibpath_overrides_runpath=yes
12272  hardcode_into_libs=yes
12273  ;;
12274
12275newsos6)
12276  version_type=linux # correct to gnu/linux during the next big refactor
12277  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12278  shlibpath_var=LD_LIBRARY_PATH
12279  shlibpath_overrides_runpath=yes
12280  ;;
12281
12282*nto* | *qnx*)
12283  version_type=qnx
12284  need_lib_prefix=no
12285  need_version=no
12286  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12287  soname_spec='$libname$release$shared_ext$major'
12288  shlibpath_var=LD_LIBRARY_PATH
12289  shlibpath_overrides_runpath=no
12290  hardcode_into_libs=yes
12291  dynamic_linker='ldqnx.so'
12292  ;;
12293
12294openbsd* | bitrig*)
12295  version_type=sunos
12296  sys_lib_dlsearch_path_spec=/usr/lib
12297  need_lib_prefix=no
12298  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12299    need_version=no
12300  else
12301    need_version=yes
12302  fi
12303  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12304  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12305  shlibpath_var=LD_LIBRARY_PATH
12306  shlibpath_overrides_runpath=yes
12307  ;;
12308
12309os2*)
12310  libname_spec='$name'
12311  version_type=windows
12312  shrext_cmds=.dll
12313  need_version=no
12314  need_lib_prefix=no
12315  # OS/2 can only load a DLL with a base name of 8 characters or less.
12316  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12317    v=$($ECHO $release$versuffix | tr -d .-);
12318    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12319    $ECHO $n$v`$shared_ext'
12320  library_names_spec='${libname}_dll.$libext'
12321  dynamic_linker='OS/2 ld.exe'
12322  shlibpath_var=BEGINLIBPATH
12323  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12324  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12325  postinstall_cmds='base_file=`basename \$file`~
12326    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12327    dldir=$destdir/`dirname \$dlpath`~
12328    test -d \$dldir || mkdir -p \$dldir~
12329    $install_prog $dir/$dlname \$dldir/$dlname~
12330    chmod a+x \$dldir/$dlname~
12331    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12332      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12333    fi'
12334  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12335    dlpath=$dir/\$dldll~
12336    $RM \$dlpath'
12337  ;;
12338
12339osf3* | osf4* | osf5*)
12340  version_type=osf
12341  need_lib_prefix=no
12342  need_version=no
12343  soname_spec='$libname$release$shared_ext$major'
12344  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12345  shlibpath_var=LD_LIBRARY_PATH
12346  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12347  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12348  ;;
12349
12350rdos*)
12351  dynamic_linker=no
12352  ;;
12353
12354solaris*)
12355  version_type=linux # correct to gnu/linux during the next big refactor
12356  need_lib_prefix=no
12357  need_version=no
12358  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12359  soname_spec='$libname$release$shared_ext$major'
12360  shlibpath_var=LD_LIBRARY_PATH
12361  shlibpath_overrides_runpath=yes
12362  hardcode_into_libs=yes
12363  # ldd complains unless libraries are executable
12364  postinstall_cmds='chmod +x $lib'
12365  ;;
12366
12367sunos4*)
12368  version_type=sunos
12369  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12370  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12371  shlibpath_var=LD_LIBRARY_PATH
12372  shlibpath_overrides_runpath=yes
12373  if test yes = "$with_gnu_ld"; then
12374    need_lib_prefix=no
12375  fi
12376  need_version=yes
12377  ;;
12378
12379sysv4 | sysv4.3*)
12380  version_type=linux # correct to gnu/linux during the next big refactor
12381  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12382  soname_spec='$libname$release$shared_ext$major'
12383  shlibpath_var=LD_LIBRARY_PATH
12384  case $host_vendor in
12385    sni)
12386      shlibpath_overrides_runpath=no
12387      need_lib_prefix=no
12388      runpath_var=LD_RUN_PATH
12389      ;;
12390    siemens)
12391      need_lib_prefix=no
12392      ;;
12393    motorola)
12394      need_lib_prefix=no
12395      need_version=no
12396      shlibpath_overrides_runpath=no
12397      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12398      ;;
12399  esac
12400  ;;
12401
12402sysv4*MP*)
12403  if test -d /usr/nec; then
12404    version_type=linux # correct to gnu/linux during the next big refactor
12405    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12406    soname_spec='$libname$shared_ext.$major'
12407    shlibpath_var=LD_LIBRARY_PATH
12408  fi
12409  ;;
12410
12411sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12412  version_type=sco
12413  need_lib_prefix=no
12414  need_version=no
12415  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12416  soname_spec='$libname$release$shared_ext$major'
12417  shlibpath_var=LD_LIBRARY_PATH
12418  shlibpath_overrides_runpath=yes
12419  hardcode_into_libs=yes
12420  if test yes = "$with_gnu_ld"; then
12421    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12422  else
12423    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12424    case $host_os in
12425      sco3.2v5*)
12426        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12427	;;
12428    esac
12429  fi
12430  sys_lib_dlsearch_path_spec='/usr/lib'
12431  ;;
12432
12433tpf*)
12434  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12435  version_type=linux # correct to gnu/linux during the next big refactor
12436  need_lib_prefix=no
12437  need_version=no
12438  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12439  shlibpath_var=LD_LIBRARY_PATH
12440  shlibpath_overrides_runpath=no
12441  hardcode_into_libs=yes
12442  ;;
12443
12444uts4*)
12445  version_type=linux # correct to gnu/linux during the next big refactor
12446  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12447  soname_spec='$libname$release$shared_ext$major'
12448  shlibpath_var=LD_LIBRARY_PATH
12449  ;;
12450
12451*)
12452  dynamic_linker=no
12453  ;;
12454esac
12455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12456printf "%s\n" "$dynamic_linker" >&6; }
12457test no = "$dynamic_linker" && can_build_shared=no
12458
12459variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12460if test yes = "$GCC"; then
12461  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12462fi
12463
12464if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12465  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12466fi
12467
12468if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12469  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12470fi
12471
12472# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12473configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12474
12475# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12476func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12477
12478# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12479configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12578printf %s "checking how to hardcode library paths into programs... " >&6; }
12579hardcode_action=
12580if test -n "$hardcode_libdir_flag_spec" ||
12581   test -n "$runpath_var" ||
12582   test yes = "$hardcode_automatic"; then
12583
12584  # We can hardcode non-existent directories.
12585  if test no != "$hardcode_direct" &&
12586     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12587     # have to relink, otherwise we might link with an installed library
12588     # when we should be linking with a yet-to-be-installed one
12589     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12590     test no != "$hardcode_minus_L"; then
12591    # Linking always hardcodes the temporary library directory.
12592    hardcode_action=relink
12593  else
12594    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12595    hardcode_action=immediate
12596  fi
12597else
12598  # We cannot hardcode anything, or else we can only hardcode existing
12599  # directories.
12600  hardcode_action=unsupported
12601fi
12602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12603printf "%s\n" "$hardcode_action" >&6; }
12604
12605if test relink = "$hardcode_action" ||
12606   test yes = "$inherit_rpath"; then
12607  # Fast installation is not supported
12608  enable_fast_install=no
12609elif test yes = "$shlibpath_overrides_runpath" ||
12610     test no = "$enable_shared"; then
12611  # Fast installation is not necessary
12612  enable_fast_install=needless
12613fi
12614
12615
12616
12617
12618
12619
12620  if test yes != "$enable_dlopen"; then
12621  enable_dlopen=unknown
12622  enable_dlopen_self=unknown
12623  enable_dlopen_self_static=unknown
12624else
12625  lt_cv_dlopen=no
12626  lt_cv_dlopen_libs=
12627
12628  case $host_os in
12629  beos*)
12630    lt_cv_dlopen=load_add_on
12631    lt_cv_dlopen_libs=
12632    lt_cv_dlopen_self=yes
12633    ;;
12634
12635  mingw* | pw32* | cegcc*)
12636    lt_cv_dlopen=LoadLibrary
12637    lt_cv_dlopen_libs=
12638    ;;
12639
12640  cygwin*)
12641    lt_cv_dlopen=dlopen
12642    lt_cv_dlopen_libs=
12643    ;;
12644
12645  darwin*)
12646    # if libdl is installed we need to link against it
12647    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12648printf %s "checking for dlopen in -ldl... " >&6; }
12649if test ${ac_cv_lib_dl_dlopen+y}
12650then :
12651  printf %s "(cached) " >&6
12652else case e in #(
12653  e) ac_check_lib_save_LIBS=$LIBS
12654LIBS="-ldl  $LIBS"
12655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12656/* end confdefs.h.  */
12657
12658/* Override any GCC internal prototype to avoid an error.
12659   Use char because int might match the return type of a GCC
12660   builtin and then its argument prototype would still apply.
12661   The 'extern "C"' is for builds by C++ compilers;
12662   although this is not generally supported in C code supporting it here
12663   has little cost and some practical benefit (sr 110532).  */
12664#ifdef __cplusplus
12665extern "C"
12666#endif
12667char dlopen (void);
12668int
12669main (void)
12670{
12671return dlopen ();
12672  ;
12673  return 0;
12674}
12675_ACEOF
12676if ac_fn_c_try_link "$LINENO"
12677then :
12678  ac_cv_lib_dl_dlopen=yes
12679else case e in #(
12680  e) ac_cv_lib_dl_dlopen=no ;;
12681esac
12682fi
12683rm -f core conftest.err conftest.$ac_objext conftest.beam \
12684    conftest$ac_exeext conftest.$ac_ext
12685LIBS=$ac_check_lib_save_LIBS ;;
12686esac
12687fi
12688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12689printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12690if test "x$ac_cv_lib_dl_dlopen" = xyes
12691then :
12692  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12693else case e in #(
12694  e)
12695    lt_cv_dlopen=dyld
12696    lt_cv_dlopen_libs=
12697    lt_cv_dlopen_self=yes
12698     ;;
12699esac
12700fi
12701
12702    ;;
12703
12704  tpf*)
12705    # Don't try to run any link tests for TPF.  We know it's impossible
12706    # because TPF is a cross-compiler, and we know how we open DSOs.
12707    lt_cv_dlopen=dlopen
12708    lt_cv_dlopen_libs=
12709    lt_cv_dlopen_self=no
12710    ;;
12711
12712  *)
12713    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12714if test "x$ac_cv_func_shl_load" = xyes
12715then :
12716  lt_cv_dlopen=shl_load
12717else case e in #(
12718  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12719printf %s "checking for shl_load in -ldld... " >&6; }
12720if test ${ac_cv_lib_dld_shl_load+y}
12721then :
12722  printf %s "(cached) " >&6
12723else case e in #(
12724  e) ac_check_lib_save_LIBS=$LIBS
12725LIBS="-ldld  $LIBS"
12726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12727/* end confdefs.h.  */
12728
12729/* Override any GCC internal prototype to avoid an error.
12730   Use char because int might match the return type of a GCC
12731   builtin and then its argument prototype would still apply.
12732   The 'extern "C"' is for builds by C++ compilers;
12733   although this is not generally supported in C code supporting it here
12734   has little cost and some practical benefit (sr 110532).  */
12735#ifdef __cplusplus
12736extern "C"
12737#endif
12738char shl_load (void);
12739int
12740main (void)
12741{
12742return shl_load ();
12743  ;
12744  return 0;
12745}
12746_ACEOF
12747if ac_fn_c_try_link "$LINENO"
12748then :
12749  ac_cv_lib_dld_shl_load=yes
12750else case e in #(
12751  e) ac_cv_lib_dld_shl_load=no ;;
12752esac
12753fi
12754rm -f core conftest.err conftest.$ac_objext conftest.beam \
12755    conftest$ac_exeext conftest.$ac_ext
12756LIBS=$ac_check_lib_save_LIBS ;;
12757esac
12758fi
12759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12760printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12761if test "x$ac_cv_lib_dld_shl_load" = xyes
12762then :
12763  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12764else case e in #(
12765  e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12766if test "x$ac_cv_func_dlopen" = xyes
12767then :
12768  lt_cv_dlopen=dlopen
12769else case e in #(
12770  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12771printf %s "checking for dlopen in -ldl... " >&6; }
12772if test ${ac_cv_lib_dl_dlopen+y}
12773then :
12774  printf %s "(cached) " >&6
12775else case e in #(
12776  e) ac_check_lib_save_LIBS=$LIBS
12777LIBS="-ldl  $LIBS"
12778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12779/* end confdefs.h.  */
12780
12781/* Override any GCC internal prototype to avoid an error.
12782   Use char because int might match the return type of a GCC
12783   builtin and then its argument prototype would still apply.
12784   The 'extern "C"' is for builds by C++ compilers;
12785   although this is not generally supported in C code supporting it here
12786   has little cost and some practical benefit (sr 110532).  */
12787#ifdef __cplusplus
12788extern "C"
12789#endif
12790char dlopen (void);
12791int
12792main (void)
12793{
12794return dlopen ();
12795  ;
12796  return 0;
12797}
12798_ACEOF
12799if ac_fn_c_try_link "$LINENO"
12800then :
12801  ac_cv_lib_dl_dlopen=yes
12802else case e in #(
12803  e) ac_cv_lib_dl_dlopen=no ;;
12804esac
12805fi
12806rm -f core conftest.err conftest.$ac_objext conftest.beam \
12807    conftest$ac_exeext conftest.$ac_ext
12808LIBS=$ac_check_lib_save_LIBS ;;
12809esac
12810fi
12811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12812printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12813if test "x$ac_cv_lib_dl_dlopen" = xyes
12814then :
12815  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12816else case e in #(
12817  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12818printf %s "checking for dlopen in -lsvld... " >&6; }
12819if test ${ac_cv_lib_svld_dlopen+y}
12820then :
12821  printf %s "(cached) " >&6
12822else case e in #(
12823  e) ac_check_lib_save_LIBS=$LIBS
12824LIBS="-lsvld  $LIBS"
12825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12826/* end confdefs.h.  */
12827
12828/* Override any GCC internal prototype to avoid an error.
12829   Use char because int might match the return type of a GCC
12830   builtin and then its argument prototype would still apply.
12831   The 'extern "C"' is for builds by C++ compilers;
12832   although this is not generally supported in C code supporting it here
12833   has little cost and some practical benefit (sr 110532).  */
12834#ifdef __cplusplus
12835extern "C"
12836#endif
12837char dlopen (void);
12838int
12839main (void)
12840{
12841return dlopen ();
12842  ;
12843  return 0;
12844}
12845_ACEOF
12846if ac_fn_c_try_link "$LINENO"
12847then :
12848  ac_cv_lib_svld_dlopen=yes
12849else case e in #(
12850  e) ac_cv_lib_svld_dlopen=no ;;
12851esac
12852fi
12853rm -f core conftest.err conftest.$ac_objext conftest.beam \
12854    conftest$ac_exeext conftest.$ac_ext
12855LIBS=$ac_check_lib_save_LIBS ;;
12856esac
12857fi
12858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12859printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12860if test "x$ac_cv_lib_svld_dlopen" = xyes
12861then :
12862  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12863else case e in #(
12864  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12865printf %s "checking for dld_link in -ldld... " >&6; }
12866if test ${ac_cv_lib_dld_dld_link+y}
12867then :
12868  printf %s "(cached) " >&6
12869else case e in #(
12870  e) ac_check_lib_save_LIBS=$LIBS
12871LIBS="-ldld  $LIBS"
12872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12873/* end confdefs.h.  */
12874
12875/* Override any GCC internal prototype to avoid an error.
12876   Use char because int might match the return type of a GCC
12877   builtin and then its argument prototype would still apply.
12878   The 'extern "C"' is for builds by C++ compilers;
12879   although this is not generally supported in C code supporting it here
12880   has little cost and some practical benefit (sr 110532).  */
12881#ifdef __cplusplus
12882extern "C"
12883#endif
12884char dld_link (void);
12885int
12886main (void)
12887{
12888return dld_link ();
12889  ;
12890  return 0;
12891}
12892_ACEOF
12893if ac_fn_c_try_link "$LINENO"
12894then :
12895  ac_cv_lib_dld_dld_link=yes
12896else case e in #(
12897  e) ac_cv_lib_dld_dld_link=no ;;
12898esac
12899fi
12900rm -f core conftest.err conftest.$ac_objext conftest.beam \
12901    conftest$ac_exeext conftest.$ac_ext
12902LIBS=$ac_check_lib_save_LIBS ;;
12903esac
12904fi
12905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12906printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12907if test "x$ac_cv_lib_dld_dld_link" = xyes
12908then :
12909  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12910fi
12911
12912	       ;;
12913esac
12914fi
12915
12916	     ;;
12917esac
12918fi
12919
12920	   ;;
12921esac
12922fi
12923
12924	 ;;
12925esac
12926fi
12927
12928       ;;
12929esac
12930fi
12931
12932    ;;
12933  esac
12934
12935  if test no = "$lt_cv_dlopen"; then
12936    enable_dlopen=no
12937  else
12938    enable_dlopen=yes
12939  fi
12940
12941  case $lt_cv_dlopen in
12942  dlopen)
12943    save_CPPFLAGS=$CPPFLAGS
12944    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12945
12946    save_LDFLAGS=$LDFLAGS
12947    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12948
12949    save_LIBS=$LIBS
12950    LIBS="$lt_cv_dlopen_libs $LIBS"
12951
12952    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12953printf %s "checking whether a program can dlopen itself... " >&6; }
12954if test ${lt_cv_dlopen_self+y}
12955then :
12956  printf %s "(cached) " >&6
12957else case e in #(
12958  e) 	  if test yes = "$cross_compiling"; then :
12959  lt_cv_dlopen_self=cross
12960else
12961  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12962  lt_status=$lt_dlunknown
12963  cat > conftest.$ac_ext <<_LT_EOF
12964#line $LINENO "configure"
12965#include "confdefs.h"
12966
12967#if HAVE_DLFCN_H
12968#include <dlfcn.h>
12969#endif
12970
12971#include <stdio.h>
12972
12973#ifdef RTLD_GLOBAL
12974#  define LT_DLGLOBAL		RTLD_GLOBAL
12975#else
12976#  ifdef DL_GLOBAL
12977#    define LT_DLGLOBAL		DL_GLOBAL
12978#  else
12979#    define LT_DLGLOBAL		0
12980#  endif
12981#endif
12982
12983/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12984   find out it does not work in some platform. */
12985#ifndef LT_DLLAZY_OR_NOW
12986#  ifdef RTLD_LAZY
12987#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12988#  else
12989#    ifdef DL_LAZY
12990#      define LT_DLLAZY_OR_NOW		DL_LAZY
12991#    else
12992#      ifdef RTLD_NOW
12993#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12994#      else
12995#        ifdef DL_NOW
12996#          define LT_DLLAZY_OR_NOW	DL_NOW
12997#        else
12998#          define LT_DLLAZY_OR_NOW	0
12999#        endif
13000#      endif
13001#    endif
13002#  endif
13003#endif
13004
13005/* When -fvisibility=hidden is used, assume the code has been annotated
13006   correspondingly for the symbols needed.  */
13007#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13008int fnord () __attribute__((visibility("default")));
13009#endif
13010
13011int fnord () { return 42; }
13012int main ()
13013{
13014  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13015  int status = $lt_dlunknown;
13016
13017  if (self)
13018    {
13019      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13020      else
13021        {
13022	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13023          else puts (dlerror ());
13024	}
13025      /* dlclose (self); */
13026    }
13027  else
13028    puts (dlerror ());
13029
13030  return status;
13031}
13032_LT_EOF
13033  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13034  (eval $ac_link) 2>&5
13035  ac_status=$?
13036  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13037  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13038    (./conftest; exit; ) >&5 2>/dev/null
13039    lt_status=$?
13040    case x$lt_status in
13041      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13042      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13043      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13044    esac
13045  else :
13046    # compilation failed
13047    lt_cv_dlopen_self=no
13048  fi
13049fi
13050rm -fr conftest*
13051
13052     ;;
13053esac
13054fi
13055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13056printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13057
13058    if test yes = "$lt_cv_dlopen_self"; then
13059      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13060      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13061printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13062if test ${lt_cv_dlopen_self_static+y}
13063then :
13064  printf %s "(cached) " >&6
13065else case e in #(
13066  e) 	  if test yes = "$cross_compiling"; then :
13067  lt_cv_dlopen_self_static=cross
13068else
13069  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13070  lt_status=$lt_dlunknown
13071  cat > conftest.$ac_ext <<_LT_EOF
13072#line $LINENO "configure"
13073#include "confdefs.h"
13074
13075#if HAVE_DLFCN_H
13076#include <dlfcn.h>
13077#endif
13078
13079#include <stdio.h>
13080
13081#ifdef RTLD_GLOBAL
13082#  define LT_DLGLOBAL		RTLD_GLOBAL
13083#else
13084#  ifdef DL_GLOBAL
13085#    define LT_DLGLOBAL		DL_GLOBAL
13086#  else
13087#    define LT_DLGLOBAL		0
13088#  endif
13089#endif
13090
13091/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13092   find out it does not work in some platform. */
13093#ifndef LT_DLLAZY_OR_NOW
13094#  ifdef RTLD_LAZY
13095#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13096#  else
13097#    ifdef DL_LAZY
13098#      define LT_DLLAZY_OR_NOW		DL_LAZY
13099#    else
13100#      ifdef RTLD_NOW
13101#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13102#      else
13103#        ifdef DL_NOW
13104#          define LT_DLLAZY_OR_NOW	DL_NOW
13105#        else
13106#          define LT_DLLAZY_OR_NOW	0
13107#        endif
13108#      endif
13109#    endif
13110#  endif
13111#endif
13112
13113/* When -fvisibility=hidden is used, assume the code has been annotated
13114   correspondingly for the symbols needed.  */
13115#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13116int fnord () __attribute__((visibility("default")));
13117#endif
13118
13119int fnord () { return 42; }
13120int main ()
13121{
13122  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13123  int status = $lt_dlunknown;
13124
13125  if (self)
13126    {
13127      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13128      else
13129        {
13130	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13131          else puts (dlerror ());
13132	}
13133      /* dlclose (self); */
13134    }
13135  else
13136    puts (dlerror ());
13137
13138  return status;
13139}
13140_LT_EOF
13141  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13142  (eval $ac_link) 2>&5
13143  ac_status=$?
13144  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13145  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13146    (./conftest; exit; ) >&5 2>/dev/null
13147    lt_status=$?
13148    case x$lt_status in
13149      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13150      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13151      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13152    esac
13153  else :
13154    # compilation failed
13155    lt_cv_dlopen_self_static=no
13156  fi
13157fi
13158rm -fr conftest*
13159
13160       ;;
13161esac
13162fi
13163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13164printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13165    fi
13166
13167    CPPFLAGS=$save_CPPFLAGS
13168    LDFLAGS=$save_LDFLAGS
13169    LIBS=$save_LIBS
13170    ;;
13171  esac
13172
13173  case $lt_cv_dlopen_self in
13174  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13175  *) enable_dlopen_self=unknown ;;
13176  esac
13177
13178  case $lt_cv_dlopen_self_static in
13179  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13180  *) enable_dlopen_self_static=unknown ;;
13181  esac
13182fi
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200striplib=
13201old_striplib=
13202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13203printf %s "checking whether stripping libraries is possible... " >&6; }
13204if test -z "$STRIP"; then
13205  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13206printf "%s\n" "no" >&6; }
13207else
13208  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13209    old_striplib="$STRIP --strip-debug"
13210    striplib="$STRIP --strip-unneeded"
13211    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13212printf "%s\n" "yes" >&6; }
13213  else
13214    case $host_os in
13215    darwin*)
13216      # FIXME - insert some real tests, host_os isn't really good enough
13217      striplib="$STRIP -x"
13218      old_striplib="$STRIP -S"
13219      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13220printf "%s\n" "yes" >&6; }
13221      ;;
13222    freebsd*)
13223      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13224        old_striplib="$STRIP --strip-debug"
13225        striplib="$STRIP --strip-unneeded"
13226        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13227printf "%s\n" "yes" >&6; }
13228      else
13229        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13230printf "%s\n" "no" >&6; }
13231      fi
13232      ;;
13233    *)
13234      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13235printf "%s\n" "no" >&6; }
13236      ;;
13237    esac
13238  fi
13239fi
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252  # Report what library types will actually be built
13253  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13254printf %s "checking if libtool supports shared libraries... " >&6; }
13255  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13256printf "%s\n" "$can_build_shared" >&6; }
13257
13258  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13259printf %s "checking whether to build shared libraries... " >&6; }
13260  test no = "$can_build_shared" && enable_shared=no
13261
13262  # On AIX, shared libraries and static libraries use the same namespace, and
13263  # are all built from PIC.
13264  case $host_os in
13265  aix3*)
13266    test yes = "$enable_shared" && enable_static=no
13267    if test -n "$RANLIB"; then
13268      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13269      postinstall_cmds='$RANLIB $lib'
13270    fi
13271    ;;
13272
13273  aix[4-9]*)
13274    if test ia64 != "$host_cpu"; then
13275      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13276      yes,aix,yes) ;;			# shared object as lib.so file only
13277      yes,svr4,*) ;;			# shared object as lib.so archive member only
13278      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13279      esac
13280    fi
13281    ;;
13282  esac
13283  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13284printf "%s\n" "$enable_shared" >&6; }
13285
13286  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13287printf %s "checking whether to build static libraries... " >&6; }
13288  # Make sure either enable_shared or enable_static is yes.
13289  test yes = "$enable_shared" || enable_static=yes
13290  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13291printf "%s\n" "$enable_static" >&6; }
13292
13293
13294
13295
13296fi
13297ac_ext=c
13298ac_cpp='$CPP $CPPFLAGS'
13299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13301ac_compiler_gnu=$ac_cv_c_compiler_gnu
13302
13303CC=$lt_save_CC
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319        ac_config_commands="$ac_config_commands libtool"
13320
13321
13322
13323
13324# Only expand once:
13325
13326
13327
13328# Require X.Org macros 1.8 or later
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13341printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13342if test ${ac_cv_c_undeclared_builtin_options+y}
13343then :
13344  printf %s "(cached) " >&6
13345else case e in #(
13346  e) ac_save_CFLAGS=$CFLAGS
13347   ac_cv_c_undeclared_builtin_options='cannot detect'
13348   for ac_arg in '' -fno-builtin; do
13349     CFLAGS="$ac_save_CFLAGS $ac_arg"
13350     # This test program should *not* compile successfully.
13351     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13352/* end confdefs.h.  */
13353
13354int
13355main (void)
13356{
13357(void) strchr;
13358  ;
13359  return 0;
13360}
13361_ACEOF
13362if ac_fn_c_try_compile "$LINENO"
13363then :
13364
13365else case e in #(
13366  e) # This test program should compile successfully.
13367        # No library function is consistently available on
13368        # freestanding implementations, so test against a dummy
13369        # declaration.  Include always-available headers on the
13370        # off chance that they somehow elicit warnings.
13371        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13372/* end confdefs.h.  */
13373#include <float.h>
13374#include <limits.h>
13375#include <stdarg.h>
13376#include <stddef.h>
13377extern void ac_decl (int, char *);
13378
13379int
13380main (void)
13381{
13382(void) ac_decl (0, (char *) 0);
13383  (void) ac_decl;
13384
13385  ;
13386  return 0;
13387}
13388_ACEOF
13389if ac_fn_c_try_compile "$LINENO"
13390then :
13391  if test x"$ac_arg" = x
13392then :
13393  ac_cv_c_undeclared_builtin_options='none needed'
13394else case e in #(
13395  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
13396esac
13397fi
13398          break
13399fi
13400rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13401esac
13402fi
13403rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13404    done
13405    CFLAGS=$ac_save_CFLAGS
13406   ;;
13407esac
13408fi
13409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13410printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13411  case $ac_cv_c_undeclared_builtin_options in #(
13412  'cannot detect') :
13413    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13414printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13415as_fn_error $? "cannot make $CC report undeclared builtins
13416See 'config.log' for more details" "$LINENO" 5; } ;; #(
13417  'none needed') :
13418    ac_c_undeclared_builtin_options='' ;; #(
13419  *) :
13420    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13421esac
13422
13423
13424
13425
13426
13427ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13428if test "x$ac_cv_have_decl___clang__" = xyes
13429then :
13430  CLANGCC="yes"
13431else case e in #(
13432  e) CLANGCC="no" ;;
13433esac
13434fi
13435ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13436if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13437then :
13438  INTELCC="yes"
13439else case e in #(
13440  e) INTELCC="no" ;;
13441esac
13442fi
13443ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13444if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13445then :
13446  SUNCC="yes"
13447else case e in #(
13448  e) SUNCC="no" ;;
13449esac
13450fi
13451
13452
13453
13454
13455
13456
13457
13458
13459if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13460	if test -n "$ac_tool_prefix"; then
13461  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13462set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13464printf %s "checking for $ac_word... " >&6; }
13465if test ${ac_cv_path_PKG_CONFIG+y}
13466then :
13467  printf %s "(cached) " >&6
13468else case e in #(
13469  e) case $PKG_CONFIG in
13470  [\\/]* | ?:[\\/]*)
13471  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13472  ;;
13473  *)
13474  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13475for as_dir in $PATH
13476do
13477  IFS=$as_save_IFS
13478  case $as_dir in #(((
13479    '') as_dir=./ ;;
13480    */) ;;
13481    *) as_dir=$as_dir/ ;;
13482  esac
13483    for ac_exec_ext in '' $ac_executable_extensions; do
13484  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13485    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13486    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13487    break 2
13488  fi
13489done
13490  done
13491IFS=$as_save_IFS
13492
13493  ;;
13494esac ;;
13495esac
13496fi
13497PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13498if test -n "$PKG_CONFIG"; then
13499  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13500printf "%s\n" "$PKG_CONFIG" >&6; }
13501else
13502  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13503printf "%s\n" "no" >&6; }
13504fi
13505
13506
13507fi
13508if test -z "$ac_cv_path_PKG_CONFIG"; then
13509  ac_pt_PKG_CONFIG=$PKG_CONFIG
13510  # Extract the first word of "pkg-config", so it can be a program name with args.
13511set dummy pkg-config; ac_word=$2
13512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13513printf %s "checking for $ac_word... " >&6; }
13514if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13515then :
13516  printf %s "(cached) " >&6
13517else case e in #(
13518  e) case $ac_pt_PKG_CONFIG in
13519  [\\/]* | ?:[\\/]*)
13520  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13521  ;;
13522  *)
13523  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13524for as_dir in $PATH
13525do
13526  IFS=$as_save_IFS
13527  case $as_dir in #(((
13528    '') as_dir=./ ;;
13529    */) ;;
13530    *) as_dir=$as_dir/ ;;
13531  esac
13532    for ac_exec_ext in '' $ac_executable_extensions; do
13533  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13534    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13535    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13536    break 2
13537  fi
13538done
13539  done
13540IFS=$as_save_IFS
13541
13542  ;;
13543esac ;;
13544esac
13545fi
13546ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13547if test -n "$ac_pt_PKG_CONFIG"; then
13548  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13549printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13550else
13551  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13552printf "%s\n" "no" >&6; }
13553fi
13554
13555  if test "x$ac_pt_PKG_CONFIG" = x; then
13556    PKG_CONFIG=""
13557  else
13558    case $cross_compiling:$ac_tool_warned in
13559yes:)
13560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13561printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13562ac_tool_warned=yes ;;
13563esac
13564    PKG_CONFIG=$ac_pt_PKG_CONFIG
13565  fi
13566else
13567  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13568fi
13569
13570fi
13571if test -n "$PKG_CONFIG"; then
13572	_pkg_min_version=0.9.0
13573	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13574printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13575	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13576		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13577printf "%s\n" "yes" >&6; }
13578	else
13579		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13580printf "%s\n" "no" >&6; }
13581		PKG_CONFIG=""
13582	fi
13583fi
13584
13585
13586
13587
13588
13589# Check whether --enable-selective-werror was given.
13590if test ${enable_selective_werror+y}
13591then :
13592  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13593else case e in #(
13594  e) SELECTIVE_WERROR=yes ;;
13595esac
13596fi
13597
13598
13599
13600
13601
13602# -v is too short to test reliably with XORG_TESTSET_CFLAG
13603if test "x$SUNCC" = "xyes"; then
13604    BASE_CFLAGS="-v"
13605else
13606    BASE_CFLAGS=""
13607fi
13608
13609# This chunk of warnings were those that existed in the legacy CWARNFLAGS
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623xorg_testset_save_CFLAGS="$CFLAGS"
13624
13625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13626	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13627	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13628printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13629if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13630then :
13631  printf %s "(cached) " >&6
13632else case e in #(
13633  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13634/* end confdefs.h.  */
13635int i;
13636_ACEOF
13637if ac_fn_c_try_compile "$LINENO"
13638then :
13639  xorg_cv_cc_flag_unknown_warning_option=yes
13640else case e in #(
13641  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
13642esac
13643fi
13644rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13645esac
13646fi
13647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13648printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13649	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13650	CFLAGS="$xorg_testset_save_CFLAGS"
13651fi
13652
13653if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13654	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13655		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13656	fi
13657	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13658	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13659printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13660if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13661then :
13662  printf %s "(cached) " >&6
13663else case e in #(
13664  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13665/* end confdefs.h.  */
13666int i;
13667_ACEOF
13668if ac_fn_c_try_compile "$LINENO"
13669then :
13670  xorg_cv_cc_flag_unused_command_line_argument=yes
13671else case e in #(
13672  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
13673esac
13674fi
13675rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13676esac
13677fi
13678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13679printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13680	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13681	CFLAGS="$xorg_testset_save_CFLAGS"
13682fi
13683
13684found="no"
13685
13686	if test $found = "no" ; then
13687		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13688			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13689		fi
13690
13691		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13692			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13693		fi
13694
13695		CFLAGS="$CFLAGS -Wall"
13696
13697		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13698printf %s "checking if $CC supports -Wall... " >&6; }
13699		cacheid=xorg_cv_cc_flag__Wall
13700		if eval test \${$cacheid+y}
13701then :
13702  printf %s "(cached) " >&6
13703else case e in #(
13704  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13705/* end confdefs.h.  */
13706int i;
13707int
13708main (void)
13709{
13710
13711  ;
13712  return 0;
13713}
13714_ACEOF
13715if ac_fn_c_try_link "$LINENO"
13716then :
13717  eval $cacheid=yes
13718else case e in #(
13719  e) eval $cacheid=no ;;
13720esac
13721fi
13722rm -f core conftest.err conftest.$ac_objext conftest.beam \
13723    conftest$ac_exeext conftest.$ac_ext ;;
13724esac
13725fi
13726
13727
13728		CFLAGS="$xorg_testset_save_CFLAGS"
13729
13730		eval supported=\$$cacheid
13731		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13732printf "%s\n" "$supported" >&6; }
13733		if test "$supported" = "yes" ; then
13734			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13735			found="yes"
13736		fi
13737	fi
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753xorg_testset_save_CFLAGS="$CFLAGS"
13754
13755if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13756	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13757	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13758printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13759if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13760then :
13761  printf %s "(cached) " >&6
13762else case e in #(
13763  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13764/* end confdefs.h.  */
13765int i;
13766_ACEOF
13767if ac_fn_c_try_compile "$LINENO"
13768then :
13769  xorg_cv_cc_flag_unknown_warning_option=yes
13770else case e in #(
13771  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
13772esac
13773fi
13774rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13775esac
13776fi
13777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13778printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13779	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13780	CFLAGS="$xorg_testset_save_CFLAGS"
13781fi
13782
13783if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13784	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13785		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13786	fi
13787	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13788	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13789printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13790if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13791then :
13792  printf %s "(cached) " >&6
13793else case e in #(
13794  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13795/* end confdefs.h.  */
13796int i;
13797_ACEOF
13798if ac_fn_c_try_compile "$LINENO"
13799then :
13800  xorg_cv_cc_flag_unused_command_line_argument=yes
13801else case e in #(
13802  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
13803esac
13804fi
13805rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13806esac
13807fi
13808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13809printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13810	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13811	CFLAGS="$xorg_testset_save_CFLAGS"
13812fi
13813
13814found="no"
13815
13816	if test $found = "no" ; then
13817		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13818			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13819		fi
13820
13821		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13822			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13823		fi
13824
13825		CFLAGS="$CFLAGS -Wpointer-arith"
13826
13827		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13828printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13829		cacheid=xorg_cv_cc_flag__Wpointer_arith
13830		if eval test \${$cacheid+y}
13831then :
13832  printf %s "(cached) " >&6
13833else case e in #(
13834  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13835/* end confdefs.h.  */
13836int i;
13837int
13838main (void)
13839{
13840
13841  ;
13842  return 0;
13843}
13844_ACEOF
13845if ac_fn_c_try_link "$LINENO"
13846then :
13847  eval $cacheid=yes
13848else case e in #(
13849  e) eval $cacheid=no ;;
13850esac
13851fi
13852rm -f core conftest.err conftest.$ac_objext conftest.beam \
13853    conftest$ac_exeext conftest.$ac_ext ;;
13854esac
13855fi
13856
13857
13858		CFLAGS="$xorg_testset_save_CFLAGS"
13859
13860		eval supported=\$$cacheid
13861		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13862printf "%s\n" "$supported" >&6; }
13863		if test "$supported" = "yes" ; then
13864			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13865			found="yes"
13866		fi
13867	fi
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883xorg_testset_save_CFLAGS="$CFLAGS"
13884
13885if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13886	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13887	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13888printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13889if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13890then :
13891  printf %s "(cached) " >&6
13892else case e in #(
13893  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13894/* end confdefs.h.  */
13895int i;
13896_ACEOF
13897if ac_fn_c_try_compile "$LINENO"
13898then :
13899  xorg_cv_cc_flag_unknown_warning_option=yes
13900else case e in #(
13901  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
13902esac
13903fi
13904rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13905esac
13906fi
13907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13908printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13909	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13910	CFLAGS="$xorg_testset_save_CFLAGS"
13911fi
13912
13913if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13914	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13915		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13916	fi
13917	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13918	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13919printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13920if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13921then :
13922  printf %s "(cached) " >&6
13923else case e in #(
13924  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13925/* end confdefs.h.  */
13926int i;
13927_ACEOF
13928if ac_fn_c_try_compile "$LINENO"
13929then :
13930  xorg_cv_cc_flag_unused_command_line_argument=yes
13931else case e in #(
13932  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
13933esac
13934fi
13935rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13936esac
13937fi
13938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13939printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13940	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13941	CFLAGS="$xorg_testset_save_CFLAGS"
13942fi
13943
13944found="no"
13945
13946	if test $found = "no" ; then
13947		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13948			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13949		fi
13950
13951		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13952			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13953		fi
13954
13955		CFLAGS="$CFLAGS -Wmissing-declarations"
13956
13957		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13958printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13959		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13960		if eval test \${$cacheid+y}
13961then :
13962  printf %s "(cached) " >&6
13963else case e in #(
13964  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13965/* end confdefs.h.  */
13966int i;
13967int
13968main (void)
13969{
13970
13971  ;
13972  return 0;
13973}
13974_ACEOF
13975if ac_fn_c_try_link "$LINENO"
13976then :
13977  eval $cacheid=yes
13978else case e in #(
13979  e) eval $cacheid=no ;;
13980esac
13981fi
13982rm -f core conftest.err conftest.$ac_objext conftest.beam \
13983    conftest$ac_exeext conftest.$ac_ext ;;
13984esac
13985fi
13986
13987
13988		CFLAGS="$xorg_testset_save_CFLAGS"
13989
13990		eval supported=\$$cacheid
13991		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13992printf "%s\n" "$supported" >&6; }
13993		if test "$supported" = "yes" ; then
13994			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13995			found="yes"
13996		fi
13997	fi
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013xorg_testset_save_CFLAGS="$CFLAGS"
14014
14015if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14016	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14017	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14018printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14019if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14020then :
14021  printf %s "(cached) " >&6
14022else case e in #(
14023  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14024/* end confdefs.h.  */
14025int i;
14026_ACEOF
14027if ac_fn_c_try_compile "$LINENO"
14028then :
14029  xorg_cv_cc_flag_unknown_warning_option=yes
14030else case e in #(
14031  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14032esac
14033fi
14034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14035esac
14036fi
14037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14038printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14039	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14040	CFLAGS="$xorg_testset_save_CFLAGS"
14041fi
14042
14043if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14044	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14045		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14046	fi
14047	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14048	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14049printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14050if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14051then :
14052  printf %s "(cached) " >&6
14053else case e in #(
14054  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14055/* end confdefs.h.  */
14056int i;
14057_ACEOF
14058if ac_fn_c_try_compile "$LINENO"
14059then :
14060  xorg_cv_cc_flag_unused_command_line_argument=yes
14061else case e in #(
14062  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14063esac
14064fi
14065rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14066esac
14067fi
14068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14069printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14070	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14071	CFLAGS="$xorg_testset_save_CFLAGS"
14072fi
14073
14074found="no"
14075
14076	if test $found = "no" ; then
14077		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14078			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14079		fi
14080
14081		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14082			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14083		fi
14084
14085		CFLAGS="$CFLAGS -Wformat=2"
14086
14087		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
14088printf %s "checking if $CC supports -Wformat=2... " >&6; }
14089		cacheid=xorg_cv_cc_flag__Wformat_2
14090		if eval test \${$cacheid+y}
14091then :
14092  printf %s "(cached) " >&6
14093else case e in #(
14094  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14095/* end confdefs.h.  */
14096int i;
14097int
14098main (void)
14099{
14100
14101  ;
14102  return 0;
14103}
14104_ACEOF
14105if ac_fn_c_try_link "$LINENO"
14106then :
14107  eval $cacheid=yes
14108else case e in #(
14109  e) eval $cacheid=no ;;
14110esac
14111fi
14112rm -f core conftest.err conftest.$ac_objext conftest.beam \
14113    conftest$ac_exeext conftest.$ac_ext ;;
14114esac
14115fi
14116
14117
14118		CFLAGS="$xorg_testset_save_CFLAGS"
14119
14120		eval supported=\$$cacheid
14121		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14122printf "%s\n" "$supported" >&6; }
14123		if test "$supported" = "yes" ; then
14124			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
14125			found="yes"
14126		fi
14127	fi
14128
14129	if test $found = "no" ; then
14130		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14131			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14132		fi
14133
14134		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14135			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14136		fi
14137
14138		CFLAGS="$CFLAGS -Wformat"
14139
14140		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
14141printf %s "checking if $CC supports -Wformat... " >&6; }
14142		cacheid=xorg_cv_cc_flag__Wformat
14143		if eval test \${$cacheid+y}
14144then :
14145  printf %s "(cached) " >&6
14146else case e in #(
14147  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14148/* end confdefs.h.  */
14149int i;
14150int
14151main (void)
14152{
14153
14154  ;
14155  return 0;
14156}
14157_ACEOF
14158if ac_fn_c_try_link "$LINENO"
14159then :
14160  eval $cacheid=yes
14161else case e in #(
14162  e) eval $cacheid=no ;;
14163esac
14164fi
14165rm -f core conftest.err conftest.$ac_objext conftest.beam \
14166    conftest$ac_exeext conftest.$ac_ext ;;
14167esac
14168fi
14169
14170
14171		CFLAGS="$xorg_testset_save_CFLAGS"
14172
14173		eval supported=\$$cacheid
14174		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14175printf "%s\n" "$supported" >&6; }
14176		if test "$supported" = "yes" ; then
14177			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
14178			found="yes"
14179		fi
14180	fi
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198xorg_testset_save_CFLAGS="$CFLAGS"
14199
14200if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14201	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14202	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14203printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14204if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14205then :
14206  printf %s "(cached) " >&6
14207else case e in #(
14208  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14209/* end confdefs.h.  */
14210int i;
14211_ACEOF
14212if ac_fn_c_try_compile "$LINENO"
14213then :
14214  xorg_cv_cc_flag_unknown_warning_option=yes
14215else case e in #(
14216  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14217esac
14218fi
14219rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14220esac
14221fi
14222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14223printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14224	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14225	CFLAGS="$xorg_testset_save_CFLAGS"
14226fi
14227
14228if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14229	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14230		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14231	fi
14232	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14233	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14234printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14235if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14236then :
14237  printf %s "(cached) " >&6
14238else case e in #(
14239  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14240/* end confdefs.h.  */
14241int i;
14242_ACEOF
14243if ac_fn_c_try_compile "$LINENO"
14244then :
14245  xorg_cv_cc_flag_unused_command_line_argument=yes
14246else case e in #(
14247  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14248esac
14249fi
14250rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14251esac
14252fi
14253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14254printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14255	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14256	CFLAGS="$xorg_testset_save_CFLAGS"
14257fi
14258
14259found="no"
14260
14261	if test $found = "no" ; then
14262		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14263			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14264		fi
14265
14266		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14267			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14268		fi
14269
14270		CFLAGS="$CFLAGS -Wstrict-prototypes"
14271
14272		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
14273printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
14274		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
14275		if eval test \${$cacheid+y}
14276then :
14277  printf %s "(cached) " >&6
14278else case e in #(
14279  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14280/* end confdefs.h.  */
14281int i;
14282int
14283main (void)
14284{
14285
14286  ;
14287  return 0;
14288}
14289_ACEOF
14290if ac_fn_c_try_link "$LINENO"
14291then :
14292  eval $cacheid=yes
14293else case e in #(
14294  e) eval $cacheid=no ;;
14295esac
14296fi
14297rm -f core conftest.err conftest.$ac_objext conftest.beam \
14298    conftest$ac_exeext conftest.$ac_ext ;;
14299esac
14300fi
14301
14302
14303		CFLAGS="$xorg_testset_save_CFLAGS"
14304
14305		eval supported=\$$cacheid
14306		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14307printf "%s\n" "$supported" >&6; }
14308		if test "$supported" = "yes" ; then
14309			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
14310			found="yes"
14311		fi
14312	fi
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328xorg_testset_save_CFLAGS="$CFLAGS"
14329
14330if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14331	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14332	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14333printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14334if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14335then :
14336  printf %s "(cached) " >&6
14337else case e in #(
14338  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14339/* end confdefs.h.  */
14340int i;
14341_ACEOF
14342if ac_fn_c_try_compile "$LINENO"
14343then :
14344  xorg_cv_cc_flag_unknown_warning_option=yes
14345else case e in #(
14346  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14347esac
14348fi
14349rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14350esac
14351fi
14352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14353printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14354	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14355	CFLAGS="$xorg_testset_save_CFLAGS"
14356fi
14357
14358if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14359	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14360		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14361	fi
14362	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14363	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14364printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14365if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14366then :
14367  printf %s "(cached) " >&6
14368else case e in #(
14369  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14370/* end confdefs.h.  */
14371int i;
14372_ACEOF
14373if ac_fn_c_try_compile "$LINENO"
14374then :
14375  xorg_cv_cc_flag_unused_command_line_argument=yes
14376else case e in #(
14377  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14378esac
14379fi
14380rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14381esac
14382fi
14383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14384printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14385	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14386	CFLAGS="$xorg_testset_save_CFLAGS"
14387fi
14388
14389found="no"
14390
14391	if test $found = "no" ; then
14392		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14393			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14394		fi
14395
14396		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14397			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14398		fi
14399
14400		CFLAGS="$CFLAGS -Wmissing-prototypes"
14401
14402		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
14403printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
14404		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
14405		if eval test \${$cacheid+y}
14406then :
14407  printf %s "(cached) " >&6
14408else case e in #(
14409  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14410/* end confdefs.h.  */
14411int i;
14412int
14413main (void)
14414{
14415
14416  ;
14417  return 0;
14418}
14419_ACEOF
14420if ac_fn_c_try_link "$LINENO"
14421then :
14422  eval $cacheid=yes
14423else case e in #(
14424  e) eval $cacheid=no ;;
14425esac
14426fi
14427rm -f core conftest.err conftest.$ac_objext conftest.beam \
14428    conftest$ac_exeext conftest.$ac_ext ;;
14429esac
14430fi
14431
14432
14433		CFLAGS="$xorg_testset_save_CFLAGS"
14434
14435		eval supported=\$$cacheid
14436		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14437printf "%s\n" "$supported" >&6; }
14438		if test "$supported" = "yes" ; then
14439			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14440			found="yes"
14441		fi
14442	fi
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458xorg_testset_save_CFLAGS="$CFLAGS"
14459
14460if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14461	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14462	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14463printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14464if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14465then :
14466  printf %s "(cached) " >&6
14467else case e in #(
14468  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14469/* end confdefs.h.  */
14470int i;
14471_ACEOF
14472if ac_fn_c_try_compile "$LINENO"
14473then :
14474  xorg_cv_cc_flag_unknown_warning_option=yes
14475else case e in #(
14476  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14477esac
14478fi
14479rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14480esac
14481fi
14482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14483printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14484	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14485	CFLAGS="$xorg_testset_save_CFLAGS"
14486fi
14487
14488if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14489	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14490		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14491	fi
14492	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14493	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14494printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14495if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14496then :
14497  printf %s "(cached) " >&6
14498else case e in #(
14499  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14500/* end confdefs.h.  */
14501int i;
14502_ACEOF
14503if ac_fn_c_try_compile "$LINENO"
14504then :
14505  xorg_cv_cc_flag_unused_command_line_argument=yes
14506else case e in #(
14507  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14508esac
14509fi
14510rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14511esac
14512fi
14513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14514printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14515	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14516	CFLAGS="$xorg_testset_save_CFLAGS"
14517fi
14518
14519found="no"
14520
14521	if test $found = "no" ; then
14522		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14523			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14524		fi
14525
14526		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14527			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14528		fi
14529
14530		CFLAGS="$CFLAGS -Wnested-externs"
14531
14532		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14533printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14534		cacheid=xorg_cv_cc_flag__Wnested_externs
14535		if eval test \${$cacheid+y}
14536then :
14537  printf %s "(cached) " >&6
14538else case e in #(
14539  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14540/* end confdefs.h.  */
14541int i;
14542int
14543main (void)
14544{
14545
14546  ;
14547  return 0;
14548}
14549_ACEOF
14550if ac_fn_c_try_link "$LINENO"
14551then :
14552  eval $cacheid=yes
14553else case e in #(
14554  e) eval $cacheid=no ;;
14555esac
14556fi
14557rm -f core conftest.err conftest.$ac_objext conftest.beam \
14558    conftest$ac_exeext conftest.$ac_ext ;;
14559esac
14560fi
14561
14562
14563		CFLAGS="$xorg_testset_save_CFLAGS"
14564
14565		eval supported=\$$cacheid
14566		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14567printf "%s\n" "$supported" >&6; }
14568		if test "$supported" = "yes" ; then
14569			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14570			found="yes"
14571		fi
14572	fi
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588xorg_testset_save_CFLAGS="$CFLAGS"
14589
14590if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14591	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14592	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14593printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14594if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14595then :
14596  printf %s "(cached) " >&6
14597else case e in #(
14598  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14599/* end confdefs.h.  */
14600int i;
14601_ACEOF
14602if ac_fn_c_try_compile "$LINENO"
14603then :
14604  xorg_cv_cc_flag_unknown_warning_option=yes
14605else case e in #(
14606  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14607esac
14608fi
14609rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14610esac
14611fi
14612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14613printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14614	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14615	CFLAGS="$xorg_testset_save_CFLAGS"
14616fi
14617
14618if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14619	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14620		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14621	fi
14622	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14623	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14624printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14625if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14626then :
14627  printf %s "(cached) " >&6
14628else case e in #(
14629  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14630/* end confdefs.h.  */
14631int i;
14632_ACEOF
14633if ac_fn_c_try_compile "$LINENO"
14634then :
14635  xorg_cv_cc_flag_unused_command_line_argument=yes
14636else case e in #(
14637  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14638esac
14639fi
14640rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14641esac
14642fi
14643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14644printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14645	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14646	CFLAGS="$xorg_testset_save_CFLAGS"
14647fi
14648
14649found="no"
14650
14651	if test $found = "no" ; then
14652		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14653			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14654		fi
14655
14656		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14657			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14658		fi
14659
14660		CFLAGS="$CFLAGS -Wbad-function-cast"
14661
14662		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14663printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14664		cacheid=xorg_cv_cc_flag__Wbad_function_cast
14665		if eval test \${$cacheid+y}
14666then :
14667  printf %s "(cached) " >&6
14668else case e in #(
14669  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14670/* end confdefs.h.  */
14671int i;
14672int
14673main (void)
14674{
14675
14676  ;
14677  return 0;
14678}
14679_ACEOF
14680if ac_fn_c_try_link "$LINENO"
14681then :
14682  eval $cacheid=yes
14683else case e in #(
14684  e) eval $cacheid=no ;;
14685esac
14686fi
14687rm -f core conftest.err conftest.$ac_objext conftest.beam \
14688    conftest$ac_exeext conftest.$ac_ext ;;
14689esac
14690fi
14691
14692
14693		CFLAGS="$xorg_testset_save_CFLAGS"
14694
14695		eval supported=\$$cacheid
14696		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14697printf "%s\n" "$supported" >&6; }
14698		if test "$supported" = "yes" ; then
14699			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14700			found="yes"
14701		fi
14702	fi
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718xorg_testset_save_CFLAGS="$CFLAGS"
14719
14720if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14721	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14722	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14723printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14724if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14725then :
14726  printf %s "(cached) " >&6
14727else case e in #(
14728  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14729/* end confdefs.h.  */
14730int i;
14731_ACEOF
14732if ac_fn_c_try_compile "$LINENO"
14733then :
14734  xorg_cv_cc_flag_unknown_warning_option=yes
14735else case e in #(
14736  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14737esac
14738fi
14739rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14740esac
14741fi
14742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14743printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14744	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14745	CFLAGS="$xorg_testset_save_CFLAGS"
14746fi
14747
14748if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14749	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14750		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14751	fi
14752	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14753	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14754printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14755if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14756then :
14757  printf %s "(cached) " >&6
14758else case e in #(
14759  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14760/* end confdefs.h.  */
14761int i;
14762_ACEOF
14763if ac_fn_c_try_compile "$LINENO"
14764then :
14765  xorg_cv_cc_flag_unused_command_line_argument=yes
14766else case e in #(
14767  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14768esac
14769fi
14770rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14771esac
14772fi
14773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14774printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14775	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14776	CFLAGS="$xorg_testset_save_CFLAGS"
14777fi
14778
14779found="no"
14780
14781	if test $found = "no" ; then
14782		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14783			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14784		fi
14785
14786		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14787			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14788		fi
14789
14790		CFLAGS="$CFLAGS -Wold-style-definition"
14791
14792		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14793printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14794		cacheid=xorg_cv_cc_flag__Wold_style_definition
14795		if eval test \${$cacheid+y}
14796then :
14797  printf %s "(cached) " >&6
14798else case e in #(
14799  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14800/* end confdefs.h.  */
14801int i;
14802int
14803main (void)
14804{
14805
14806  ;
14807  return 0;
14808}
14809_ACEOF
14810if ac_fn_c_try_link "$LINENO"
14811then :
14812  eval $cacheid=yes
14813else case e in #(
14814  e) eval $cacheid=no ;;
14815esac
14816fi
14817rm -f core conftest.err conftest.$ac_objext conftest.beam \
14818    conftest$ac_exeext conftest.$ac_ext ;;
14819esac
14820fi
14821
14822
14823		CFLAGS="$xorg_testset_save_CFLAGS"
14824
14825		eval supported=\$$cacheid
14826		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14827printf "%s\n" "$supported" >&6; }
14828		if test "$supported" = "yes" ; then
14829			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14830			found="yes"
14831		fi
14832	fi
14833
14834	if test $found = "no" ; then
14835		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14836			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14837		fi
14838
14839		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14840			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14841		fi
14842
14843		CFLAGS="$CFLAGS -fd"
14844
14845		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14846printf %s "checking if $CC supports -fd... " >&6; }
14847		cacheid=xorg_cv_cc_flag__fd
14848		if eval test \${$cacheid+y}
14849then :
14850  printf %s "(cached) " >&6
14851else case e in #(
14852  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14853/* end confdefs.h.  */
14854int i;
14855int
14856main (void)
14857{
14858
14859  ;
14860  return 0;
14861}
14862_ACEOF
14863if ac_fn_c_try_link "$LINENO"
14864then :
14865  eval $cacheid=yes
14866else case e in #(
14867  e) eval $cacheid=no ;;
14868esac
14869fi
14870rm -f core conftest.err conftest.$ac_objext conftest.beam \
14871    conftest$ac_exeext conftest.$ac_ext ;;
14872esac
14873fi
14874
14875
14876		CFLAGS="$xorg_testset_save_CFLAGS"
14877
14878		eval supported=\$$cacheid
14879		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14880printf "%s\n" "$supported" >&6; }
14881		if test "$supported" = "yes" ; then
14882			BASE_CFLAGS="$BASE_CFLAGS -fd"
14883			found="yes"
14884		fi
14885	fi
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901xorg_testset_save_CFLAGS="$CFLAGS"
14902
14903if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14904	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14905	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14906printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14907if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14908then :
14909  printf %s "(cached) " >&6
14910else case e in #(
14911  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14912/* end confdefs.h.  */
14913int i;
14914_ACEOF
14915if ac_fn_c_try_compile "$LINENO"
14916then :
14917  xorg_cv_cc_flag_unknown_warning_option=yes
14918else case e in #(
14919  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14920esac
14921fi
14922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14923esac
14924fi
14925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14926printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14927	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14928	CFLAGS="$xorg_testset_save_CFLAGS"
14929fi
14930
14931if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14932	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14933		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14934	fi
14935	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14936	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14937printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14938if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14939then :
14940  printf %s "(cached) " >&6
14941else case e in #(
14942  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14943/* end confdefs.h.  */
14944int i;
14945_ACEOF
14946if ac_fn_c_try_compile "$LINENO"
14947then :
14948  xorg_cv_cc_flag_unused_command_line_argument=yes
14949else case e in #(
14950  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14951esac
14952fi
14953rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14954esac
14955fi
14956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14957printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14958	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14959	CFLAGS="$xorg_testset_save_CFLAGS"
14960fi
14961
14962found="no"
14963
14964	if test $found = "no" ; then
14965		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14966			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14967		fi
14968
14969		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14970			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14971		fi
14972
14973		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14974
14975		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14976printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14977		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14978		if eval test \${$cacheid+y}
14979then :
14980  printf %s "(cached) " >&6
14981else case e in #(
14982  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14983/* end confdefs.h.  */
14984int i;
14985int
14986main (void)
14987{
14988
14989  ;
14990  return 0;
14991}
14992_ACEOF
14993if ac_fn_c_try_link "$LINENO"
14994then :
14995  eval $cacheid=yes
14996else case e in #(
14997  e) eval $cacheid=no ;;
14998esac
14999fi
15000rm -f core conftest.err conftest.$ac_objext conftest.beam \
15001    conftest$ac_exeext conftest.$ac_ext ;;
15002esac
15003fi
15004
15005
15006		CFLAGS="$xorg_testset_save_CFLAGS"
15007
15008		eval supported=\$$cacheid
15009		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15010printf "%s\n" "$supported" >&6; }
15011		if test "$supported" = "yes" ; then
15012			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
15013			found="yes"
15014		fi
15015	fi
15016
15017
15018
15019
15020
15021# This chunk adds additional warnings that could catch undesired effects.
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035xorg_testset_save_CFLAGS="$CFLAGS"
15036
15037if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15038	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15039	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15040printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15041if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15042then :
15043  printf %s "(cached) " >&6
15044else case e in #(
15045  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15046/* end confdefs.h.  */
15047int i;
15048_ACEOF
15049if ac_fn_c_try_compile "$LINENO"
15050then :
15051  xorg_cv_cc_flag_unknown_warning_option=yes
15052else case e in #(
15053  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15054esac
15055fi
15056rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15057esac
15058fi
15059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15060printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15061	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15062	CFLAGS="$xorg_testset_save_CFLAGS"
15063fi
15064
15065if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15066	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15067		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15068	fi
15069	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15070	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15071printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15072if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15073then :
15074  printf %s "(cached) " >&6
15075else case e in #(
15076  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15077/* end confdefs.h.  */
15078int i;
15079_ACEOF
15080if ac_fn_c_try_compile "$LINENO"
15081then :
15082  xorg_cv_cc_flag_unused_command_line_argument=yes
15083else case e in #(
15084  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15085esac
15086fi
15087rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15088esac
15089fi
15090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15091printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15092	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15093	CFLAGS="$xorg_testset_save_CFLAGS"
15094fi
15095
15096found="no"
15097
15098	if test $found = "no" ; then
15099		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15100			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15101		fi
15102
15103		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15104			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15105		fi
15106
15107		CFLAGS="$CFLAGS -Wunused"
15108
15109		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
15110printf %s "checking if $CC supports -Wunused... " >&6; }
15111		cacheid=xorg_cv_cc_flag__Wunused
15112		if eval test \${$cacheid+y}
15113then :
15114  printf %s "(cached) " >&6
15115else case e in #(
15116  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15117/* end confdefs.h.  */
15118int i;
15119int
15120main (void)
15121{
15122
15123  ;
15124  return 0;
15125}
15126_ACEOF
15127if ac_fn_c_try_link "$LINENO"
15128then :
15129  eval $cacheid=yes
15130else case e in #(
15131  e) eval $cacheid=no ;;
15132esac
15133fi
15134rm -f core conftest.err conftest.$ac_objext conftest.beam \
15135    conftest$ac_exeext conftest.$ac_ext ;;
15136esac
15137fi
15138
15139
15140		CFLAGS="$xorg_testset_save_CFLAGS"
15141
15142		eval supported=\$$cacheid
15143		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15144printf "%s\n" "$supported" >&6; }
15145		if test "$supported" = "yes" ; then
15146			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
15147			found="yes"
15148		fi
15149	fi
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165xorg_testset_save_CFLAGS="$CFLAGS"
15166
15167if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15168	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15169	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15170printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15171if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15172then :
15173  printf %s "(cached) " >&6
15174else case e in #(
15175  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15176/* end confdefs.h.  */
15177int i;
15178_ACEOF
15179if ac_fn_c_try_compile "$LINENO"
15180then :
15181  xorg_cv_cc_flag_unknown_warning_option=yes
15182else case e in #(
15183  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15184esac
15185fi
15186rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15187esac
15188fi
15189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15190printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15191	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15192	CFLAGS="$xorg_testset_save_CFLAGS"
15193fi
15194
15195if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15196	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15197		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15198	fi
15199	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15200	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15201printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15202if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15203then :
15204  printf %s "(cached) " >&6
15205else case e in #(
15206  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15207/* end confdefs.h.  */
15208int i;
15209_ACEOF
15210if ac_fn_c_try_compile "$LINENO"
15211then :
15212  xorg_cv_cc_flag_unused_command_line_argument=yes
15213else case e in #(
15214  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15215esac
15216fi
15217rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15218esac
15219fi
15220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15221printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15222	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15223	CFLAGS="$xorg_testset_save_CFLAGS"
15224fi
15225
15226found="no"
15227
15228	if test $found = "no" ; then
15229		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15230			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15231		fi
15232
15233		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15234			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15235		fi
15236
15237		CFLAGS="$CFLAGS -Wuninitialized"
15238
15239		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
15240printf %s "checking if $CC supports -Wuninitialized... " >&6; }
15241		cacheid=xorg_cv_cc_flag__Wuninitialized
15242		if eval test \${$cacheid+y}
15243then :
15244  printf %s "(cached) " >&6
15245else case e in #(
15246  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15247/* end confdefs.h.  */
15248int i;
15249int
15250main (void)
15251{
15252
15253  ;
15254  return 0;
15255}
15256_ACEOF
15257if ac_fn_c_try_link "$LINENO"
15258then :
15259  eval $cacheid=yes
15260else case e in #(
15261  e) eval $cacheid=no ;;
15262esac
15263fi
15264rm -f core conftest.err conftest.$ac_objext conftest.beam \
15265    conftest$ac_exeext conftest.$ac_ext ;;
15266esac
15267fi
15268
15269
15270		CFLAGS="$xorg_testset_save_CFLAGS"
15271
15272		eval supported=\$$cacheid
15273		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15274printf "%s\n" "$supported" >&6; }
15275		if test "$supported" = "yes" ; then
15276			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
15277			found="yes"
15278		fi
15279	fi
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295xorg_testset_save_CFLAGS="$CFLAGS"
15296
15297if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15298	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15299	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15300printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15301if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15302then :
15303  printf %s "(cached) " >&6
15304else case e in #(
15305  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15306/* end confdefs.h.  */
15307int i;
15308_ACEOF
15309if ac_fn_c_try_compile "$LINENO"
15310then :
15311  xorg_cv_cc_flag_unknown_warning_option=yes
15312else case e in #(
15313  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15314esac
15315fi
15316rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15317esac
15318fi
15319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15320printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15321	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15322	CFLAGS="$xorg_testset_save_CFLAGS"
15323fi
15324
15325if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15326	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15327		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15328	fi
15329	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15330	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15331printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15332if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15333then :
15334  printf %s "(cached) " >&6
15335else case e in #(
15336  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15337/* end confdefs.h.  */
15338int i;
15339_ACEOF
15340if ac_fn_c_try_compile "$LINENO"
15341then :
15342  xorg_cv_cc_flag_unused_command_line_argument=yes
15343else case e in #(
15344  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15345esac
15346fi
15347rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15348esac
15349fi
15350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15351printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15352	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15353	CFLAGS="$xorg_testset_save_CFLAGS"
15354fi
15355
15356found="no"
15357
15358	if test $found = "no" ; then
15359		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15360			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15361		fi
15362
15363		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15364			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15365		fi
15366
15367		CFLAGS="$CFLAGS -Wshadow"
15368
15369		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
15370printf %s "checking if $CC supports -Wshadow... " >&6; }
15371		cacheid=xorg_cv_cc_flag__Wshadow
15372		if eval test \${$cacheid+y}
15373then :
15374  printf %s "(cached) " >&6
15375else case e in #(
15376  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15377/* end confdefs.h.  */
15378int i;
15379int
15380main (void)
15381{
15382
15383  ;
15384  return 0;
15385}
15386_ACEOF
15387if ac_fn_c_try_link "$LINENO"
15388then :
15389  eval $cacheid=yes
15390else case e in #(
15391  e) eval $cacheid=no ;;
15392esac
15393fi
15394rm -f core conftest.err conftest.$ac_objext conftest.beam \
15395    conftest$ac_exeext conftest.$ac_ext ;;
15396esac
15397fi
15398
15399
15400		CFLAGS="$xorg_testset_save_CFLAGS"
15401
15402		eval supported=\$$cacheid
15403		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15404printf "%s\n" "$supported" >&6; }
15405		if test "$supported" = "yes" ; then
15406			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
15407			found="yes"
15408		fi
15409	fi
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425xorg_testset_save_CFLAGS="$CFLAGS"
15426
15427if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15428	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15429	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15430printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15431if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15432then :
15433  printf %s "(cached) " >&6
15434else case e in #(
15435  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15436/* end confdefs.h.  */
15437int i;
15438_ACEOF
15439if ac_fn_c_try_compile "$LINENO"
15440then :
15441  xorg_cv_cc_flag_unknown_warning_option=yes
15442else case e in #(
15443  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15444esac
15445fi
15446rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15447esac
15448fi
15449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15450printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15451	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15452	CFLAGS="$xorg_testset_save_CFLAGS"
15453fi
15454
15455if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15456	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15457		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15458	fi
15459	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15460	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15461printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15462if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15463then :
15464  printf %s "(cached) " >&6
15465else case e in #(
15466  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15467/* end confdefs.h.  */
15468int i;
15469_ACEOF
15470if ac_fn_c_try_compile "$LINENO"
15471then :
15472  xorg_cv_cc_flag_unused_command_line_argument=yes
15473else case e in #(
15474  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15475esac
15476fi
15477rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15478esac
15479fi
15480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15481printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15482	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15483	CFLAGS="$xorg_testset_save_CFLAGS"
15484fi
15485
15486found="no"
15487
15488	if test $found = "no" ; then
15489		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15490			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15491		fi
15492
15493		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15494			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15495		fi
15496
15497		CFLAGS="$CFLAGS -Wmissing-noreturn"
15498
15499		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
15500printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
15501		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
15502		if eval test \${$cacheid+y}
15503then :
15504  printf %s "(cached) " >&6
15505else case e in #(
15506  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15507/* end confdefs.h.  */
15508int i;
15509int
15510main (void)
15511{
15512
15513  ;
15514  return 0;
15515}
15516_ACEOF
15517if ac_fn_c_try_link "$LINENO"
15518then :
15519  eval $cacheid=yes
15520else case e in #(
15521  e) eval $cacheid=no ;;
15522esac
15523fi
15524rm -f core conftest.err conftest.$ac_objext conftest.beam \
15525    conftest$ac_exeext conftest.$ac_ext ;;
15526esac
15527fi
15528
15529
15530		CFLAGS="$xorg_testset_save_CFLAGS"
15531
15532		eval supported=\$$cacheid
15533		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15534printf "%s\n" "$supported" >&6; }
15535		if test "$supported" = "yes" ; then
15536			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15537			found="yes"
15538		fi
15539	fi
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555xorg_testset_save_CFLAGS="$CFLAGS"
15556
15557if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15558	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15559	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15560printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15561if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15562then :
15563  printf %s "(cached) " >&6
15564else case e in #(
15565  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15566/* end confdefs.h.  */
15567int i;
15568_ACEOF
15569if ac_fn_c_try_compile "$LINENO"
15570then :
15571  xorg_cv_cc_flag_unknown_warning_option=yes
15572else case e in #(
15573  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15574esac
15575fi
15576rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15577esac
15578fi
15579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15580printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15581	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15582	CFLAGS="$xorg_testset_save_CFLAGS"
15583fi
15584
15585if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15586	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15587		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15588	fi
15589	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15590	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15591printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15592if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15593then :
15594  printf %s "(cached) " >&6
15595else case e in #(
15596  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15597/* end confdefs.h.  */
15598int i;
15599_ACEOF
15600if ac_fn_c_try_compile "$LINENO"
15601then :
15602  xorg_cv_cc_flag_unused_command_line_argument=yes
15603else case e in #(
15604  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15605esac
15606fi
15607rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15608esac
15609fi
15610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15611printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15612	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15613	CFLAGS="$xorg_testset_save_CFLAGS"
15614fi
15615
15616found="no"
15617
15618	if test $found = "no" ; then
15619		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15620			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15621		fi
15622
15623		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15624			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15625		fi
15626
15627		CFLAGS="$CFLAGS -Wmissing-format-attribute"
15628
15629		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15630printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15631		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15632		if eval test \${$cacheid+y}
15633then :
15634  printf %s "(cached) " >&6
15635else case e in #(
15636  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15637/* end confdefs.h.  */
15638int i;
15639int
15640main (void)
15641{
15642
15643  ;
15644  return 0;
15645}
15646_ACEOF
15647if ac_fn_c_try_link "$LINENO"
15648then :
15649  eval $cacheid=yes
15650else case e in #(
15651  e) eval $cacheid=no ;;
15652esac
15653fi
15654rm -f core conftest.err conftest.$ac_objext conftest.beam \
15655    conftest$ac_exeext conftest.$ac_ext ;;
15656esac
15657fi
15658
15659
15660		CFLAGS="$xorg_testset_save_CFLAGS"
15661
15662		eval supported=\$$cacheid
15663		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15664printf "%s\n" "$supported" >&6; }
15665		if test "$supported" = "yes" ; then
15666			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15667			found="yes"
15668		fi
15669	fi
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685xorg_testset_save_CFLAGS="$CFLAGS"
15686
15687if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15688	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15689	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15690printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15691if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15692then :
15693  printf %s "(cached) " >&6
15694else case e in #(
15695  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15696/* end confdefs.h.  */
15697int i;
15698_ACEOF
15699if ac_fn_c_try_compile "$LINENO"
15700then :
15701  xorg_cv_cc_flag_unknown_warning_option=yes
15702else case e in #(
15703  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15704esac
15705fi
15706rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15707esac
15708fi
15709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15710printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15711	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15712	CFLAGS="$xorg_testset_save_CFLAGS"
15713fi
15714
15715if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15716	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15717		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15718	fi
15719	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15720	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15721printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15722if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15723then :
15724  printf %s "(cached) " >&6
15725else case e in #(
15726  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15727/* end confdefs.h.  */
15728int i;
15729_ACEOF
15730if ac_fn_c_try_compile "$LINENO"
15731then :
15732  xorg_cv_cc_flag_unused_command_line_argument=yes
15733else case e in #(
15734  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15735esac
15736fi
15737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15738esac
15739fi
15740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15741printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15742	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15743	CFLAGS="$xorg_testset_save_CFLAGS"
15744fi
15745
15746found="no"
15747
15748	if test $found = "no" ; then
15749		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15750			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15751		fi
15752
15753		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15754			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15755		fi
15756
15757		CFLAGS="$CFLAGS -Wredundant-decls"
15758
15759		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15760printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15761		cacheid=xorg_cv_cc_flag__Wredundant_decls
15762		if eval test \${$cacheid+y}
15763then :
15764  printf %s "(cached) " >&6
15765else case e in #(
15766  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15767/* end confdefs.h.  */
15768int i;
15769int
15770main (void)
15771{
15772
15773  ;
15774  return 0;
15775}
15776_ACEOF
15777if ac_fn_c_try_link "$LINENO"
15778then :
15779  eval $cacheid=yes
15780else case e in #(
15781  e) eval $cacheid=no ;;
15782esac
15783fi
15784rm -f core conftest.err conftest.$ac_objext conftest.beam \
15785    conftest$ac_exeext conftest.$ac_ext ;;
15786esac
15787fi
15788
15789
15790		CFLAGS="$xorg_testset_save_CFLAGS"
15791
15792		eval supported=\$$cacheid
15793		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15794printf "%s\n" "$supported" >&6; }
15795		if test "$supported" = "yes" ; then
15796			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15797			found="yes"
15798		fi
15799	fi
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815xorg_testset_save_CFLAGS="$CFLAGS"
15816
15817if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15818	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15819	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15820printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15821if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15822then :
15823  printf %s "(cached) " >&6
15824else case e in #(
15825  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15826/* end confdefs.h.  */
15827int i;
15828_ACEOF
15829if ac_fn_c_try_compile "$LINENO"
15830then :
15831  xorg_cv_cc_flag_unknown_warning_option=yes
15832else case e in #(
15833  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15834esac
15835fi
15836rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15837esac
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 case e in #(
15856  e) 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 case e in #(
15864  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15865esac
15866fi
15867rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15868esac
15869fi
15870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15871printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15872	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15873	CFLAGS="$xorg_testset_save_CFLAGS"
15874fi
15875
15876found="no"
15877
15878	if test $found = "no" ; then
15879		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15880			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15881		fi
15882
15883		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15884			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15885		fi
15886
15887		CFLAGS="$CFLAGS -Wlogical-op"
15888
15889		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15890printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15891		cacheid=xorg_cv_cc_flag__Wlogical_op
15892		if eval test \${$cacheid+y}
15893then :
15894  printf %s "(cached) " >&6
15895else case e in #(
15896  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15897/* end confdefs.h.  */
15898int i;
15899int
15900main (void)
15901{
15902
15903  ;
15904  return 0;
15905}
15906_ACEOF
15907if ac_fn_c_try_link "$LINENO"
15908then :
15909  eval $cacheid=yes
15910else case e in #(
15911  e) eval $cacheid=no ;;
15912esac
15913fi
15914rm -f core conftest.err conftest.$ac_objext conftest.beam \
15915    conftest$ac_exeext conftest.$ac_ext ;;
15916esac
15917fi
15918
15919
15920		CFLAGS="$xorg_testset_save_CFLAGS"
15921
15922		eval supported=\$$cacheid
15923		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15924printf "%s\n" "$supported" >&6; }
15925		if test "$supported" = "yes" ; then
15926			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15927			found="yes"
15928		fi
15929	fi
15930
15931
15932
15933# These are currently disabled because they are noisy.  They will be enabled
15934# in the future once the codebase is sufficiently modernized to silence
15935# them.  For now, I don't want them to drown out the other warnings.
15936# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15937# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15938# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15939
15940# Turn some warnings into errors, so we don't accidentally get successful builds
15941# when there are problems that should be fixed.
15942
15943if test "x$SELECTIVE_WERROR" = "xyes" ; then
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957xorg_testset_save_CFLAGS="$CFLAGS"
15958
15959if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15960	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15961	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15962printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15963if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15964then :
15965  printf %s "(cached) " >&6
15966else case e in #(
15967  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15968/* end confdefs.h.  */
15969int i;
15970_ACEOF
15971if ac_fn_c_try_compile "$LINENO"
15972then :
15973  xorg_cv_cc_flag_unknown_warning_option=yes
15974else case e in #(
15975  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15976esac
15977fi
15978rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15979esac
15980fi
15981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15982printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15983	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15984	CFLAGS="$xorg_testset_save_CFLAGS"
15985fi
15986
15987if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15988	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15989		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15990	fi
15991	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15992	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15993printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15994if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15995then :
15996  printf %s "(cached) " >&6
15997else case e in #(
15998  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15999/* end confdefs.h.  */
16000int i;
16001_ACEOF
16002if ac_fn_c_try_compile "$LINENO"
16003then :
16004  xorg_cv_cc_flag_unused_command_line_argument=yes
16005else case e in #(
16006  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16007esac
16008fi
16009rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16010esac
16011fi
16012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16013printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16014	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16015	CFLAGS="$xorg_testset_save_CFLAGS"
16016fi
16017
16018found="no"
16019
16020	if test $found = "no" ; then
16021		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16022			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16023		fi
16024
16025		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16026			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16027		fi
16028
16029		CFLAGS="$CFLAGS -Werror=implicit"
16030
16031		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
16032printf %s "checking if $CC supports -Werror=implicit... " >&6; }
16033		cacheid=xorg_cv_cc_flag__Werror_implicit
16034		if eval test \${$cacheid+y}
16035then :
16036  printf %s "(cached) " >&6
16037else case e in #(
16038  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16039/* end confdefs.h.  */
16040int i;
16041int
16042main (void)
16043{
16044
16045  ;
16046  return 0;
16047}
16048_ACEOF
16049if ac_fn_c_try_link "$LINENO"
16050then :
16051  eval $cacheid=yes
16052else case e in #(
16053  e) eval $cacheid=no ;;
16054esac
16055fi
16056rm -f core conftest.err conftest.$ac_objext conftest.beam \
16057    conftest$ac_exeext conftest.$ac_ext ;;
16058esac
16059fi
16060
16061
16062		CFLAGS="$xorg_testset_save_CFLAGS"
16063
16064		eval supported=\$$cacheid
16065		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16066printf "%s\n" "$supported" >&6; }
16067		if test "$supported" = "yes" ; then
16068			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
16069			found="yes"
16070		fi
16071	fi
16072
16073	if test $found = "no" ; then
16074		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16075			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16076		fi
16077
16078		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16079			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16080		fi
16081
16082		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16083
16084		{ 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
16085printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
16086		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
16087		if eval test \${$cacheid+y}
16088then :
16089  printf %s "(cached) " >&6
16090else case e in #(
16091  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16092/* end confdefs.h.  */
16093int i;
16094int
16095main (void)
16096{
16097
16098  ;
16099  return 0;
16100}
16101_ACEOF
16102if ac_fn_c_try_link "$LINENO"
16103then :
16104  eval $cacheid=yes
16105else case e in #(
16106  e) eval $cacheid=no ;;
16107esac
16108fi
16109rm -f core conftest.err conftest.$ac_objext conftest.beam \
16110    conftest$ac_exeext conftest.$ac_ext ;;
16111esac
16112fi
16113
16114
16115		CFLAGS="$xorg_testset_save_CFLAGS"
16116
16117		eval supported=\$$cacheid
16118		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16119printf "%s\n" "$supported" >&6; }
16120		if test "$supported" = "yes" ; then
16121			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16122			found="yes"
16123		fi
16124	fi
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140xorg_testset_save_CFLAGS="$CFLAGS"
16141
16142if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16143	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16144	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16145printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16146if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16147then :
16148  printf %s "(cached) " >&6
16149else case e in #(
16150  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16151/* end confdefs.h.  */
16152int i;
16153_ACEOF
16154if ac_fn_c_try_compile "$LINENO"
16155then :
16156  xorg_cv_cc_flag_unknown_warning_option=yes
16157else case e in #(
16158  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16159esac
16160fi
16161rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16162esac
16163fi
16164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16165printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16166	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16167	CFLAGS="$xorg_testset_save_CFLAGS"
16168fi
16169
16170if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16171	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16172		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16173	fi
16174	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16175	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16176printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16177if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16178then :
16179  printf %s "(cached) " >&6
16180else case e in #(
16181  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16182/* end confdefs.h.  */
16183int i;
16184_ACEOF
16185if ac_fn_c_try_compile "$LINENO"
16186then :
16187  xorg_cv_cc_flag_unused_command_line_argument=yes
16188else case e in #(
16189  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16190esac
16191fi
16192rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16193esac
16194fi
16195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16196printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16197	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16198	CFLAGS="$xorg_testset_save_CFLAGS"
16199fi
16200
16201found="no"
16202
16203	if test $found = "no" ; then
16204		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16205			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16206		fi
16207
16208		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16209			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16210		fi
16211
16212		CFLAGS="$CFLAGS -Werror=nonnull"
16213
16214		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
16215printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
16216		cacheid=xorg_cv_cc_flag__Werror_nonnull
16217		if eval test \${$cacheid+y}
16218then :
16219  printf %s "(cached) " >&6
16220else case e in #(
16221  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16222/* end confdefs.h.  */
16223int i;
16224int
16225main (void)
16226{
16227
16228  ;
16229  return 0;
16230}
16231_ACEOF
16232if ac_fn_c_try_link "$LINENO"
16233then :
16234  eval $cacheid=yes
16235else case e in #(
16236  e) eval $cacheid=no ;;
16237esac
16238fi
16239rm -f core conftest.err conftest.$ac_objext conftest.beam \
16240    conftest$ac_exeext conftest.$ac_ext ;;
16241esac
16242fi
16243
16244
16245		CFLAGS="$xorg_testset_save_CFLAGS"
16246
16247		eval supported=\$$cacheid
16248		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16249printf "%s\n" "$supported" >&6; }
16250		if test "$supported" = "yes" ; then
16251			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
16252			found="yes"
16253		fi
16254	fi
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270xorg_testset_save_CFLAGS="$CFLAGS"
16271
16272if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16273	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16274	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16275printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16276if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16277then :
16278  printf %s "(cached) " >&6
16279else case e in #(
16280  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16281/* end confdefs.h.  */
16282int i;
16283_ACEOF
16284if ac_fn_c_try_compile "$LINENO"
16285then :
16286  xorg_cv_cc_flag_unknown_warning_option=yes
16287else case e in #(
16288  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16289esac
16290fi
16291rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16292esac
16293fi
16294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16295printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16296	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16297	CFLAGS="$xorg_testset_save_CFLAGS"
16298fi
16299
16300if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16301	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16302		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16303	fi
16304	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16305	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16306printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16307if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16308then :
16309  printf %s "(cached) " >&6
16310else case e in #(
16311  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16312/* end confdefs.h.  */
16313int i;
16314_ACEOF
16315if ac_fn_c_try_compile "$LINENO"
16316then :
16317  xorg_cv_cc_flag_unused_command_line_argument=yes
16318else case e in #(
16319  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16320esac
16321fi
16322rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16323esac
16324fi
16325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16326printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16327	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16328	CFLAGS="$xorg_testset_save_CFLAGS"
16329fi
16330
16331found="no"
16332
16333	if test $found = "no" ; then
16334		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16335			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16336		fi
16337
16338		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16339			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16340		fi
16341
16342		CFLAGS="$CFLAGS -Werror=init-self"
16343
16344		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
16345printf %s "checking if $CC supports -Werror=init-self... " >&6; }
16346		cacheid=xorg_cv_cc_flag__Werror_init_self
16347		if eval test \${$cacheid+y}
16348then :
16349  printf %s "(cached) " >&6
16350else case e in #(
16351  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16352/* end confdefs.h.  */
16353int i;
16354int
16355main (void)
16356{
16357
16358  ;
16359  return 0;
16360}
16361_ACEOF
16362if ac_fn_c_try_link "$LINENO"
16363then :
16364  eval $cacheid=yes
16365else case e in #(
16366  e) eval $cacheid=no ;;
16367esac
16368fi
16369rm -f core conftest.err conftest.$ac_objext conftest.beam \
16370    conftest$ac_exeext conftest.$ac_ext ;;
16371esac
16372fi
16373
16374
16375		CFLAGS="$xorg_testset_save_CFLAGS"
16376
16377		eval supported=\$$cacheid
16378		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16379printf "%s\n" "$supported" >&6; }
16380		if test "$supported" = "yes" ; then
16381			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
16382			found="yes"
16383		fi
16384	fi
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400xorg_testset_save_CFLAGS="$CFLAGS"
16401
16402if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16403	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16404	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16405printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16406if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16407then :
16408  printf %s "(cached) " >&6
16409else case e in #(
16410  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16411/* end confdefs.h.  */
16412int i;
16413_ACEOF
16414if ac_fn_c_try_compile "$LINENO"
16415then :
16416  xorg_cv_cc_flag_unknown_warning_option=yes
16417else case e in #(
16418  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16419esac
16420fi
16421rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16422esac
16423fi
16424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16425printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16426	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16427	CFLAGS="$xorg_testset_save_CFLAGS"
16428fi
16429
16430if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16431	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16432		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16433	fi
16434	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16435	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16436printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16437if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16438then :
16439  printf %s "(cached) " >&6
16440else case e in #(
16441  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16442/* end confdefs.h.  */
16443int i;
16444_ACEOF
16445if ac_fn_c_try_compile "$LINENO"
16446then :
16447  xorg_cv_cc_flag_unused_command_line_argument=yes
16448else case e in #(
16449  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16450esac
16451fi
16452rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16453esac
16454fi
16455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16456printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16457	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16458	CFLAGS="$xorg_testset_save_CFLAGS"
16459fi
16460
16461found="no"
16462
16463	if test $found = "no" ; then
16464		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16465			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16466		fi
16467
16468		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16469			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16470		fi
16471
16472		CFLAGS="$CFLAGS -Werror=main"
16473
16474		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
16475printf %s "checking if $CC supports -Werror=main... " >&6; }
16476		cacheid=xorg_cv_cc_flag__Werror_main
16477		if eval test \${$cacheid+y}
16478then :
16479  printf %s "(cached) " >&6
16480else case e in #(
16481  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16482/* end confdefs.h.  */
16483int i;
16484int
16485main (void)
16486{
16487
16488  ;
16489  return 0;
16490}
16491_ACEOF
16492if ac_fn_c_try_link "$LINENO"
16493then :
16494  eval $cacheid=yes
16495else case e in #(
16496  e) eval $cacheid=no ;;
16497esac
16498fi
16499rm -f core conftest.err conftest.$ac_objext conftest.beam \
16500    conftest$ac_exeext conftest.$ac_ext ;;
16501esac
16502fi
16503
16504
16505		CFLAGS="$xorg_testset_save_CFLAGS"
16506
16507		eval supported=\$$cacheid
16508		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16509printf "%s\n" "$supported" >&6; }
16510		if test "$supported" = "yes" ; then
16511			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
16512			found="yes"
16513		fi
16514	fi
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530xorg_testset_save_CFLAGS="$CFLAGS"
16531
16532if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16533	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16534	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16535printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16536if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16537then :
16538  printf %s "(cached) " >&6
16539else case e in #(
16540  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16541/* end confdefs.h.  */
16542int i;
16543_ACEOF
16544if ac_fn_c_try_compile "$LINENO"
16545then :
16546  xorg_cv_cc_flag_unknown_warning_option=yes
16547else case e in #(
16548  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16549esac
16550fi
16551rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16552esac
16553fi
16554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16555printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16556	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16557	CFLAGS="$xorg_testset_save_CFLAGS"
16558fi
16559
16560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16561	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16562		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16563	fi
16564	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16565	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16566printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16567if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16568then :
16569  printf %s "(cached) " >&6
16570else case e in #(
16571  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16572/* end confdefs.h.  */
16573int i;
16574_ACEOF
16575if ac_fn_c_try_compile "$LINENO"
16576then :
16577  xorg_cv_cc_flag_unused_command_line_argument=yes
16578else case e in #(
16579  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16580esac
16581fi
16582rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16583esac
16584fi
16585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16586printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16587	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16588	CFLAGS="$xorg_testset_save_CFLAGS"
16589fi
16590
16591found="no"
16592
16593	if test $found = "no" ; then
16594		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16595			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16596		fi
16597
16598		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16599			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16600		fi
16601
16602		CFLAGS="$CFLAGS -Werror=missing-braces"
16603
16604		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16605printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16606		cacheid=xorg_cv_cc_flag__Werror_missing_braces
16607		if eval test \${$cacheid+y}
16608then :
16609  printf %s "(cached) " >&6
16610else case e in #(
16611  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16612/* end confdefs.h.  */
16613int i;
16614int
16615main (void)
16616{
16617
16618  ;
16619  return 0;
16620}
16621_ACEOF
16622if ac_fn_c_try_link "$LINENO"
16623then :
16624  eval $cacheid=yes
16625else case e in #(
16626  e) eval $cacheid=no ;;
16627esac
16628fi
16629rm -f core conftest.err conftest.$ac_objext conftest.beam \
16630    conftest$ac_exeext conftest.$ac_ext ;;
16631esac
16632fi
16633
16634
16635		CFLAGS="$xorg_testset_save_CFLAGS"
16636
16637		eval supported=\$$cacheid
16638		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16639printf "%s\n" "$supported" >&6; }
16640		if test "$supported" = "yes" ; then
16641			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16642			found="yes"
16643		fi
16644	fi
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660xorg_testset_save_CFLAGS="$CFLAGS"
16661
16662if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16663	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16664	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16665printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16666if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16667then :
16668  printf %s "(cached) " >&6
16669else case e in #(
16670  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16671/* end confdefs.h.  */
16672int i;
16673_ACEOF
16674if ac_fn_c_try_compile "$LINENO"
16675then :
16676  xorg_cv_cc_flag_unknown_warning_option=yes
16677else case e in #(
16678  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16679esac
16680fi
16681rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16682esac
16683fi
16684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16685printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16686	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16687	CFLAGS="$xorg_testset_save_CFLAGS"
16688fi
16689
16690if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16691	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16692		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16693	fi
16694	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16695	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16696printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16697if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16698then :
16699  printf %s "(cached) " >&6
16700else case e in #(
16701  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16702/* end confdefs.h.  */
16703int i;
16704_ACEOF
16705if ac_fn_c_try_compile "$LINENO"
16706then :
16707  xorg_cv_cc_flag_unused_command_line_argument=yes
16708else case e in #(
16709  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16710esac
16711fi
16712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16713esac
16714fi
16715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16716printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16717	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16718	CFLAGS="$xorg_testset_save_CFLAGS"
16719fi
16720
16721found="no"
16722
16723	if test $found = "no" ; then
16724		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16725			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16726		fi
16727
16728		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16729			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16730		fi
16731
16732		CFLAGS="$CFLAGS -Werror=sequence-point"
16733
16734		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16735printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16736		cacheid=xorg_cv_cc_flag__Werror_sequence_point
16737		if eval test \${$cacheid+y}
16738then :
16739  printf %s "(cached) " >&6
16740else case e in #(
16741  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16742/* end confdefs.h.  */
16743int i;
16744int
16745main (void)
16746{
16747
16748  ;
16749  return 0;
16750}
16751_ACEOF
16752if ac_fn_c_try_link "$LINENO"
16753then :
16754  eval $cacheid=yes
16755else case e in #(
16756  e) eval $cacheid=no ;;
16757esac
16758fi
16759rm -f core conftest.err conftest.$ac_objext conftest.beam \
16760    conftest$ac_exeext conftest.$ac_ext ;;
16761esac
16762fi
16763
16764
16765		CFLAGS="$xorg_testset_save_CFLAGS"
16766
16767		eval supported=\$$cacheid
16768		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16769printf "%s\n" "$supported" >&6; }
16770		if test "$supported" = "yes" ; then
16771			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16772			found="yes"
16773		fi
16774	fi
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790xorg_testset_save_CFLAGS="$CFLAGS"
16791
16792if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16793	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16794	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16795printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16796if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16797then :
16798  printf %s "(cached) " >&6
16799else case e in #(
16800  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16801/* end confdefs.h.  */
16802int i;
16803_ACEOF
16804if ac_fn_c_try_compile "$LINENO"
16805then :
16806  xorg_cv_cc_flag_unknown_warning_option=yes
16807else case e in #(
16808  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16809esac
16810fi
16811rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16812esac
16813fi
16814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16815printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16816	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16817	CFLAGS="$xorg_testset_save_CFLAGS"
16818fi
16819
16820if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16821	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16822		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16823	fi
16824	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16825	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16826printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16827if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16828then :
16829  printf %s "(cached) " >&6
16830else case e in #(
16831  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16832/* end confdefs.h.  */
16833int i;
16834_ACEOF
16835if ac_fn_c_try_compile "$LINENO"
16836then :
16837  xorg_cv_cc_flag_unused_command_line_argument=yes
16838else case e in #(
16839  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16840esac
16841fi
16842rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16843esac
16844fi
16845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16846printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16847	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16848	CFLAGS="$xorg_testset_save_CFLAGS"
16849fi
16850
16851found="no"
16852
16853	if test $found = "no" ; then
16854		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16855			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16856		fi
16857
16858		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16859			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16860		fi
16861
16862		CFLAGS="$CFLAGS -Werror=return-type"
16863
16864		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16865printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16866		cacheid=xorg_cv_cc_flag__Werror_return_type
16867		if eval test \${$cacheid+y}
16868then :
16869  printf %s "(cached) " >&6
16870else case e in #(
16871  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16872/* end confdefs.h.  */
16873int i;
16874int
16875main (void)
16876{
16877
16878  ;
16879  return 0;
16880}
16881_ACEOF
16882if ac_fn_c_try_link "$LINENO"
16883then :
16884  eval $cacheid=yes
16885else case e in #(
16886  e) eval $cacheid=no ;;
16887esac
16888fi
16889rm -f core conftest.err conftest.$ac_objext conftest.beam \
16890    conftest$ac_exeext conftest.$ac_ext ;;
16891esac
16892fi
16893
16894
16895		CFLAGS="$xorg_testset_save_CFLAGS"
16896
16897		eval supported=\$$cacheid
16898		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16899printf "%s\n" "$supported" >&6; }
16900		if test "$supported" = "yes" ; then
16901			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16902			found="yes"
16903		fi
16904	fi
16905
16906	if test $found = "no" ; then
16907		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16908			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16909		fi
16910
16911		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16912			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16913		fi
16914
16915		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16916
16917		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16918printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16919		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16920		if eval test \${$cacheid+y}
16921then :
16922  printf %s "(cached) " >&6
16923else case e in #(
16924  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16925/* end confdefs.h.  */
16926int i;
16927int
16928main (void)
16929{
16930
16931  ;
16932  return 0;
16933}
16934_ACEOF
16935if ac_fn_c_try_link "$LINENO"
16936then :
16937  eval $cacheid=yes
16938else case e in #(
16939  e) eval $cacheid=no ;;
16940esac
16941fi
16942rm -f core conftest.err conftest.$ac_objext conftest.beam \
16943    conftest$ac_exeext conftest.$ac_ext ;;
16944esac
16945fi
16946
16947
16948		CFLAGS="$xorg_testset_save_CFLAGS"
16949
16950		eval supported=\$$cacheid
16951		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16952printf "%s\n" "$supported" >&6; }
16953		if test "$supported" = "yes" ; then
16954			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16955			found="yes"
16956		fi
16957	fi
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973xorg_testset_save_CFLAGS="$CFLAGS"
16974
16975if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16976	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16977	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16978printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16979if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16980then :
16981  printf %s "(cached) " >&6
16982else case e in #(
16983  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16984/* end confdefs.h.  */
16985int i;
16986_ACEOF
16987if ac_fn_c_try_compile "$LINENO"
16988then :
16989  xorg_cv_cc_flag_unknown_warning_option=yes
16990else case e in #(
16991  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16992esac
16993fi
16994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16995esac
16996fi
16997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16998printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16999	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17000	CFLAGS="$xorg_testset_save_CFLAGS"
17001fi
17002
17003if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17004	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17005		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17006	fi
17007	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17008	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17009printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17010if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17011then :
17012  printf %s "(cached) " >&6
17013else case e in #(
17014  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17015/* end confdefs.h.  */
17016int i;
17017_ACEOF
17018if ac_fn_c_try_compile "$LINENO"
17019then :
17020  xorg_cv_cc_flag_unused_command_line_argument=yes
17021else case e in #(
17022  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17023esac
17024fi
17025rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17026esac
17027fi
17028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17029printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17030	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17031	CFLAGS="$xorg_testset_save_CFLAGS"
17032fi
17033
17034found="no"
17035
17036	if test $found = "no" ; then
17037		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17038			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17039		fi
17040
17041		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17042			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17043		fi
17044
17045		CFLAGS="$CFLAGS -Werror=trigraphs"
17046
17047		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
17048printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
17049		cacheid=xorg_cv_cc_flag__Werror_trigraphs
17050		if eval test \${$cacheid+y}
17051then :
17052  printf %s "(cached) " >&6
17053else case e in #(
17054  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17055/* end confdefs.h.  */
17056int i;
17057int
17058main (void)
17059{
17060
17061  ;
17062  return 0;
17063}
17064_ACEOF
17065if ac_fn_c_try_link "$LINENO"
17066then :
17067  eval $cacheid=yes
17068else case e in #(
17069  e) eval $cacheid=no ;;
17070esac
17071fi
17072rm -f core conftest.err conftest.$ac_objext conftest.beam \
17073    conftest$ac_exeext conftest.$ac_ext ;;
17074esac
17075fi
17076
17077
17078		CFLAGS="$xorg_testset_save_CFLAGS"
17079
17080		eval supported=\$$cacheid
17081		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17082printf "%s\n" "$supported" >&6; }
17083		if test "$supported" = "yes" ; then
17084			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
17085			found="yes"
17086		fi
17087	fi
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103xorg_testset_save_CFLAGS="$CFLAGS"
17104
17105if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17106	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17107	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17108printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17109if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17110then :
17111  printf %s "(cached) " >&6
17112else case e in #(
17113  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17114/* end confdefs.h.  */
17115int i;
17116_ACEOF
17117if ac_fn_c_try_compile "$LINENO"
17118then :
17119  xorg_cv_cc_flag_unknown_warning_option=yes
17120else case e in #(
17121  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17122esac
17123fi
17124rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17125esac
17126fi
17127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17128printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17129	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17130	CFLAGS="$xorg_testset_save_CFLAGS"
17131fi
17132
17133if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17134	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17135		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17136	fi
17137	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17138	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17139printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17140if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17141then :
17142  printf %s "(cached) " >&6
17143else case e in #(
17144  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17145/* end confdefs.h.  */
17146int i;
17147_ACEOF
17148if ac_fn_c_try_compile "$LINENO"
17149then :
17150  xorg_cv_cc_flag_unused_command_line_argument=yes
17151else case e in #(
17152  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17153esac
17154fi
17155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17156esac
17157fi
17158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17159printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17160	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17161	CFLAGS="$xorg_testset_save_CFLAGS"
17162fi
17163
17164found="no"
17165
17166	if test $found = "no" ; then
17167		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17168			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17169		fi
17170
17171		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17172			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17173		fi
17174
17175		CFLAGS="$CFLAGS -Werror=array-bounds"
17176
17177		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
17178printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
17179		cacheid=xorg_cv_cc_flag__Werror_array_bounds
17180		if eval test \${$cacheid+y}
17181then :
17182  printf %s "(cached) " >&6
17183else case e in #(
17184  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17185/* end confdefs.h.  */
17186int i;
17187int
17188main (void)
17189{
17190
17191  ;
17192  return 0;
17193}
17194_ACEOF
17195if ac_fn_c_try_link "$LINENO"
17196then :
17197  eval $cacheid=yes
17198else case e in #(
17199  e) eval $cacheid=no ;;
17200esac
17201fi
17202rm -f core conftest.err conftest.$ac_objext conftest.beam \
17203    conftest$ac_exeext conftest.$ac_ext ;;
17204esac
17205fi
17206
17207
17208		CFLAGS="$xorg_testset_save_CFLAGS"
17209
17210		eval supported=\$$cacheid
17211		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17212printf "%s\n" "$supported" >&6; }
17213		if test "$supported" = "yes" ; then
17214			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
17215			found="yes"
17216		fi
17217	fi
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233xorg_testset_save_CFLAGS="$CFLAGS"
17234
17235if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17236	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17237	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17238printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17239if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17240then :
17241  printf %s "(cached) " >&6
17242else case e in #(
17243  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17244/* end confdefs.h.  */
17245int i;
17246_ACEOF
17247if ac_fn_c_try_compile "$LINENO"
17248then :
17249  xorg_cv_cc_flag_unknown_warning_option=yes
17250else case e in #(
17251  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17252esac
17253fi
17254rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17255esac
17256fi
17257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17258printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17259	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17260	CFLAGS="$xorg_testset_save_CFLAGS"
17261fi
17262
17263if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17264	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17265		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17266	fi
17267	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17268	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17269printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17270if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17271then :
17272  printf %s "(cached) " >&6
17273else case e in #(
17274  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17275/* end confdefs.h.  */
17276int i;
17277_ACEOF
17278if ac_fn_c_try_compile "$LINENO"
17279then :
17280  xorg_cv_cc_flag_unused_command_line_argument=yes
17281else case e in #(
17282  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17283esac
17284fi
17285rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17286esac
17287fi
17288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17289printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17290	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17291	CFLAGS="$xorg_testset_save_CFLAGS"
17292fi
17293
17294found="no"
17295
17296	if test $found = "no" ; then
17297		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17298			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17299		fi
17300
17301		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17302			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17303		fi
17304
17305		CFLAGS="$CFLAGS -Werror=write-strings"
17306
17307		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
17308printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
17309		cacheid=xorg_cv_cc_flag__Werror_write_strings
17310		if eval test \${$cacheid+y}
17311then :
17312  printf %s "(cached) " >&6
17313else case e in #(
17314  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17315/* end confdefs.h.  */
17316int i;
17317int
17318main (void)
17319{
17320
17321  ;
17322  return 0;
17323}
17324_ACEOF
17325if ac_fn_c_try_link "$LINENO"
17326then :
17327  eval $cacheid=yes
17328else case e in #(
17329  e) eval $cacheid=no ;;
17330esac
17331fi
17332rm -f core conftest.err conftest.$ac_objext conftest.beam \
17333    conftest$ac_exeext conftest.$ac_ext ;;
17334esac
17335fi
17336
17337
17338		CFLAGS="$xorg_testset_save_CFLAGS"
17339
17340		eval supported=\$$cacheid
17341		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17342printf "%s\n" "$supported" >&6; }
17343		if test "$supported" = "yes" ; then
17344			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
17345			found="yes"
17346		fi
17347	fi
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363xorg_testset_save_CFLAGS="$CFLAGS"
17364
17365if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17366	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17367	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17368printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17369if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17370then :
17371  printf %s "(cached) " >&6
17372else case e in #(
17373  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17374/* end confdefs.h.  */
17375int i;
17376_ACEOF
17377if ac_fn_c_try_compile "$LINENO"
17378then :
17379  xorg_cv_cc_flag_unknown_warning_option=yes
17380else case e in #(
17381  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17382esac
17383fi
17384rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17385esac
17386fi
17387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17388printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17389	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17390	CFLAGS="$xorg_testset_save_CFLAGS"
17391fi
17392
17393if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17394	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17395		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17396	fi
17397	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17398	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17399printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17400if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17401then :
17402  printf %s "(cached) " >&6
17403else case e in #(
17404  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17405/* end confdefs.h.  */
17406int i;
17407_ACEOF
17408if ac_fn_c_try_compile "$LINENO"
17409then :
17410  xorg_cv_cc_flag_unused_command_line_argument=yes
17411else case e in #(
17412  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17413esac
17414fi
17415rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17416esac
17417fi
17418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17419printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17420	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17421	CFLAGS="$xorg_testset_save_CFLAGS"
17422fi
17423
17424found="no"
17425
17426	if test $found = "no" ; then
17427		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17428			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17429		fi
17430
17431		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17432			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17433		fi
17434
17435		CFLAGS="$CFLAGS -Werror=address"
17436
17437		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
17438printf %s "checking if $CC supports -Werror=address... " >&6; }
17439		cacheid=xorg_cv_cc_flag__Werror_address
17440		if eval test \${$cacheid+y}
17441then :
17442  printf %s "(cached) " >&6
17443else case e in #(
17444  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17445/* end confdefs.h.  */
17446int i;
17447int
17448main (void)
17449{
17450
17451  ;
17452  return 0;
17453}
17454_ACEOF
17455if ac_fn_c_try_link "$LINENO"
17456then :
17457  eval $cacheid=yes
17458else case e in #(
17459  e) eval $cacheid=no ;;
17460esac
17461fi
17462rm -f core conftest.err conftest.$ac_objext conftest.beam \
17463    conftest$ac_exeext conftest.$ac_ext ;;
17464esac
17465fi
17466
17467
17468		CFLAGS="$xorg_testset_save_CFLAGS"
17469
17470		eval supported=\$$cacheid
17471		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17472printf "%s\n" "$supported" >&6; }
17473		if test "$supported" = "yes" ; then
17474			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
17475			found="yes"
17476		fi
17477	fi
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493xorg_testset_save_CFLAGS="$CFLAGS"
17494
17495if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17496	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17497	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17498printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17499if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17500then :
17501  printf %s "(cached) " >&6
17502else case e in #(
17503  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17504/* end confdefs.h.  */
17505int i;
17506_ACEOF
17507if ac_fn_c_try_compile "$LINENO"
17508then :
17509  xorg_cv_cc_flag_unknown_warning_option=yes
17510else case e in #(
17511  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17512esac
17513fi
17514rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17515esac
17516fi
17517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17518printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17519	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17520	CFLAGS="$xorg_testset_save_CFLAGS"
17521fi
17522
17523if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17524	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17525		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17526	fi
17527	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17528	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17529printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17530if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17531then :
17532  printf %s "(cached) " >&6
17533else case e in #(
17534  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17535/* end confdefs.h.  */
17536int i;
17537_ACEOF
17538if ac_fn_c_try_compile "$LINENO"
17539then :
17540  xorg_cv_cc_flag_unused_command_line_argument=yes
17541else case e in #(
17542  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17543esac
17544fi
17545rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17546esac
17547fi
17548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17549printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17550	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17551	CFLAGS="$xorg_testset_save_CFLAGS"
17552fi
17553
17554found="no"
17555
17556	if test $found = "no" ; then
17557		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17558			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17559		fi
17560
17561		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17562			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17563		fi
17564
17565		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
17566
17567		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
17568printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
17569		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
17570		if eval test \${$cacheid+y}
17571then :
17572  printf %s "(cached) " >&6
17573else case e in #(
17574  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17575/* end confdefs.h.  */
17576int i;
17577int
17578main (void)
17579{
17580
17581  ;
17582  return 0;
17583}
17584_ACEOF
17585if ac_fn_c_try_link "$LINENO"
17586then :
17587  eval $cacheid=yes
17588else case e in #(
17589  e) eval $cacheid=no ;;
17590esac
17591fi
17592rm -f core conftest.err conftest.$ac_objext conftest.beam \
17593    conftest$ac_exeext conftest.$ac_ext ;;
17594esac
17595fi
17596
17597
17598		CFLAGS="$xorg_testset_save_CFLAGS"
17599
17600		eval supported=\$$cacheid
17601		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17602printf "%s\n" "$supported" >&6; }
17603		if test "$supported" = "yes" ; then
17604			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
17605			found="yes"
17606		fi
17607	fi
17608
17609	if test $found = "no" ; then
17610		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17611			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17612		fi
17613
17614		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17615			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17616		fi
17617
17618		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17619
17620		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17621printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17622		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17623		if eval test \${$cacheid+y}
17624then :
17625  printf %s "(cached) " >&6
17626else case e in #(
17627  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17628/* end confdefs.h.  */
17629int i;
17630int
17631main (void)
17632{
17633
17634  ;
17635  return 0;
17636}
17637_ACEOF
17638if ac_fn_c_try_link "$LINENO"
17639then :
17640  eval $cacheid=yes
17641else case e in #(
17642  e) eval $cacheid=no ;;
17643esac
17644fi
17645rm -f core conftest.err conftest.$ac_objext conftest.beam \
17646    conftest$ac_exeext conftest.$ac_ext ;;
17647esac
17648fi
17649
17650
17651		CFLAGS="$xorg_testset_save_CFLAGS"
17652
17653		eval supported=\$$cacheid
17654		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17655printf "%s\n" "$supported" >&6; }
17656		if test "$supported" = "yes" ; then
17657			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17658			found="yes"
17659		fi
17660	fi
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676xorg_testset_save_CFLAGS="$CFLAGS"
17677
17678if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17679	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17680	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17681printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17682if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17683then :
17684  printf %s "(cached) " >&6
17685else case e in #(
17686  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17687/* end confdefs.h.  */
17688int i;
17689_ACEOF
17690if ac_fn_c_try_compile "$LINENO"
17691then :
17692  xorg_cv_cc_flag_unknown_warning_option=yes
17693else case e in #(
17694  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17695esac
17696fi
17697rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17698esac
17699fi
17700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17701printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17702	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17703	CFLAGS="$xorg_testset_save_CFLAGS"
17704fi
17705
17706if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17707	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17708		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17709	fi
17710	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17711	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17712printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17713if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17714then :
17715  printf %s "(cached) " >&6
17716else case e in #(
17717  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17718/* end confdefs.h.  */
17719int i;
17720_ACEOF
17721if ac_fn_c_try_compile "$LINENO"
17722then :
17723  xorg_cv_cc_flag_unused_command_line_argument=yes
17724else case e in #(
17725  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17726esac
17727fi
17728rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17729esac
17730fi
17731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17732printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17733	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17734	CFLAGS="$xorg_testset_save_CFLAGS"
17735fi
17736
17737found="no"
17738
17739	if test $found = "no" ; then
17740		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17741			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17742		fi
17743
17744		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17745			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17746		fi
17747
17748		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17749
17750		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17751printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17752		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17753		if eval test \${$cacheid+y}
17754then :
17755  printf %s "(cached) " >&6
17756else case e in #(
17757  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17758/* end confdefs.h.  */
17759int i;
17760int
17761main (void)
17762{
17763
17764  ;
17765  return 0;
17766}
17767_ACEOF
17768if ac_fn_c_try_link "$LINENO"
17769then :
17770  eval $cacheid=yes
17771else case e in #(
17772  e) eval $cacheid=no ;;
17773esac
17774fi
17775rm -f core conftest.err conftest.$ac_objext conftest.beam \
17776    conftest$ac_exeext conftest.$ac_ext ;;
17777esac
17778fi
17779
17780
17781		CFLAGS="$xorg_testset_save_CFLAGS"
17782
17783		eval supported=\$$cacheid
17784		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17785printf "%s\n" "$supported" >&6; }
17786		if test "$supported" = "yes" ; then
17787			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17788			found="yes"
17789		fi
17790	fi
17791
17792 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17793else
17794{ 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
17795printf "%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;}
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809xorg_testset_save_CFLAGS="$CFLAGS"
17810
17811if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17812	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17813	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17814printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17815if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17816then :
17817  printf %s "(cached) " >&6
17818else case e in #(
17819  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17820/* end confdefs.h.  */
17821int i;
17822_ACEOF
17823if ac_fn_c_try_compile "$LINENO"
17824then :
17825  xorg_cv_cc_flag_unknown_warning_option=yes
17826else case e in #(
17827  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17828esac
17829fi
17830rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17831esac
17832fi
17833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17834printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17835	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17836	CFLAGS="$xorg_testset_save_CFLAGS"
17837fi
17838
17839if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17840	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17841		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17842	fi
17843	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17844	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17845printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17846if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17847then :
17848  printf %s "(cached) " >&6
17849else case e in #(
17850  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17851/* end confdefs.h.  */
17852int i;
17853_ACEOF
17854if ac_fn_c_try_compile "$LINENO"
17855then :
17856  xorg_cv_cc_flag_unused_command_line_argument=yes
17857else case e in #(
17858  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17859esac
17860fi
17861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17862esac
17863fi
17864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17865printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17866	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17867	CFLAGS="$xorg_testset_save_CFLAGS"
17868fi
17869
17870found="no"
17871
17872	if test $found = "no" ; then
17873		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17874			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17875		fi
17876
17877		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17878			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17879		fi
17880
17881		CFLAGS="$CFLAGS -Wimplicit"
17882
17883		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17884printf %s "checking if $CC supports -Wimplicit... " >&6; }
17885		cacheid=xorg_cv_cc_flag__Wimplicit
17886		if eval test \${$cacheid+y}
17887then :
17888  printf %s "(cached) " >&6
17889else case e in #(
17890  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17891/* end confdefs.h.  */
17892int i;
17893int
17894main (void)
17895{
17896
17897  ;
17898  return 0;
17899}
17900_ACEOF
17901if ac_fn_c_try_link "$LINENO"
17902then :
17903  eval $cacheid=yes
17904else case e in #(
17905  e) eval $cacheid=no ;;
17906esac
17907fi
17908rm -f core conftest.err conftest.$ac_objext conftest.beam \
17909    conftest$ac_exeext conftest.$ac_ext ;;
17910esac
17911fi
17912
17913
17914		CFLAGS="$xorg_testset_save_CFLAGS"
17915
17916		eval supported=\$$cacheid
17917		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17918printf "%s\n" "$supported" >&6; }
17919		if test "$supported" = "yes" ; then
17920			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17921			found="yes"
17922		fi
17923	fi
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939xorg_testset_save_CFLAGS="$CFLAGS"
17940
17941if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17942	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17943	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17944printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17945if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17946then :
17947  printf %s "(cached) " >&6
17948else case e in #(
17949  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17950/* end confdefs.h.  */
17951int i;
17952_ACEOF
17953if ac_fn_c_try_compile "$LINENO"
17954then :
17955  xorg_cv_cc_flag_unknown_warning_option=yes
17956else case e in #(
17957  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17958esac
17959fi
17960rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17961esac
17962fi
17963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17964printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17965	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17966	CFLAGS="$xorg_testset_save_CFLAGS"
17967fi
17968
17969if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17970	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17971		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17972	fi
17973	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17974	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17975printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17976if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17977then :
17978  printf %s "(cached) " >&6
17979else case e in #(
17980  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17981/* end confdefs.h.  */
17982int i;
17983_ACEOF
17984if ac_fn_c_try_compile "$LINENO"
17985then :
17986  xorg_cv_cc_flag_unused_command_line_argument=yes
17987else case e in #(
17988  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17989esac
17990fi
17991rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17992esac
17993fi
17994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17995printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17996	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17997	CFLAGS="$xorg_testset_save_CFLAGS"
17998fi
17999
18000found="no"
18001
18002	if test $found = "no" ; then
18003		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18004			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18005		fi
18006
18007		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18008			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18009		fi
18010
18011		CFLAGS="$CFLAGS -Wnonnull"
18012
18013		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
18014printf %s "checking if $CC supports -Wnonnull... " >&6; }
18015		cacheid=xorg_cv_cc_flag__Wnonnull
18016		if eval test \${$cacheid+y}
18017then :
18018  printf %s "(cached) " >&6
18019else case e in #(
18020  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18021/* end confdefs.h.  */
18022int i;
18023int
18024main (void)
18025{
18026
18027  ;
18028  return 0;
18029}
18030_ACEOF
18031if ac_fn_c_try_link "$LINENO"
18032then :
18033  eval $cacheid=yes
18034else case e in #(
18035  e) eval $cacheid=no ;;
18036esac
18037fi
18038rm -f core conftest.err conftest.$ac_objext conftest.beam \
18039    conftest$ac_exeext conftest.$ac_ext ;;
18040esac
18041fi
18042
18043
18044		CFLAGS="$xorg_testset_save_CFLAGS"
18045
18046		eval supported=\$$cacheid
18047		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18048printf "%s\n" "$supported" >&6; }
18049		if test "$supported" = "yes" ; then
18050			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
18051			found="yes"
18052		fi
18053	fi
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069xorg_testset_save_CFLAGS="$CFLAGS"
18070
18071if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18072	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18073	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18074printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18075if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18076then :
18077  printf %s "(cached) " >&6
18078else case e in #(
18079  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18080/* end confdefs.h.  */
18081int i;
18082_ACEOF
18083if ac_fn_c_try_compile "$LINENO"
18084then :
18085  xorg_cv_cc_flag_unknown_warning_option=yes
18086else case e in #(
18087  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18088esac
18089fi
18090rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18091esac
18092fi
18093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18094printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18095	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18096	CFLAGS="$xorg_testset_save_CFLAGS"
18097fi
18098
18099if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18100	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18101		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18102	fi
18103	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18104	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18105printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18106if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18107then :
18108  printf %s "(cached) " >&6
18109else case e in #(
18110  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18111/* end confdefs.h.  */
18112int i;
18113_ACEOF
18114if ac_fn_c_try_compile "$LINENO"
18115then :
18116  xorg_cv_cc_flag_unused_command_line_argument=yes
18117else case e in #(
18118  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18119esac
18120fi
18121rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18122esac
18123fi
18124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18125printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18126	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18127	CFLAGS="$xorg_testset_save_CFLAGS"
18128fi
18129
18130found="no"
18131
18132	if test $found = "no" ; then
18133		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18134			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18135		fi
18136
18137		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18138			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18139		fi
18140
18141		CFLAGS="$CFLAGS -Winit-self"
18142
18143		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
18144printf %s "checking if $CC supports -Winit-self... " >&6; }
18145		cacheid=xorg_cv_cc_flag__Winit_self
18146		if eval test \${$cacheid+y}
18147then :
18148  printf %s "(cached) " >&6
18149else case e in #(
18150  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18151/* end confdefs.h.  */
18152int i;
18153int
18154main (void)
18155{
18156
18157  ;
18158  return 0;
18159}
18160_ACEOF
18161if ac_fn_c_try_link "$LINENO"
18162then :
18163  eval $cacheid=yes
18164else case e in #(
18165  e) eval $cacheid=no ;;
18166esac
18167fi
18168rm -f core conftest.err conftest.$ac_objext conftest.beam \
18169    conftest$ac_exeext conftest.$ac_ext ;;
18170esac
18171fi
18172
18173
18174		CFLAGS="$xorg_testset_save_CFLAGS"
18175
18176		eval supported=\$$cacheid
18177		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18178printf "%s\n" "$supported" >&6; }
18179		if test "$supported" = "yes" ; then
18180			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
18181			found="yes"
18182		fi
18183	fi
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199xorg_testset_save_CFLAGS="$CFLAGS"
18200
18201if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18202	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18203	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18204printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18205if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18206then :
18207  printf %s "(cached) " >&6
18208else case e in #(
18209  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18210/* end confdefs.h.  */
18211int i;
18212_ACEOF
18213if ac_fn_c_try_compile "$LINENO"
18214then :
18215  xorg_cv_cc_flag_unknown_warning_option=yes
18216else case e in #(
18217  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18218esac
18219fi
18220rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18221esac
18222fi
18223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18224printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18225	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18226	CFLAGS="$xorg_testset_save_CFLAGS"
18227fi
18228
18229if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18230	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18231		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18232	fi
18233	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18234	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18235printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18236if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18237then :
18238  printf %s "(cached) " >&6
18239else case e in #(
18240  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18241/* end confdefs.h.  */
18242int i;
18243_ACEOF
18244if ac_fn_c_try_compile "$LINENO"
18245then :
18246  xorg_cv_cc_flag_unused_command_line_argument=yes
18247else case e in #(
18248  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18249esac
18250fi
18251rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18252esac
18253fi
18254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18255printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18256	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18257	CFLAGS="$xorg_testset_save_CFLAGS"
18258fi
18259
18260found="no"
18261
18262	if test $found = "no" ; then
18263		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18264			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18265		fi
18266
18267		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18268			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18269		fi
18270
18271		CFLAGS="$CFLAGS -Wmain"
18272
18273		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
18274printf %s "checking if $CC supports -Wmain... " >&6; }
18275		cacheid=xorg_cv_cc_flag__Wmain
18276		if eval test \${$cacheid+y}
18277then :
18278  printf %s "(cached) " >&6
18279else case e in #(
18280  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18281/* end confdefs.h.  */
18282int i;
18283int
18284main (void)
18285{
18286
18287  ;
18288  return 0;
18289}
18290_ACEOF
18291if ac_fn_c_try_link "$LINENO"
18292then :
18293  eval $cacheid=yes
18294else case e in #(
18295  e) eval $cacheid=no ;;
18296esac
18297fi
18298rm -f core conftest.err conftest.$ac_objext conftest.beam \
18299    conftest$ac_exeext conftest.$ac_ext ;;
18300esac
18301fi
18302
18303
18304		CFLAGS="$xorg_testset_save_CFLAGS"
18305
18306		eval supported=\$$cacheid
18307		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18308printf "%s\n" "$supported" >&6; }
18309		if test "$supported" = "yes" ; then
18310			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
18311			found="yes"
18312		fi
18313	fi
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329xorg_testset_save_CFLAGS="$CFLAGS"
18330
18331if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18332	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18333	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18334printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18335if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18336then :
18337  printf %s "(cached) " >&6
18338else case e in #(
18339  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18340/* end confdefs.h.  */
18341int i;
18342_ACEOF
18343if ac_fn_c_try_compile "$LINENO"
18344then :
18345  xorg_cv_cc_flag_unknown_warning_option=yes
18346else case e in #(
18347  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18348esac
18349fi
18350rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18351esac
18352fi
18353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18354printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18355	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18356	CFLAGS="$xorg_testset_save_CFLAGS"
18357fi
18358
18359if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18360	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18361		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18362	fi
18363	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18364	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18365printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18366if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18367then :
18368  printf %s "(cached) " >&6
18369else case e in #(
18370  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18371/* end confdefs.h.  */
18372int i;
18373_ACEOF
18374if ac_fn_c_try_compile "$LINENO"
18375then :
18376  xorg_cv_cc_flag_unused_command_line_argument=yes
18377else case e in #(
18378  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18379esac
18380fi
18381rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18382esac
18383fi
18384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18385printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18386	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18387	CFLAGS="$xorg_testset_save_CFLAGS"
18388fi
18389
18390found="no"
18391
18392	if test $found = "no" ; then
18393		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18394			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18395		fi
18396
18397		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18398			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18399		fi
18400
18401		CFLAGS="$CFLAGS -Wmissing-braces"
18402
18403		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
18404printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
18405		cacheid=xorg_cv_cc_flag__Wmissing_braces
18406		if eval test \${$cacheid+y}
18407then :
18408  printf %s "(cached) " >&6
18409else case e in #(
18410  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18411/* end confdefs.h.  */
18412int i;
18413int
18414main (void)
18415{
18416
18417  ;
18418  return 0;
18419}
18420_ACEOF
18421if ac_fn_c_try_link "$LINENO"
18422then :
18423  eval $cacheid=yes
18424else case e in #(
18425  e) eval $cacheid=no ;;
18426esac
18427fi
18428rm -f core conftest.err conftest.$ac_objext conftest.beam \
18429    conftest$ac_exeext conftest.$ac_ext ;;
18430esac
18431fi
18432
18433
18434		CFLAGS="$xorg_testset_save_CFLAGS"
18435
18436		eval supported=\$$cacheid
18437		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18438printf "%s\n" "$supported" >&6; }
18439		if test "$supported" = "yes" ; then
18440			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
18441			found="yes"
18442		fi
18443	fi
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459xorg_testset_save_CFLAGS="$CFLAGS"
18460
18461if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18462	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18463	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18464printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18465if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18466then :
18467  printf %s "(cached) " >&6
18468else case e in #(
18469  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18470/* end confdefs.h.  */
18471int i;
18472_ACEOF
18473if ac_fn_c_try_compile "$LINENO"
18474then :
18475  xorg_cv_cc_flag_unknown_warning_option=yes
18476else case e in #(
18477  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18478esac
18479fi
18480rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18481esac
18482fi
18483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18484printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18485	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18486	CFLAGS="$xorg_testset_save_CFLAGS"
18487fi
18488
18489if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18490	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18491		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18492	fi
18493	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18494	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18495printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18496if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18497then :
18498  printf %s "(cached) " >&6
18499else case e in #(
18500  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18501/* end confdefs.h.  */
18502int i;
18503_ACEOF
18504if ac_fn_c_try_compile "$LINENO"
18505then :
18506  xorg_cv_cc_flag_unused_command_line_argument=yes
18507else case e in #(
18508  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18509esac
18510fi
18511rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18512esac
18513fi
18514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18515printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18516	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18517	CFLAGS="$xorg_testset_save_CFLAGS"
18518fi
18519
18520found="no"
18521
18522	if test $found = "no" ; then
18523		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18524			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18525		fi
18526
18527		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18528			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18529		fi
18530
18531		CFLAGS="$CFLAGS -Wsequence-point"
18532
18533		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
18534printf %s "checking if $CC supports -Wsequence-point... " >&6; }
18535		cacheid=xorg_cv_cc_flag__Wsequence_point
18536		if eval test \${$cacheid+y}
18537then :
18538  printf %s "(cached) " >&6
18539else case e in #(
18540  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18541/* end confdefs.h.  */
18542int i;
18543int
18544main (void)
18545{
18546
18547  ;
18548  return 0;
18549}
18550_ACEOF
18551if ac_fn_c_try_link "$LINENO"
18552then :
18553  eval $cacheid=yes
18554else case e in #(
18555  e) eval $cacheid=no ;;
18556esac
18557fi
18558rm -f core conftest.err conftest.$ac_objext conftest.beam \
18559    conftest$ac_exeext conftest.$ac_ext ;;
18560esac
18561fi
18562
18563
18564		CFLAGS="$xorg_testset_save_CFLAGS"
18565
18566		eval supported=\$$cacheid
18567		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18568printf "%s\n" "$supported" >&6; }
18569		if test "$supported" = "yes" ; then
18570			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
18571			found="yes"
18572		fi
18573	fi
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589xorg_testset_save_CFLAGS="$CFLAGS"
18590
18591if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18592	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18593	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18594printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18595if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18596then :
18597  printf %s "(cached) " >&6
18598else case e in #(
18599  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18600/* end confdefs.h.  */
18601int i;
18602_ACEOF
18603if ac_fn_c_try_compile "$LINENO"
18604then :
18605  xorg_cv_cc_flag_unknown_warning_option=yes
18606else case e in #(
18607  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18608esac
18609fi
18610rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18611esac
18612fi
18613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18614printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18615	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18616	CFLAGS="$xorg_testset_save_CFLAGS"
18617fi
18618
18619if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18620	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18621		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18622	fi
18623	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18624	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18625printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18626if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18627then :
18628  printf %s "(cached) " >&6
18629else case e in #(
18630  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18631/* end confdefs.h.  */
18632int i;
18633_ACEOF
18634if ac_fn_c_try_compile "$LINENO"
18635then :
18636  xorg_cv_cc_flag_unused_command_line_argument=yes
18637else case e in #(
18638  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18639esac
18640fi
18641rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18642esac
18643fi
18644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18645printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18646	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18647	CFLAGS="$xorg_testset_save_CFLAGS"
18648fi
18649
18650found="no"
18651
18652	if test $found = "no" ; then
18653		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18654			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18655		fi
18656
18657		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18658			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18659		fi
18660
18661		CFLAGS="$CFLAGS -Wreturn-type"
18662
18663		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
18664printf %s "checking if $CC supports -Wreturn-type... " >&6; }
18665		cacheid=xorg_cv_cc_flag__Wreturn_type
18666		if eval test \${$cacheid+y}
18667then :
18668  printf %s "(cached) " >&6
18669else case e in #(
18670  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18671/* end confdefs.h.  */
18672int i;
18673int
18674main (void)
18675{
18676
18677  ;
18678  return 0;
18679}
18680_ACEOF
18681if ac_fn_c_try_link "$LINENO"
18682then :
18683  eval $cacheid=yes
18684else case e in #(
18685  e) eval $cacheid=no ;;
18686esac
18687fi
18688rm -f core conftest.err conftest.$ac_objext conftest.beam \
18689    conftest$ac_exeext conftest.$ac_ext ;;
18690esac
18691fi
18692
18693
18694		CFLAGS="$xorg_testset_save_CFLAGS"
18695
18696		eval supported=\$$cacheid
18697		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18698printf "%s\n" "$supported" >&6; }
18699		if test "$supported" = "yes" ; then
18700			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
18701			found="yes"
18702		fi
18703	fi
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719xorg_testset_save_CFLAGS="$CFLAGS"
18720
18721if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18722	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18723	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18724printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18725if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18726then :
18727  printf %s "(cached) " >&6
18728else case e in #(
18729  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18730/* end confdefs.h.  */
18731int i;
18732_ACEOF
18733if ac_fn_c_try_compile "$LINENO"
18734then :
18735  xorg_cv_cc_flag_unknown_warning_option=yes
18736else case e in #(
18737  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18738esac
18739fi
18740rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18741esac
18742fi
18743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18744printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18745	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18746	CFLAGS="$xorg_testset_save_CFLAGS"
18747fi
18748
18749if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18750	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18751		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18752	fi
18753	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18754	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18755printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18756if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18757then :
18758  printf %s "(cached) " >&6
18759else case e in #(
18760  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18761/* end confdefs.h.  */
18762int i;
18763_ACEOF
18764if ac_fn_c_try_compile "$LINENO"
18765then :
18766  xorg_cv_cc_flag_unused_command_line_argument=yes
18767else case e in #(
18768  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18769esac
18770fi
18771rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18772esac
18773fi
18774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18775printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18776	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18777	CFLAGS="$xorg_testset_save_CFLAGS"
18778fi
18779
18780found="no"
18781
18782	if test $found = "no" ; then
18783		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18784			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18785		fi
18786
18787		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18788			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18789		fi
18790
18791		CFLAGS="$CFLAGS -Wtrigraphs"
18792
18793		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18794printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18795		cacheid=xorg_cv_cc_flag__Wtrigraphs
18796		if eval test \${$cacheid+y}
18797then :
18798  printf %s "(cached) " >&6
18799else case e in #(
18800  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18801/* end confdefs.h.  */
18802int i;
18803int
18804main (void)
18805{
18806
18807  ;
18808  return 0;
18809}
18810_ACEOF
18811if ac_fn_c_try_link "$LINENO"
18812then :
18813  eval $cacheid=yes
18814else case e in #(
18815  e) eval $cacheid=no ;;
18816esac
18817fi
18818rm -f core conftest.err conftest.$ac_objext conftest.beam \
18819    conftest$ac_exeext conftest.$ac_ext ;;
18820esac
18821fi
18822
18823
18824		CFLAGS="$xorg_testset_save_CFLAGS"
18825
18826		eval supported=\$$cacheid
18827		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18828printf "%s\n" "$supported" >&6; }
18829		if test "$supported" = "yes" ; then
18830			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18831			found="yes"
18832		fi
18833	fi
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849xorg_testset_save_CFLAGS="$CFLAGS"
18850
18851if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18852	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18853	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18854printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18855if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18856then :
18857  printf %s "(cached) " >&6
18858else case e in #(
18859  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18860/* end confdefs.h.  */
18861int i;
18862_ACEOF
18863if ac_fn_c_try_compile "$LINENO"
18864then :
18865  xorg_cv_cc_flag_unknown_warning_option=yes
18866else case e in #(
18867  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18868esac
18869fi
18870rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18871esac
18872fi
18873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18874printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18875	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18876	CFLAGS="$xorg_testset_save_CFLAGS"
18877fi
18878
18879if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18880	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18881		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18882	fi
18883	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18884	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18885printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18886if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18887then :
18888  printf %s "(cached) " >&6
18889else case e in #(
18890  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18891/* end confdefs.h.  */
18892int i;
18893_ACEOF
18894if ac_fn_c_try_compile "$LINENO"
18895then :
18896  xorg_cv_cc_flag_unused_command_line_argument=yes
18897else case e in #(
18898  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18899esac
18900fi
18901rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18902esac
18903fi
18904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18905printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18906	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18907	CFLAGS="$xorg_testset_save_CFLAGS"
18908fi
18909
18910found="no"
18911
18912	if test $found = "no" ; then
18913		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18914			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18915		fi
18916
18917		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18918			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18919		fi
18920
18921		CFLAGS="$CFLAGS -Warray-bounds"
18922
18923		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18924printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18925		cacheid=xorg_cv_cc_flag__Warray_bounds
18926		if eval test \${$cacheid+y}
18927then :
18928  printf %s "(cached) " >&6
18929else case e in #(
18930  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18931/* end confdefs.h.  */
18932int i;
18933int
18934main (void)
18935{
18936
18937  ;
18938  return 0;
18939}
18940_ACEOF
18941if ac_fn_c_try_link "$LINENO"
18942then :
18943  eval $cacheid=yes
18944else case e in #(
18945  e) eval $cacheid=no ;;
18946esac
18947fi
18948rm -f core conftest.err conftest.$ac_objext conftest.beam \
18949    conftest$ac_exeext conftest.$ac_ext ;;
18950esac
18951fi
18952
18953
18954		CFLAGS="$xorg_testset_save_CFLAGS"
18955
18956		eval supported=\$$cacheid
18957		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18958printf "%s\n" "$supported" >&6; }
18959		if test "$supported" = "yes" ; then
18960			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18961			found="yes"
18962		fi
18963	fi
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979xorg_testset_save_CFLAGS="$CFLAGS"
18980
18981if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18982	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18983	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18984printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18985if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18986then :
18987  printf %s "(cached) " >&6
18988else case e in #(
18989  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18990/* end confdefs.h.  */
18991int i;
18992_ACEOF
18993if ac_fn_c_try_compile "$LINENO"
18994then :
18995  xorg_cv_cc_flag_unknown_warning_option=yes
18996else case e in #(
18997  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18998esac
18999fi
19000rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19001esac
19002fi
19003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19004printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19005	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19006	CFLAGS="$xorg_testset_save_CFLAGS"
19007fi
19008
19009if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19010	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19011		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19012	fi
19013	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19014	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19015printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19016if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19017then :
19018  printf %s "(cached) " >&6
19019else case e in #(
19020  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19021/* end confdefs.h.  */
19022int i;
19023_ACEOF
19024if ac_fn_c_try_compile "$LINENO"
19025then :
19026  xorg_cv_cc_flag_unused_command_line_argument=yes
19027else case e in #(
19028  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19029esac
19030fi
19031rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19032esac
19033fi
19034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19035printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19036	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19037	CFLAGS="$xorg_testset_save_CFLAGS"
19038fi
19039
19040found="no"
19041
19042	if test $found = "no" ; then
19043		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19044			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19045		fi
19046
19047		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19048			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19049		fi
19050
19051		CFLAGS="$CFLAGS -Wwrite-strings"
19052
19053		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
19054printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
19055		cacheid=xorg_cv_cc_flag__Wwrite_strings
19056		if eval test \${$cacheid+y}
19057then :
19058  printf %s "(cached) " >&6
19059else case e in #(
19060  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19061/* end confdefs.h.  */
19062int i;
19063int
19064main (void)
19065{
19066
19067  ;
19068  return 0;
19069}
19070_ACEOF
19071if ac_fn_c_try_link "$LINENO"
19072then :
19073  eval $cacheid=yes
19074else case e in #(
19075  e) eval $cacheid=no ;;
19076esac
19077fi
19078rm -f core conftest.err conftest.$ac_objext conftest.beam \
19079    conftest$ac_exeext conftest.$ac_ext ;;
19080esac
19081fi
19082
19083
19084		CFLAGS="$xorg_testset_save_CFLAGS"
19085
19086		eval supported=\$$cacheid
19087		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19088printf "%s\n" "$supported" >&6; }
19089		if test "$supported" = "yes" ; then
19090			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
19091			found="yes"
19092		fi
19093	fi
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109xorg_testset_save_CFLAGS="$CFLAGS"
19110
19111if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19112	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19113	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19114printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19115if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19116then :
19117  printf %s "(cached) " >&6
19118else case e in #(
19119  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19120/* end confdefs.h.  */
19121int i;
19122_ACEOF
19123if ac_fn_c_try_compile "$LINENO"
19124then :
19125  xorg_cv_cc_flag_unknown_warning_option=yes
19126else case e in #(
19127  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19128esac
19129fi
19130rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19131esac
19132fi
19133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19134printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19135	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19136	CFLAGS="$xorg_testset_save_CFLAGS"
19137fi
19138
19139if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19140	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19141		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19142	fi
19143	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19144	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19145printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19146if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19147then :
19148  printf %s "(cached) " >&6
19149else case e in #(
19150  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19151/* end confdefs.h.  */
19152int i;
19153_ACEOF
19154if ac_fn_c_try_compile "$LINENO"
19155then :
19156  xorg_cv_cc_flag_unused_command_line_argument=yes
19157else case e in #(
19158  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19159esac
19160fi
19161rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19162esac
19163fi
19164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19165printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19166	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19167	CFLAGS="$xorg_testset_save_CFLAGS"
19168fi
19169
19170found="no"
19171
19172	if test $found = "no" ; then
19173		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19174			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19175		fi
19176
19177		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19178			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19179		fi
19180
19181		CFLAGS="$CFLAGS -Waddress"
19182
19183		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
19184printf %s "checking if $CC supports -Waddress... " >&6; }
19185		cacheid=xorg_cv_cc_flag__Waddress
19186		if eval test \${$cacheid+y}
19187then :
19188  printf %s "(cached) " >&6
19189else case e in #(
19190  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19191/* end confdefs.h.  */
19192int i;
19193int
19194main (void)
19195{
19196
19197  ;
19198  return 0;
19199}
19200_ACEOF
19201if ac_fn_c_try_link "$LINENO"
19202then :
19203  eval $cacheid=yes
19204else case e in #(
19205  e) eval $cacheid=no ;;
19206esac
19207fi
19208rm -f core conftest.err conftest.$ac_objext conftest.beam \
19209    conftest$ac_exeext conftest.$ac_ext ;;
19210esac
19211fi
19212
19213
19214		CFLAGS="$xorg_testset_save_CFLAGS"
19215
19216		eval supported=\$$cacheid
19217		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19218printf "%s\n" "$supported" >&6; }
19219		if test "$supported" = "yes" ; then
19220			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
19221			found="yes"
19222		fi
19223	fi
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239xorg_testset_save_CFLAGS="$CFLAGS"
19240
19241if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19242	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19243	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19244printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19245if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19246then :
19247  printf %s "(cached) " >&6
19248else case e in #(
19249  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19250/* end confdefs.h.  */
19251int i;
19252_ACEOF
19253if ac_fn_c_try_compile "$LINENO"
19254then :
19255  xorg_cv_cc_flag_unknown_warning_option=yes
19256else case e in #(
19257  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19258esac
19259fi
19260rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19261esac
19262fi
19263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19264printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19265	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19266	CFLAGS="$xorg_testset_save_CFLAGS"
19267fi
19268
19269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19270	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19271		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19272	fi
19273	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19274	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19275printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19276if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19277then :
19278  printf %s "(cached) " >&6
19279else case e in #(
19280  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19281/* end confdefs.h.  */
19282int i;
19283_ACEOF
19284if ac_fn_c_try_compile "$LINENO"
19285then :
19286  xorg_cv_cc_flag_unused_command_line_argument=yes
19287else case e in #(
19288  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19289esac
19290fi
19291rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19292esac
19293fi
19294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19295printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19296	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19297	CFLAGS="$xorg_testset_save_CFLAGS"
19298fi
19299
19300found="no"
19301
19302	if test $found = "no" ; then
19303		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19304			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19305		fi
19306
19307		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19308			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19309		fi
19310
19311		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
19312
19313		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
19314printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
19315		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
19316		if eval test \${$cacheid+y}
19317then :
19318  printf %s "(cached) " >&6
19319else case e in #(
19320  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19321/* end confdefs.h.  */
19322int i;
19323int
19324main (void)
19325{
19326
19327  ;
19328  return 0;
19329}
19330_ACEOF
19331if ac_fn_c_try_link "$LINENO"
19332then :
19333  eval $cacheid=yes
19334else case e in #(
19335  e) eval $cacheid=no ;;
19336esac
19337fi
19338rm -f core conftest.err conftest.$ac_objext conftest.beam \
19339    conftest$ac_exeext conftest.$ac_ext ;;
19340esac
19341fi
19342
19343
19344		CFLAGS="$xorg_testset_save_CFLAGS"
19345
19346		eval supported=\$$cacheid
19347		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19348printf "%s\n" "$supported" >&6; }
19349		if test "$supported" = "yes" ; then
19350			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
19351			found="yes"
19352		fi
19353	fi
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368
19369xorg_testset_save_CFLAGS="$CFLAGS"
19370
19371if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19372	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19373	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19374printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19375if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19376then :
19377  printf %s "(cached) " >&6
19378else case e in #(
19379  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19380/* end confdefs.h.  */
19381int i;
19382_ACEOF
19383if ac_fn_c_try_compile "$LINENO"
19384then :
19385  xorg_cv_cc_flag_unknown_warning_option=yes
19386else case e in #(
19387  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19388esac
19389fi
19390rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19391esac
19392fi
19393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19394printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19395	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19396	CFLAGS="$xorg_testset_save_CFLAGS"
19397fi
19398
19399if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19400	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19401		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19402	fi
19403	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19404	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19405printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19406if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19407then :
19408  printf %s "(cached) " >&6
19409else case e in #(
19410  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19411/* end confdefs.h.  */
19412int i;
19413_ACEOF
19414if ac_fn_c_try_compile "$LINENO"
19415then :
19416  xorg_cv_cc_flag_unused_command_line_argument=yes
19417else case e in #(
19418  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19419esac
19420fi
19421rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19422esac
19423fi
19424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19425printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19426	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19427	CFLAGS="$xorg_testset_save_CFLAGS"
19428fi
19429
19430found="no"
19431
19432	if test $found = "no" ; then
19433		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19434			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19435		fi
19436
19437		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19438			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19439		fi
19440
19441		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
19442
19443		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
19444printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
19445		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
19446		if eval test \${$cacheid+y}
19447then :
19448  printf %s "(cached) " >&6
19449else case e in #(
19450  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19451/* end confdefs.h.  */
19452int i;
19453int
19454main (void)
19455{
19456
19457  ;
19458  return 0;
19459}
19460_ACEOF
19461if ac_fn_c_try_link "$LINENO"
19462then :
19463  eval $cacheid=yes
19464else case e in #(
19465  e) eval $cacheid=no ;;
19466esac
19467fi
19468rm -f core conftest.err conftest.$ac_objext conftest.beam \
19469    conftest$ac_exeext conftest.$ac_ext ;;
19470esac
19471fi
19472
19473
19474		CFLAGS="$xorg_testset_save_CFLAGS"
19475
19476		eval supported=\$$cacheid
19477		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19478printf "%s\n" "$supported" >&6; }
19479		if test "$supported" = "yes" ; then
19480			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
19481			found="yes"
19482		fi
19483	fi
19484
19485
19486fi
19487
19488
19489
19490
19491
19492
19493
19494		CWARNFLAGS="$BASE_CFLAGS"
19495		if  test "x$GCC" = xyes ; then
19496		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
19497		fi
19498
19499
19500
19501
19502
19503
19504
19505
19506# Check whether --enable-strict-compilation was given.
19507if test ${enable_strict_compilation+y}
19508then :
19509  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
19510else case e in #(
19511  e) STRICT_COMPILE=no ;;
19512esac
19513fi
19514
19515
19516
19517
19518
19519
19520STRICT_CFLAGS=""
19521
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531
19532
19533
19534xorg_testset_save_CFLAGS="$CFLAGS"
19535
19536if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19537	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19538	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19539printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19540if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19541then :
19542  printf %s "(cached) " >&6
19543else case e in #(
19544  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19545/* end confdefs.h.  */
19546int i;
19547_ACEOF
19548if ac_fn_c_try_compile "$LINENO"
19549then :
19550  xorg_cv_cc_flag_unknown_warning_option=yes
19551else case e in #(
19552  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19553esac
19554fi
19555rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19556esac
19557fi
19558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19559printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19560	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19561	CFLAGS="$xorg_testset_save_CFLAGS"
19562fi
19563
19564if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19565	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19566		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19567	fi
19568	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19569	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19570printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19571if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19572then :
19573  printf %s "(cached) " >&6
19574else case e in #(
19575  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19576/* end confdefs.h.  */
19577int i;
19578_ACEOF
19579if ac_fn_c_try_compile "$LINENO"
19580then :
19581  xorg_cv_cc_flag_unused_command_line_argument=yes
19582else case e in #(
19583  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19584esac
19585fi
19586rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19587esac
19588fi
19589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19590printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19591	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19592	CFLAGS="$xorg_testset_save_CFLAGS"
19593fi
19594
19595found="no"
19596
19597	if test $found = "no" ; then
19598		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19599			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19600		fi
19601
19602		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19603			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19604		fi
19605
19606		CFLAGS="$CFLAGS -pedantic"
19607
19608		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
19609printf %s "checking if $CC supports -pedantic... " >&6; }
19610		cacheid=xorg_cv_cc_flag__pedantic
19611		if eval test \${$cacheid+y}
19612then :
19613  printf %s "(cached) " >&6
19614else case e in #(
19615  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19616/* end confdefs.h.  */
19617int i;
19618int
19619main (void)
19620{
19621
19622  ;
19623  return 0;
19624}
19625_ACEOF
19626if ac_fn_c_try_link "$LINENO"
19627then :
19628  eval $cacheid=yes
19629else case e in #(
19630  e) eval $cacheid=no ;;
19631esac
19632fi
19633rm -f core conftest.err conftest.$ac_objext conftest.beam \
19634    conftest$ac_exeext conftest.$ac_ext ;;
19635esac
19636fi
19637
19638
19639		CFLAGS="$xorg_testset_save_CFLAGS"
19640
19641		eval supported=\$$cacheid
19642		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19643printf "%s\n" "$supported" >&6; }
19644		if test "$supported" = "yes" ; then
19645			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
19646			found="yes"
19647		fi
19648	fi
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664xorg_testset_save_CFLAGS="$CFLAGS"
19665
19666if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19667	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19668	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19669printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19670if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19671then :
19672  printf %s "(cached) " >&6
19673else case e in #(
19674  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19675/* end confdefs.h.  */
19676int i;
19677_ACEOF
19678if ac_fn_c_try_compile "$LINENO"
19679then :
19680  xorg_cv_cc_flag_unknown_warning_option=yes
19681else case e in #(
19682  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19683esac
19684fi
19685rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19686esac
19687fi
19688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19689printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19690	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19691	CFLAGS="$xorg_testset_save_CFLAGS"
19692fi
19693
19694if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19695	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19696		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19697	fi
19698	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19699	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19700printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19701if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19702then :
19703  printf %s "(cached) " >&6
19704else case e in #(
19705  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19706/* end confdefs.h.  */
19707int i;
19708_ACEOF
19709if ac_fn_c_try_compile "$LINENO"
19710then :
19711  xorg_cv_cc_flag_unused_command_line_argument=yes
19712else case e in #(
19713  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19714esac
19715fi
19716rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19717esac
19718fi
19719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19720printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19721	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19722	CFLAGS="$xorg_testset_save_CFLAGS"
19723fi
19724
19725found="no"
19726
19727	if test $found = "no" ; then
19728		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19729			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19730		fi
19731
19732		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19733			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19734		fi
19735
19736		CFLAGS="$CFLAGS -Werror"
19737
19738		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
19739printf %s "checking if $CC supports -Werror... " >&6; }
19740		cacheid=xorg_cv_cc_flag__Werror
19741		if eval test \${$cacheid+y}
19742then :
19743  printf %s "(cached) " >&6
19744else case e in #(
19745  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19746/* end confdefs.h.  */
19747int i;
19748int
19749main (void)
19750{
19751
19752  ;
19753  return 0;
19754}
19755_ACEOF
19756if ac_fn_c_try_link "$LINENO"
19757then :
19758  eval $cacheid=yes
19759else case e in #(
19760  e) eval $cacheid=no ;;
19761esac
19762fi
19763rm -f core conftest.err conftest.$ac_objext conftest.beam \
19764    conftest$ac_exeext conftest.$ac_ext ;;
19765esac
19766fi
19767
19768
19769		CFLAGS="$xorg_testset_save_CFLAGS"
19770
19771		eval supported=\$$cacheid
19772		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19773printf "%s\n" "$supported" >&6; }
19774		if test "$supported" = "yes" ; then
19775			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
19776			found="yes"
19777		fi
19778	fi
19779
19780	if test $found = "no" ; then
19781		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19782			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19783		fi
19784
19785		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19786			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19787		fi
19788
19789		CFLAGS="$CFLAGS -errwarn"
19790
19791		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
19792printf %s "checking if $CC supports -errwarn... " >&6; }
19793		cacheid=xorg_cv_cc_flag__errwarn
19794		if eval test \${$cacheid+y}
19795then :
19796  printf %s "(cached) " >&6
19797else case e in #(
19798  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19799/* end confdefs.h.  */
19800int i;
19801int
19802main (void)
19803{
19804
19805  ;
19806  return 0;
19807}
19808_ACEOF
19809if ac_fn_c_try_link "$LINENO"
19810then :
19811  eval $cacheid=yes
19812else case e in #(
19813  e) eval $cacheid=no ;;
19814esac
19815fi
19816rm -f core conftest.err conftest.$ac_objext conftest.beam \
19817    conftest$ac_exeext conftest.$ac_ext ;;
19818esac
19819fi
19820
19821
19822		CFLAGS="$xorg_testset_save_CFLAGS"
19823
19824		eval supported=\$$cacheid
19825		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19826printf "%s\n" "$supported" >&6; }
19827		if test "$supported" = "yes" ; then
19828			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19829			found="yes"
19830		fi
19831	fi
19832
19833
19834
19835# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19836# activate it with -Werror, so we add it here explicitly.
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850xorg_testset_save_CFLAGS="$CFLAGS"
19851
19852if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19853	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19854	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19855printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19856if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19857then :
19858  printf %s "(cached) " >&6
19859else case e in #(
19860  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19861/* end confdefs.h.  */
19862int i;
19863_ACEOF
19864if ac_fn_c_try_compile "$LINENO"
19865then :
19866  xorg_cv_cc_flag_unknown_warning_option=yes
19867else case e in #(
19868  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19869esac
19870fi
19871rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19872esac
19873fi
19874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19875printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19876	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19877	CFLAGS="$xorg_testset_save_CFLAGS"
19878fi
19879
19880if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19881	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19882		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19883	fi
19884	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19885	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19886printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19887if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19888then :
19889  printf %s "(cached) " >&6
19890else case e in #(
19891  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19892/* end confdefs.h.  */
19893int i;
19894_ACEOF
19895if ac_fn_c_try_compile "$LINENO"
19896then :
19897  xorg_cv_cc_flag_unused_command_line_argument=yes
19898else case e in #(
19899  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19900esac
19901fi
19902rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19903esac
19904fi
19905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19906printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19907	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19908	CFLAGS="$xorg_testset_save_CFLAGS"
19909fi
19910
19911found="no"
19912
19913	if test $found = "no" ; then
19914		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19915			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19916		fi
19917
19918		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19919			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19920		fi
19921
19922		CFLAGS="$CFLAGS -Werror=attributes"
19923
19924		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19925printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19926		cacheid=xorg_cv_cc_flag__Werror_attributes
19927		if eval test \${$cacheid+y}
19928then :
19929  printf %s "(cached) " >&6
19930else case e in #(
19931  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19932/* end confdefs.h.  */
19933int i;
19934int
19935main (void)
19936{
19937
19938  ;
19939  return 0;
19940}
19941_ACEOF
19942if ac_fn_c_try_link "$LINENO"
19943then :
19944  eval $cacheid=yes
19945else case e in #(
19946  e) eval $cacheid=no ;;
19947esac
19948fi
19949rm -f core conftest.err conftest.$ac_objext conftest.beam \
19950    conftest$ac_exeext conftest.$ac_ext ;;
19951esac
19952fi
19953
19954
19955		CFLAGS="$xorg_testset_save_CFLAGS"
19956
19957		eval supported=\$$cacheid
19958		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19959printf "%s\n" "$supported" >&6; }
19960		if test "$supported" = "yes" ; then
19961			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19962			found="yes"
19963		fi
19964	fi
19965
19966
19967
19968if test "x$STRICT_COMPILE" = "xyes"; then
19969    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19970    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19971fi
19972
19973
19974
19975
19976
19977
19978
19979
19980cat >>confdefs.h <<_ACEOF
19981#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19982_ACEOF
19983
19984	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19985	if test "x$PVM" = "x"; then
19986		PVM="0"
19987	fi
19988
19989printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19990
19991	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19992	if test "x$PVP" = "x"; then
19993		PVP="0"
19994	fi
19995
19996printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19997
19998
19999
20000CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
20001mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
20002|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
20003touch \$(top_srcdir)/ChangeLog; \
20004echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
20005
20006
20007
20008
20009macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
20010INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
20011mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
20012|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
20013touch \$(top_srcdir)/INSTALL; \
20014echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
20015
20016
20017
20018
20019
20020
20021case $host_os in
20022    solaris*)
20023        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
20024        # check for a man page file found in later versions that use
20025        # traditional section numbers instead
20026        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
20027printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
20028if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
20029then :
20030  printf %s "(cached) " >&6
20031else case e in #(
20032  e) test "$cross_compiling" = yes &&
20033  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20034if test -r "/usr/share/man/man7/attributes.7"; then
20035  ac_cv_file__usr_share_man_man7_attributes_7=yes
20036else
20037  ac_cv_file__usr_share_man_man7_attributes_7=no
20038fi ;;
20039esac
20040fi
20041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
20042printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
20043if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
20044then :
20045  SYSV_MAN_SECTIONS=false
20046else case e in #(
20047  e) SYSV_MAN_SECTIONS=true ;;
20048esac
20049fi
20050
20051        ;;
20052    *) SYSV_MAN_SECTIONS=false ;;
20053esac
20054
20055if test x$APP_MAN_SUFFIX = x    ; then
20056    APP_MAN_SUFFIX=1
20057fi
20058if test x$APP_MAN_DIR = x    ; then
20059    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20060fi
20061
20062if test x$LIB_MAN_SUFFIX = x    ; then
20063    LIB_MAN_SUFFIX=3
20064fi
20065if test x$LIB_MAN_DIR = x    ; then
20066    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20067fi
20068
20069if test x$FILE_MAN_SUFFIX = x    ; then
20070    case $SYSV_MAN_SECTIONS in
20071	true)				FILE_MAN_SUFFIX=4  ;;
20072	*)				FILE_MAN_SUFFIX=5  ;;
20073    esac
20074fi
20075if test x$FILE_MAN_DIR = x    ; then
20076    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20077fi
20078
20079if test x$MISC_MAN_SUFFIX = x    ; then
20080    case $SYSV_MAN_SECTIONS in
20081	true)				MISC_MAN_SUFFIX=5  ;;
20082	*)				MISC_MAN_SUFFIX=7  ;;
20083    esac
20084fi
20085if test x$MISC_MAN_DIR = x    ; then
20086    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20087fi
20088
20089if test x$DRIVER_MAN_SUFFIX = x    ; then
20090    case $SYSV_MAN_SECTIONS in
20091	true)				DRIVER_MAN_SUFFIX=7  ;;
20092	*)				DRIVER_MAN_SUFFIX=4  ;;
20093    esac
20094fi
20095if test x$DRIVER_MAN_DIR = x    ; then
20096    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20097fi
20098
20099if test x$ADMIN_MAN_SUFFIX = x    ; then
20100    case $SYSV_MAN_SECTIONS in
20101	true)				ADMIN_MAN_SUFFIX=1m ;;
20102	*)				ADMIN_MAN_SUFFIX=8  ;;
20103    esac
20104fi
20105if test x$ADMIN_MAN_DIR = x    ; then
20106    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20107fi
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121
20122
20123XORG_MAN_PAGE="X Version 11"
20124
20125MAN_SUBSTS="\
20126	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20127	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20128	-e 's|__xservername__|Xorg|g' \
20129	-e 's|__xconfigfile__|xorg.conf|g' \
20130	-e 's|__projectroot__|\$(prefix)|g' \
20131	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
20132	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
20133	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
20134	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
20135	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
20136	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
20137	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
20138
20139
20140
20141
20142AM_DEFAULT_VERBOSITY=0
20143
20144
20145
20146# Check whether --enable-malloc0returnsnull was given.
20147if test ${enable_malloc0returnsnull+y}
20148then :
20149  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
20150else case e in #(
20151  e) MALLOC_ZERO_RETURNS_NULL=auto ;;
20152esac
20153fi
20154
20155
20156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
20157printf %s "checking whether malloc(0) returns NULL... " >&6; }
20158if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
20159if test ${xorg_cv_malloc0_returns_null+y}
20160then :
20161  printf %s "(cached) " >&6
20162else case e in #(
20163  e) if test "$cross_compiling" = yes
20164then :
20165  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20166printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20167as_fn_error $? "cannot run test program while cross compiling
20168See 'config.log' for more details" "$LINENO" 5; }
20169else case e in #(
20170  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20171/* end confdefs.h.  */
20172
20173#include <stdlib.h>
20174
20175int
20176main (void)
20177{
20178
20179    char *m0, *r0, *c0, *p;
20180    m0 = malloc(0);
20181    p = malloc(10);
20182    r0 = realloc(p,0);
20183    c0 = calloc(0,10);
20184    exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
20185
20186  ;
20187  return 0;
20188}
20189_ACEOF
20190if ac_fn_c_try_run "$LINENO"
20191then :
20192  xorg_cv_malloc0_returns_null=yes
20193else case e in #(
20194  e) xorg_cv_malloc0_returns_null=no ;;
20195esac
20196fi
20197rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20198  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20199esac
20200fi
20201 ;;
20202esac
20203fi
20204
20205MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
20206fi
20207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
20208printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; }
20209
20210if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
20211	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
20212	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
20213	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
20214else
20215	MALLOC_ZERO_CFLAGS=""
20216	XMALLOC_ZERO_CFLAGS=""
20217	XTMALLOC_ZERO_CFLAGS=""
20218fi
20219
20220
20221
20222
20223
20224
20225# Obtain compiler/linker options for dependencies
20226
20227pkg_failed=no
20228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FS" >&5
20229printf %s "checking for FS... " >&6; }
20230
20231if test -n "$FS_CFLAGS"; then
20232    pkg_cv_FS_CFLAGS="$FS_CFLAGS"
20233 elif test -n "$PKG_CONFIG"; then
20234    if test -n "$PKG_CONFIG" && \
20235    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 fontsproto xtrans\""; } >&5
20236  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 fontsproto xtrans") 2>&5
20237  ac_status=$?
20238  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20239  test $ac_status = 0; }; then
20240  pkg_cv_FS_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 fontsproto xtrans" 2>/dev/null`
20241		      test "x$?" != "x0" && pkg_failed=yes
20242else
20243  pkg_failed=yes
20244fi
20245 else
20246    pkg_failed=untried
20247fi
20248if test -n "$FS_LIBS"; then
20249    pkg_cv_FS_LIBS="$FS_LIBS"
20250 elif test -n "$PKG_CONFIG"; then
20251    if test -n "$PKG_CONFIG" && \
20252    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 fontsproto xtrans\""; } >&5
20253  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 fontsproto xtrans") 2>&5
20254  ac_status=$?
20255  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20256  test $ac_status = 0; }; then
20257  pkg_cv_FS_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 fontsproto xtrans" 2>/dev/null`
20258		      test "x$?" != "x0" && pkg_failed=yes
20259else
20260  pkg_failed=yes
20261fi
20262 else
20263    pkg_failed=untried
20264fi
20265
20266
20267
20268if test $pkg_failed = yes; then
20269   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20270printf "%s\n" "no" >&6; }
20271
20272if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20273        _pkg_short_errors_supported=yes
20274else
20275        _pkg_short_errors_supported=no
20276fi
20277        if test $_pkg_short_errors_supported = yes; then
20278	        FS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.17 fontsproto xtrans" 2>&1`
20279        else
20280	        FS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.17 fontsproto xtrans" 2>&1`
20281        fi
20282	# Put the nasty error message in config.log where it belongs
20283	echo "$FS_PKG_ERRORS" >&5
20284
20285	as_fn_error $? "Package requirements (xproto >= 7.0.17 fontsproto xtrans) were not met:
20286
20287$FS_PKG_ERRORS
20288
20289Consider adjusting the PKG_CONFIG_PATH environment variable if you
20290installed software in a non-standard prefix.
20291
20292Alternatively, you may set the environment variables FS_CFLAGS
20293and FS_LIBS to avoid the need to call pkg-config.
20294See the pkg-config man page for more details." "$LINENO" 5
20295elif test $pkg_failed = untried; then
20296     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20297printf "%s\n" "no" >&6; }
20298	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20299printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20300as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20301is in your PATH or set the PKG_CONFIG environment variable to the full
20302path to pkg-config.
20303
20304Alternatively, you may set the environment variables FS_CFLAGS
20305and FS_LIBS to avoid the need to call pkg-config.
20306See the pkg-config man page for more details.
20307
20308To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20309See 'config.log' for more details" "$LINENO" 5; }
20310else
20311	FS_CFLAGS=$pkg_cv_FS_CFLAGS
20312	FS_LIBS=$pkg_cv_FS_LIBS
20313        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20314printf "%s\n" "yes" >&6; }
20315
20316fi
20317
20318# Find needed libraries for TCP sockets (pre-pended in $LIBS)
20319
20320
20321 case $host_os in
20322	mingw*)	unixdef="no"   ;;
20323	*)	unixdef="yes"  ;;
20324 esac
20325 # Check whether --enable-unix-transport was given.
20326if test ${enable_unix_transport+y}
20327then :
20328  enableval=$enable_unix_transport; UNIXCONN=$enableval
20329else case e in #(
20330  e) UNIXCONN=$unixdef ;;
20331esac
20332fi
20333
20334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
20335printf %s "checking if Xtrans should support UNIX socket connections... " >&6; }
20336 if test "$UNIXCONN" = "yes"; then
20337
20338printf "%s\n" "#define UNIXCONN 1" >>confdefs.h
20339
20340 fi
20341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
20342printf "%s\n" "$UNIXCONN" >&6; }
20343 # Check whether --enable-tcp-transport was given.
20344if test ${enable_tcp_transport+y}
20345then :
20346  enableval=$enable_tcp_transport; TCPCONN=$enableval
20347else case e in #(
20348  e) TCPCONN=yes ;;
20349esac
20350fi
20351
20352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
20353printf %s "checking if Xtrans should support TCP socket connections... " >&6; }
20354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
20355printf "%s\n" "$TCPCONN" >&6; }
20356 if test "$TCPCONN" = "yes"; then
20357
20358printf "%s\n" "#define TCPCONN 1" >>confdefs.h
20359
20360
20361 # SVR4 hides these in libraries other than libc
20362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
20363printf %s "checking for library containing socket... " >&6; }
20364if test ${ac_cv_search_socket+y}
20365then :
20366  printf %s "(cached) " >&6
20367else case e in #(
20368  e) ac_func_search_save_LIBS=$LIBS
20369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20370/* end confdefs.h.  */
20371
20372/* Override any GCC internal prototype to avoid an error.
20373   Use char because int might match the return type of a GCC
20374   builtin and then its argument prototype would still apply.
20375   The 'extern "C"' is for builds by C++ compilers;
20376   although this is not generally supported in C code supporting it here
20377   has little cost and some practical benefit (sr 110532).  */
20378#ifdef __cplusplus
20379extern "C"
20380#endif
20381char socket (void);
20382int
20383main (void)
20384{
20385return socket ();
20386  ;
20387  return 0;
20388}
20389_ACEOF
20390for ac_lib in '' socket
20391do
20392  if test -z "$ac_lib"; then
20393    ac_res="none required"
20394  else
20395    ac_res=-l$ac_lib
20396    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20397  fi
20398  if ac_fn_c_try_link "$LINENO"
20399then :
20400  ac_cv_search_socket=$ac_res
20401fi
20402rm -f core conftest.err conftest.$ac_objext conftest.beam \
20403    conftest$ac_exeext
20404  if test ${ac_cv_search_socket+y}
20405then :
20406  break
20407fi
20408done
20409if test ${ac_cv_search_socket+y}
20410then :
20411
20412else case e in #(
20413  e) ac_cv_search_socket=no ;;
20414esac
20415fi
20416rm conftest.$ac_ext
20417LIBS=$ac_func_search_save_LIBS ;;
20418esac
20419fi
20420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
20421printf "%s\n" "$ac_cv_search_socket" >&6; }
20422ac_res=$ac_cv_search_socket
20423if test "$ac_res" != no
20424then :
20425  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20426
20427fi
20428
20429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
20430printf %s "checking for library containing gethostbyname... " >&6; }
20431if test ${ac_cv_search_gethostbyname+y}
20432then :
20433  printf %s "(cached) " >&6
20434else case e in #(
20435  e) ac_func_search_save_LIBS=$LIBS
20436cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20437/* end confdefs.h.  */
20438
20439/* Override any GCC internal prototype to avoid an error.
20440   Use char because int might match the return type of a GCC
20441   builtin and then its argument prototype would still apply.
20442   The 'extern "C"' is for builds by C++ compilers;
20443   although this is not generally supported in C code supporting it here
20444   has little cost and some practical benefit (sr 110532).  */
20445#ifdef __cplusplus
20446extern "C"
20447#endif
20448char gethostbyname (void);
20449int
20450main (void)
20451{
20452return gethostbyname ();
20453  ;
20454  return 0;
20455}
20456_ACEOF
20457for ac_lib in '' nsl
20458do
20459  if test -z "$ac_lib"; then
20460    ac_res="none required"
20461  else
20462    ac_res=-l$ac_lib
20463    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20464  fi
20465  if ac_fn_c_try_link "$LINENO"
20466then :
20467  ac_cv_search_gethostbyname=$ac_res
20468fi
20469rm -f core conftest.err conftest.$ac_objext conftest.beam \
20470    conftest$ac_exeext
20471  if test ${ac_cv_search_gethostbyname+y}
20472then :
20473  break
20474fi
20475done
20476if test ${ac_cv_search_gethostbyname+y}
20477then :
20478
20479else case e in #(
20480  e) ac_cv_search_gethostbyname=no ;;
20481esac
20482fi
20483rm conftest.$ac_ext
20484LIBS=$ac_func_search_save_LIBS ;;
20485esac
20486fi
20487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
20488printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
20489ac_res=$ac_cv_search_gethostbyname
20490if test "$ac_res" != no
20491then :
20492  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20493
20494fi
20495
20496 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
20497   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
20498printf %s "checking for main in -lws2_32... " >&6; }
20499if test ${ac_cv_lib_ws2_32_main+y}
20500then :
20501  printf %s "(cached) " >&6
20502else case e in #(
20503  e) ac_check_lib_save_LIBS=$LIBS
20504LIBS="-lws2_32  $LIBS"
20505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20506/* end confdefs.h.  */
20507
20508
20509int
20510main (void)
20511{
20512return main ();
20513  ;
20514  return 0;
20515}
20516_ACEOF
20517if ac_fn_c_try_link "$LINENO"
20518then :
20519  ac_cv_lib_ws2_32_main=yes
20520else case e in #(
20521  e) ac_cv_lib_ws2_32_main=no ;;
20522esac
20523fi
20524rm -f core conftest.err conftest.$ac_objext conftest.beam \
20525    conftest$ac_exeext conftest.$ac_ext
20526LIBS=$ac_check_lib_save_LIBS ;;
20527esac
20528fi
20529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
20530printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
20531if test "x$ac_cv_lib_ws2_32_main" = xyes
20532then :
20533  printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
20534
20535  LIBS="-lws2_32 $LIBS"
20536
20537fi
20538
20539 fi
20540
20541 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
20542 # Check whether --enable-ipv6 was given.
20543if test ${enable_ipv6+y}
20544then :
20545  enableval=$enable_ipv6; IPV6CONN=$enableval
20546else case e in #(
20547  e) ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
20548if test "x$ac_cv_func_getaddrinfo" = xyes
20549then :
20550  IPV6CONN=yes
20551else case e in #(
20552  e) IPV6CONN=no ;;
20553esac
20554fi
20555 ;;
20556esac
20557fi
20558
20559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
20560printf %s "checking if IPv6 support should be built... " >&6; }
20561 if test "$IPV6CONN" = "yes"; then
20562
20563printf "%s\n" "#define IPv6 1" >>confdefs.h
20564
20565 fi
20566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
20567printf "%s\n" "$IPV6CONN" >&6; }
20568
20569 # 4.3BSD-Reno added a new member to struct sockaddr_in
20570 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
20571#include <sys/types.h>
20572#include <sys/socket.h>
20573#include <netinet/in.h>
20574
20575"
20576if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
20577then :
20578
20579printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h
20580
20581fi
20582
20583
20584 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
20585 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20586$ac_includes_default
20587#include <sys/socket.h>
20588"
20589if test "x$ac_cv_type_socklen_t" = xyes
20590then :
20591
20592printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
20593
20594
20595fi
20596
20597
20598 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
20599 # _XOPEN_SOURCE to get it (such as on Solaris)
20600 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20601$ac_includes_default
20602#include <sys/socket.h>
20603
20604"
20605if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
20606then :
20607
20608fi
20609
20610 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
20611 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
20612     unset ac_cv_member_struct_msghdr_msg_control
20613     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
20614printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
20615     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20616#define _XOPEN_SOURCE 600
20617$ac_includes_default
20618#include <sys/socket.h>
20619
20620"
20621if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
20622then :
20623
20624printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h
20625
20626
20627fi
20628
20629 fi
20630 # If that didn't work, fall back to XPG5/UNIX98 with C89
20631 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
20632     unset ac_cv_member_struct_msghdr_msg_control
20633     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
20634printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
20635     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20636#define _XOPEN_SOURCE 500
20637$ac_includes_default
20638#include <sys/socket.h>
20639
20640"
20641if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
20642then :
20643
20644printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
20645
20646
20647fi
20648
20649 fi
20650
20651
20652
20653 fi
20654 case $host_os in
20655	solaris*)		localdef="yes" ;;
20656	*)			localdef="no"  ;;
20657 esac
20658 # Check whether --enable-local-transport was given.
20659if test ${enable_local_transport+y}
20660then :
20661  enableval=$enable_local_transport; LOCALCONN=$enableval
20662else case e in #(
20663  e) LOCALCONN=$localdef ;;
20664esac
20665fi
20666
20667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
20668printf %s "checking if Xtrans should support os-specific local connections... " >&6; }
20669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
20670printf "%s\n" "$LOCALCONN" >&6; }
20671 if test "$LOCALCONN" = "yes"; then
20672
20673printf "%s\n" "#define LOCALCONN 1" >>confdefs.h
20674
20675 fi
20676
20677 # Other functions Xtrans may need
20678 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
20679if test "x$ac_cv_func_strcasecmp" = xyes
20680then :
20681  printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
20682
20683fi
20684ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
20685if test "x$ac_cv_func_strlcpy" = xyes
20686then :
20687  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
20688
20689fi
20690
20691
20692
20693
20694# Checks for library functions.
20695ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
20696if test "x$ac_cv_func_strlcpy" = xyes
20697then :
20698  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
20699
20700fi
20701ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
20702if test "x$ac_cv_func_strnlen" = xyes
20703then :
20704  printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
20705
20706fi
20707
20708ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
20709if test "x$ac_cv_func_reallocarray" = xyes
20710then :
20711  printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
20712
20713else case e in #(
20714  e) case " $LIBOBJS " in
20715  *" reallocarray.$ac_objext "* ) ;;
20716  *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
20717 ;;
20718esac
20719 ;;
20720esac
20721fi
20722
20723
20724# Allow checking code with lint, sparse, etc.
20725
20726
20727
20728
20729
20730# Check whether --with-lint was given.
20731if test ${with_lint+y}
20732then :
20733  withval=$with_lint; use_lint=$withval
20734else case e in #(
20735  e) use_lint=no ;;
20736esac
20737fi
20738
20739
20740# Obtain platform specific info like program name and options
20741# The lint program on FreeBSD and NetBSD is different from the one on Solaris
20742case $host_os in
20743  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
20744	lint_name=splint
20745	lint_options="-badflag"
20746	;;
20747  *freebsd* | *netbsd*)
20748	lint_name=lint
20749	lint_options="-u -b"
20750	;;
20751  *solaris*)
20752	lint_name=lint
20753	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
20754	;;
20755esac
20756
20757# Test for the presence of the program (either guessed by the code or spelled out by the user)
20758if test "x$use_lint" = x"yes" ; then
20759   # Extract the first word of "$lint_name", so it can be a program name with args.
20760set dummy $lint_name; ac_word=$2
20761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20762printf %s "checking for $ac_word... " >&6; }
20763if test ${ac_cv_path_LINT+y}
20764then :
20765  printf %s "(cached) " >&6
20766else case e in #(
20767  e) case $LINT in
20768  [\\/]* | ?:[\\/]*)
20769  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
20770  ;;
20771  *)
20772  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20773for as_dir in $PATH
20774do
20775  IFS=$as_save_IFS
20776  case $as_dir in #(((
20777    '') as_dir=./ ;;
20778    */) ;;
20779    *) as_dir=$as_dir/ ;;
20780  esac
20781    for ac_exec_ext in '' $ac_executable_extensions; do
20782  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20783    ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
20784    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20785    break 2
20786  fi
20787done
20788  done
20789IFS=$as_save_IFS
20790
20791  ;;
20792esac ;;
20793esac
20794fi
20795LINT=$ac_cv_path_LINT
20796if test -n "$LINT"; then
20797  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
20798printf "%s\n" "$LINT" >&6; }
20799else
20800  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20801printf "%s\n" "no" >&6; }
20802fi
20803
20804
20805   if test "x$LINT" = "x"; then
20806        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
20807   fi
20808elif test "x$use_lint" = x"no" ; then
20809   if test "x$LINT" != "x"; then
20810      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
20811printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
20812   fi
20813else
20814   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
20815fi
20816
20817# User supplied flags override default flags
20818if test "x$LINT_FLAGS" != "x"; then
20819   lint_options=$LINT_FLAGS
20820fi
20821
20822LINT_FLAGS=$lint_options
20823
20824 if test "x$LINT" != x; then
20825  LINT_TRUE=
20826  LINT_FALSE='#'
20827else
20828  LINT_TRUE='#'
20829  LINT_FALSE=
20830fi
20831
20832
20833
20834
20835
20836# Check whether --enable-lint-library was given.
20837if test ${enable_lint_library+y}
20838then :
20839  enableval=$enable_lint_library; make_lint_lib=$enableval
20840else case e in #(
20841  e) make_lint_lib=no ;;
20842esac
20843fi
20844
20845
20846if test "x$make_lint_lib" = x"yes" ; then
20847   LINTLIB=llib-lFS.ln
20848   if test "x$LINT" = "x"; then
20849        as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
20850   fi
20851elif test "x$make_lint_lib" != x"no" ; then
20852   as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
20853fi
20854
20855
20856 if test x$make_lint_lib != xno; then
20857  MAKE_LINT_LIB_TRUE=
20858  MAKE_LINT_LIB_FALSE='#'
20859else
20860  MAKE_LINT_LIB_TRUE='#'
20861  MAKE_LINT_LIB_FALSE=
20862fi
20863
20864
20865
20866
20867ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile libfs.pc"
20868
20869cat >confcache <<\_ACEOF
20870# This file is a shell script that caches the results of configure
20871# tests run on this system so they can be shared between configure
20872# scripts and configure runs, see configure's option --config-cache.
20873# It is not useful on other systems.  If it contains results you don't
20874# want to keep, you may remove or edit it.
20875#
20876# config.status only pays attention to the cache file if you give it
20877# the --recheck option to rerun configure.
20878#
20879# 'ac_cv_env_foo' variables (set or unset) will be overridden when
20880# loading this file, other *unset* 'ac_cv_foo' will be assigned the
20881# following values.
20882
20883_ACEOF
20884
20885# The following way of writing the cache mishandles newlines in values,
20886# but we know of no workaround that is simple, portable, and efficient.
20887# So, we kill variables containing newlines.
20888# Ultrix sh set writes to stderr and can't be redirected directly,
20889# and sets the high bit in the cache file unless we assign to the vars.
20890(
20891  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20892    eval ac_val=\$$ac_var
20893    case $ac_val in #(
20894    *${as_nl}*)
20895      case $ac_var in #(
20896      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20897printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20898      esac
20899      case $ac_var in #(
20900      _ | IFS | as_nl) ;; #(
20901      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20902      *) { eval $ac_var=; unset $ac_var;} ;;
20903      esac ;;
20904    esac
20905  done
20906
20907  (set) 2>&1 |
20908    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20909    *${as_nl}ac_space=\ *)
20910      # 'set' does not quote correctly, so add quotes: double-quote
20911      # substitution turns \\\\ into \\, and sed turns \\ into \.
20912      sed -n \
20913	"s/'/'\\\\''/g;
20914	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20915      ;; #(
20916    *)
20917      # 'set' quotes correctly as required by POSIX, so do not add quotes.
20918      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20919      ;;
20920    esac |
20921    sort
20922) |
20923  sed '
20924     /^ac_cv_env_/b end
20925     t clear
20926     :clear
20927     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20928     t end
20929     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20930     :end' >>confcache
20931if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20932  if test -w "$cache_file"; then
20933    if test "x$cache_file" != "x/dev/null"; then
20934      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20935printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20936      if test ! -f "$cache_file" || test -h "$cache_file"; then
20937	cat confcache >"$cache_file"
20938      else
20939        case $cache_file in #(
20940        */* | ?:*)
20941	  mv -f confcache "$cache_file"$$ &&
20942	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20943        *)
20944	  mv -f confcache "$cache_file" ;;
20945	esac
20946      fi
20947    fi
20948  else
20949    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20950printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20951  fi
20952fi
20953rm -f confcache
20954
20955test "x$prefix" = xNONE && prefix=$ac_default_prefix
20956# Let make expand exec_prefix.
20957test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20958
20959DEFS=-DHAVE_CONFIG_H
20960
20961ac_libobjs=
20962ac_ltlibobjs=
20963U=
20964for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20965  # 1. Remove the extension, and $U if already installed.
20966  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20967  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20968  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20969  #    will be set to the directory where LIBOBJS objects are built.
20970  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20971  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20972done
20973LIBOBJS=$ac_libobjs
20974
20975LTLIBOBJS=$ac_ltlibobjs
20976
20977
20978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20979printf %s "checking that generated files are newer than configure... " >&6; }
20980   if test -n "$am_sleep_pid"; then
20981     # Hide warnings about reused PIDs.
20982     wait $am_sleep_pid 2>/dev/null
20983   fi
20984   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20985printf "%s\n" "done" >&6; }
20986case $enable_silent_rules in # (((
20987  yes) AM_DEFAULT_VERBOSITY=0;;
20988   no) AM_DEFAULT_VERBOSITY=1;;
20989esac
20990if test $am_cv_make_support_nested_variables = yes; then
20991    AM_V='$(V)'
20992  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
20993else
20994  AM_V=$AM_DEFAULT_VERBOSITY
20995  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
20996fi
20997
20998 if test -n "$EXEEXT"; then
20999  am__EXEEXT_TRUE=
21000  am__EXEEXT_FALSE='#'
21001else
21002  am__EXEEXT_TRUE='#'
21003  am__EXEEXT_FALSE=
21004fi
21005
21006if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21007  as_fn_error $? "conditional \"AMDEP\" was never defined.
21008Usually this means the macro was only invoked conditionally." "$LINENO" 5
21009fi
21010if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21011  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21012Usually this means the macro was only invoked conditionally." "$LINENO" 5
21013fi
21014if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
21015  as_fn_error $? "conditional \"LINT\" was never defined.
21016Usually this means the macro was only invoked conditionally." "$LINENO" 5
21017fi
21018if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
21019  as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
21020Usually this means the macro was only invoked conditionally." "$LINENO" 5
21021fi
21022
21023: "${CONFIG_STATUS=./config.status}"
21024ac_write_fail=0
21025ac_clean_files_save=$ac_clean_files
21026ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21028printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21029as_write_fail=0
21030cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21031#! $SHELL
21032# Generated by $as_me.
21033# Run this file to recreate the current configuration.
21034# Compiler output produced by configure, useful for debugging
21035# configure, is in config.log if it exists.
21036
21037debug=false
21038ac_cs_recheck=false
21039ac_cs_silent=false
21040
21041SHELL=\${CONFIG_SHELL-$SHELL}
21042export SHELL
21043_ASEOF
21044cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21045## -------------------- ##
21046## M4sh Initialization. ##
21047## -------------------- ##
21048
21049# Be more Bourne compatible
21050DUALCASE=1; export DUALCASE # for MKS sh
21051if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21052then :
21053  emulate sh
21054  NULLCMD=:
21055  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21056  # is contrary to our usage.  Disable this feature.
21057  alias -g '${1+"$@"}'='"$@"'
21058  setopt NO_GLOB_SUBST
21059else case e in #(
21060  e) case `(set -o) 2>/dev/null` in #(
21061  *posix*) :
21062    set -o posix ;; #(
21063  *) :
21064     ;;
21065esac ;;
21066esac
21067fi
21068
21069
21070
21071# Reset variables that may have inherited troublesome values from
21072# the environment.
21073
21074# IFS needs to be set, to space, tab, and newline, in precisely that order.
21075# (If _AS_PATH_WALK were called with IFS unset, it would have the
21076# side effect of setting IFS to empty, thus disabling word splitting.)
21077# Quoting is to prevent editors from complaining about space-tab.
21078as_nl='
21079'
21080export as_nl
21081IFS=" ""	$as_nl"
21082
21083PS1='$ '
21084PS2='> '
21085PS4='+ '
21086
21087# Ensure predictable behavior from utilities with locale-dependent output.
21088LC_ALL=C
21089export LC_ALL
21090LANGUAGE=C
21091export LANGUAGE
21092
21093# We cannot yet rely on "unset" to work, but we need these variables
21094# to be unset--not just set to an empty or harmless value--now, to
21095# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
21096# also avoids known problems related to "unset" and subshell syntax
21097# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21098for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21099do eval test \${$as_var+y} \
21100  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21101done
21102
21103# Ensure that fds 0, 1, and 2 are open.
21104if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21105if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21106if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
21107
21108# The user is always right.
21109if ${PATH_SEPARATOR+false} :; then
21110  PATH_SEPARATOR=:
21111  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21112    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21113      PATH_SEPARATOR=';'
21114  }
21115fi
21116
21117
21118# Find who we are.  Look in the path if we contain no directory separator.
21119as_myself=
21120case $0 in #((
21121  *[\\/]* ) as_myself=$0 ;;
21122  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21123for as_dir in $PATH
21124do
21125  IFS=$as_save_IFS
21126  case $as_dir in #(((
21127    '') as_dir=./ ;;
21128    */) ;;
21129    *) as_dir=$as_dir/ ;;
21130  esac
21131    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21132  done
21133IFS=$as_save_IFS
21134
21135     ;;
21136esac
21137# We did not find ourselves, most probably we were run as 'sh COMMAND'
21138# in which case we are not to be found in the path.
21139if test "x$as_myself" = x; then
21140  as_myself=$0
21141fi
21142if test ! -f "$as_myself"; then
21143  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21144  exit 1
21145fi
21146
21147
21148
21149# as_fn_error STATUS ERROR [LINENO LOG_FD]
21150# ----------------------------------------
21151# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21152# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21153# script with STATUS, using 1 if that was 0.
21154as_fn_error ()
21155{
21156  as_status=$1; test $as_status -eq 0 && as_status=1
21157  if test "$4"; then
21158    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21159    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21160  fi
21161  printf "%s\n" "$as_me: error: $2" >&2
21162  as_fn_exit $as_status
21163} # as_fn_error
21164
21165
21166# as_fn_set_status STATUS
21167# -----------------------
21168# Set $? to STATUS, without forking.
21169as_fn_set_status ()
21170{
21171  return $1
21172} # as_fn_set_status
21173
21174# as_fn_exit STATUS
21175# -----------------
21176# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21177as_fn_exit ()
21178{
21179  set +e
21180  as_fn_set_status $1
21181  exit $1
21182} # as_fn_exit
21183
21184# as_fn_unset VAR
21185# ---------------
21186# Portably unset VAR.
21187as_fn_unset ()
21188{
21189  { eval $1=; unset $1;}
21190}
21191as_unset=as_fn_unset
21192
21193# as_fn_append VAR VALUE
21194# ----------------------
21195# Append the text in VALUE to the end of the definition contained in VAR. Take
21196# advantage of any shell optimizations that allow amortized linear growth over
21197# repeated appends, instead of the typical quadratic growth present in naive
21198# implementations.
21199if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21200then :
21201  eval 'as_fn_append ()
21202  {
21203    eval $1+=\$2
21204  }'
21205else case e in #(
21206  e) as_fn_append ()
21207  {
21208    eval $1=\$$1\$2
21209  } ;;
21210esac
21211fi # as_fn_append
21212
21213# as_fn_arith ARG...
21214# ------------------
21215# Perform arithmetic evaluation on the ARGs, and store the result in the
21216# global $as_val. Take advantage of shells that can avoid forks. The arguments
21217# must be portable across $(()) and expr.
21218if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21219then :
21220  eval 'as_fn_arith ()
21221  {
21222    as_val=$(( $* ))
21223  }'
21224else case e in #(
21225  e) as_fn_arith ()
21226  {
21227    as_val=`expr "$@" || test $? -eq 1`
21228  } ;;
21229esac
21230fi # as_fn_arith
21231
21232
21233if expr a : '\(a\)' >/dev/null 2>&1 &&
21234   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21235  as_expr=expr
21236else
21237  as_expr=false
21238fi
21239
21240if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21241  as_basename=basename
21242else
21243  as_basename=false
21244fi
21245
21246if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21247  as_dirname=dirname
21248else
21249  as_dirname=false
21250fi
21251
21252as_me=`$as_basename -- "$0" ||
21253$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21254	 X"$0" : 'X\(//\)$' \| \
21255	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21256printf "%s\n" X/"$0" |
21257    sed '/^.*\/\([^/][^/]*\)\/*$/{
21258	    s//\1/
21259	    q
21260	  }
21261	  /^X\/\(\/\/\)$/{
21262	    s//\1/
21263	    q
21264	  }
21265	  /^X\/\(\/\).*/{
21266	    s//\1/
21267	    q
21268	  }
21269	  s/.*/./; q'`
21270
21271# Avoid depending upon Character Ranges.
21272as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21273as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21274as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21275as_cr_digits='0123456789'
21276as_cr_alnum=$as_cr_Letters$as_cr_digits
21277
21278
21279# Determine whether it's possible to make 'echo' print without a newline.
21280# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21281# for compatibility with existing Makefiles.
21282ECHO_C= ECHO_N= ECHO_T=
21283case `echo -n x` in #(((((
21284-n*)
21285  case `echo 'xy\c'` in
21286  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21287  xy)  ECHO_C='\c';;
21288  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21289       ECHO_T='	';;
21290  esac;;
21291*)
21292  ECHO_N='-n';;
21293esac
21294
21295# For backward compatibility with old third-party macros, we provide
21296# the shell variables $as_echo and $as_echo_n.  New code should use
21297# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21298as_echo='printf %s\n'
21299as_echo_n='printf %s'
21300
21301rm -f conf$$ conf$$.exe conf$$.file
21302if test -d conf$$.dir; then
21303  rm -f conf$$.dir/conf$$.file
21304else
21305  rm -f conf$$.dir
21306  mkdir conf$$.dir 2>/dev/null
21307fi
21308if (echo >conf$$.file) 2>/dev/null; then
21309  if ln -s conf$$.file conf$$ 2>/dev/null; then
21310    as_ln_s='ln -s'
21311    # ... but there are two gotchas:
21312    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
21313    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
21314    # In both cases, we have to default to 'cp -pR'.
21315    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21316      as_ln_s='cp -pR'
21317  elif ln conf$$.file conf$$ 2>/dev/null; then
21318    as_ln_s=ln
21319  else
21320    as_ln_s='cp -pR'
21321  fi
21322else
21323  as_ln_s='cp -pR'
21324fi
21325rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21326rmdir conf$$.dir 2>/dev/null
21327
21328
21329# as_fn_mkdir_p
21330# -------------
21331# Create "$as_dir" as a directory, including parents if necessary.
21332as_fn_mkdir_p ()
21333{
21334
21335  case $as_dir in #(
21336  -*) as_dir=./$as_dir;;
21337  esac
21338  test -d "$as_dir" || eval $as_mkdir_p || {
21339    as_dirs=
21340    while :; do
21341      case $as_dir in #(
21342      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21343      *) as_qdir=$as_dir;;
21344      esac
21345      as_dirs="'$as_qdir' $as_dirs"
21346      as_dir=`$as_dirname -- "$as_dir" ||
21347$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21348	 X"$as_dir" : 'X\(//\)[^/]' \| \
21349	 X"$as_dir" : 'X\(//\)$' \| \
21350	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21351printf "%s\n" X"$as_dir" |
21352    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21353	    s//\1/
21354	    q
21355	  }
21356	  /^X\(\/\/\)[^/].*/{
21357	    s//\1/
21358	    q
21359	  }
21360	  /^X\(\/\/\)$/{
21361	    s//\1/
21362	    q
21363	  }
21364	  /^X\(\/\).*/{
21365	    s//\1/
21366	    q
21367	  }
21368	  s/.*/./; q'`
21369      test -d "$as_dir" && break
21370    done
21371    test -z "$as_dirs" || eval "mkdir $as_dirs"
21372  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21373
21374
21375} # as_fn_mkdir_p
21376if mkdir -p . 2>/dev/null; then
21377  as_mkdir_p='mkdir -p "$as_dir"'
21378else
21379  test -d ./-p && rmdir ./-p
21380  as_mkdir_p=false
21381fi
21382
21383
21384# as_fn_executable_p FILE
21385# -----------------------
21386# Test if FILE is an executable regular file.
21387as_fn_executable_p ()
21388{
21389  test -f "$1" && test -x "$1"
21390} # as_fn_executable_p
21391as_test_x='test -x'
21392as_executable_p=as_fn_executable_p
21393
21394# Sed expression to map a string onto a valid CPP name.
21395as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21396as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
21397
21398# Sed expression to map a string onto a valid variable name.
21399as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21400as_tr_sh="eval sed '$as_sed_sh'" # deprecated
21401
21402
21403exec 6>&1
21404## ----------------------------------- ##
21405## Main body of $CONFIG_STATUS script. ##
21406## ----------------------------------- ##
21407_ASEOF
21408test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21409
21410cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21411# Save the log message, to keep $0 and so on meaningful, and to
21412# report actual input values of CONFIG_FILES etc. instead of their
21413# values after options handling.
21414ac_log="
21415This file was extended by libFS $as_me 1.0.10, which was
21416generated by GNU Autoconf 2.72.  Invocation command line was
21417
21418  CONFIG_FILES    = $CONFIG_FILES
21419  CONFIG_HEADERS  = $CONFIG_HEADERS
21420  CONFIG_LINKS    = $CONFIG_LINKS
21421  CONFIG_COMMANDS = $CONFIG_COMMANDS
21422  $ $0 $@
21423
21424on `(hostname || uname -n) 2>/dev/null | sed 1q`
21425"
21426
21427_ACEOF
21428
21429case $ac_config_files in *"
21430"*) set x $ac_config_files; shift; ac_config_files=$*;;
21431esac
21432
21433case $ac_config_headers in *"
21434"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21435esac
21436
21437
21438cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21439# Files that config.status was made for.
21440config_files="$ac_config_files"
21441config_headers="$ac_config_headers"
21442config_commands="$ac_config_commands"
21443
21444_ACEOF
21445
21446cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21447ac_cs_usage="\
21448'$as_me' instantiates files and other configuration actions
21449from templates according to the current configuration.  Unless the files
21450and actions are specified as TAGs, all are instantiated by default.
21451
21452Usage: $0 [OPTION]... [TAG]...
21453
21454  -h, --help       print this help, then exit
21455  -V, --version    print version number and configuration settings, then exit
21456      --config     print configuration, then exit
21457  -q, --quiet, --silent
21458                   do not print progress messages
21459  -d, --debug      don't remove temporary files
21460      --recheck    update $as_me by reconfiguring in the same conditions
21461      --file=FILE[:TEMPLATE]
21462                   instantiate the configuration file FILE
21463      --header=FILE[:TEMPLATE]
21464                   instantiate the configuration header FILE
21465
21466Configuration files:
21467$config_files
21468
21469Configuration headers:
21470$config_headers
21471
21472Configuration commands:
21473$config_commands
21474
21475Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libfs/-/issues>."
21476
21477_ACEOF
21478ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21479ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21481ac_cs_config='$ac_cs_config_escaped'
21482ac_cs_version="\\
21483libFS config.status 1.0.10
21484configured by $0, generated by GNU Autoconf 2.72,
21485  with options \\"\$ac_cs_config\\"
21486
21487Copyright (C) 2023 Free Software Foundation, Inc.
21488This config.status script is free software; the Free Software Foundation
21489gives unlimited permission to copy, distribute and modify it."
21490
21491ac_pwd='$ac_pwd'
21492srcdir='$srcdir'
21493INSTALL='$INSTALL'
21494MKDIR_P='$MKDIR_P'
21495AWK='$AWK'
21496test -n "\$AWK" || AWK=awk
21497_ACEOF
21498
21499cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21500# The default lists apply if the user does not specify any file.
21501ac_need_defaults=:
21502while test $# != 0
21503do
21504  case $1 in
21505  --*=?*)
21506    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21507    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21508    ac_shift=:
21509    ;;
21510  --*=)
21511    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21512    ac_optarg=
21513    ac_shift=:
21514    ;;
21515  *)
21516    ac_option=$1
21517    ac_optarg=$2
21518    ac_shift=shift
21519    ;;
21520  esac
21521
21522  case $ac_option in
21523  # Handling of the options.
21524  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21525    ac_cs_recheck=: ;;
21526  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21527    printf "%s\n" "$ac_cs_version"; exit ;;
21528  --config | --confi | --conf | --con | --co | --c )
21529    printf "%s\n" "$ac_cs_config"; exit ;;
21530  --debug | --debu | --deb | --de | --d | -d )
21531    debug=: ;;
21532  --file | --fil | --fi | --f )
21533    $ac_shift
21534    case $ac_optarg in
21535    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21536    '') as_fn_error $? "missing file argument" ;;
21537    esac
21538    as_fn_append CONFIG_FILES " '$ac_optarg'"
21539    ac_need_defaults=false;;
21540  --header | --heade | --head | --hea )
21541    $ac_shift
21542    case $ac_optarg in
21543    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21544    esac
21545    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21546    ac_need_defaults=false;;
21547  --he | --h)
21548    # Conflict between --help and --header
21549    as_fn_error $? "ambiguous option: '$1'
21550Try '$0 --help' for more information.";;
21551  --help | --hel | -h )
21552    printf "%s\n" "$ac_cs_usage"; exit ;;
21553  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21554  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21555    ac_cs_silent=: ;;
21556
21557  # This is an error.
21558  -*) as_fn_error $? "unrecognized option: '$1'
21559Try '$0 --help' for more information." ;;
21560
21561  *) as_fn_append ac_config_targets " $1"
21562     ac_need_defaults=false ;;
21563
21564  esac
21565  shift
21566done
21567
21568ac_configure_extra_args=
21569
21570if $ac_cs_silent; then
21571  exec 6>/dev/null
21572  ac_configure_extra_args="$ac_configure_extra_args --silent"
21573fi
21574
21575_ACEOF
21576cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21577if \$ac_cs_recheck; then
21578  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21579  shift
21580  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21581  CONFIG_SHELL='$SHELL'
21582  export CONFIG_SHELL
21583  exec "\$@"
21584fi
21585
21586_ACEOF
21587cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21588exec 5>>config.log
21589{
21590  echo
21591  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21592## Running $as_me. ##
21593_ASBOX
21594  printf "%s\n" "$ac_log"
21595} >&5
21596
21597_ACEOF
21598cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21599#
21600# INIT-COMMANDS
21601#
21602AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21603
21604
21605# The HP-UX ksh and POSIX shell print the target directory to stdout
21606# if CDPATH is set.
21607(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21608
21609sed_quote_subst='$sed_quote_subst'
21610double_quote_subst='$double_quote_subst'
21611delay_variable_subst='$delay_variable_subst'
21612macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21613macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21614enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21615enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21616pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21617enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21618shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21619SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21620ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21621PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21622host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21623host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21624host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21625build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21626build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21627build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21628SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21629Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21630GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21631EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21632FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21633LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21634NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21635LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21636max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21637ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21638exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21639lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21640lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21641lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21642lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21643lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21644reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21645reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21646FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21647OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21648deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21649file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21650file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21651want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21652DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21653sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21654AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21655lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21656AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21657archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21658STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21659RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21660old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21661old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21662old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21663lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21664CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21665CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21666compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21667GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21668lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21669lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21670lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21671lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21672lt_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"`'
21673lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21674nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21675lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21676lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21677objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21678MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21679lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21680lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21681lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21682lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21683lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21684need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21685MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21686DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21687NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21688LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21689OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21690OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21691libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21692shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21693extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21694archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21695enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21696export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21697whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21698compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21699old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21700old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21701archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21702archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21703module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21704module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21705with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21706allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21707no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21708hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21709hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21710hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21711hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21712hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21713hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21714hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21715inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21716link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21717always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21718export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21719exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21720include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21721prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21722postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21723file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21724variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21725need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21726need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21727version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21728runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21729shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21730shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21731libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21732library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21733soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21734install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21735postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21736postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21737finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21738finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21739hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21740sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21741configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21742configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21743hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21744enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21745enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21746enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21747old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21748striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21749
21750LTCC='$LTCC'
21751LTCFLAGS='$LTCFLAGS'
21752compiler='$compiler_DEFAULT'
21753
21754# A function that is used when there is no print builtin or printf.
21755func_fallback_echo ()
21756{
21757  eval 'cat <<_LTECHO_EOF
21758\$1
21759_LTECHO_EOF'
21760}
21761
21762# Quote evaled strings.
21763for var in SHELL \
21764ECHO \
21765PATH_SEPARATOR \
21766SED \
21767GREP \
21768EGREP \
21769FGREP \
21770LD \
21771NM \
21772LN_S \
21773lt_SP2NL \
21774lt_NL2SP \
21775reload_flag \
21776FILECMD \
21777OBJDUMP \
21778deplibs_check_method \
21779file_magic_cmd \
21780file_magic_glob \
21781want_nocaseglob \
21782DLLTOOL \
21783sharedlib_from_linklib_cmd \
21784AR \
21785archiver_list_spec \
21786STRIP \
21787RANLIB \
21788CC \
21789CFLAGS \
21790compiler \
21791lt_cv_sys_global_symbol_pipe \
21792lt_cv_sys_global_symbol_to_cdecl \
21793lt_cv_sys_global_symbol_to_import \
21794lt_cv_sys_global_symbol_to_c_name_address \
21795lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21796lt_cv_nm_interface \
21797nm_file_list_spec \
21798lt_cv_truncate_bin \
21799lt_prog_compiler_no_builtin_flag \
21800lt_prog_compiler_pic \
21801lt_prog_compiler_wl \
21802lt_prog_compiler_static \
21803lt_cv_prog_compiler_c_o \
21804need_locks \
21805MANIFEST_TOOL \
21806DSYMUTIL \
21807NMEDIT \
21808LIPO \
21809OTOOL \
21810OTOOL64 \
21811shrext_cmds \
21812export_dynamic_flag_spec \
21813whole_archive_flag_spec \
21814compiler_needs_object \
21815with_gnu_ld \
21816allow_undefined_flag \
21817no_undefined_flag \
21818hardcode_libdir_flag_spec \
21819hardcode_libdir_separator \
21820exclude_expsyms \
21821include_expsyms \
21822file_list_spec \
21823variables_saved_for_relink \
21824libname_spec \
21825library_names_spec \
21826soname_spec \
21827install_override_mode \
21828finish_eval \
21829old_striplib \
21830striplib; do
21831    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21832    *[\\\\\\\`\\"\\\$]*)
21833      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21834      ;;
21835    *)
21836      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21837      ;;
21838    esac
21839done
21840
21841# Double-quote double-evaled strings.
21842for var in reload_cmds \
21843old_postinstall_cmds \
21844old_postuninstall_cmds \
21845old_archive_cmds \
21846extract_expsyms_cmds \
21847old_archive_from_new_cmds \
21848old_archive_from_expsyms_cmds \
21849archive_cmds \
21850archive_expsym_cmds \
21851module_cmds \
21852module_expsym_cmds \
21853export_symbols_cmds \
21854prelink_cmds \
21855postlink_cmds \
21856postinstall_cmds \
21857postuninstall_cmds \
21858finish_cmds \
21859sys_lib_search_path_spec \
21860configure_time_dlsearch_path \
21861configure_time_lt_sys_library_path; do
21862    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21863    *[\\\\\\\`\\"\\\$]*)
21864      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21865      ;;
21866    *)
21867      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21868      ;;
21869    esac
21870done
21871
21872ac_aux_dir='$ac_aux_dir'
21873
21874# See if we are running on zsh, and set the options that allow our
21875# commands through without removal of \ escapes INIT.
21876if test -n "\${ZSH_VERSION+set}"; then
21877   setopt NO_GLOB_SUBST
21878fi
21879
21880
21881    PACKAGE='$PACKAGE'
21882    VERSION='$VERSION'
21883    RM='$RM'
21884    ofile='$ofile'
21885
21886
21887
21888
21889_ACEOF
21890
21891cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21892
21893# Handling of arguments.
21894for ac_config_target in $ac_config_targets
21895do
21896  case $ac_config_target in
21897    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21898    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21899    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21900    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21901    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21902    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21903    "libfs.pc") CONFIG_FILES="$CONFIG_FILES libfs.pc" ;;
21904
21905  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
21906  esac
21907done
21908
21909
21910# If the user did not use the arguments to specify the items to instantiate,
21911# then the envvar interface is used.  Set only those that are not.
21912# We use the long form for the default assignment because of an extremely
21913# bizarre bug on SunOS 4.1.3.
21914if $ac_need_defaults; then
21915  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21916  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21917  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21918fi
21919
21920# Have a temporary directory for convenience.  Make it in the build tree
21921# simply because there is no reason against having it here, and in addition,
21922# creating and moving files from /tmp can sometimes cause problems.
21923# Hook for its removal unless debugging.
21924# Note that there is a small window in which the directory will not be cleaned:
21925# after its creation but before its name has been assigned to '$tmp'.
21926$debug ||
21927{
21928  tmp= ac_tmp=
21929  trap 'exit_status=$?
21930  : "${ac_tmp:=$tmp}"
21931  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21932' 0
21933  trap 'as_fn_exit 1' 1 2 13 15
21934}
21935# Create a (secure) tmp directory for tmp files.
21936
21937{
21938  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21939  test -d "$tmp"
21940}  ||
21941{
21942  tmp=./conf$$-$RANDOM
21943  (umask 077 && mkdir "$tmp")
21944} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21945ac_tmp=$tmp
21946
21947# Set up the scripts for CONFIG_FILES section.
21948# No need to generate them if there are no CONFIG_FILES.
21949# This happens for instance with './config.status config.h'.
21950if test -n "$CONFIG_FILES"; then
21951
21952
21953ac_cr=`echo X | tr X '\015'`
21954# On cygwin, bash can eat \r inside `` if the user requested igncr.
21955# But we know of no other shell where ac_cr would be empty at this
21956# point, so we can use a bashism as a fallback.
21957if test "x$ac_cr" = x; then
21958  eval ac_cr=\$\'\\r\'
21959fi
21960ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21961if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21962  ac_cs_awk_cr='\\r'
21963else
21964  ac_cs_awk_cr=$ac_cr
21965fi
21966
21967echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21968_ACEOF
21969
21970
21971{
21972  echo "cat >conf$$subs.awk <<_ACEOF" &&
21973  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21974  echo "_ACEOF"
21975} >conf$$subs.sh ||
21976  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21977ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21978ac_delim='%!_!# '
21979for ac_last_try in false false false false false :; do
21980  . ./conf$$subs.sh ||
21981    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21982
21983  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21984  if test $ac_delim_n = $ac_delim_num; then
21985    break
21986  elif $ac_last_try; then
21987    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21988  else
21989    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21990  fi
21991done
21992rm -f conf$$subs.sh
21993
21994cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21995cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21996_ACEOF
21997sed -n '
21998h
21999s/^/S["/; s/!.*/"]=/
22000p
22001g
22002s/^[^!]*!//
22003:repl
22004t repl
22005s/'"$ac_delim"'$//
22006t delim
22007:nl
22008h
22009s/\(.\{148\}\)..*/\1/
22010t more1
22011s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22012p
22013n
22014b repl
22015:more1
22016s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22017p
22018g
22019s/.\{148\}//
22020t nl
22021:delim
22022h
22023s/\(.\{148\}\)..*/\1/
22024t more2
22025s/["\\]/\\&/g; s/^/"/; s/$/"/
22026p
22027b
22028:more2
22029s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22030p
22031g
22032s/.\{148\}//
22033t delim
22034' <conf$$subs.awk | sed '
22035/^[^""]/{
22036  N
22037  s/\n//
22038}
22039' >>$CONFIG_STATUS || ac_write_fail=1
22040rm -f conf$$subs.awk
22041cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22042_ACAWK
22043cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22044  for (key in S) S_is_set[key] = 1
22045  FS = ""
22046
22047}
22048{
22049  line = $ 0
22050  nfields = split(line, field, "@")
22051  substed = 0
22052  len = length(field[1])
22053  for (i = 2; i < nfields; i++) {
22054    key = field[i]
22055    keylen = length(key)
22056    if (S_is_set[key]) {
22057      value = S[key]
22058      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22059      len += length(value) + length(field[++i])
22060      substed = 1
22061    } else
22062      len += 1 + keylen
22063  }
22064
22065  print line
22066}
22067
22068_ACAWK
22069_ACEOF
22070cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22071if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22072  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22073else
22074  cat
22075fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22076  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22077_ACEOF
22078
22079# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22080# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22081# trailing colons and then remove the whole line if VPATH becomes empty
22082# (actually we leave an empty line to preserve line numbers).
22083if test "x$srcdir" = x.; then
22084  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
22085h
22086s///
22087s/^/:/
22088s/[	 ]*$/:/
22089s/:\$(srcdir):/:/g
22090s/:\${srcdir}:/:/g
22091s/:@srcdir@:/:/g
22092s/^:*//
22093s/:*$//
22094x
22095s/\(=[	 ]*\).*/\1/
22096G
22097s/\n//
22098s/^[^=]*=[	 ]*$//
22099}'
22100fi
22101
22102cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22103fi # test -n "$CONFIG_FILES"
22104
22105# Set up the scripts for CONFIG_HEADERS section.
22106# No need to generate them if there are no CONFIG_HEADERS.
22107# This happens for instance with './config.status Makefile'.
22108if test -n "$CONFIG_HEADERS"; then
22109cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22110BEGIN {
22111_ACEOF
22112
22113# Transform confdefs.h into an awk script 'defines.awk', embedded as
22114# here-document in config.status, that substitutes the proper values into
22115# config.h.in to produce config.h.
22116
22117# Create a delimiter string that does not exist in confdefs.h, to ease
22118# handling of long lines.
22119ac_delim='%!_!# '
22120for ac_last_try in false false :; do
22121  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22122  if test -z "$ac_tt"; then
22123    break
22124  elif $ac_last_try; then
22125    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22126  else
22127    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22128  fi
22129done
22130
22131# For the awk script, D is an array of macro values keyed by name,
22132# likewise P contains macro parameters if any.  Preserve backslash
22133# newline sequences.
22134
22135ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22136sed -n '
22137s/.\{148\}/&'"$ac_delim"'/g
22138t rset
22139:rset
22140s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22141t def
22142d
22143:def
22144s/\\$//
22145t bsnl
22146s/["\\]/\\&/g
22147s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22148D["\1"]=" \3"/p
22149s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22150d
22151:bsnl
22152s/["\\]/\\&/g
22153s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22154D["\1"]=" \3\\\\\\n"\\/p
22155t cont
22156s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22157t cont
22158d
22159:cont
22160n
22161s/.\{148\}/&'"$ac_delim"'/g
22162t clear
22163:clear
22164s/\\$//
22165t bsnlc
22166s/["\\]/\\&/g; s/^/"/; s/$/"/p
22167d
22168:bsnlc
22169s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22170b cont
22171' <confdefs.h | sed '
22172s/'"$ac_delim"'/"\\\
22173"/g' >>$CONFIG_STATUS || ac_write_fail=1
22174
22175cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22176  for (key in D) D_is_set[key] = 1
22177  FS = ""
22178}
22179/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22180  line = \$ 0
22181  split(line, arg, " ")
22182  if (arg[1] == "#") {
22183    defundef = arg[2]
22184    mac1 = arg[3]
22185  } else {
22186    defundef = substr(arg[1], 2)
22187    mac1 = arg[2]
22188  }
22189  split(mac1, mac2, "(") #)
22190  macro = mac2[1]
22191  prefix = substr(line, 1, index(line, defundef) - 1)
22192  if (D_is_set[macro]) {
22193    # Preserve the white space surrounding the "#".
22194    print prefix "define", macro P[macro] D[macro]
22195    next
22196  } else {
22197    # Replace #undef with comments.  This is necessary, for example,
22198    # in the case of _POSIX_SOURCE, which is predefined and required
22199    # on some systems where configure will not decide to define it.
22200    if (defundef == "undef") {
22201      print "/*", prefix defundef, macro, "*/"
22202      next
22203    }
22204  }
22205}
22206{ print }
22207_ACAWK
22208_ACEOF
22209cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22210  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22211fi # test -n "$CONFIG_HEADERS"
22212
22213
22214eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22215shift
22216for ac_tag
22217do
22218  case $ac_tag in
22219  :[FHLC]) ac_mode=$ac_tag; continue;;
22220  esac
22221  case $ac_mode$ac_tag in
22222  :[FHL]*:*);;
22223  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
22224  :[FH]-) ac_tag=-:-;;
22225  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22226  esac
22227  ac_save_IFS=$IFS
22228  IFS=:
22229  set x $ac_tag
22230  IFS=$ac_save_IFS
22231  shift
22232  ac_file=$1
22233  shift
22234
22235  case $ac_mode in
22236  :L) ac_source=$1;;
22237  :[FH])
22238    ac_file_inputs=
22239    for ac_f
22240    do
22241      case $ac_f in
22242      -) ac_f="$ac_tmp/stdin";;
22243      *) # Look for the file first in the build tree, then in the source tree
22244	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22245	 # because $ac_f cannot contain ':'.
22246	 test -f "$ac_f" ||
22247	   case $ac_f in
22248	   [\\/$]*) false;;
22249	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22250	   esac ||
22251	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
22252      esac
22253      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22254      as_fn_append ac_file_inputs " '$ac_f'"
22255    done
22256
22257    # Let's still pretend it is 'configure' which instantiates (i.e., don't
22258    # use $as_me), people would be surprised to read:
22259    #    /* config.h.  Generated by config.status.  */
22260    configure_input='Generated from '`
22261	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22262	`' by configure.'
22263    if test x"$ac_file" != x-; then
22264      configure_input="$ac_file.  $configure_input"
22265      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22266printf "%s\n" "$as_me: creating $ac_file" >&6;}
22267    fi
22268    # Neutralize special characters interpreted by sed in replacement strings.
22269    case $configure_input in #(
22270    *\&* | *\|* | *\\* )
22271       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22272       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22273    *) ac_sed_conf_input=$configure_input;;
22274    esac
22275
22276    case $ac_tag in
22277    *:-:* | *:-) cat >"$ac_tmp/stdin" \
22278      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22279    esac
22280    ;;
22281  esac
22282
22283  ac_dir=`$as_dirname -- "$ac_file" ||
22284$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22285	 X"$ac_file" : 'X\(//\)[^/]' \| \
22286	 X"$ac_file" : 'X\(//\)$' \| \
22287	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22288printf "%s\n" X"$ac_file" |
22289    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22290	    s//\1/
22291	    q
22292	  }
22293	  /^X\(\/\/\)[^/].*/{
22294	    s//\1/
22295	    q
22296	  }
22297	  /^X\(\/\/\)$/{
22298	    s//\1/
22299	    q
22300	  }
22301	  /^X\(\/\).*/{
22302	    s//\1/
22303	    q
22304	  }
22305	  s/.*/./; q'`
22306  as_dir="$ac_dir"; as_fn_mkdir_p
22307  ac_builddir=.
22308
22309case "$ac_dir" in
22310.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22311*)
22312  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22313  # A ".." for each directory in $ac_dir_suffix.
22314  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22315  case $ac_top_builddir_sub in
22316  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22317  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22318  esac ;;
22319esac
22320ac_abs_top_builddir=$ac_pwd
22321ac_abs_builddir=$ac_pwd$ac_dir_suffix
22322# for backward compatibility:
22323ac_top_builddir=$ac_top_build_prefix
22324
22325case $srcdir in
22326  .)  # We are building in place.
22327    ac_srcdir=.
22328    ac_top_srcdir=$ac_top_builddir_sub
22329    ac_abs_top_srcdir=$ac_pwd ;;
22330  [\\/]* | ?:[\\/]* )  # Absolute name.
22331    ac_srcdir=$srcdir$ac_dir_suffix;
22332    ac_top_srcdir=$srcdir
22333    ac_abs_top_srcdir=$srcdir ;;
22334  *) # Relative name.
22335    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22336    ac_top_srcdir=$ac_top_build_prefix$srcdir
22337    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22338esac
22339ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22340
22341
22342  case $ac_mode in
22343  :F)
22344  #
22345  # CONFIG_FILE
22346  #
22347
22348  case $INSTALL in
22349  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22350  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22351  esac
22352  ac_MKDIR_P=$MKDIR_P
22353  case $MKDIR_P in
22354  [\\/$]* | ?:[\\/]* ) ;;
22355  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22356  esac
22357_ACEOF
22358
22359cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22360# If the template does not know about datarootdir, expand it.
22361# FIXME: This hack should be removed a few years after 2.60.
22362ac_datarootdir_hack=; ac_datarootdir_seen=
22363ac_sed_dataroot='
22364/datarootdir/ {
22365  p
22366  q
22367}
22368/@datadir@/p
22369/@docdir@/p
22370/@infodir@/p
22371/@localedir@/p
22372/@mandir@/p'
22373case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22374*datarootdir*) ac_datarootdir_seen=yes;;
22375*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22376  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22377printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22378_ACEOF
22379cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22380  ac_datarootdir_hack='
22381  s&@datadir@&$datadir&g
22382  s&@docdir@&$docdir&g
22383  s&@infodir@&$infodir&g
22384  s&@localedir@&$localedir&g
22385  s&@mandir@&$mandir&g
22386  s&\\\${datarootdir}&$datarootdir&g' ;;
22387esac
22388_ACEOF
22389
22390# Neutralize VPATH when '$srcdir' = '.'.
22391# Shell code in configure.ac might set extrasub.
22392# FIXME: do we really want to maintain this feature?
22393cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22394ac_sed_extra="$ac_vpsub
22395$extrasub
22396_ACEOF
22397cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22398:t
22399/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22400s|@configure_input@|$ac_sed_conf_input|;t t
22401s&@top_builddir@&$ac_top_builddir_sub&;t t
22402s&@top_build_prefix@&$ac_top_build_prefix&;t t
22403s&@srcdir@&$ac_srcdir&;t t
22404s&@abs_srcdir@&$ac_abs_srcdir&;t t
22405s&@top_srcdir@&$ac_top_srcdir&;t t
22406s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22407s&@builddir@&$ac_builddir&;t t
22408s&@abs_builddir@&$ac_abs_builddir&;t t
22409s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22410s&@INSTALL@&$ac_INSTALL&;t t
22411s&@MKDIR_P@&$ac_MKDIR_P&;t t
22412$ac_datarootdir_hack
22413"
22414eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22415  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22416
22417test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22418  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22419  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
22420      "$ac_tmp/out"`; test -z "$ac_out"; } &&
22421  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22422which seems to be undefined.  Please make sure it is defined" >&5
22423printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22424which seems to be undefined.  Please make sure it is defined" >&2;}
22425
22426  rm -f "$ac_tmp/stdin"
22427  case $ac_file in
22428  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22429  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22430  esac \
22431  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22432 ;;
22433  :H)
22434  #
22435  # CONFIG_HEADER
22436  #
22437  if test x"$ac_file" != x-; then
22438    {
22439      printf "%s\n" "/* $configure_input  */" >&1 \
22440      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22441    } >"$ac_tmp/config.h" \
22442      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22443    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22444      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22445printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22446    else
22447      rm -f "$ac_file"
22448      mv "$ac_tmp/config.h" "$ac_file" \
22449	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22450    fi
22451  else
22452    printf "%s\n" "/* $configure_input  */" >&1 \
22453      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22454      || as_fn_error $? "could not create -" "$LINENO" 5
22455  fi
22456# Compute "$ac_file"'s index in $config_headers.
22457_am_arg="$ac_file"
22458_am_stamp_count=1
22459for _am_header in $config_headers :; do
22460  case $_am_header in
22461    $_am_arg | $_am_arg:* )
22462      break ;;
22463    * )
22464      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22465  esac
22466done
22467echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22468$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22469	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22470	 X"$_am_arg" : 'X\(//\)$' \| \
22471	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22472printf "%s\n" X"$_am_arg" |
22473    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22474	    s//\1/
22475	    q
22476	  }
22477	  /^X\(\/\/\)[^/].*/{
22478	    s//\1/
22479	    q
22480	  }
22481	  /^X\(\/\/\)$/{
22482	    s//\1/
22483	    q
22484	  }
22485	  /^X\(\/\).*/{
22486	    s//\1/
22487	    q
22488	  }
22489	  s/.*/./; q'`/stamp-h$_am_stamp_count
22490 ;;
22491
22492  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22493printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22494 ;;
22495  esac
22496
22497
22498  case $ac_file$ac_mode in
22499    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22500  # Older Autoconf quotes --file arguments for eval, but not when files
22501  # are listed without --file.  Let's play safe and only enable the eval
22502  # if we detect the quoting.
22503  # TODO: see whether this extra hack can be removed once we start
22504  # requiring Autoconf 2.70 or later.
22505  case $CONFIG_FILES in #(
22506  *\'*) :
22507    eval set x "$CONFIG_FILES" ;; #(
22508  *) :
22509    set x $CONFIG_FILES ;; #(
22510  *) :
22511     ;;
22512esac
22513  shift
22514  # Used to flag and report bootstrapping failures.
22515  am_rc=0
22516  for am_mf
22517  do
22518    # Strip MF so we end up with the name of the file.
22519    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22520    # Check whether this is an Automake generated Makefile which includes
22521    # dependency-tracking related rules and includes.
22522    # Grep'ing the whole file directly is not great: AIX grep has a line
22523    # limit of 2048, but all sed's we know have understand at least 4000.
22524    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22525      || continue
22526    am_dirpart=`$as_dirname -- "$am_mf" ||
22527$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22528	 X"$am_mf" : 'X\(//\)[^/]' \| \
22529	 X"$am_mf" : 'X\(//\)$' \| \
22530	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22531printf "%s\n" X"$am_mf" |
22532    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22533	    s//\1/
22534	    q
22535	  }
22536	  /^X\(\/\/\)[^/].*/{
22537	    s//\1/
22538	    q
22539	  }
22540	  /^X\(\/\/\)$/{
22541	    s//\1/
22542	    q
22543	  }
22544	  /^X\(\/\).*/{
22545	    s//\1/
22546	    q
22547	  }
22548	  s/.*/./; q'`
22549    am_filepart=`$as_basename -- "$am_mf" ||
22550$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22551	 X"$am_mf" : 'X\(//\)$' \| \
22552	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22553printf "%s\n" X/"$am_mf" |
22554    sed '/^.*\/\([^/][^/]*\)\/*$/{
22555	    s//\1/
22556	    q
22557	  }
22558	  /^X\/\(\/\/\)$/{
22559	    s//\1/
22560	    q
22561	  }
22562	  /^X\/\(\/\).*/{
22563	    s//\1/
22564	    q
22565	  }
22566	  s/.*/./; q'`
22567    { echo "$as_me:$LINENO: cd "$am_dirpart" \
22568      && sed -e '/# am--include-marker/d' "$am_filepart" \
22569        | $MAKE -f - am--depfiles" >&5
22570   (cd "$am_dirpart" \
22571      && sed -e '/# am--include-marker/d' "$am_filepart" \
22572        | $MAKE -f - am--depfiles) >&5 2>&5
22573   ac_status=$?
22574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575   (exit $ac_status); } || am_rc=$?
22576  done
22577  if test $am_rc -ne 0; then
22578    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22579printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22580as_fn_error $? "Something went wrong bootstrapping makefile fragments
22581    for automatic dependency tracking.  If GNU make was not used, consider
22582    re-running the configure script with MAKE=\"gmake\" (or whatever is
22583    necessary).  You can also try re-running configure with the
22584    '--disable-dependency-tracking' option to at least be able to build
22585    the package (albeit without support for automatic dependency tracking).
22586See 'config.log' for more details" "$LINENO" 5; }
22587  fi
22588  { am_dirpart=; unset am_dirpart;}
22589  { am_filepart=; unset am_filepart;}
22590  { am_mf=; unset am_mf;}
22591  { am_rc=; unset am_rc;}
22592  rm -f conftest-deps.mk
22593}
22594 ;;
22595    "libtool":C)
22596
22597    # See if we are running on zsh, and set the options that allow our
22598    # commands through without removal of \ escapes.
22599    if test -n "${ZSH_VERSION+set}"; then
22600      setopt NO_GLOB_SUBST
22601    fi
22602
22603    cfgfile=${ofile}T
22604    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22605    $RM "$cfgfile"
22606
22607    cat <<_LT_EOF >> "$cfgfile"
22608#! $SHELL
22609# Generated automatically by $as_me ($PACKAGE) $VERSION
22610# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22611# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22612
22613# Provide generalized library-building support services.
22614# Written by Gordon Matzigkeit, 1996
22615
22616# Copyright (C) 2014 Free Software Foundation, Inc.
22617# This is free software; see the source for copying conditions.  There is NO
22618# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22619
22620# GNU Libtool is free software; you can redistribute it and/or modify
22621# it under the terms of the GNU General Public License as published by
22622# the Free Software Foundation; either version 2 of of the License, or
22623# (at your option) any later version.
22624#
22625# As a special exception to the GNU General Public License, if you
22626# distribute this file as part of a program or library that is built
22627# using GNU Libtool, you may include this file under the  same
22628# distribution terms that you use for the rest of that program.
22629#
22630# GNU Libtool is distributed in the hope that it will be useful, but
22631# WITHOUT ANY WARRANTY; without even the implied warranty of
22632# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22633# GNU General Public License for more details.
22634#
22635# You should have received a copy of the GNU General Public License
22636# along with this program.  If not, see <http://www.gnu.org/licenses/>.
22637
22638
22639# The names of the tagged configurations supported by this script.
22640available_tags=''
22641
22642# Configured defaults for sys_lib_dlsearch_path munging.
22643: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22644
22645# ### BEGIN LIBTOOL CONFIG
22646
22647# Which release of libtool.m4 was used?
22648macro_version=$macro_version
22649macro_revision=$macro_revision
22650
22651# Whether or not to build shared libraries.
22652build_libtool_libs=$enable_shared
22653
22654# Whether or not to build static libraries.
22655build_old_libs=$enable_static
22656
22657# What type of objects to build.
22658pic_mode=$pic_mode
22659
22660# Whether or not to optimize for fast installation.
22661fast_install=$enable_fast_install
22662
22663# Shared archive member basename,for filename based shared library versioning on AIX.
22664shared_archive_member_spec=$shared_archive_member_spec
22665
22666# Shell to use when invoking shell scripts.
22667SHELL=$lt_SHELL
22668
22669# An echo program that protects backslashes.
22670ECHO=$lt_ECHO
22671
22672# The PATH separator for the build system.
22673PATH_SEPARATOR=$lt_PATH_SEPARATOR
22674
22675# The host system.
22676host_alias=$host_alias
22677host=$host
22678host_os=$host_os
22679
22680# The build system.
22681build_alias=$build_alias
22682build=$build
22683build_os=$build_os
22684
22685# A sed program that does not truncate output.
22686SED=$lt_SED
22687
22688# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22689Xsed="\$SED -e 1s/^X//"
22690
22691# A grep program that handles long lines.
22692GREP=$lt_GREP
22693
22694# An ERE matcher.
22695EGREP=$lt_EGREP
22696
22697# A literal string matcher.
22698FGREP=$lt_FGREP
22699
22700# A BSD- or MS-compatible name lister.
22701NM=$lt_NM
22702
22703# Whether we need soft or hard links.
22704LN_S=$lt_LN_S
22705
22706# What is the maximum length of a command?
22707max_cmd_len=$max_cmd_len
22708
22709# Object file suffix (normally "o").
22710objext=$ac_objext
22711
22712# Executable file suffix (normally "").
22713exeext=$exeext
22714
22715# whether the shell understands "unset".
22716lt_unset=$lt_unset
22717
22718# turn spaces into newlines.
22719SP2NL=$lt_lt_SP2NL
22720
22721# turn newlines into spaces.
22722NL2SP=$lt_lt_NL2SP
22723
22724# convert \$build file names to \$host format.
22725to_host_file_cmd=$lt_cv_to_host_file_cmd
22726
22727# convert \$build files to toolchain format.
22728to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22729
22730# A file(cmd) program that detects file types.
22731FILECMD=$lt_FILECMD
22732
22733# An object symbol dumper.
22734OBJDUMP=$lt_OBJDUMP
22735
22736# Method to check whether dependent libraries are shared objects.
22737deplibs_check_method=$lt_deplibs_check_method
22738
22739# Command to use when deplibs_check_method = "file_magic".
22740file_magic_cmd=$lt_file_magic_cmd
22741
22742# How to find potential files when deplibs_check_method = "file_magic".
22743file_magic_glob=$lt_file_magic_glob
22744
22745# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22746want_nocaseglob=$lt_want_nocaseglob
22747
22748# DLL creation program.
22749DLLTOOL=$lt_DLLTOOL
22750
22751# Command to associate shared and link libraries.
22752sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22753
22754# The archiver.
22755AR=$lt_AR
22756
22757# Flags to create an archive (by configure).
22758lt_ar_flags=$lt_ar_flags
22759
22760# Flags to create an archive.
22761AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22762
22763# How to feed a file listing to the archiver.
22764archiver_list_spec=$lt_archiver_list_spec
22765
22766# A symbol stripping program.
22767STRIP=$lt_STRIP
22768
22769# Commands used to install an old-style archive.
22770RANLIB=$lt_RANLIB
22771old_postinstall_cmds=$lt_old_postinstall_cmds
22772old_postuninstall_cmds=$lt_old_postuninstall_cmds
22773
22774# Whether to use a lock for old archive extraction.
22775lock_old_archive_extraction=$lock_old_archive_extraction
22776
22777# A C compiler.
22778LTCC=$lt_CC
22779
22780# LTCC compiler flags.
22781LTCFLAGS=$lt_CFLAGS
22782
22783# Take the output of nm and produce a listing of raw symbols and C names.
22784global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22785
22786# Transform the output of nm in a proper C declaration.
22787global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22788
22789# Transform the output of nm into a list of symbols to manually relocate.
22790global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22791
22792# Transform the output of nm in a C name address pair.
22793global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22794
22795# Transform the output of nm in a C name address pair when lib prefix is needed.
22796global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22797
22798# The name lister interface.
22799nm_interface=$lt_lt_cv_nm_interface
22800
22801# Specify filename containing input files for \$NM.
22802nm_file_list_spec=$lt_nm_file_list_spec
22803
22804# The root where to search for dependent libraries,and where our libraries should be installed.
22805lt_sysroot=$lt_sysroot
22806
22807# Command to truncate a binary pipe.
22808lt_truncate_bin=$lt_lt_cv_truncate_bin
22809
22810# The name of the directory that contains temporary libtool files.
22811objdir=$objdir
22812
22813# Used to examine libraries when file_magic_cmd begins with "file".
22814MAGIC_CMD=$MAGIC_CMD
22815
22816# Must we lock files when doing compilation?
22817need_locks=$lt_need_locks
22818
22819# Manifest tool.
22820MANIFEST_TOOL=$lt_MANIFEST_TOOL
22821
22822# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22823DSYMUTIL=$lt_DSYMUTIL
22824
22825# Tool to change global to local symbols on Mac OS X.
22826NMEDIT=$lt_NMEDIT
22827
22828# Tool to manipulate fat objects and archives on Mac OS X.
22829LIPO=$lt_LIPO
22830
22831# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22832OTOOL=$lt_OTOOL
22833
22834# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22835OTOOL64=$lt_OTOOL64
22836
22837# Old archive suffix (normally "a").
22838libext=$libext
22839
22840# Shared library suffix (normally ".so").
22841shrext_cmds=$lt_shrext_cmds
22842
22843# The commands to extract the exported symbol list from a shared archive.
22844extract_expsyms_cmds=$lt_extract_expsyms_cmds
22845
22846# Variables whose values should be saved in libtool wrapper scripts and
22847# restored at link time.
22848variables_saved_for_relink=$lt_variables_saved_for_relink
22849
22850# Do we need the "lib" prefix for modules?
22851need_lib_prefix=$need_lib_prefix
22852
22853# Do we need a version for libraries?
22854need_version=$need_version
22855
22856# Library versioning type.
22857version_type=$version_type
22858
22859# Shared library runtime path variable.
22860runpath_var=$runpath_var
22861
22862# Shared library path variable.
22863shlibpath_var=$shlibpath_var
22864
22865# Is shlibpath searched before the hard-coded library search path?
22866shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22867
22868# Format of library name prefix.
22869libname_spec=$lt_libname_spec
22870
22871# List of archive names.  First name is the real one, the rest are links.
22872# The last name is the one that the linker finds with -lNAME
22873library_names_spec=$lt_library_names_spec
22874
22875# The coded name of the library, if different from the real name.
22876soname_spec=$lt_soname_spec
22877
22878# Permission mode override for installation of shared libraries.
22879install_override_mode=$lt_install_override_mode
22880
22881# Command to use after installation of a shared archive.
22882postinstall_cmds=$lt_postinstall_cmds
22883
22884# Command to use after uninstallation of a shared archive.
22885postuninstall_cmds=$lt_postuninstall_cmds
22886
22887# Commands used to finish a libtool library installation in a directory.
22888finish_cmds=$lt_finish_cmds
22889
22890# As "finish_cmds", except a single script fragment to be evaled but
22891# not shown.
22892finish_eval=$lt_finish_eval
22893
22894# Whether we should hardcode library paths into libraries.
22895hardcode_into_libs=$hardcode_into_libs
22896
22897# Compile-time system search path for libraries.
22898sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22899
22900# Detected run-time system search path for libraries.
22901sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22902
22903# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22904configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22905
22906# Whether dlopen is supported.
22907dlopen_support=$enable_dlopen
22908
22909# Whether dlopen of programs is supported.
22910dlopen_self=$enable_dlopen_self
22911
22912# Whether dlopen of statically linked programs is supported.
22913dlopen_self_static=$enable_dlopen_self_static
22914
22915# Commands to strip libraries.
22916old_striplib=$lt_old_striplib
22917striplib=$lt_striplib
22918
22919
22920# The linker used to build libraries.
22921LD=$lt_LD
22922
22923# How to create reloadable object files.
22924reload_flag=$lt_reload_flag
22925reload_cmds=$lt_reload_cmds
22926
22927# Commands used to build an old-style archive.
22928old_archive_cmds=$lt_old_archive_cmds
22929
22930# A language specific compiler.
22931CC=$lt_compiler
22932
22933# Is the compiler the GNU compiler?
22934with_gcc=$GCC
22935
22936# Compiler flag to turn off builtin functions.
22937no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22938
22939# Additional compiler flags for building library objects.
22940pic_flag=$lt_lt_prog_compiler_pic
22941
22942# How to pass a linker flag through the compiler.
22943wl=$lt_lt_prog_compiler_wl
22944
22945# Compiler flag to prevent dynamic linking.
22946link_static_flag=$lt_lt_prog_compiler_static
22947
22948# Does compiler simultaneously support -c and -o options?
22949compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22950
22951# Whether or not to add -lc for building shared libraries.
22952build_libtool_need_lc=$archive_cmds_need_lc
22953
22954# Whether or not to disallow shared libs when runtime libs are static.
22955allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22956
22957# Compiler flag to allow reflexive dlopens.
22958export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22959
22960# Compiler flag to generate shared objects directly from archives.
22961whole_archive_flag_spec=$lt_whole_archive_flag_spec
22962
22963# Whether the compiler copes with passing no objects directly.
22964compiler_needs_object=$lt_compiler_needs_object
22965
22966# Create an old-style archive from a shared archive.
22967old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22968
22969# Create a temporary old-style archive to link instead of a shared archive.
22970old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22971
22972# Commands used to build a shared archive.
22973archive_cmds=$lt_archive_cmds
22974archive_expsym_cmds=$lt_archive_expsym_cmds
22975
22976# Commands used to build a loadable module if different from building
22977# a shared archive.
22978module_cmds=$lt_module_cmds
22979module_expsym_cmds=$lt_module_expsym_cmds
22980
22981# Whether we are building with GNU ld or not.
22982with_gnu_ld=$lt_with_gnu_ld
22983
22984# Flag that allows shared libraries with undefined symbols to be built.
22985allow_undefined_flag=$lt_allow_undefined_flag
22986
22987# Flag that enforces no undefined symbols.
22988no_undefined_flag=$lt_no_undefined_flag
22989
22990# Flag to hardcode \$libdir into a binary during linking.
22991# This must work even if \$libdir does not exist
22992hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22993
22994# Whether we need a single "-rpath" flag with a separated argument.
22995hardcode_libdir_separator=$lt_hardcode_libdir_separator
22996
22997# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22998# DIR into the resulting binary.
22999hardcode_direct=$hardcode_direct
23000
23001# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23002# DIR into the resulting binary and the resulting library dependency is
23003# "absolute",i.e impossible to change by setting \$shlibpath_var if the
23004# library is relocated.
23005hardcode_direct_absolute=$hardcode_direct_absolute
23006
23007# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23008# into the resulting binary.
23009hardcode_minus_L=$hardcode_minus_L
23010
23011# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23012# into the resulting binary.
23013hardcode_shlibpath_var=$hardcode_shlibpath_var
23014
23015# Set to "yes" if building a shared library automatically hardcodes DIR
23016# into the library and all subsequent libraries and executables linked
23017# against it.
23018hardcode_automatic=$hardcode_automatic
23019
23020# Set to yes if linker adds runtime paths of dependent libraries
23021# to runtime path list.
23022inherit_rpath=$inherit_rpath
23023
23024# Whether libtool must link a program against all its dependency libraries.
23025link_all_deplibs=$link_all_deplibs
23026
23027# Set to "yes" if exported symbols are required.
23028always_export_symbols=$always_export_symbols
23029
23030# The commands to list exported symbols.
23031export_symbols_cmds=$lt_export_symbols_cmds
23032
23033# Symbols that should not be listed in the preloaded symbols.
23034exclude_expsyms=$lt_exclude_expsyms
23035
23036# Symbols that must always be exported.
23037include_expsyms=$lt_include_expsyms
23038
23039# Commands necessary for linking programs (against libraries) with templates.
23040prelink_cmds=$lt_prelink_cmds
23041
23042# Commands necessary for finishing linking programs.
23043postlink_cmds=$lt_postlink_cmds
23044
23045# Specify filename containing input files.
23046file_list_spec=$lt_file_list_spec
23047
23048# How to hardcode a shared library path into an executable.
23049hardcode_action=$hardcode_action
23050
23051# ### END LIBTOOL CONFIG
23052
23053_LT_EOF
23054
23055    cat <<'_LT_EOF' >> "$cfgfile"
23056
23057# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23058
23059# func_munge_path_list VARIABLE PATH
23060# -----------------------------------
23061# VARIABLE is name of variable containing _space_ separated list of
23062# directories to be munged by the contents of PATH, which is string
23063# having a format:
23064# "DIR[:DIR]:"
23065#       string "DIR[ DIR]" will be prepended to VARIABLE
23066# ":DIR[:DIR]"
23067#       string "DIR[ DIR]" will be appended to VARIABLE
23068# "DIRP[:DIRP]::[DIRA:]DIRA"
23069#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23070#       "DIRA[ DIRA]" will be appended to VARIABLE
23071# "DIR[:DIR]"
23072#       VARIABLE will be replaced by "DIR[ DIR]"
23073func_munge_path_list ()
23074{
23075    case x$2 in
23076    x)
23077        ;;
23078    *:)
23079        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23080        ;;
23081    x:*)
23082        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23083        ;;
23084    *::*)
23085        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23086        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23087        ;;
23088    *)
23089        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23090        ;;
23091    esac
23092}
23093
23094
23095# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
23096func_cc_basename ()
23097{
23098    for cc_temp in $*""; do
23099      case $cc_temp in
23100        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23101        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23102        \-*) ;;
23103        *) break;;
23104      esac
23105    done
23106    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23107}
23108
23109
23110# ### END FUNCTIONS SHARED WITH CONFIGURE
23111
23112_LT_EOF
23113
23114  case $host_os in
23115  aix3*)
23116    cat <<\_LT_EOF >> "$cfgfile"
23117# AIX sometimes has problems with the GCC collect2 program.  For some
23118# reason, if we set the COLLECT_NAMES environment variable, the problems
23119# vanish in a puff of smoke.
23120if test set != "${COLLECT_NAMES+set}"; then
23121  COLLECT_NAMES=
23122  export COLLECT_NAMES
23123fi
23124_LT_EOF
23125    ;;
23126  esac
23127
23128
23129
23130ltmain=$ac_aux_dir/ltmain.sh
23131
23132
23133  # We use sed instead of cat because bash on DJGPP gets confused if
23134  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23135  # text mode, it properly converts lines to CR/LF.  This bash problem
23136  # is reportedly fixed, but why not run on old versions too?
23137  $SED '$q' "$ltmain" >> "$cfgfile" \
23138     || (rm -f "$cfgfile"; exit 1)
23139
23140   mv -f "$cfgfile" "$ofile" ||
23141    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23142  chmod +x "$ofile"
23143
23144 ;;
23145
23146  esac
23147done # for ac_tag
23148
23149
23150as_fn_exit 0
23151_ACEOF
23152ac_clean_files=$ac_clean_files_save
23153
23154test $ac_write_fail = 0 ||
23155  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23156
23157
23158# configure is writing to config.log, and then calls config.status.
23159# config.status does its own redirection, appending to config.log.
23160# Unfortunately, on DOS this fails, as config.log is still kept open
23161# by configure, so config.status won't be able to write to it; its
23162# output is simply discarded.  So we exec the FD to /dev/null,
23163# effectively closing config.log, so it can be properly (re)opened and
23164# appended to by config.status.  When coming back to configure, we
23165# need to make the FD available again.
23166if test "$no_create" != yes; then
23167  ac_cs_success=:
23168  ac_config_status_args=
23169  test "$silent" = yes &&
23170    ac_config_status_args="$ac_config_status_args --quiet"
23171  exec 5>/dev/null
23172  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23173  exec 5>>config.log
23174  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23175  # would make configure fail if this is the last instruction.
23176  $ac_cs_success || as_fn_exit 1
23177fi
23178if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23179  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23180printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23181fi
23182
23183
23184