1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for libXfixes 6.0.1.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxfixes/-/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    PATH=/empty FPATH=/empty; export PATH FPATH
192    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194test \$(( 1 + 1 )) = 2 || exit 1"
195  if (eval "$as_required") 2>/dev/null
196then :
197  as_have_required=yes
198else $as_nop
199  as_have_required=no
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  case $as_dir in #(((
211    '') as_dir=./ ;;
212    */) ;;
213    *) as_dir=$as_dir/ ;;
214  esac
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $as_nop
239  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247      if test "x$CONFIG_SHELL" != x
248then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno
271then :
272  printf "%s\n" "$0: This script requires a shell more modern than all"
273  printf "%s\n" "$0: the shells that I found on your system."
274  if test ${ZSH_VERSION+y} ; then
275    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279$0: https://gitlab.freedesktop.org/xorg/lib/libxfixes/-/issues
280$0: about your system, including any error possibly output
281$0: before this message. Then install a modern shell, or
282$0: manually run the script under such a shell if you do
283$0: have one."
284  fi
285  exit 1
286fi
287fi
288fi
289SHELL=${CONFIG_SHELL-/bin/sh}
290export SHELL
291# Unset more variables known to interfere with behavior of common tools.
292CLICOLOR_FORCE= GREP_OPTIONS=
293unset CLICOLOR_FORCE GREP_OPTIONS
294
295## --------------------- ##
296## M4sh Shell Functions. ##
297## --------------------- ##
298# as_fn_unset VAR
299# ---------------
300# Portably unset VAR.
301as_fn_unset ()
302{
303  { eval $1=; unset $1;}
304}
305as_unset=as_fn_unset
306
307
308# as_fn_set_status STATUS
309# -----------------------
310# Set $? to STATUS, without forking.
311as_fn_set_status ()
312{
313  return $1
314} # as_fn_set_status
315
316# as_fn_exit STATUS
317# -----------------
318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319as_fn_exit ()
320{
321  set +e
322  as_fn_set_status $1
323  exit $1
324} # as_fn_exit
325# as_fn_nop
326# ---------
327# Do nothing but, unlike ":", preserve the value of $?.
328as_fn_nop ()
329{
330  return $?
331}
332as_nop=as_fn_nop
333
334# as_fn_mkdir_p
335# -------------
336# Create "$as_dir" as a directory, including parents if necessary.
337as_fn_mkdir_p ()
338{
339
340  case $as_dir in #(
341  -*) as_dir=./$as_dir;;
342  esac
343  test -d "$as_dir" || eval $as_mkdir_p || {
344    as_dirs=
345    while :; do
346      case $as_dir in #(
347      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348      *) as_qdir=$as_dir;;
349      esac
350      as_dirs="'$as_qdir' $as_dirs"
351      as_dir=`$as_dirname -- "$as_dir" ||
352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353	 X"$as_dir" : 'X\(//\)[^/]' \| \
354	 X"$as_dir" : 'X\(//\)$' \| \
355	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356printf "%s\n" X"$as_dir" |
357    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\/\)[^/].*/{
362	    s//\1/
363	    q
364	  }
365	  /^X\(\/\/\)$/{
366	    s//\1/
367	    q
368	  }
369	  /^X\(\/\).*/{
370	    s//\1/
371	    q
372	  }
373	  s/.*/./; q'`
374      test -d "$as_dir" && break
375    done
376    test -z "$as_dirs" || eval "mkdir $as_dirs"
377  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380} # as_fn_mkdir_p
381
382# as_fn_executable_p FILE
383# -----------------------
384# Test if FILE is an executable regular file.
385as_fn_executable_p ()
386{
387  test -f "$1" && test -x "$1"
388} # as_fn_executable_p
389# as_fn_append VAR VALUE
390# ----------------------
391# Append the text in VALUE to the end of the definition contained in VAR. Take
392# advantage of any shell optimizations that allow amortized linear growth over
393# repeated appends, instead of the typical quadratic growth present in naive
394# implementations.
395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396then :
397  eval 'as_fn_append ()
398  {
399    eval $1+=\$2
400  }'
401else $as_nop
402  as_fn_append ()
403  {
404    eval $1=\$$1\$2
405  }
406fi # as_fn_append
407
408# as_fn_arith ARG...
409# ------------------
410# Perform arithmetic evaluation on the ARGs, and store the result in the
411# global $as_val. Take advantage of shells that can avoid forks. The arguments
412# must be portable across $(()) and expr.
413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414then :
415  eval 'as_fn_arith ()
416  {
417    as_val=$(( $* ))
418  }'
419else $as_nop
420  as_fn_arith ()
421  {
422    as_val=`expr "$@" || test $? -eq 1`
423  }
424fi # as_fn_arith
425
426# as_fn_nop
427# ---------
428# Do nothing but, unlike ":", preserve the value of $?.
429as_fn_nop ()
430{
431  return $?
432}
433as_nop=as_fn_nop
434
435# as_fn_error STATUS ERROR [LINENO LOG_FD]
436# ----------------------------------------
437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439# script with STATUS, using 1 if that was 0.
440as_fn_error ()
441{
442  as_status=$1; test $as_status -eq 0 && as_status=1
443  if test "$4"; then
444    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446  fi
447  printf "%s\n" "$as_me: error: $2" >&2
448  as_fn_exit $as_status
449} # as_fn_error
450
451if expr a : '\(a\)' >/dev/null 2>&1 &&
452   test "X`expr 00001 : '.*\(...\)'`" = X001; then
453  as_expr=expr
454else
455  as_expr=false
456fi
457
458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459  as_basename=basename
460else
461  as_basename=false
462fi
463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465  as_dirname=dirname
466else
467  as_dirname=false
468fi
469
470as_me=`$as_basename -- "$0" ||
471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472	 X"$0" : 'X\(//\)$' \| \
473	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474printf "%s\n" X/"$0" |
475    sed '/^.*\/\([^/][^/]*\)\/*$/{
476	    s//\1/
477	    q
478	  }
479	  /^X\/\(\/\/\)$/{
480	    s//\1/
481	    q
482	  }
483	  /^X\/\(\/\).*/{
484	    s//\1/
485	    q
486	  }
487	  s/.*/./; q'`
488
489# Avoid depending upon Character Ranges.
490as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493as_cr_digits='0123456789'
494as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497  as_lineno_1=$LINENO as_lineno_1a=$LINENO
498  as_lineno_2=$LINENO as_lineno_2a=$LINENO
499  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
502  sed -n '
503    p
504    /[$]LINENO/=
505  ' <$as_myself |
506    sed '
507      s/[$]LINENO.*/&-/
508      t lineno
509      b
510      :lineno
511      N
512      :loop
513      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514      t loop
515      s/-\n.*//
516    ' >$as_me.lineno &&
517  chmod +x "$as_me.lineno" ||
518    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521  # already done that, so ensure we don't try to do so again and fall
522  # in an infinite loop.  This has already happened in practice.
523  _as_can_reexec=no; export _as_can_reexec
524  # Don't try to exec as it changes $[0], causing all sort of problems
525  # (the dirname of $[0] is not the place where we might find the
526  # original and so on.  Autoconf is especially sensitive to this).
527  . "./$as_me.lineno"
528  # Exit status is that of the last command.
529  exit
530}
531
532
533# Determine whether it's possible to make 'echo' print without a newline.
534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535# for compatibility with existing Makefiles.
536ECHO_C= ECHO_N= ECHO_T=
537case `echo -n x` in #(((((
538-n*)
539  case `echo 'xy\c'` in
540  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
541  xy)  ECHO_C='\c';;
542  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
543       ECHO_T='	';;
544  esac;;
545*)
546  ECHO_N='-n';;
547esac
548
549# For backward compatibility with old third-party macros, we provide
550# the shell variables $as_echo and $as_echo_n.  New code should use
551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552as_echo='printf %s\n'
553as_echo_n='printf %s'
554
555
556rm -f conf$$ conf$$.exe conf$$.file
557if test -d conf$$.dir; then
558  rm -f conf$$.dir/conf$$.file
559else
560  rm -f conf$$.dir
561  mkdir conf$$.dir 2>/dev/null
562fi
563if (echo >conf$$.file) 2>/dev/null; then
564  if ln -s conf$$.file conf$$ 2>/dev/null; then
565    as_ln_s='ln -s'
566    # ... but there are two gotchas:
567    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569    # In both cases, we have to default to `cp -pR'.
570    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571      as_ln_s='cp -pR'
572  elif ln conf$$.file conf$$ 2>/dev/null; then
573    as_ln_s=ln
574  else
575    as_ln_s='cp -pR'
576  fi
577else
578  as_ln_s='cp -pR'
579fi
580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581rmdir conf$$.dir 2>/dev/null
582
583if mkdir -p . 2>/dev/null; then
584  as_mkdir_p='mkdir -p "$as_dir"'
585else
586  test -d ./-p && rmdir ./-p
587  as_mkdir_p=false
588fi
589
590as_test_x='test -x'
591as_executable_p=as_fn_executable_p
592
593# Sed expression to map a string onto a valid CPP name.
594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596# Sed expression to map a string onto a valid variable name.
597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599SHELL=${CONFIG_SHELL-/bin/sh}
600
601
602test -n "$DJDIR" || exec 7<&0 </dev/null
603exec 6>&1
604
605# Name of the host.
606# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607# so uname gets run too.
608ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609
610#
611# Initializations.
612#
613ac_default_prefix=/usr/local
614ac_clean_files=
615ac_config_libobj_dir=.
616LIBOBJS=
617cross_compiling=no
618subdirs=
619MFLAGS=
620MAKEFLAGS=
621
622# Identity of this package.
623PACKAGE_NAME='libXfixes'
624PACKAGE_TARNAME='libXfixes'
625PACKAGE_VERSION='6.0.1'
626PACKAGE_STRING='libXfixes 6.0.1'
627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxfixes/-/issues'
628PACKAGE_URL=''
629
630ac_unique_file="Makefile.am"
631# Factoring default headers for most tests.
632ac_includes_default="\
633#include <stddef.h>
634#ifdef HAVE_STDIO_H
635# include <stdio.h>
636#endif
637#ifdef HAVE_STDLIB_H
638# include <stdlib.h>
639#endif
640#ifdef HAVE_STRING_H
641# include <string.h>
642#endif
643#ifdef HAVE_INTTYPES_H
644# include <inttypes.h>
645#endif
646#ifdef HAVE_STDINT_H
647# include <stdint.h>
648#endif
649#ifdef HAVE_STRINGS_H
650# include <strings.h>
651#endif
652#ifdef HAVE_SYS_TYPES_H
653# include <sys/types.h>
654#endif
655#ifdef HAVE_SYS_STAT_H
656# include <sys/stat.h>
657#endif
658#ifdef HAVE_UNISTD_H
659# include <unistd.h>
660#endif"
661
662ac_header_c_list=
663ac_subst_vars='am__EXEEXT_FALSE
664am__EXEEXT_TRUE
665LTLIBOBJS
666LIBOBJS
667FIXESEXT_LIBS
668FIXESEXT_CFLAGS
669FIXESEXT_VERSION
670MAN_SUBSTS
671XORG_MAN_PAGE
672ADMIN_MAN_DIR
673DRIVER_MAN_DIR
674MISC_MAN_DIR
675FILE_MAN_DIR
676LIB_MAN_DIR
677APP_MAN_DIR
678ADMIN_MAN_SUFFIX
679DRIVER_MAN_SUFFIX
680MISC_MAN_SUFFIX
681FILE_MAN_SUFFIX
682LIB_MAN_SUFFIX
683APP_MAN_SUFFIX
684INSTALL_CMD
685PKG_CONFIG_LIBDIR
686PKG_CONFIG_PATH
687PKG_CONFIG
688CHANGELOG_CMD
689STRICT_CFLAGS
690CWARNFLAGS
691BASE_CFLAGS
692LT_SYS_LIBRARY_PATH
693OTOOL64
694OTOOL
695LIPO
696NMEDIT
697DSYMUTIL
698MANIFEST_TOOL
699RANLIB
700ac_ct_AR
701AR
702DLLTOOL
703OBJDUMP
704FILECMD
705LN_S
706NM
707ac_ct_DUMPBIN
708DUMPBIN
709LD
710FGREP
711EGREP
712GREP
713SED
714am__fastdepCC_FALSE
715am__fastdepCC_TRUE
716CCDEPMODE
717am__nodep
718AMDEPBACKSLASH
719AMDEP_FALSE
720AMDEP_TRUE
721am__include
722DEPDIR
723OBJEXT
724EXEEXT
725ac_ct_CC
726CPPFLAGS
727LDFLAGS
728CFLAGS
729CC
730host_os
731host_vendor
732host_cpu
733host
734build_os
735build_vendor
736build_cpu
737build
738LIBTOOL
739AM_BACKSLASH
740AM_DEFAULT_VERBOSITY
741AM_DEFAULT_V
742AM_V
743CSCOPE
744ETAGS
745CTAGS
746am__untar
747am__tar
748AMTAR
749am__leading_dot
750SET_MAKE
751AWK
752mkdir_p
753MKDIR_P
754INSTALL_STRIP_PROGRAM
755STRIP
756install_sh
757MAKEINFO
758AUTOHEADER
759AUTOMAKE
760AUTOCONF
761ACLOCAL
762VERSION
763PACKAGE
764CYGPATH_W
765am__isrc
766INSTALL_DATA
767INSTALL_SCRIPT
768INSTALL_PROGRAM
769target_alias
770host_alias
771build_alias
772LIBS
773ECHO_T
774ECHO_N
775ECHO_C
776DEFS
777mandir
778localedir
779libdir
780psdir
781pdfdir
782dvidir
783htmldir
784infodir
785docdir
786oldincludedir
787includedir
788runstatedir
789localstatedir
790sharedstatedir
791sysconfdir
792datadir
793datarootdir
794libexecdir
795sbindir
796bindir
797program_transform_name
798prefix
799exec_prefix
800PACKAGE_URL
801PACKAGE_BUGREPORT
802PACKAGE_STRING
803PACKAGE_VERSION
804PACKAGE_TARNAME
805PACKAGE_NAME
806PATH_SEPARATOR
807SHELL
808am__quote'
809ac_subst_files=''
810ac_user_opts='
811enable_option_checking
812enable_silent_rules
813enable_shared
814enable_static
815with_pic
816enable_fast_install
817with_aix_soname
818enable_dependency_tracking
819with_gnu_ld
820with_sysroot
821enable_libtool_lock
822enable_selective_werror
823enable_strict_compilation
824'
825      ac_precious_vars='build_alias
826host_alias
827target_alias
828CC
829CFLAGS
830LDFLAGS
831LIBS
832CPPFLAGS
833LT_SYS_LIBRARY_PATH
834PKG_CONFIG
835PKG_CONFIG_PATH
836PKG_CONFIG_LIBDIR
837FIXESEXT_CFLAGS
838FIXESEXT_LIBS'
839
840
841# Initialize some variables set by options.
842ac_init_help=
843ac_init_version=false
844ac_unrecognized_opts=
845ac_unrecognized_sep=
846# The variables have the same names as the options, with
847# dashes changed to underlines.
848cache_file=/dev/null
849exec_prefix=NONE
850no_create=
851no_recursion=
852prefix=NONE
853program_prefix=NONE
854program_suffix=NONE
855program_transform_name=s,x,x,
856silent=
857site=
858srcdir=
859verbose=
860x_includes=NONE
861x_libraries=NONE
862
863# Installation directory options.
864# These are left unexpanded so users can "make install exec_prefix=/foo"
865# and all the variables that are supposed to be based on exec_prefix
866# by default will actually change.
867# Use braces instead of parens because sh, perl, etc. also accept them.
868# (The list follows the same order as the GNU Coding Standards.)
869bindir='${exec_prefix}/bin'
870sbindir='${exec_prefix}/sbin'
871libexecdir='${exec_prefix}/libexec'
872datarootdir='${prefix}/share'
873datadir='${datarootdir}'
874sysconfdir='${prefix}/etc'
875sharedstatedir='${prefix}/com'
876localstatedir='${prefix}/var'
877runstatedir='${localstatedir}/run'
878includedir='${prefix}/include'
879oldincludedir='/usr/include'
880docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
881infodir='${datarootdir}/info'
882htmldir='${docdir}'
883dvidir='${docdir}'
884pdfdir='${docdir}'
885psdir='${docdir}'
886libdir='${exec_prefix}/lib'
887localedir='${datarootdir}/locale'
888mandir='${datarootdir}/man'
889
890ac_prev=
891ac_dashdash=
892for ac_option
893do
894  # If the previous option needs an argument, assign it.
895  if test -n "$ac_prev"; then
896    eval $ac_prev=\$ac_option
897    ac_prev=
898    continue
899  fi
900
901  case $ac_option in
902  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903  *=)   ac_optarg= ;;
904  *)    ac_optarg=yes ;;
905  esac
906
907  case $ac_dashdash$ac_option in
908  --)
909    ac_dashdash=yes ;;
910
911  -bindir | --bindir | --bindi | --bind | --bin | --bi)
912    ac_prev=bindir ;;
913  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914    bindir=$ac_optarg ;;
915
916  -build | --build | --buil | --bui | --bu)
917    ac_prev=build_alias ;;
918  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919    build_alias=$ac_optarg ;;
920
921  -cache-file | --cache-file | --cache-fil | --cache-fi \
922  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923    ac_prev=cache_file ;;
924  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926    cache_file=$ac_optarg ;;
927
928  --config-cache | -C)
929    cache_file=config.cache ;;
930
931  -datadir | --datadir | --datadi | --datad)
932    ac_prev=datadir ;;
933  -datadir=* | --datadir=* | --datadi=* | --datad=*)
934    datadir=$ac_optarg ;;
935
936  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937  | --dataroo | --dataro | --datar)
938    ac_prev=datarootdir ;;
939  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941    datarootdir=$ac_optarg ;;
942
943  -disable-* | --disable-*)
944    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945    # Reject names that are not valid shell variable names.
946    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947      as_fn_error $? "invalid feature name: \`$ac_useropt'"
948    ac_useropt_orig=$ac_useropt
949    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
950    case $ac_user_opts in
951      *"
952"enable_$ac_useropt"
953"*) ;;
954      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955	 ac_unrecognized_sep=', ';;
956    esac
957    eval enable_$ac_useropt=no ;;
958
959  -docdir | --docdir | --docdi | --doc | --do)
960    ac_prev=docdir ;;
961  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962    docdir=$ac_optarg ;;
963
964  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965    ac_prev=dvidir ;;
966  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967    dvidir=$ac_optarg ;;
968
969  -enable-* | --enable-*)
970    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971    # Reject names that are not valid shell variable names.
972    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973      as_fn_error $? "invalid feature name: \`$ac_useropt'"
974    ac_useropt_orig=$ac_useropt
975    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
976    case $ac_user_opts in
977      *"
978"enable_$ac_useropt"
979"*) ;;
980      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981	 ac_unrecognized_sep=', ';;
982    esac
983    eval enable_$ac_useropt=\$ac_optarg ;;
984
985  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987  | --exec | --exe | --ex)
988    ac_prev=exec_prefix ;;
989  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991  | --exec=* | --exe=* | --ex=*)
992    exec_prefix=$ac_optarg ;;
993
994  -gas | --gas | --ga | --g)
995    # Obsolete; use --with-gas.
996    with_gas=yes ;;
997
998  -help | --help | --hel | --he | -h)
999    ac_init_help=long ;;
1000  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001    ac_init_help=recursive ;;
1002  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003    ac_init_help=short ;;
1004
1005  -host | --host | --hos | --ho)
1006    ac_prev=host_alias ;;
1007  -host=* | --host=* | --hos=* | --ho=*)
1008    host_alias=$ac_optarg ;;
1009
1010  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011    ac_prev=htmldir ;;
1012  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013  | --ht=*)
1014    htmldir=$ac_optarg ;;
1015
1016  -includedir | --includedir | --includedi | --included | --include \
1017  | --includ | --inclu | --incl | --inc)
1018    ac_prev=includedir ;;
1019  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020  | --includ=* | --inclu=* | --incl=* | --inc=*)
1021    includedir=$ac_optarg ;;
1022
1023  -infodir | --infodir | --infodi | --infod | --info | --inf)
1024    ac_prev=infodir ;;
1025  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026    infodir=$ac_optarg ;;
1027
1028  -libdir | --libdir | --libdi | --libd)
1029    ac_prev=libdir ;;
1030  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031    libdir=$ac_optarg ;;
1032
1033  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034  | --libexe | --libex | --libe)
1035    ac_prev=libexecdir ;;
1036  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037  | --libexe=* | --libex=* | --libe=*)
1038    libexecdir=$ac_optarg ;;
1039
1040  -localedir | --localedir | --localedi | --localed | --locale)
1041    ac_prev=localedir ;;
1042  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043    localedir=$ac_optarg ;;
1044
1045  -localstatedir | --localstatedir | --localstatedi | --localstated \
1046  | --localstate | --localstat | --localsta | --localst | --locals)
1047    ac_prev=localstatedir ;;
1048  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050    localstatedir=$ac_optarg ;;
1051
1052  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053    ac_prev=mandir ;;
1054  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055    mandir=$ac_optarg ;;
1056
1057  -nfp | --nfp | --nf)
1058    # Obsolete; use --without-fp.
1059    with_fp=no ;;
1060
1061  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062  | --no-cr | --no-c | -n)
1063    no_create=yes ;;
1064
1065  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067    no_recursion=yes ;;
1068
1069  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071  | --oldin | --oldi | --old | --ol | --o)
1072    ac_prev=oldincludedir ;;
1073  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076    oldincludedir=$ac_optarg ;;
1077
1078  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079    ac_prev=prefix ;;
1080  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081    prefix=$ac_optarg ;;
1082
1083  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084  | --program-pre | --program-pr | --program-p)
1085    ac_prev=program_prefix ;;
1086  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088    program_prefix=$ac_optarg ;;
1089
1090  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091  | --program-suf | --program-su | --program-s)
1092    ac_prev=program_suffix ;;
1093  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095    program_suffix=$ac_optarg ;;
1096
1097  -program-transform-name | --program-transform-name \
1098  | --program-transform-nam | --program-transform-na \
1099  | --program-transform-n | --program-transform- \
1100  | --program-transform | --program-transfor \
1101  | --program-transfo | --program-transf \
1102  | --program-trans | --program-tran \
1103  | --progr-tra | --program-tr | --program-t)
1104    ac_prev=program_transform_name ;;
1105  -program-transform-name=* | --program-transform-name=* \
1106  | --program-transform-nam=* | --program-transform-na=* \
1107  | --program-transform-n=* | --program-transform-=* \
1108  | --program-transform=* | --program-transfor=* \
1109  | --program-transfo=* | --program-transf=* \
1110  | --program-trans=* | --program-tran=* \
1111  | --progr-tra=* | --program-tr=* | --program-t=*)
1112    program_transform_name=$ac_optarg ;;
1113
1114  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115    ac_prev=pdfdir ;;
1116  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117    pdfdir=$ac_optarg ;;
1118
1119  -psdir | --psdir | --psdi | --psd | --ps)
1120    ac_prev=psdir ;;
1121  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122    psdir=$ac_optarg ;;
1123
1124  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125  | -silent | --silent | --silen | --sile | --sil)
1126    silent=yes ;;
1127
1128  -runstatedir | --runstatedir | --runstatedi | --runstated \
1129  | --runstate | --runstat | --runsta | --runst | --runs \
1130  | --run | --ru | --r)
1131    ac_prev=runstatedir ;;
1132  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1133  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1134  | --run=* | --ru=* | --r=*)
1135    runstatedir=$ac_optarg ;;
1136
1137  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1138    ac_prev=sbindir ;;
1139  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1140  | --sbi=* | --sb=*)
1141    sbindir=$ac_optarg ;;
1142
1143  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1144  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1145  | --sharedst | --shareds | --shared | --share | --shar \
1146  | --sha | --sh)
1147    ac_prev=sharedstatedir ;;
1148  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1149  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1150  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1151  | --sha=* | --sh=*)
1152    sharedstatedir=$ac_optarg ;;
1153
1154  -site | --site | --sit)
1155    ac_prev=site ;;
1156  -site=* | --site=* | --sit=*)
1157    site=$ac_optarg ;;
1158
1159  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1160    ac_prev=srcdir ;;
1161  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1162    srcdir=$ac_optarg ;;
1163
1164  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1165  | --syscon | --sysco | --sysc | --sys | --sy)
1166    ac_prev=sysconfdir ;;
1167  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1168  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1169    sysconfdir=$ac_optarg ;;
1170
1171  -target | --target | --targe | --targ | --tar | --ta | --t)
1172    ac_prev=target_alias ;;
1173  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1174    target_alias=$ac_optarg ;;
1175
1176  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1177    verbose=yes ;;
1178
1179  -version | --version | --versio | --versi | --vers | -V)
1180    ac_init_version=: ;;
1181
1182  -with-* | --with-*)
1183    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1184    # Reject names that are not valid shell variable names.
1185    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186      as_fn_error $? "invalid package name: \`$ac_useropt'"
1187    ac_useropt_orig=$ac_useropt
1188    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1189    case $ac_user_opts in
1190      *"
1191"with_$ac_useropt"
1192"*) ;;
1193      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1194	 ac_unrecognized_sep=', ';;
1195    esac
1196    eval with_$ac_useropt=\$ac_optarg ;;
1197
1198  -without-* | --without-*)
1199    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1200    # Reject names that are not valid shell variable names.
1201    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202      as_fn_error $? "invalid package name: \`$ac_useropt'"
1203    ac_useropt_orig=$ac_useropt
1204    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1205    case $ac_user_opts in
1206      *"
1207"with_$ac_useropt"
1208"*) ;;
1209      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1210	 ac_unrecognized_sep=', ';;
1211    esac
1212    eval with_$ac_useropt=no ;;
1213
1214  --x)
1215    # Obsolete; use --with-x.
1216    with_x=yes ;;
1217
1218  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1219  | --x-incl | --x-inc | --x-in | --x-i)
1220    ac_prev=x_includes ;;
1221  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1222  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1223    x_includes=$ac_optarg ;;
1224
1225  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1226  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1227    ac_prev=x_libraries ;;
1228  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1229  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1230    x_libraries=$ac_optarg ;;
1231
1232  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1233Try \`$0 --help' for more information"
1234    ;;
1235
1236  *=*)
1237    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1238    # Reject names that are not valid shell variable names.
1239    case $ac_envvar in #(
1240      '' | [0-9]* | *[!_$as_cr_alnum]* )
1241      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1242    esac
1243    eval $ac_envvar=\$ac_optarg
1244    export $ac_envvar ;;
1245
1246  *)
1247    # FIXME: should be removed in autoconf 3.0.
1248    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1249    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1251    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1252    ;;
1253
1254  esac
1255done
1256
1257if test -n "$ac_prev"; then
1258  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1259  as_fn_error $? "missing argument to $ac_option"
1260fi
1261
1262if test -n "$ac_unrecognized_opts"; then
1263  case $enable_option_checking in
1264    no) ;;
1265    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1266    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1267  esac
1268fi
1269
1270# Check all directory arguments for consistency.
1271for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1272		datadir sysconfdir sharedstatedir localstatedir includedir \
1273		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1274		libdir localedir mandir runstatedir
1275do
1276  eval ac_val=\$$ac_var
1277  # Remove trailing slashes.
1278  case $ac_val in
1279    */ )
1280      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1281      eval $ac_var=\$ac_val;;
1282  esac
1283  # Be sure to have absolute directory names.
1284  case $ac_val in
1285    [\\/$]* | ?:[\\/]* )  continue;;
1286    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287  esac
1288  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1289done
1290
1291# There might be people who depend on the old broken behavior: `$host'
1292# used to hold the argument of --host etc.
1293# FIXME: To remove some day.
1294build=$build_alias
1295host=$host_alias
1296target=$target_alias
1297
1298# FIXME: To remove some day.
1299if test "x$host_alias" != x; then
1300  if test "x$build_alias" = x; then
1301    cross_compiling=maybe
1302  elif test "x$build_alias" != "x$host_alias"; then
1303    cross_compiling=yes
1304  fi
1305fi
1306
1307ac_tool_prefix=
1308test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309
1310test "$silent" = yes && exec 6>/dev/null
1311
1312
1313ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314ac_ls_di=`ls -di .` &&
1315ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316  as_fn_error $? "working directory cannot be determined"
1317test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318  as_fn_error $? "pwd does not report name of working directory"
1319
1320
1321# Find the source files, if location was not specified.
1322if test -z "$srcdir"; then
1323  ac_srcdir_defaulted=yes
1324  # Try the directory containing this script, then the parent directory.
1325  ac_confdir=`$as_dirname -- "$as_myself" ||
1326$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327	 X"$as_myself" : 'X\(//\)[^/]' \| \
1328	 X"$as_myself" : 'X\(//\)$' \| \
1329	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330printf "%s\n" X"$as_myself" |
1331    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332	    s//\1/
1333	    q
1334	  }
1335	  /^X\(\/\/\)[^/].*/{
1336	    s//\1/
1337	    q
1338	  }
1339	  /^X\(\/\/\)$/{
1340	    s//\1/
1341	    q
1342	  }
1343	  /^X\(\/\).*/{
1344	    s//\1/
1345	    q
1346	  }
1347	  s/.*/./; q'`
1348  srcdir=$ac_confdir
1349  if test ! -r "$srcdir/$ac_unique_file"; then
1350    srcdir=..
1351  fi
1352else
1353  ac_srcdir_defaulted=no
1354fi
1355if test ! -r "$srcdir/$ac_unique_file"; then
1356  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1358fi
1359ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360ac_abs_confdir=`(
1361	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1362	pwd)`
1363# When building in place, set srcdir=.
1364if test "$ac_abs_confdir" = "$ac_pwd"; then
1365  srcdir=.
1366fi
1367# Remove unnecessary trailing slashes from srcdir.
1368# Double slashes in file names in object file debugging info
1369# mess up M-x gdb in Emacs.
1370case $srcdir in
1371*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372esac
1373for ac_var in $ac_precious_vars; do
1374  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375  eval ac_env_${ac_var}_value=\$${ac_var}
1376  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378done
1379
1380#
1381# Report the --help message.
1382#
1383if test "$ac_init_help" = "long"; then
1384  # Omit some internal or obsolete options to make the list less imposing.
1385  # This message is too long to be a string in the A/UX 3.1 sh.
1386  cat <<_ACEOF
1387\`configure' configures libXfixes 6.0.1 to adapt to many kinds of systems.
1388
1389Usage: $0 [OPTION]... [VAR=VALUE]...
1390
1391To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392VAR=VALUE.  See below for descriptions of some of the useful variables.
1393
1394Defaults for the options are specified in brackets.
1395
1396Configuration:
1397  -h, --help              display this help and exit
1398      --help=short        display options specific to this package
1399      --help=recursive    display the short help of all the included packages
1400  -V, --version           display version information and exit
1401  -q, --quiet, --silent   do not print \`checking ...' messages
1402      --cache-file=FILE   cache test results in FILE [disabled]
1403  -C, --config-cache      alias for \`--cache-file=config.cache'
1404  -n, --no-create         do not create output files
1405      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1406
1407Installation directories:
1408  --prefix=PREFIX         install architecture-independent files in PREFIX
1409                          [$ac_default_prefix]
1410  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1411                          [PREFIX]
1412
1413By default, \`make install' will install all the files in
1414\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1415an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1416for instance \`--prefix=\$HOME'.
1417
1418For better control, use the options below.
1419
1420Fine tuning of the installation directories:
1421  --bindir=DIR            user executables [EPREFIX/bin]
1422  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1423  --libexecdir=DIR        program executables [EPREFIX/libexec]
1424  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1425  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1426  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1427  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1428  --libdir=DIR            object code libraries [EPREFIX/lib]
1429  --includedir=DIR        C header files [PREFIX/include]
1430  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1431  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1432  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1433  --infodir=DIR           info documentation [DATAROOTDIR/info]
1434  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1435  --mandir=DIR            man documentation [DATAROOTDIR/man]
1436  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXfixes]
1437  --htmldir=DIR           html documentation [DOCDIR]
1438  --dvidir=DIR            dvi documentation [DOCDIR]
1439  --pdfdir=DIR            pdf documentation [DOCDIR]
1440  --psdir=DIR             ps documentation [DOCDIR]
1441_ACEOF
1442
1443  cat <<\_ACEOF
1444
1445Program names:
1446  --program-prefix=PREFIX            prepend PREFIX to installed program names
1447  --program-suffix=SUFFIX            append SUFFIX to installed program names
1448  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1449
1450System types:
1451  --build=BUILD     configure for building on BUILD [guessed]
1452  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1453_ACEOF
1454fi
1455
1456if test -n "$ac_init_help"; then
1457  case $ac_init_help in
1458     short | recursive ) echo "Configuration of libXfixes 6.0.1:";;
1459   esac
1460  cat <<\_ACEOF
1461
1462Optional Features:
1463  --disable-option-checking  ignore unrecognized --enable/--with options
1464  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1465  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1466  --enable-silent-rules   less verbose build output (undo: "make V=1")
1467  --disable-silent-rules  verbose build output (undo: "make V=0")
1468  --enable-shared[=PKGS]  build shared libraries [default=yes]
1469  --enable-static[=PKGS]  build static libraries [default=yes]
1470  --enable-fast-install[=PKGS]
1471                          optimize for fast installation [default=yes]
1472  --enable-dependency-tracking
1473                          do not reject slow dependency extractors
1474  --disable-dependency-tracking
1475                          speeds up one-time build
1476  --disable-libtool-lock  avoid locking (might break parallel builds)
1477  --disable-selective-werror
1478                          Turn off selective compiler errors. (default:
1479                          enabled)
1480  --enable-strict-compilation
1481                          Enable all warnings from compiler and make them
1482                          errors (default: disabled)
1483
1484Optional Packages:
1485  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1486  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1487  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1488                          both]
1489  --with-aix-soname=aix|svr4|both
1490                          shared library versioning (aka "SONAME") variant to
1491                          provide on AIX, [default=aix].
1492  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1493  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1494                          compiler's sysroot if not specified).
1495
1496Some influential environment variables:
1497  CC          C compiler command
1498  CFLAGS      C compiler flags
1499  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1500              nonstandard directory <lib dir>
1501  LIBS        libraries to pass to the linker, e.g. -l<library>
1502  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1503              you have headers in a nonstandard directory <include dir>
1504  LT_SYS_LIBRARY_PATH
1505              User-defined run-time library search path.
1506  PKG_CONFIG  path to pkg-config utility
1507  PKG_CONFIG_PATH
1508              directories to add to pkg-config's search path
1509  PKG_CONFIG_LIBDIR
1510              path overriding pkg-config's built-in search path
1511  FIXESEXT_CFLAGS
1512              C compiler flags for FIXESEXT, overriding pkg-config
1513  FIXESEXT_LIBS
1514              linker flags for FIXESEXT, overriding pkg-config
1515
1516Use these variables to override the choices made by `configure' or to help
1517it to find libraries and programs with nonstandard names/locations.
1518
1519Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxfixes/-/issues>.
1520_ACEOF
1521ac_status=$?
1522fi
1523
1524if test "$ac_init_help" = "recursive"; then
1525  # If there are subdirs, report their specific --help.
1526  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1527    test -d "$ac_dir" ||
1528      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1529      continue
1530    ac_builddir=.
1531
1532case "$ac_dir" in
1533.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534*)
1535  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1536  # A ".." for each directory in $ac_dir_suffix.
1537  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1538  case $ac_top_builddir_sub in
1539  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1541  esac ;;
1542esac
1543ac_abs_top_builddir=$ac_pwd
1544ac_abs_builddir=$ac_pwd$ac_dir_suffix
1545# for backward compatibility:
1546ac_top_builddir=$ac_top_build_prefix
1547
1548case $srcdir in
1549  .)  # We are building in place.
1550    ac_srcdir=.
1551    ac_top_srcdir=$ac_top_builddir_sub
1552    ac_abs_top_srcdir=$ac_pwd ;;
1553  [\\/]* | ?:[\\/]* )  # Absolute name.
1554    ac_srcdir=$srcdir$ac_dir_suffix;
1555    ac_top_srcdir=$srcdir
1556    ac_abs_top_srcdir=$srcdir ;;
1557  *) # Relative name.
1558    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1559    ac_top_srcdir=$ac_top_build_prefix$srcdir
1560    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1561esac
1562ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1563
1564    cd "$ac_dir" || { ac_status=$?; continue; }
1565    # Check for configure.gnu first; this name is used for a wrapper for
1566    # Metaconfig's "Configure" on case-insensitive file systems.
1567    if test -f "$ac_srcdir/configure.gnu"; then
1568      echo &&
1569      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570    elif test -f "$ac_srcdir/configure"; then
1571      echo &&
1572      $SHELL "$ac_srcdir/configure" --help=recursive
1573    else
1574      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575    fi || ac_status=$?
1576    cd "$ac_pwd" || { ac_status=$?; break; }
1577  done
1578fi
1579
1580test -n "$ac_init_help" && exit $ac_status
1581if $ac_init_version; then
1582  cat <<\_ACEOF
1583libXfixes configure 6.0.1
1584generated by GNU Autoconf 2.71
1585
1586Copyright (C) 2021 Free Software Foundation, Inc.
1587This configure script is free software; the Free Software Foundation
1588gives unlimited permission to copy, distribute and modify it.
1589_ACEOF
1590  exit
1591fi
1592
1593## ------------------------ ##
1594## Autoconf initialization. ##
1595## ------------------------ ##
1596
1597# ac_fn_c_try_compile LINENO
1598# --------------------------
1599# Try to compile conftest.$ac_ext, and return whether this succeeded.
1600ac_fn_c_try_compile ()
1601{
1602  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603  rm -f conftest.$ac_objext conftest.beam
1604  if { { ac_try="$ac_compile"
1605case "(($ac_try" in
1606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607  *) ac_try_echo=$ac_try;;
1608esac
1609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610printf "%s\n" "$ac_try_echo"; } >&5
1611  (eval "$ac_compile") 2>conftest.err
1612  ac_status=$?
1613  if test -s conftest.err; then
1614    grep -v '^ *+' conftest.err >conftest.er1
1615    cat conftest.er1 >&5
1616    mv -f conftest.er1 conftest.err
1617  fi
1618  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619  test $ac_status = 0; } && {
1620	 test -z "$ac_c_werror_flag" ||
1621	 test ! -s conftest.err
1622       } && test -s conftest.$ac_objext
1623then :
1624  ac_retval=0
1625else $as_nop
1626  printf "%s\n" "$as_me: failed program was:" >&5
1627sed 's/^/| /' conftest.$ac_ext >&5
1628
1629	ac_retval=1
1630fi
1631  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632  as_fn_set_status $ac_retval
1633
1634} # ac_fn_c_try_compile
1635
1636# ac_fn_c_try_link LINENO
1637# -----------------------
1638# Try to link conftest.$ac_ext, and return whether this succeeded.
1639ac_fn_c_try_link ()
1640{
1641  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1643  if { { ac_try="$ac_link"
1644case "(($ac_try" in
1645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646  *) ac_try_echo=$ac_try;;
1647esac
1648eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649printf "%s\n" "$ac_try_echo"; } >&5
1650  (eval "$ac_link") 2>conftest.err
1651  ac_status=$?
1652  if test -s conftest.err; then
1653    grep -v '^ *+' conftest.err >conftest.er1
1654    cat conftest.er1 >&5
1655    mv -f conftest.er1 conftest.err
1656  fi
1657  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658  test $ac_status = 0; } && {
1659	 test -z "$ac_c_werror_flag" ||
1660	 test ! -s conftest.err
1661       } && test -s conftest$ac_exeext && {
1662	 test "$cross_compiling" = yes ||
1663	 test -x conftest$ac_exeext
1664       }
1665then :
1666  ac_retval=0
1667else $as_nop
1668  printf "%s\n" "$as_me: failed program was:" >&5
1669sed 's/^/| /' conftest.$ac_ext >&5
1670
1671	ac_retval=1
1672fi
1673  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1674  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1675  # interfere with the next link command; also delete a directory that is
1676  # left behind by Apple's compiler.  We do this before executing the actions.
1677  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1678  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679  as_fn_set_status $ac_retval
1680
1681} # ac_fn_c_try_link
1682
1683# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1684# -------------------------------------------------------
1685# Tests whether HEADER exists and can be compiled using the include files in
1686# INCLUDES, setting the cache variable VAR accordingly.
1687ac_fn_c_check_header_compile ()
1688{
1689  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691printf %s "checking for $2... " >&6; }
1692if eval test \${$3+y}
1693then :
1694  printf %s "(cached) " >&6
1695else $as_nop
1696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697/* end confdefs.h.  */
1698$4
1699#include <$2>
1700_ACEOF
1701if ac_fn_c_try_compile "$LINENO"
1702then :
1703  eval "$3=yes"
1704else $as_nop
1705  eval "$3=no"
1706fi
1707rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1708fi
1709eval ac_res=\$$3
1710	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711printf "%s\n" "$ac_res" >&6; }
1712  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713
1714} # ac_fn_c_check_header_compile
1715
1716# ac_fn_c_check_func LINENO FUNC VAR
1717# ----------------------------------
1718# Tests whether FUNC exists, setting the cache variable VAR accordingly
1719ac_fn_c_check_func ()
1720{
1721  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723printf %s "checking for $2... " >&6; }
1724if eval test \${$3+y}
1725then :
1726  printf %s "(cached) " >&6
1727else $as_nop
1728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729/* end confdefs.h.  */
1730/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1731   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1732#define $2 innocuous_$2
1733
1734/* System header to define __stub macros and hopefully few prototypes,
1735   which can conflict with char $2 (); below.  */
1736
1737#include <limits.h>
1738#undef $2
1739
1740/* Override any GCC internal prototype to avoid an error.
1741   Use char because int might match the return type of a GCC
1742   builtin and then its argument prototype would still apply.  */
1743#ifdef __cplusplus
1744extern "C"
1745#endif
1746char $2 ();
1747/* The GNU C library defines this for functions which it implements
1748    to always fail with ENOSYS.  Some functions are actually named
1749    something starting with __ and the normal name is an alias.  */
1750#if defined __stub_$2 || defined __stub___$2
1751choke me
1752#endif
1753
1754int
1755main (void)
1756{
1757return $2 ();
1758  ;
1759  return 0;
1760}
1761_ACEOF
1762if ac_fn_c_try_link "$LINENO"
1763then :
1764  eval "$3=yes"
1765else $as_nop
1766  eval "$3=no"
1767fi
1768rm -f core conftest.err conftest.$ac_objext conftest.beam \
1769    conftest$ac_exeext conftest.$ac_ext
1770fi
1771eval ac_res=\$$3
1772	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773printf "%s\n" "$ac_res" >&6; }
1774  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775
1776} # ac_fn_c_check_func
1777
1778# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1779# ------------------------------------------------------------------
1780# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1781# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1782ac_fn_check_decl ()
1783{
1784  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785  as_decl_name=`echo $2|sed 's/ *(.*//'`
1786  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1787printf %s "checking whether $as_decl_name is declared... " >&6; }
1788if eval test \${$3+y}
1789then :
1790  printf %s "(cached) " >&6
1791else $as_nop
1792  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1793  eval ac_save_FLAGS=\$$6
1794  as_fn_append $6 " $5"
1795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796/* end confdefs.h.  */
1797$4
1798int
1799main (void)
1800{
1801#ifndef $as_decl_name
1802#ifdef __cplusplus
1803  (void) $as_decl_use;
1804#else
1805  (void) $as_decl_name;
1806#endif
1807#endif
1808
1809  ;
1810  return 0;
1811}
1812_ACEOF
1813if ac_fn_c_try_compile "$LINENO"
1814then :
1815  eval "$3=yes"
1816else $as_nop
1817  eval "$3=no"
1818fi
1819rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1820  eval $6=\$ac_save_FLAGS
1821
1822fi
1823eval ac_res=\$$3
1824	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825printf "%s\n" "$ac_res" >&6; }
1826  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827
1828} # ac_fn_check_decl
1829ac_configure_args_raw=
1830for ac_arg
1831do
1832  case $ac_arg in
1833  *\'*)
1834    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1835  esac
1836  as_fn_append ac_configure_args_raw " '$ac_arg'"
1837done
1838
1839case $ac_configure_args_raw in
1840  *$as_nl*)
1841    ac_safe_unquote= ;;
1842  *)
1843    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1844    ac_unsafe_a="$ac_unsafe_z#~"
1845    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1846    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1847esac
1848
1849cat >config.log <<_ACEOF
1850This file contains any messages produced by compilers while
1851running configure, to aid debugging if configure makes a mistake.
1852
1853It was created by libXfixes $as_me 6.0.1, which was
1854generated by GNU Autoconf 2.71.  Invocation command line was
1855
1856  $ $0$ac_configure_args_raw
1857
1858_ACEOF
1859exec 5>>config.log
1860{
1861cat <<_ASUNAME
1862## --------- ##
1863## Platform. ##
1864## --------- ##
1865
1866hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1867uname -m = `(uname -m) 2>/dev/null || echo unknown`
1868uname -r = `(uname -r) 2>/dev/null || echo unknown`
1869uname -s = `(uname -s) 2>/dev/null || echo unknown`
1870uname -v = `(uname -v) 2>/dev/null || echo unknown`
1871
1872/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1873/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1874
1875/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1876/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1877/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1878/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1879/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1880/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1881/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1882
1883_ASUNAME
1884
1885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886for as_dir in $PATH
1887do
1888  IFS=$as_save_IFS
1889  case $as_dir in #(((
1890    '') as_dir=./ ;;
1891    */) ;;
1892    *) as_dir=$as_dir/ ;;
1893  esac
1894    printf "%s\n" "PATH: $as_dir"
1895  done
1896IFS=$as_save_IFS
1897
1898} >&5
1899
1900cat >&5 <<_ACEOF
1901
1902
1903## ----------- ##
1904## Core tests. ##
1905## ----------- ##
1906
1907_ACEOF
1908
1909
1910# Keep a trace of the command line.
1911# Strip out --no-create and --no-recursion so they do not pile up.
1912# Strip out --silent because we don't want to record it for future runs.
1913# Also quote any args containing shell meta-characters.
1914# Make two passes to allow for proper duplicate-argument suppression.
1915ac_configure_args=
1916ac_configure_args0=
1917ac_configure_args1=
1918ac_must_keep_next=false
1919for ac_pass in 1 2
1920do
1921  for ac_arg
1922  do
1923    case $ac_arg in
1924    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1925    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1926    | -silent | --silent | --silen | --sile | --sil)
1927      continue ;;
1928    *\'*)
1929      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1930    esac
1931    case $ac_pass in
1932    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1933    2)
1934      as_fn_append ac_configure_args1 " '$ac_arg'"
1935      if test $ac_must_keep_next = true; then
1936	ac_must_keep_next=false # Got value, back to normal.
1937      else
1938	case $ac_arg in
1939	  *=* | --config-cache | -C | -disable-* | --disable-* \
1940	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1941	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1942	  | -with-* | --with-* | -without-* | --without-* | --x)
1943	    case "$ac_configure_args0 " in
1944	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1945	    esac
1946	    ;;
1947	  -* ) ac_must_keep_next=true ;;
1948	esac
1949      fi
1950      as_fn_append ac_configure_args " '$ac_arg'"
1951      ;;
1952    esac
1953  done
1954done
1955{ ac_configure_args0=; unset ac_configure_args0;}
1956{ ac_configure_args1=; unset ac_configure_args1;}
1957
1958# When interrupted or exit'd, cleanup temporary files, and complete
1959# config.log.  We remove comments because anyway the quotes in there
1960# would cause problems or look ugly.
1961# WARNING: Use '\'' to represent an apostrophe within the trap.
1962# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1963trap 'exit_status=$?
1964  # Sanitize IFS.
1965  IFS=" ""	$as_nl"
1966  # Save into config.log some information that might help in debugging.
1967  {
1968    echo
1969
1970    printf "%s\n" "## ---------------- ##
1971## Cache variables. ##
1972## ---------------- ##"
1973    echo
1974    # The following way of writing the cache mishandles newlines in values,
1975(
1976  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1977    eval ac_val=\$$ac_var
1978    case $ac_val in #(
1979    *${as_nl}*)
1980      case $ac_var in #(
1981      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1982printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1983      esac
1984      case $ac_var in #(
1985      _ | IFS | as_nl) ;; #(
1986      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1987      *) { eval $ac_var=; unset $ac_var;} ;;
1988      esac ;;
1989    esac
1990  done
1991  (set) 2>&1 |
1992    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1993    *${as_nl}ac_space=\ *)
1994      sed -n \
1995	"s/'\''/'\''\\\\'\'''\''/g;
1996	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1997      ;; #(
1998    *)
1999      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2000      ;;
2001    esac |
2002    sort
2003)
2004    echo
2005
2006    printf "%s\n" "## ----------------- ##
2007## Output variables. ##
2008## ----------------- ##"
2009    echo
2010    for ac_var in $ac_subst_vars
2011    do
2012      eval ac_val=\$$ac_var
2013      case $ac_val in
2014      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2015      esac
2016      printf "%s\n" "$ac_var='\''$ac_val'\''"
2017    done | sort
2018    echo
2019
2020    if test -n "$ac_subst_files"; then
2021      printf "%s\n" "## ------------------- ##
2022## File substitutions. ##
2023## ------------------- ##"
2024      echo
2025      for ac_var in $ac_subst_files
2026      do
2027	eval ac_val=\$$ac_var
2028	case $ac_val in
2029	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2030	esac
2031	printf "%s\n" "$ac_var='\''$ac_val'\''"
2032      done | sort
2033      echo
2034    fi
2035
2036    if test -s confdefs.h; then
2037      printf "%s\n" "## ----------- ##
2038## confdefs.h. ##
2039## ----------- ##"
2040      echo
2041      cat confdefs.h
2042      echo
2043    fi
2044    test "$ac_signal" != 0 &&
2045      printf "%s\n" "$as_me: caught signal $ac_signal"
2046    printf "%s\n" "$as_me: exit $exit_status"
2047  } >&5
2048  rm -f core *.core core.conftest.* &&
2049    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2050    exit $exit_status
2051' 0
2052for ac_signal in 1 2 13 15; do
2053  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2054done
2055ac_signal=0
2056
2057# confdefs.h avoids OS command line length limits that DEFS can exceed.
2058rm -f -r conftest* confdefs.h
2059
2060printf "%s\n" "/* confdefs.h */" > confdefs.h
2061
2062# Predefined preprocessor variables.
2063
2064printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2065
2066printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2067
2068printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2069
2070printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2071
2072printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2073
2074printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2075
2076
2077# Let the site file select an alternate cache file if it wants to.
2078# Prefer an explicitly selected file to automatically selected ones.
2079if test -n "$CONFIG_SITE"; then
2080  ac_site_files="$CONFIG_SITE"
2081elif test "x$prefix" != xNONE; then
2082  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2083else
2084  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2085fi
2086
2087for ac_site_file in $ac_site_files
2088do
2089  case $ac_site_file in #(
2090  */*) :
2091     ;; #(
2092  *) :
2093    ac_site_file=./$ac_site_file ;;
2094esac
2095  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2096    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2097printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2098    sed 's/^/| /' "$ac_site_file" >&5
2099    . "$ac_site_file" \
2100      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2101printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2102as_fn_error $? "failed to load site script $ac_site_file
2103See \`config.log' for more details" "$LINENO" 5; }
2104  fi
2105done
2106
2107if test -r "$cache_file"; then
2108  # Some versions of bash will fail to source /dev/null (special files
2109  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2110  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2111    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2112printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2113    case $cache_file in
2114      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2115      *)                      . "./$cache_file";;
2116    esac
2117  fi
2118else
2119  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2120printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2121  >$cache_file
2122fi
2123
2124# Test code for whether the C compiler supports C89 (global declarations)
2125ac_c_conftest_c89_globals='
2126/* Does the compiler advertise C89 conformance?
2127   Do not test the value of __STDC__, because some compilers set it to 0
2128   while being otherwise adequately conformant. */
2129#if !defined __STDC__
2130# error "Compiler does not advertise C89 conformance"
2131#endif
2132
2133#include <stddef.h>
2134#include <stdarg.h>
2135struct stat;
2136/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2137struct buf { int x; };
2138struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2139static char *e (p, i)
2140     char **p;
2141     int i;
2142{
2143  return p[i];
2144}
2145static char *f (char * (*g) (char **, int), char **p, ...)
2146{
2147  char *s;
2148  va_list v;
2149  va_start (v,p);
2150  s = g (p, va_arg (v,int));
2151  va_end (v);
2152  return s;
2153}
2154
2155/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2156   function prototypes and stuff, but not \xHH hex character constants.
2157   These do not provoke an error unfortunately, instead are silently treated
2158   as an "x".  The following induces an error, until -std is added to get
2159   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2160   array size at least.  It is necessary to write \x00 == 0 to get something
2161   that is true only with -std.  */
2162int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2163
2164/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2165   inside strings and character constants.  */
2166#define FOO(x) '\''x'\''
2167int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2168
2169int test (int i, double x);
2170struct s1 {int (*f) (int a);};
2171struct s2 {int (*f) (double a);};
2172int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2173               int, int);'
2174
2175# Test code for whether the C compiler supports C89 (body of main).
2176ac_c_conftest_c89_main='
2177ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2178'
2179
2180# Test code for whether the C compiler supports C99 (global declarations)
2181ac_c_conftest_c99_globals='
2182// Does the compiler advertise C99 conformance?
2183#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2184# error "Compiler does not advertise C99 conformance"
2185#endif
2186
2187#include <stdbool.h>
2188extern int puts (const char *);
2189extern int printf (const char *, ...);
2190extern int dprintf (int, const char *, ...);
2191extern void *malloc (size_t);
2192
2193// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2194// dprintf is used instead of fprintf to avoid needing to declare
2195// FILE and stderr.
2196#define debug(...) dprintf (2, __VA_ARGS__)
2197#define showlist(...) puts (#__VA_ARGS__)
2198#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2199static void
2200test_varargs_macros (void)
2201{
2202  int x = 1234;
2203  int y = 5678;
2204  debug ("Flag");
2205  debug ("X = %d\n", x);
2206  showlist (The first, second, and third items.);
2207  report (x>y, "x is %d but y is %d", x, y);
2208}
2209
2210// Check long long types.
2211#define BIG64 18446744073709551615ull
2212#define BIG32 4294967295ul
2213#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2214#if !BIG_OK
2215  #error "your preprocessor is broken"
2216#endif
2217#if BIG_OK
2218#else
2219  #error "your preprocessor is broken"
2220#endif
2221static long long int bignum = -9223372036854775807LL;
2222static unsigned long long int ubignum = BIG64;
2223
2224struct incomplete_array
2225{
2226  int datasize;
2227  double data[];
2228};
2229
2230struct named_init {
2231  int number;
2232  const wchar_t *name;
2233  double average;
2234};
2235
2236typedef const char *ccp;
2237
2238static inline int
2239test_restrict (ccp restrict text)
2240{
2241  // See if C++-style comments work.
2242  // Iterate through items via the restricted pointer.
2243  // Also check for declarations in for loops.
2244  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2245    continue;
2246  return 0;
2247}
2248
2249// Check varargs and va_copy.
2250static bool
2251test_varargs (const char *format, ...)
2252{
2253  va_list args;
2254  va_start (args, format);
2255  va_list args_copy;
2256  va_copy (args_copy, args);
2257
2258  const char *str = "";
2259  int number = 0;
2260  float fnumber = 0;
2261
2262  while (*format)
2263    {
2264      switch (*format++)
2265	{
2266	case '\''s'\'': // string
2267	  str = va_arg (args_copy, const char *);
2268	  break;
2269	case '\''d'\'': // int
2270	  number = va_arg (args_copy, int);
2271	  break;
2272	case '\''f'\'': // float
2273	  fnumber = va_arg (args_copy, double);
2274	  break;
2275	default:
2276	  break;
2277	}
2278    }
2279  va_end (args_copy);
2280  va_end (args);
2281
2282  return *str && number && fnumber;
2283}
2284'
2285
2286# Test code for whether the C compiler supports C99 (body of main).
2287ac_c_conftest_c99_main='
2288  // Check bool.
2289  _Bool success = false;
2290  success |= (argc != 0);
2291
2292  // Check restrict.
2293  if (test_restrict ("String literal") == 0)
2294    success = true;
2295  char *restrict newvar = "Another string";
2296
2297  // Check varargs.
2298  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2299  test_varargs_macros ();
2300
2301  // Check flexible array members.
2302  struct incomplete_array *ia =
2303    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2304  ia->datasize = 10;
2305  for (int i = 0; i < ia->datasize; ++i)
2306    ia->data[i] = i * 1.234;
2307
2308  // Check named initializers.
2309  struct named_init ni = {
2310    .number = 34,
2311    .name = L"Test wide string",
2312    .average = 543.34343,
2313  };
2314
2315  ni.number = 58;
2316
2317  int dynamic_array[ni.number];
2318  dynamic_array[0] = argv[0][0];
2319  dynamic_array[ni.number - 1] = 543;
2320
2321  // work around unused variable warnings
2322  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2323	 || dynamic_array[ni.number - 1] != 543);
2324'
2325
2326# Test code for whether the C compiler supports C11 (global declarations)
2327ac_c_conftest_c11_globals='
2328// Does the compiler advertise C11 conformance?
2329#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2330# error "Compiler does not advertise C11 conformance"
2331#endif
2332
2333// Check _Alignas.
2334char _Alignas (double) aligned_as_double;
2335char _Alignas (0) no_special_alignment;
2336extern char aligned_as_int;
2337char _Alignas (0) _Alignas (int) aligned_as_int;
2338
2339// Check _Alignof.
2340enum
2341{
2342  int_alignment = _Alignof (int),
2343  int_array_alignment = _Alignof (int[100]),
2344  char_alignment = _Alignof (char)
2345};
2346_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2347
2348// Check _Noreturn.
2349int _Noreturn does_not_return (void) { for (;;) continue; }
2350
2351// Check _Static_assert.
2352struct test_static_assert
2353{
2354  int x;
2355  _Static_assert (sizeof (int) <= sizeof (long int),
2356                  "_Static_assert does not work in struct");
2357  long int y;
2358};
2359
2360// Check UTF-8 literals.
2361#define u8 syntax error!
2362char const utf8_literal[] = u8"happens to be ASCII" "another string";
2363
2364// Check duplicate typedefs.
2365typedef long *long_ptr;
2366typedef long int *long_ptr;
2367typedef long_ptr long_ptr;
2368
2369// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2370struct anonymous
2371{
2372  union {
2373    struct { int i; int j; };
2374    struct { int k; long int l; } w;
2375  };
2376  int m;
2377} v1;
2378'
2379
2380# Test code for whether the C compiler supports C11 (body of main).
2381ac_c_conftest_c11_main='
2382  _Static_assert ((offsetof (struct anonymous, i)
2383		   == offsetof (struct anonymous, w.k)),
2384		  "Anonymous union alignment botch");
2385  v1.i = 2;
2386  v1.w.k = 5;
2387  ok |= v1.i != 5;
2388'
2389
2390# Test code for whether the C compiler supports C11 (complete).
2391ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2392${ac_c_conftest_c99_globals}
2393${ac_c_conftest_c11_globals}
2394
2395int
2396main (int argc, char **argv)
2397{
2398  int ok = 0;
2399  ${ac_c_conftest_c89_main}
2400  ${ac_c_conftest_c99_main}
2401  ${ac_c_conftest_c11_main}
2402  return ok;
2403}
2404"
2405
2406# Test code for whether the C compiler supports C99 (complete).
2407ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2408${ac_c_conftest_c99_globals}
2409
2410int
2411main (int argc, char **argv)
2412{
2413  int ok = 0;
2414  ${ac_c_conftest_c89_main}
2415  ${ac_c_conftest_c99_main}
2416  return ok;
2417}
2418"
2419
2420# Test code for whether the C compiler supports C89 (complete).
2421ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2422
2423int
2424main (int argc, char **argv)
2425{
2426  int ok = 0;
2427  ${ac_c_conftest_c89_main}
2428  return ok;
2429}
2430"
2431
2432as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2433as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2434as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2435as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2436as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2437as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2438as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2439as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2440as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2441
2442# Auxiliary files required by this configure script.
2443ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2444
2445# Locations in which to look for auxiliary files.
2446ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2447
2448# Search for a directory containing all of the required auxiliary files,
2449# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2450# If we don't find one directory that contains all the files we need,
2451# we report the set of missing files from the *first* directory in
2452# $ac_aux_dir_candidates and give up.
2453ac_missing_aux_files=""
2454ac_first_candidate=:
2455printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457as_found=false
2458for as_dir in $ac_aux_dir_candidates
2459do
2460  IFS=$as_save_IFS
2461  case $as_dir in #(((
2462    '') as_dir=./ ;;
2463    */) ;;
2464    *) as_dir=$as_dir/ ;;
2465  esac
2466  as_found=:
2467
2468  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2469  ac_aux_dir_found=yes
2470  ac_install_sh=
2471  for ac_aux in $ac_aux_files
2472  do
2473    # As a special case, if "install-sh" is required, that requirement
2474    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2475    # and $ac_install_sh is set appropriately for whichever one is found.
2476    if test x"$ac_aux" = x"install-sh"
2477    then
2478      if test -f "${as_dir}install-sh"; then
2479        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2480        ac_install_sh="${as_dir}install-sh -c"
2481      elif test -f "${as_dir}install.sh"; then
2482        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2483        ac_install_sh="${as_dir}install.sh -c"
2484      elif test -f "${as_dir}shtool"; then
2485        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2486        ac_install_sh="${as_dir}shtool install -c"
2487      else
2488        ac_aux_dir_found=no
2489        if $ac_first_candidate; then
2490          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2491        else
2492          break
2493        fi
2494      fi
2495    else
2496      if test -f "${as_dir}${ac_aux}"; then
2497        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2498      else
2499        ac_aux_dir_found=no
2500        if $ac_first_candidate; then
2501          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2502        else
2503          break
2504        fi
2505      fi
2506    fi
2507  done
2508  if test "$ac_aux_dir_found" = yes; then
2509    ac_aux_dir="$as_dir"
2510    break
2511  fi
2512  ac_first_candidate=false
2513
2514  as_found=false
2515done
2516IFS=$as_save_IFS
2517if $as_found
2518then :
2519
2520else $as_nop
2521  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2522fi
2523
2524
2525# These three variables are undocumented and unsupported,
2526# and are intended to be withdrawn in a future Autoconf release.
2527# They can cause serious problems if a builder's source tree is in a directory
2528# whose full name contains unusual characters.
2529if test -f "${ac_aux_dir}config.guess"; then
2530  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2531fi
2532if test -f "${ac_aux_dir}config.sub"; then
2533  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2534fi
2535if test -f "$ac_aux_dir/configure"; then
2536  ac_configure="$SHELL ${ac_aux_dir}configure"
2537fi
2538
2539# Check that the precious variables saved in the cache have kept the same
2540# value.
2541ac_cache_corrupted=false
2542for ac_var in $ac_precious_vars; do
2543  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2544  eval ac_new_set=\$ac_env_${ac_var}_set
2545  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2546  eval ac_new_val=\$ac_env_${ac_var}_value
2547  case $ac_old_set,$ac_new_set in
2548    set,)
2549      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2550printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2551      ac_cache_corrupted=: ;;
2552    ,set)
2553      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2554printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2555      ac_cache_corrupted=: ;;
2556    ,);;
2557    *)
2558      if test "x$ac_old_val" != "x$ac_new_val"; then
2559	# differences in whitespace do not lead to failure.
2560	ac_old_val_w=`echo x $ac_old_val`
2561	ac_new_val_w=`echo x $ac_new_val`
2562	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2563	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2564printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2565	  ac_cache_corrupted=:
2566	else
2567	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2568printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2569	  eval $ac_var=\$ac_old_val
2570	fi
2571	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2572printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2573	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2574printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2575      fi;;
2576  esac
2577  # Pass precious variables to config.status.
2578  if test "$ac_new_set" = set; then
2579    case $ac_new_val in
2580    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2581    *) ac_arg=$ac_var=$ac_new_val ;;
2582    esac
2583    case " $ac_configure_args " in
2584      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2585      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2586    esac
2587  fi
2588done
2589if $ac_cache_corrupted; then
2590  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2591printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2592  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2593printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2594  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2595	    and start over" "$LINENO" 5
2596fi
2597## -------------------- ##
2598## Main body of script. ##
2599## -------------------- ##
2600
2601ac_ext=c
2602ac_cpp='$CPP $CPPFLAGS'
2603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2605ac_compiler_gnu=$ac_cv_c_compiler_gnu
2606
2607
2608
2609ac_config_headers="$ac_config_headers config.h"
2610
2611
2612
2613# Initialize Automake
2614am__api_version='1.16'
2615
2616
2617
2618  # Find a good install program.  We prefer a C program (faster),
2619# so one script is as good as another.  But avoid the broken or
2620# incompatible versions:
2621# SysV /etc/install, /usr/sbin/install
2622# SunOS /usr/etc/install
2623# IRIX /sbin/install
2624# AIX /bin/install
2625# AmigaOS /C/install, which installs bootblocks on floppy discs
2626# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2627# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2628# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2629# OS/2's system install, which has a completely different semantic
2630# ./install, which can be erroneously created by make from ./install.sh.
2631# Reject install programs that cannot install multiple files.
2632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2633printf %s "checking for a BSD-compatible install... " >&6; }
2634if test -z "$INSTALL"; then
2635if test ${ac_cv_path_install+y}
2636then :
2637  printf %s "(cached) " >&6
2638else $as_nop
2639  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640for as_dir in $PATH
2641do
2642  IFS=$as_save_IFS
2643  case $as_dir in #(((
2644    '') as_dir=./ ;;
2645    */) ;;
2646    *) as_dir=$as_dir/ ;;
2647  esac
2648    # Account for fact that we put trailing slashes in our PATH walk.
2649case $as_dir in #((
2650  ./ | /[cC]/* | \
2651  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2652  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2653  /usr/ucb/* ) ;;
2654  *)
2655    # OSF1 and SCO ODT 3.0 have their own names for install.
2656    # Don't use installbsd from OSF since it installs stuff as root
2657    # by default.
2658    for ac_prog in ginstall scoinst install; do
2659      for ac_exec_ext in '' $ac_executable_extensions; do
2660	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2661	  if test $ac_prog = install &&
2662	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2663	    # AIX install.  It has an incompatible calling convention.
2664	    :
2665	  elif test $ac_prog = install &&
2666	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2667	    # program-specific install script used by HP pwplus--don't use.
2668	    :
2669	  else
2670	    rm -rf conftest.one conftest.two conftest.dir
2671	    echo one > conftest.one
2672	    echo two > conftest.two
2673	    mkdir conftest.dir
2674	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2675	      test -s conftest.one && test -s conftest.two &&
2676	      test -s conftest.dir/conftest.one &&
2677	      test -s conftest.dir/conftest.two
2678	    then
2679	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2680	      break 3
2681	    fi
2682	  fi
2683	fi
2684      done
2685    done
2686    ;;
2687esac
2688
2689  done
2690IFS=$as_save_IFS
2691
2692rm -rf conftest.one conftest.two conftest.dir
2693
2694fi
2695  if test ${ac_cv_path_install+y}; then
2696    INSTALL=$ac_cv_path_install
2697  else
2698    # As a last resort, use the slow shell script.  Don't cache a
2699    # value for INSTALL within a source directory, because that will
2700    # break other packages using the cache if that directory is
2701    # removed, or if the value is a relative name.
2702    INSTALL=$ac_install_sh
2703  fi
2704fi
2705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2706printf "%s\n" "$INSTALL" >&6; }
2707
2708# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2709# It thinks the first close brace ends the variable substitution.
2710test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2711
2712test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2713
2714test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2715
2716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2717printf %s "checking whether build environment is sane... " >&6; }
2718# Reject unsafe characters in $srcdir or the absolute working directory
2719# name.  Accept space and tab only in the latter.
2720am_lf='
2721'
2722case `pwd` in
2723  *[\\\"\#\$\&\'\`$am_lf]*)
2724    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2725esac
2726case $srcdir in
2727  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2728    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2729esac
2730
2731# Do 'set' in a subshell so we don't clobber the current shell's
2732# arguments.  Must try -L first in case configure is actually a
2733# symlink; some systems play weird games with the mod time of symlinks
2734# (eg FreeBSD returns the mod time of the symlink's containing
2735# directory).
2736if (
2737   am_has_slept=no
2738   for am_try in 1 2; do
2739     echo "timestamp, slept: $am_has_slept" > conftest.file
2740     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2741     if test "$*" = "X"; then
2742	# -L didn't work.
2743	set X `ls -t "$srcdir/configure" conftest.file`
2744     fi
2745     if test "$*" != "X $srcdir/configure conftest.file" \
2746	&& test "$*" != "X conftest.file $srcdir/configure"; then
2747
2748	# If neither matched, then we have a broken ls.  This can happen
2749	# if, for instance, CONFIG_SHELL is bash and it inherits a
2750	# broken ls alias from the environment.  This has actually
2751	# happened.  Such a system could not be considered "sane".
2752	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2753  alias in your environment" "$LINENO" 5
2754     fi
2755     if test "$2" = conftest.file || test $am_try -eq 2; then
2756       break
2757     fi
2758     # Just in case.
2759     sleep 1
2760     am_has_slept=yes
2761   done
2762   test "$2" = conftest.file
2763   )
2764then
2765   # Ok.
2766   :
2767else
2768   as_fn_error $? "newly created file is older than distributed files!
2769Check your system clock" "$LINENO" 5
2770fi
2771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2772printf "%s\n" "yes" >&6; }
2773# If we didn't sleep, we still need to ensure time stamps of config.status and
2774# generated files are strictly newer.
2775am_sleep_pid=
2776if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2777  ( sleep 1 ) &
2778  am_sleep_pid=$!
2779fi
2780
2781rm -f conftest.file
2782
2783test "$program_prefix" != NONE &&
2784  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2785# Use a double $ so make ignores it.
2786test "$program_suffix" != NONE &&
2787  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2788# Double any \ or $.
2789# By default was `s,x,x', remove it if useless.
2790ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2791program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2792
2793
2794# Expand $ac_aux_dir to an absolute path.
2795am_aux_dir=`cd "$ac_aux_dir" && pwd`
2796
2797
2798  if test x"${MISSING+set}" != xset; then
2799  MISSING="\${SHELL} '$am_aux_dir/missing'"
2800fi
2801# Use eval to expand $SHELL
2802if eval "$MISSING --is-lightweight"; then
2803  am_missing_run="$MISSING "
2804else
2805  am_missing_run=
2806  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2807printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2808fi
2809
2810if test x"${install_sh+set}" != xset; then
2811  case $am_aux_dir in
2812  *\ * | *\	*)
2813    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2814  *)
2815    install_sh="\${SHELL} $am_aux_dir/install-sh"
2816  esac
2817fi
2818
2819# Installed binaries are usually stripped using 'strip' when the user
2820# run "make install-strip".  However 'strip' might not be the right
2821# tool to use in cross-compilation environments, therefore Automake
2822# will honor the 'STRIP' environment variable to overrule this program.
2823if test "$cross_compiling" != no; then
2824  if test -n "$ac_tool_prefix"; then
2825  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2826set dummy ${ac_tool_prefix}strip; ac_word=$2
2827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2828printf %s "checking for $ac_word... " >&6; }
2829if test ${ac_cv_prog_STRIP+y}
2830then :
2831  printf %s "(cached) " >&6
2832else $as_nop
2833  if test -n "$STRIP"; then
2834  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2835else
2836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837for as_dir in $PATH
2838do
2839  IFS=$as_save_IFS
2840  case $as_dir in #(((
2841    '') as_dir=./ ;;
2842    */) ;;
2843    *) as_dir=$as_dir/ ;;
2844  esac
2845    for ac_exec_ext in '' $ac_executable_extensions; do
2846  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2847    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2848    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2849    break 2
2850  fi
2851done
2852  done
2853IFS=$as_save_IFS
2854
2855fi
2856fi
2857STRIP=$ac_cv_prog_STRIP
2858if test -n "$STRIP"; then
2859  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2860printf "%s\n" "$STRIP" >&6; }
2861else
2862  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863printf "%s\n" "no" >&6; }
2864fi
2865
2866
2867fi
2868if test -z "$ac_cv_prog_STRIP"; then
2869  ac_ct_STRIP=$STRIP
2870  # Extract the first word of "strip", so it can be a program name with args.
2871set dummy strip; ac_word=$2
2872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873printf %s "checking for $ac_word... " >&6; }
2874if test ${ac_cv_prog_ac_ct_STRIP+y}
2875then :
2876  printf %s "(cached) " >&6
2877else $as_nop
2878  if test -n "$ac_ct_STRIP"; then
2879  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2880else
2881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882for as_dir in $PATH
2883do
2884  IFS=$as_save_IFS
2885  case $as_dir in #(((
2886    '') as_dir=./ ;;
2887    */) ;;
2888    *) as_dir=$as_dir/ ;;
2889  esac
2890    for ac_exec_ext in '' $ac_executable_extensions; do
2891  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2892    ac_cv_prog_ac_ct_STRIP="strip"
2893    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2894    break 2
2895  fi
2896done
2897  done
2898IFS=$as_save_IFS
2899
2900fi
2901fi
2902ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2903if test -n "$ac_ct_STRIP"; then
2904  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2905printf "%s\n" "$ac_ct_STRIP" >&6; }
2906else
2907  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908printf "%s\n" "no" >&6; }
2909fi
2910
2911  if test "x$ac_ct_STRIP" = x; then
2912    STRIP=":"
2913  else
2914    case $cross_compiling:$ac_tool_warned in
2915yes:)
2916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2917printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2918ac_tool_warned=yes ;;
2919esac
2920    STRIP=$ac_ct_STRIP
2921  fi
2922else
2923  STRIP="$ac_cv_prog_STRIP"
2924fi
2925
2926fi
2927INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2928
2929
2930  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2931printf %s "checking for a race-free mkdir -p... " >&6; }
2932if test -z "$MKDIR_P"; then
2933  if test ${ac_cv_path_mkdir+y}
2934then :
2935  printf %s "(cached) " >&6
2936else $as_nop
2937  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2939do
2940  IFS=$as_save_IFS
2941  case $as_dir in #(((
2942    '') as_dir=./ ;;
2943    */) ;;
2944    *) as_dir=$as_dir/ ;;
2945  esac
2946    for ac_prog in mkdir gmkdir; do
2947	 for ac_exec_ext in '' $ac_executable_extensions; do
2948	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2949	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2950	     'mkdir ('*'coreutils) '* | \
2951	     'BusyBox '* | \
2952	     'mkdir (fileutils) '4.1*)
2953	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2954	       break 3;;
2955	   esac
2956	 done
2957       done
2958  done
2959IFS=$as_save_IFS
2960
2961fi
2962
2963  test -d ./--version && rmdir ./--version
2964  if test ${ac_cv_path_mkdir+y}; then
2965    MKDIR_P="$ac_cv_path_mkdir -p"
2966  else
2967    # As a last resort, use the slow shell script.  Don't cache a
2968    # value for MKDIR_P within a source directory, because that will
2969    # break other packages using the cache if that directory is
2970    # removed, or if the value is a relative name.
2971    MKDIR_P="$ac_install_sh -d"
2972  fi
2973fi
2974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2975printf "%s\n" "$MKDIR_P" >&6; }
2976
2977for ac_prog in gawk mawk nawk awk
2978do
2979  # Extract the first word of "$ac_prog", so it can be a program name with args.
2980set dummy $ac_prog; ac_word=$2
2981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982printf %s "checking for $ac_word... " >&6; }
2983if test ${ac_cv_prog_AWK+y}
2984then :
2985  printf %s "(cached) " >&6
2986else $as_nop
2987  if test -n "$AWK"; then
2988  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2989else
2990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991for as_dir in $PATH
2992do
2993  IFS=$as_save_IFS
2994  case $as_dir in #(((
2995    '') as_dir=./ ;;
2996    */) ;;
2997    *) as_dir=$as_dir/ ;;
2998  esac
2999    for ac_exec_ext in '' $ac_executable_extensions; do
3000  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3001    ac_cv_prog_AWK="$ac_prog"
3002    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3003    break 2
3004  fi
3005done
3006  done
3007IFS=$as_save_IFS
3008
3009fi
3010fi
3011AWK=$ac_cv_prog_AWK
3012if test -n "$AWK"; then
3013  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3014printf "%s\n" "$AWK" >&6; }
3015else
3016  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017printf "%s\n" "no" >&6; }
3018fi
3019
3020
3021  test -n "$AWK" && break
3022done
3023
3024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3025printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3026set x ${MAKE-make}
3027ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3028if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3029then :
3030  printf %s "(cached) " >&6
3031else $as_nop
3032  cat >conftest.make <<\_ACEOF
3033SHELL = /bin/sh
3034all:
3035	@echo '@@@%%%=$(MAKE)=@@@%%%'
3036_ACEOF
3037# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3038case `${MAKE-make} -f conftest.make 2>/dev/null` in
3039  *@@@%%%=?*=@@@%%%*)
3040    eval ac_cv_prog_make_${ac_make}_set=yes;;
3041  *)
3042    eval ac_cv_prog_make_${ac_make}_set=no;;
3043esac
3044rm -f conftest.make
3045fi
3046if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3047  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3048printf "%s\n" "yes" >&6; }
3049  SET_MAKE=
3050else
3051  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052printf "%s\n" "no" >&6; }
3053  SET_MAKE="MAKE=${MAKE-make}"
3054fi
3055
3056rm -rf .tst 2>/dev/null
3057mkdir .tst 2>/dev/null
3058if test -d .tst; then
3059  am__leading_dot=.
3060else
3061  am__leading_dot=_
3062fi
3063rmdir .tst 2>/dev/null
3064
3065# Check whether --enable-silent-rules was given.
3066if test ${enable_silent_rules+y}
3067then :
3068  enableval=$enable_silent_rules;
3069fi
3070
3071case $enable_silent_rules in # (((
3072  yes) AM_DEFAULT_VERBOSITY=0;;
3073   no) AM_DEFAULT_VERBOSITY=1;;
3074    *) AM_DEFAULT_VERBOSITY=1;;
3075esac
3076am_make=${MAKE-make}
3077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3078printf %s "checking whether $am_make supports nested variables... " >&6; }
3079if test ${am_cv_make_support_nested_variables+y}
3080then :
3081  printf %s "(cached) " >&6
3082else $as_nop
3083  if printf "%s\n" 'TRUE=$(BAR$(V))
3084BAR0=false
3085BAR1=true
3086V=1
3087am__doit:
3088	@$(TRUE)
3089.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3090  am_cv_make_support_nested_variables=yes
3091else
3092  am_cv_make_support_nested_variables=no
3093fi
3094fi
3095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3096printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3097if test $am_cv_make_support_nested_variables = yes; then
3098    AM_V='$(V)'
3099  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3100else
3101  AM_V=$AM_DEFAULT_VERBOSITY
3102  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3103fi
3104AM_BACKSLASH='\'
3105
3106if test "`cd $srcdir && pwd`" != "`pwd`"; then
3107  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3108  # is not polluted with repeated "-I."
3109  am__isrc=' -I$(srcdir)'
3110  # test to see if srcdir already configured
3111  if test -f $srcdir/config.status; then
3112    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3113  fi
3114fi
3115
3116# test whether we have cygpath
3117if test -z "$CYGPATH_W"; then
3118  if (cygpath --version) >/dev/null 2>/dev/null; then
3119    CYGPATH_W='cygpath -w'
3120  else
3121    CYGPATH_W=echo
3122  fi
3123fi
3124
3125
3126# Define the identity of the package.
3127 PACKAGE='libXfixes'
3128 VERSION='6.0.1'
3129
3130
3131printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3132
3133
3134printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3135
3136# Some tools Automake needs.
3137
3138ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3139
3140
3141AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3142
3143
3144AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3145
3146
3147AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3148
3149
3150MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3151
3152# For better backward compatibility.  To be removed once Automake 1.9.x
3153# dies out for good.  For more background, see:
3154# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3155# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3156mkdir_p='$(MKDIR_P)'
3157
3158# We need awk for the "check" target (and possibly the TAP driver).  The
3159# system "awk" is bad on some platforms.
3160# Always define AMTAR for backward compatibility.  Yes, it's still used
3161# in the wild :-(  We should find a proper way to deprecate it ...
3162AMTAR='$${TAR-tar}'
3163
3164
3165# We'll loop over all known methods to create a tar archive until one works.
3166_am_tools='gnutar  pax cpio none'
3167
3168am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3169
3170
3171
3172
3173
3174# Variables for tags utilities; see am/tags.am
3175if test -z "$CTAGS"; then
3176  CTAGS=ctags
3177fi
3178
3179if test -z "$ETAGS"; then
3180  ETAGS=etags
3181fi
3182
3183if test -z "$CSCOPE"; then
3184  CSCOPE=cscope
3185fi
3186
3187
3188
3189# POSIX will say in a future version that running "rm -f" with no argument
3190# is OK; and we want to be able to make that assumption in our Makefile
3191# recipes.  So use an aggressive probe to check that the usage we want is
3192# actually supported "in the wild" to an acceptable degree.
3193# See automake bug#10828.
3194# To make any issue more visible, cause the running configure to be aborted
3195# by default if the 'rm' program in use doesn't match our expectations; the
3196# user can still override this though.
3197if rm -f && rm -fr && rm -rf; then : OK; else
3198  cat >&2 <<'END'
3199Oops!
3200
3201Your 'rm' program seems unable to run without file operands specified
3202on the command line, even when the '-f' option is present.  This is contrary
3203to the behaviour of most rm programs out there, and not conforming with
3204the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3205
3206Please tell bug-automake@gnu.org about your system, including the value
3207of your $PATH and any error possibly output before this message.  This
3208can help us improve future automake versions.
3209
3210END
3211  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3212    echo 'Configuration will proceed anyway, since you have set the' >&2
3213    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3214    echo >&2
3215  else
3216    cat >&2 <<'END'
3217Aborting the configuration process, to ensure you take notice of the issue.
3218
3219You can download and install GNU coreutils to get an 'rm' implementation
3220that behaves properly: <https://www.gnu.org/software/coreutils/>.
3221
3222If you want to complete the configuration process using your problematic
3223'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3224to "yes", and re-run configure.
3225
3226END
3227    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3228  fi
3229fi
3230
3231
3232# Initialize libtool
3233case `pwd` in
3234  *\ * | *\	*)
3235    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3236printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3237esac
3238
3239
3240
3241macro_version='2.4.7'
3242macro_revision='2.4.7'
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257ltmain=$ac_aux_dir/ltmain.sh
3258
3259
3260
3261  # Make sure we can run config.sub.
3262$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3263  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3264
3265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3266printf %s "checking build system type... " >&6; }
3267if test ${ac_cv_build+y}
3268then :
3269  printf %s "(cached) " >&6
3270else $as_nop
3271  ac_build_alias=$build_alias
3272test "x$ac_build_alias" = x &&
3273  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3274test "x$ac_build_alias" = x &&
3275  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3276ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3277  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3278
3279fi
3280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3281printf "%s\n" "$ac_cv_build" >&6; }
3282case $ac_cv_build in
3283*-*-*) ;;
3284*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3285esac
3286build=$ac_cv_build
3287ac_save_IFS=$IFS; IFS='-'
3288set x $ac_cv_build
3289shift
3290build_cpu=$1
3291build_vendor=$2
3292shift; shift
3293# Remember, the first character of IFS is used to create $*,
3294# except with old shells:
3295build_os=$*
3296IFS=$ac_save_IFS
3297case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3298
3299
3300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3301printf %s "checking host system type... " >&6; }
3302if test ${ac_cv_host+y}
3303then :
3304  printf %s "(cached) " >&6
3305else $as_nop
3306  if test "x$host_alias" = x; then
3307  ac_cv_host=$ac_cv_build
3308else
3309  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3310    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3311fi
3312
3313fi
3314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3315printf "%s\n" "$ac_cv_host" >&6; }
3316case $ac_cv_host in
3317*-*-*) ;;
3318*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3319esac
3320host=$ac_cv_host
3321ac_save_IFS=$IFS; IFS='-'
3322set x $ac_cv_host
3323shift
3324host_cpu=$1
3325host_vendor=$2
3326shift; shift
3327# Remember, the first character of IFS is used to create $*,
3328# except with old shells:
3329host_os=$*
3330IFS=$ac_save_IFS
3331case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3332
3333
3334# Backslashify metacharacters that are still active within
3335# double-quoted strings.
3336sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3337
3338# Same as above, but do not quote variable references.
3339double_quote_subst='s/\(["`\\]\)/\\\1/g'
3340
3341# Sed substitution to delay expansion of an escaped shell variable in a
3342# double_quote_subst'ed string.
3343delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3344
3345# Sed substitution to delay expansion of an escaped single quote.
3346delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3347
3348# Sed substitution to avoid accidental globbing in evaled expressions
3349no_glob_subst='s/\*/\\\*/g'
3350
3351ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3352ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3353ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3354
3355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3356printf %s "checking how to print strings... " >&6; }
3357# Test print first, because it will be a builtin if present.
3358if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3359   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3360  ECHO='print -r --'
3361elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3362  ECHO='printf %s\n'
3363else
3364  # Use this function as a fallback that always works.
3365  func_fallback_echo ()
3366  {
3367    eval 'cat <<_LTECHO_EOF
3368$1
3369_LTECHO_EOF'
3370  }
3371  ECHO='func_fallback_echo'
3372fi
3373
3374# func_echo_all arg...
3375# Invoke $ECHO with all args, space-separated.
3376func_echo_all ()
3377{
3378    $ECHO ""
3379}
3380
3381case $ECHO in
3382  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3383printf "%s\n" "printf" >&6; } ;;
3384  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3385printf "%s\n" "print -r" >&6; } ;;
3386  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3387printf "%s\n" "cat" >&6; } ;;
3388esac
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412DEPDIR="${am__leading_dot}deps"
3413
3414ac_config_commands="$ac_config_commands depfiles"
3415
3416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3417printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3418cat > confinc.mk << 'END'
3419am__doit:
3420	@echo this is the am__doit target >confinc.out
3421.PHONY: am__doit
3422END
3423am__include="#"
3424am__quote=
3425# BSD make does it like this.
3426echo '.include "confinc.mk" # ignored' > confmf.BSD
3427# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3428echo 'include confinc.mk # ignored' > confmf.GNU
3429_am_result=no
3430for s in GNU BSD; do
3431  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3432   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3433   ac_status=$?
3434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435   (exit $ac_status); }
3436  case $?:`cat confinc.out 2>/dev/null` in #(
3437  '0:this is the am__doit target') :
3438    case $s in #(
3439  BSD) :
3440    am__include='.include' am__quote='"' ;; #(
3441  *) :
3442    am__include='include' am__quote='' ;;
3443esac ;; #(
3444  *) :
3445     ;;
3446esac
3447  if test "$am__include" != "#"; then
3448    _am_result="yes ($s style)"
3449    break
3450  fi
3451done
3452rm -f confinc.* confmf.*
3453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3454printf "%s\n" "${_am_result}" >&6; }
3455
3456# Check whether --enable-dependency-tracking was given.
3457if test ${enable_dependency_tracking+y}
3458then :
3459  enableval=$enable_dependency_tracking;
3460fi
3461
3462if test "x$enable_dependency_tracking" != xno; then
3463  am_depcomp="$ac_aux_dir/depcomp"
3464  AMDEPBACKSLASH='\'
3465  am__nodep='_no'
3466fi
3467 if test "x$enable_dependency_tracking" != xno; then
3468  AMDEP_TRUE=
3469  AMDEP_FALSE='#'
3470else
3471  AMDEP_TRUE='#'
3472  AMDEP_FALSE=
3473fi
3474
3475
3476ac_ext=c
3477ac_cpp='$CPP $CPPFLAGS'
3478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3480ac_compiler_gnu=$ac_cv_c_compiler_gnu
3481if test -n "$ac_tool_prefix"; then
3482  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3483set dummy ${ac_tool_prefix}gcc; ac_word=$2
3484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3485printf %s "checking for $ac_word... " >&6; }
3486if test ${ac_cv_prog_CC+y}
3487then :
3488  printf %s "(cached) " >&6
3489else $as_nop
3490  if test -n "$CC"; then
3491  ac_cv_prog_CC="$CC" # Let the user override the test.
3492else
3493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3494for as_dir in $PATH
3495do
3496  IFS=$as_save_IFS
3497  case $as_dir in #(((
3498    '') as_dir=./ ;;
3499    */) ;;
3500    *) as_dir=$as_dir/ ;;
3501  esac
3502    for ac_exec_ext in '' $ac_executable_extensions; do
3503  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3504    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3505    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3506    break 2
3507  fi
3508done
3509  done
3510IFS=$as_save_IFS
3511
3512fi
3513fi
3514CC=$ac_cv_prog_CC
3515if test -n "$CC"; then
3516  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3517printf "%s\n" "$CC" >&6; }
3518else
3519  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3520printf "%s\n" "no" >&6; }
3521fi
3522
3523
3524fi
3525if test -z "$ac_cv_prog_CC"; then
3526  ac_ct_CC=$CC
3527  # Extract the first word of "gcc", so it can be a program name with args.
3528set dummy gcc; ac_word=$2
3529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3530printf %s "checking for $ac_word... " >&6; }
3531if test ${ac_cv_prog_ac_ct_CC+y}
3532then :
3533  printf %s "(cached) " >&6
3534else $as_nop
3535  if test -n "$ac_ct_CC"; then
3536  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3537else
3538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539for as_dir in $PATH
3540do
3541  IFS=$as_save_IFS
3542  case $as_dir in #(((
3543    '') as_dir=./ ;;
3544    */) ;;
3545    *) as_dir=$as_dir/ ;;
3546  esac
3547    for ac_exec_ext in '' $ac_executable_extensions; do
3548  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3549    ac_cv_prog_ac_ct_CC="gcc"
3550    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3551    break 2
3552  fi
3553done
3554  done
3555IFS=$as_save_IFS
3556
3557fi
3558fi
3559ac_ct_CC=$ac_cv_prog_ac_ct_CC
3560if test -n "$ac_ct_CC"; then
3561  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3562printf "%s\n" "$ac_ct_CC" >&6; }
3563else
3564  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3565printf "%s\n" "no" >&6; }
3566fi
3567
3568  if test "x$ac_ct_CC" = x; then
3569    CC=""
3570  else
3571    case $cross_compiling:$ac_tool_warned in
3572yes:)
3573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3574printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3575ac_tool_warned=yes ;;
3576esac
3577    CC=$ac_ct_CC
3578  fi
3579else
3580  CC="$ac_cv_prog_CC"
3581fi
3582
3583if test -z "$CC"; then
3584          if test -n "$ac_tool_prefix"; then
3585    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3586set dummy ${ac_tool_prefix}cc; ac_word=$2
3587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3588printf %s "checking for $ac_word... " >&6; }
3589if test ${ac_cv_prog_CC+y}
3590then :
3591  printf %s "(cached) " >&6
3592else $as_nop
3593  if test -n "$CC"; then
3594  ac_cv_prog_CC="$CC" # Let the user override the test.
3595else
3596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597for as_dir in $PATH
3598do
3599  IFS=$as_save_IFS
3600  case $as_dir in #(((
3601    '') as_dir=./ ;;
3602    */) ;;
3603    *) as_dir=$as_dir/ ;;
3604  esac
3605    for ac_exec_ext in '' $ac_executable_extensions; do
3606  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3607    ac_cv_prog_CC="${ac_tool_prefix}cc"
3608    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3609    break 2
3610  fi
3611done
3612  done
3613IFS=$as_save_IFS
3614
3615fi
3616fi
3617CC=$ac_cv_prog_CC
3618if test -n "$CC"; then
3619  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3620printf "%s\n" "$CC" >&6; }
3621else
3622  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623printf "%s\n" "no" >&6; }
3624fi
3625
3626
3627  fi
3628fi
3629if test -z "$CC"; then
3630  # Extract the first word of "cc", so it can be a program name with args.
3631set dummy cc; ac_word=$2
3632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3633printf %s "checking for $ac_word... " >&6; }
3634if test ${ac_cv_prog_CC+y}
3635then :
3636  printf %s "(cached) " >&6
3637else $as_nop
3638  if test -n "$CC"; then
3639  ac_cv_prog_CC="$CC" # Let the user override the test.
3640else
3641  ac_prog_rejected=no
3642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643for as_dir in $PATH
3644do
3645  IFS=$as_save_IFS
3646  case $as_dir in #(((
3647    '') as_dir=./ ;;
3648    */) ;;
3649    *) as_dir=$as_dir/ ;;
3650  esac
3651    for ac_exec_ext in '' $ac_executable_extensions; do
3652  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3653    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3654       ac_prog_rejected=yes
3655       continue
3656     fi
3657    ac_cv_prog_CC="cc"
3658    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3659    break 2
3660  fi
3661done
3662  done
3663IFS=$as_save_IFS
3664
3665if test $ac_prog_rejected = yes; then
3666  # We found a bogon in the path, so make sure we never use it.
3667  set dummy $ac_cv_prog_CC
3668  shift
3669  if test $# != 0; then
3670    # We chose a different compiler from the bogus one.
3671    # However, it has the same basename, so the bogon will be chosen
3672    # first if we set CC to just the basename; use the full file name.
3673    shift
3674    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3675  fi
3676fi
3677fi
3678fi
3679CC=$ac_cv_prog_CC
3680if test -n "$CC"; then
3681  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3682printf "%s\n" "$CC" >&6; }
3683else
3684  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685printf "%s\n" "no" >&6; }
3686fi
3687
3688
3689fi
3690if test -z "$CC"; then
3691  if test -n "$ac_tool_prefix"; then
3692  for ac_prog in cl.exe
3693  do
3694    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3695set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697printf %s "checking for $ac_word... " >&6; }
3698if test ${ac_cv_prog_CC+y}
3699then :
3700  printf %s "(cached) " >&6
3701else $as_nop
3702  if test -n "$CC"; then
3703  ac_cv_prog_CC="$CC" # Let the user override the test.
3704else
3705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706for as_dir in $PATH
3707do
3708  IFS=$as_save_IFS
3709  case $as_dir in #(((
3710    '') as_dir=./ ;;
3711    */) ;;
3712    *) as_dir=$as_dir/ ;;
3713  esac
3714    for ac_exec_ext in '' $ac_executable_extensions; do
3715  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3716    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3717    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3718    break 2
3719  fi
3720done
3721  done
3722IFS=$as_save_IFS
3723
3724fi
3725fi
3726CC=$ac_cv_prog_CC
3727if test -n "$CC"; then
3728  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3729printf "%s\n" "$CC" >&6; }
3730else
3731  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732printf "%s\n" "no" >&6; }
3733fi
3734
3735
3736    test -n "$CC" && break
3737  done
3738fi
3739if test -z "$CC"; then
3740  ac_ct_CC=$CC
3741  for ac_prog in cl.exe
3742do
3743  # Extract the first word of "$ac_prog", so it can be a program name with args.
3744set dummy $ac_prog; ac_word=$2
3745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746printf %s "checking for $ac_word... " >&6; }
3747if test ${ac_cv_prog_ac_ct_CC+y}
3748then :
3749  printf %s "(cached) " >&6
3750else $as_nop
3751  if test -n "$ac_ct_CC"; then
3752  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3753else
3754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755for as_dir in $PATH
3756do
3757  IFS=$as_save_IFS
3758  case $as_dir in #(((
3759    '') as_dir=./ ;;
3760    */) ;;
3761    *) as_dir=$as_dir/ ;;
3762  esac
3763    for ac_exec_ext in '' $ac_executable_extensions; do
3764  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3765    ac_cv_prog_ac_ct_CC="$ac_prog"
3766    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3767    break 2
3768  fi
3769done
3770  done
3771IFS=$as_save_IFS
3772
3773fi
3774fi
3775ac_ct_CC=$ac_cv_prog_ac_ct_CC
3776if test -n "$ac_ct_CC"; then
3777  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3778printf "%s\n" "$ac_ct_CC" >&6; }
3779else
3780  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3781printf "%s\n" "no" >&6; }
3782fi
3783
3784
3785  test -n "$ac_ct_CC" && break
3786done
3787
3788  if test "x$ac_ct_CC" = x; then
3789    CC=""
3790  else
3791    case $cross_compiling:$ac_tool_warned in
3792yes:)
3793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3794printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3795ac_tool_warned=yes ;;
3796esac
3797    CC=$ac_ct_CC
3798  fi
3799fi
3800
3801fi
3802if test -z "$CC"; then
3803  if test -n "$ac_tool_prefix"; then
3804  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3805set dummy ${ac_tool_prefix}clang; ac_word=$2
3806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3807printf %s "checking for $ac_word... " >&6; }
3808if test ${ac_cv_prog_CC+y}
3809then :
3810  printf %s "(cached) " >&6
3811else $as_nop
3812  if test -n "$CC"; then
3813  ac_cv_prog_CC="$CC" # Let the user override the test.
3814else
3815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816for as_dir in $PATH
3817do
3818  IFS=$as_save_IFS
3819  case $as_dir in #(((
3820    '') as_dir=./ ;;
3821    */) ;;
3822    *) as_dir=$as_dir/ ;;
3823  esac
3824    for ac_exec_ext in '' $ac_executable_extensions; do
3825  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3826    ac_cv_prog_CC="${ac_tool_prefix}clang"
3827    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3828    break 2
3829  fi
3830done
3831  done
3832IFS=$as_save_IFS
3833
3834fi
3835fi
3836CC=$ac_cv_prog_CC
3837if test -n "$CC"; then
3838  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3839printf "%s\n" "$CC" >&6; }
3840else
3841  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3842printf "%s\n" "no" >&6; }
3843fi
3844
3845
3846fi
3847if test -z "$ac_cv_prog_CC"; then
3848  ac_ct_CC=$CC
3849  # Extract the first word of "clang", so it can be a program name with args.
3850set dummy clang; ac_word=$2
3851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3852printf %s "checking for $ac_word... " >&6; }
3853if test ${ac_cv_prog_ac_ct_CC+y}
3854then :
3855  printf %s "(cached) " >&6
3856else $as_nop
3857  if test -n "$ac_ct_CC"; then
3858  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3859else
3860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861for as_dir in $PATH
3862do
3863  IFS=$as_save_IFS
3864  case $as_dir in #(((
3865    '') as_dir=./ ;;
3866    */) ;;
3867    *) as_dir=$as_dir/ ;;
3868  esac
3869    for ac_exec_ext in '' $ac_executable_extensions; do
3870  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3871    ac_cv_prog_ac_ct_CC="clang"
3872    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3873    break 2
3874  fi
3875done
3876  done
3877IFS=$as_save_IFS
3878
3879fi
3880fi
3881ac_ct_CC=$ac_cv_prog_ac_ct_CC
3882if test -n "$ac_ct_CC"; then
3883  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3884printf "%s\n" "$ac_ct_CC" >&6; }
3885else
3886  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887printf "%s\n" "no" >&6; }
3888fi
3889
3890  if test "x$ac_ct_CC" = x; then
3891    CC=""
3892  else
3893    case $cross_compiling:$ac_tool_warned in
3894yes:)
3895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3896printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3897ac_tool_warned=yes ;;
3898esac
3899    CC=$ac_ct_CC
3900  fi
3901else
3902  CC="$ac_cv_prog_CC"
3903fi
3904
3905fi
3906
3907
3908test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3909printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3910as_fn_error $? "no acceptable C compiler found in \$PATH
3911See \`config.log' for more details" "$LINENO" 5; }
3912
3913# Provide some information about the compiler.
3914printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3915set X $ac_compile
3916ac_compiler=$2
3917for ac_option in --version -v -V -qversion -version; do
3918  { { ac_try="$ac_compiler $ac_option >&5"
3919case "(($ac_try" in
3920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921  *) ac_try_echo=$ac_try;;
3922esac
3923eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3924printf "%s\n" "$ac_try_echo"; } >&5
3925  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3926  ac_status=$?
3927  if test -s conftest.err; then
3928    sed '10a\
3929... rest of stderr output deleted ...
3930         10q' conftest.err >conftest.er1
3931    cat conftest.er1 >&5
3932  fi
3933  rm -f conftest.er1 conftest.err
3934  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3935  test $ac_status = 0; }
3936done
3937
3938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939/* end confdefs.h.  */
3940
3941int
3942main (void)
3943{
3944
3945  ;
3946  return 0;
3947}
3948_ACEOF
3949ac_clean_files_save=$ac_clean_files
3950ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3951# Try to create an executable without -o first, disregard a.out.
3952# It will help us diagnose broken compilers, and finding out an intuition
3953# of exeext.
3954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3955printf %s "checking whether the C compiler works... " >&6; }
3956ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3957
3958# The possible output files:
3959ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3960
3961ac_rmfiles=
3962for ac_file in $ac_files
3963do
3964  case $ac_file in
3965    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3966    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3967  esac
3968done
3969rm -f $ac_rmfiles
3970
3971if { { ac_try="$ac_link_default"
3972case "(($ac_try" in
3973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974  *) ac_try_echo=$ac_try;;
3975esac
3976eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3977printf "%s\n" "$ac_try_echo"; } >&5
3978  (eval "$ac_link_default") 2>&5
3979  ac_status=$?
3980  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3981  test $ac_status = 0; }
3982then :
3983  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3984# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3985# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3986# so that the user can short-circuit this test for compilers unknown to
3987# Autoconf.
3988for ac_file in $ac_files ''
3989do
3990  test -f "$ac_file" || continue
3991  case $ac_file in
3992    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3993	;;
3994    [ab].out )
3995	# We found the default executable, but exeext='' is most
3996	# certainly right.
3997	break;;
3998    *.* )
3999	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4000	then :; else
4001	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4002	fi
4003	# We set ac_cv_exeext here because the later test for it is not
4004	# safe: cross compilers may not add the suffix if given an `-o'
4005	# argument, so we may need to know it at that point already.
4006	# Even if this section looks crufty: it has the advantage of
4007	# actually working.
4008	break;;
4009    * )
4010	break;;
4011  esac
4012done
4013test "$ac_cv_exeext" = no && ac_cv_exeext=
4014
4015else $as_nop
4016  ac_file=''
4017fi
4018if test -z "$ac_file"
4019then :
4020  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4021printf "%s\n" "no" >&6; }
4022printf "%s\n" "$as_me: failed program was:" >&5
4023sed 's/^/| /' conftest.$ac_ext >&5
4024
4025{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4026printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4027as_fn_error 77 "C compiler cannot create executables
4028See \`config.log' for more details" "$LINENO" 5; }
4029else $as_nop
4030  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4031printf "%s\n" "yes" >&6; }
4032fi
4033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4034printf %s "checking for C compiler default output file name... " >&6; }
4035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4036printf "%s\n" "$ac_file" >&6; }
4037ac_exeext=$ac_cv_exeext
4038
4039rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4040ac_clean_files=$ac_clean_files_save
4041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4042printf %s "checking for suffix of executables... " >&6; }
4043if { { ac_try="$ac_link"
4044case "(($ac_try" in
4045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046  *) ac_try_echo=$ac_try;;
4047esac
4048eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4049printf "%s\n" "$ac_try_echo"; } >&5
4050  (eval "$ac_link") 2>&5
4051  ac_status=$?
4052  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4053  test $ac_status = 0; }
4054then :
4055  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4056# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4057# work properly (i.e., refer to `conftest.exe'), while it won't with
4058# `rm'.
4059for ac_file in conftest.exe conftest conftest.*; do
4060  test -f "$ac_file" || continue
4061  case $ac_file in
4062    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4063    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4064	  break;;
4065    * ) break;;
4066  esac
4067done
4068else $as_nop
4069  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4070printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4071as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4072See \`config.log' for more details" "$LINENO" 5; }
4073fi
4074rm -f conftest conftest$ac_cv_exeext
4075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4076printf "%s\n" "$ac_cv_exeext" >&6; }
4077
4078rm -f conftest.$ac_ext
4079EXEEXT=$ac_cv_exeext
4080ac_exeext=$EXEEXT
4081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082/* end confdefs.h.  */
4083#include <stdio.h>
4084int
4085main (void)
4086{
4087FILE *f = fopen ("conftest.out", "w");
4088 return ferror (f) || fclose (f) != 0;
4089
4090  ;
4091  return 0;
4092}
4093_ACEOF
4094ac_clean_files="$ac_clean_files conftest.out"
4095# Check that the compiler produces executables we can run.  If not, either
4096# the compiler is broken, or we cross compile.
4097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4098printf %s "checking whether we are cross compiling... " >&6; }
4099if test "$cross_compiling" != yes; then
4100  { { ac_try="$ac_link"
4101case "(($ac_try" in
4102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103  *) ac_try_echo=$ac_try;;
4104esac
4105eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4106printf "%s\n" "$ac_try_echo"; } >&5
4107  (eval "$ac_link") 2>&5
4108  ac_status=$?
4109  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4110  test $ac_status = 0; }
4111  if { ac_try='./conftest$ac_cv_exeext'
4112  { { case "(($ac_try" in
4113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114  *) ac_try_echo=$ac_try;;
4115esac
4116eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4117printf "%s\n" "$ac_try_echo"; } >&5
4118  (eval "$ac_try") 2>&5
4119  ac_status=$?
4120  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4121  test $ac_status = 0; }; }; then
4122    cross_compiling=no
4123  else
4124    if test "$cross_compiling" = maybe; then
4125	cross_compiling=yes
4126    else
4127	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4128printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4129as_fn_error 77 "cannot run C compiled programs.
4130If you meant to cross compile, use \`--host'.
4131See \`config.log' for more details" "$LINENO" 5; }
4132    fi
4133  fi
4134fi
4135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4136printf "%s\n" "$cross_compiling" >&6; }
4137
4138rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4139ac_clean_files=$ac_clean_files_save
4140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4141printf %s "checking for suffix of object files... " >&6; }
4142if test ${ac_cv_objext+y}
4143then :
4144  printf %s "(cached) " >&6
4145else $as_nop
4146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147/* end confdefs.h.  */
4148
4149int
4150main (void)
4151{
4152
4153  ;
4154  return 0;
4155}
4156_ACEOF
4157rm -f conftest.o conftest.obj
4158if { { ac_try="$ac_compile"
4159case "(($ac_try" in
4160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161  *) ac_try_echo=$ac_try;;
4162esac
4163eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4164printf "%s\n" "$ac_try_echo"; } >&5
4165  (eval "$ac_compile") 2>&5
4166  ac_status=$?
4167  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4168  test $ac_status = 0; }
4169then :
4170  for ac_file in conftest.o conftest.obj conftest.*; do
4171  test -f "$ac_file" || continue;
4172  case $ac_file in
4173    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4174    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4175       break;;
4176  esac
4177done
4178else $as_nop
4179  printf "%s\n" "$as_me: failed program was:" >&5
4180sed 's/^/| /' conftest.$ac_ext >&5
4181
4182{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4183printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4184as_fn_error $? "cannot compute suffix of object files: cannot compile
4185See \`config.log' for more details" "$LINENO" 5; }
4186fi
4187rm -f conftest.$ac_cv_objext conftest.$ac_ext
4188fi
4189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4190printf "%s\n" "$ac_cv_objext" >&6; }
4191OBJEXT=$ac_cv_objext
4192ac_objext=$OBJEXT
4193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4194printf %s "checking whether the compiler supports GNU C... " >&6; }
4195if test ${ac_cv_c_compiler_gnu+y}
4196then :
4197  printf %s "(cached) " >&6
4198else $as_nop
4199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200/* end confdefs.h.  */
4201
4202int
4203main (void)
4204{
4205#ifndef __GNUC__
4206       choke me
4207#endif
4208
4209  ;
4210  return 0;
4211}
4212_ACEOF
4213if ac_fn_c_try_compile "$LINENO"
4214then :
4215  ac_compiler_gnu=yes
4216else $as_nop
4217  ac_compiler_gnu=no
4218fi
4219rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4220ac_cv_c_compiler_gnu=$ac_compiler_gnu
4221
4222fi
4223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4224printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4225ac_compiler_gnu=$ac_cv_c_compiler_gnu
4226
4227if test $ac_compiler_gnu = yes; then
4228  GCC=yes
4229else
4230  GCC=
4231fi
4232ac_test_CFLAGS=${CFLAGS+y}
4233ac_save_CFLAGS=$CFLAGS
4234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4235printf %s "checking whether $CC accepts -g... " >&6; }
4236if test ${ac_cv_prog_cc_g+y}
4237then :
4238  printf %s "(cached) " >&6
4239else $as_nop
4240  ac_save_c_werror_flag=$ac_c_werror_flag
4241   ac_c_werror_flag=yes
4242   ac_cv_prog_cc_g=no
4243   CFLAGS="-g"
4244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245/* end confdefs.h.  */
4246
4247int
4248main (void)
4249{
4250
4251  ;
4252  return 0;
4253}
4254_ACEOF
4255if ac_fn_c_try_compile "$LINENO"
4256then :
4257  ac_cv_prog_cc_g=yes
4258else $as_nop
4259  CFLAGS=""
4260      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261/* end confdefs.h.  */
4262
4263int
4264main (void)
4265{
4266
4267  ;
4268  return 0;
4269}
4270_ACEOF
4271if ac_fn_c_try_compile "$LINENO"
4272then :
4273
4274else $as_nop
4275  ac_c_werror_flag=$ac_save_c_werror_flag
4276	 CFLAGS="-g"
4277	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278/* end confdefs.h.  */
4279
4280int
4281main (void)
4282{
4283
4284  ;
4285  return 0;
4286}
4287_ACEOF
4288if ac_fn_c_try_compile "$LINENO"
4289then :
4290  ac_cv_prog_cc_g=yes
4291fi
4292rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4293fi
4294rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4295fi
4296rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4297   ac_c_werror_flag=$ac_save_c_werror_flag
4298fi
4299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4300printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4301if test $ac_test_CFLAGS; then
4302  CFLAGS=$ac_save_CFLAGS
4303elif test $ac_cv_prog_cc_g = yes; then
4304  if test "$GCC" = yes; then
4305    CFLAGS="-g -O2"
4306  else
4307    CFLAGS="-g"
4308  fi
4309else
4310  if test "$GCC" = yes; then
4311    CFLAGS="-O2"
4312  else
4313    CFLAGS=
4314  fi
4315fi
4316ac_prog_cc_stdc=no
4317if test x$ac_prog_cc_stdc = xno
4318then :
4319  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4320printf %s "checking for $CC option to enable C11 features... " >&6; }
4321if test ${ac_cv_prog_cc_c11+y}
4322then :
4323  printf %s "(cached) " >&6
4324else $as_nop
4325  ac_cv_prog_cc_c11=no
4326ac_save_CC=$CC
4327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328/* end confdefs.h.  */
4329$ac_c_conftest_c11_program
4330_ACEOF
4331for ac_arg in '' -std=gnu11
4332do
4333  CC="$ac_save_CC $ac_arg"
4334  if ac_fn_c_try_compile "$LINENO"
4335then :
4336  ac_cv_prog_cc_c11=$ac_arg
4337fi
4338rm -f core conftest.err conftest.$ac_objext conftest.beam
4339  test "x$ac_cv_prog_cc_c11" != "xno" && break
4340done
4341rm -f conftest.$ac_ext
4342CC=$ac_save_CC
4343fi
4344
4345if test "x$ac_cv_prog_cc_c11" = xno
4346then :
4347  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4348printf "%s\n" "unsupported" >&6; }
4349else $as_nop
4350  if test "x$ac_cv_prog_cc_c11" = x
4351then :
4352  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4353printf "%s\n" "none needed" >&6; }
4354else $as_nop
4355  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4356printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4357     CC="$CC $ac_cv_prog_cc_c11"
4358fi
4359  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4360  ac_prog_cc_stdc=c11
4361fi
4362fi
4363if test x$ac_prog_cc_stdc = xno
4364then :
4365  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4366printf %s "checking for $CC option to enable C99 features... " >&6; }
4367if test ${ac_cv_prog_cc_c99+y}
4368then :
4369  printf %s "(cached) " >&6
4370else $as_nop
4371  ac_cv_prog_cc_c99=no
4372ac_save_CC=$CC
4373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374/* end confdefs.h.  */
4375$ac_c_conftest_c99_program
4376_ACEOF
4377for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4378do
4379  CC="$ac_save_CC $ac_arg"
4380  if ac_fn_c_try_compile "$LINENO"
4381then :
4382  ac_cv_prog_cc_c99=$ac_arg
4383fi
4384rm -f core conftest.err conftest.$ac_objext conftest.beam
4385  test "x$ac_cv_prog_cc_c99" != "xno" && break
4386done
4387rm -f conftest.$ac_ext
4388CC=$ac_save_CC
4389fi
4390
4391if test "x$ac_cv_prog_cc_c99" = xno
4392then :
4393  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4394printf "%s\n" "unsupported" >&6; }
4395else $as_nop
4396  if test "x$ac_cv_prog_cc_c99" = x
4397then :
4398  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4399printf "%s\n" "none needed" >&6; }
4400else $as_nop
4401  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4402printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4403     CC="$CC $ac_cv_prog_cc_c99"
4404fi
4405  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4406  ac_prog_cc_stdc=c99
4407fi
4408fi
4409if test x$ac_prog_cc_stdc = xno
4410then :
4411  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4412printf %s "checking for $CC option to enable C89 features... " >&6; }
4413if test ${ac_cv_prog_cc_c89+y}
4414then :
4415  printf %s "(cached) " >&6
4416else $as_nop
4417  ac_cv_prog_cc_c89=no
4418ac_save_CC=$CC
4419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420/* end confdefs.h.  */
4421$ac_c_conftest_c89_program
4422_ACEOF
4423for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4424do
4425  CC="$ac_save_CC $ac_arg"
4426  if ac_fn_c_try_compile "$LINENO"
4427then :
4428  ac_cv_prog_cc_c89=$ac_arg
4429fi
4430rm -f core conftest.err conftest.$ac_objext conftest.beam
4431  test "x$ac_cv_prog_cc_c89" != "xno" && break
4432done
4433rm -f conftest.$ac_ext
4434CC=$ac_save_CC
4435fi
4436
4437if test "x$ac_cv_prog_cc_c89" = xno
4438then :
4439  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4440printf "%s\n" "unsupported" >&6; }
4441else $as_nop
4442  if test "x$ac_cv_prog_cc_c89" = x
4443then :
4444  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4445printf "%s\n" "none needed" >&6; }
4446else $as_nop
4447  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4448printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4449     CC="$CC $ac_cv_prog_cc_c89"
4450fi
4451  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4452  ac_prog_cc_stdc=c89
4453fi
4454fi
4455
4456ac_ext=c
4457ac_cpp='$CPP $CPPFLAGS'
4458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4460ac_compiler_gnu=$ac_cv_c_compiler_gnu
4461
4462
4463  ac_ext=c
4464ac_cpp='$CPP $CPPFLAGS'
4465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4467ac_compiler_gnu=$ac_cv_c_compiler_gnu
4468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4469printf %s "checking whether $CC understands -c and -o together... " >&6; }
4470if test ${am_cv_prog_cc_c_o+y}
4471then :
4472  printf %s "(cached) " >&6
4473else $as_nop
4474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475/* end confdefs.h.  */
4476
4477int
4478main (void)
4479{
4480
4481  ;
4482  return 0;
4483}
4484_ACEOF
4485  # Make sure it works both with $CC and with simple cc.
4486  # Following AC_PROG_CC_C_O, we do the test twice because some
4487  # compilers refuse to overwrite an existing .o file with -o,
4488  # though they will create one.
4489  am_cv_prog_cc_c_o=yes
4490  for am_i in 1 2; do
4491    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4492   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4493   ac_status=$?
4494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495   (exit $ac_status); } \
4496         && test -f conftest2.$ac_objext; then
4497      : OK
4498    else
4499      am_cv_prog_cc_c_o=no
4500      break
4501    fi
4502  done
4503  rm -f core conftest*
4504  unset am_i
4505fi
4506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4507printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4508if test "$am_cv_prog_cc_c_o" != yes; then
4509   # Losing compiler, so override with the script.
4510   # FIXME: It is wrong to rewrite CC.
4511   # But if we don't then we get into trouble of one sort or another.
4512   # A longer-term fix would be to have automake use am__CC in this case,
4513   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4514   CC="$am_aux_dir/compile $CC"
4515fi
4516ac_ext=c
4517ac_cpp='$CPP $CPPFLAGS'
4518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4520ac_compiler_gnu=$ac_cv_c_compiler_gnu
4521
4522
4523depcc="$CC"   am_compiler_list=
4524
4525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4526printf %s "checking dependency style of $depcc... " >&6; }
4527if test ${am_cv_CC_dependencies_compiler_type+y}
4528then :
4529  printf %s "(cached) " >&6
4530else $as_nop
4531  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4532  # We make a subdir and do the tests there.  Otherwise we can end up
4533  # making bogus files that we don't know about and never remove.  For
4534  # instance it was reported that on HP-UX the gcc test will end up
4535  # making a dummy file named 'D' -- because '-MD' means "put the output
4536  # in D".
4537  rm -rf conftest.dir
4538  mkdir conftest.dir
4539  # Copy depcomp to subdir because otherwise we won't find it if we're
4540  # using a relative directory.
4541  cp "$am_depcomp" conftest.dir
4542  cd conftest.dir
4543  # We will build objects and dependencies in a subdirectory because
4544  # it helps to detect inapplicable dependency modes.  For instance
4545  # both Tru64's cc and ICC support -MD to output dependencies as a
4546  # side effect of compilation, but ICC will put the dependencies in
4547  # the current directory while Tru64 will put them in the object
4548  # directory.
4549  mkdir sub
4550
4551  am_cv_CC_dependencies_compiler_type=none
4552  if test "$am_compiler_list" = ""; then
4553     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4554  fi
4555  am__universal=false
4556  case " $depcc " in #(
4557     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4558     esac
4559
4560  for depmode in $am_compiler_list; do
4561    # Setup a source with many dependencies, because some compilers
4562    # like to wrap large dependency lists on column 80 (with \), and
4563    # we should not choose a depcomp mode which is confused by this.
4564    #
4565    # We need to recreate these files for each test, as the compiler may
4566    # overwrite some of them when testing with obscure command lines.
4567    # This happens at least with the AIX C compiler.
4568    : > sub/conftest.c
4569    for i in 1 2 3 4 5 6; do
4570      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4571      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4572      # Solaris 10 /bin/sh.
4573      echo '/* dummy */' > sub/conftst$i.h
4574    done
4575    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4576
4577    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4578    # mode.  It turns out that the SunPro C++ compiler does not properly
4579    # handle '-M -o', and we need to detect this.  Also, some Intel
4580    # versions had trouble with output in subdirs.
4581    am__obj=sub/conftest.${OBJEXT-o}
4582    am__minus_obj="-o $am__obj"
4583    case $depmode in
4584    gcc)
4585      # This depmode causes a compiler race in universal mode.
4586      test "$am__universal" = false || continue
4587      ;;
4588    nosideeffect)
4589      # After this tag, mechanisms are not by side-effect, so they'll
4590      # only be used when explicitly requested.
4591      if test "x$enable_dependency_tracking" = xyes; then
4592	continue
4593      else
4594	break
4595      fi
4596      ;;
4597    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4598      # This compiler won't grok '-c -o', but also, the minuso test has
4599      # not run yet.  These depmodes are late enough in the game, and
4600      # so weak that their functioning should not be impacted.
4601      am__obj=conftest.${OBJEXT-o}
4602      am__minus_obj=
4603      ;;
4604    none) break ;;
4605    esac
4606    if depmode=$depmode \
4607       source=sub/conftest.c object=$am__obj \
4608       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4609       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4610         >/dev/null 2>conftest.err &&
4611       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4612       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4613       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4614       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4615      # icc doesn't choke on unknown options, it will just issue warnings
4616      # or remarks (even with -Werror).  So we grep stderr for any message
4617      # that says an option was ignored or not supported.
4618      # When given -MP, icc 7.0 and 7.1 complain thusly:
4619      #   icc: Command line warning: ignoring option '-M'; no argument required
4620      # The diagnosis changed in icc 8.0:
4621      #   icc: Command line remark: option '-MP' not supported
4622      if (grep 'ignoring option' conftest.err ||
4623          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4624        am_cv_CC_dependencies_compiler_type=$depmode
4625        break
4626      fi
4627    fi
4628  done
4629
4630  cd ..
4631  rm -rf conftest.dir
4632else
4633  am_cv_CC_dependencies_compiler_type=none
4634fi
4635
4636fi
4637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4638printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4639CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4640
4641 if
4642  test "x$enable_dependency_tracking" != xno \
4643  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4644  am__fastdepCC_TRUE=
4645  am__fastdepCC_FALSE='#'
4646else
4647  am__fastdepCC_TRUE='#'
4648  am__fastdepCC_FALSE=
4649fi
4650
4651
4652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4653printf %s "checking for a sed that does not truncate output... " >&6; }
4654if test ${ac_cv_path_SED+y}
4655then :
4656  printf %s "(cached) " >&6
4657else $as_nop
4658            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4659     for ac_i in 1 2 3 4 5 6 7; do
4660       ac_script="$ac_script$as_nl$ac_script"
4661     done
4662     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4663     { ac_script=; unset ac_script;}
4664     if test -z "$SED"; then
4665  ac_path_SED_found=false
4666  # Loop through the user's path and test for each of PROGNAME-LIST
4667  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668for as_dir in $PATH
4669do
4670  IFS=$as_save_IFS
4671  case $as_dir in #(((
4672    '') as_dir=./ ;;
4673    */) ;;
4674    *) as_dir=$as_dir/ ;;
4675  esac
4676    for ac_prog in sed gsed
4677   do
4678    for ac_exec_ext in '' $ac_executable_extensions; do
4679      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4680      as_fn_executable_p "$ac_path_SED" || continue
4681# Check for GNU ac_path_SED and select it if it is found.
4682  # Check for GNU $ac_path_SED
4683case `"$ac_path_SED" --version 2>&1` in
4684*GNU*)
4685  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4686*)
4687  ac_count=0
4688  printf %s 0123456789 >"conftest.in"
4689  while :
4690  do
4691    cat "conftest.in" "conftest.in" >"conftest.tmp"
4692    mv "conftest.tmp" "conftest.in"
4693    cp "conftest.in" "conftest.nl"
4694    printf "%s\n" '' >> "conftest.nl"
4695    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4696    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4697    as_fn_arith $ac_count + 1 && ac_count=$as_val
4698    if test $ac_count -gt ${ac_path_SED_max-0}; then
4699      # Best one so far, save it but keep looking for a better one
4700      ac_cv_path_SED="$ac_path_SED"
4701      ac_path_SED_max=$ac_count
4702    fi
4703    # 10*(2^10) chars as input seems more than enough
4704    test $ac_count -gt 10 && break
4705  done
4706  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4707esac
4708
4709      $ac_path_SED_found && break 3
4710    done
4711  done
4712  done
4713IFS=$as_save_IFS
4714  if test -z "$ac_cv_path_SED"; then
4715    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4716  fi
4717else
4718  ac_cv_path_SED=$SED
4719fi
4720
4721fi
4722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4723printf "%s\n" "$ac_cv_path_SED" >&6; }
4724 SED="$ac_cv_path_SED"
4725  rm -f conftest.sed
4726
4727test -z "$SED" && SED=sed
4728Xsed="$SED -e 1s/^X//"
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4741printf %s "checking for grep that handles long lines and -e... " >&6; }
4742if test ${ac_cv_path_GREP+y}
4743then :
4744  printf %s "(cached) " >&6
4745else $as_nop
4746  if test -z "$GREP"; then
4747  ac_path_GREP_found=false
4748  # Loop through the user's path and test for each of PROGNAME-LIST
4749  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4751do
4752  IFS=$as_save_IFS
4753  case $as_dir in #(((
4754    '') as_dir=./ ;;
4755    */) ;;
4756    *) as_dir=$as_dir/ ;;
4757  esac
4758    for ac_prog in grep ggrep
4759   do
4760    for ac_exec_ext in '' $ac_executable_extensions; do
4761      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4762      as_fn_executable_p "$ac_path_GREP" || continue
4763# Check for GNU ac_path_GREP and select it if it is found.
4764  # Check for GNU $ac_path_GREP
4765case `"$ac_path_GREP" --version 2>&1` in
4766*GNU*)
4767  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4768*)
4769  ac_count=0
4770  printf %s 0123456789 >"conftest.in"
4771  while :
4772  do
4773    cat "conftest.in" "conftest.in" >"conftest.tmp"
4774    mv "conftest.tmp" "conftest.in"
4775    cp "conftest.in" "conftest.nl"
4776    printf "%s\n" 'GREP' >> "conftest.nl"
4777    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4778    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4779    as_fn_arith $ac_count + 1 && ac_count=$as_val
4780    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4781      # Best one so far, save it but keep looking for a better one
4782      ac_cv_path_GREP="$ac_path_GREP"
4783      ac_path_GREP_max=$ac_count
4784    fi
4785    # 10*(2^10) chars as input seems more than enough
4786    test $ac_count -gt 10 && break
4787  done
4788  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4789esac
4790
4791      $ac_path_GREP_found && break 3
4792    done
4793  done
4794  done
4795IFS=$as_save_IFS
4796  if test -z "$ac_cv_path_GREP"; then
4797    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4798  fi
4799else
4800  ac_cv_path_GREP=$GREP
4801fi
4802
4803fi
4804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4805printf "%s\n" "$ac_cv_path_GREP" >&6; }
4806 GREP="$ac_cv_path_GREP"
4807
4808
4809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4810printf %s "checking for egrep... " >&6; }
4811if test ${ac_cv_path_EGREP+y}
4812then :
4813  printf %s "(cached) " >&6
4814else $as_nop
4815  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4816   then ac_cv_path_EGREP="$GREP -E"
4817   else
4818     if test -z "$EGREP"; then
4819  ac_path_EGREP_found=false
4820  # Loop through the user's path and test for each of PROGNAME-LIST
4821  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4823do
4824  IFS=$as_save_IFS
4825  case $as_dir in #(((
4826    '') as_dir=./ ;;
4827    */) ;;
4828    *) as_dir=$as_dir/ ;;
4829  esac
4830    for ac_prog in egrep
4831   do
4832    for ac_exec_ext in '' $ac_executable_extensions; do
4833      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4834      as_fn_executable_p "$ac_path_EGREP" || continue
4835# Check for GNU ac_path_EGREP and select it if it is found.
4836  # Check for GNU $ac_path_EGREP
4837case `"$ac_path_EGREP" --version 2>&1` in
4838*GNU*)
4839  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4840*)
4841  ac_count=0
4842  printf %s 0123456789 >"conftest.in"
4843  while :
4844  do
4845    cat "conftest.in" "conftest.in" >"conftest.tmp"
4846    mv "conftest.tmp" "conftest.in"
4847    cp "conftest.in" "conftest.nl"
4848    printf "%s\n" 'EGREP' >> "conftest.nl"
4849    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4850    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4851    as_fn_arith $ac_count + 1 && ac_count=$as_val
4852    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4853      # Best one so far, save it but keep looking for a better one
4854      ac_cv_path_EGREP="$ac_path_EGREP"
4855      ac_path_EGREP_max=$ac_count
4856    fi
4857    # 10*(2^10) chars as input seems more than enough
4858    test $ac_count -gt 10 && break
4859  done
4860  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4861esac
4862
4863      $ac_path_EGREP_found && break 3
4864    done
4865  done
4866  done
4867IFS=$as_save_IFS
4868  if test -z "$ac_cv_path_EGREP"; then
4869    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4870  fi
4871else
4872  ac_cv_path_EGREP=$EGREP
4873fi
4874
4875   fi
4876fi
4877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4878printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4879 EGREP="$ac_cv_path_EGREP"
4880
4881
4882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4883printf %s "checking for fgrep... " >&6; }
4884if test ${ac_cv_path_FGREP+y}
4885then :
4886  printf %s "(cached) " >&6
4887else $as_nop
4888  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4889   then ac_cv_path_FGREP="$GREP -F"
4890   else
4891     if test -z "$FGREP"; then
4892  ac_path_FGREP_found=false
4893  # Loop through the user's path and test for each of PROGNAME-LIST
4894  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4896do
4897  IFS=$as_save_IFS
4898  case $as_dir in #(((
4899    '') as_dir=./ ;;
4900    */) ;;
4901    *) as_dir=$as_dir/ ;;
4902  esac
4903    for ac_prog in fgrep
4904   do
4905    for ac_exec_ext in '' $ac_executable_extensions; do
4906      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4907      as_fn_executable_p "$ac_path_FGREP" || continue
4908# Check for GNU ac_path_FGREP and select it if it is found.
4909  # Check for GNU $ac_path_FGREP
4910case `"$ac_path_FGREP" --version 2>&1` in
4911*GNU*)
4912  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4913*)
4914  ac_count=0
4915  printf %s 0123456789 >"conftest.in"
4916  while :
4917  do
4918    cat "conftest.in" "conftest.in" >"conftest.tmp"
4919    mv "conftest.tmp" "conftest.in"
4920    cp "conftest.in" "conftest.nl"
4921    printf "%s\n" 'FGREP' >> "conftest.nl"
4922    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4923    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4924    as_fn_arith $ac_count + 1 && ac_count=$as_val
4925    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4926      # Best one so far, save it but keep looking for a better one
4927      ac_cv_path_FGREP="$ac_path_FGREP"
4928      ac_path_FGREP_max=$ac_count
4929    fi
4930    # 10*(2^10) chars as input seems more than enough
4931    test $ac_count -gt 10 && break
4932  done
4933  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4934esac
4935
4936      $ac_path_FGREP_found && break 3
4937    done
4938  done
4939  done
4940IFS=$as_save_IFS
4941  if test -z "$ac_cv_path_FGREP"; then
4942    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4943  fi
4944else
4945  ac_cv_path_FGREP=$FGREP
4946fi
4947
4948   fi
4949fi
4950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4951printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4952 FGREP="$ac_cv_path_FGREP"
4953
4954
4955test -z "$GREP" && GREP=grep
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975# Check whether --with-gnu-ld was given.
4976if test ${with_gnu_ld+y}
4977then :
4978  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4979else $as_nop
4980  with_gnu_ld=no
4981fi
4982
4983ac_prog=ld
4984if test yes = "$GCC"; then
4985  # Check if gcc -print-prog-name=ld gives a path.
4986  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4987printf %s "checking for ld used by $CC... " >&6; }
4988  case $host in
4989  *-*-mingw*)
4990    # gcc leaves a trailing carriage return, which upsets mingw
4991    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4992  *)
4993    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4994  esac
4995  case $ac_prog in
4996    # Accept absolute paths.
4997    [\\/]* | ?:[\\/]*)
4998      re_direlt='/[^/][^/]*/\.\./'
4999      # Canonicalize the pathname of ld
5000      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5001      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5002	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5003      done
5004      test -z "$LD" && LD=$ac_prog
5005      ;;
5006  "")
5007    # If it fails, then pretend we aren't using GCC.
5008    ac_prog=ld
5009    ;;
5010  *)
5011    # If it is relative, then search for the first ld in PATH.
5012    with_gnu_ld=unknown
5013    ;;
5014  esac
5015elif test yes = "$with_gnu_ld"; then
5016  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5017printf %s "checking for GNU ld... " >&6; }
5018else
5019  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5020printf %s "checking for non-GNU ld... " >&6; }
5021fi
5022if test ${lt_cv_path_LD+y}
5023then :
5024  printf %s "(cached) " >&6
5025else $as_nop
5026  if test -z "$LD"; then
5027  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5028  for ac_dir in $PATH; do
5029    IFS=$lt_save_ifs
5030    test -z "$ac_dir" && ac_dir=.
5031    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5032      lt_cv_path_LD=$ac_dir/$ac_prog
5033      # Check to see if the program is GNU ld.  I'd rather use --version,
5034      # but apparently some variants of GNU ld only accept -v.
5035      # Break only if it was the GNU/non-GNU ld that we prefer.
5036      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5037      *GNU* | *'with BFD'*)
5038	test no != "$with_gnu_ld" && break
5039	;;
5040      *)
5041	test yes != "$with_gnu_ld" && break
5042	;;
5043      esac
5044    fi
5045  done
5046  IFS=$lt_save_ifs
5047else
5048  lt_cv_path_LD=$LD # Let the user override the test with a path.
5049fi
5050fi
5051
5052LD=$lt_cv_path_LD
5053if test -n "$LD"; then
5054  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5055printf "%s\n" "$LD" >&6; }
5056else
5057  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5058printf "%s\n" "no" >&6; }
5059fi
5060test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5062printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5063if test ${lt_cv_prog_gnu_ld+y}
5064then :
5065  printf %s "(cached) " >&6
5066else $as_nop
5067  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5068case `$LD -v 2>&1 </dev/null` in
5069*GNU* | *'with BFD'*)
5070  lt_cv_prog_gnu_ld=yes
5071  ;;
5072*)
5073  lt_cv_prog_gnu_ld=no
5074  ;;
5075esac
5076fi
5077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5078printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5079with_gnu_ld=$lt_cv_prog_gnu_ld
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5090printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5091if test ${lt_cv_path_NM+y}
5092then :
5093  printf %s "(cached) " >&6
5094else $as_nop
5095  if test -n "$NM"; then
5096  # Let the user override the test.
5097  lt_cv_path_NM=$NM
5098else
5099  lt_nm_to_check=${ac_tool_prefix}nm
5100  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5101    lt_nm_to_check="$lt_nm_to_check nm"
5102  fi
5103  for lt_tmp_nm in $lt_nm_to_check; do
5104    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5105    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5106      IFS=$lt_save_ifs
5107      test -z "$ac_dir" && ac_dir=.
5108      tmp_nm=$ac_dir/$lt_tmp_nm
5109      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5110	# Check to see if the nm accepts a BSD-compat flag.
5111	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5112	#   nm: unknown option "B" ignored
5113	# Tru64's nm complains that /dev/null is an invalid object file
5114	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5115	case $build_os in
5116	mingw*) lt_bad_file=conftest.nm/nofile ;;
5117	*) lt_bad_file=/dev/null ;;
5118	esac
5119	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5120	*$lt_bad_file* | *'Invalid file or object type'*)
5121	  lt_cv_path_NM="$tmp_nm -B"
5122	  break 2
5123	  ;;
5124	*)
5125	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5126	  */dev/null*)
5127	    lt_cv_path_NM="$tmp_nm -p"
5128	    break 2
5129	    ;;
5130	  *)
5131	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5132	    continue # so that we can try to find one that supports BSD flags
5133	    ;;
5134	  esac
5135	  ;;
5136	esac
5137      fi
5138    done
5139    IFS=$lt_save_ifs
5140  done
5141  : ${lt_cv_path_NM=no}
5142fi
5143fi
5144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5145printf "%s\n" "$lt_cv_path_NM" >&6; }
5146if test no != "$lt_cv_path_NM"; then
5147  NM=$lt_cv_path_NM
5148else
5149  # Didn't find any BSD compatible name lister, look for dumpbin.
5150  if test -n "$DUMPBIN"; then :
5151    # Let the user override the test.
5152  else
5153    if test -n "$ac_tool_prefix"; then
5154  for ac_prog in dumpbin "link -dump"
5155  do
5156    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5157set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159printf %s "checking for $ac_word... " >&6; }
5160if test ${ac_cv_prog_DUMPBIN+y}
5161then :
5162  printf %s "(cached) " >&6
5163else $as_nop
5164  if test -n "$DUMPBIN"; then
5165  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5166else
5167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168for as_dir in $PATH
5169do
5170  IFS=$as_save_IFS
5171  case $as_dir in #(((
5172    '') as_dir=./ ;;
5173    */) ;;
5174    *) as_dir=$as_dir/ ;;
5175  esac
5176    for ac_exec_ext in '' $ac_executable_extensions; do
5177  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5178    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5179    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5180    break 2
5181  fi
5182done
5183  done
5184IFS=$as_save_IFS
5185
5186fi
5187fi
5188DUMPBIN=$ac_cv_prog_DUMPBIN
5189if test -n "$DUMPBIN"; then
5190  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5191printf "%s\n" "$DUMPBIN" >&6; }
5192else
5193  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5194printf "%s\n" "no" >&6; }
5195fi
5196
5197
5198    test -n "$DUMPBIN" && break
5199  done
5200fi
5201if test -z "$DUMPBIN"; then
5202  ac_ct_DUMPBIN=$DUMPBIN
5203  for ac_prog in dumpbin "link -dump"
5204do
5205  # Extract the first word of "$ac_prog", so it can be a program name with args.
5206set dummy $ac_prog; ac_word=$2
5207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208printf %s "checking for $ac_word... " >&6; }
5209if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5210then :
5211  printf %s "(cached) " >&6
5212else $as_nop
5213  if test -n "$ac_ct_DUMPBIN"; then
5214  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5215else
5216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217for as_dir in $PATH
5218do
5219  IFS=$as_save_IFS
5220  case $as_dir in #(((
5221    '') as_dir=./ ;;
5222    */) ;;
5223    *) as_dir=$as_dir/ ;;
5224  esac
5225    for ac_exec_ext in '' $ac_executable_extensions; do
5226  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5227    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5228    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5229    break 2
5230  fi
5231done
5232  done
5233IFS=$as_save_IFS
5234
5235fi
5236fi
5237ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5238if test -n "$ac_ct_DUMPBIN"; then
5239  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5240printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5241else
5242  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243printf "%s\n" "no" >&6; }
5244fi
5245
5246
5247  test -n "$ac_ct_DUMPBIN" && break
5248done
5249
5250  if test "x$ac_ct_DUMPBIN" = x; then
5251    DUMPBIN=":"
5252  else
5253    case $cross_compiling:$ac_tool_warned in
5254yes:)
5255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5256printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5257ac_tool_warned=yes ;;
5258esac
5259    DUMPBIN=$ac_ct_DUMPBIN
5260  fi
5261fi
5262
5263    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5264    *COFF*)
5265      DUMPBIN="$DUMPBIN -symbols -headers"
5266      ;;
5267    *)
5268      DUMPBIN=:
5269      ;;
5270    esac
5271  fi
5272
5273  if test : != "$DUMPBIN"; then
5274    NM=$DUMPBIN
5275  fi
5276fi
5277test -z "$NM" && NM=nm
5278
5279
5280
5281
5282
5283
5284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5285printf %s "checking the name lister ($NM) interface... " >&6; }
5286if test ${lt_cv_nm_interface+y}
5287then :
5288  printf %s "(cached) " >&6
5289else $as_nop
5290  lt_cv_nm_interface="BSD nm"
5291  echo "int some_variable = 0;" > conftest.$ac_ext
5292  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5293  (eval "$ac_compile" 2>conftest.err)
5294  cat conftest.err >&5
5295  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5296  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5297  cat conftest.err >&5
5298  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5299  cat conftest.out >&5
5300  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5301    lt_cv_nm_interface="MS dumpbin"
5302  fi
5303  rm -f conftest*
5304fi
5305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5306printf "%s\n" "$lt_cv_nm_interface" >&6; }
5307
5308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5309printf %s "checking whether ln -s works... " >&6; }
5310LN_S=$as_ln_s
5311if test "$LN_S" = "ln -s"; then
5312  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5313printf "%s\n" "yes" >&6; }
5314else
5315  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5316printf "%s\n" "no, using $LN_S" >&6; }
5317fi
5318
5319# find the maximum length of command line arguments
5320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5321printf %s "checking the maximum length of command line arguments... " >&6; }
5322if test ${lt_cv_sys_max_cmd_len+y}
5323then :
5324  printf %s "(cached) " >&6
5325else $as_nop
5326    i=0
5327  teststring=ABCD
5328
5329  case $build_os in
5330  msdosdjgpp*)
5331    # On DJGPP, this test can blow up pretty badly due to problems in libc
5332    # (any single argument exceeding 2000 bytes causes a buffer overrun
5333    # during glob expansion).  Even if it were fixed, the result of this
5334    # check would be larger than it should be.
5335    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5336    ;;
5337
5338  gnu*)
5339    # Under GNU Hurd, this test is not required because there is
5340    # no limit to the length of command line arguments.
5341    # Libtool will interpret -1 as no limit whatsoever
5342    lt_cv_sys_max_cmd_len=-1;
5343    ;;
5344
5345  cygwin* | mingw* | cegcc*)
5346    # On Win9x/ME, this test blows up -- it succeeds, but takes
5347    # about 5 minutes as the teststring grows exponentially.
5348    # Worse, since 9x/ME are not pre-emptively multitasking,
5349    # you end up with a "frozen" computer, even though with patience
5350    # the test eventually succeeds (with a max line length of 256k).
5351    # Instead, let's just punt: use the minimum linelength reported by
5352    # all of the supported platforms: 8192 (on NT/2K/XP).
5353    lt_cv_sys_max_cmd_len=8192;
5354    ;;
5355
5356  mint*)
5357    # On MiNT this can take a long time and run out of memory.
5358    lt_cv_sys_max_cmd_len=8192;
5359    ;;
5360
5361  amigaos*)
5362    # On AmigaOS with pdksh, this test takes hours, literally.
5363    # So we just punt and use a minimum line length of 8192.
5364    lt_cv_sys_max_cmd_len=8192;
5365    ;;
5366
5367  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5368    # This has been around since 386BSD, at least.  Likely further.
5369    if test -x /sbin/sysctl; then
5370      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5371    elif test -x /usr/sbin/sysctl; then
5372      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5373    else
5374      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5375    fi
5376    # And add a safety zone
5377    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5378    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5379    ;;
5380
5381  interix*)
5382    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5383    lt_cv_sys_max_cmd_len=196608
5384    ;;
5385
5386  os2*)
5387    # The test takes a long time on OS/2.
5388    lt_cv_sys_max_cmd_len=8192
5389    ;;
5390
5391  osf*)
5392    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5393    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5394    # nice to cause kernel panics so lets avoid the loop below.
5395    # First set a reasonable default.
5396    lt_cv_sys_max_cmd_len=16384
5397    #
5398    if test -x /sbin/sysconfig; then
5399      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5400        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5401      esac
5402    fi
5403    ;;
5404  sco3.2v5*)
5405    lt_cv_sys_max_cmd_len=102400
5406    ;;
5407  sysv5* | sco5v6* | sysv4.2uw2*)
5408    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5409    if test -n "$kargmax"; then
5410      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
5411    else
5412      lt_cv_sys_max_cmd_len=32768
5413    fi
5414    ;;
5415  *)
5416    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5417    if test -n "$lt_cv_sys_max_cmd_len" && \
5418       test undefined != "$lt_cv_sys_max_cmd_len"; then
5419      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5420      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5421    else
5422      # Make teststring a little bigger before we do anything with it.
5423      # a 1K string should be a reasonable start.
5424      for i in 1 2 3 4 5 6 7 8; do
5425        teststring=$teststring$teststring
5426      done
5427      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5428      # If test is not a shell built-in, we'll probably end up computing a
5429      # maximum length that is only half of the actual maximum length, but
5430      # we can't tell.
5431      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5432	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5433	      test 17 != "$i" # 1/2 MB should be enough
5434      do
5435        i=`expr $i + 1`
5436        teststring=$teststring$teststring
5437      done
5438      # Only check the string length outside the loop.
5439      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5440      teststring=
5441      # Add a significant safety factor because C++ compilers can tack on
5442      # massive amounts of additional arguments before passing them to the
5443      # linker.  It appears as though 1/2 is a usable value.
5444      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5445    fi
5446    ;;
5447  esac
5448
5449fi
5450
5451if test -n "$lt_cv_sys_max_cmd_len"; then
5452  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5453printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5454else
5455  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5456printf "%s\n" "none" >&6; }
5457fi
5458max_cmd_len=$lt_cv_sys_max_cmd_len
5459
5460
5461
5462
5463
5464
5465: ${CP="cp -f"}
5466: ${MV="mv -f"}
5467: ${RM="rm -f"}
5468
5469if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5470  lt_unset=unset
5471else
5472  lt_unset=false
5473fi
5474
5475
5476
5477
5478
5479# test EBCDIC or ASCII
5480case `echo X|tr X '\101'` in
5481 A) # ASCII based system
5482    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5483  lt_SP2NL='tr \040 \012'
5484  lt_NL2SP='tr \015\012 \040\040'
5485  ;;
5486 *) # EBCDIC based system
5487  lt_SP2NL='tr \100 \n'
5488  lt_NL2SP='tr \r\n \100\100'
5489  ;;
5490esac
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5501printf %s "checking how to convert $build file names to $host format... " >&6; }
5502if test ${lt_cv_to_host_file_cmd+y}
5503then :
5504  printf %s "(cached) " >&6
5505else $as_nop
5506  case $host in
5507  *-*-mingw* )
5508    case $build in
5509      *-*-mingw* ) # actually msys
5510        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5511        ;;
5512      *-*-cygwin* )
5513        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5514        ;;
5515      * ) # otherwise, assume *nix
5516        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5517        ;;
5518    esac
5519    ;;
5520  *-*-cygwin* )
5521    case $build in
5522      *-*-mingw* ) # actually msys
5523        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5524        ;;
5525      *-*-cygwin* )
5526        lt_cv_to_host_file_cmd=func_convert_file_noop
5527        ;;
5528      * ) # otherwise, assume *nix
5529        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5530        ;;
5531    esac
5532    ;;
5533  * ) # unhandled hosts (and "normal" native builds)
5534    lt_cv_to_host_file_cmd=func_convert_file_noop
5535    ;;
5536esac
5537
5538fi
5539
5540to_host_file_cmd=$lt_cv_to_host_file_cmd
5541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5542printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5543
5544
5545
5546
5547
5548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5549printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5550if test ${lt_cv_to_tool_file_cmd+y}
5551then :
5552  printf %s "(cached) " >&6
5553else $as_nop
5554  #assume ordinary cross tools, or native build.
5555lt_cv_to_tool_file_cmd=func_convert_file_noop
5556case $host in
5557  *-*-mingw* )
5558    case $build in
5559      *-*-mingw* ) # actually msys
5560        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5561        ;;
5562    esac
5563    ;;
5564esac
5565
5566fi
5567
5568to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5570printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5571
5572
5573
5574
5575
5576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5577printf %s "checking for $LD option to reload object files... " >&6; }
5578if test ${lt_cv_ld_reload_flag+y}
5579then :
5580  printf %s "(cached) " >&6
5581else $as_nop
5582  lt_cv_ld_reload_flag='-r'
5583fi
5584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5585printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5586reload_flag=$lt_cv_ld_reload_flag
5587case $reload_flag in
5588"" | " "*) ;;
5589*) reload_flag=" $reload_flag" ;;
5590esac
5591reload_cmds='$LD$reload_flag -o $output$reload_objs'
5592case $host_os in
5593  cygwin* | mingw* | pw32* | cegcc*)
5594    if test yes != "$GCC"; then
5595      reload_cmds=false
5596    fi
5597    ;;
5598  darwin*)
5599    if test yes = "$GCC"; then
5600      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5601    else
5602      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5603    fi
5604    ;;
5605esac
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615if test -n "$ac_tool_prefix"; then
5616  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5617set dummy ${ac_tool_prefix}file; ac_word=$2
5618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619printf %s "checking for $ac_word... " >&6; }
5620if test ${ac_cv_prog_FILECMD+y}
5621then :
5622  printf %s "(cached) " >&6
5623else $as_nop
5624  if test -n "$FILECMD"; then
5625  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5626else
5627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628for as_dir in $PATH
5629do
5630  IFS=$as_save_IFS
5631  case $as_dir in #(((
5632    '') as_dir=./ ;;
5633    */) ;;
5634    *) as_dir=$as_dir/ ;;
5635  esac
5636    for ac_exec_ext in '' $ac_executable_extensions; do
5637  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5638    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5639    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5640    break 2
5641  fi
5642done
5643  done
5644IFS=$as_save_IFS
5645
5646fi
5647fi
5648FILECMD=$ac_cv_prog_FILECMD
5649if test -n "$FILECMD"; then
5650  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5651printf "%s\n" "$FILECMD" >&6; }
5652else
5653  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654printf "%s\n" "no" >&6; }
5655fi
5656
5657
5658fi
5659if test -z "$ac_cv_prog_FILECMD"; then
5660  ac_ct_FILECMD=$FILECMD
5661  # Extract the first word of "file", so it can be a program name with args.
5662set dummy file; ac_word=$2
5663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5664printf %s "checking for $ac_word... " >&6; }
5665if test ${ac_cv_prog_ac_ct_FILECMD+y}
5666then :
5667  printf %s "(cached) " >&6
5668else $as_nop
5669  if test -n "$ac_ct_FILECMD"; then
5670  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5671else
5672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673for as_dir in $PATH
5674do
5675  IFS=$as_save_IFS
5676  case $as_dir in #(((
5677    '') as_dir=./ ;;
5678    */) ;;
5679    *) as_dir=$as_dir/ ;;
5680  esac
5681    for ac_exec_ext in '' $ac_executable_extensions; do
5682  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5683    ac_cv_prog_ac_ct_FILECMD="file"
5684    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5685    break 2
5686  fi
5687done
5688  done
5689IFS=$as_save_IFS
5690
5691fi
5692fi
5693ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5694if test -n "$ac_ct_FILECMD"; then
5695  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5696printf "%s\n" "$ac_ct_FILECMD" >&6; }
5697else
5698  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699printf "%s\n" "no" >&6; }
5700fi
5701
5702  if test "x$ac_ct_FILECMD" = x; then
5703    FILECMD=":"
5704  else
5705    case $cross_compiling:$ac_tool_warned in
5706yes:)
5707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5708printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5709ac_tool_warned=yes ;;
5710esac
5711    FILECMD=$ac_ct_FILECMD
5712  fi
5713else
5714  FILECMD="$ac_cv_prog_FILECMD"
5715fi
5716
5717
5718
5719
5720
5721
5722
5723if test -n "$ac_tool_prefix"; then
5724  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5725set dummy ${ac_tool_prefix}objdump; ac_word=$2
5726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727printf %s "checking for $ac_word... " >&6; }
5728if test ${ac_cv_prog_OBJDUMP+y}
5729then :
5730  printf %s "(cached) " >&6
5731else $as_nop
5732  if test -n "$OBJDUMP"; then
5733  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5734else
5735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736for as_dir in $PATH
5737do
5738  IFS=$as_save_IFS
5739  case $as_dir in #(((
5740    '') as_dir=./ ;;
5741    */) ;;
5742    *) as_dir=$as_dir/ ;;
5743  esac
5744    for ac_exec_ext in '' $ac_executable_extensions; do
5745  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5746    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5747    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5748    break 2
5749  fi
5750done
5751  done
5752IFS=$as_save_IFS
5753
5754fi
5755fi
5756OBJDUMP=$ac_cv_prog_OBJDUMP
5757if test -n "$OBJDUMP"; then
5758  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5759printf "%s\n" "$OBJDUMP" >&6; }
5760else
5761  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5762printf "%s\n" "no" >&6; }
5763fi
5764
5765
5766fi
5767if test -z "$ac_cv_prog_OBJDUMP"; then
5768  ac_ct_OBJDUMP=$OBJDUMP
5769  # Extract the first word of "objdump", so it can be a program name with args.
5770set dummy objdump; ac_word=$2
5771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5772printf %s "checking for $ac_word... " >&6; }
5773if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5774then :
5775  printf %s "(cached) " >&6
5776else $as_nop
5777  if test -n "$ac_ct_OBJDUMP"; then
5778  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5779else
5780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781for as_dir in $PATH
5782do
5783  IFS=$as_save_IFS
5784  case $as_dir in #(((
5785    '') as_dir=./ ;;
5786    */) ;;
5787    *) as_dir=$as_dir/ ;;
5788  esac
5789    for ac_exec_ext in '' $ac_executable_extensions; do
5790  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5791    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5792    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5793    break 2
5794  fi
5795done
5796  done
5797IFS=$as_save_IFS
5798
5799fi
5800fi
5801ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5802if test -n "$ac_ct_OBJDUMP"; then
5803  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5804printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5805else
5806  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807printf "%s\n" "no" >&6; }
5808fi
5809
5810  if test "x$ac_ct_OBJDUMP" = x; then
5811    OBJDUMP="false"
5812  else
5813    case $cross_compiling:$ac_tool_warned in
5814yes:)
5815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5816printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5817ac_tool_warned=yes ;;
5818esac
5819    OBJDUMP=$ac_ct_OBJDUMP
5820  fi
5821else
5822  OBJDUMP="$ac_cv_prog_OBJDUMP"
5823fi
5824
5825test -z "$OBJDUMP" && OBJDUMP=objdump
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5836printf %s "checking how to recognize dependent libraries... " >&6; }
5837if test ${lt_cv_deplibs_check_method+y}
5838then :
5839  printf %s "(cached) " >&6
5840else $as_nop
5841  lt_cv_file_magic_cmd='$MAGIC_CMD'
5842lt_cv_file_magic_test_file=
5843lt_cv_deplibs_check_method='unknown'
5844# Need to set the preceding variable on all platforms that support
5845# interlibrary dependencies.
5846# 'none' -- dependencies not supported.
5847# 'unknown' -- same as none, but documents that we really don't know.
5848# 'pass_all' -- all dependencies passed with no checks.
5849# 'test_compile' -- check by making test program.
5850# 'file_magic [[regex]]' -- check by looking for files in library path
5851# that responds to the $file_magic_cmd with a given extended regex.
5852# If you have 'file' or equivalent on your system and you're not sure
5853# whether 'pass_all' will *always* work, you probably want this one.
5854
5855case $host_os in
5856aix[4-9]*)
5857  lt_cv_deplibs_check_method=pass_all
5858  ;;
5859
5860beos*)
5861  lt_cv_deplibs_check_method=pass_all
5862  ;;
5863
5864bsdi[45]*)
5865  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5866  lt_cv_file_magic_cmd='$FILECMD -L'
5867  lt_cv_file_magic_test_file=/shlib/libc.so
5868  ;;
5869
5870cygwin*)
5871  # func_win32_libid is a shell function defined in ltmain.sh
5872  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5873  lt_cv_file_magic_cmd='func_win32_libid'
5874  ;;
5875
5876mingw* | pw32*)
5877  # Base MSYS/MinGW do not provide the 'file' command needed by
5878  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5879  # unless we find 'file', for example because we are cross-compiling.
5880  if ( file / ) >/dev/null 2>&1; then
5881    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5882    lt_cv_file_magic_cmd='func_win32_libid'
5883  else
5884    # Keep this pattern in sync with the one in func_win32_libid.
5885    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5886    lt_cv_file_magic_cmd='$OBJDUMP -f'
5887  fi
5888  ;;
5889
5890cegcc*)
5891  # use the weaker test based on 'objdump'. See mingw*.
5892  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5893  lt_cv_file_magic_cmd='$OBJDUMP -f'
5894  ;;
5895
5896darwin* | rhapsody*)
5897  lt_cv_deplibs_check_method=pass_all
5898  ;;
5899
5900freebsd* | dragonfly* | midnightbsd*)
5901  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5902    case $host_cpu in
5903    i*86 )
5904      # Not sure whether the presence of OpenBSD here was a mistake.
5905      # Let's accept both of them until this is cleared up.
5906      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5907      lt_cv_file_magic_cmd=$FILECMD
5908      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5909      ;;
5910    esac
5911  else
5912    lt_cv_deplibs_check_method=pass_all
5913  fi
5914  ;;
5915
5916haiku*)
5917  lt_cv_deplibs_check_method=pass_all
5918  ;;
5919
5920hpux10.20* | hpux11*)
5921  lt_cv_file_magic_cmd=$FILECMD
5922  case $host_cpu in
5923  ia64*)
5924    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5925    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5926    ;;
5927  hppa*64*)
5928    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]'
5929    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5930    ;;
5931  *)
5932    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5933    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5934    ;;
5935  esac
5936  ;;
5937
5938interix[3-9]*)
5939  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5940  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5941  ;;
5942
5943irix5* | irix6* | nonstopux*)
5944  case $LD in
5945  *-32|*"-32 ") libmagic=32-bit;;
5946  *-n32|*"-n32 ") libmagic=N32;;
5947  *-64|*"-64 ") libmagic=64-bit;;
5948  *) libmagic=never-match;;
5949  esac
5950  lt_cv_deplibs_check_method=pass_all
5951  ;;
5952
5953# This must be glibc/ELF.
5954linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5955  lt_cv_deplibs_check_method=pass_all
5956  ;;
5957
5958netbsd*)
5959  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5960    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5961  else
5962    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5963  fi
5964  ;;
5965
5966newos6*)
5967  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5968  lt_cv_file_magic_cmd=$FILECMD
5969  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5970  ;;
5971
5972*nto* | *qnx*)
5973  lt_cv_deplibs_check_method=pass_all
5974  ;;
5975
5976openbsd* | bitrig*)
5977  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5978    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5979  else
5980    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5981  fi
5982  ;;
5983
5984osf3* | osf4* | osf5*)
5985  lt_cv_deplibs_check_method=pass_all
5986  ;;
5987
5988rdos*)
5989  lt_cv_deplibs_check_method=pass_all
5990  ;;
5991
5992solaris*)
5993  lt_cv_deplibs_check_method=pass_all
5994  ;;
5995
5996sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5997  lt_cv_deplibs_check_method=pass_all
5998  ;;
5999
6000sysv4 | sysv4.3*)
6001  case $host_vendor in
6002  motorola)
6003    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]'
6004    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6005    ;;
6006  ncr)
6007    lt_cv_deplibs_check_method=pass_all
6008    ;;
6009  sequent)
6010    lt_cv_file_magic_cmd='/bin/file'
6011    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6012    ;;
6013  sni)
6014    lt_cv_file_magic_cmd='/bin/file'
6015    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6016    lt_cv_file_magic_test_file=/lib/libc.so
6017    ;;
6018  siemens)
6019    lt_cv_deplibs_check_method=pass_all
6020    ;;
6021  pc)
6022    lt_cv_deplibs_check_method=pass_all
6023    ;;
6024  esac
6025  ;;
6026
6027tpf*)
6028  lt_cv_deplibs_check_method=pass_all
6029  ;;
6030os2*)
6031  lt_cv_deplibs_check_method=pass_all
6032  ;;
6033esac
6034
6035fi
6036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6037printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6038
6039file_magic_glob=
6040want_nocaseglob=no
6041if test "$build" = "$host"; then
6042  case $host_os in
6043  mingw* | pw32*)
6044    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6045      want_nocaseglob=yes
6046    else
6047      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6048    fi
6049    ;;
6050  esac
6051fi
6052
6053file_magic_cmd=$lt_cv_file_magic_cmd
6054deplibs_check_method=$lt_cv_deplibs_check_method
6055test -z "$deplibs_check_method" && deplibs_check_method=unknown
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078if test -n "$ac_tool_prefix"; then
6079  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6080set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6082printf %s "checking for $ac_word... " >&6; }
6083if test ${ac_cv_prog_DLLTOOL+y}
6084then :
6085  printf %s "(cached) " >&6
6086else $as_nop
6087  if test -n "$DLLTOOL"; then
6088  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6089else
6090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091for as_dir in $PATH
6092do
6093  IFS=$as_save_IFS
6094  case $as_dir in #(((
6095    '') as_dir=./ ;;
6096    */) ;;
6097    *) as_dir=$as_dir/ ;;
6098  esac
6099    for ac_exec_ext in '' $ac_executable_extensions; do
6100  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6101    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6102    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6103    break 2
6104  fi
6105done
6106  done
6107IFS=$as_save_IFS
6108
6109fi
6110fi
6111DLLTOOL=$ac_cv_prog_DLLTOOL
6112if test -n "$DLLTOOL"; then
6113  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6114printf "%s\n" "$DLLTOOL" >&6; }
6115else
6116  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6117printf "%s\n" "no" >&6; }
6118fi
6119
6120
6121fi
6122if test -z "$ac_cv_prog_DLLTOOL"; then
6123  ac_ct_DLLTOOL=$DLLTOOL
6124  # Extract the first word of "dlltool", so it can be a program name with args.
6125set dummy dlltool; ac_word=$2
6126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127printf %s "checking for $ac_word... " >&6; }
6128if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6129then :
6130  printf %s "(cached) " >&6
6131else $as_nop
6132  if test -n "$ac_ct_DLLTOOL"; then
6133  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6134else
6135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136for as_dir in $PATH
6137do
6138  IFS=$as_save_IFS
6139  case $as_dir in #(((
6140    '') as_dir=./ ;;
6141    */) ;;
6142    *) as_dir=$as_dir/ ;;
6143  esac
6144    for ac_exec_ext in '' $ac_executable_extensions; do
6145  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6146    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6147    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6148    break 2
6149  fi
6150done
6151  done
6152IFS=$as_save_IFS
6153
6154fi
6155fi
6156ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6157if test -n "$ac_ct_DLLTOOL"; then
6158  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6159printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6160else
6161  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6162printf "%s\n" "no" >&6; }
6163fi
6164
6165  if test "x$ac_ct_DLLTOOL" = x; then
6166    DLLTOOL="false"
6167  else
6168    case $cross_compiling:$ac_tool_warned in
6169yes:)
6170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6171printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6172ac_tool_warned=yes ;;
6173esac
6174    DLLTOOL=$ac_ct_DLLTOOL
6175  fi
6176else
6177  DLLTOOL="$ac_cv_prog_DLLTOOL"
6178fi
6179
6180test -z "$DLLTOOL" && DLLTOOL=dlltool
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6192printf %s "checking how to associate runtime and link libraries... " >&6; }
6193if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6194then :
6195  printf %s "(cached) " >&6
6196else $as_nop
6197  lt_cv_sharedlib_from_linklib_cmd='unknown'
6198
6199case $host_os in
6200cygwin* | mingw* | pw32* | cegcc*)
6201  # two different shell functions defined in ltmain.sh;
6202  # decide which one to use based on capabilities of $DLLTOOL
6203  case `$DLLTOOL --help 2>&1` in
6204  *--identify-strict*)
6205    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6206    ;;
6207  *)
6208    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6209    ;;
6210  esac
6211  ;;
6212*)
6213  # fallback: assume linklib IS sharedlib
6214  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6215  ;;
6216esac
6217
6218fi
6219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6220printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6221sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6222test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6223
6224
6225
6226
6227
6228
6229
6230
6231if test -n "$ac_tool_prefix"; then
6232  for ac_prog in ar
6233  do
6234    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6235set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6237printf %s "checking for $ac_word... " >&6; }
6238if test ${ac_cv_prog_AR+y}
6239then :
6240  printf %s "(cached) " >&6
6241else $as_nop
6242  if test -n "$AR"; then
6243  ac_cv_prog_AR="$AR" # Let the user override the test.
6244else
6245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246for as_dir in $PATH
6247do
6248  IFS=$as_save_IFS
6249  case $as_dir in #(((
6250    '') as_dir=./ ;;
6251    */) ;;
6252    *) as_dir=$as_dir/ ;;
6253  esac
6254    for ac_exec_ext in '' $ac_executable_extensions; do
6255  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6256    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6257    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6258    break 2
6259  fi
6260done
6261  done
6262IFS=$as_save_IFS
6263
6264fi
6265fi
6266AR=$ac_cv_prog_AR
6267if test -n "$AR"; then
6268  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6269printf "%s\n" "$AR" >&6; }
6270else
6271  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6272printf "%s\n" "no" >&6; }
6273fi
6274
6275
6276    test -n "$AR" && break
6277  done
6278fi
6279if test -z "$AR"; then
6280  ac_ct_AR=$AR
6281  for ac_prog in ar
6282do
6283  # Extract the first word of "$ac_prog", so it can be a program name with args.
6284set dummy $ac_prog; ac_word=$2
6285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6286printf %s "checking for $ac_word... " >&6; }
6287if test ${ac_cv_prog_ac_ct_AR+y}
6288then :
6289  printf %s "(cached) " >&6
6290else $as_nop
6291  if test -n "$ac_ct_AR"; then
6292  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6293else
6294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295for as_dir in $PATH
6296do
6297  IFS=$as_save_IFS
6298  case $as_dir in #(((
6299    '') as_dir=./ ;;
6300    */) ;;
6301    *) as_dir=$as_dir/ ;;
6302  esac
6303    for ac_exec_ext in '' $ac_executable_extensions; do
6304  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6305    ac_cv_prog_ac_ct_AR="$ac_prog"
6306    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6307    break 2
6308  fi
6309done
6310  done
6311IFS=$as_save_IFS
6312
6313fi
6314fi
6315ac_ct_AR=$ac_cv_prog_ac_ct_AR
6316if test -n "$ac_ct_AR"; then
6317  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6318printf "%s\n" "$ac_ct_AR" >&6; }
6319else
6320  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6321printf "%s\n" "no" >&6; }
6322fi
6323
6324
6325  test -n "$ac_ct_AR" && break
6326done
6327
6328  if test "x$ac_ct_AR" = x; then
6329    AR="false"
6330  else
6331    case $cross_compiling:$ac_tool_warned in
6332yes:)
6333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6334printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6335ac_tool_warned=yes ;;
6336esac
6337    AR=$ac_ct_AR
6338  fi
6339fi
6340
6341: ${AR=ar}
6342
6343
6344
6345
6346
6347
6348# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6349# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6350# higher priority because thats what people were doing historically (setting
6351# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6352# variable obsoleted/removed.
6353
6354test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6355lt_ar_flags=$AR_FLAGS
6356
6357
6358
6359
6360
6361
6362# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6363# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6364
6365
6366
6367
6368
6369
6370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6371printf %s "checking for archiver @FILE support... " >&6; }
6372if test ${lt_cv_ar_at_file+y}
6373then :
6374  printf %s "(cached) " >&6
6375else $as_nop
6376  lt_cv_ar_at_file=no
6377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6378/* end confdefs.h.  */
6379
6380int
6381main (void)
6382{
6383
6384  ;
6385  return 0;
6386}
6387_ACEOF
6388if ac_fn_c_try_compile "$LINENO"
6389then :
6390  echo conftest.$ac_objext > conftest.lst
6391      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6392      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6393  (eval $lt_ar_try) 2>&5
6394  ac_status=$?
6395  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6396  test $ac_status = 0; }
6397      if test 0 -eq "$ac_status"; then
6398	# Ensure the archiver fails upon bogus file names.
6399	rm -f conftest.$ac_objext libconftest.a
6400	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6401  (eval $lt_ar_try) 2>&5
6402  ac_status=$?
6403  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6404  test $ac_status = 0; }
6405	if test 0 -ne "$ac_status"; then
6406          lt_cv_ar_at_file=@
6407        fi
6408      fi
6409      rm -f conftest.* libconftest.a
6410
6411fi
6412rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6413
6414fi
6415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6416printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6417
6418if test no = "$lt_cv_ar_at_file"; then
6419  archiver_list_spec=
6420else
6421  archiver_list_spec=$lt_cv_ar_at_file
6422fi
6423
6424
6425
6426
6427
6428
6429
6430if test -n "$ac_tool_prefix"; then
6431  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6432set dummy ${ac_tool_prefix}strip; ac_word=$2
6433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434printf %s "checking for $ac_word... " >&6; }
6435if test ${ac_cv_prog_STRIP+y}
6436then :
6437  printf %s "(cached) " >&6
6438else $as_nop
6439  if test -n "$STRIP"; then
6440  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6441else
6442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443for as_dir in $PATH
6444do
6445  IFS=$as_save_IFS
6446  case $as_dir in #(((
6447    '') as_dir=./ ;;
6448    */) ;;
6449    *) as_dir=$as_dir/ ;;
6450  esac
6451    for ac_exec_ext in '' $ac_executable_extensions; do
6452  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6453    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6454    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6455    break 2
6456  fi
6457done
6458  done
6459IFS=$as_save_IFS
6460
6461fi
6462fi
6463STRIP=$ac_cv_prog_STRIP
6464if test -n "$STRIP"; then
6465  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6466printf "%s\n" "$STRIP" >&6; }
6467else
6468  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469printf "%s\n" "no" >&6; }
6470fi
6471
6472
6473fi
6474if test -z "$ac_cv_prog_STRIP"; then
6475  ac_ct_STRIP=$STRIP
6476  # Extract the first word of "strip", so it can be a program name with args.
6477set dummy strip; ac_word=$2
6478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6479printf %s "checking for $ac_word... " >&6; }
6480if test ${ac_cv_prog_ac_ct_STRIP+y}
6481then :
6482  printf %s "(cached) " >&6
6483else $as_nop
6484  if test -n "$ac_ct_STRIP"; then
6485  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6486else
6487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488for as_dir in $PATH
6489do
6490  IFS=$as_save_IFS
6491  case $as_dir in #(((
6492    '') as_dir=./ ;;
6493    */) ;;
6494    *) as_dir=$as_dir/ ;;
6495  esac
6496    for ac_exec_ext in '' $ac_executable_extensions; do
6497  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6498    ac_cv_prog_ac_ct_STRIP="strip"
6499    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6500    break 2
6501  fi
6502done
6503  done
6504IFS=$as_save_IFS
6505
6506fi
6507fi
6508ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6509if test -n "$ac_ct_STRIP"; then
6510  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6511printf "%s\n" "$ac_ct_STRIP" >&6; }
6512else
6513  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514printf "%s\n" "no" >&6; }
6515fi
6516
6517  if test "x$ac_ct_STRIP" = x; then
6518    STRIP=":"
6519  else
6520    case $cross_compiling:$ac_tool_warned in
6521yes:)
6522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6523printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6524ac_tool_warned=yes ;;
6525esac
6526    STRIP=$ac_ct_STRIP
6527  fi
6528else
6529  STRIP="$ac_cv_prog_STRIP"
6530fi
6531
6532test -z "$STRIP" && STRIP=:
6533
6534
6535
6536
6537
6538
6539if test -n "$ac_tool_prefix"; then
6540  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6541set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6543printf %s "checking for $ac_word... " >&6; }
6544if test ${ac_cv_prog_RANLIB+y}
6545then :
6546  printf %s "(cached) " >&6
6547else $as_nop
6548  if test -n "$RANLIB"; then
6549  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6550else
6551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552for as_dir in $PATH
6553do
6554  IFS=$as_save_IFS
6555  case $as_dir in #(((
6556    '') as_dir=./ ;;
6557    */) ;;
6558    *) as_dir=$as_dir/ ;;
6559  esac
6560    for ac_exec_ext in '' $ac_executable_extensions; do
6561  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6562    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6563    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6564    break 2
6565  fi
6566done
6567  done
6568IFS=$as_save_IFS
6569
6570fi
6571fi
6572RANLIB=$ac_cv_prog_RANLIB
6573if test -n "$RANLIB"; then
6574  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6575printf "%s\n" "$RANLIB" >&6; }
6576else
6577  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578printf "%s\n" "no" >&6; }
6579fi
6580
6581
6582fi
6583if test -z "$ac_cv_prog_RANLIB"; then
6584  ac_ct_RANLIB=$RANLIB
6585  # Extract the first word of "ranlib", so it can be a program name with args.
6586set dummy ranlib; ac_word=$2
6587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6588printf %s "checking for $ac_word... " >&6; }
6589if test ${ac_cv_prog_ac_ct_RANLIB+y}
6590then :
6591  printf %s "(cached) " >&6
6592else $as_nop
6593  if test -n "$ac_ct_RANLIB"; then
6594  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6595else
6596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597for as_dir in $PATH
6598do
6599  IFS=$as_save_IFS
6600  case $as_dir in #(((
6601    '') as_dir=./ ;;
6602    */) ;;
6603    *) as_dir=$as_dir/ ;;
6604  esac
6605    for ac_exec_ext in '' $ac_executable_extensions; do
6606  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6607    ac_cv_prog_ac_ct_RANLIB="ranlib"
6608    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6609    break 2
6610  fi
6611done
6612  done
6613IFS=$as_save_IFS
6614
6615fi
6616fi
6617ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6618if test -n "$ac_ct_RANLIB"; then
6619  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6620printf "%s\n" "$ac_ct_RANLIB" >&6; }
6621else
6622  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623printf "%s\n" "no" >&6; }
6624fi
6625
6626  if test "x$ac_ct_RANLIB" = x; then
6627    RANLIB=":"
6628  else
6629    case $cross_compiling:$ac_tool_warned in
6630yes:)
6631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6632printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6633ac_tool_warned=yes ;;
6634esac
6635    RANLIB=$ac_ct_RANLIB
6636  fi
6637else
6638  RANLIB="$ac_cv_prog_RANLIB"
6639fi
6640
6641test -z "$RANLIB" && RANLIB=:
6642
6643
6644
6645
6646
6647
6648# Determine commands to create old-style static archives.
6649old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6650old_postinstall_cmds='chmod 644 $oldlib'
6651old_postuninstall_cmds=
6652
6653if test -n "$RANLIB"; then
6654  case $host_os in
6655  bitrig* | openbsd*)
6656    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6657    ;;
6658  *)
6659    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6660    ;;
6661  esac
6662  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6663fi
6664
6665case $host_os in
6666  darwin*)
6667    lock_old_archive_extraction=yes ;;
6668  *)
6669    lock_old_archive_extraction=no ;;
6670esac
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710# If no C compiler was specified, use CC.
6711LTCC=${LTCC-"$CC"}
6712
6713# If no C compiler flags were specified, use CFLAGS.
6714LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6715
6716# Allow CC to be a program name with arguments.
6717compiler=$CC
6718
6719
6720# Check for command to grab the raw symbol name followed by C symbol from nm.
6721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6722printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6723if test ${lt_cv_sys_global_symbol_pipe+y}
6724then :
6725  printf %s "(cached) " >&6
6726else $as_nop
6727
6728# These are sane defaults that work on at least a few old systems.
6729# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6730
6731# Character class describing NM global symbol codes.
6732symcode='[BCDEGRST]'
6733
6734# Regexp to match symbols that can be accessed directly from C.
6735sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6736
6737# Define system-specific variables.
6738case $host_os in
6739aix*)
6740  symcode='[BCDT]'
6741  ;;
6742cygwin* | mingw* | pw32* | cegcc*)
6743  symcode='[ABCDGISTW]'
6744  ;;
6745hpux*)
6746  if test ia64 = "$host_cpu"; then
6747    symcode='[ABCDEGRST]'
6748  fi
6749  ;;
6750irix* | nonstopux*)
6751  symcode='[BCDEGRST]'
6752  ;;
6753osf*)
6754  symcode='[BCDEGQRST]'
6755  ;;
6756solaris*)
6757  symcode='[BDRT]'
6758  ;;
6759sco3.2v5*)
6760  symcode='[DT]'
6761  ;;
6762sysv4.2uw2*)
6763  symcode='[DT]'
6764  ;;
6765sysv5* | sco5v6* | unixware* | OpenUNIX*)
6766  symcode='[ABDT]'
6767  ;;
6768sysv4)
6769  symcode='[DFNSTU]'
6770  ;;
6771esac
6772
6773# If we're using GNU nm, then use its standard symbol codes.
6774case `$NM -V 2>&1` in
6775*GNU* | *'with BFD'*)
6776  symcode='[ABCDGIRSTW]' ;;
6777esac
6778
6779if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6780  # Gets list of data symbols to import.
6781  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6782  # Adjust the below global symbol transforms to fixup imported variables.
6783  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6784  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6785  lt_c_name_lib_hook="\
6786  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6787  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6788else
6789  # Disable hooks by default.
6790  lt_cv_sys_global_symbol_to_import=
6791  lt_cdecl_hook=
6792  lt_c_name_hook=
6793  lt_c_name_lib_hook=
6794fi
6795
6796# Transform an extracted symbol line into a proper C declaration.
6797# Some systems (esp. on ia64) link data and code symbols differently,
6798# so use this general approach.
6799lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6800$lt_cdecl_hook\
6801" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6802" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6803
6804# Transform an extracted symbol line into symbol name and symbol address
6805lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6806$lt_c_name_hook\
6807" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6808" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6809
6810# Transform an extracted symbol line into symbol name with lib prefix and
6811# symbol address.
6812lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6813$lt_c_name_lib_hook\
6814" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6815" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6816" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6817
6818# Handle CRLF in mingw tool chain
6819opt_cr=
6820case $build_os in
6821mingw*)
6822  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6823  ;;
6824esac
6825
6826# Try without a prefix underscore, then with it.
6827for ac_symprfx in "" "_"; do
6828
6829  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6830  symxfrm="\\1 $ac_symprfx\\2 \\2"
6831
6832  # Write the raw and C identifiers.
6833  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6834    # Fake it for dumpbin and say T for any non-static function,
6835    # D for any global variable and I for any imported variable.
6836    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6837    # which start with @ or ?.
6838    lt_cv_sys_global_symbol_pipe="$AWK '"\
6839"     {last_section=section; section=\$ 3};"\
6840"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6841"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6842"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6843"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6844"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6845"     \$ 0!~/External *\|/{next};"\
6846"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6847"     {if(hide[section]) next};"\
6848"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6849"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6850"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6851"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6852"     ' prfx=^$ac_symprfx"
6853  else
6854    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6855  fi
6856  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6857
6858  # Check to see that the pipe works correctly.
6859  pipe_works=no
6860
6861  rm -f conftest*
6862  cat > conftest.$ac_ext <<_LT_EOF
6863#ifdef __cplusplus
6864extern "C" {
6865#endif
6866char nm_test_var;
6867void nm_test_func(void);
6868void nm_test_func(void){}
6869#ifdef __cplusplus
6870}
6871#endif
6872int main(){nm_test_var='a';nm_test_func();return(0);}
6873_LT_EOF
6874
6875  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6876  (eval $ac_compile) 2>&5
6877  ac_status=$?
6878  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6879  test $ac_status = 0; }; then
6880    # Now try to grab the symbols.
6881    nlist=conftest.nm
6882    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6883  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6884  ac_status=$?
6885  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6886  test $ac_status = 0; } && test -s "$nlist"; then
6887      # Try sorting and uniquifying the output.
6888      if sort "$nlist" | uniq > "$nlist"T; then
6889	mv -f "$nlist"T "$nlist"
6890      else
6891	rm -f "$nlist"T
6892      fi
6893
6894      # Make sure that we snagged all the symbols we need.
6895      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6896	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6897	  cat <<_LT_EOF > conftest.$ac_ext
6898/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6899#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6900/* DATA imports from DLLs on WIN32 can't be const, because runtime
6901   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6902# define LT_DLSYM_CONST
6903#elif defined __osf__
6904/* This system does not cope well with relocations in const data.  */
6905# define LT_DLSYM_CONST
6906#else
6907# define LT_DLSYM_CONST const
6908#endif
6909
6910#ifdef __cplusplus
6911extern "C" {
6912#endif
6913
6914_LT_EOF
6915	  # Now generate the symbol file.
6916	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6917
6918	  cat <<_LT_EOF >> conftest.$ac_ext
6919
6920/* The mapping between symbol names and symbols.  */
6921LT_DLSYM_CONST struct {
6922  const char *name;
6923  void       *address;
6924}
6925lt__PROGRAM__LTX_preloaded_symbols[] =
6926{
6927  { "@PROGRAM@", (void *) 0 },
6928_LT_EOF
6929	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6930	  cat <<\_LT_EOF >> conftest.$ac_ext
6931  {0, (void *) 0}
6932};
6933
6934/* This works around a problem in FreeBSD linker */
6935#ifdef FREEBSD_WORKAROUND
6936static const void *lt_preloaded_setup() {
6937  return lt__PROGRAM__LTX_preloaded_symbols;
6938}
6939#endif
6940
6941#ifdef __cplusplus
6942}
6943#endif
6944_LT_EOF
6945	  # Now try linking the two files.
6946	  mv conftest.$ac_objext conftstm.$ac_objext
6947	  lt_globsym_save_LIBS=$LIBS
6948	  lt_globsym_save_CFLAGS=$CFLAGS
6949	  LIBS=conftstm.$ac_objext
6950	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6951	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6952  (eval $ac_link) 2>&5
6953  ac_status=$?
6954  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6955  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6956	    pipe_works=yes
6957	  fi
6958	  LIBS=$lt_globsym_save_LIBS
6959	  CFLAGS=$lt_globsym_save_CFLAGS
6960	else
6961	  echo "cannot find nm_test_func in $nlist" >&5
6962	fi
6963      else
6964	echo "cannot find nm_test_var in $nlist" >&5
6965      fi
6966    else
6967      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6968    fi
6969  else
6970    echo "$progname: failed program was:" >&5
6971    cat conftest.$ac_ext >&5
6972  fi
6973  rm -rf conftest* conftst*
6974
6975  # Do not use the global_symbol_pipe unless it works.
6976  if test yes = "$pipe_works"; then
6977    break
6978  else
6979    lt_cv_sys_global_symbol_pipe=
6980  fi
6981done
6982
6983fi
6984
6985if test -z "$lt_cv_sys_global_symbol_pipe"; then
6986  lt_cv_sys_global_symbol_to_cdecl=
6987fi
6988if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6989  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6990printf "%s\n" "failed" >&6; }
6991else
6992  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6993printf "%s\n" "ok" >&6; }
6994fi
6995
6996# Response file support.
6997if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6998  nm_file_list_spec='@'
6999elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7000  nm_file_list_spec='@'
7001fi
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7040printf %s "checking for sysroot... " >&6; }
7041
7042# Check whether --with-sysroot was given.
7043if test ${with_sysroot+y}
7044then :
7045  withval=$with_sysroot;
7046else $as_nop
7047  with_sysroot=no
7048fi
7049
7050
7051lt_sysroot=
7052case $with_sysroot in #(
7053 yes)
7054   if test yes = "$GCC"; then
7055     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7056   fi
7057   ;; #(
7058 /*)
7059   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7060   ;; #(
7061 no|'')
7062   ;; #(
7063 *)
7064   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7065printf "%s\n" "$with_sysroot" >&6; }
7066   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7067   ;;
7068esac
7069
7070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7071printf "%s\n" "${lt_sysroot:-no}" >&6; }
7072
7073
7074
7075
7076
7077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7078printf %s "checking for a working dd... " >&6; }
7079if test ${ac_cv_path_lt_DD+y}
7080then :
7081  printf %s "(cached) " >&6
7082else $as_nop
7083  printf 0123456789abcdef0123456789abcdef >conftest.i
7084cat conftest.i conftest.i >conftest2.i
7085: ${lt_DD:=$DD}
7086if test -z "$lt_DD"; then
7087  ac_path_lt_DD_found=false
7088  # Loop through the user's path and test for each of PROGNAME-LIST
7089  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090for as_dir in $PATH
7091do
7092  IFS=$as_save_IFS
7093  case $as_dir in #(((
7094    '') as_dir=./ ;;
7095    */) ;;
7096    *) as_dir=$as_dir/ ;;
7097  esac
7098    for ac_prog in dd
7099   do
7100    for ac_exec_ext in '' $ac_executable_extensions; do
7101      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7102      as_fn_executable_p "$ac_path_lt_DD" || continue
7103if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7104  cmp -s conftest.i conftest.out \
7105  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7106fi
7107      $ac_path_lt_DD_found && break 3
7108    done
7109  done
7110  done
7111IFS=$as_save_IFS
7112  if test -z "$ac_cv_path_lt_DD"; then
7113    :
7114  fi
7115else
7116  ac_cv_path_lt_DD=$lt_DD
7117fi
7118
7119rm -f conftest.i conftest2.i conftest.out
7120fi
7121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7122printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7123
7124
7125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7126printf %s "checking how to truncate binary pipes... " >&6; }
7127if test ${lt_cv_truncate_bin+y}
7128then :
7129  printf %s "(cached) " >&6
7130else $as_nop
7131  printf 0123456789abcdef0123456789abcdef >conftest.i
7132cat conftest.i conftest.i >conftest2.i
7133lt_cv_truncate_bin=
7134if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7135  cmp -s conftest.i conftest.out \
7136  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7137fi
7138rm -f conftest.i conftest2.i conftest.out
7139test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7140fi
7141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7142printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7143
7144
7145
7146
7147
7148
7149
7150# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7151func_cc_basename ()
7152{
7153    for cc_temp in $*""; do
7154      case $cc_temp in
7155        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7156        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7157        \-*) ;;
7158        *) break;;
7159      esac
7160    done
7161    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7162}
7163
7164# Check whether --enable-libtool-lock was given.
7165if test ${enable_libtool_lock+y}
7166then :
7167  enableval=$enable_libtool_lock;
7168fi
7169
7170test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7171
7172# Some flags need to be propagated to the compiler or linker for good
7173# libtool support.
7174case $host in
7175ia64-*-hpux*)
7176  # Find out what ABI is being produced by ac_compile, and set mode
7177  # options accordingly.
7178  echo 'int i;' > conftest.$ac_ext
7179  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7180  (eval $ac_compile) 2>&5
7181  ac_status=$?
7182  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7183  test $ac_status = 0; }; then
7184    case `$FILECMD conftest.$ac_objext` in
7185      *ELF-32*)
7186	HPUX_IA64_MODE=32
7187	;;
7188      *ELF-64*)
7189	HPUX_IA64_MODE=64
7190	;;
7191    esac
7192  fi
7193  rm -rf conftest*
7194  ;;
7195*-*-irix6*)
7196  # Find out what ABI is being produced by ac_compile, and set linker
7197  # options accordingly.
7198  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7199  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7200  (eval $ac_compile) 2>&5
7201  ac_status=$?
7202  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7203  test $ac_status = 0; }; then
7204    if test yes = "$lt_cv_prog_gnu_ld"; then
7205      case `$FILECMD conftest.$ac_objext` in
7206	*32-bit*)
7207	  LD="${LD-ld} -melf32bsmip"
7208	  ;;
7209	*N32*)
7210	  LD="${LD-ld} -melf32bmipn32"
7211	  ;;
7212	*64-bit*)
7213	  LD="${LD-ld} -melf64bmip"
7214	;;
7215      esac
7216    else
7217      case `$FILECMD conftest.$ac_objext` in
7218	*32-bit*)
7219	  LD="${LD-ld} -32"
7220	  ;;
7221	*N32*)
7222	  LD="${LD-ld} -n32"
7223	  ;;
7224	*64-bit*)
7225	  LD="${LD-ld} -64"
7226	  ;;
7227      esac
7228    fi
7229  fi
7230  rm -rf conftest*
7231  ;;
7232
7233mips64*-*linux*)
7234  # Find out what ABI is being produced by ac_compile, and set linker
7235  # options accordingly.
7236  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7237  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7238  (eval $ac_compile) 2>&5
7239  ac_status=$?
7240  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7241  test $ac_status = 0; }; then
7242    emul=elf
7243    case `$FILECMD conftest.$ac_objext` in
7244      *32-bit*)
7245	emul="${emul}32"
7246	;;
7247      *64-bit*)
7248	emul="${emul}64"
7249	;;
7250    esac
7251    case `$FILECMD conftest.$ac_objext` in
7252      *MSB*)
7253	emul="${emul}btsmip"
7254	;;
7255      *LSB*)
7256	emul="${emul}ltsmip"
7257	;;
7258    esac
7259    case `$FILECMD conftest.$ac_objext` in
7260      *N32*)
7261	emul="${emul}n32"
7262	;;
7263    esac
7264    LD="${LD-ld} -m $emul"
7265  fi
7266  rm -rf conftest*
7267  ;;
7268
7269x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7270s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7271  # Find out what ABI is being produced by ac_compile, and set linker
7272  # options accordingly.  Note that the listed cases only cover the
7273  # situations where additional linker options are needed (such as when
7274  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7275  # vice versa); the common cases where no linker options are needed do
7276  # not appear in the list.
7277  echo 'int i;' > conftest.$ac_ext
7278  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7279  (eval $ac_compile) 2>&5
7280  ac_status=$?
7281  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7282  test $ac_status = 0; }; then
7283    case `$FILECMD conftest.o` in
7284      *32-bit*)
7285	case $host in
7286	  x86_64-*kfreebsd*-gnu)
7287	    LD="${LD-ld} -m elf_i386_fbsd"
7288	    ;;
7289	  x86_64-*linux*)
7290	    case `$FILECMD conftest.o` in
7291	      *x86-64*)
7292		LD="${LD-ld} -m elf32_x86_64"
7293		;;
7294	      *)
7295		LD="${LD-ld} -m elf_i386"
7296		;;
7297	    esac
7298	    ;;
7299	  powerpc64le-*linux*)
7300	    LD="${LD-ld} -m elf32lppclinux"
7301	    ;;
7302	  powerpc64-*linux*)
7303	    LD="${LD-ld} -m elf32ppclinux"
7304	    ;;
7305	  s390x-*linux*)
7306	    LD="${LD-ld} -m elf_s390"
7307	    ;;
7308	  sparc64-*linux*)
7309	    LD="${LD-ld} -m elf32_sparc"
7310	    ;;
7311	esac
7312	;;
7313      *64-bit*)
7314	case $host in
7315	  x86_64-*kfreebsd*-gnu)
7316	    LD="${LD-ld} -m elf_x86_64_fbsd"
7317	    ;;
7318	  x86_64-*linux*)
7319	    LD="${LD-ld} -m elf_x86_64"
7320	    ;;
7321	  powerpcle-*linux*)
7322	    LD="${LD-ld} -m elf64lppc"
7323	    ;;
7324	  powerpc-*linux*)
7325	    LD="${LD-ld} -m elf64ppc"
7326	    ;;
7327	  s390*-*linux*|s390*-*tpf*)
7328	    LD="${LD-ld} -m elf64_s390"
7329	    ;;
7330	  sparc*-*linux*)
7331	    LD="${LD-ld} -m elf64_sparc"
7332	    ;;
7333	esac
7334	;;
7335    esac
7336  fi
7337  rm -rf conftest*
7338  ;;
7339
7340*-*-sco3.2v5*)
7341  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7342  SAVE_CFLAGS=$CFLAGS
7343  CFLAGS="$CFLAGS -belf"
7344  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7345printf %s "checking whether the C compiler needs -belf... " >&6; }
7346if test ${lt_cv_cc_needs_belf+y}
7347then :
7348  printf %s "(cached) " >&6
7349else $as_nop
7350  ac_ext=c
7351ac_cpp='$CPP $CPPFLAGS'
7352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7354ac_compiler_gnu=$ac_cv_c_compiler_gnu
7355
7356     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357/* end confdefs.h.  */
7358
7359int
7360main (void)
7361{
7362
7363  ;
7364  return 0;
7365}
7366_ACEOF
7367if ac_fn_c_try_link "$LINENO"
7368then :
7369  lt_cv_cc_needs_belf=yes
7370else $as_nop
7371  lt_cv_cc_needs_belf=no
7372fi
7373rm -f core conftest.err conftest.$ac_objext conftest.beam \
7374    conftest$ac_exeext conftest.$ac_ext
7375     ac_ext=c
7376ac_cpp='$CPP $CPPFLAGS'
7377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7379ac_compiler_gnu=$ac_cv_c_compiler_gnu
7380
7381fi
7382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7383printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7384  if test yes != "$lt_cv_cc_needs_belf"; then
7385    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7386    CFLAGS=$SAVE_CFLAGS
7387  fi
7388  ;;
7389*-*solaris*)
7390  # Find out what ABI is being produced by ac_compile, and set linker
7391  # options accordingly.
7392  echo 'int i;' > conftest.$ac_ext
7393  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7394  (eval $ac_compile) 2>&5
7395  ac_status=$?
7396  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7397  test $ac_status = 0; }; then
7398    case `$FILECMD conftest.o` in
7399    *64-bit*)
7400      case $lt_cv_prog_gnu_ld in
7401      yes*)
7402        case $host in
7403        i?86-*-solaris*|x86_64-*-solaris*)
7404          LD="${LD-ld} -m elf_x86_64"
7405          ;;
7406        sparc*-*-solaris*)
7407          LD="${LD-ld} -m elf64_sparc"
7408          ;;
7409        esac
7410        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7411        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7412          LD=${LD-ld}_sol2
7413        fi
7414        ;;
7415      *)
7416	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7417	  LD="${LD-ld} -64"
7418	fi
7419	;;
7420      esac
7421      ;;
7422    esac
7423  fi
7424  rm -rf conftest*
7425  ;;
7426esac
7427
7428need_locks=$enable_libtool_lock
7429
7430if test -n "$ac_tool_prefix"; then
7431  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7432set dummy ${ac_tool_prefix}mt; ac_word=$2
7433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7434printf %s "checking for $ac_word... " >&6; }
7435if test ${ac_cv_prog_MANIFEST_TOOL+y}
7436then :
7437  printf %s "(cached) " >&6
7438else $as_nop
7439  if test -n "$MANIFEST_TOOL"; then
7440  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7441else
7442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443for as_dir in $PATH
7444do
7445  IFS=$as_save_IFS
7446  case $as_dir in #(((
7447    '') as_dir=./ ;;
7448    */) ;;
7449    *) as_dir=$as_dir/ ;;
7450  esac
7451    for ac_exec_ext in '' $ac_executable_extensions; do
7452  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7453    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7454    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7455    break 2
7456  fi
7457done
7458  done
7459IFS=$as_save_IFS
7460
7461fi
7462fi
7463MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7464if test -n "$MANIFEST_TOOL"; then
7465  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7466printf "%s\n" "$MANIFEST_TOOL" >&6; }
7467else
7468  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469printf "%s\n" "no" >&6; }
7470fi
7471
7472
7473fi
7474if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7475  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7476  # Extract the first word of "mt", so it can be a program name with args.
7477set dummy mt; ac_word=$2
7478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7479printf %s "checking for $ac_word... " >&6; }
7480if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7481then :
7482  printf %s "(cached) " >&6
7483else $as_nop
7484  if test -n "$ac_ct_MANIFEST_TOOL"; then
7485  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7486else
7487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488for as_dir in $PATH
7489do
7490  IFS=$as_save_IFS
7491  case $as_dir in #(((
7492    '') as_dir=./ ;;
7493    */) ;;
7494    *) as_dir=$as_dir/ ;;
7495  esac
7496    for ac_exec_ext in '' $ac_executable_extensions; do
7497  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7498    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7499    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7500    break 2
7501  fi
7502done
7503  done
7504IFS=$as_save_IFS
7505
7506fi
7507fi
7508ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7509if test -n "$ac_ct_MANIFEST_TOOL"; then
7510  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7511printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7512else
7513  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514printf "%s\n" "no" >&6; }
7515fi
7516
7517  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7518    MANIFEST_TOOL=":"
7519  else
7520    case $cross_compiling:$ac_tool_warned in
7521yes:)
7522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7523printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7524ac_tool_warned=yes ;;
7525esac
7526    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7527  fi
7528else
7529  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7530fi
7531
7532test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7534printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7535if test ${lt_cv_path_mainfest_tool+y}
7536then :
7537  printf %s "(cached) " >&6
7538else $as_nop
7539  lt_cv_path_mainfest_tool=no
7540  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7541  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7542  cat conftest.err >&5
7543  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7544    lt_cv_path_mainfest_tool=yes
7545  fi
7546  rm -f conftest*
7547fi
7548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7549printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7550if test yes != "$lt_cv_path_mainfest_tool"; then
7551  MANIFEST_TOOL=:
7552fi
7553
7554
7555
7556
7557
7558
7559  case $host_os in
7560    rhapsody* | darwin*)
7561    if test -n "$ac_tool_prefix"; then
7562  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7563set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7565printf %s "checking for $ac_word... " >&6; }
7566if test ${ac_cv_prog_DSYMUTIL+y}
7567then :
7568  printf %s "(cached) " >&6
7569else $as_nop
7570  if test -n "$DSYMUTIL"; then
7571  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7572else
7573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574for as_dir in $PATH
7575do
7576  IFS=$as_save_IFS
7577  case $as_dir in #(((
7578    '') as_dir=./ ;;
7579    */) ;;
7580    *) as_dir=$as_dir/ ;;
7581  esac
7582    for ac_exec_ext in '' $ac_executable_extensions; do
7583  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7584    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7585    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7586    break 2
7587  fi
7588done
7589  done
7590IFS=$as_save_IFS
7591
7592fi
7593fi
7594DSYMUTIL=$ac_cv_prog_DSYMUTIL
7595if test -n "$DSYMUTIL"; then
7596  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7597printf "%s\n" "$DSYMUTIL" >&6; }
7598else
7599  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7600printf "%s\n" "no" >&6; }
7601fi
7602
7603
7604fi
7605if test -z "$ac_cv_prog_DSYMUTIL"; then
7606  ac_ct_DSYMUTIL=$DSYMUTIL
7607  # Extract the first word of "dsymutil", so it can be a program name with args.
7608set dummy dsymutil; ac_word=$2
7609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7610printf %s "checking for $ac_word... " >&6; }
7611if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7612then :
7613  printf %s "(cached) " >&6
7614else $as_nop
7615  if test -n "$ac_ct_DSYMUTIL"; then
7616  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7617else
7618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619for as_dir in $PATH
7620do
7621  IFS=$as_save_IFS
7622  case $as_dir in #(((
7623    '') as_dir=./ ;;
7624    */) ;;
7625    *) as_dir=$as_dir/ ;;
7626  esac
7627    for ac_exec_ext in '' $ac_executable_extensions; do
7628  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7629    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7630    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7631    break 2
7632  fi
7633done
7634  done
7635IFS=$as_save_IFS
7636
7637fi
7638fi
7639ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7640if test -n "$ac_ct_DSYMUTIL"; then
7641  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7642printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7643else
7644  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645printf "%s\n" "no" >&6; }
7646fi
7647
7648  if test "x$ac_ct_DSYMUTIL" = x; then
7649    DSYMUTIL=":"
7650  else
7651    case $cross_compiling:$ac_tool_warned in
7652yes:)
7653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7654printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7655ac_tool_warned=yes ;;
7656esac
7657    DSYMUTIL=$ac_ct_DSYMUTIL
7658  fi
7659else
7660  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7661fi
7662
7663    if test -n "$ac_tool_prefix"; then
7664  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7665set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7667printf %s "checking for $ac_word... " >&6; }
7668if test ${ac_cv_prog_NMEDIT+y}
7669then :
7670  printf %s "(cached) " >&6
7671else $as_nop
7672  if test -n "$NMEDIT"; then
7673  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7674else
7675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676for as_dir in $PATH
7677do
7678  IFS=$as_save_IFS
7679  case $as_dir in #(((
7680    '') as_dir=./ ;;
7681    */) ;;
7682    *) as_dir=$as_dir/ ;;
7683  esac
7684    for ac_exec_ext in '' $ac_executable_extensions; do
7685  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7686    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7687    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7688    break 2
7689  fi
7690done
7691  done
7692IFS=$as_save_IFS
7693
7694fi
7695fi
7696NMEDIT=$ac_cv_prog_NMEDIT
7697if test -n "$NMEDIT"; then
7698  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7699printf "%s\n" "$NMEDIT" >&6; }
7700else
7701  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702printf "%s\n" "no" >&6; }
7703fi
7704
7705
7706fi
7707if test -z "$ac_cv_prog_NMEDIT"; then
7708  ac_ct_NMEDIT=$NMEDIT
7709  # Extract the first word of "nmedit", so it can be a program name with args.
7710set dummy nmedit; ac_word=$2
7711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712printf %s "checking for $ac_word... " >&6; }
7713if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7714then :
7715  printf %s "(cached) " >&6
7716else $as_nop
7717  if test -n "$ac_ct_NMEDIT"; then
7718  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7719else
7720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721for as_dir in $PATH
7722do
7723  IFS=$as_save_IFS
7724  case $as_dir in #(((
7725    '') as_dir=./ ;;
7726    */) ;;
7727    *) as_dir=$as_dir/ ;;
7728  esac
7729    for ac_exec_ext in '' $ac_executable_extensions; do
7730  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7731    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7732    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7733    break 2
7734  fi
7735done
7736  done
7737IFS=$as_save_IFS
7738
7739fi
7740fi
7741ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7742if test -n "$ac_ct_NMEDIT"; then
7743  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7744printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7745else
7746  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747printf "%s\n" "no" >&6; }
7748fi
7749
7750  if test "x$ac_ct_NMEDIT" = x; then
7751    NMEDIT=":"
7752  else
7753    case $cross_compiling:$ac_tool_warned in
7754yes:)
7755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7756printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7757ac_tool_warned=yes ;;
7758esac
7759    NMEDIT=$ac_ct_NMEDIT
7760  fi
7761else
7762  NMEDIT="$ac_cv_prog_NMEDIT"
7763fi
7764
7765    if test -n "$ac_tool_prefix"; then
7766  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7767set dummy ${ac_tool_prefix}lipo; ac_word=$2
7768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7769printf %s "checking for $ac_word... " >&6; }
7770if test ${ac_cv_prog_LIPO+y}
7771then :
7772  printf %s "(cached) " >&6
7773else $as_nop
7774  if test -n "$LIPO"; then
7775  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7776else
7777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778for as_dir in $PATH
7779do
7780  IFS=$as_save_IFS
7781  case $as_dir in #(((
7782    '') as_dir=./ ;;
7783    */) ;;
7784    *) as_dir=$as_dir/ ;;
7785  esac
7786    for ac_exec_ext in '' $ac_executable_extensions; do
7787  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7788    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7789    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7790    break 2
7791  fi
7792done
7793  done
7794IFS=$as_save_IFS
7795
7796fi
7797fi
7798LIPO=$ac_cv_prog_LIPO
7799if test -n "$LIPO"; then
7800  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7801printf "%s\n" "$LIPO" >&6; }
7802else
7803  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804printf "%s\n" "no" >&6; }
7805fi
7806
7807
7808fi
7809if test -z "$ac_cv_prog_LIPO"; then
7810  ac_ct_LIPO=$LIPO
7811  # Extract the first word of "lipo", so it can be a program name with args.
7812set dummy lipo; ac_word=$2
7813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814printf %s "checking for $ac_word... " >&6; }
7815if test ${ac_cv_prog_ac_ct_LIPO+y}
7816then :
7817  printf %s "(cached) " >&6
7818else $as_nop
7819  if test -n "$ac_ct_LIPO"; then
7820  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7821else
7822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823for as_dir in $PATH
7824do
7825  IFS=$as_save_IFS
7826  case $as_dir in #(((
7827    '') as_dir=./ ;;
7828    */) ;;
7829    *) as_dir=$as_dir/ ;;
7830  esac
7831    for ac_exec_ext in '' $ac_executable_extensions; do
7832  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7833    ac_cv_prog_ac_ct_LIPO="lipo"
7834    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7835    break 2
7836  fi
7837done
7838  done
7839IFS=$as_save_IFS
7840
7841fi
7842fi
7843ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7844if test -n "$ac_ct_LIPO"; then
7845  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7846printf "%s\n" "$ac_ct_LIPO" >&6; }
7847else
7848  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849printf "%s\n" "no" >&6; }
7850fi
7851
7852  if test "x$ac_ct_LIPO" = x; then
7853    LIPO=":"
7854  else
7855    case $cross_compiling:$ac_tool_warned in
7856yes:)
7857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7858printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7859ac_tool_warned=yes ;;
7860esac
7861    LIPO=$ac_ct_LIPO
7862  fi
7863else
7864  LIPO="$ac_cv_prog_LIPO"
7865fi
7866
7867    if test -n "$ac_tool_prefix"; then
7868  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7869set dummy ${ac_tool_prefix}otool; ac_word=$2
7870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7871printf %s "checking for $ac_word... " >&6; }
7872if test ${ac_cv_prog_OTOOL+y}
7873then :
7874  printf %s "(cached) " >&6
7875else $as_nop
7876  if test -n "$OTOOL"; then
7877  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7878else
7879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880for as_dir in $PATH
7881do
7882  IFS=$as_save_IFS
7883  case $as_dir in #(((
7884    '') as_dir=./ ;;
7885    */) ;;
7886    *) as_dir=$as_dir/ ;;
7887  esac
7888    for ac_exec_ext in '' $ac_executable_extensions; do
7889  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7890    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7891    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7892    break 2
7893  fi
7894done
7895  done
7896IFS=$as_save_IFS
7897
7898fi
7899fi
7900OTOOL=$ac_cv_prog_OTOOL
7901if test -n "$OTOOL"; then
7902  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7903printf "%s\n" "$OTOOL" >&6; }
7904else
7905  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7906printf "%s\n" "no" >&6; }
7907fi
7908
7909
7910fi
7911if test -z "$ac_cv_prog_OTOOL"; then
7912  ac_ct_OTOOL=$OTOOL
7913  # Extract the first word of "otool", so it can be a program name with args.
7914set dummy otool; ac_word=$2
7915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7916printf %s "checking for $ac_word... " >&6; }
7917if test ${ac_cv_prog_ac_ct_OTOOL+y}
7918then :
7919  printf %s "(cached) " >&6
7920else $as_nop
7921  if test -n "$ac_ct_OTOOL"; then
7922  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7923else
7924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925for as_dir in $PATH
7926do
7927  IFS=$as_save_IFS
7928  case $as_dir in #(((
7929    '') as_dir=./ ;;
7930    */) ;;
7931    *) as_dir=$as_dir/ ;;
7932  esac
7933    for ac_exec_ext in '' $ac_executable_extensions; do
7934  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7935    ac_cv_prog_ac_ct_OTOOL="otool"
7936    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7937    break 2
7938  fi
7939done
7940  done
7941IFS=$as_save_IFS
7942
7943fi
7944fi
7945ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7946if test -n "$ac_ct_OTOOL"; then
7947  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7948printf "%s\n" "$ac_ct_OTOOL" >&6; }
7949else
7950  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7951printf "%s\n" "no" >&6; }
7952fi
7953
7954  if test "x$ac_ct_OTOOL" = x; then
7955    OTOOL=":"
7956  else
7957    case $cross_compiling:$ac_tool_warned in
7958yes:)
7959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7960printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7961ac_tool_warned=yes ;;
7962esac
7963    OTOOL=$ac_ct_OTOOL
7964  fi
7965else
7966  OTOOL="$ac_cv_prog_OTOOL"
7967fi
7968
7969    if test -n "$ac_tool_prefix"; then
7970  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7971set dummy ${ac_tool_prefix}otool64; ac_word=$2
7972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973printf %s "checking for $ac_word... " >&6; }
7974if test ${ac_cv_prog_OTOOL64+y}
7975then :
7976  printf %s "(cached) " >&6
7977else $as_nop
7978  if test -n "$OTOOL64"; then
7979  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7980else
7981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982for as_dir in $PATH
7983do
7984  IFS=$as_save_IFS
7985  case $as_dir in #(((
7986    '') as_dir=./ ;;
7987    */) ;;
7988    *) as_dir=$as_dir/ ;;
7989  esac
7990    for ac_exec_ext in '' $ac_executable_extensions; do
7991  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7992    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7993    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7994    break 2
7995  fi
7996done
7997  done
7998IFS=$as_save_IFS
7999
8000fi
8001fi
8002OTOOL64=$ac_cv_prog_OTOOL64
8003if test -n "$OTOOL64"; then
8004  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8005printf "%s\n" "$OTOOL64" >&6; }
8006else
8007  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008printf "%s\n" "no" >&6; }
8009fi
8010
8011
8012fi
8013if test -z "$ac_cv_prog_OTOOL64"; then
8014  ac_ct_OTOOL64=$OTOOL64
8015  # Extract the first word of "otool64", so it can be a program name with args.
8016set dummy otool64; ac_word=$2
8017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018printf %s "checking for $ac_word... " >&6; }
8019if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8020then :
8021  printf %s "(cached) " >&6
8022else $as_nop
8023  if test -n "$ac_ct_OTOOL64"; then
8024  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8025else
8026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027for as_dir in $PATH
8028do
8029  IFS=$as_save_IFS
8030  case $as_dir in #(((
8031    '') as_dir=./ ;;
8032    */) ;;
8033    *) as_dir=$as_dir/ ;;
8034  esac
8035    for ac_exec_ext in '' $ac_executable_extensions; do
8036  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8037    ac_cv_prog_ac_ct_OTOOL64="otool64"
8038    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8039    break 2
8040  fi
8041done
8042  done
8043IFS=$as_save_IFS
8044
8045fi
8046fi
8047ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8048if test -n "$ac_ct_OTOOL64"; then
8049  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8050printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8051else
8052  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053printf "%s\n" "no" >&6; }
8054fi
8055
8056  if test "x$ac_ct_OTOOL64" = x; then
8057    OTOOL64=":"
8058  else
8059    case $cross_compiling:$ac_tool_warned in
8060yes:)
8061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8062printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8063ac_tool_warned=yes ;;
8064esac
8065    OTOOL64=$ac_ct_OTOOL64
8066  fi
8067else
8068  OTOOL64="$ac_cv_prog_OTOOL64"
8069fi
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8098printf %s "checking for -single_module linker flag... " >&6; }
8099if test ${lt_cv_apple_cc_single_mod+y}
8100then :
8101  printf %s "(cached) " >&6
8102else $as_nop
8103  lt_cv_apple_cc_single_mod=no
8104      if test -z "$LT_MULTI_MODULE"; then
8105	# By default we will add the -single_module flag. You can override
8106	# by either setting the environment variable LT_MULTI_MODULE
8107	# non-empty at configure time, or by adding -multi_module to the
8108	# link flags.
8109	rm -rf libconftest.dylib*
8110	echo "int foo(void){return 1;}" > conftest.c
8111	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8112-dynamiclib -Wl,-single_module conftest.c" >&5
8113	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8114	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8115        _lt_result=$?
8116	# If there is a non-empty error log, and "single_module"
8117	# appears in it, assume the flag caused a linker warning
8118        if test -s conftest.err && $GREP single_module conftest.err; then
8119	  cat conftest.err >&5
8120	# Otherwise, if the output was created with a 0 exit code from
8121	# the compiler, it worked.
8122	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8123	  lt_cv_apple_cc_single_mod=yes
8124	else
8125	  cat conftest.err >&5
8126	fi
8127	rm -rf libconftest.dylib*
8128	rm -f conftest.*
8129      fi
8130fi
8131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8132printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8133
8134    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8135printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8136if test ${lt_cv_ld_exported_symbols_list+y}
8137then :
8138  printf %s "(cached) " >&6
8139else $as_nop
8140  lt_cv_ld_exported_symbols_list=no
8141      save_LDFLAGS=$LDFLAGS
8142      echo "_main" > conftest.sym
8143      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8144      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145/* end confdefs.h.  */
8146
8147int
8148main (void)
8149{
8150
8151  ;
8152  return 0;
8153}
8154_ACEOF
8155if ac_fn_c_try_link "$LINENO"
8156then :
8157  lt_cv_ld_exported_symbols_list=yes
8158else $as_nop
8159  lt_cv_ld_exported_symbols_list=no
8160fi
8161rm -f core conftest.err conftest.$ac_objext conftest.beam \
8162    conftest$ac_exeext conftest.$ac_ext
8163	LDFLAGS=$save_LDFLAGS
8164
8165fi
8166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8167printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8168
8169    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8170printf %s "checking for -force_load linker flag... " >&6; }
8171if test ${lt_cv_ld_force_load+y}
8172then :
8173  printf %s "(cached) " >&6
8174else $as_nop
8175  lt_cv_ld_force_load=no
8176      cat > conftest.c << _LT_EOF
8177int forced_loaded() { return 2;}
8178_LT_EOF
8179      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8180      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8181      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8182      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8183      echo "$RANLIB libconftest.a" >&5
8184      $RANLIB libconftest.a 2>&5
8185      cat > conftest.c << _LT_EOF
8186int main() { return 0;}
8187_LT_EOF
8188      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8189      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8190      _lt_result=$?
8191      if test -s conftest.err && $GREP force_load conftest.err; then
8192	cat conftest.err >&5
8193      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8194	lt_cv_ld_force_load=yes
8195      else
8196	cat conftest.err >&5
8197      fi
8198        rm -f conftest.err libconftest.a conftest conftest.c
8199        rm -rf conftest.dSYM
8200
8201fi
8202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8203printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8204    case $host_os in
8205    rhapsody* | darwin1.[012])
8206      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8207    darwin1.*)
8208      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8209    darwin*)
8210      case $MACOSX_DEPLOYMENT_TARGET,$host in
8211        10.[012],*|,*powerpc*-darwin[5-8]*)
8212          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8213        *)
8214          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8215      esac
8216    ;;
8217  esac
8218    if test yes = "$lt_cv_apple_cc_single_mod"; then
8219      _lt_dar_single_mod='$single_module'
8220    fi
8221    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8222      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8223    else
8224      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8225    fi
8226    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8227      _lt_dsymutil='~$DSYMUTIL $lib || :'
8228    else
8229      _lt_dsymutil=
8230    fi
8231    ;;
8232  esac
8233
8234# func_munge_path_list VARIABLE PATH
8235# -----------------------------------
8236# VARIABLE is name of variable containing _space_ separated list of
8237# directories to be munged by the contents of PATH, which is string
8238# having a format:
8239# "DIR[:DIR]:"
8240#       string "DIR[ DIR]" will be prepended to VARIABLE
8241# ":DIR[:DIR]"
8242#       string "DIR[ DIR]" will be appended to VARIABLE
8243# "DIRP[:DIRP]::[DIRA:]DIRA"
8244#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8245#       "DIRA[ DIRA]" will be appended to VARIABLE
8246# "DIR[:DIR]"
8247#       VARIABLE will be replaced by "DIR[ DIR]"
8248func_munge_path_list ()
8249{
8250    case x$2 in
8251    x)
8252        ;;
8253    *:)
8254        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8255        ;;
8256    x:*)
8257        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8258        ;;
8259    *::*)
8260        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8261        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8262        ;;
8263    *)
8264        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8265        ;;
8266    esac
8267}
8268
8269ac_header= ac_cache=
8270for ac_item in $ac_header_c_list
8271do
8272  if test $ac_cache; then
8273    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8274    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8275      printf "%s\n" "#define $ac_item 1" >> confdefs.h
8276    fi
8277    ac_header= ac_cache=
8278  elif test $ac_header; then
8279    ac_cache=$ac_item
8280  else
8281    ac_header=$ac_item
8282  fi
8283done
8284
8285
8286
8287
8288
8289
8290
8291
8292if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8293then :
8294
8295printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8296
8297fi
8298ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8299"
8300if test "x$ac_cv_header_dlfcn_h" = xyes
8301then :
8302  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8303
8304fi
8305
8306
8307
8308
8309
8310# Set options
8311
8312
8313
8314        enable_dlopen=no
8315
8316
8317  enable_win32_dll=no
8318
8319
8320            # Check whether --enable-shared was given.
8321if test ${enable_shared+y}
8322then :
8323  enableval=$enable_shared; p=${PACKAGE-default}
8324    case $enableval in
8325    yes) enable_shared=yes ;;
8326    no) enable_shared=no ;;
8327    *)
8328      enable_shared=no
8329      # Look at the argument we got.  We use all the common list separators.
8330      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8331      for pkg in $enableval; do
8332	IFS=$lt_save_ifs
8333	if test "X$pkg" = "X$p"; then
8334	  enable_shared=yes
8335	fi
8336      done
8337      IFS=$lt_save_ifs
8338      ;;
8339    esac
8340else $as_nop
8341  enable_shared=yes
8342fi
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352  # Check whether --enable-static was given.
8353if test ${enable_static+y}
8354then :
8355  enableval=$enable_static; p=${PACKAGE-default}
8356    case $enableval in
8357    yes) enable_static=yes ;;
8358    no) enable_static=no ;;
8359    *)
8360     enable_static=no
8361      # Look at the argument we got.  We use all the common list separators.
8362      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8363      for pkg in $enableval; do
8364	IFS=$lt_save_ifs
8365	if test "X$pkg" = "X$p"; then
8366	  enable_static=yes
8367	fi
8368      done
8369      IFS=$lt_save_ifs
8370      ;;
8371    esac
8372else $as_nop
8373  enable_static=yes
8374fi
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385# Check whether --with-pic was given.
8386if test ${with_pic+y}
8387then :
8388  withval=$with_pic; lt_p=${PACKAGE-default}
8389    case $withval in
8390    yes|no) pic_mode=$withval ;;
8391    *)
8392      pic_mode=default
8393      # Look at the argument we got.  We use all the common list separators.
8394      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8395      for lt_pkg in $withval; do
8396	IFS=$lt_save_ifs
8397	if test "X$lt_pkg" = "X$lt_p"; then
8398	  pic_mode=yes
8399	fi
8400      done
8401      IFS=$lt_save_ifs
8402      ;;
8403    esac
8404else $as_nop
8405  pic_mode=default
8406fi
8407
8408
8409
8410
8411
8412
8413
8414
8415  # Check whether --enable-fast-install was given.
8416if test ${enable_fast_install+y}
8417then :
8418  enableval=$enable_fast_install; p=${PACKAGE-default}
8419    case $enableval in
8420    yes) enable_fast_install=yes ;;
8421    no) enable_fast_install=no ;;
8422    *)
8423      enable_fast_install=no
8424      # Look at the argument we got.  We use all the common list separators.
8425      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8426      for pkg in $enableval; do
8427	IFS=$lt_save_ifs
8428	if test "X$pkg" = "X$p"; then
8429	  enable_fast_install=yes
8430	fi
8431      done
8432      IFS=$lt_save_ifs
8433      ;;
8434    esac
8435else $as_nop
8436  enable_fast_install=yes
8437fi
8438
8439
8440
8441
8442
8443
8444
8445
8446  shared_archive_member_spec=
8447case $host,$enable_shared in
8448power*-*-aix[5-9]*,yes)
8449  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8450printf %s "checking which variant of shared library versioning to provide... " >&6; }
8451
8452# Check whether --with-aix-soname was given.
8453if test ${with_aix_soname+y}
8454then :
8455  withval=$with_aix_soname; case $withval in
8456    aix|svr4|both)
8457      ;;
8458    *)
8459      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8460      ;;
8461    esac
8462    lt_cv_with_aix_soname=$with_aix_soname
8463else $as_nop
8464  if test ${lt_cv_with_aix_soname+y}
8465then :
8466  printf %s "(cached) " >&6
8467else $as_nop
8468  lt_cv_with_aix_soname=aix
8469fi
8470
8471    with_aix_soname=$lt_cv_with_aix_soname
8472fi
8473
8474  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8475printf "%s\n" "$with_aix_soname" >&6; }
8476  if test aix != "$with_aix_soname"; then
8477    # For the AIX way of multilib, we name the shared archive member
8478    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8479    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8480    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8481    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8482    if test 64 = "${OBJECT_MODE-32}"; then
8483      shared_archive_member_spec=shr_64
8484    else
8485      shared_archive_member_spec=shr
8486    fi
8487  fi
8488  ;;
8489*)
8490  with_aix_soname=aix
8491  ;;
8492esac
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503# This can be used to rebuild libtool when needed
8504LIBTOOL_DEPS=$ltmain
8505
8506# Always use our own libtool.
8507LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538test -z "$LN_S" && LN_S="ln -s"
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553if test -n "${ZSH_VERSION+set}"; then
8554   setopt NO_GLOB_SUBST
8555fi
8556
8557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8558printf %s "checking for objdir... " >&6; }
8559if test ${lt_cv_objdir+y}
8560then :
8561  printf %s "(cached) " >&6
8562else $as_nop
8563  rm -f .libs 2>/dev/null
8564mkdir .libs 2>/dev/null
8565if test -d .libs; then
8566  lt_cv_objdir=.libs
8567else
8568  # MS-DOS does not allow filenames that begin with a dot.
8569  lt_cv_objdir=_libs
8570fi
8571rmdir .libs 2>/dev/null
8572fi
8573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8574printf "%s\n" "$lt_cv_objdir" >&6; }
8575objdir=$lt_cv_objdir
8576
8577
8578
8579
8580
8581printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8582
8583
8584
8585
8586case $host_os in
8587aix3*)
8588  # AIX sometimes has problems with the GCC collect2 program.  For some
8589  # reason, if we set the COLLECT_NAMES environment variable, the problems
8590  # vanish in a puff of smoke.
8591  if test set != "${COLLECT_NAMES+set}"; then
8592    COLLECT_NAMES=
8593    export COLLECT_NAMES
8594  fi
8595  ;;
8596esac
8597
8598# Global variables:
8599ofile=libtool
8600can_build_shared=yes
8601
8602# All known linkers require a '.a' archive for static linking (except MSVC and
8603# ICC, which need '.lib').
8604libext=a
8605
8606with_gnu_ld=$lt_cv_prog_gnu_ld
8607
8608old_CC=$CC
8609old_CFLAGS=$CFLAGS
8610
8611# Set sane defaults for various variables
8612test -z "$CC" && CC=cc
8613test -z "$LTCC" && LTCC=$CC
8614test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8615test -z "$LD" && LD=ld
8616test -z "$ac_objext" && ac_objext=o
8617
8618func_cc_basename $compiler
8619cc_basename=$func_cc_basename_result
8620
8621
8622# Only perform the check for file, if the check method requires it
8623test -z "$MAGIC_CMD" && MAGIC_CMD=file
8624case $deplibs_check_method in
8625file_magic*)
8626  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8627    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8628printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8629if test ${lt_cv_path_MAGIC_CMD+y}
8630then :
8631  printf %s "(cached) " >&6
8632else $as_nop
8633  case $MAGIC_CMD in
8634[\\/*] |  ?:[\\/]*)
8635  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8636  ;;
8637*)
8638  lt_save_MAGIC_CMD=$MAGIC_CMD
8639  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8640  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8641  for ac_dir in $ac_dummy; do
8642    IFS=$lt_save_ifs
8643    test -z "$ac_dir" && ac_dir=.
8644    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8645      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8646      if test -n "$file_magic_test_file"; then
8647	case $deplibs_check_method in
8648	"file_magic "*)
8649	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8650	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8651	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8652	    $EGREP "$file_magic_regex" > /dev/null; then
8653	    :
8654	  else
8655	    cat <<_LT_EOF 1>&2
8656
8657*** Warning: the command libtool uses to detect shared libraries,
8658*** $file_magic_cmd, produces output that libtool cannot recognize.
8659*** The result is that libtool may fail to recognize shared libraries
8660*** as such.  This will affect the creation of libtool libraries that
8661*** depend on shared libraries, but programs linked with such libtool
8662*** libraries will work regardless of this problem.  Nevertheless, you
8663*** may want to report the problem to your system manager and/or to
8664*** bug-libtool@gnu.org
8665
8666_LT_EOF
8667	  fi ;;
8668	esac
8669      fi
8670      break
8671    fi
8672  done
8673  IFS=$lt_save_ifs
8674  MAGIC_CMD=$lt_save_MAGIC_CMD
8675  ;;
8676esac
8677fi
8678
8679MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8680if test -n "$MAGIC_CMD"; then
8681  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8682printf "%s\n" "$MAGIC_CMD" >&6; }
8683else
8684  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8685printf "%s\n" "no" >&6; }
8686fi
8687
8688
8689
8690
8691
8692if test -z "$lt_cv_path_MAGIC_CMD"; then
8693  if test -n "$ac_tool_prefix"; then
8694    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8695printf %s "checking for file... " >&6; }
8696if test ${lt_cv_path_MAGIC_CMD+y}
8697then :
8698  printf %s "(cached) " >&6
8699else $as_nop
8700  case $MAGIC_CMD in
8701[\\/*] |  ?:[\\/]*)
8702  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8703  ;;
8704*)
8705  lt_save_MAGIC_CMD=$MAGIC_CMD
8706  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8707  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8708  for ac_dir in $ac_dummy; do
8709    IFS=$lt_save_ifs
8710    test -z "$ac_dir" && ac_dir=.
8711    if test -f "$ac_dir/file"; then
8712      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8713      if test -n "$file_magic_test_file"; then
8714	case $deplibs_check_method in
8715	"file_magic "*)
8716	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8717	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8718	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8719	    $EGREP "$file_magic_regex" > /dev/null; then
8720	    :
8721	  else
8722	    cat <<_LT_EOF 1>&2
8723
8724*** Warning: the command libtool uses to detect shared libraries,
8725*** $file_magic_cmd, produces output that libtool cannot recognize.
8726*** The result is that libtool may fail to recognize shared libraries
8727*** as such.  This will affect the creation of libtool libraries that
8728*** depend on shared libraries, but programs linked with such libtool
8729*** libraries will work regardless of this problem.  Nevertheless, you
8730*** may want to report the problem to your system manager and/or to
8731*** bug-libtool@gnu.org
8732
8733_LT_EOF
8734	  fi ;;
8735	esac
8736      fi
8737      break
8738    fi
8739  done
8740  IFS=$lt_save_ifs
8741  MAGIC_CMD=$lt_save_MAGIC_CMD
8742  ;;
8743esac
8744fi
8745
8746MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8747if test -n "$MAGIC_CMD"; then
8748  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8749printf "%s\n" "$MAGIC_CMD" >&6; }
8750else
8751  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8752printf "%s\n" "no" >&6; }
8753fi
8754
8755
8756  else
8757    MAGIC_CMD=:
8758  fi
8759fi
8760
8761  fi
8762  ;;
8763esac
8764
8765# Use C for the default configuration in the libtool script
8766
8767lt_save_CC=$CC
8768ac_ext=c
8769ac_cpp='$CPP $CPPFLAGS'
8770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8772ac_compiler_gnu=$ac_cv_c_compiler_gnu
8773
8774
8775# Source file extension for C test sources.
8776ac_ext=c
8777
8778# Object file extension for compiled C test sources.
8779objext=o
8780objext=$objext
8781
8782# Code to be used in simple compile tests
8783lt_simple_compile_test_code="int some_variable = 0;"
8784
8785# Code to be used in simple link tests
8786lt_simple_link_test_code='int main(){return(0);}'
8787
8788
8789
8790
8791
8792
8793
8794# If no C compiler was specified, use CC.
8795LTCC=${LTCC-"$CC"}
8796
8797# If no C compiler flags were specified, use CFLAGS.
8798LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8799
8800# Allow CC to be a program name with arguments.
8801compiler=$CC
8802
8803# Save the default compiler, since it gets overwritten when the other
8804# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8805compiler_DEFAULT=$CC
8806
8807# save warnings/boilerplate of simple test code
8808ac_outfile=conftest.$ac_objext
8809echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8810eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8811_lt_compiler_boilerplate=`cat conftest.err`
8812$RM conftest*
8813
8814ac_outfile=conftest.$ac_objext
8815echo "$lt_simple_link_test_code" >conftest.$ac_ext
8816eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8817_lt_linker_boilerplate=`cat conftest.err`
8818$RM -r conftest*
8819
8820
8821## CAVEAT EMPTOR:
8822## There is no encapsulation within the following macros, do not change
8823## the running order or otherwise move them around unless you know exactly
8824## what you are doing...
8825if test -n "$compiler"; then
8826
8827lt_prog_compiler_no_builtin_flag=
8828
8829if test yes = "$GCC"; then
8830  case $cc_basename in
8831  nvcc*)
8832    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8833  *)
8834    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8835  esac
8836
8837  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8838printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8839if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8840then :
8841  printf %s "(cached) " >&6
8842else $as_nop
8843  lt_cv_prog_compiler_rtti_exceptions=no
8844   ac_outfile=conftest.$ac_objext
8845   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8846   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8847   # Insert the option either (1) after the last *FLAGS variable, or
8848   # (2) before a word containing "conftest.", or (3) at the end.
8849   # Note that $ac_compile itself does not contain backslashes and begins
8850   # with a dollar sign (not a hyphen), so the echo should work correctly.
8851   # The option is referenced via a variable to avoid confusing sed.
8852   lt_compile=`echo "$ac_compile" | $SED \
8853   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8854   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8855   -e 's:$: $lt_compiler_flag:'`
8856   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8857   (eval "$lt_compile" 2>conftest.err)
8858   ac_status=$?
8859   cat conftest.err >&5
8860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861   if (exit $ac_status) && test -s "$ac_outfile"; then
8862     # The compiler can only warn and ignore the option if not recognized
8863     # So say no if there are warnings other than the usual output.
8864     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8865     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8866     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8867       lt_cv_prog_compiler_rtti_exceptions=yes
8868     fi
8869   fi
8870   $RM conftest*
8871
8872fi
8873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8874printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8875
8876if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8877    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8878else
8879    :
8880fi
8881
8882fi
8883
8884
8885
8886
8887
8888
8889  lt_prog_compiler_wl=
8890lt_prog_compiler_pic=
8891lt_prog_compiler_static=
8892
8893
8894  if test yes = "$GCC"; then
8895    lt_prog_compiler_wl='-Wl,'
8896    lt_prog_compiler_static='-static'
8897
8898    case $host_os in
8899      aix*)
8900      # All AIX code is PIC.
8901      if test ia64 = "$host_cpu"; then
8902	# AIX 5 now supports IA64 processor
8903	lt_prog_compiler_static='-Bstatic'
8904      fi
8905      lt_prog_compiler_pic='-fPIC'
8906      ;;
8907
8908    amigaos*)
8909      case $host_cpu in
8910      powerpc)
8911            # see comment about AmigaOS4 .so support
8912            lt_prog_compiler_pic='-fPIC'
8913        ;;
8914      m68k)
8915            # FIXME: we need at least 68020 code to build shared libraries, but
8916            # adding the '-m68020' flag to GCC prevents building anything better,
8917            # like '-m68040'.
8918            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8919        ;;
8920      esac
8921      ;;
8922
8923    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8924      # PIC is the default for these OSes.
8925      ;;
8926
8927    mingw* | cygwin* | pw32* | os2* | cegcc*)
8928      # This hack is so that the source file can tell whether it is being
8929      # built for inclusion in a dll (and should export symbols for example).
8930      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8931      # (--disable-auto-import) libraries
8932      lt_prog_compiler_pic='-DDLL_EXPORT'
8933      case $host_os in
8934      os2*)
8935	lt_prog_compiler_static='$wl-static'
8936	;;
8937      esac
8938      ;;
8939
8940    darwin* | rhapsody*)
8941      # PIC is the default on this platform
8942      # Common symbols not allowed in MH_DYLIB files
8943      lt_prog_compiler_pic='-fno-common'
8944      ;;
8945
8946    haiku*)
8947      # PIC is the default for Haiku.
8948      # The "-static" flag exists, but is broken.
8949      lt_prog_compiler_static=
8950      ;;
8951
8952    hpux*)
8953      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8954      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8955      # sets the default TLS model and affects inlining.
8956      case $host_cpu in
8957      hppa*64*)
8958	# +Z the default
8959	;;
8960      *)
8961	lt_prog_compiler_pic='-fPIC'
8962	;;
8963      esac
8964      ;;
8965
8966    interix[3-9]*)
8967      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8968      # Instead, we relocate shared libraries at runtime.
8969      ;;
8970
8971    msdosdjgpp*)
8972      # Just because we use GCC doesn't mean we suddenly get shared libraries
8973      # on systems that don't support them.
8974      lt_prog_compiler_can_build_shared=no
8975      enable_shared=no
8976      ;;
8977
8978    *nto* | *qnx*)
8979      # QNX uses GNU C++, but need to define -shared option too, otherwise
8980      # it will coredump.
8981      lt_prog_compiler_pic='-fPIC -shared'
8982      ;;
8983
8984    sysv4*MP*)
8985      if test -d /usr/nec; then
8986	lt_prog_compiler_pic=-Kconform_pic
8987      fi
8988      ;;
8989
8990    *)
8991      lt_prog_compiler_pic='-fPIC'
8992      ;;
8993    esac
8994
8995    case $cc_basename in
8996    nvcc*) # Cuda Compiler Driver 2.2
8997      lt_prog_compiler_wl='-Xlinker '
8998      if test -n "$lt_prog_compiler_pic"; then
8999        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9000      fi
9001      ;;
9002    esac
9003  else
9004    # PORTME Check for flag to pass linker flags through the system compiler.
9005    case $host_os in
9006    aix*)
9007      lt_prog_compiler_wl='-Wl,'
9008      if test ia64 = "$host_cpu"; then
9009	# AIX 5 now supports IA64 processor
9010	lt_prog_compiler_static='-Bstatic'
9011      else
9012	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9013      fi
9014      ;;
9015
9016    darwin* | rhapsody*)
9017      # PIC is the default on this platform
9018      # Common symbols not allowed in MH_DYLIB files
9019      lt_prog_compiler_pic='-fno-common'
9020      case $cc_basename in
9021      nagfor*)
9022        # NAG Fortran compiler
9023        lt_prog_compiler_wl='-Wl,-Wl,,'
9024        lt_prog_compiler_pic='-PIC'
9025        lt_prog_compiler_static='-Bstatic'
9026        ;;
9027      esac
9028      ;;
9029
9030    mingw* | cygwin* | pw32* | os2* | cegcc*)
9031      # This hack is so that the source file can tell whether it is being
9032      # built for inclusion in a dll (and should export symbols for example).
9033      lt_prog_compiler_pic='-DDLL_EXPORT'
9034      case $host_os in
9035      os2*)
9036	lt_prog_compiler_static='$wl-static'
9037	;;
9038      esac
9039      ;;
9040
9041    hpux9* | hpux10* | hpux11*)
9042      lt_prog_compiler_wl='-Wl,'
9043      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9044      # not for PA HP-UX.
9045      case $host_cpu in
9046      hppa*64*|ia64*)
9047	# +Z the default
9048	;;
9049      *)
9050	lt_prog_compiler_pic='+Z'
9051	;;
9052      esac
9053      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9054      lt_prog_compiler_static='$wl-a ${wl}archive'
9055      ;;
9056
9057    irix5* | irix6* | nonstopux*)
9058      lt_prog_compiler_wl='-Wl,'
9059      # PIC (with -KPIC) is the default.
9060      lt_prog_compiler_static='-non_shared'
9061      ;;
9062
9063    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9064      case $cc_basename in
9065      # old Intel for x86_64, which still supported -KPIC.
9066      ecc*)
9067	lt_prog_compiler_wl='-Wl,'
9068	lt_prog_compiler_pic='-KPIC'
9069	lt_prog_compiler_static='-static'
9070        ;;
9071      # icc used to be incompatible with GCC.
9072      # ICC 10 doesn't accept -KPIC any more.
9073      icc* | ifort*)
9074	lt_prog_compiler_wl='-Wl,'
9075	lt_prog_compiler_pic='-fPIC'
9076	lt_prog_compiler_static='-static'
9077        ;;
9078      # Lahey Fortran 8.1.
9079      lf95*)
9080	lt_prog_compiler_wl='-Wl,'
9081	lt_prog_compiler_pic='--shared'
9082	lt_prog_compiler_static='--static'
9083	;;
9084      nagfor*)
9085	# NAG Fortran compiler
9086	lt_prog_compiler_wl='-Wl,-Wl,,'
9087	lt_prog_compiler_pic='-PIC'
9088	lt_prog_compiler_static='-Bstatic'
9089	;;
9090      tcc*)
9091	# Fabrice Bellard et al's Tiny C Compiler
9092	lt_prog_compiler_wl='-Wl,'
9093	lt_prog_compiler_pic='-fPIC'
9094	lt_prog_compiler_static='-static'
9095	;;
9096      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9097        # Portland Group compilers (*not* the Pentium gcc compiler,
9098	# which looks to be a dead project)
9099	lt_prog_compiler_wl='-Wl,'
9100	lt_prog_compiler_pic='-fpic'
9101	lt_prog_compiler_static='-Bstatic'
9102        ;;
9103      ccc*)
9104        lt_prog_compiler_wl='-Wl,'
9105        # All Alpha code is PIC.
9106        lt_prog_compiler_static='-non_shared'
9107        ;;
9108      xl* | bgxl* | bgf* | mpixl*)
9109	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9110	lt_prog_compiler_wl='-Wl,'
9111	lt_prog_compiler_pic='-qpic'
9112	lt_prog_compiler_static='-qstaticlink'
9113	;;
9114      *)
9115	case `$CC -V 2>&1 | $SED 5q` in
9116	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9117	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9118	  lt_prog_compiler_pic='-KPIC'
9119	  lt_prog_compiler_static='-Bstatic'
9120	  lt_prog_compiler_wl=''
9121	  ;;
9122	*Sun\ F* | *Sun*Fortran*)
9123	  lt_prog_compiler_pic='-KPIC'
9124	  lt_prog_compiler_static='-Bstatic'
9125	  lt_prog_compiler_wl='-Qoption ld '
9126	  ;;
9127	*Sun\ C*)
9128	  # Sun C 5.9
9129	  lt_prog_compiler_pic='-KPIC'
9130	  lt_prog_compiler_static='-Bstatic'
9131	  lt_prog_compiler_wl='-Wl,'
9132	  ;;
9133        *Intel*\ [CF]*Compiler*)
9134	  lt_prog_compiler_wl='-Wl,'
9135	  lt_prog_compiler_pic='-fPIC'
9136	  lt_prog_compiler_static='-static'
9137	  ;;
9138	*Portland\ Group*)
9139	  lt_prog_compiler_wl='-Wl,'
9140	  lt_prog_compiler_pic='-fpic'
9141	  lt_prog_compiler_static='-Bstatic'
9142	  ;;
9143	esac
9144	;;
9145      esac
9146      ;;
9147
9148    newsos6)
9149      lt_prog_compiler_pic='-KPIC'
9150      lt_prog_compiler_static='-Bstatic'
9151      ;;
9152
9153    *nto* | *qnx*)
9154      # QNX uses GNU C++, but need to define -shared option too, otherwise
9155      # it will coredump.
9156      lt_prog_compiler_pic='-fPIC -shared'
9157      ;;
9158
9159    osf3* | osf4* | osf5*)
9160      lt_prog_compiler_wl='-Wl,'
9161      # All OSF/1 code is PIC.
9162      lt_prog_compiler_static='-non_shared'
9163      ;;
9164
9165    rdos*)
9166      lt_prog_compiler_static='-non_shared'
9167      ;;
9168
9169    solaris*)
9170      lt_prog_compiler_pic='-KPIC'
9171      lt_prog_compiler_static='-Bstatic'
9172      case $cc_basename in
9173      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9174	lt_prog_compiler_wl='-Qoption ld ';;
9175      *)
9176	lt_prog_compiler_wl='-Wl,';;
9177      esac
9178      ;;
9179
9180    sunos4*)
9181      lt_prog_compiler_wl='-Qoption ld '
9182      lt_prog_compiler_pic='-PIC'
9183      lt_prog_compiler_static='-Bstatic'
9184      ;;
9185
9186    sysv4 | sysv4.2uw2* | sysv4.3*)
9187      lt_prog_compiler_wl='-Wl,'
9188      lt_prog_compiler_pic='-KPIC'
9189      lt_prog_compiler_static='-Bstatic'
9190      ;;
9191
9192    sysv4*MP*)
9193      if test -d /usr/nec; then
9194	lt_prog_compiler_pic='-Kconform_pic'
9195	lt_prog_compiler_static='-Bstatic'
9196      fi
9197      ;;
9198
9199    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9200      lt_prog_compiler_wl='-Wl,'
9201      lt_prog_compiler_pic='-KPIC'
9202      lt_prog_compiler_static='-Bstatic'
9203      ;;
9204
9205    unicos*)
9206      lt_prog_compiler_wl='-Wl,'
9207      lt_prog_compiler_can_build_shared=no
9208      ;;
9209
9210    uts4*)
9211      lt_prog_compiler_pic='-pic'
9212      lt_prog_compiler_static='-Bstatic'
9213      ;;
9214
9215    *)
9216      lt_prog_compiler_can_build_shared=no
9217      ;;
9218    esac
9219  fi
9220
9221case $host_os in
9222  # For platforms that do not support PIC, -DPIC is meaningless:
9223  *djgpp*)
9224    lt_prog_compiler_pic=
9225    ;;
9226  *)
9227    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9228    ;;
9229esac
9230
9231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9232printf %s "checking for $compiler option to produce PIC... " >&6; }
9233if test ${lt_cv_prog_compiler_pic+y}
9234then :
9235  printf %s "(cached) " >&6
9236else $as_nop
9237  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9238fi
9239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9240printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9241lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9242
9243#
9244# Check to make sure the PIC flag actually works.
9245#
9246if test -n "$lt_prog_compiler_pic"; then
9247  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9248printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9249if test ${lt_cv_prog_compiler_pic_works+y}
9250then :
9251  printf %s "(cached) " >&6
9252else $as_nop
9253  lt_cv_prog_compiler_pic_works=no
9254   ac_outfile=conftest.$ac_objext
9255   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9256   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9257   # Insert the option either (1) after the last *FLAGS variable, or
9258   # (2) before a word containing "conftest.", or (3) at the end.
9259   # Note that $ac_compile itself does not contain backslashes and begins
9260   # with a dollar sign (not a hyphen), so the echo should work correctly.
9261   # The option is referenced via a variable to avoid confusing sed.
9262   lt_compile=`echo "$ac_compile" | $SED \
9263   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9264   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9265   -e 's:$: $lt_compiler_flag:'`
9266   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9267   (eval "$lt_compile" 2>conftest.err)
9268   ac_status=$?
9269   cat conftest.err >&5
9270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271   if (exit $ac_status) && test -s "$ac_outfile"; then
9272     # The compiler can only warn and ignore the option if not recognized
9273     # So say no if there are warnings other than the usual output.
9274     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9275     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9276     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9277       lt_cv_prog_compiler_pic_works=yes
9278     fi
9279   fi
9280   $RM conftest*
9281
9282fi
9283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9284printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9285
9286if test yes = "$lt_cv_prog_compiler_pic_works"; then
9287    case $lt_prog_compiler_pic in
9288     "" | " "*) ;;
9289     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9290     esac
9291else
9292    lt_prog_compiler_pic=
9293     lt_prog_compiler_can_build_shared=no
9294fi
9295
9296fi
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308#
9309# Check to make sure the static flag actually works.
9310#
9311wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9313printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9314if test ${lt_cv_prog_compiler_static_works+y}
9315then :
9316  printf %s "(cached) " >&6
9317else $as_nop
9318  lt_cv_prog_compiler_static_works=no
9319   save_LDFLAGS=$LDFLAGS
9320   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9321   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9322   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9323     # The linker can only warn and ignore the option if not recognized
9324     # So say no if there are warnings
9325     if test -s conftest.err; then
9326       # Append any errors to the config.log.
9327       cat conftest.err 1>&5
9328       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9329       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9330       if diff conftest.exp conftest.er2 >/dev/null; then
9331         lt_cv_prog_compiler_static_works=yes
9332       fi
9333     else
9334       lt_cv_prog_compiler_static_works=yes
9335     fi
9336   fi
9337   $RM -r conftest*
9338   LDFLAGS=$save_LDFLAGS
9339
9340fi
9341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9342printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9343
9344if test yes = "$lt_cv_prog_compiler_static_works"; then
9345    :
9346else
9347    lt_prog_compiler_static=
9348fi
9349
9350
9351
9352
9353
9354
9355
9356  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9357printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9358if test ${lt_cv_prog_compiler_c_o+y}
9359then :
9360  printf %s "(cached) " >&6
9361else $as_nop
9362  lt_cv_prog_compiler_c_o=no
9363   $RM -r conftest 2>/dev/null
9364   mkdir conftest
9365   cd conftest
9366   mkdir out
9367   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9368
9369   lt_compiler_flag="-o out/conftest2.$ac_objext"
9370   # Insert the option either (1) after the last *FLAGS variable, or
9371   # (2) before a word containing "conftest.", or (3) at the end.
9372   # Note that $ac_compile itself does not contain backslashes and begins
9373   # with a dollar sign (not a hyphen), so the echo should work correctly.
9374   lt_compile=`echo "$ac_compile" | $SED \
9375   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9376   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9377   -e 's:$: $lt_compiler_flag:'`
9378   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9379   (eval "$lt_compile" 2>out/conftest.err)
9380   ac_status=$?
9381   cat out/conftest.err >&5
9382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9384   then
9385     # The compiler can only warn and ignore the option if not recognized
9386     # So say no if there are warnings
9387     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9388     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9389     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9390       lt_cv_prog_compiler_c_o=yes
9391     fi
9392   fi
9393   chmod u+w . 2>&5
9394   $RM conftest*
9395   # SGI C++ compiler will create directory out/ii_files/ for
9396   # template instantiation
9397   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9398   $RM out/* && rmdir out
9399   cd ..
9400   $RM -r conftest
9401   $RM conftest*
9402
9403fi
9404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9405printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9406
9407
9408
9409
9410
9411
9412  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9413printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9414if test ${lt_cv_prog_compiler_c_o+y}
9415then :
9416  printf %s "(cached) " >&6
9417else $as_nop
9418  lt_cv_prog_compiler_c_o=no
9419   $RM -r conftest 2>/dev/null
9420   mkdir conftest
9421   cd conftest
9422   mkdir out
9423   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9424
9425   lt_compiler_flag="-o out/conftest2.$ac_objext"
9426   # Insert the option either (1) after the last *FLAGS variable, or
9427   # (2) before a word containing "conftest.", or (3) at the end.
9428   # Note that $ac_compile itself does not contain backslashes and begins
9429   # with a dollar sign (not a hyphen), so the echo should work correctly.
9430   lt_compile=`echo "$ac_compile" | $SED \
9431   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9432   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9433   -e 's:$: $lt_compiler_flag:'`
9434   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9435   (eval "$lt_compile" 2>out/conftest.err)
9436   ac_status=$?
9437   cat out/conftest.err >&5
9438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9440   then
9441     # The compiler can only warn and ignore the option if not recognized
9442     # So say no if there are warnings
9443     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9444     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9445     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9446       lt_cv_prog_compiler_c_o=yes
9447     fi
9448   fi
9449   chmod u+w . 2>&5
9450   $RM conftest*
9451   # SGI C++ compiler will create directory out/ii_files/ for
9452   # template instantiation
9453   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9454   $RM out/* && rmdir out
9455   cd ..
9456   $RM -r conftest
9457   $RM conftest*
9458
9459fi
9460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9461printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9462
9463
9464
9465
9466hard_links=nottested
9467if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9468  # do not overwrite the value of need_locks provided by the user
9469  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9470printf %s "checking if we can lock with hard links... " >&6; }
9471  hard_links=yes
9472  $RM conftest*
9473  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9474  touch conftest.a
9475  ln conftest.a conftest.b 2>&5 || hard_links=no
9476  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9477  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9478printf "%s\n" "$hard_links" >&6; }
9479  if test no = "$hard_links"; then
9480    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9481printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9482    need_locks=warn
9483  fi
9484else
9485  need_locks=no
9486fi
9487
9488
9489
9490
9491
9492
9493  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9494printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9495
9496  runpath_var=
9497  allow_undefined_flag=
9498  always_export_symbols=no
9499  archive_cmds=
9500  archive_expsym_cmds=
9501  compiler_needs_object=no
9502  enable_shared_with_static_runtimes=no
9503  export_dynamic_flag_spec=
9504  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9505  hardcode_automatic=no
9506  hardcode_direct=no
9507  hardcode_direct_absolute=no
9508  hardcode_libdir_flag_spec=
9509  hardcode_libdir_separator=
9510  hardcode_minus_L=no
9511  hardcode_shlibpath_var=unsupported
9512  inherit_rpath=no
9513  link_all_deplibs=unknown
9514  module_cmds=
9515  module_expsym_cmds=
9516  old_archive_from_new_cmds=
9517  old_archive_from_expsyms_cmds=
9518  thread_safe_flag_spec=
9519  whole_archive_flag_spec=
9520  # include_expsyms should be a list of space-separated symbols to be *always*
9521  # included in the symbol list
9522  include_expsyms=
9523  # exclude_expsyms can be an extended regexp of symbols to exclude
9524  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9525  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9526  # as well as any symbol that contains 'd'.
9527  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9528  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9529  # platforms (ab)use it in PIC code, but their linkers get confused if
9530  # the symbol is explicitly referenced.  Since portable code cannot
9531  # rely on this symbol name, it's probably fine to never include it in
9532  # preloaded symbol tables.
9533  # Exclude shared library initialization/finalization symbols.
9534  extract_expsyms_cmds=
9535
9536  case $host_os in
9537  cygwin* | mingw* | pw32* | cegcc*)
9538    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9539    # When not using gcc, we currently assume that we are using
9540    # Microsoft Visual C++ or Intel C++ Compiler.
9541    if test yes != "$GCC"; then
9542      with_gnu_ld=no
9543    fi
9544    ;;
9545  interix*)
9546    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9547    with_gnu_ld=yes
9548    ;;
9549  openbsd* | bitrig*)
9550    with_gnu_ld=no
9551    ;;
9552  esac
9553
9554  ld_shlibs=yes
9555
9556  # On some targets, GNU ld is compatible enough with the native linker
9557  # that we're better off using the native interface for both.
9558  lt_use_gnu_ld_interface=no
9559  if test yes = "$with_gnu_ld"; then
9560    case $host_os in
9561      aix*)
9562	# The AIX port of GNU ld has always aspired to compatibility
9563	# with the native linker.  However, as the warning in the GNU ld
9564	# block says, versions before 2.19.5* couldn't really create working
9565	# shared libraries, regardless of the interface used.
9566	case `$LD -v 2>&1` in
9567	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9568	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9569	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9570	  *)
9571	    lt_use_gnu_ld_interface=yes
9572	    ;;
9573	esac
9574	;;
9575      *)
9576	lt_use_gnu_ld_interface=yes
9577	;;
9578    esac
9579  fi
9580
9581  if test yes = "$lt_use_gnu_ld_interface"; then
9582    # If archive_cmds runs LD, not CC, wlarc should be empty
9583    wlarc='$wl'
9584
9585    # Set some defaults for GNU ld with shared library support. These
9586    # are reset later if shared libraries are not supported. Putting them
9587    # here allows them to be overridden if necessary.
9588    runpath_var=LD_RUN_PATH
9589    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9590    export_dynamic_flag_spec='$wl--export-dynamic'
9591    # ancient GNU ld didn't support --whole-archive et. al.
9592    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9593      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9594    else
9595      whole_archive_flag_spec=
9596    fi
9597    supports_anon_versioning=no
9598    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9599      *GNU\ gold*) supports_anon_versioning=yes ;;
9600      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9601      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9602      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9603      *\ 2.11.*) ;; # other 2.11 versions
9604      *) supports_anon_versioning=yes ;;
9605    esac
9606
9607    # See if GNU ld supports shared libraries.
9608    case $host_os in
9609    aix[3-9]*)
9610      # On AIX/PPC, the GNU linker is very broken
9611      if test ia64 != "$host_cpu"; then
9612	ld_shlibs=no
9613	cat <<_LT_EOF 1>&2
9614
9615*** Warning: the GNU linker, at least up to release 2.19, is reported
9616*** to be unable to reliably create shared libraries on AIX.
9617*** Therefore, libtool is disabling shared libraries support.  If you
9618*** really care for shared libraries, you may want to install binutils
9619*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9620*** You will then need to restart the configuration process.
9621
9622_LT_EOF
9623      fi
9624      ;;
9625
9626    amigaos*)
9627      case $host_cpu in
9628      powerpc)
9629            # see comment about AmigaOS4 .so support
9630            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9631            archive_expsym_cmds=''
9632        ;;
9633      m68k)
9634            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)'
9635            hardcode_libdir_flag_spec='-L$libdir'
9636            hardcode_minus_L=yes
9637        ;;
9638      esac
9639      ;;
9640
9641    beos*)
9642      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9643	allow_undefined_flag=unsupported
9644	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9645	# support --undefined.  This deserves some investigation.  FIXME
9646	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9647      else
9648	ld_shlibs=no
9649      fi
9650      ;;
9651
9652    cygwin* | mingw* | pw32* | cegcc*)
9653      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9654      # as there is no search path for DLLs.
9655      hardcode_libdir_flag_spec='-L$libdir'
9656      export_dynamic_flag_spec='$wl--export-all-symbols'
9657      allow_undefined_flag=unsupported
9658      always_export_symbols=no
9659      enable_shared_with_static_runtimes=yes
9660      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'
9661      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9662
9663      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9664        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9665	# If the export-symbols file already is a .def file, use it as
9666	# is; otherwise, prepend EXPORTS...
9667	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9668          cp $export_symbols $output_objdir/$soname.def;
9669        else
9670          echo EXPORTS > $output_objdir/$soname.def;
9671          cat $export_symbols >> $output_objdir/$soname.def;
9672        fi~
9673        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9674      else
9675	ld_shlibs=no
9676      fi
9677      ;;
9678
9679    haiku*)
9680      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9681      link_all_deplibs=yes
9682      ;;
9683
9684    os2*)
9685      hardcode_libdir_flag_spec='-L$libdir'
9686      hardcode_minus_L=yes
9687      allow_undefined_flag=unsupported
9688      shrext_cmds=.dll
9689      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9690	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9691	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9692	$ECHO EXPORTS >> $output_objdir/$libname.def~
9693	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9694	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9695	emximp -o $lib $output_objdir/$libname.def'
9696      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9697	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9698	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9699	$ECHO EXPORTS >> $output_objdir/$libname.def~
9700	prefix_cmds="$SED"~
9701	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9702	  prefix_cmds="$prefix_cmds -e 1d";
9703	fi~
9704	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9705	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9706	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9707	emximp -o $lib $output_objdir/$libname.def'
9708      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9709      enable_shared_with_static_runtimes=yes
9710      file_list_spec='@'
9711      ;;
9712
9713    interix[3-9]*)
9714      hardcode_direct=no
9715      hardcode_shlibpath_var=no
9716      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9717      export_dynamic_flag_spec='$wl-E'
9718      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9719      # Instead, shared libraries are loaded at an image base (0x10000000 by
9720      # default) and relocated if they conflict, which is a slow very memory
9721      # consuming and fragmenting process.  To avoid this, we pick a random,
9722      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9723      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9724      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9725      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'
9726      ;;
9727
9728    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9729      tmp_diet=no
9730      if test linux-dietlibc = "$host_os"; then
9731	case $cc_basename in
9732	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9733	esac
9734      fi
9735      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9736	 && test no = "$tmp_diet"
9737      then
9738	tmp_addflag=' $pic_flag'
9739	tmp_sharedflag='-shared'
9740	case $cc_basename,$host_cpu in
9741        pgcc*)				# Portland Group C compiler
9742	  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'
9743	  tmp_addflag=' $pic_flag'
9744	  ;;
9745	pgf77* | pgf90* | pgf95* | pgfortran*)
9746					# Portland Group f77 and f90 compilers
9747	  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'
9748	  tmp_addflag=' $pic_flag -Mnomain' ;;
9749	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9750	  tmp_addflag=' -i_dynamic' ;;
9751	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9752	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9753	ifc* | ifort*)			# Intel Fortran compiler
9754	  tmp_addflag=' -nofor_main' ;;
9755	lf95*)				# Lahey Fortran 8.1
9756	  whole_archive_flag_spec=
9757	  tmp_sharedflag='--shared' ;;
9758        nagfor*)                        # NAGFOR 5.3
9759          tmp_sharedflag='-Wl,-shared' ;;
9760	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9761	  tmp_sharedflag='-qmkshrobj'
9762	  tmp_addflag= ;;
9763	nvcc*)	# Cuda Compiler Driver 2.2
9764	  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'
9765	  compiler_needs_object=yes
9766	  ;;
9767	esac
9768	case `$CC -V 2>&1 | $SED 5q` in
9769	*Sun\ C*)			# Sun C 5.9
9770	  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'
9771	  compiler_needs_object=yes
9772	  tmp_sharedflag='-G' ;;
9773	*Sun\ F*)			# Sun Fortran 8.3
9774	  tmp_sharedflag='-G' ;;
9775	esac
9776	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9777
9778        if test yes = "$supports_anon_versioning"; then
9779          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9780            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9781            echo "local: *; };" >> $output_objdir/$libname.ver~
9782            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9783        fi
9784
9785	case $cc_basename in
9786	tcc*)
9787	  export_dynamic_flag_spec='-rdynamic'
9788	  ;;
9789	xlf* | bgf* | bgxlf* | mpixlf*)
9790	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9791	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9792	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9793	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9794	  if test yes = "$supports_anon_versioning"; then
9795	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9796              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9797              echo "local: *; };" >> $output_objdir/$libname.ver~
9798              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9799	  fi
9800	  ;;
9801	esac
9802      else
9803        ld_shlibs=no
9804      fi
9805      ;;
9806
9807    netbsd*)
9808      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9809	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9810	wlarc=
9811      else
9812	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9813	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9814      fi
9815      ;;
9816
9817    solaris*)
9818      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9819	ld_shlibs=no
9820	cat <<_LT_EOF 1>&2
9821
9822*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9823*** create shared libraries on Solaris systems.  Therefore, libtool
9824*** is disabling shared libraries support.  We urge you to upgrade GNU
9825*** binutils to release 2.9.1 or newer.  Another option is to modify
9826*** your PATH or compiler configuration so that the native linker is
9827*** used, and then restart.
9828
9829_LT_EOF
9830      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9831	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9832	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9833      else
9834	ld_shlibs=no
9835      fi
9836      ;;
9837
9838    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9839      case `$LD -v 2>&1` in
9840        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9841	ld_shlibs=no
9842	cat <<_LT_EOF 1>&2
9843
9844*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9845*** reliably create shared libraries on SCO systems.  Therefore, libtool
9846*** is disabling shared libraries support.  We urge you to upgrade GNU
9847*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9848*** your PATH or compiler configuration so that the native linker is
9849*** used, and then restart.
9850
9851_LT_EOF
9852	;;
9853	*)
9854	  # For security reasons, it is highly recommended that you always
9855	  # use absolute paths for naming shared libraries, and exclude the
9856	  # DT_RUNPATH tag from executables and libraries.  But doing so
9857	  # requires that you compile everything twice, which is a pain.
9858	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9859	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9860	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9861	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9862	  else
9863	    ld_shlibs=no
9864	  fi
9865	;;
9866      esac
9867      ;;
9868
9869    sunos4*)
9870      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9871      wlarc=
9872      hardcode_direct=yes
9873      hardcode_shlibpath_var=no
9874      ;;
9875
9876    *)
9877      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9878	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9879	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9880      else
9881	ld_shlibs=no
9882      fi
9883      ;;
9884    esac
9885
9886    if test no = "$ld_shlibs"; then
9887      runpath_var=
9888      hardcode_libdir_flag_spec=
9889      export_dynamic_flag_spec=
9890      whole_archive_flag_spec=
9891    fi
9892  else
9893    # PORTME fill in a description of your system's linker (not GNU ld)
9894    case $host_os in
9895    aix3*)
9896      allow_undefined_flag=unsupported
9897      always_export_symbols=yes
9898      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'
9899      # Note: this linker hardcodes the directories in LIBPATH if there
9900      # are no directories specified by -L.
9901      hardcode_minus_L=yes
9902      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9903	# Neither direct hardcoding nor static linking is supported with a
9904	# broken collect2.
9905	hardcode_direct=unsupported
9906      fi
9907      ;;
9908
9909    aix[4-9]*)
9910      if test ia64 = "$host_cpu"; then
9911	# On IA64, the linker does run time linking by default, so we don't
9912	# have to do anything special.
9913	aix_use_runtimelinking=no
9914	exp_sym_flag='-Bexport'
9915	no_entry_flag=
9916      else
9917	# If we're using GNU nm, then we don't want the "-C" option.
9918	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9919	# Without the "-l" option, or with the "-B" option, AIX nm treats
9920	# weak defined symbols like other global defined symbols, whereas
9921	# GNU nm marks them as "W".
9922	# While the 'weak' keyword is ignored in the Export File, we need
9923	# it in the Import File for the 'aix-soname' feature, so we have
9924	# to replace the "-B" option with "-P" for AIX nm.
9925	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9926	  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'
9927	else
9928	  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'
9929	fi
9930	aix_use_runtimelinking=no
9931
9932	# Test if we are trying to use run time linking or normal
9933	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9934	# have runtime linking enabled, and use it for executables.
9935	# For shared libraries, we enable/disable runtime linking
9936	# depending on the kind of the shared library created -
9937	# when "with_aix_soname,aix_use_runtimelinking" is:
9938	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9939	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9940	#            lib.a           static archive
9941	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9942	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9943	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9944	#            lib.a(lib.so.V) shared, rtl:no
9945	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9946	#            lib.a           static archive
9947	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9948	  for ld_flag in $LDFLAGS; do
9949	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9950	    aix_use_runtimelinking=yes
9951	    break
9952	  fi
9953	  done
9954	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9955	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9956	    # so we don't have lib.a shared libs to link our executables.
9957	    # We have to force runtime linking in this case.
9958	    aix_use_runtimelinking=yes
9959	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9960	  fi
9961	  ;;
9962	esac
9963
9964	exp_sym_flag='-bexport'
9965	no_entry_flag='-bnoentry'
9966      fi
9967
9968      # When large executables or shared objects are built, AIX ld can
9969      # have problems creating the table of contents.  If linking a library
9970      # or program results in "error TOC overflow" add -mminimal-toc to
9971      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9972      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9973
9974      archive_cmds=''
9975      hardcode_direct=yes
9976      hardcode_direct_absolute=yes
9977      hardcode_libdir_separator=':'
9978      link_all_deplibs=yes
9979      file_list_spec='$wl-f,'
9980      case $with_aix_soname,$aix_use_runtimelinking in
9981      aix,*) ;; # traditional, no import file
9982      svr4,* | *,yes) # use import file
9983	# The Import File defines what to hardcode.
9984	hardcode_direct=no
9985	hardcode_direct_absolute=no
9986	;;
9987      esac
9988
9989      if test yes = "$GCC"; then
9990	case $host_os in aix4.[012]|aix4.[012].*)
9991	# We only want to do this on AIX 4.2 and lower, the check
9992	# below for broken collect2 doesn't work under 4.3+
9993	  collect2name=`$CC -print-prog-name=collect2`
9994	  if test -f "$collect2name" &&
9995	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9996	  then
9997	  # We have reworked collect2
9998	  :
9999	  else
10000	  # We have old collect2
10001	  hardcode_direct=unsupported
10002	  # It fails to find uninstalled libraries when the uninstalled
10003	  # path is not listed in the libpath.  Setting hardcode_minus_L
10004	  # to unsupported forces relinking
10005	  hardcode_minus_L=yes
10006	  hardcode_libdir_flag_spec='-L$libdir'
10007	  hardcode_libdir_separator=
10008	  fi
10009	  ;;
10010	esac
10011	shared_flag='-shared'
10012	if test yes = "$aix_use_runtimelinking"; then
10013	  shared_flag="$shared_flag "'$wl-G'
10014	fi
10015	# Need to ensure runtime linking is disabled for the traditional
10016	# shared library, or the linker may eventually find shared libraries
10017	# /with/ Import File - we do not want to mix them.
10018	shared_flag_aix='-shared'
10019	shared_flag_svr4='-shared $wl-G'
10020      else
10021	# not using gcc
10022	if test ia64 = "$host_cpu"; then
10023	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10024	# chokes on -Wl,-G. The following line is correct:
10025	  shared_flag='-G'
10026	else
10027	  if test yes = "$aix_use_runtimelinking"; then
10028	    shared_flag='$wl-G'
10029	  else
10030	    shared_flag='$wl-bM:SRE'
10031	  fi
10032	  shared_flag_aix='$wl-bM:SRE'
10033	  shared_flag_svr4='$wl-G'
10034	fi
10035      fi
10036
10037      export_dynamic_flag_spec='$wl-bexpall'
10038      # It seems that -bexpall does not export symbols beginning with
10039      # underscore (_), so it is better to generate a list of symbols to export.
10040      always_export_symbols=yes
10041      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10042	# Warning - without using the other runtime loading flags (-brtl),
10043	# -berok will link without error, but may produce a broken library.
10044	allow_undefined_flag='-berok'
10045        # Determine the default libpath from the value encoded in an
10046        # empty executable.
10047        if test set = "${lt_cv_aix_libpath+set}"; then
10048  aix_libpath=$lt_cv_aix_libpath
10049else
10050  if test ${lt_cv_aix_libpath_+y}
10051then :
10052  printf %s "(cached) " >&6
10053else $as_nop
10054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10055/* end confdefs.h.  */
10056
10057int
10058main (void)
10059{
10060
10061  ;
10062  return 0;
10063}
10064_ACEOF
10065if ac_fn_c_try_link "$LINENO"
10066then :
10067
10068  lt_aix_libpath_sed='
10069      /Import File Strings/,/^$/ {
10070	  /^0/ {
10071	      s/^0  *\([^ ]*\) *$/\1/
10072	      p
10073	  }
10074      }'
10075  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10076  # Check for a 64-bit object if we didn't find anything.
10077  if test -z "$lt_cv_aix_libpath_"; then
10078    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10079  fi
10080fi
10081rm -f core conftest.err conftest.$ac_objext conftest.beam \
10082    conftest$ac_exeext conftest.$ac_ext
10083  if test -z "$lt_cv_aix_libpath_"; then
10084    lt_cv_aix_libpath_=/usr/lib:/lib
10085  fi
10086
10087fi
10088
10089  aix_libpath=$lt_cv_aix_libpath_
10090fi
10091
10092        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10093        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
10094      else
10095	if test ia64 = "$host_cpu"; then
10096	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10097	  allow_undefined_flag="-z nodefs"
10098	  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"
10099	else
10100	 # Determine the default libpath from the value encoded in an
10101	 # empty executable.
10102	 if test set = "${lt_cv_aix_libpath+set}"; then
10103  aix_libpath=$lt_cv_aix_libpath
10104else
10105  if test ${lt_cv_aix_libpath_+y}
10106then :
10107  printf %s "(cached) " >&6
10108else $as_nop
10109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10110/* end confdefs.h.  */
10111
10112int
10113main (void)
10114{
10115
10116  ;
10117  return 0;
10118}
10119_ACEOF
10120if ac_fn_c_try_link "$LINENO"
10121then :
10122
10123  lt_aix_libpath_sed='
10124      /Import File Strings/,/^$/ {
10125	  /^0/ {
10126	      s/^0  *\([^ ]*\) *$/\1/
10127	      p
10128	  }
10129      }'
10130  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10131  # Check for a 64-bit object if we didn't find anything.
10132  if test -z "$lt_cv_aix_libpath_"; then
10133    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10134  fi
10135fi
10136rm -f core conftest.err conftest.$ac_objext conftest.beam \
10137    conftest$ac_exeext conftest.$ac_ext
10138  if test -z "$lt_cv_aix_libpath_"; then
10139    lt_cv_aix_libpath_=/usr/lib:/lib
10140  fi
10141
10142fi
10143
10144  aix_libpath=$lt_cv_aix_libpath_
10145fi
10146
10147	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10148	  # Warning - without using the other run time loading flags,
10149	  # -berok will link without error, but may produce a broken library.
10150	  no_undefined_flag=' $wl-bernotok'
10151	  allow_undefined_flag=' $wl-berok'
10152	  if test yes = "$with_gnu_ld"; then
10153	    # We only use this code for GNU lds that support --whole-archive.
10154	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10155	  else
10156	    # Exported symbols can be pulled into shared objects from archives
10157	    whole_archive_flag_spec='$convenience'
10158	  fi
10159	  archive_cmds_need_lc=yes
10160	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10161	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10162	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10163	  if test svr4 != "$with_aix_soname"; then
10164	    # This is similar to how AIX traditionally builds its shared libraries.
10165	    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'
10166	  fi
10167	  if test aix != "$with_aix_soname"; then
10168	    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'
10169	  else
10170	    # used by -dlpreopen to get the symbols
10171	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10172	  fi
10173	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10174	fi
10175      fi
10176      ;;
10177
10178    amigaos*)
10179      case $host_cpu in
10180      powerpc)
10181            # see comment about AmigaOS4 .so support
10182            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10183            archive_expsym_cmds=''
10184        ;;
10185      m68k)
10186            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)'
10187            hardcode_libdir_flag_spec='-L$libdir'
10188            hardcode_minus_L=yes
10189        ;;
10190      esac
10191      ;;
10192
10193    bsdi[45]*)
10194      export_dynamic_flag_spec=-rdynamic
10195      ;;
10196
10197    cygwin* | mingw* | pw32* | cegcc*)
10198      # When not using gcc, we currently assume that we are using
10199      # Microsoft Visual C++ or Intel C++ Compiler.
10200      # hardcode_libdir_flag_spec is actually meaningless, as there is
10201      # no search path for DLLs.
10202      case $cc_basename in
10203      cl* | icl*)
10204	# Native MSVC or ICC
10205	hardcode_libdir_flag_spec=' '
10206	allow_undefined_flag=unsupported
10207	always_export_symbols=yes
10208	file_list_spec='@'
10209	# Tell ltmain to make .lib files, not .a files.
10210	libext=lib
10211	# Tell ltmain to make .dll files, not .so files.
10212	shrext_cmds=.dll
10213	# FIXME: Setting linknames here is a bad hack.
10214	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10215	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10216            cp "$export_symbols" "$output_objdir/$soname.def";
10217            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10218          else
10219            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10220          fi~
10221          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10222          linknames='
10223	# The linker will not automatically build a static lib if we build a DLL.
10224	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10225	enable_shared_with_static_runtimes=yes
10226	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10227	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10228	# Don't use ranlib
10229	old_postinstall_cmds='chmod 644 $oldlib'
10230	postlink_cmds='lt_outputfile="@OUTPUT@"~
10231          lt_tool_outputfile="@TOOL_OUTPUT@"~
10232          case $lt_outputfile in
10233            *.exe|*.EXE) ;;
10234            *)
10235              lt_outputfile=$lt_outputfile.exe
10236              lt_tool_outputfile=$lt_tool_outputfile.exe
10237              ;;
10238          esac~
10239          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10240            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10241            $RM "$lt_outputfile.manifest";
10242          fi'
10243	;;
10244      *)
10245	# Assume MSVC and ICC wrapper
10246	hardcode_libdir_flag_spec=' '
10247	allow_undefined_flag=unsupported
10248	# Tell ltmain to make .lib files, not .a files.
10249	libext=lib
10250	# Tell ltmain to make .dll files, not .so files.
10251	shrext_cmds=.dll
10252	# FIXME: Setting linknames here is a bad hack.
10253	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10254	# The linker will automatically build a .lib file if we build a DLL.
10255	old_archive_from_new_cmds='true'
10256	# FIXME: Should let the user specify the lib program.
10257	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10258	enable_shared_with_static_runtimes=yes
10259	;;
10260      esac
10261      ;;
10262
10263    darwin* | rhapsody*)
10264
10265
10266  archive_cmds_need_lc=no
10267  hardcode_direct=no
10268  hardcode_automatic=yes
10269  hardcode_shlibpath_var=unsupported
10270  if test yes = "$lt_cv_ld_force_load"; then
10271    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\"`'
10272
10273  else
10274    whole_archive_flag_spec=''
10275  fi
10276  link_all_deplibs=yes
10277  allow_undefined_flag=$_lt_dar_allow_undefined
10278  case $cc_basename in
10279     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10280     *) _lt_dar_can_shared=$GCC ;;
10281  esac
10282  if test yes = "$_lt_dar_can_shared"; then
10283    output_verbose_link_cmd=func_echo_all
10284    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10285    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10286    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"
10287    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"
10288
10289  else
10290  ld_shlibs=no
10291  fi
10292
10293      ;;
10294
10295    dgux*)
10296      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10297      hardcode_libdir_flag_spec='-L$libdir'
10298      hardcode_shlibpath_var=no
10299      ;;
10300
10301    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10302    # support.  Future versions do this automatically, but an explicit c++rt0.o
10303    # does not break anything, and helps significantly (at the cost of a little
10304    # extra space).
10305    freebsd2.2*)
10306      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10307      hardcode_libdir_flag_spec='-R$libdir'
10308      hardcode_direct=yes
10309      hardcode_shlibpath_var=no
10310      ;;
10311
10312    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10313    freebsd2.*)
10314      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10315      hardcode_direct=yes
10316      hardcode_minus_L=yes
10317      hardcode_shlibpath_var=no
10318      ;;
10319
10320    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10321    freebsd* | dragonfly* | midnightbsd*)
10322      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10323      hardcode_libdir_flag_spec='-R$libdir'
10324      hardcode_direct=yes
10325      hardcode_shlibpath_var=no
10326      ;;
10327
10328    hpux9*)
10329      if test yes = "$GCC"; then
10330	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'
10331      else
10332	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'
10333      fi
10334      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10335      hardcode_libdir_separator=:
10336      hardcode_direct=yes
10337
10338      # hardcode_minus_L: Not really in the search PATH,
10339      # but as the default location of the library.
10340      hardcode_minus_L=yes
10341      export_dynamic_flag_spec='$wl-E'
10342      ;;
10343
10344    hpux10*)
10345      if test yes,no = "$GCC,$with_gnu_ld"; then
10346	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10347      else
10348	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10349      fi
10350      if test no = "$with_gnu_ld"; then
10351	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10352	hardcode_libdir_separator=:
10353	hardcode_direct=yes
10354	hardcode_direct_absolute=yes
10355	export_dynamic_flag_spec='$wl-E'
10356	# hardcode_minus_L: Not really in the search PATH,
10357	# but as the default location of the library.
10358	hardcode_minus_L=yes
10359      fi
10360      ;;
10361
10362    hpux11*)
10363      if test yes,no = "$GCC,$with_gnu_ld"; then
10364	case $host_cpu in
10365	hppa*64*)
10366	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10367	  ;;
10368	ia64*)
10369	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10370	  ;;
10371	*)
10372	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10373	  ;;
10374	esac
10375      else
10376	case $host_cpu in
10377	hppa*64*)
10378	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10379	  ;;
10380	ia64*)
10381	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10382	  ;;
10383	*)
10384
10385	  # Older versions of the 11.00 compiler do not understand -b yet
10386	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10387	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10388printf %s "checking if $CC understands -b... " >&6; }
10389if test ${lt_cv_prog_compiler__b+y}
10390then :
10391  printf %s "(cached) " >&6
10392else $as_nop
10393  lt_cv_prog_compiler__b=no
10394   save_LDFLAGS=$LDFLAGS
10395   LDFLAGS="$LDFLAGS -b"
10396   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10397   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10398     # The linker can only warn and ignore the option if not recognized
10399     # So say no if there are warnings
10400     if test -s conftest.err; then
10401       # Append any errors to the config.log.
10402       cat conftest.err 1>&5
10403       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10404       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10405       if diff conftest.exp conftest.er2 >/dev/null; then
10406         lt_cv_prog_compiler__b=yes
10407       fi
10408     else
10409       lt_cv_prog_compiler__b=yes
10410     fi
10411   fi
10412   $RM -r conftest*
10413   LDFLAGS=$save_LDFLAGS
10414
10415fi
10416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10417printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10418
10419if test yes = "$lt_cv_prog_compiler__b"; then
10420    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10421else
10422    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10423fi
10424
10425	  ;;
10426	esac
10427      fi
10428      if test no = "$with_gnu_ld"; then
10429	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10430	hardcode_libdir_separator=:
10431
10432	case $host_cpu in
10433	hppa*64*|ia64*)
10434	  hardcode_direct=no
10435	  hardcode_shlibpath_var=no
10436	  ;;
10437	*)
10438	  hardcode_direct=yes
10439	  hardcode_direct_absolute=yes
10440	  export_dynamic_flag_spec='$wl-E'
10441
10442	  # hardcode_minus_L: Not really in the search PATH,
10443	  # but as the default location of the library.
10444	  hardcode_minus_L=yes
10445	  ;;
10446	esac
10447      fi
10448      ;;
10449
10450    irix5* | irix6* | nonstopux*)
10451      if test yes = "$GCC"; then
10452	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'
10453	# Try to use the -exported_symbol ld option, if it does not
10454	# work, assume that -exports_file does not work either and
10455	# implicitly export all symbols.
10456	# This should be the same for all languages, so no per-tag cache variable.
10457	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10458printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10459if test ${lt_cv_irix_exported_symbol+y}
10460then :
10461  printf %s "(cached) " >&6
10462else $as_nop
10463  save_LDFLAGS=$LDFLAGS
10464	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10465	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10466/* end confdefs.h.  */
10467int foo (void) { return 0; }
10468_ACEOF
10469if ac_fn_c_try_link "$LINENO"
10470then :
10471  lt_cv_irix_exported_symbol=yes
10472else $as_nop
10473  lt_cv_irix_exported_symbol=no
10474fi
10475rm -f core conftest.err conftest.$ac_objext conftest.beam \
10476    conftest$ac_exeext conftest.$ac_ext
10477           LDFLAGS=$save_LDFLAGS
10478fi
10479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10480printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10481	if test yes = "$lt_cv_irix_exported_symbol"; then
10482          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'
10483	fi
10484      else
10485	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'
10486	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'
10487      fi
10488      archive_cmds_need_lc='no'
10489      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10490      hardcode_libdir_separator=:
10491      inherit_rpath=yes
10492      link_all_deplibs=yes
10493      ;;
10494
10495    linux*)
10496      case $cc_basename in
10497      tcc*)
10498	# Fabrice Bellard et al's Tiny C Compiler
10499	ld_shlibs=yes
10500	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10501	;;
10502      esac
10503      ;;
10504
10505    netbsd*)
10506      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10507	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10508      else
10509	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10510      fi
10511      hardcode_libdir_flag_spec='-R$libdir'
10512      hardcode_direct=yes
10513      hardcode_shlibpath_var=no
10514      ;;
10515
10516    newsos6)
10517      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10518      hardcode_direct=yes
10519      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10520      hardcode_libdir_separator=:
10521      hardcode_shlibpath_var=no
10522      ;;
10523
10524    *nto* | *qnx*)
10525      ;;
10526
10527    openbsd* | bitrig*)
10528      if test -f /usr/libexec/ld.so; then
10529	hardcode_direct=yes
10530	hardcode_shlibpath_var=no
10531	hardcode_direct_absolute=yes
10532	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10533	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10534	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10535	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10536	  export_dynamic_flag_spec='$wl-E'
10537	else
10538	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10539	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10540	fi
10541      else
10542	ld_shlibs=no
10543      fi
10544      ;;
10545
10546    os2*)
10547      hardcode_libdir_flag_spec='-L$libdir'
10548      hardcode_minus_L=yes
10549      allow_undefined_flag=unsupported
10550      shrext_cmds=.dll
10551      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10552	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10553	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10554	$ECHO EXPORTS >> $output_objdir/$libname.def~
10555	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10556	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10557	emximp -o $lib $output_objdir/$libname.def'
10558      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10559	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10560	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10561	$ECHO EXPORTS >> $output_objdir/$libname.def~
10562	prefix_cmds="$SED"~
10563	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10564	  prefix_cmds="$prefix_cmds -e 1d";
10565	fi~
10566	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10567	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10568	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10569	emximp -o $lib $output_objdir/$libname.def'
10570      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10571      enable_shared_with_static_runtimes=yes
10572      file_list_spec='@'
10573      ;;
10574
10575    osf3*)
10576      if test yes = "$GCC"; then
10577	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10578	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'
10579      else
10580	allow_undefined_flag=' -expect_unresolved \*'
10581	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'
10582      fi
10583      archive_cmds_need_lc='no'
10584      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10585      hardcode_libdir_separator=:
10586      ;;
10587
10588    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10589      if test yes = "$GCC"; then
10590	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10591	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'
10592	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10593      else
10594	allow_undefined_flag=' -expect_unresolved \*'
10595	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'
10596	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~
10597          $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'
10598
10599	# Both c and cxx compiler support -rpath directly
10600	hardcode_libdir_flag_spec='-rpath $libdir'
10601      fi
10602      archive_cmds_need_lc='no'
10603      hardcode_libdir_separator=:
10604      ;;
10605
10606    solaris*)
10607      no_undefined_flag=' -z defs'
10608      if test yes = "$GCC"; then
10609	wlarc='$wl'
10610	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10611	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10612          $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'
10613      else
10614	case `$CC -V 2>&1` in
10615	*"Compilers 5.0"*)
10616	  wlarc=''
10617	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10618	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10619            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10620	  ;;
10621	*)
10622	  wlarc='$wl'
10623	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10624	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10625            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10626	  ;;
10627	esac
10628      fi
10629      hardcode_libdir_flag_spec='-R$libdir'
10630      hardcode_shlibpath_var=no
10631      case $host_os in
10632      solaris2.[0-5] | solaris2.[0-5].*) ;;
10633      *)
10634	# The compiler driver will combine and reorder linker options,
10635	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10636	# but is careful enough not to reorder.
10637	# Supported since Solaris 2.6 (maybe 2.5.1?)
10638	if test yes = "$GCC"; then
10639	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10640	else
10641	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10642	fi
10643	;;
10644      esac
10645      link_all_deplibs=yes
10646      ;;
10647
10648    sunos4*)
10649      if test sequent = "$host_vendor"; then
10650	# Use $CC to link under sequent, because it throws in some extra .o
10651	# files that make .init and .fini sections work.
10652	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10653      else
10654	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10655      fi
10656      hardcode_libdir_flag_spec='-L$libdir'
10657      hardcode_direct=yes
10658      hardcode_minus_L=yes
10659      hardcode_shlibpath_var=no
10660      ;;
10661
10662    sysv4)
10663      case $host_vendor in
10664	sni)
10665	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10666	  hardcode_direct=yes # is this really true???
10667	;;
10668	siemens)
10669	  ## LD is ld it makes a PLAMLIB
10670	  ## CC just makes a GrossModule.
10671	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10672	  reload_cmds='$CC -r -o $output$reload_objs'
10673	  hardcode_direct=no
10674        ;;
10675	motorola)
10676	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10677	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10678	;;
10679      esac
10680      runpath_var='LD_RUN_PATH'
10681      hardcode_shlibpath_var=no
10682      ;;
10683
10684    sysv4.3*)
10685      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10686      hardcode_shlibpath_var=no
10687      export_dynamic_flag_spec='-Bexport'
10688      ;;
10689
10690    sysv4*MP*)
10691      if test -d /usr/nec; then
10692	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10693	hardcode_shlibpath_var=no
10694	runpath_var=LD_RUN_PATH
10695	hardcode_runpath_var=yes
10696	ld_shlibs=yes
10697      fi
10698      ;;
10699
10700    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10701      no_undefined_flag='$wl-z,text'
10702      archive_cmds_need_lc=no
10703      hardcode_shlibpath_var=no
10704      runpath_var='LD_RUN_PATH'
10705
10706      if test yes = "$GCC"; then
10707	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10708	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10709      else
10710	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10711	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10712      fi
10713      ;;
10714
10715    sysv5* | sco3.2v5* | sco5v6*)
10716      # Note: We CANNOT use -z defs as we might desire, because we do not
10717      # link with -lc, and that would cause any symbols used from libc to
10718      # always be unresolved, which means just about no library would
10719      # ever link correctly.  If we're not using GNU ld we use -z text
10720      # though, which does catch some bad symbols but isn't as heavy-handed
10721      # as -z defs.
10722      no_undefined_flag='$wl-z,text'
10723      allow_undefined_flag='$wl-z,nodefs'
10724      archive_cmds_need_lc=no
10725      hardcode_shlibpath_var=no
10726      hardcode_libdir_flag_spec='$wl-R,$libdir'
10727      hardcode_libdir_separator=':'
10728      link_all_deplibs=yes
10729      export_dynamic_flag_spec='$wl-Bexport'
10730      runpath_var='LD_RUN_PATH'
10731
10732      if test yes = "$GCC"; then
10733	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10734	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10735      else
10736	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10737	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10738      fi
10739      ;;
10740
10741    uts4*)
10742      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10743      hardcode_libdir_flag_spec='-L$libdir'
10744      hardcode_shlibpath_var=no
10745      ;;
10746
10747    *)
10748      ld_shlibs=no
10749      ;;
10750    esac
10751
10752    if test sni = "$host_vendor"; then
10753      case $host in
10754      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10755	export_dynamic_flag_spec='$wl-Blargedynsym'
10756	;;
10757      esac
10758    fi
10759  fi
10760
10761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10762printf "%s\n" "$ld_shlibs" >&6; }
10763test no = "$ld_shlibs" && can_build_shared=no
10764
10765with_gnu_ld=$with_gnu_ld
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781#
10782# Do we need to explicitly link libc?
10783#
10784case "x$archive_cmds_need_lc" in
10785x|xyes)
10786  # Assume -lc should be added
10787  archive_cmds_need_lc=yes
10788
10789  if test yes,yes = "$GCC,$enable_shared"; then
10790    case $archive_cmds in
10791    *'~'*)
10792      # FIXME: we may have to deal with multi-command sequences.
10793      ;;
10794    '$CC '*)
10795      # Test whether the compiler implicitly links with -lc since on some
10796      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10797      # to ld, don't add -lc before -lgcc.
10798      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10799printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10800if test ${lt_cv_archive_cmds_need_lc+y}
10801then :
10802  printf %s "(cached) " >&6
10803else $as_nop
10804  $RM conftest*
10805	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10806
10807	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10808  (eval $ac_compile) 2>&5
10809  ac_status=$?
10810  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10811  test $ac_status = 0; } 2>conftest.err; then
10812	  soname=conftest
10813	  lib=conftest
10814	  libobjs=conftest.$ac_objext
10815	  deplibs=
10816	  wl=$lt_prog_compiler_wl
10817	  pic_flag=$lt_prog_compiler_pic
10818	  compiler_flags=-v
10819	  linker_flags=-v
10820	  verstring=
10821	  output_objdir=.
10822	  libname=conftest
10823	  lt_save_allow_undefined_flag=$allow_undefined_flag
10824	  allow_undefined_flag=
10825	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10826  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10827  ac_status=$?
10828  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10829  test $ac_status = 0; }
10830	  then
10831	    lt_cv_archive_cmds_need_lc=no
10832	  else
10833	    lt_cv_archive_cmds_need_lc=yes
10834	  fi
10835	  allow_undefined_flag=$lt_save_allow_undefined_flag
10836	else
10837	  cat conftest.err 1>&5
10838	fi
10839	$RM conftest*
10840
10841fi
10842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10843printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10844      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10845      ;;
10846    esac
10847  fi
10848  ;;
10849esac
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11003printf %s "checking dynamic linker characteristics... " >&6; }
11004
11005if test yes = "$GCC"; then
11006  case $host_os in
11007    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11008    *) lt_awk_arg='/^libraries:/' ;;
11009  esac
11010  case $host_os in
11011    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11012    *) lt_sed_strip_eq='s|=/|/|g' ;;
11013  esac
11014  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11015  case $lt_search_path_spec in
11016  *\;*)
11017    # if the path contains ";" then we assume it to be the separator
11018    # otherwise default to the standard path separator (i.e. ":") - it is
11019    # assumed that no part of a normal pathname contains ";" but that should
11020    # okay in the real world where ";" in dirpaths is itself problematic.
11021    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11022    ;;
11023  *)
11024    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11025    ;;
11026  esac
11027  # Ok, now we have the path, separated by spaces, we can step through it
11028  # and add multilib dir if necessary...
11029  lt_tmp_lt_search_path_spec=
11030  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11031  # ...but if some path component already ends with the multilib dir we assume
11032  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11033  case "$lt_multi_os_dir; $lt_search_path_spec " in
11034  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11035    lt_multi_os_dir=
11036    ;;
11037  esac
11038  for lt_sys_path in $lt_search_path_spec; do
11039    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11040      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11041    elif test -n "$lt_multi_os_dir"; then
11042      test -d "$lt_sys_path" && \
11043	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11044    fi
11045  done
11046  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11047BEGIN {RS = " "; FS = "/|\n";} {
11048  lt_foo = "";
11049  lt_count = 0;
11050  for (lt_i = NF; lt_i > 0; lt_i--) {
11051    if ($lt_i != "" && $lt_i != ".") {
11052      if ($lt_i == "..") {
11053        lt_count++;
11054      } else {
11055        if (lt_count == 0) {
11056          lt_foo = "/" $lt_i lt_foo;
11057        } else {
11058          lt_count--;
11059        }
11060      }
11061    }
11062  }
11063  if (lt_foo != "") { lt_freq[lt_foo]++; }
11064  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11065}'`
11066  # AWK program above erroneously prepends '/' to C:/dos/paths
11067  # for these hosts.
11068  case $host_os in
11069    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11070      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11071  esac
11072  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11073else
11074  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11075fi
11076library_names_spec=
11077libname_spec='lib$name'
11078soname_spec=
11079shrext_cmds=.so
11080postinstall_cmds=
11081postuninstall_cmds=
11082finish_cmds=
11083finish_eval=
11084shlibpath_var=
11085shlibpath_overrides_runpath=unknown
11086version_type=none
11087dynamic_linker="$host_os ld.so"
11088sys_lib_dlsearch_path_spec="/lib /usr/lib"
11089need_lib_prefix=unknown
11090hardcode_into_libs=no
11091
11092# when you set need_version to no, make sure it does not cause -set_version
11093# flags to be left without arguments
11094need_version=unknown
11095
11096
11097
11098case $host_os in
11099aix3*)
11100  version_type=linux # correct to gnu/linux during the next big refactor
11101  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11102  shlibpath_var=LIBPATH
11103
11104  # AIX 3 has no versioning support, so we append a major version to the name.
11105  soname_spec='$libname$release$shared_ext$major'
11106  ;;
11107
11108aix[4-9]*)
11109  version_type=linux # correct to gnu/linux during the next big refactor
11110  need_lib_prefix=no
11111  need_version=no
11112  hardcode_into_libs=yes
11113  if test ia64 = "$host_cpu"; then
11114    # AIX 5 supports IA64
11115    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11116    shlibpath_var=LD_LIBRARY_PATH
11117  else
11118    # With GCC up to 2.95.x, collect2 would create an import file
11119    # for dependence libraries.  The import file would start with
11120    # the line '#! .'.  This would cause the generated library to
11121    # depend on '.', always an invalid library.  This was fixed in
11122    # development snapshots of GCC prior to 3.0.
11123    case $host_os in
11124      aix4 | aix4.[01] | aix4.[01].*)
11125      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11126	   echo ' yes '
11127	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11128	:
11129      else
11130	can_build_shared=no
11131      fi
11132      ;;
11133    esac
11134    # Using Import Files as archive members, it is possible to support
11135    # filename-based versioning of shared library archives on AIX. While
11136    # this would work for both with and without runtime linking, it will
11137    # prevent static linking of such archives. So we do filename-based
11138    # shared library versioning with .so extension only, which is used
11139    # when both runtime linking and shared linking is enabled.
11140    # Unfortunately, runtime linking may impact performance, so we do
11141    # not want this to be the default eventually. Also, we use the
11142    # versioned .so libs for executables only if there is the -brtl
11143    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11144    # To allow for filename-based versioning support, we need to create
11145    # libNAME.so.V as an archive file, containing:
11146    # *) an Import File, referring to the versioned filename of the
11147    #    archive as well as the shared archive member, telling the
11148    #    bitwidth (32 or 64) of that shared object, and providing the
11149    #    list of exported symbols of that shared object, eventually
11150    #    decorated with the 'weak' keyword
11151    # *) the shared object with the F_LOADONLY flag set, to really avoid
11152    #    it being seen by the linker.
11153    # At run time we better use the real file rather than another symlink,
11154    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11155
11156    case $with_aix_soname,$aix_use_runtimelinking in
11157    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11158    # soname into executable. Probably we can add versioning support to
11159    # collect2, so additional links can be useful in future.
11160    aix,yes) # traditional libtool
11161      dynamic_linker='AIX unversionable lib.so'
11162      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11163      # instead of lib<name>.a to let people know that these are not
11164      # typical AIX shared libraries.
11165      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11166      ;;
11167    aix,no) # traditional AIX only
11168      dynamic_linker='AIX lib.a(lib.so.V)'
11169      # We preserve .a as extension for shared libraries through AIX4.2
11170      # and later when we are not doing run time linking.
11171      library_names_spec='$libname$release.a $libname.a'
11172      soname_spec='$libname$release$shared_ext$major'
11173      ;;
11174    svr4,*) # full svr4 only
11175      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11176      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11177      # We do not specify a path in Import Files, so LIBPATH fires.
11178      shlibpath_overrides_runpath=yes
11179      ;;
11180    *,yes) # both, prefer svr4
11181      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11182      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11183      # unpreferred sharedlib libNAME.a needs extra handling
11184      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"'
11185      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"'
11186      # We do not specify a path in Import Files, so LIBPATH fires.
11187      shlibpath_overrides_runpath=yes
11188      ;;
11189    *,no) # both, prefer aix
11190      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11191      library_names_spec='$libname$release.a $libname.a'
11192      soname_spec='$libname$release$shared_ext$major'
11193      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11194      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)'
11195      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"'
11196      ;;
11197    esac
11198    shlibpath_var=LIBPATH
11199  fi
11200  ;;
11201
11202amigaos*)
11203  case $host_cpu in
11204  powerpc)
11205    # Since July 2007 AmigaOS4 officially supports .so libraries.
11206    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11207    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11208    ;;
11209  m68k)
11210    library_names_spec='$libname.ixlibrary $libname.a'
11211    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11212    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'
11213    ;;
11214  esac
11215  ;;
11216
11217beos*)
11218  library_names_spec='$libname$shared_ext'
11219  dynamic_linker="$host_os ld.so"
11220  shlibpath_var=LIBRARY_PATH
11221  ;;
11222
11223bsdi[45]*)
11224  version_type=linux # correct to gnu/linux during the next big refactor
11225  need_version=no
11226  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11227  soname_spec='$libname$release$shared_ext$major'
11228  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11229  shlibpath_var=LD_LIBRARY_PATH
11230  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11231  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11232  # the default ld.so.conf also contains /usr/contrib/lib and
11233  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11234  # libtool to hard-code these into programs
11235  ;;
11236
11237cygwin* | mingw* | pw32* | cegcc*)
11238  version_type=windows
11239  shrext_cmds=.dll
11240  need_version=no
11241  need_lib_prefix=no
11242
11243  case $GCC,$cc_basename in
11244  yes,*)
11245    # gcc
11246    library_names_spec='$libname.dll.a'
11247    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11248    postinstall_cmds='base_file=`basename \$file`~
11249      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11250      dldir=$destdir/`dirname \$dlpath`~
11251      test -d \$dldir || mkdir -p \$dldir~
11252      $install_prog $dir/$dlname \$dldir/$dlname~
11253      chmod a+x \$dldir/$dlname~
11254      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11255        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11256      fi'
11257    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11258      dlpath=$dir/\$dldll~
11259       $RM \$dlpath'
11260    shlibpath_overrides_runpath=yes
11261
11262    case $host_os in
11263    cygwin*)
11264      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11265      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11266
11267      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11268      ;;
11269    mingw* | cegcc*)
11270      # MinGW DLLs use traditional 'lib' prefix
11271      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11272      ;;
11273    pw32*)
11274      # pw32 DLLs use 'pw' prefix rather than 'lib'
11275      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11276      ;;
11277    esac
11278    dynamic_linker='Win32 ld.exe'
11279    ;;
11280
11281  *,cl* | *,icl*)
11282    # Native MSVC or ICC
11283    libname_spec='$name'
11284    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11285    library_names_spec='$libname.dll.lib'
11286
11287    case $build_os in
11288    mingw*)
11289      sys_lib_search_path_spec=
11290      lt_save_ifs=$IFS
11291      IFS=';'
11292      for lt_path in $LIB
11293      do
11294        IFS=$lt_save_ifs
11295        # Let DOS variable expansion print the short 8.3 style file name.
11296        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11297        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11298      done
11299      IFS=$lt_save_ifs
11300      # Convert to MSYS style.
11301      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11302      ;;
11303    cygwin*)
11304      # Convert to unix form, then to dos form, then back to unix form
11305      # but this time dos style (no spaces!) so that the unix form looks
11306      # like /cygdrive/c/PROGRA~1:/cygdr...
11307      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11308      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11309      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11310      ;;
11311    *)
11312      sys_lib_search_path_spec=$LIB
11313      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11314        # It is most probably a Windows format PATH.
11315        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11316      else
11317        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11318      fi
11319      # FIXME: find the short name or the path components, as spaces are
11320      # common. (e.g. "Program Files" -> "PROGRA~1")
11321      ;;
11322    esac
11323
11324    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11325    postinstall_cmds='base_file=`basename \$file`~
11326      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11327      dldir=$destdir/`dirname \$dlpath`~
11328      test -d \$dldir || mkdir -p \$dldir~
11329      $install_prog $dir/$dlname \$dldir/$dlname'
11330    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11331      dlpath=$dir/\$dldll~
11332       $RM \$dlpath'
11333    shlibpath_overrides_runpath=yes
11334    dynamic_linker='Win32 link.exe'
11335    ;;
11336
11337  *)
11338    # Assume MSVC and ICC wrapper
11339    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11340    dynamic_linker='Win32 ld.exe'
11341    ;;
11342  esac
11343  # FIXME: first we should search . and the directory the executable is in
11344  shlibpath_var=PATH
11345  ;;
11346
11347darwin* | rhapsody*)
11348  dynamic_linker="$host_os dyld"
11349  version_type=darwin
11350  need_lib_prefix=no
11351  need_version=no
11352  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11353  soname_spec='$libname$release$major$shared_ext'
11354  shlibpath_overrides_runpath=yes
11355  shlibpath_var=DYLD_LIBRARY_PATH
11356  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11357
11358  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11359  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11360  ;;
11361
11362dgux*)
11363  version_type=linux # correct to gnu/linux during the next big refactor
11364  need_lib_prefix=no
11365  need_version=no
11366  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11367  soname_spec='$libname$release$shared_ext$major'
11368  shlibpath_var=LD_LIBRARY_PATH
11369  ;;
11370
11371freebsd* | dragonfly* | midnightbsd*)
11372  # DragonFly does not have aout.  When/if they implement a new
11373  # versioning mechanism, adjust this.
11374  if test -x /usr/bin/objformat; then
11375    objformat=`/usr/bin/objformat`
11376  else
11377    case $host_os in
11378    freebsd[23].*) objformat=aout ;;
11379    *) objformat=elf ;;
11380    esac
11381  fi
11382  version_type=freebsd-$objformat
11383  case $version_type in
11384    freebsd-elf*)
11385      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11386      soname_spec='$libname$release$shared_ext$major'
11387      need_version=no
11388      need_lib_prefix=no
11389      ;;
11390    freebsd-*)
11391      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11392      need_version=yes
11393      ;;
11394  esac
11395  shlibpath_var=LD_LIBRARY_PATH
11396  case $host_os in
11397  freebsd2.*)
11398    shlibpath_overrides_runpath=yes
11399    ;;
11400  freebsd3.[01]* | freebsdelf3.[01]*)
11401    shlibpath_overrides_runpath=yes
11402    hardcode_into_libs=yes
11403    ;;
11404  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11405  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11406    shlibpath_overrides_runpath=no
11407    hardcode_into_libs=yes
11408    ;;
11409  *) # from 4.6 on, and DragonFly
11410    shlibpath_overrides_runpath=yes
11411    hardcode_into_libs=yes
11412    ;;
11413  esac
11414  ;;
11415
11416haiku*)
11417  version_type=linux # correct to gnu/linux during the next big refactor
11418  need_lib_prefix=no
11419  need_version=no
11420  dynamic_linker="$host_os runtime_loader"
11421  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11422  soname_spec='$libname$release$shared_ext$major'
11423  shlibpath_var=LIBRARY_PATH
11424  shlibpath_overrides_runpath=no
11425  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11426  hardcode_into_libs=yes
11427  ;;
11428
11429hpux9* | hpux10* | hpux11*)
11430  # Give a soname corresponding to the major version so that dld.sl refuses to
11431  # link against other versions.
11432  version_type=sunos
11433  need_lib_prefix=no
11434  need_version=no
11435  case $host_cpu in
11436  ia64*)
11437    shrext_cmds='.so'
11438    hardcode_into_libs=yes
11439    dynamic_linker="$host_os dld.so"
11440    shlibpath_var=LD_LIBRARY_PATH
11441    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11442    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11443    soname_spec='$libname$release$shared_ext$major'
11444    if test 32 = "$HPUX_IA64_MODE"; then
11445      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11446      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11447    else
11448      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11449      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11450    fi
11451    ;;
11452  hppa*64*)
11453    shrext_cmds='.sl'
11454    hardcode_into_libs=yes
11455    dynamic_linker="$host_os dld.sl"
11456    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11457    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11458    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11459    soname_spec='$libname$release$shared_ext$major'
11460    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11461    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11462    ;;
11463  *)
11464    shrext_cmds='.sl'
11465    dynamic_linker="$host_os dld.sl"
11466    shlibpath_var=SHLIB_PATH
11467    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11468    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11469    soname_spec='$libname$release$shared_ext$major'
11470    ;;
11471  esac
11472  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11473  postinstall_cmds='chmod 555 $lib'
11474  # or fails outright, so override atomically:
11475  install_override_mode=555
11476  ;;
11477
11478interix[3-9]*)
11479  version_type=linux # correct to gnu/linux during the next big refactor
11480  need_lib_prefix=no
11481  need_version=no
11482  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11483  soname_spec='$libname$release$shared_ext$major'
11484  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11485  shlibpath_var=LD_LIBRARY_PATH
11486  shlibpath_overrides_runpath=no
11487  hardcode_into_libs=yes
11488  ;;
11489
11490irix5* | irix6* | nonstopux*)
11491  case $host_os in
11492    nonstopux*) version_type=nonstopux ;;
11493    *)
11494	if test yes = "$lt_cv_prog_gnu_ld"; then
11495		version_type=linux # correct to gnu/linux during the next big refactor
11496	else
11497		version_type=irix
11498	fi ;;
11499  esac
11500  need_lib_prefix=no
11501  need_version=no
11502  soname_spec='$libname$release$shared_ext$major'
11503  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11504  case $host_os in
11505  irix5* | nonstopux*)
11506    libsuff= shlibsuff=
11507    ;;
11508  *)
11509    case $LD in # libtool.m4 will add one of these switches to LD
11510    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11511      libsuff= shlibsuff= libmagic=32-bit;;
11512    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11513      libsuff=32 shlibsuff=N32 libmagic=N32;;
11514    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11515      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11516    *) libsuff= shlibsuff= libmagic=never-match;;
11517    esac
11518    ;;
11519  esac
11520  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11521  shlibpath_overrides_runpath=no
11522  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11523  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11524  hardcode_into_libs=yes
11525  ;;
11526
11527# No shared lib support for Linux oldld, aout, or coff.
11528linux*oldld* | linux*aout* | linux*coff*)
11529  dynamic_linker=no
11530  ;;
11531
11532linux*android*)
11533  version_type=none # Android doesn't support versioned libraries.
11534  need_lib_prefix=no
11535  need_version=no
11536  library_names_spec='$libname$release$shared_ext'
11537  soname_spec='$libname$release$shared_ext'
11538  finish_cmds=
11539  shlibpath_var=LD_LIBRARY_PATH
11540  shlibpath_overrides_runpath=yes
11541
11542  # This implies no fast_install, which is unacceptable.
11543  # Some rework will be needed to allow for fast_install
11544  # before this can be enabled.
11545  hardcode_into_libs=yes
11546
11547  dynamic_linker='Android linker'
11548  # Don't embed -rpath directories since the linker doesn't support them.
11549  hardcode_libdir_flag_spec='-L$libdir'
11550  ;;
11551
11552# This must be glibc/ELF.
11553linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11554  version_type=linux # correct to gnu/linux during the next big refactor
11555  need_lib_prefix=no
11556  need_version=no
11557  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11558  soname_spec='$libname$release$shared_ext$major'
11559  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11560  shlibpath_var=LD_LIBRARY_PATH
11561  shlibpath_overrides_runpath=no
11562
11563  # Some binutils ld are patched to set DT_RUNPATH
11564  if test ${lt_cv_shlibpath_overrides_runpath+y}
11565then :
11566  printf %s "(cached) " >&6
11567else $as_nop
11568  lt_cv_shlibpath_overrides_runpath=no
11569    save_LDFLAGS=$LDFLAGS
11570    save_libdir=$libdir
11571    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11572	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11573    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574/* end confdefs.h.  */
11575
11576int
11577main (void)
11578{
11579
11580  ;
11581  return 0;
11582}
11583_ACEOF
11584if ac_fn_c_try_link "$LINENO"
11585then :
11586  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11587then :
11588  lt_cv_shlibpath_overrides_runpath=yes
11589fi
11590fi
11591rm -f core conftest.err conftest.$ac_objext conftest.beam \
11592    conftest$ac_exeext conftest.$ac_ext
11593    LDFLAGS=$save_LDFLAGS
11594    libdir=$save_libdir
11595
11596fi
11597
11598  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11599
11600  # This implies no fast_install, which is unacceptable.
11601  # Some rework will be needed to allow for fast_install
11602  # before this can be enabled.
11603  hardcode_into_libs=yes
11604
11605  # Ideally, we could use ldconfig to report *all* directores which are
11606  # searched for libraries, however this is still not possible.  Aside from not
11607  # being certain /sbin/ldconfig is available, command
11608  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11609  # even though it is searched at run-time.  Try to do the best guess by
11610  # appending ld.so.conf contents (and includes) to the search path.
11611  if test -f /etc/ld.so.conf; then
11612    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' ' '`
11613    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11614  fi
11615
11616  # We used to test for /lib/ld.so.1 and disable shared libraries on
11617  # powerpc, because MkLinux only supported shared libraries with the
11618  # GNU dynamic linker.  Since this was broken with cross compilers,
11619  # most powerpc-linux boxes support dynamic linking these days and
11620  # people can always --disable-shared, the test was removed, and we
11621  # assume the GNU/Linux dynamic linker is in use.
11622  dynamic_linker='GNU/Linux ld.so'
11623  ;;
11624
11625netbsd*)
11626  version_type=sunos
11627  need_lib_prefix=no
11628  need_version=no
11629  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11630    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11631    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11632    dynamic_linker='NetBSD (a.out) ld.so'
11633  else
11634    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11635    soname_spec='$libname$release$shared_ext$major'
11636    dynamic_linker='NetBSD ld.elf_so'
11637  fi
11638  shlibpath_var=LD_LIBRARY_PATH
11639  shlibpath_overrides_runpath=yes
11640  hardcode_into_libs=yes
11641  ;;
11642
11643newsos6)
11644  version_type=linux # correct to gnu/linux during the next big refactor
11645  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11646  shlibpath_var=LD_LIBRARY_PATH
11647  shlibpath_overrides_runpath=yes
11648  ;;
11649
11650*nto* | *qnx*)
11651  version_type=qnx
11652  need_lib_prefix=no
11653  need_version=no
11654  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11655  soname_spec='$libname$release$shared_ext$major'
11656  shlibpath_var=LD_LIBRARY_PATH
11657  shlibpath_overrides_runpath=no
11658  hardcode_into_libs=yes
11659  dynamic_linker='ldqnx.so'
11660  ;;
11661
11662openbsd* | bitrig*)
11663  version_type=sunos
11664  sys_lib_dlsearch_path_spec=/usr/lib
11665  need_lib_prefix=no
11666  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11667    need_version=no
11668  else
11669    need_version=yes
11670  fi
11671  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11672  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11673  shlibpath_var=LD_LIBRARY_PATH
11674  shlibpath_overrides_runpath=yes
11675  ;;
11676
11677os2*)
11678  libname_spec='$name'
11679  version_type=windows
11680  shrext_cmds=.dll
11681  need_version=no
11682  need_lib_prefix=no
11683  # OS/2 can only load a DLL with a base name of 8 characters or less.
11684  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11685    v=$($ECHO $release$versuffix | tr -d .-);
11686    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11687    $ECHO $n$v`$shared_ext'
11688  library_names_spec='${libname}_dll.$libext'
11689  dynamic_linker='OS/2 ld.exe'
11690  shlibpath_var=BEGINLIBPATH
11691  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11692  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11693  postinstall_cmds='base_file=`basename \$file`~
11694    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11695    dldir=$destdir/`dirname \$dlpath`~
11696    test -d \$dldir || mkdir -p \$dldir~
11697    $install_prog $dir/$dlname \$dldir/$dlname~
11698    chmod a+x \$dldir/$dlname~
11699    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11700      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11701    fi'
11702  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11703    dlpath=$dir/\$dldll~
11704    $RM \$dlpath'
11705  ;;
11706
11707osf3* | osf4* | osf5*)
11708  version_type=osf
11709  need_lib_prefix=no
11710  need_version=no
11711  soname_spec='$libname$release$shared_ext$major'
11712  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11713  shlibpath_var=LD_LIBRARY_PATH
11714  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11715  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11716  ;;
11717
11718rdos*)
11719  dynamic_linker=no
11720  ;;
11721
11722solaris*)
11723  version_type=linux # correct to gnu/linux during the next big refactor
11724  need_lib_prefix=no
11725  need_version=no
11726  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11727  soname_spec='$libname$release$shared_ext$major'
11728  shlibpath_var=LD_LIBRARY_PATH
11729  shlibpath_overrides_runpath=yes
11730  hardcode_into_libs=yes
11731  # ldd complains unless libraries are executable
11732  postinstall_cmds='chmod +x $lib'
11733  ;;
11734
11735sunos4*)
11736  version_type=sunos
11737  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11738  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11739  shlibpath_var=LD_LIBRARY_PATH
11740  shlibpath_overrides_runpath=yes
11741  if test yes = "$with_gnu_ld"; then
11742    need_lib_prefix=no
11743  fi
11744  need_version=yes
11745  ;;
11746
11747sysv4 | sysv4.3*)
11748  version_type=linux # correct to gnu/linux during the next big refactor
11749  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11750  soname_spec='$libname$release$shared_ext$major'
11751  shlibpath_var=LD_LIBRARY_PATH
11752  case $host_vendor in
11753    sni)
11754      shlibpath_overrides_runpath=no
11755      need_lib_prefix=no
11756      runpath_var=LD_RUN_PATH
11757      ;;
11758    siemens)
11759      need_lib_prefix=no
11760      ;;
11761    motorola)
11762      need_lib_prefix=no
11763      need_version=no
11764      shlibpath_overrides_runpath=no
11765      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11766      ;;
11767  esac
11768  ;;
11769
11770sysv4*MP*)
11771  if test -d /usr/nec; then
11772    version_type=linux # correct to gnu/linux during the next big refactor
11773    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11774    soname_spec='$libname$shared_ext.$major'
11775    shlibpath_var=LD_LIBRARY_PATH
11776  fi
11777  ;;
11778
11779sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11780  version_type=sco
11781  need_lib_prefix=no
11782  need_version=no
11783  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11784  soname_spec='$libname$release$shared_ext$major'
11785  shlibpath_var=LD_LIBRARY_PATH
11786  shlibpath_overrides_runpath=yes
11787  hardcode_into_libs=yes
11788  if test yes = "$with_gnu_ld"; then
11789    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11790  else
11791    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11792    case $host_os in
11793      sco3.2v5*)
11794        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11795	;;
11796    esac
11797  fi
11798  sys_lib_dlsearch_path_spec='/usr/lib'
11799  ;;
11800
11801tpf*)
11802  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11803  version_type=linux # correct to gnu/linux during the next big refactor
11804  need_lib_prefix=no
11805  need_version=no
11806  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11807  shlibpath_var=LD_LIBRARY_PATH
11808  shlibpath_overrides_runpath=no
11809  hardcode_into_libs=yes
11810  ;;
11811
11812uts4*)
11813  version_type=linux # correct to gnu/linux during the next big refactor
11814  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11815  soname_spec='$libname$release$shared_ext$major'
11816  shlibpath_var=LD_LIBRARY_PATH
11817  ;;
11818
11819*)
11820  dynamic_linker=no
11821  ;;
11822esac
11823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11824printf "%s\n" "$dynamic_linker" >&6; }
11825test no = "$dynamic_linker" && can_build_shared=no
11826
11827variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11828if test yes = "$GCC"; then
11829  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11830fi
11831
11832if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11833  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11834fi
11835
11836if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11837  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11838fi
11839
11840# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11841configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11842
11843# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11844func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11845
11846# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11847configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11946printf %s "checking how to hardcode library paths into programs... " >&6; }
11947hardcode_action=
11948if test -n "$hardcode_libdir_flag_spec" ||
11949   test -n "$runpath_var" ||
11950   test yes = "$hardcode_automatic"; then
11951
11952  # We can hardcode non-existent directories.
11953  if test no != "$hardcode_direct" &&
11954     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11955     # have to relink, otherwise we might link with an installed library
11956     # when we should be linking with a yet-to-be-installed one
11957     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11958     test no != "$hardcode_minus_L"; then
11959    # Linking always hardcodes the temporary library directory.
11960    hardcode_action=relink
11961  else
11962    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11963    hardcode_action=immediate
11964  fi
11965else
11966  # We cannot hardcode anything, or else we can only hardcode existing
11967  # directories.
11968  hardcode_action=unsupported
11969fi
11970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11971printf "%s\n" "$hardcode_action" >&6; }
11972
11973if test relink = "$hardcode_action" ||
11974   test yes = "$inherit_rpath"; then
11975  # Fast installation is not supported
11976  enable_fast_install=no
11977elif test yes = "$shlibpath_overrides_runpath" ||
11978     test no = "$enable_shared"; then
11979  # Fast installation is not necessary
11980  enable_fast_install=needless
11981fi
11982
11983
11984
11985
11986
11987
11988  if test yes != "$enable_dlopen"; then
11989  enable_dlopen=unknown
11990  enable_dlopen_self=unknown
11991  enable_dlopen_self_static=unknown
11992else
11993  lt_cv_dlopen=no
11994  lt_cv_dlopen_libs=
11995
11996  case $host_os in
11997  beos*)
11998    lt_cv_dlopen=load_add_on
11999    lt_cv_dlopen_libs=
12000    lt_cv_dlopen_self=yes
12001    ;;
12002
12003  mingw* | pw32* | cegcc*)
12004    lt_cv_dlopen=LoadLibrary
12005    lt_cv_dlopen_libs=
12006    ;;
12007
12008  cygwin*)
12009    lt_cv_dlopen=dlopen
12010    lt_cv_dlopen_libs=
12011    ;;
12012
12013  darwin*)
12014    # if libdl is installed we need to link against it
12015    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12016printf %s "checking for dlopen in -ldl... " >&6; }
12017if test ${ac_cv_lib_dl_dlopen+y}
12018then :
12019  printf %s "(cached) " >&6
12020else $as_nop
12021  ac_check_lib_save_LIBS=$LIBS
12022LIBS="-ldl  $LIBS"
12023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12024/* end confdefs.h.  */
12025
12026/* Override any GCC internal prototype to avoid an error.
12027   Use char because int might match the return type of a GCC
12028   builtin and then its argument prototype would still apply.  */
12029char dlopen ();
12030int
12031main (void)
12032{
12033return dlopen ();
12034  ;
12035  return 0;
12036}
12037_ACEOF
12038if ac_fn_c_try_link "$LINENO"
12039then :
12040  ac_cv_lib_dl_dlopen=yes
12041else $as_nop
12042  ac_cv_lib_dl_dlopen=no
12043fi
12044rm -f core conftest.err conftest.$ac_objext conftest.beam \
12045    conftest$ac_exeext conftest.$ac_ext
12046LIBS=$ac_check_lib_save_LIBS
12047fi
12048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12049printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12050if test "x$ac_cv_lib_dl_dlopen" = xyes
12051then :
12052  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12053else $as_nop
12054
12055    lt_cv_dlopen=dyld
12056    lt_cv_dlopen_libs=
12057    lt_cv_dlopen_self=yes
12058
12059fi
12060
12061    ;;
12062
12063  tpf*)
12064    # Don't try to run any link tests for TPF.  We know it's impossible
12065    # because TPF is a cross-compiler, and we know how we open DSOs.
12066    lt_cv_dlopen=dlopen
12067    lt_cv_dlopen_libs=
12068    lt_cv_dlopen_self=no
12069    ;;
12070
12071  *)
12072    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12073if test "x$ac_cv_func_shl_load" = xyes
12074then :
12075  lt_cv_dlopen=shl_load
12076else $as_nop
12077  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12078printf %s "checking for shl_load in -ldld... " >&6; }
12079if test ${ac_cv_lib_dld_shl_load+y}
12080then :
12081  printf %s "(cached) " >&6
12082else $as_nop
12083  ac_check_lib_save_LIBS=$LIBS
12084LIBS="-ldld  $LIBS"
12085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12086/* end confdefs.h.  */
12087
12088/* Override any GCC internal prototype to avoid an error.
12089   Use char because int might match the return type of a GCC
12090   builtin and then its argument prototype would still apply.  */
12091char shl_load ();
12092int
12093main (void)
12094{
12095return shl_load ();
12096  ;
12097  return 0;
12098}
12099_ACEOF
12100if ac_fn_c_try_link "$LINENO"
12101then :
12102  ac_cv_lib_dld_shl_load=yes
12103else $as_nop
12104  ac_cv_lib_dld_shl_load=no
12105fi
12106rm -f core conftest.err conftest.$ac_objext conftest.beam \
12107    conftest$ac_exeext conftest.$ac_ext
12108LIBS=$ac_check_lib_save_LIBS
12109fi
12110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12111printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12112if test "x$ac_cv_lib_dld_shl_load" = xyes
12113then :
12114  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12115else $as_nop
12116  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12117if test "x$ac_cv_func_dlopen" = xyes
12118then :
12119  lt_cv_dlopen=dlopen
12120else $as_nop
12121  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12122printf %s "checking for dlopen in -ldl... " >&6; }
12123if test ${ac_cv_lib_dl_dlopen+y}
12124then :
12125  printf %s "(cached) " >&6
12126else $as_nop
12127  ac_check_lib_save_LIBS=$LIBS
12128LIBS="-ldl  $LIBS"
12129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12130/* end confdefs.h.  */
12131
12132/* Override any GCC internal prototype to avoid an error.
12133   Use char because int might match the return type of a GCC
12134   builtin and then its argument prototype would still apply.  */
12135char dlopen ();
12136int
12137main (void)
12138{
12139return dlopen ();
12140  ;
12141  return 0;
12142}
12143_ACEOF
12144if ac_fn_c_try_link "$LINENO"
12145then :
12146  ac_cv_lib_dl_dlopen=yes
12147else $as_nop
12148  ac_cv_lib_dl_dlopen=no
12149fi
12150rm -f core conftest.err conftest.$ac_objext conftest.beam \
12151    conftest$ac_exeext conftest.$ac_ext
12152LIBS=$ac_check_lib_save_LIBS
12153fi
12154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12155printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12156if test "x$ac_cv_lib_dl_dlopen" = xyes
12157then :
12158  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12159else $as_nop
12160  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12161printf %s "checking for dlopen in -lsvld... " >&6; }
12162if test ${ac_cv_lib_svld_dlopen+y}
12163then :
12164  printf %s "(cached) " >&6
12165else $as_nop
12166  ac_check_lib_save_LIBS=$LIBS
12167LIBS="-lsvld  $LIBS"
12168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12169/* end confdefs.h.  */
12170
12171/* Override any GCC internal prototype to avoid an error.
12172   Use char because int might match the return type of a GCC
12173   builtin and then its argument prototype would still apply.  */
12174char dlopen ();
12175int
12176main (void)
12177{
12178return dlopen ();
12179  ;
12180  return 0;
12181}
12182_ACEOF
12183if ac_fn_c_try_link "$LINENO"
12184then :
12185  ac_cv_lib_svld_dlopen=yes
12186else $as_nop
12187  ac_cv_lib_svld_dlopen=no
12188fi
12189rm -f core conftest.err conftest.$ac_objext conftest.beam \
12190    conftest$ac_exeext conftest.$ac_ext
12191LIBS=$ac_check_lib_save_LIBS
12192fi
12193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12194printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12195if test "x$ac_cv_lib_svld_dlopen" = xyes
12196then :
12197  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12198else $as_nop
12199  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12200printf %s "checking for dld_link in -ldld... " >&6; }
12201if test ${ac_cv_lib_dld_dld_link+y}
12202then :
12203  printf %s "(cached) " >&6
12204else $as_nop
12205  ac_check_lib_save_LIBS=$LIBS
12206LIBS="-ldld  $LIBS"
12207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12208/* end confdefs.h.  */
12209
12210/* Override any GCC internal prototype to avoid an error.
12211   Use char because int might match the return type of a GCC
12212   builtin and then its argument prototype would still apply.  */
12213char dld_link ();
12214int
12215main (void)
12216{
12217return dld_link ();
12218  ;
12219  return 0;
12220}
12221_ACEOF
12222if ac_fn_c_try_link "$LINENO"
12223then :
12224  ac_cv_lib_dld_dld_link=yes
12225else $as_nop
12226  ac_cv_lib_dld_dld_link=no
12227fi
12228rm -f core conftest.err conftest.$ac_objext conftest.beam \
12229    conftest$ac_exeext conftest.$ac_ext
12230LIBS=$ac_check_lib_save_LIBS
12231fi
12232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12233printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12234if test "x$ac_cv_lib_dld_dld_link" = xyes
12235then :
12236  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12237fi
12238
12239
12240fi
12241
12242
12243fi
12244
12245
12246fi
12247
12248
12249fi
12250
12251
12252fi
12253
12254    ;;
12255  esac
12256
12257  if test no = "$lt_cv_dlopen"; then
12258    enable_dlopen=no
12259  else
12260    enable_dlopen=yes
12261  fi
12262
12263  case $lt_cv_dlopen in
12264  dlopen)
12265    save_CPPFLAGS=$CPPFLAGS
12266    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12267
12268    save_LDFLAGS=$LDFLAGS
12269    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12270
12271    save_LIBS=$LIBS
12272    LIBS="$lt_cv_dlopen_libs $LIBS"
12273
12274    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12275printf %s "checking whether a program can dlopen itself... " >&6; }
12276if test ${lt_cv_dlopen_self+y}
12277then :
12278  printf %s "(cached) " >&6
12279else $as_nop
12280  	  if test yes = "$cross_compiling"; then :
12281  lt_cv_dlopen_self=cross
12282else
12283  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12284  lt_status=$lt_dlunknown
12285  cat > conftest.$ac_ext <<_LT_EOF
12286#line $LINENO "configure"
12287#include "confdefs.h"
12288
12289#if HAVE_DLFCN_H
12290#include <dlfcn.h>
12291#endif
12292
12293#include <stdio.h>
12294
12295#ifdef RTLD_GLOBAL
12296#  define LT_DLGLOBAL		RTLD_GLOBAL
12297#else
12298#  ifdef DL_GLOBAL
12299#    define LT_DLGLOBAL		DL_GLOBAL
12300#  else
12301#    define LT_DLGLOBAL		0
12302#  endif
12303#endif
12304
12305/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12306   find out it does not work in some platform. */
12307#ifndef LT_DLLAZY_OR_NOW
12308#  ifdef RTLD_LAZY
12309#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12310#  else
12311#    ifdef DL_LAZY
12312#      define LT_DLLAZY_OR_NOW		DL_LAZY
12313#    else
12314#      ifdef RTLD_NOW
12315#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12316#      else
12317#        ifdef DL_NOW
12318#          define LT_DLLAZY_OR_NOW	DL_NOW
12319#        else
12320#          define LT_DLLAZY_OR_NOW	0
12321#        endif
12322#      endif
12323#    endif
12324#  endif
12325#endif
12326
12327/* When -fvisibility=hidden is used, assume the code has been annotated
12328   correspondingly for the symbols needed.  */
12329#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12330int fnord () __attribute__((visibility("default")));
12331#endif
12332
12333int fnord () { return 42; }
12334int main ()
12335{
12336  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12337  int status = $lt_dlunknown;
12338
12339  if (self)
12340    {
12341      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12342      else
12343        {
12344	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12345          else puts (dlerror ());
12346	}
12347      /* dlclose (self); */
12348    }
12349  else
12350    puts (dlerror ());
12351
12352  return status;
12353}
12354_LT_EOF
12355  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12356  (eval $ac_link) 2>&5
12357  ac_status=$?
12358  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12359  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12360    (./conftest; exit; ) >&5 2>/dev/null
12361    lt_status=$?
12362    case x$lt_status in
12363      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12364      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12365      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12366    esac
12367  else :
12368    # compilation failed
12369    lt_cv_dlopen_self=no
12370  fi
12371fi
12372rm -fr conftest*
12373
12374
12375fi
12376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12377printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12378
12379    if test yes = "$lt_cv_dlopen_self"; then
12380      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12381      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12382printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12383if test ${lt_cv_dlopen_self_static+y}
12384then :
12385  printf %s "(cached) " >&6
12386else $as_nop
12387  	  if test yes = "$cross_compiling"; then :
12388  lt_cv_dlopen_self_static=cross
12389else
12390  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12391  lt_status=$lt_dlunknown
12392  cat > conftest.$ac_ext <<_LT_EOF
12393#line $LINENO "configure"
12394#include "confdefs.h"
12395
12396#if HAVE_DLFCN_H
12397#include <dlfcn.h>
12398#endif
12399
12400#include <stdio.h>
12401
12402#ifdef RTLD_GLOBAL
12403#  define LT_DLGLOBAL		RTLD_GLOBAL
12404#else
12405#  ifdef DL_GLOBAL
12406#    define LT_DLGLOBAL		DL_GLOBAL
12407#  else
12408#    define LT_DLGLOBAL		0
12409#  endif
12410#endif
12411
12412/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12413   find out it does not work in some platform. */
12414#ifndef LT_DLLAZY_OR_NOW
12415#  ifdef RTLD_LAZY
12416#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12417#  else
12418#    ifdef DL_LAZY
12419#      define LT_DLLAZY_OR_NOW		DL_LAZY
12420#    else
12421#      ifdef RTLD_NOW
12422#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12423#      else
12424#        ifdef DL_NOW
12425#          define LT_DLLAZY_OR_NOW	DL_NOW
12426#        else
12427#          define LT_DLLAZY_OR_NOW	0
12428#        endif
12429#      endif
12430#    endif
12431#  endif
12432#endif
12433
12434/* When -fvisibility=hidden is used, assume the code has been annotated
12435   correspondingly for the symbols needed.  */
12436#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12437int fnord () __attribute__((visibility("default")));
12438#endif
12439
12440int fnord () { return 42; }
12441int main ()
12442{
12443  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12444  int status = $lt_dlunknown;
12445
12446  if (self)
12447    {
12448      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12449      else
12450        {
12451	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12452          else puts (dlerror ());
12453	}
12454      /* dlclose (self); */
12455    }
12456  else
12457    puts (dlerror ());
12458
12459  return status;
12460}
12461_LT_EOF
12462  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12463  (eval $ac_link) 2>&5
12464  ac_status=$?
12465  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12466  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12467    (./conftest; exit; ) >&5 2>/dev/null
12468    lt_status=$?
12469    case x$lt_status in
12470      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12471      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12472      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12473    esac
12474  else :
12475    # compilation failed
12476    lt_cv_dlopen_self_static=no
12477  fi
12478fi
12479rm -fr conftest*
12480
12481
12482fi
12483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12484printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12485    fi
12486
12487    CPPFLAGS=$save_CPPFLAGS
12488    LDFLAGS=$save_LDFLAGS
12489    LIBS=$save_LIBS
12490    ;;
12491  esac
12492
12493  case $lt_cv_dlopen_self in
12494  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12495  *) enable_dlopen_self=unknown ;;
12496  esac
12497
12498  case $lt_cv_dlopen_self_static in
12499  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12500  *) enable_dlopen_self_static=unknown ;;
12501  esac
12502fi
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520striplib=
12521old_striplib=
12522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12523printf %s "checking whether stripping libraries is possible... " >&6; }
12524if test -z "$STRIP"; then
12525  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12526printf "%s\n" "no" >&6; }
12527else
12528  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12529    old_striplib="$STRIP --strip-debug"
12530    striplib="$STRIP --strip-unneeded"
12531    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12532printf "%s\n" "yes" >&6; }
12533  else
12534    case $host_os in
12535    darwin*)
12536      # FIXME - insert some real tests, host_os isn't really good enough
12537      striplib="$STRIP -x"
12538      old_striplib="$STRIP -S"
12539      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12540printf "%s\n" "yes" >&6; }
12541      ;;
12542    freebsd*)
12543      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12544        old_striplib="$STRIP --strip-debug"
12545        striplib="$STRIP --strip-unneeded"
12546        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12547printf "%s\n" "yes" >&6; }
12548      else
12549        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550printf "%s\n" "no" >&6; }
12551      fi
12552      ;;
12553    *)
12554      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12555printf "%s\n" "no" >&6; }
12556      ;;
12557    esac
12558  fi
12559fi
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572  # Report what library types will actually be built
12573  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12574printf %s "checking if libtool supports shared libraries... " >&6; }
12575  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12576printf "%s\n" "$can_build_shared" >&6; }
12577
12578  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12579printf %s "checking whether to build shared libraries... " >&6; }
12580  test no = "$can_build_shared" && enable_shared=no
12581
12582  # On AIX, shared libraries and static libraries use the same namespace, and
12583  # are all built from PIC.
12584  case $host_os in
12585  aix3*)
12586    test yes = "$enable_shared" && enable_static=no
12587    if test -n "$RANLIB"; then
12588      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12589      postinstall_cmds='$RANLIB $lib'
12590    fi
12591    ;;
12592
12593  aix[4-9]*)
12594    if test ia64 != "$host_cpu"; then
12595      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12596      yes,aix,yes) ;;			# shared object as lib.so file only
12597      yes,svr4,*) ;;			# shared object as lib.so archive member only
12598      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12599      esac
12600    fi
12601    ;;
12602  esac
12603  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12604printf "%s\n" "$enable_shared" >&6; }
12605
12606  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12607printf %s "checking whether to build static libraries... " >&6; }
12608  # Make sure either enable_shared or enable_static is yes.
12609  test yes = "$enable_shared" || enable_static=yes
12610  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12611printf "%s\n" "$enable_static" >&6; }
12612
12613
12614
12615
12616fi
12617ac_ext=c
12618ac_cpp='$CPP $CPPFLAGS'
12619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12621ac_compiler_gnu=$ac_cv_c_compiler_gnu
12622
12623CC=$lt_save_CC
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639        ac_config_commands="$ac_config_commands libtool"
12640
12641
12642
12643
12644# Only expand once:
12645
12646
12647
12648# Require xorg-macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12661printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12662if test ${ac_cv_c_undeclared_builtin_options+y}
12663then :
12664  printf %s "(cached) " >&6
12665else $as_nop
12666  ac_save_CFLAGS=$CFLAGS
12667   ac_cv_c_undeclared_builtin_options='cannot detect'
12668   for ac_arg in '' -fno-builtin; do
12669     CFLAGS="$ac_save_CFLAGS $ac_arg"
12670     # This test program should *not* compile successfully.
12671     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12672/* end confdefs.h.  */
12673
12674int
12675main (void)
12676{
12677(void) strchr;
12678  ;
12679  return 0;
12680}
12681_ACEOF
12682if ac_fn_c_try_compile "$LINENO"
12683then :
12684
12685else $as_nop
12686  # This test program should compile successfully.
12687        # No library function is consistently available on
12688        # freestanding implementations, so test against a dummy
12689        # declaration.  Include always-available headers on the
12690        # off chance that they somehow elicit warnings.
12691        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12692/* end confdefs.h.  */
12693#include <float.h>
12694#include <limits.h>
12695#include <stdarg.h>
12696#include <stddef.h>
12697extern void ac_decl (int, char *);
12698
12699int
12700main (void)
12701{
12702(void) ac_decl (0, (char *) 0);
12703  (void) ac_decl;
12704
12705  ;
12706  return 0;
12707}
12708_ACEOF
12709if ac_fn_c_try_compile "$LINENO"
12710then :
12711  if test x"$ac_arg" = x
12712then :
12713  ac_cv_c_undeclared_builtin_options='none needed'
12714else $as_nop
12715  ac_cv_c_undeclared_builtin_options=$ac_arg
12716fi
12717          break
12718fi
12719rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12720fi
12721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12722    done
12723    CFLAGS=$ac_save_CFLAGS
12724
12725fi
12726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12727printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12728  case $ac_cv_c_undeclared_builtin_options in #(
12729  'cannot detect') :
12730    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12731printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12732as_fn_error $? "cannot make $CC report undeclared builtins
12733See \`config.log' for more details" "$LINENO" 5; } ;; #(
12734  'none needed') :
12735    ac_c_undeclared_builtin_options='' ;; #(
12736  *) :
12737    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12738esac
12739
12740
12741
12742
12743
12744ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12745if test "x$ac_cv_have_decl___clang__" = xyes
12746then :
12747  CLANGCC="yes"
12748else $as_nop
12749  CLANGCC="no"
12750fi
12751ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12752if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
12753then :
12754  INTELCC="yes"
12755else $as_nop
12756  INTELCC="no"
12757fi
12758ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12759if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
12760then :
12761  SUNCC="yes"
12762else $as_nop
12763  SUNCC="no"
12764fi
12765
12766
12767
12768
12769
12770
12771
12772
12773if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12774	if test -n "$ac_tool_prefix"; then
12775  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12776set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12778printf %s "checking for $ac_word... " >&6; }
12779if test ${ac_cv_path_PKG_CONFIG+y}
12780then :
12781  printf %s "(cached) " >&6
12782else $as_nop
12783  case $PKG_CONFIG in
12784  [\\/]* | ?:[\\/]*)
12785  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12786  ;;
12787  *)
12788  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12789for as_dir in $PATH
12790do
12791  IFS=$as_save_IFS
12792  case $as_dir in #(((
12793    '') as_dir=./ ;;
12794    */) ;;
12795    *) as_dir=$as_dir/ ;;
12796  esac
12797    for ac_exec_ext in '' $ac_executable_extensions; do
12798  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12799    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12800    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12801    break 2
12802  fi
12803done
12804  done
12805IFS=$as_save_IFS
12806
12807  ;;
12808esac
12809fi
12810PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12811if test -n "$PKG_CONFIG"; then
12812  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12813printf "%s\n" "$PKG_CONFIG" >&6; }
12814else
12815  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12816printf "%s\n" "no" >&6; }
12817fi
12818
12819
12820fi
12821if test -z "$ac_cv_path_PKG_CONFIG"; then
12822  ac_pt_PKG_CONFIG=$PKG_CONFIG
12823  # Extract the first word of "pkg-config", so it can be a program name with args.
12824set dummy pkg-config; ac_word=$2
12825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12826printf %s "checking for $ac_word... " >&6; }
12827if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12828then :
12829  printf %s "(cached) " >&6
12830else $as_nop
12831  case $ac_pt_PKG_CONFIG in
12832  [\\/]* | ?:[\\/]*)
12833  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12834  ;;
12835  *)
12836  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12837for as_dir in $PATH
12838do
12839  IFS=$as_save_IFS
12840  case $as_dir in #(((
12841    '') as_dir=./ ;;
12842    */) ;;
12843    *) as_dir=$as_dir/ ;;
12844  esac
12845    for ac_exec_ext in '' $ac_executable_extensions; do
12846  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12847    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12848    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12849    break 2
12850  fi
12851done
12852  done
12853IFS=$as_save_IFS
12854
12855  ;;
12856esac
12857fi
12858ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12859if test -n "$ac_pt_PKG_CONFIG"; then
12860  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12861printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
12862else
12863  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12864printf "%s\n" "no" >&6; }
12865fi
12866
12867  if test "x$ac_pt_PKG_CONFIG" = x; then
12868    PKG_CONFIG=""
12869  else
12870    case $cross_compiling:$ac_tool_warned in
12871yes:)
12872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12873printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12874ac_tool_warned=yes ;;
12875esac
12876    PKG_CONFIG=$ac_pt_PKG_CONFIG
12877  fi
12878else
12879  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12880fi
12881
12882fi
12883if test -n "$PKG_CONFIG"; then
12884	_pkg_min_version=0.9.0
12885	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12886printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12887	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12888		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12889printf "%s\n" "yes" >&6; }
12890	else
12891		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12892printf "%s\n" "no" >&6; }
12893		PKG_CONFIG=""
12894	fi
12895fi
12896
12897
12898
12899
12900
12901# Check whether --enable-selective-werror was given.
12902if test ${enable_selective_werror+y}
12903then :
12904  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12905else $as_nop
12906  SELECTIVE_WERROR=yes
12907fi
12908
12909
12910
12911
12912
12913# -v is too short to test reliably with XORG_TESTSET_CFLAG
12914if test "x$SUNCC" = "xyes"; then
12915    BASE_CFLAGS="-v"
12916else
12917    BASE_CFLAGS=""
12918fi
12919
12920# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934xorg_testset_save_CFLAGS="$CFLAGS"
12935
12936if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12937	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12938	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12939printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12940if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12941then :
12942  printf %s "(cached) " >&6
12943else $as_nop
12944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12945/* end confdefs.h.  */
12946int i;
12947_ACEOF
12948if ac_fn_c_try_compile "$LINENO"
12949then :
12950  xorg_cv_cc_flag_unknown_warning_option=yes
12951else $as_nop
12952  xorg_cv_cc_flag_unknown_warning_option=no
12953fi
12954rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12955fi
12956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12957printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12958	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12959	CFLAGS="$xorg_testset_save_CFLAGS"
12960fi
12961
12962if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12963	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12964		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12965	fi
12966	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12967	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12968printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12969if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
12970then :
12971  printf %s "(cached) " >&6
12972else $as_nop
12973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12974/* end confdefs.h.  */
12975int i;
12976_ACEOF
12977if ac_fn_c_try_compile "$LINENO"
12978then :
12979  xorg_cv_cc_flag_unused_command_line_argument=yes
12980else $as_nop
12981  xorg_cv_cc_flag_unused_command_line_argument=no
12982fi
12983rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12984fi
12985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12986printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12987	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12988	CFLAGS="$xorg_testset_save_CFLAGS"
12989fi
12990
12991found="no"
12992
12993	if test $found = "no" ; then
12994		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12995			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12996		fi
12997
12998		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12999			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13000		fi
13001
13002		CFLAGS="$CFLAGS -Wall"
13003
13004		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13005printf %s "checking if $CC supports -Wall... " >&6; }
13006		cacheid=xorg_cv_cc_flag__Wall
13007		if eval test \${$cacheid+y}
13008then :
13009  printf %s "(cached) " >&6
13010else $as_nop
13011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13012/* end confdefs.h.  */
13013int i;
13014int
13015main (void)
13016{
13017
13018  ;
13019  return 0;
13020}
13021_ACEOF
13022if ac_fn_c_try_link "$LINENO"
13023then :
13024  eval $cacheid=yes
13025else $as_nop
13026  eval $cacheid=no
13027fi
13028rm -f core conftest.err conftest.$ac_objext conftest.beam \
13029    conftest$ac_exeext conftest.$ac_ext
13030fi
13031
13032
13033		CFLAGS="$xorg_testset_save_CFLAGS"
13034
13035		eval supported=\$$cacheid
13036		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13037printf "%s\n" "$supported" >&6; }
13038		if test "$supported" = "yes" ; then
13039			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13040			found="yes"
13041		fi
13042	fi
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058xorg_testset_save_CFLAGS="$CFLAGS"
13059
13060if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13061	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13062	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13063printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13064if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13065then :
13066  printf %s "(cached) " >&6
13067else $as_nop
13068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13069/* end confdefs.h.  */
13070int i;
13071_ACEOF
13072if ac_fn_c_try_compile "$LINENO"
13073then :
13074  xorg_cv_cc_flag_unknown_warning_option=yes
13075else $as_nop
13076  xorg_cv_cc_flag_unknown_warning_option=no
13077fi
13078rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13079fi
13080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13081printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13082	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13083	CFLAGS="$xorg_testset_save_CFLAGS"
13084fi
13085
13086if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13087	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13088		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13089	fi
13090	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13091	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13092printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13093if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13094then :
13095  printf %s "(cached) " >&6
13096else $as_nop
13097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13098/* end confdefs.h.  */
13099int i;
13100_ACEOF
13101if ac_fn_c_try_compile "$LINENO"
13102then :
13103  xorg_cv_cc_flag_unused_command_line_argument=yes
13104else $as_nop
13105  xorg_cv_cc_flag_unused_command_line_argument=no
13106fi
13107rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13108fi
13109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13110printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13111	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13112	CFLAGS="$xorg_testset_save_CFLAGS"
13113fi
13114
13115found="no"
13116
13117	if test $found = "no" ; then
13118		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13119			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13120		fi
13121
13122		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13123			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13124		fi
13125
13126		CFLAGS="$CFLAGS -Wpointer-arith"
13127
13128		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13129printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13130		cacheid=xorg_cv_cc_flag__Wpointer_arith
13131		if eval test \${$cacheid+y}
13132then :
13133  printf %s "(cached) " >&6
13134else $as_nop
13135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13136/* end confdefs.h.  */
13137int i;
13138int
13139main (void)
13140{
13141
13142  ;
13143  return 0;
13144}
13145_ACEOF
13146if ac_fn_c_try_link "$LINENO"
13147then :
13148  eval $cacheid=yes
13149else $as_nop
13150  eval $cacheid=no
13151fi
13152rm -f core conftest.err conftest.$ac_objext conftest.beam \
13153    conftest$ac_exeext conftest.$ac_ext
13154fi
13155
13156
13157		CFLAGS="$xorg_testset_save_CFLAGS"
13158
13159		eval supported=\$$cacheid
13160		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13161printf "%s\n" "$supported" >&6; }
13162		if test "$supported" = "yes" ; then
13163			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13164			found="yes"
13165		fi
13166	fi
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182xorg_testset_save_CFLAGS="$CFLAGS"
13183
13184if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13185	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13186	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13187printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13188if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13189then :
13190  printf %s "(cached) " >&6
13191else $as_nop
13192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13193/* end confdefs.h.  */
13194int i;
13195_ACEOF
13196if ac_fn_c_try_compile "$LINENO"
13197then :
13198  xorg_cv_cc_flag_unknown_warning_option=yes
13199else $as_nop
13200  xorg_cv_cc_flag_unknown_warning_option=no
13201fi
13202rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13203fi
13204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13205printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13206	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13207	CFLAGS="$xorg_testset_save_CFLAGS"
13208fi
13209
13210if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13211	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13212		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13213	fi
13214	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13215	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13216printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13217if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13218then :
13219  printf %s "(cached) " >&6
13220else $as_nop
13221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13222/* end confdefs.h.  */
13223int i;
13224_ACEOF
13225if ac_fn_c_try_compile "$LINENO"
13226then :
13227  xorg_cv_cc_flag_unused_command_line_argument=yes
13228else $as_nop
13229  xorg_cv_cc_flag_unused_command_line_argument=no
13230fi
13231rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13232fi
13233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13234printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13235	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13236	CFLAGS="$xorg_testset_save_CFLAGS"
13237fi
13238
13239found="no"
13240
13241	if test $found = "no" ; then
13242		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13243			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13244		fi
13245
13246		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13247			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13248		fi
13249
13250		CFLAGS="$CFLAGS -Wmissing-declarations"
13251
13252		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13253printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13254		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13255		if eval test \${$cacheid+y}
13256then :
13257  printf %s "(cached) " >&6
13258else $as_nop
13259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13260/* end confdefs.h.  */
13261int i;
13262int
13263main (void)
13264{
13265
13266  ;
13267  return 0;
13268}
13269_ACEOF
13270if ac_fn_c_try_link "$LINENO"
13271then :
13272  eval $cacheid=yes
13273else $as_nop
13274  eval $cacheid=no
13275fi
13276rm -f core conftest.err conftest.$ac_objext conftest.beam \
13277    conftest$ac_exeext conftest.$ac_ext
13278fi
13279
13280
13281		CFLAGS="$xorg_testset_save_CFLAGS"
13282
13283		eval supported=\$$cacheid
13284		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13285printf "%s\n" "$supported" >&6; }
13286		if test "$supported" = "yes" ; then
13287			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13288			found="yes"
13289		fi
13290	fi
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306xorg_testset_save_CFLAGS="$CFLAGS"
13307
13308if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13309	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13310	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13311printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13312if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13313then :
13314  printf %s "(cached) " >&6
13315else $as_nop
13316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13317/* end confdefs.h.  */
13318int i;
13319_ACEOF
13320if ac_fn_c_try_compile "$LINENO"
13321then :
13322  xorg_cv_cc_flag_unknown_warning_option=yes
13323else $as_nop
13324  xorg_cv_cc_flag_unknown_warning_option=no
13325fi
13326rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13327fi
13328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13329printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13330	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13331	CFLAGS="$xorg_testset_save_CFLAGS"
13332fi
13333
13334if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13335	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13336		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13337	fi
13338	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13339	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13340printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13341if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13342then :
13343  printf %s "(cached) " >&6
13344else $as_nop
13345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13346/* end confdefs.h.  */
13347int i;
13348_ACEOF
13349if ac_fn_c_try_compile "$LINENO"
13350then :
13351  xorg_cv_cc_flag_unused_command_line_argument=yes
13352else $as_nop
13353  xorg_cv_cc_flag_unused_command_line_argument=no
13354fi
13355rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13356fi
13357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13358printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13359	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13360	CFLAGS="$xorg_testset_save_CFLAGS"
13361fi
13362
13363found="no"
13364
13365	if test $found = "no" ; then
13366		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13367			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13368		fi
13369
13370		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13371			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13372		fi
13373
13374		CFLAGS="$CFLAGS -Wformat=2"
13375
13376		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13377printf %s "checking if $CC supports -Wformat=2... " >&6; }
13378		cacheid=xorg_cv_cc_flag__Wformat_2
13379		if eval test \${$cacheid+y}
13380then :
13381  printf %s "(cached) " >&6
13382else $as_nop
13383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13384/* end confdefs.h.  */
13385int i;
13386int
13387main (void)
13388{
13389
13390  ;
13391  return 0;
13392}
13393_ACEOF
13394if ac_fn_c_try_link "$LINENO"
13395then :
13396  eval $cacheid=yes
13397else $as_nop
13398  eval $cacheid=no
13399fi
13400rm -f core conftest.err conftest.$ac_objext conftest.beam \
13401    conftest$ac_exeext conftest.$ac_ext
13402fi
13403
13404
13405		CFLAGS="$xorg_testset_save_CFLAGS"
13406
13407		eval supported=\$$cacheid
13408		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13409printf "%s\n" "$supported" >&6; }
13410		if test "$supported" = "yes" ; then
13411			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13412			found="yes"
13413		fi
13414	fi
13415
13416	if test $found = "no" ; then
13417		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13418			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13419		fi
13420
13421		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13422			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13423		fi
13424
13425		CFLAGS="$CFLAGS -Wformat"
13426
13427		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13428printf %s "checking if $CC supports -Wformat... " >&6; }
13429		cacheid=xorg_cv_cc_flag__Wformat
13430		if eval test \${$cacheid+y}
13431then :
13432  printf %s "(cached) " >&6
13433else $as_nop
13434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13435/* end confdefs.h.  */
13436int i;
13437int
13438main (void)
13439{
13440
13441  ;
13442  return 0;
13443}
13444_ACEOF
13445if ac_fn_c_try_link "$LINENO"
13446then :
13447  eval $cacheid=yes
13448else $as_nop
13449  eval $cacheid=no
13450fi
13451rm -f core conftest.err conftest.$ac_objext conftest.beam \
13452    conftest$ac_exeext conftest.$ac_ext
13453fi
13454
13455
13456		CFLAGS="$xorg_testset_save_CFLAGS"
13457
13458		eval supported=\$$cacheid
13459		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13460printf "%s\n" "$supported" >&6; }
13461		if test "$supported" = "yes" ; then
13462			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13463			found="yes"
13464		fi
13465	fi
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483xorg_testset_save_CFLAGS="$CFLAGS"
13484
13485if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13486	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13487	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13488printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13489if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13490then :
13491  printf %s "(cached) " >&6
13492else $as_nop
13493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13494/* end confdefs.h.  */
13495int i;
13496_ACEOF
13497if ac_fn_c_try_compile "$LINENO"
13498then :
13499  xorg_cv_cc_flag_unknown_warning_option=yes
13500else $as_nop
13501  xorg_cv_cc_flag_unknown_warning_option=no
13502fi
13503rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13504fi
13505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13506printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13507	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13508	CFLAGS="$xorg_testset_save_CFLAGS"
13509fi
13510
13511if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13512	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13513		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13514	fi
13515	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13516	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13517printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13518if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13519then :
13520  printf %s "(cached) " >&6
13521else $as_nop
13522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13523/* end confdefs.h.  */
13524int i;
13525_ACEOF
13526if ac_fn_c_try_compile "$LINENO"
13527then :
13528  xorg_cv_cc_flag_unused_command_line_argument=yes
13529else $as_nop
13530  xorg_cv_cc_flag_unused_command_line_argument=no
13531fi
13532rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13533fi
13534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13535printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13536	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13537	CFLAGS="$xorg_testset_save_CFLAGS"
13538fi
13539
13540found="no"
13541
13542	if test $found = "no" ; then
13543		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13544			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13545		fi
13546
13547		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13548			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13549		fi
13550
13551		CFLAGS="$CFLAGS -Wstrict-prototypes"
13552
13553		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13554printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13555		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13556		if eval test \${$cacheid+y}
13557then :
13558  printf %s "(cached) " >&6
13559else $as_nop
13560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13561/* end confdefs.h.  */
13562int i;
13563int
13564main (void)
13565{
13566
13567  ;
13568  return 0;
13569}
13570_ACEOF
13571if ac_fn_c_try_link "$LINENO"
13572then :
13573  eval $cacheid=yes
13574else $as_nop
13575  eval $cacheid=no
13576fi
13577rm -f core conftest.err conftest.$ac_objext conftest.beam \
13578    conftest$ac_exeext conftest.$ac_ext
13579fi
13580
13581
13582		CFLAGS="$xorg_testset_save_CFLAGS"
13583
13584		eval supported=\$$cacheid
13585		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13586printf "%s\n" "$supported" >&6; }
13587		if test "$supported" = "yes" ; then
13588			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13589			found="yes"
13590		fi
13591	fi
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607xorg_testset_save_CFLAGS="$CFLAGS"
13608
13609if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13610	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13611	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13612printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13613if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13614then :
13615  printf %s "(cached) " >&6
13616else $as_nop
13617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13618/* end confdefs.h.  */
13619int i;
13620_ACEOF
13621if ac_fn_c_try_compile "$LINENO"
13622then :
13623  xorg_cv_cc_flag_unknown_warning_option=yes
13624else $as_nop
13625  xorg_cv_cc_flag_unknown_warning_option=no
13626fi
13627rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13628fi
13629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13630printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13631	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13632	CFLAGS="$xorg_testset_save_CFLAGS"
13633fi
13634
13635if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13636	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13637		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13638	fi
13639	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13640	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13641printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13642if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13643then :
13644  printf %s "(cached) " >&6
13645else $as_nop
13646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13647/* end confdefs.h.  */
13648int i;
13649_ACEOF
13650if ac_fn_c_try_compile "$LINENO"
13651then :
13652  xorg_cv_cc_flag_unused_command_line_argument=yes
13653else $as_nop
13654  xorg_cv_cc_flag_unused_command_line_argument=no
13655fi
13656rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13657fi
13658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13659printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13660	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13661	CFLAGS="$xorg_testset_save_CFLAGS"
13662fi
13663
13664found="no"
13665
13666	if test $found = "no" ; then
13667		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13668			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13669		fi
13670
13671		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13672			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13673		fi
13674
13675		CFLAGS="$CFLAGS -Wmissing-prototypes"
13676
13677		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13678printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13679		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13680		if eval test \${$cacheid+y}
13681then :
13682  printf %s "(cached) " >&6
13683else $as_nop
13684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13685/* end confdefs.h.  */
13686int i;
13687int
13688main (void)
13689{
13690
13691  ;
13692  return 0;
13693}
13694_ACEOF
13695if ac_fn_c_try_link "$LINENO"
13696then :
13697  eval $cacheid=yes
13698else $as_nop
13699  eval $cacheid=no
13700fi
13701rm -f core conftest.err conftest.$ac_objext conftest.beam \
13702    conftest$ac_exeext conftest.$ac_ext
13703fi
13704
13705
13706		CFLAGS="$xorg_testset_save_CFLAGS"
13707
13708		eval supported=\$$cacheid
13709		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13710printf "%s\n" "$supported" >&6; }
13711		if test "$supported" = "yes" ; then
13712			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13713			found="yes"
13714		fi
13715	fi
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731xorg_testset_save_CFLAGS="$CFLAGS"
13732
13733if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13734	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13735	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13736printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13737if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13738then :
13739  printf %s "(cached) " >&6
13740else $as_nop
13741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13742/* end confdefs.h.  */
13743int i;
13744_ACEOF
13745if ac_fn_c_try_compile "$LINENO"
13746then :
13747  xorg_cv_cc_flag_unknown_warning_option=yes
13748else $as_nop
13749  xorg_cv_cc_flag_unknown_warning_option=no
13750fi
13751rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13752fi
13753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13754printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13755	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13756	CFLAGS="$xorg_testset_save_CFLAGS"
13757fi
13758
13759if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13760	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13761		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13762	fi
13763	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13764	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13765printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13766if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13767then :
13768  printf %s "(cached) " >&6
13769else $as_nop
13770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13771/* end confdefs.h.  */
13772int i;
13773_ACEOF
13774if ac_fn_c_try_compile "$LINENO"
13775then :
13776  xorg_cv_cc_flag_unused_command_line_argument=yes
13777else $as_nop
13778  xorg_cv_cc_flag_unused_command_line_argument=no
13779fi
13780rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13781fi
13782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13783printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13784	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13785	CFLAGS="$xorg_testset_save_CFLAGS"
13786fi
13787
13788found="no"
13789
13790	if test $found = "no" ; then
13791		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13792			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13793		fi
13794
13795		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13796			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13797		fi
13798
13799		CFLAGS="$CFLAGS -Wnested-externs"
13800
13801		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13802printf %s "checking if $CC supports -Wnested-externs... " >&6; }
13803		cacheid=xorg_cv_cc_flag__Wnested_externs
13804		if eval test \${$cacheid+y}
13805then :
13806  printf %s "(cached) " >&6
13807else $as_nop
13808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13809/* end confdefs.h.  */
13810int i;
13811int
13812main (void)
13813{
13814
13815  ;
13816  return 0;
13817}
13818_ACEOF
13819if ac_fn_c_try_link "$LINENO"
13820then :
13821  eval $cacheid=yes
13822else $as_nop
13823  eval $cacheid=no
13824fi
13825rm -f core conftest.err conftest.$ac_objext conftest.beam \
13826    conftest$ac_exeext conftest.$ac_ext
13827fi
13828
13829
13830		CFLAGS="$xorg_testset_save_CFLAGS"
13831
13832		eval supported=\$$cacheid
13833		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13834printf "%s\n" "$supported" >&6; }
13835		if test "$supported" = "yes" ; then
13836			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13837			found="yes"
13838		fi
13839	fi
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855xorg_testset_save_CFLAGS="$CFLAGS"
13856
13857if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13858	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13859	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13860printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13861if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13862then :
13863  printf %s "(cached) " >&6
13864else $as_nop
13865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13866/* end confdefs.h.  */
13867int i;
13868_ACEOF
13869if ac_fn_c_try_compile "$LINENO"
13870then :
13871  xorg_cv_cc_flag_unknown_warning_option=yes
13872else $as_nop
13873  xorg_cv_cc_flag_unknown_warning_option=no
13874fi
13875rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13876fi
13877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13878printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13879	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13880	CFLAGS="$xorg_testset_save_CFLAGS"
13881fi
13882
13883if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13884	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13885		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13886	fi
13887	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13888	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13889printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13890if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13891then :
13892  printf %s "(cached) " >&6
13893else $as_nop
13894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13895/* end confdefs.h.  */
13896int i;
13897_ACEOF
13898if ac_fn_c_try_compile "$LINENO"
13899then :
13900  xorg_cv_cc_flag_unused_command_line_argument=yes
13901else $as_nop
13902  xorg_cv_cc_flag_unused_command_line_argument=no
13903fi
13904rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13905fi
13906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13907printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13908	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13909	CFLAGS="$xorg_testset_save_CFLAGS"
13910fi
13911
13912found="no"
13913
13914	if test $found = "no" ; then
13915		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13916			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13917		fi
13918
13919		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13920			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13921		fi
13922
13923		CFLAGS="$CFLAGS -Wbad-function-cast"
13924
13925		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13926printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
13927		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13928		if eval test \${$cacheid+y}
13929then :
13930  printf %s "(cached) " >&6
13931else $as_nop
13932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13933/* end confdefs.h.  */
13934int i;
13935int
13936main (void)
13937{
13938
13939  ;
13940  return 0;
13941}
13942_ACEOF
13943if ac_fn_c_try_link "$LINENO"
13944then :
13945  eval $cacheid=yes
13946else $as_nop
13947  eval $cacheid=no
13948fi
13949rm -f core conftest.err conftest.$ac_objext conftest.beam \
13950    conftest$ac_exeext conftest.$ac_ext
13951fi
13952
13953
13954		CFLAGS="$xorg_testset_save_CFLAGS"
13955
13956		eval supported=\$$cacheid
13957		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13958printf "%s\n" "$supported" >&6; }
13959		if test "$supported" = "yes" ; then
13960			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13961			found="yes"
13962		fi
13963	fi
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979xorg_testset_save_CFLAGS="$CFLAGS"
13980
13981if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13982	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13983	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13984printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13985if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13986then :
13987  printf %s "(cached) " >&6
13988else $as_nop
13989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13990/* end confdefs.h.  */
13991int i;
13992_ACEOF
13993if ac_fn_c_try_compile "$LINENO"
13994then :
13995  xorg_cv_cc_flag_unknown_warning_option=yes
13996else $as_nop
13997  xorg_cv_cc_flag_unknown_warning_option=no
13998fi
13999rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14000fi
14001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14002printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14003	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14004	CFLAGS="$xorg_testset_save_CFLAGS"
14005fi
14006
14007if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14008	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14009		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14010	fi
14011	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14012	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14013printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14014if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14015then :
14016  printf %s "(cached) " >&6
14017else $as_nop
14018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14019/* end confdefs.h.  */
14020int i;
14021_ACEOF
14022if ac_fn_c_try_compile "$LINENO"
14023then :
14024  xorg_cv_cc_flag_unused_command_line_argument=yes
14025else $as_nop
14026  xorg_cv_cc_flag_unused_command_line_argument=no
14027fi
14028rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14029fi
14030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14031printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14032	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14033	CFLAGS="$xorg_testset_save_CFLAGS"
14034fi
14035
14036found="no"
14037
14038	if test $found = "no" ; then
14039		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14040			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14041		fi
14042
14043		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14044			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14045		fi
14046
14047		CFLAGS="$CFLAGS -Wold-style-definition"
14048
14049		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14050printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14051		cacheid=xorg_cv_cc_flag__Wold_style_definition
14052		if eval test \${$cacheid+y}
14053then :
14054  printf %s "(cached) " >&6
14055else $as_nop
14056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14057/* end confdefs.h.  */
14058int i;
14059int
14060main (void)
14061{
14062
14063  ;
14064  return 0;
14065}
14066_ACEOF
14067if ac_fn_c_try_link "$LINENO"
14068then :
14069  eval $cacheid=yes
14070else $as_nop
14071  eval $cacheid=no
14072fi
14073rm -f core conftest.err conftest.$ac_objext conftest.beam \
14074    conftest$ac_exeext conftest.$ac_ext
14075fi
14076
14077
14078		CFLAGS="$xorg_testset_save_CFLAGS"
14079
14080		eval supported=\$$cacheid
14081		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14082printf "%s\n" "$supported" >&6; }
14083		if test "$supported" = "yes" ; then
14084			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14085			found="yes"
14086		fi
14087	fi
14088
14089	if test $found = "no" ; then
14090		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14091			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14092		fi
14093
14094		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14095			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14096		fi
14097
14098		CFLAGS="$CFLAGS -fd"
14099
14100		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14101printf %s "checking if $CC supports -fd... " >&6; }
14102		cacheid=xorg_cv_cc_flag__fd
14103		if eval test \${$cacheid+y}
14104then :
14105  printf %s "(cached) " >&6
14106else $as_nop
14107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14108/* end confdefs.h.  */
14109int i;
14110int
14111main (void)
14112{
14113
14114  ;
14115  return 0;
14116}
14117_ACEOF
14118if ac_fn_c_try_link "$LINENO"
14119then :
14120  eval $cacheid=yes
14121else $as_nop
14122  eval $cacheid=no
14123fi
14124rm -f core conftest.err conftest.$ac_objext conftest.beam \
14125    conftest$ac_exeext conftest.$ac_ext
14126fi
14127
14128
14129		CFLAGS="$xorg_testset_save_CFLAGS"
14130
14131		eval supported=\$$cacheid
14132		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14133printf "%s\n" "$supported" >&6; }
14134		if test "$supported" = "yes" ; then
14135			BASE_CFLAGS="$BASE_CFLAGS -fd"
14136			found="yes"
14137		fi
14138	fi
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154xorg_testset_save_CFLAGS="$CFLAGS"
14155
14156if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14157	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14158	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14159printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14160if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14161then :
14162  printf %s "(cached) " >&6
14163else $as_nop
14164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14165/* end confdefs.h.  */
14166int i;
14167_ACEOF
14168if ac_fn_c_try_compile "$LINENO"
14169then :
14170  xorg_cv_cc_flag_unknown_warning_option=yes
14171else $as_nop
14172  xorg_cv_cc_flag_unknown_warning_option=no
14173fi
14174rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14175fi
14176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14177printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14178	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14179	CFLAGS="$xorg_testset_save_CFLAGS"
14180fi
14181
14182if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14183	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14184		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14185	fi
14186	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14187	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14188printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14189if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14190then :
14191  printf %s "(cached) " >&6
14192else $as_nop
14193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14194/* end confdefs.h.  */
14195int i;
14196_ACEOF
14197if ac_fn_c_try_compile "$LINENO"
14198then :
14199  xorg_cv_cc_flag_unused_command_line_argument=yes
14200else $as_nop
14201  xorg_cv_cc_flag_unused_command_line_argument=no
14202fi
14203rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14204fi
14205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14206printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14207	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14208	CFLAGS="$xorg_testset_save_CFLAGS"
14209fi
14210
14211found="no"
14212
14213	if test $found = "no" ; then
14214		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14215			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14216		fi
14217
14218		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14219			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14220		fi
14221
14222		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14223
14224		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14225printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14226		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14227		if eval test \${$cacheid+y}
14228then :
14229  printf %s "(cached) " >&6
14230else $as_nop
14231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14232/* end confdefs.h.  */
14233int i;
14234int
14235main (void)
14236{
14237
14238  ;
14239  return 0;
14240}
14241_ACEOF
14242if ac_fn_c_try_link "$LINENO"
14243then :
14244  eval $cacheid=yes
14245else $as_nop
14246  eval $cacheid=no
14247fi
14248rm -f core conftest.err conftest.$ac_objext conftest.beam \
14249    conftest$ac_exeext conftest.$ac_ext
14250fi
14251
14252
14253		CFLAGS="$xorg_testset_save_CFLAGS"
14254
14255		eval supported=\$$cacheid
14256		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14257printf "%s\n" "$supported" >&6; }
14258		if test "$supported" = "yes" ; then
14259			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14260			found="yes"
14261		fi
14262	fi
14263
14264
14265
14266
14267
14268# This chunk adds additional warnings that could catch undesired effects.
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282xorg_testset_save_CFLAGS="$CFLAGS"
14283
14284if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14285	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14286	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14287printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14288if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14289then :
14290  printf %s "(cached) " >&6
14291else $as_nop
14292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14293/* end confdefs.h.  */
14294int i;
14295_ACEOF
14296if ac_fn_c_try_compile "$LINENO"
14297then :
14298  xorg_cv_cc_flag_unknown_warning_option=yes
14299else $as_nop
14300  xorg_cv_cc_flag_unknown_warning_option=no
14301fi
14302rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14303fi
14304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14305printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14306	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14307	CFLAGS="$xorg_testset_save_CFLAGS"
14308fi
14309
14310if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14311	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14312		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14313	fi
14314	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14315	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14316printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14317if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14318then :
14319  printf %s "(cached) " >&6
14320else $as_nop
14321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322/* end confdefs.h.  */
14323int i;
14324_ACEOF
14325if ac_fn_c_try_compile "$LINENO"
14326then :
14327  xorg_cv_cc_flag_unused_command_line_argument=yes
14328else $as_nop
14329  xorg_cv_cc_flag_unused_command_line_argument=no
14330fi
14331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14332fi
14333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14334printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14335	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14336	CFLAGS="$xorg_testset_save_CFLAGS"
14337fi
14338
14339found="no"
14340
14341	if test $found = "no" ; then
14342		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14343			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14344		fi
14345
14346		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14347			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14348		fi
14349
14350		CFLAGS="$CFLAGS -Wunused"
14351
14352		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14353printf %s "checking if $CC supports -Wunused... " >&6; }
14354		cacheid=xorg_cv_cc_flag__Wunused
14355		if eval test \${$cacheid+y}
14356then :
14357  printf %s "(cached) " >&6
14358else $as_nop
14359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14360/* end confdefs.h.  */
14361int i;
14362int
14363main (void)
14364{
14365
14366  ;
14367  return 0;
14368}
14369_ACEOF
14370if ac_fn_c_try_link "$LINENO"
14371then :
14372  eval $cacheid=yes
14373else $as_nop
14374  eval $cacheid=no
14375fi
14376rm -f core conftest.err conftest.$ac_objext conftest.beam \
14377    conftest$ac_exeext conftest.$ac_ext
14378fi
14379
14380
14381		CFLAGS="$xorg_testset_save_CFLAGS"
14382
14383		eval supported=\$$cacheid
14384		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14385printf "%s\n" "$supported" >&6; }
14386		if test "$supported" = "yes" ; then
14387			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14388			found="yes"
14389		fi
14390	fi
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406xorg_testset_save_CFLAGS="$CFLAGS"
14407
14408if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14409	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14410	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14411printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14412if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14413then :
14414  printf %s "(cached) " >&6
14415else $as_nop
14416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14417/* end confdefs.h.  */
14418int i;
14419_ACEOF
14420if ac_fn_c_try_compile "$LINENO"
14421then :
14422  xorg_cv_cc_flag_unknown_warning_option=yes
14423else $as_nop
14424  xorg_cv_cc_flag_unknown_warning_option=no
14425fi
14426rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14427fi
14428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14429printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14430	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14431	CFLAGS="$xorg_testset_save_CFLAGS"
14432fi
14433
14434if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14435	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14436		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14437	fi
14438	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14439	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14440printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14441if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14442then :
14443  printf %s "(cached) " >&6
14444else $as_nop
14445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14446/* end confdefs.h.  */
14447int i;
14448_ACEOF
14449if ac_fn_c_try_compile "$LINENO"
14450then :
14451  xorg_cv_cc_flag_unused_command_line_argument=yes
14452else $as_nop
14453  xorg_cv_cc_flag_unused_command_line_argument=no
14454fi
14455rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14456fi
14457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14458printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14459	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14460	CFLAGS="$xorg_testset_save_CFLAGS"
14461fi
14462
14463found="no"
14464
14465	if test $found = "no" ; then
14466		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14467			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14468		fi
14469
14470		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14471			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14472		fi
14473
14474		CFLAGS="$CFLAGS -Wuninitialized"
14475
14476		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14477printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14478		cacheid=xorg_cv_cc_flag__Wuninitialized
14479		if eval test \${$cacheid+y}
14480then :
14481  printf %s "(cached) " >&6
14482else $as_nop
14483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14484/* end confdefs.h.  */
14485int i;
14486int
14487main (void)
14488{
14489
14490  ;
14491  return 0;
14492}
14493_ACEOF
14494if ac_fn_c_try_link "$LINENO"
14495then :
14496  eval $cacheid=yes
14497else $as_nop
14498  eval $cacheid=no
14499fi
14500rm -f core conftest.err conftest.$ac_objext conftest.beam \
14501    conftest$ac_exeext conftest.$ac_ext
14502fi
14503
14504
14505		CFLAGS="$xorg_testset_save_CFLAGS"
14506
14507		eval supported=\$$cacheid
14508		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14509printf "%s\n" "$supported" >&6; }
14510		if test "$supported" = "yes" ; then
14511			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14512			found="yes"
14513		fi
14514	fi
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530xorg_testset_save_CFLAGS="$CFLAGS"
14531
14532if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14533	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14534	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14535printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14536if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14537then :
14538  printf %s "(cached) " >&6
14539else $as_nop
14540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14541/* end confdefs.h.  */
14542int i;
14543_ACEOF
14544if ac_fn_c_try_compile "$LINENO"
14545then :
14546  xorg_cv_cc_flag_unknown_warning_option=yes
14547else $as_nop
14548  xorg_cv_cc_flag_unknown_warning_option=no
14549fi
14550rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14551fi
14552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14553printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14554	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14555	CFLAGS="$xorg_testset_save_CFLAGS"
14556fi
14557
14558if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14559	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14560		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14561	fi
14562	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14563	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14564printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14565if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14566then :
14567  printf %s "(cached) " >&6
14568else $as_nop
14569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14570/* end confdefs.h.  */
14571int i;
14572_ACEOF
14573if ac_fn_c_try_compile "$LINENO"
14574then :
14575  xorg_cv_cc_flag_unused_command_line_argument=yes
14576else $as_nop
14577  xorg_cv_cc_flag_unused_command_line_argument=no
14578fi
14579rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14580fi
14581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14582printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14583	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14584	CFLAGS="$xorg_testset_save_CFLAGS"
14585fi
14586
14587found="no"
14588
14589	if test $found = "no" ; then
14590		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14591			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14592		fi
14593
14594		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14595			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14596		fi
14597
14598		CFLAGS="$CFLAGS -Wshadow"
14599
14600		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14601printf %s "checking if $CC supports -Wshadow... " >&6; }
14602		cacheid=xorg_cv_cc_flag__Wshadow
14603		if eval test \${$cacheid+y}
14604then :
14605  printf %s "(cached) " >&6
14606else $as_nop
14607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14608/* end confdefs.h.  */
14609int i;
14610int
14611main (void)
14612{
14613
14614  ;
14615  return 0;
14616}
14617_ACEOF
14618if ac_fn_c_try_link "$LINENO"
14619then :
14620  eval $cacheid=yes
14621else $as_nop
14622  eval $cacheid=no
14623fi
14624rm -f core conftest.err conftest.$ac_objext conftest.beam \
14625    conftest$ac_exeext conftest.$ac_ext
14626fi
14627
14628
14629		CFLAGS="$xorg_testset_save_CFLAGS"
14630
14631		eval supported=\$$cacheid
14632		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14633printf "%s\n" "$supported" >&6; }
14634		if test "$supported" = "yes" ; then
14635			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14636			found="yes"
14637		fi
14638	fi
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654xorg_testset_save_CFLAGS="$CFLAGS"
14655
14656if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14657	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14658	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14659printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14660if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14661then :
14662  printf %s "(cached) " >&6
14663else $as_nop
14664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14665/* end confdefs.h.  */
14666int i;
14667_ACEOF
14668if ac_fn_c_try_compile "$LINENO"
14669then :
14670  xorg_cv_cc_flag_unknown_warning_option=yes
14671else $as_nop
14672  xorg_cv_cc_flag_unknown_warning_option=no
14673fi
14674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14675fi
14676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14677printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14678	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14679	CFLAGS="$xorg_testset_save_CFLAGS"
14680fi
14681
14682if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14683	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14684		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14685	fi
14686	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14687	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14688printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14689if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14690then :
14691  printf %s "(cached) " >&6
14692else $as_nop
14693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14694/* end confdefs.h.  */
14695int i;
14696_ACEOF
14697if ac_fn_c_try_compile "$LINENO"
14698then :
14699  xorg_cv_cc_flag_unused_command_line_argument=yes
14700else $as_nop
14701  xorg_cv_cc_flag_unused_command_line_argument=no
14702fi
14703rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14704fi
14705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14706printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14707	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14708	CFLAGS="$xorg_testset_save_CFLAGS"
14709fi
14710
14711found="no"
14712
14713	if test $found = "no" ; then
14714		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14715			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14716		fi
14717
14718		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14719			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14720		fi
14721
14722		CFLAGS="$CFLAGS -Wmissing-noreturn"
14723
14724		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14725printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14726		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14727		if eval test \${$cacheid+y}
14728then :
14729  printf %s "(cached) " >&6
14730else $as_nop
14731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14732/* end confdefs.h.  */
14733int i;
14734int
14735main (void)
14736{
14737
14738  ;
14739  return 0;
14740}
14741_ACEOF
14742if ac_fn_c_try_link "$LINENO"
14743then :
14744  eval $cacheid=yes
14745else $as_nop
14746  eval $cacheid=no
14747fi
14748rm -f core conftest.err conftest.$ac_objext conftest.beam \
14749    conftest$ac_exeext conftest.$ac_ext
14750fi
14751
14752
14753		CFLAGS="$xorg_testset_save_CFLAGS"
14754
14755		eval supported=\$$cacheid
14756		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14757printf "%s\n" "$supported" >&6; }
14758		if test "$supported" = "yes" ; then
14759			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14760			found="yes"
14761		fi
14762	fi
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778xorg_testset_save_CFLAGS="$CFLAGS"
14779
14780if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14781	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14782	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14783printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14784if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14785then :
14786  printf %s "(cached) " >&6
14787else $as_nop
14788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14789/* end confdefs.h.  */
14790int i;
14791_ACEOF
14792if ac_fn_c_try_compile "$LINENO"
14793then :
14794  xorg_cv_cc_flag_unknown_warning_option=yes
14795else $as_nop
14796  xorg_cv_cc_flag_unknown_warning_option=no
14797fi
14798rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14799fi
14800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14801printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14802	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14803	CFLAGS="$xorg_testset_save_CFLAGS"
14804fi
14805
14806if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14807	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14808		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14809	fi
14810	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14811	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14812printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14813if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14814then :
14815  printf %s "(cached) " >&6
14816else $as_nop
14817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14818/* end confdefs.h.  */
14819int i;
14820_ACEOF
14821if ac_fn_c_try_compile "$LINENO"
14822then :
14823  xorg_cv_cc_flag_unused_command_line_argument=yes
14824else $as_nop
14825  xorg_cv_cc_flag_unused_command_line_argument=no
14826fi
14827rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14828fi
14829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14830printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14831	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14832	CFLAGS="$xorg_testset_save_CFLAGS"
14833fi
14834
14835found="no"
14836
14837	if test $found = "no" ; then
14838		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14839			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14840		fi
14841
14842		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14843			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14844		fi
14845
14846		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14847
14848		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14849printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14850		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14851		if eval test \${$cacheid+y}
14852then :
14853  printf %s "(cached) " >&6
14854else $as_nop
14855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14856/* end confdefs.h.  */
14857int i;
14858int
14859main (void)
14860{
14861
14862  ;
14863  return 0;
14864}
14865_ACEOF
14866if ac_fn_c_try_link "$LINENO"
14867then :
14868  eval $cacheid=yes
14869else $as_nop
14870  eval $cacheid=no
14871fi
14872rm -f core conftest.err conftest.$ac_objext conftest.beam \
14873    conftest$ac_exeext conftest.$ac_ext
14874fi
14875
14876
14877		CFLAGS="$xorg_testset_save_CFLAGS"
14878
14879		eval supported=\$$cacheid
14880		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14881printf "%s\n" "$supported" >&6; }
14882		if test "$supported" = "yes" ; then
14883			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14884			found="yes"
14885		fi
14886	fi
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902xorg_testset_save_CFLAGS="$CFLAGS"
14903
14904if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14905	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14906	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14907printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14908if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14909then :
14910  printf %s "(cached) " >&6
14911else $as_nop
14912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14913/* end confdefs.h.  */
14914int i;
14915_ACEOF
14916if ac_fn_c_try_compile "$LINENO"
14917then :
14918  xorg_cv_cc_flag_unknown_warning_option=yes
14919else $as_nop
14920  xorg_cv_cc_flag_unknown_warning_option=no
14921fi
14922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14923fi
14924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14925printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14926	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14927	CFLAGS="$xorg_testset_save_CFLAGS"
14928fi
14929
14930if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14931	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14932		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14933	fi
14934	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14935	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14936printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14937if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14938then :
14939  printf %s "(cached) " >&6
14940else $as_nop
14941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14942/* end confdefs.h.  */
14943int i;
14944_ACEOF
14945if ac_fn_c_try_compile "$LINENO"
14946then :
14947  xorg_cv_cc_flag_unused_command_line_argument=yes
14948else $as_nop
14949  xorg_cv_cc_flag_unused_command_line_argument=no
14950fi
14951rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14952fi
14953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14954printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14955	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14956	CFLAGS="$xorg_testset_save_CFLAGS"
14957fi
14958
14959found="no"
14960
14961	if test $found = "no" ; then
14962		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14963			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14964		fi
14965
14966		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14967			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14968		fi
14969
14970		CFLAGS="$CFLAGS -Wredundant-decls"
14971
14972		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14973printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
14974		cacheid=xorg_cv_cc_flag__Wredundant_decls
14975		if eval test \${$cacheid+y}
14976then :
14977  printf %s "(cached) " >&6
14978else $as_nop
14979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14980/* end confdefs.h.  */
14981int i;
14982int
14983main (void)
14984{
14985
14986  ;
14987  return 0;
14988}
14989_ACEOF
14990if ac_fn_c_try_link "$LINENO"
14991then :
14992  eval $cacheid=yes
14993else $as_nop
14994  eval $cacheid=no
14995fi
14996rm -f core conftest.err conftest.$ac_objext conftest.beam \
14997    conftest$ac_exeext conftest.$ac_ext
14998fi
14999
15000
15001		CFLAGS="$xorg_testset_save_CFLAGS"
15002
15003		eval supported=\$$cacheid
15004		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15005printf "%s\n" "$supported" >&6; }
15006		if test "$supported" = "yes" ; then
15007			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15008			found="yes"
15009		fi
15010	fi
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026xorg_testset_save_CFLAGS="$CFLAGS"
15027
15028if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15029	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15030	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15031printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15032if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15033then :
15034  printf %s "(cached) " >&6
15035else $as_nop
15036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15037/* end confdefs.h.  */
15038int i;
15039_ACEOF
15040if ac_fn_c_try_compile "$LINENO"
15041then :
15042  xorg_cv_cc_flag_unknown_warning_option=yes
15043else $as_nop
15044  xorg_cv_cc_flag_unknown_warning_option=no
15045fi
15046rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15047fi
15048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15049printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15050	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15051	CFLAGS="$xorg_testset_save_CFLAGS"
15052fi
15053
15054if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15055	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15056		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15057	fi
15058	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15059	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15060printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15061if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15062then :
15063  printf %s "(cached) " >&6
15064else $as_nop
15065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15066/* end confdefs.h.  */
15067int i;
15068_ACEOF
15069if ac_fn_c_try_compile "$LINENO"
15070then :
15071  xorg_cv_cc_flag_unused_command_line_argument=yes
15072else $as_nop
15073  xorg_cv_cc_flag_unused_command_line_argument=no
15074fi
15075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15076fi
15077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15078printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15079	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15080	CFLAGS="$xorg_testset_save_CFLAGS"
15081fi
15082
15083found="no"
15084
15085	if test $found = "no" ; then
15086		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15087			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15088		fi
15089
15090		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15091			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15092		fi
15093
15094		CFLAGS="$CFLAGS -Wlogical-op"
15095
15096		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15097printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15098		cacheid=xorg_cv_cc_flag__Wlogical_op
15099		if eval test \${$cacheid+y}
15100then :
15101  printf %s "(cached) " >&6
15102else $as_nop
15103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15104/* end confdefs.h.  */
15105int i;
15106int
15107main (void)
15108{
15109
15110  ;
15111  return 0;
15112}
15113_ACEOF
15114if ac_fn_c_try_link "$LINENO"
15115then :
15116  eval $cacheid=yes
15117else $as_nop
15118  eval $cacheid=no
15119fi
15120rm -f core conftest.err conftest.$ac_objext conftest.beam \
15121    conftest$ac_exeext conftest.$ac_ext
15122fi
15123
15124
15125		CFLAGS="$xorg_testset_save_CFLAGS"
15126
15127		eval supported=\$$cacheid
15128		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15129printf "%s\n" "$supported" >&6; }
15130		if test "$supported" = "yes" ; then
15131			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15132			found="yes"
15133		fi
15134	fi
15135
15136
15137
15138# These are currently disabled because they are noisy.  They will be enabled
15139# in the future once the codebase is sufficiently modernized to silence
15140# them.  For now, I don't want them to drown out the other warnings.
15141# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15142# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15143# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15144
15145# Turn some warnings into errors, so we don't accidentally get successful builds
15146# when there are problems that should be fixed.
15147
15148if test "x$SELECTIVE_WERROR" = "xyes" ; then
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162xorg_testset_save_CFLAGS="$CFLAGS"
15163
15164if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15165	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15166	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15167printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15168if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15169then :
15170  printf %s "(cached) " >&6
15171else $as_nop
15172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15173/* end confdefs.h.  */
15174int i;
15175_ACEOF
15176if ac_fn_c_try_compile "$LINENO"
15177then :
15178  xorg_cv_cc_flag_unknown_warning_option=yes
15179else $as_nop
15180  xorg_cv_cc_flag_unknown_warning_option=no
15181fi
15182rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15183fi
15184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15185printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15186	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15187	CFLAGS="$xorg_testset_save_CFLAGS"
15188fi
15189
15190if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15191	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15192		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15193	fi
15194	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15195	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15196printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15197if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15198then :
15199  printf %s "(cached) " >&6
15200else $as_nop
15201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15202/* end confdefs.h.  */
15203int i;
15204_ACEOF
15205if ac_fn_c_try_compile "$LINENO"
15206then :
15207  xorg_cv_cc_flag_unused_command_line_argument=yes
15208else $as_nop
15209  xorg_cv_cc_flag_unused_command_line_argument=no
15210fi
15211rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15212fi
15213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15214printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15215	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15216	CFLAGS="$xorg_testset_save_CFLAGS"
15217fi
15218
15219found="no"
15220
15221	if test $found = "no" ; then
15222		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15223			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15224		fi
15225
15226		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15227			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15228		fi
15229
15230		CFLAGS="$CFLAGS -Werror=implicit"
15231
15232		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15233printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15234		cacheid=xorg_cv_cc_flag__Werror_implicit
15235		if eval test \${$cacheid+y}
15236then :
15237  printf %s "(cached) " >&6
15238else $as_nop
15239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15240/* end confdefs.h.  */
15241int i;
15242int
15243main (void)
15244{
15245
15246  ;
15247  return 0;
15248}
15249_ACEOF
15250if ac_fn_c_try_link "$LINENO"
15251then :
15252  eval $cacheid=yes
15253else $as_nop
15254  eval $cacheid=no
15255fi
15256rm -f core conftest.err conftest.$ac_objext conftest.beam \
15257    conftest$ac_exeext conftest.$ac_ext
15258fi
15259
15260
15261		CFLAGS="$xorg_testset_save_CFLAGS"
15262
15263		eval supported=\$$cacheid
15264		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15265printf "%s\n" "$supported" >&6; }
15266		if test "$supported" = "yes" ; then
15267			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15268			found="yes"
15269		fi
15270	fi
15271
15272	if test $found = "no" ; then
15273		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15274			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15275		fi
15276
15277		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15278			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15279		fi
15280
15281		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15282
15283		{ 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
15284printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15285		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15286		if eval test \${$cacheid+y}
15287then :
15288  printf %s "(cached) " >&6
15289else $as_nop
15290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15291/* end confdefs.h.  */
15292int i;
15293int
15294main (void)
15295{
15296
15297  ;
15298  return 0;
15299}
15300_ACEOF
15301if ac_fn_c_try_link "$LINENO"
15302then :
15303  eval $cacheid=yes
15304else $as_nop
15305  eval $cacheid=no
15306fi
15307rm -f core conftest.err conftest.$ac_objext conftest.beam \
15308    conftest$ac_exeext conftest.$ac_ext
15309fi
15310
15311
15312		CFLAGS="$xorg_testset_save_CFLAGS"
15313
15314		eval supported=\$$cacheid
15315		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15316printf "%s\n" "$supported" >&6; }
15317		if test "$supported" = "yes" ; then
15318			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15319			found="yes"
15320		fi
15321	fi
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337xorg_testset_save_CFLAGS="$CFLAGS"
15338
15339if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15340	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15341	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15342printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15343if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15344then :
15345  printf %s "(cached) " >&6
15346else $as_nop
15347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15348/* end confdefs.h.  */
15349int i;
15350_ACEOF
15351if ac_fn_c_try_compile "$LINENO"
15352then :
15353  xorg_cv_cc_flag_unknown_warning_option=yes
15354else $as_nop
15355  xorg_cv_cc_flag_unknown_warning_option=no
15356fi
15357rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15358fi
15359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15360printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15361	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15362	CFLAGS="$xorg_testset_save_CFLAGS"
15363fi
15364
15365if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15366	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15367		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15368	fi
15369	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15370	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15371printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15372if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15373then :
15374  printf %s "(cached) " >&6
15375else $as_nop
15376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15377/* end confdefs.h.  */
15378int i;
15379_ACEOF
15380if ac_fn_c_try_compile "$LINENO"
15381then :
15382  xorg_cv_cc_flag_unused_command_line_argument=yes
15383else $as_nop
15384  xorg_cv_cc_flag_unused_command_line_argument=no
15385fi
15386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15387fi
15388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15389printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15390	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15391	CFLAGS="$xorg_testset_save_CFLAGS"
15392fi
15393
15394found="no"
15395
15396	if test $found = "no" ; then
15397		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15398			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15399		fi
15400
15401		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15402			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15403		fi
15404
15405		CFLAGS="$CFLAGS -Werror=nonnull"
15406
15407		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15408printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15409		cacheid=xorg_cv_cc_flag__Werror_nonnull
15410		if eval test \${$cacheid+y}
15411then :
15412  printf %s "(cached) " >&6
15413else $as_nop
15414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15415/* end confdefs.h.  */
15416int i;
15417int
15418main (void)
15419{
15420
15421  ;
15422  return 0;
15423}
15424_ACEOF
15425if ac_fn_c_try_link "$LINENO"
15426then :
15427  eval $cacheid=yes
15428else $as_nop
15429  eval $cacheid=no
15430fi
15431rm -f core conftest.err conftest.$ac_objext conftest.beam \
15432    conftest$ac_exeext conftest.$ac_ext
15433fi
15434
15435
15436		CFLAGS="$xorg_testset_save_CFLAGS"
15437
15438		eval supported=\$$cacheid
15439		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15440printf "%s\n" "$supported" >&6; }
15441		if test "$supported" = "yes" ; then
15442			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15443			found="yes"
15444		fi
15445	fi
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461xorg_testset_save_CFLAGS="$CFLAGS"
15462
15463if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15464	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15465	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15466printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15467if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15468then :
15469  printf %s "(cached) " >&6
15470else $as_nop
15471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15472/* end confdefs.h.  */
15473int i;
15474_ACEOF
15475if ac_fn_c_try_compile "$LINENO"
15476then :
15477  xorg_cv_cc_flag_unknown_warning_option=yes
15478else $as_nop
15479  xorg_cv_cc_flag_unknown_warning_option=no
15480fi
15481rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15482fi
15483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15484printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15485	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15486	CFLAGS="$xorg_testset_save_CFLAGS"
15487fi
15488
15489if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15490	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15491		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15492	fi
15493	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15494	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15495printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15496if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15497then :
15498  printf %s "(cached) " >&6
15499else $as_nop
15500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15501/* end confdefs.h.  */
15502int i;
15503_ACEOF
15504if ac_fn_c_try_compile "$LINENO"
15505then :
15506  xorg_cv_cc_flag_unused_command_line_argument=yes
15507else $as_nop
15508  xorg_cv_cc_flag_unused_command_line_argument=no
15509fi
15510rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15511fi
15512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15513printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15514	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15515	CFLAGS="$xorg_testset_save_CFLAGS"
15516fi
15517
15518found="no"
15519
15520	if test $found = "no" ; then
15521		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15522			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15523		fi
15524
15525		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15526			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15527		fi
15528
15529		CFLAGS="$CFLAGS -Werror=init-self"
15530
15531		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15532printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15533		cacheid=xorg_cv_cc_flag__Werror_init_self
15534		if eval test \${$cacheid+y}
15535then :
15536  printf %s "(cached) " >&6
15537else $as_nop
15538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15539/* end confdefs.h.  */
15540int i;
15541int
15542main (void)
15543{
15544
15545  ;
15546  return 0;
15547}
15548_ACEOF
15549if ac_fn_c_try_link "$LINENO"
15550then :
15551  eval $cacheid=yes
15552else $as_nop
15553  eval $cacheid=no
15554fi
15555rm -f core conftest.err conftest.$ac_objext conftest.beam \
15556    conftest$ac_exeext conftest.$ac_ext
15557fi
15558
15559
15560		CFLAGS="$xorg_testset_save_CFLAGS"
15561
15562		eval supported=\$$cacheid
15563		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15564printf "%s\n" "$supported" >&6; }
15565		if test "$supported" = "yes" ; then
15566			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15567			found="yes"
15568		fi
15569	fi
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585xorg_testset_save_CFLAGS="$CFLAGS"
15586
15587if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15588	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15589	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15590printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15591if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15592then :
15593  printf %s "(cached) " >&6
15594else $as_nop
15595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15596/* end confdefs.h.  */
15597int i;
15598_ACEOF
15599if ac_fn_c_try_compile "$LINENO"
15600then :
15601  xorg_cv_cc_flag_unknown_warning_option=yes
15602else $as_nop
15603  xorg_cv_cc_flag_unknown_warning_option=no
15604fi
15605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15606fi
15607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15608printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15609	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15610	CFLAGS="$xorg_testset_save_CFLAGS"
15611fi
15612
15613if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15614	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15615		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15616	fi
15617	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15618	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15619printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15620if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15621then :
15622  printf %s "(cached) " >&6
15623else $as_nop
15624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15625/* end confdefs.h.  */
15626int i;
15627_ACEOF
15628if ac_fn_c_try_compile "$LINENO"
15629then :
15630  xorg_cv_cc_flag_unused_command_line_argument=yes
15631else $as_nop
15632  xorg_cv_cc_flag_unused_command_line_argument=no
15633fi
15634rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15635fi
15636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15637printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15638	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15639	CFLAGS="$xorg_testset_save_CFLAGS"
15640fi
15641
15642found="no"
15643
15644	if test $found = "no" ; then
15645		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15646			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15647		fi
15648
15649		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15650			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15651		fi
15652
15653		CFLAGS="$CFLAGS -Werror=main"
15654
15655		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15656printf %s "checking if $CC supports -Werror=main... " >&6; }
15657		cacheid=xorg_cv_cc_flag__Werror_main
15658		if eval test \${$cacheid+y}
15659then :
15660  printf %s "(cached) " >&6
15661else $as_nop
15662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15663/* end confdefs.h.  */
15664int i;
15665int
15666main (void)
15667{
15668
15669  ;
15670  return 0;
15671}
15672_ACEOF
15673if ac_fn_c_try_link "$LINENO"
15674then :
15675  eval $cacheid=yes
15676else $as_nop
15677  eval $cacheid=no
15678fi
15679rm -f core conftest.err conftest.$ac_objext conftest.beam \
15680    conftest$ac_exeext conftest.$ac_ext
15681fi
15682
15683
15684		CFLAGS="$xorg_testset_save_CFLAGS"
15685
15686		eval supported=\$$cacheid
15687		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15688printf "%s\n" "$supported" >&6; }
15689		if test "$supported" = "yes" ; then
15690			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15691			found="yes"
15692		fi
15693	fi
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709xorg_testset_save_CFLAGS="$CFLAGS"
15710
15711if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15712	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15713	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15714printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15715if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15716then :
15717  printf %s "(cached) " >&6
15718else $as_nop
15719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15720/* end confdefs.h.  */
15721int i;
15722_ACEOF
15723if ac_fn_c_try_compile "$LINENO"
15724then :
15725  xorg_cv_cc_flag_unknown_warning_option=yes
15726else $as_nop
15727  xorg_cv_cc_flag_unknown_warning_option=no
15728fi
15729rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15730fi
15731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15732printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15733	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15734	CFLAGS="$xorg_testset_save_CFLAGS"
15735fi
15736
15737if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15738	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15739		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15740	fi
15741	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15742	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15743printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15744if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15745then :
15746  printf %s "(cached) " >&6
15747else $as_nop
15748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15749/* end confdefs.h.  */
15750int i;
15751_ACEOF
15752if ac_fn_c_try_compile "$LINENO"
15753then :
15754  xorg_cv_cc_flag_unused_command_line_argument=yes
15755else $as_nop
15756  xorg_cv_cc_flag_unused_command_line_argument=no
15757fi
15758rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15759fi
15760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15761printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15762	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15763	CFLAGS="$xorg_testset_save_CFLAGS"
15764fi
15765
15766found="no"
15767
15768	if test $found = "no" ; then
15769		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15770			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15771		fi
15772
15773		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15774			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15775		fi
15776
15777		CFLAGS="$CFLAGS -Werror=missing-braces"
15778
15779		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15780printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
15781		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15782		if eval test \${$cacheid+y}
15783then :
15784  printf %s "(cached) " >&6
15785else $as_nop
15786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15787/* end confdefs.h.  */
15788int i;
15789int
15790main (void)
15791{
15792
15793  ;
15794  return 0;
15795}
15796_ACEOF
15797if ac_fn_c_try_link "$LINENO"
15798then :
15799  eval $cacheid=yes
15800else $as_nop
15801  eval $cacheid=no
15802fi
15803rm -f core conftest.err conftest.$ac_objext conftest.beam \
15804    conftest$ac_exeext conftest.$ac_ext
15805fi
15806
15807
15808		CFLAGS="$xorg_testset_save_CFLAGS"
15809
15810		eval supported=\$$cacheid
15811		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15812printf "%s\n" "$supported" >&6; }
15813		if test "$supported" = "yes" ; then
15814			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15815			found="yes"
15816		fi
15817	fi
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833xorg_testset_save_CFLAGS="$CFLAGS"
15834
15835if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15836	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15837	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15838printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15839if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15840then :
15841  printf %s "(cached) " >&6
15842else $as_nop
15843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15844/* end confdefs.h.  */
15845int i;
15846_ACEOF
15847if ac_fn_c_try_compile "$LINENO"
15848then :
15849  xorg_cv_cc_flag_unknown_warning_option=yes
15850else $as_nop
15851  xorg_cv_cc_flag_unknown_warning_option=no
15852fi
15853rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15854fi
15855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15856printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15857	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15858	CFLAGS="$xorg_testset_save_CFLAGS"
15859fi
15860
15861if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15862	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15863		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15864	fi
15865	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15866	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15867printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15868if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15869then :
15870  printf %s "(cached) " >&6
15871else $as_nop
15872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15873/* end confdefs.h.  */
15874int i;
15875_ACEOF
15876if ac_fn_c_try_compile "$LINENO"
15877then :
15878  xorg_cv_cc_flag_unused_command_line_argument=yes
15879else $as_nop
15880  xorg_cv_cc_flag_unused_command_line_argument=no
15881fi
15882rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15883fi
15884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15885printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15886	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15887	CFLAGS="$xorg_testset_save_CFLAGS"
15888fi
15889
15890found="no"
15891
15892	if test $found = "no" ; then
15893		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15894			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15895		fi
15896
15897		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15898			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15899		fi
15900
15901		CFLAGS="$CFLAGS -Werror=sequence-point"
15902
15903		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15904printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
15905		cacheid=xorg_cv_cc_flag__Werror_sequence_point
15906		if eval test \${$cacheid+y}
15907then :
15908  printf %s "(cached) " >&6
15909else $as_nop
15910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15911/* end confdefs.h.  */
15912int i;
15913int
15914main (void)
15915{
15916
15917  ;
15918  return 0;
15919}
15920_ACEOF
15921if ac_fn_c_try_link "$LINENO"
15922then :
15923  eval $cacheid=yes
15924else $as_nop
15925  eval $cacheid=no
15926fi
15927rm -f core conftest.err conftest.$ac_objext conftest.beam \
15928    conftest$ac_exeext conftest.$ac_ext
15929fi
15930
15931
15932		CFLAGS="$xorg_testset_save_CFLAGS"
15933
15934		eval supported=\$$cacheid
15935		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15936printf "%s\n" "$supported" >&6; }
15937		if test "$supported" = "yes" ; then
15938			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15939			found="yes"
15940		fi
15941	fi
15942
15943
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 $as_nop
15967  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 $as_nop
15975  xorg_cv_cc_flag_unknown_warning_option=no
15976fi
15977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15978fi
15979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15980printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15981	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15982	CFLAGS="$xorg_testset_save_CFLAGS"
15983fi
15984
15985if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15986	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15987		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15988	fi
15989	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15990	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15991printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15992if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15993then :
15994  printf %s "(cached) " >&6
15995else $as_nop
15996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15997/* end confdefs.h.  */
15998int i;
15999_ACEOF
16000if ac_fn_c_try_compile "$LINENO"
16001then :
16002  xorg_cv_cc_flag_unused_command_line_argument=yes
16003else $as_nop
16004  xorg_cv_cc_flag_unused_command_line_argument=no
16005fi
16006rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16007fi
16008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16009printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16010	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16011	CFLAGS="$xorg_testset_save_CFLAGS"
16012fi
16013
16014found="no"
16015
16016	if test $found = "no" ; then
16017		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16018			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16019		fi
16020
16021		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16022			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16023		fi
16024
16025		CFLAGS="$CFLAGS -Werror=return-type"
16026
16027		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16028printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16029		cacheid=xorg_cv_cc_flag__Werror_return_type
16030		if eval test \${$cacheid+y}
16031then :
16032  printf %s "(cached) " >&6
16033else $as_nop
16034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16035/* end confdefs.h.  */
16036int i;
16037int
16038main (void)
16039{
16040
16041  ;
16042  return 0;
16043}
16044_ACEOF
16045if ac_fn_c_try_link "$LINENO"
16046then :
16047  eval $cacheid=yes
16048else $as_nop
16049  eval $cacheid=no
16050fi
16051rm -f core conftest.err conftest.$ac_objext conftest.beam \
16052    conftest$ac_exeext conftest.$ac_ext
16053fi
16054
16055
16056		CFLAGS="$xorg_testset_save_CFLAGS"
16057
16058		eval supported=\$$cacheid
16059		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16060printf "%s\n" "$supported" >&6; }
16061		if test "$supported" = "yes" ; then
16062			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16063			found="yes"
16064		fi
16065	fi
16066
16067	if test $found = "no" ; then
16068		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16069			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16070		fi
16071
16072		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16073			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16074		fi
16075
16076		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16077
16078		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16079printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16080		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16081		if eval test \${$cacheid+y}
16082then :
16083  printf %s "(cached) " >&6
16084else $as_nop
16085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16086/* end confdefs.h.  */
16087int i;
16088int
16089main (void)
16090{
16091
16092  ;
16093  return 0;
16094}
16095_ACEOF
16096if ac_fn_c_try_link "$LINENO"
16097then :
16098  eval $cacheid=yes
16099else $as_nop
16100  eval $cacheid=no
16101fi
16102rm -f core conftest.err conftest.$ac_objext conftest.beam \
16103    conftest$ac_exeext conftest.$ac_ext
16104fi
16105
16106
16107		CFLAGS="$xorg_testset_save_CFLAGS"
16108
16109		eval supported=\$$cacheid
16110		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16111printf "%s\n" "$supported" >&6; }
16112		if test "$supported" = "yes" ; then
16113			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16114			found="yes"
16115		fi
16116	fi
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132xorg_testset_save_CFLAGS="$CFLAGS"
16133
16134if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16135	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16136	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16137printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16138if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16139then :
16140  printf %s "(cached) " >&6
16141else $as_nop
16142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16143/* end confdefs.h.  */
16144int i;
16145_ACEOF
16146if ac_fn_c_try_compile "$LINENO"
16147then :
16148  xorg_cv_cc_flag_unknown_warning_option=yes
16149else $as_nop
16150  xorg_cv_cc_flag_unknown_warning_option=no
16151fi
16152rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16153fi
16154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16155printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16156	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16157	CFLAGS="$xorg_testset_save_CFLAGS"
16158fi
16159
16160if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16161	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16162		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16163	fi
16164	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16165	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16166printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16167if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16168then :
16169  printf %s "(cached) " >&6
16170else $as_nop
16171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16172/* end confdefs.h.  */
16173int i;
16174_ACEOF
16175if ac_fn_c_try_compile "$LINENO"
16176then :
16177  xorg_cv_cc_flag_unused_command_line_argument=yes
16178else $as_nop
16179  xorg_cv_cc_flag_unused_command_line_argument=no
16180fi
16181rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16182fi
16183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16184printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16185	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16186	CFLAGS="$xorg_testset_save_CFLAGS"
16187fi
16188
16189found="no"
16190
16191	if test $found = "no" ; then
16192		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16193			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16194		fi
16195
16196		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16197			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16198		fi
16199
16200		CFLAGS="$CFLAGS -Werror=trigraphs"
16201
16202		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16203printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16204		cacheid=xorg_cv_cc_flag__Werror_trigraphs
16205		if eval test \${$cacheid+y}
16206then :
16207  printf %s "(cached) " >&6
16208else $as_nop
16209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16210/* end confdefs.h.  */
16211int i;
16212int
16213main (void)
16214{
16215
16216  ;
16217  return 0;
16218}
16219_ACEOF
16220if ac_fn_c_try_link "$LINENO"
16221then :
16222  eval $cacheid=yes
16223else $as_nop
16224  eval $cacheid=no
16225fi
16226rm -f core conftest.err conftest.$ac_objext conftest.beam \
16227    conftest$ac_exeext conftest.$ac_ext
16228fi
16229
16230
16231		CFLAGS="$xorg_testset_save_CFLAGS"
16232
16233		eval supported=\$$cacheid
16234		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16235printf "%s\n" "$supported" >&6; }
16236		if test "$supported" = "yes" ; then
16237			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16238			found="yes"
16239		fi
16240	fi
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256xorg_testset_save_CFLAGS="$CFLAGS"
16257
16258if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16259	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16260	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16261printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16262if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16263then :
16264  printf %s "(cached) " >&6
16265else $as_nop
16266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16267/* end confdefs.h.  */
16268int i;
16269_ACEOF
16270if ac_fn_c_try_compile "$LINENO"
16271then :
16272  xorg_cv_cc_flag_unknown_warning_option=yes
16273else $as_nop
16274  xorg_cv_cc_flag_unknown_warning_option=no
16275fi
16276rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16277fi
16278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16279printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16280	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16281	CFLAGS="$xorg_testset_save_CFLAGS"
16282fi
16283
16284if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16285	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16286		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16287	fi
16288	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16289	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16290printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16291if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16292then :
16293  printf %s "(cached) " >&6
16294else $as_nop
16295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16296/* end confdefs.h.  */
16297int i;
16298_ACEOF
16299if ac_fn_c_try_compile "$LINENO"
16300then :
16301  xorg_cv_cc_flag_unused_command_line_argument=yes
16302else $as_nop
16303  xorg_cv_cc_flag_unused_command_line_argument=no
16304fi
16305rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16306fi
16307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16308printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16309	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16310	CFLAGS="$xorg_testset_save_CFLAGS"
16311fi
16312
16313found="no"
16314
16315	if test $found = "no" ; then
16316		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16317			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16318		fi
16319
16320		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16321			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16322		fi
16323
16324		CFLAGS="$CFLAGS -Werror=array-bounds"
16325
16326		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16327printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16328		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16329		if eval test \${$cacheid+y}
16330then :
16331  printf %s "(cached) " >&6
16332else $as_nop
16333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16334/* end confdefs.h.  */
16335int i;
16336int
16337main (void)
16338{
16339
16340  ;
16341  return 0;
16342}
16343_ACEOF
16344if ac_fn_c_try_link "$LINENO"
16345then :
16346  eval $cacheid=yes
16347else $as_nop
16348  eval $cacheid=no
16349fi
16350rm -f core conftest.err conftest.$ac_objext conftest.beam \
16351    conftest$ac_exeext conftest.$ac_ext
16352fi
16353
16354
16355		CFLAGS="$xorg_testset_save_CFLAGS"
16356
16357		eval supported=\$$cacheid
16358		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16359printf "%s\n" "$supported" >&6; }
16360		if test "$supported" = "yes" ; then
16361			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16362			found="yes"
16363		fi
16364	fi
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380xorg_testset_save_CFLAGS="$CFLAGS"
16381
16382if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16383	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16384	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16385printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16386if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16387then :
16388  printf %s "(cached) " >&6
16389else $as_nop
16390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16391/* end confdefs.h.  */
16392int i;
16393_ACEOF
16394if ac_fn_c_try_compile "$LINENO"
16395then :
16396  xorg_cv_cc_flag_unknown_warning_option=yes
16397else $as_nop
16398  xorg_cv_cc_flag_unknown_warning_option=no
16399fi
16400rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16401fi
16402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16403printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16404	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16405	CFLAGS="$xorg_testset_save_CFLAGS"
16406fi
16407
16408if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16409	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16410		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16411	fi
16412	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16413	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16414printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16415if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16416then :
16417  printf %s "(cached) " >&6
16418else $as_nop
16419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16420/* end confdefs.h.  */
16421int i;
16422_ACEOF
16423if ac_fn_c_try_compile "$LINENO"
16424then :
16425  xorg_cv_cc_flag_unused_command_line_argument=yes
16426else $as_nop
16427  xorg_cv_cc_flag_unused_command_line_argument=no
16428fi
16429rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16430fi
16431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16432printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16433	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16434	CFLAGS="$xorg_testset_save_CFLAGS"
16435fi
16436
16437found="no"
16438
16439	if test $found = "no" ; then
16440		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16441			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16442		fi
16443
16444		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16445			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16446		fi
16447
16448		CFLAGS="$CFLAGS -Werror=write-strings"
16449
16450		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16451printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16452		cacheid=xorg_cv_cc_flag__Werror_write_strings
16453		if eval test \${$cacheid+y}
16454then :
16455  printf %s "(cached) " >&6
16456else $as_nop
16457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16458/* end confdefs.h.  */
16459int i;
16460int
16461main (void)
16462{
16463
16464  ;
16465  return 0;
16466}
16467_ACEOF
16468if ac_fn_c_try_link "$LINENO"
16469then :
16470  eval $cacheid=yes
16471else $as_nop
16472  eval $cacheid=no
16473fi
16474rm -f core conftest.err conftest.$ac_objext conftest.beam \
16475    conftest$ac_exeext conftest.$ac_ext
16476fi
16477
16478
16479		CFLAGS="$xorg_testset_save_CFLAGS"
16480
16481		eval supported=\$$cacheid
16482		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16483printf "%s\n" "$supported" >&6; }
16484		if test "$supported" = "yes" ; then
16485			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16486			found="yes"
16487		fi
16488	fi
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504xorg_testset_save_CFLAGS="$CFLAGS"
16505
16506if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16507	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16508	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16509printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16510if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16511then :
16512  printf %s "(cached) " >&6
16513else $as_nop
16514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16515/* end confdefs.h.  */
16516int i;
16517_ACEOF
16518if ac_fn_c_try_compile "$LINENO"
16519then :
16520  xorg_cv_cc_flag_unknown_warning_option=yes
16521else $as_nop
16522  xorg_cv_cc_flag_unknown_warning_option=no
16523fi
16524rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16525fi
16526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16527printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16528	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16529	CFLAGS="$xorg_testset_save_CFLAGS"
16530fi
16531
16532if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16533	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16534		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16535	fi
16536	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16537	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16538printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16539if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16540then :
16541  printf %s "(cached) " >&6
16542else $as_nop
16543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16544/* end confdefs.h.  */
16545int i;
16546_ACEOF
16547if ac_fn_c_try_compile "$LINENO"
16548then :
16549  xorg_cv_cc_flag_unused_command_line_argument=yes
16550else $as_nop
16551  xorg_cv_cc_flag_unused_command_line_argument=no
16552fi
16553rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16554fi
16555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16556printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16557	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16558	CFLAGS="$xorg_testset_save_CFLAGS"
16559fi
16560
16561found="no"
16562
16563	if test $found = "no" ; then
16564		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16565			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16566		fi
16567
16568		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16569			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16570		fi
16571
16572		CFLAGS="$CFLAGS -Werror=address"
16573
16574		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16575printf %s "checking if $CC supports -Werror=address... " >&6; }
16576		cacheid=xorg_cv_cc_flag__Werror_address
16577		if eval test \${$cacheid+y}
16578then :
16579  printf %s "(cached) " >&6
16580else $as_nop
16581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16582/* end confdefs.h.  */
16583int i;
16584int
16585main (void)
16586{
16587
16588  ;
16589  return 0;
16590}
16591_ACEOF
16592if ac_fn_c_try_link "$LINENO"
16593then :
16594  eval $cacheid=yes
16595else $as_nop
16596  eval $cacheid=no
16597fi
16598rm -f core conftest.err conftest.$ac_objext conftest.beam \
16599    conftest$ac_exeext conftest.$ac_ext
16600fi
16601
16602
16603		CFLAGS="$xorg_testset_save_CFLAGS"
16604
16605		eval supported=\$$cacheid
16606		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16607printf "%s\n" "$supported" >&6; }
16608		if test "$supported" = "yes" ; then
16609			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16610			found="yes"
16611		fi
16612	fi
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628xorg_testset_save_CFLAGS="$CFLAGS"
16629
16630if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16631	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16632	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16633printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16634if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16635then :
16636  printf %s "(cached) " >&6
16637else $as_nop
16638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16639/* end confdefs.h.  */
16640int i;
16641_ACEOF
16642if ac_fn_c_try_compile "$LINENO"
16643then :
16644  xorg_cv_cc_flag_unknown_warning_option=yes
16645else $as_nop
16646  xorg_cv_cc_flag_unknown_warning_option=no
16647fi
16648rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16649fi
16650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16651printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16652	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16653	CFLAGS="$xorg_testset_save_CFLAGS"
16654fi
16655
16656if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16657	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16658		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16659	fi
16660	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16661	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16662printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16663if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16664then :
16665  printf %s "(cached) " >&6
16666else $as_nop
16667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16668/* end confdefs.h.  */
16669int i;
16670_ACEOF
16671if ac_fn_c_try_compile "$LINENO"
16672then :
16673  xorg_cv_cc_flag_unused_command_line_argument=yes
16674else $as_nop
16675  xorg_cv_cc_flag_unused_command_line_argument=no
16676fi
16677rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16678fi
16679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16680printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16681	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16682	CFLAGS="$xorg_testset_save_CFLAGS"
16683fi
16684
16685found="no"
16686
16687	if test $found = "no" ; then
16688		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16689			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16690		fi
16691
16692		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16693			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16694		fi
16695
16696		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16697
16698		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16699printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16700		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16701		if eval test \${$cacheid+y}
16702then :
16703  printf %s "(cached) " >&6
16704else $as_nop
16705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16706/* end confdefs.h.  */
16707int i;
16708int
16709main (void)
16710{
16711
16712  ;
16713  return 0;
16714}
16715_ACEOF
16716if ac_fn_c_try_link "$LINENO"
16717then :
16718  eval $cacheid=yes
16719else $as_nop
16720  eval $cacheid=no
16721fi
16722rm -f core conftest.err conftest.$ac_objext conftest.beam \
16723    conftest$ac_exeext conftest.$ac_ext
16724fi
16725
16726
16727		CFLAGS="$xorg_testset_save_CFLAGS"
16728
16729		eval supported=\$$cacheid
16730		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16731printf "%s\n" "$supported" >&6; }
16732		if test "$supported" = "yes" ; then
16733			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16734			found="yes"
16735		fi
16736	fi
16737
16738	if test $found = "no" ; then
16739		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16740			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16741		fi
16742
16743		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16744			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16745		fi
16746
16747		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16748
16749		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16750printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16751		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16752		if eval test \${$cacheid+y}
16753then :
16754  printf %s "(cached) " >&6
16755else $as_nop
16756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16757/* end confdefs.h.  */
16758int i;
16759int
16760main (void)
16761{
16762
16763  ;
16764  return 0;
16765}
16766_ACEOF
16767if ac_fn_c_try_link "$LINENO"
16768then :
16769  eval $cacheid=yes
16770else $as_nop
16771  eval $cacheid=no
16772fi
16773rm -f core conftest.err conftest.$ac_objext conftest.beam \
16774    conftest$ac_exeext conftest.$ac_ext
16775fi
16776
16777
16778		CFLAGS="$xorg_testset_save_CFLAGS"
16779
16780		eval supported=\$$cacheid
16781		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16782printf "%s\n" "$supported" >&6; }
16783		if test "$supported" = "yes" ; then
16784			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16785			found="yes"
16786		fi
16787	fi
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803xorg_testset_save_CFLAGS="$CFLAGS"
16804
16805if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16806	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16807	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16808printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16809if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16810then :
16811  printf %s "(cached) " >&6
16812else $as_nop
16813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16814/* end confdefs.h.  */
16815int i;
16816_ACEOF
16817if ac_fn_c_try_compile "$LINENO"
16818then :
16819  xorg_cv_cc_flag_unknown_warning_option=yes
16820else $as_nop
16821  xorg_cv_cc_flag_unknown_warning_option=no
16822fi
16823rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16824fi
16825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16826printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16827	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16828	CFLAGS="$xorg_testset_save_CFLAGS"
16829fi
16830
16831if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16832	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16833		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16834	fi
16835	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16836	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16837printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16838if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16839then :
16840  printf %s "(cached) " >&6
16841else $as_nop
16842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16843/* end confdefs.h.  */
16844int i;
16845_ACEOF
16846if ac_fn_c_try_compile "$LINENO"
16847then :
16848  xorg_cv_cc_flag_unused_command_line_argument=yes
16849else $as_nop
16850  xorg_cv_cc_flag_unused_command_line_argument=no
16851fi
16852rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16853fi
16854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16855printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16856	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16857	CFLAGS="$xorg_testset_save_CFLAGS"
16858fi
16859
16860found="no"
16861
16862	if test $found = "no" ; then
16863		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16864			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16865		fi
16866
16867		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16868			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16869		fi
16870
16871		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16872
16873		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16874printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16875		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16876		if eval test \${$cacheid+y}
16877then :
16878  printf %s "(cached) " >&6
16879else $as_nop
16880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16881/* end confdefs.h.  */
16882int i;
16883int
16884main (void)
16885{
16886
16887  ;
16888  return 0;
16889}
16890_ACEOF
16891if ac_fn_c_try_link "$LINENO"
16892then :
16893  eval $cacheid=yes
16894else $as_nop
16895  eval $cacheid=no
16896fi
16897rm -f core conftest.err conftest.$ac_objext conftest.beam \
16898    conftest$ac_exeext conftest.$ac_ext
16899fi
16900
16901
16902		CFLAGS="$xorg_testset_save_CFLAGS"
16903
16904		eval supported=\$$cacheid
16905		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16906printf "%s\n" "$supported" >&6; }
16907		if test "$supported" = "yes" ; then
16908			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16909			found="yes"
16910		fi
16911	fi
16912
16913 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16914else
16915{ 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
16916printf "%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;}
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930xorg_testset_save_CFLAGS="$CFLAGS"
16931
16932if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16933	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16934	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16935printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16936if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16937then :
16938  printf %s "(cached) " >&6
16939else $as_nop
16940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16941/* end confdefs.h.  */
16942int i;
16943_ACEOF
16944if ac_fn_c_try_compile "$LINENO"
16945then :
16946  xorg_cv_cc_flag_unknown_warning_option=yes
16947else $as_nop
16948  xorg_cv_cc_flag_unknown_warning_option=no
16949fi
16950rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16951fi
16952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16953printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16954	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16955	CFLAGS="$xorg_testset_save_CFLAGS"
16956fi
16957
16958if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16959	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16960		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16961	fi
16962	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16963	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16964printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16965if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16966then :
16967  printf %s "(cached) " >&6
16968else $as_nop
16969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16970/* end confdefs.h.  */
16971int i;
16972_ACEOF
16973if ac_fn_c_try_compile "$LINENO"
16974then :
16975  xorg_cv_cc_flag_unused_command_line_argument=yes
16976else $as_nop
16977  xorg_cv_cc_flag_unused_command_line_argument=no
16978fi
16979rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16980fi
16981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16982printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16983	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16984	CFLAGS="$xorg_testset_save_CFLAGS"
16985fi
16986
16987found="no"
16988
16989	if test $found = "no" ; then
16990		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16991			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16992		fi
16993
16994		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16995			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16996		fi
16997
16998		CFLAGS="$CFLAGS -Wimplicit"
16999
17000		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17001printf %s "checking if $CC supports -Wimplicit... " >&6; }
17002		cacheid=xorg_cv_cc_flag__Wimplicit
17003		if eval test \${$cacheid+y}
17004then :
17005  printf %s "(cached) " >&6
17006else $as_nop
17007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17008/* end confdefs.h.  */
17009int i;
17010int
17011main (void)
17012{
17013
17014  ;
17015  return 0;
17016}
17017_ACEOF
17018if ac_fn_c_try_link "$LINENO"
17019then :
17020  eval $cacheid=yes
17021else $as_nop
17022  eval $cacheid=no
17023fi
17024rm -f core conftest.err conftest.$ac_objext conftest.beam \
17025    conftest$ac_exeext conftest.$ac_ext
17026fi
17027
17028
17029		CFLAGS="$xorg_testset_save_CFLAGS"
17030
17031		eval supported=\$$cacheid
17032		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17033printf "%s\n" "$supported" >&6; }
17034		if test "$supported" = "yes" ; then
17035			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17036			found="yes"
17037		fi
17038	fi
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054xorg_testset_save_CFLAGS="$CFLAGS"
17055
17056if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17057	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17058	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17059printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17060if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17061then :
17062  printf %s "(cached) " >&6
17063else $as_nop
17064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17065/* end confdefs.h.  */
17066int i;
17067_ACEOF
17068if ac_fn_c_try_compile "$LINENO"
17069then :
17070  xorg_cv_cc_flag_unknown_warning_option=yes
17071else $as_nop
17072  xorg_cv_cc_flag_unknown_warning_option=no
17073fi
17074rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17075fi
17076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17077printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17078	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17079	CFLAGS="$xorg_testset_save_CFLAGS"
17080fi
17081
17082if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17083	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17084		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17085	fi
17086	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17087	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17088printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17089if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17090then :
17091  printf %s "(cached) " >&6
17092else $as_nop
17093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17094/* end confdefs.h.  */
17095int i;
17096_ACEOF
17097if ac_fn_c_try_compile "$LINENO"
17098then :
17099  xorg_cv_cc_flag_unused_command_line_argument=yes
17100else $as_nop
17101  xorg_cv_cc_flag_unused_command_line_argument=no
17102fi
17103rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17104fi
17105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17106printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17107	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17108	CFLAGS="$xorg_testset_save_CFLAGS"
17109fi
17110
17111found="no"
17112
17113	if test $found = "no" ; then
17114		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17115			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17116		fi
17117
17118		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17119			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17120		fi
17121
17122		CFLAGS="$CFLAGS -Wnonnull"
17123
17124		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17125printf %s "checking if $CC supports -Wnonnull... " >&6; }
17126		cacheid=xorg_cv_cc_flag__Wnonnull
17127		if eval test \${$cacheid+y}
17128then :
17129  printf %s "(cached) " >&6
17130else $as_nop
17131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17132/* end confdefs.h.  */
17133int i;
17134int
17135main (void)
17136{
17137
17138  ;
17139  return 0;
17140}
17141_ACEOF
17142if ac_fn_c_try_link "$LINENO"
17143then :
17144  eval $cacheid=yes
17145else $as_nop
17146  eval $cacheid=no
17147fi
17148rm -f core conftest.err conftest.$ac_objext conftest.beam \
17149    conftest$ac_exeext conftest.$ac_ext
17150fi
17151
17152
17153		CFLAGS="$xorg_testset_save_CFLAGS"
17154
17155		eval supported=\$$cacheid
17156		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17157printf "%s\n" "$supported" >&6; }
17158		if test "$supported" = "yes" ; then
17159			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17160			found="yes"
17161		fi
17162	fi
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178xorg_testset_save_CFLAGS="$CFLAGS"
17179
17180if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17181	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17182	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17183printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17184if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17185then :
17186  printf %s "(cached) " >&6
17187else $as_nop
17188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17189/* end confdefs.h.  */
17190int i;
17191_ACEOF
17192if ac_fn_c_try_compile "$LINENO"
17193then :
17194  xorg_cv_cc_flag_unknown_warning_option=yes
17195else $as_nop
17196  xorg_cv_cc_flag_unknown_warning_option=no
17197fi
17198rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17199fi
17200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17201printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17202	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17203	CFLAGS="$xorg_testset_save_CFLAGS"
17204fi
17205
17206if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17207	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17208		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17209	fi
17210	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17211	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17212printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17213if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17214then :
17215  printf %s "(cached) " >&6
17216else $as_nop
17217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17218/* end confdefs.h.  */
17219int i;
17220_ACEOF
17221if ac_fn_c_try_compile "$LINENO"
17222then :
17223  xorg_cv_cc_flag_unused_command_line_argument=yes
17224else $as_nop
17225  xorg_cv_cc_flag_unused_command_line_argument=no
17226fi
17227rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17228fi
17229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17230printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17231	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17232	CFLAGS="$xorg_testset_save_CFLAGS"
17233fi
17234
17235found="no"
17236
17237	if test $found = "no" ; then
17238		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17239			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17240		fi
17241
17242		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17243			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17244		fi
17245
17246		CFLAGS="$CFLAGS -Winit-self"
17247
17248		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17249printf %s "checking if $CC supports -Winit-self... " >&6; }
17250		cacheid=xorg_cv_cc_flag__Winit_self
17251		if eval test \${$cacheid+y}
17252then :
17253  printf %s "(cached) " >&6
17254else $as_nop
17255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17256/* end confdefs.h.  */
17257int i;
17258int
17259main (void)
17260{
17261
17262  ;
17263  return 0;
17264}
17265_ACEOF
17266if ac_fn_c_try_link "$LINENO"
17267then :
17268  eval $cacheid=yes
17269else $as_nop
17270  eval $cacheid=no
17271fi
17272rm -f core conftest.err conftest.$ac_objext conftest.beam \
17273    conftest$ac_exeext conftest.$ac_ext
17274fi
17275
17276
17277		CFLAGS="$xorg_testset_save_CFLAGS"
17278
17279		eval supported=\$$cacheid
17280		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17281printf "%s\n" "$supported" >&6; }
17282		if test "$supported" = "yes" ; then
17283			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17284			found="yes"
17285		fi
17286	fi
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302xorg_testset_save_CFLAGS="$CFLAGS"
17303
17304if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17305	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17306	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17307printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17308if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17309then :
17310  printf %s "(cached) " >&6
17311else $as_nop
17312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17313/* end confdefs.h.  */
17314int i;
17315_ACEOF
17316if ac_fn_c_try_compile "$LINENO"
17317then :
17318  xorg_cv_cc_flag_unknown_warning_option=yes
17319else $as_nop
17320  xorg_cv_cc_flag_unknown_warning_option=no
17321fi
17322rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17323fi
17324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17325printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17326	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17327	CFLAGS="$xorg_testset_save_CFLAGS"
17328fi
17329
17330if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17331	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17332		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17333	fi
17334	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17335	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17336printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17337if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17338then :
17339  printf %s "(cached) " >&6
17340else $as_nop
17341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17342/* end confdefs.h.  */
17343int i;
17344_ACEOF
17345if ac_fn_c_try_compile "$LINENO"
17346then :
17347  xorg_cv_cc_flag_unused_command_line_argument=yes
17348else $as_nop
17349  xorg_cv_cc_flag_unused_command_line_argument=no
17350fi
17351rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17352fi
17353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17354printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17355	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17356	CFLAGS="$xorg_testset_save_CFLAGS"
17357fi
17358
17359found="no"
17360
17361	if test $found = "no" ; then
17362		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17363			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17364		fi
17365
17366		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17367			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17368		fi
17369
17370		CFLAGS="$CFLAGS -Wmain"
17371
17372		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17373printf %s "checking if $CC supports -Wmain... " >&6; }
17374		cacheid=xorg_cv_cc_flag__Wmain
17375		if eval test \${$cacheid+y}
17376then :
17377  printf %s "(cached) " >&6
17378else $as_nop
17379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17380/* end confdefs.h.  */
17381int i;
17382int
17383main (void)
17384{
17385
17386  ;
17387  return 0;
17388}
17389_ACEOF
17390if ac_fn_c_try_link "$LINENO"
17391then :
17392  eval $cacheid=yes
17393else $as_nop
17394  eval $cacheid=no
17395fi
17396rm -f core conftest.err conftest.$ac_objext conftest.beam \
17397    conftest$ac_exeext conftest.$ac_ext
17398fi
17399
17400
17401		CFLAGS="$xorg_testset_save_CFLAGS"
17402
17403		eval supported=\$$cacheid
17404		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17405printf "%s\n" "$supported" >&6; }
17406		if test "$supported" = "yes" ; then
17407			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17408			found="yes"
17409		fi
17410	fi
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426xorg_testset_save_CFLAGS="$CFLAGS"
17427
17428if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17429	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17430	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17431printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17432if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17433then :
17434  printf %s "(cached) " >&6
17435else $as_nop
17436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17437/* end confdefs.h.  */
17438int i;
17439_ACEOF
17440if ac_fn_c_try_compile "$LINENO"
17441then :
17442  xorg_cv_cc_flag_unknown_warning_option=yes
17443else $as_nop
17444  xorg_cv_cc_flag_unknown_warning_option=no
17445fi
17446rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17447fi
17448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17449printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17450	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17451	CFLAGS="$xorg_testset_save_CFLAGS"
17452fi
17453
17454if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17455	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17456		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17457	fi
17458	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17459	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17460printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17461if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17462then :
17463  printf %s "(cached) " >&6
17464else $as_nop
17465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17466/* end confdefs.h.  */
17467int i;
17468_ACEOF
17469if ac_fn_c_try_compile "$LINENO"
17470then :
17471  xorg_cv_cc_flag_unused_command_line_argument=yes
17472else $as_nop
17473  xorg_cv_cc_flag_unused_command_line_argument=no
17474fi
17475rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17476fi
17477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17478printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17479	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17480	CFLAGS="$xorg_testset_save_CFLAGS"
17481fi
17482
17483found="no"
17484
17485	if test $found = "no" ; then
17486		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17487			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17488		fi
17489
17490		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17491			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17492		fi
17493
17494		CFLAGS="$CFLAGS -Wmissing-braces"
17495
17496		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17497printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17498		cacheid=xorg_cv_cc_flag__Wmissing_braces
17499		if eval test \${$cacheid+y}
17500then :
17501  printf %s "(cached) " >&6
17502else $as_nop
17503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17504/* end confdefs.h.  */
17505int i;
17506int
17507main (void)
17508{
17509
17510  ;
17511  return 0;
17512}
17513_ACEOF
17514if ac_fn_c_try_link "$LINENO"
17515then :
17516  eval $cacheid=yes
17517else $as_nop
17518  eval $cacheid=no
17519fi
17520rm -f core conftest.err conftest.$ac_objext conftest.beam \
17521    conftest$ac_exeext conftest.$ac_ext
17522fi
17523
17524
17525		CFLAGS="$xorg_testset_save_CFLAGS"
17526
17527		eval supported=\$$cacheid
17528		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17529printf "%s\n" "$supported" >&6; }
17530		if test "$supported" = "yes" ; then
17531			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17532			found="yes"
17533		fi
17534	fi
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550xorg_testset_save_CFLAGS="$CFLAGS"
17551
17552if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17553	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17554	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17555printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17556if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17557then :
17558  printf %s "(cached) " >&6
17559else $as_nop
17560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17561/* end confdefs.h.  */
17562int i;
17563_ACEOF
17564if ac_fn_c_try_compile "$LINENO"
17565then :
17566  xorg_cv_cc_flag_unknown_warning_option=yes
17567else $as_nop
17568  xorg_cv_cc_flag_unknown_warning_option=no
17569fi
17570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17571fi
17572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17573printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17574	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17575	CFLAGS="$xorg_testset_save_CFLAGS"
17576fi
17577
17578if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17579	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17580		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17581	fi
17582	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17583	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17584printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17585if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17586then :
17587  printf %s "(cached) " >&6
17588else $as_nop
17589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17590/* end confdefs.h.  */
17591int i;
17592_ACEOF
17593if ac_fn_c_try_compile "$LINENO"
17594then :
17595  xorg_cv_cc_flag_unused_command_line_argument=yes
17596else $as_nop
17597  xorg_cv_cc_flag_unused_command_line_argument=no
17598fi
17599rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17600fi
17601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17602printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17603	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17604	CFLAGS="$xorg_testset_save_CFLAGS"
17605fi
17606
17607found="no"
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 -Wsequence-point"
17619
17620		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17621printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17622		cacheid=xorg_cv_cc_flag__Wsequence_point
17623		if eval test \${$cacheid+y}
17624then :
17625  printf %s "(cached) " >&6
17626else $as_nop
17627  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 $as_nop
17642  eval $cacheid=no
17643fi
17644rm -f core conftest.err conftest.$ac_objext conftest.beam \
17645    conftest$ac_exeext conftest.$ac_ext
17646fi
17647
17648
17649		CFLAGS="$xorg_testset_save_CFLAGS"
17650
17651		eval supported=\$$cacheid
17652		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17653printf "%s\n" "$supported" >&6; }
17654		if test "$supported" = "yes" ; then
17655			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17656			found="yes"
17657		fi
17658	fi
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674xorg_testset_save_CFLAGS="$CFLAGS"
17675
17676if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17677	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17678	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17679printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17680if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17681then :
17682  printf %s "(cached) " >&6
17683else $as_nop
17684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17685/* end confdefs.h.  */
17686int i;
17687_ACEOF
17688if ac_fn_c_try_compile "$LINENO"
17689then :
17690  xorg_cv_cc_flag_unknown_warning_option=yes
17691else $as_nop
17692  xorg_cv_cc_flag_unknown_warning_option=no
17693fi
17694rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17695fi
17696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17697printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17698	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17699	CFLAGS="$xorg_testset_save_CFLAGS"
17700fi
17701
17702if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17703	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17704		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17705	fi
17706	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17707	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17708printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17709if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17710then :
17711  printf %s "(cached) " >&6
17712else $as_nop
17713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17714/* end confdefs.h.  */
17715int i;
17716_ACEOF
17717if ac_fn_c_try_compile "$LINENO"
17718then :
17719  xorg_cv_cc_flag_unused_command_line_argument=yes
17720else $as_nop
17721  xorg_cv_cc_flag_unused_command_line_argument=no
17722fi
17723rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17724fi
17725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17726printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17727	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17728	CFLAGS="$xorg_testset_save_CFLAGS"
17729fi
17730
17731found="no"
17732
17733	if test $found = "no" ; then
17734		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17735			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17736		fi
17737
17738		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17739			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17740		fi
17741
17742		CFLAGS="$CFLAGS -Wreturn-type"
17743
17744		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17745printf %s "checking if $CC supports -Wreturn-type... " >&6; }
17746		cacheid=xorg_cv_cc_flag__Wreturn_type
17747		if eval test \${$cacheid+y}
17748then :
17749  printf %s "(cached) " >&6
17750else $as_nop
17751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17752/* end confdefs.h.  */
17753int i;
17754int
17755main (void)
17756{
17757
17758  ;
17759  return 0;
17760}
17761_ACEOF
17762if ac_fn_c_try_link "$LINENO"
17763then :
17764  eval $cacheid=yes
17765else $as_nop
17766  eval $cacheid=no
17767fi
17768rm -f core conftest.err conftest.$ac_objext conftest.beam \
17769    conftest$ac_exeext conftest.$ac_ext
17770fi
17771
17772
17773		CFLAGS="$xorg_testset_save_CFLAGS"
17774
17775		eval supported=\$$cacheid
17776		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17777printf "%s\n" "$supported" >&6; }
17778		if test "$supported" = "yes" ; then
17779			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17780			found="yes"
17781		fi
17782	fi
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798xorg_testset_save_CFLAGS="$CFLAGS"
17799
17800if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17801	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17802	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17803printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17804if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17805then :
17806  printf %s "(cached) " >&6
17807else $as_nop
17808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17809/* end confdefs.h.  */
17810int i;
17811_ACEOF
17812if ac_fn_c_try_compile "$LINENO"
17813then :
17814  xorg_cv_cc_flag_unknown_warning_option=yes
17815else $as_nop
17816  xorg_cv_cc_flag_unknown_warning_option=no
17817fi
17818rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17819fi
17820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17821printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17822	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17823	CFLAGS="$xorg_testset_save_CFLAGS"
17824fi
17825
17826if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17827	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17828		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17829	fi
17830	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17831	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17832printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17833if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17834then :
17835  printf %s "(cached) " >&6
17836else $as_nop
17837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17838/* end confdefs.h.  */
17839int i;
17840_ACEOF
17841if ac_fn_c_try_compile "$LINENO"
17842then :
17843  xorg_cv_cc_flag_unused_command_line_argument=yes
17844else $as_nop
17845  xorg_cv_cc_flag_unused_command_line_argument=no
17846fi
17847rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17848fi
17849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17850printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17851	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17852	CFLAGS="$xorg_testset_save_CFLAGS"
17853fi
17854
17855found="no"
17856
17857	if test $found = "no" ; then
17858		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17859			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17860		fi
17861
17862		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17863			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17864		fi
17865
17866		CFLAGS="$CFLAGS -Wtrigraphs"
17867
17868		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17869printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
17870		cacheid=xorg_cv_cc_flag__Wtrigraphs
17871		if eval test \${$cacheid+y}
17872then :
17873  printf %s "(cached) " >&6
17874else $as_nop
17875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17876/* end confdefs.h.  */
17877int i;
17878int
17879main (void)
17880{
17881
17882  ;
17883  return 0;
17884}
17885_ACEOF
17886if ac_fn_c_try_link "$LINENO"
17887then :
17888  eval $cacheid=yes
17889else $as_nop
17890  eval $cacheid=no
17891fi
17892rm -f core conftest.err conftest.$ac_objext conftest.beam \
17893    conftest$ac_exeext conftest.$ac_ext
17894fi
17895
17896
17897		CFLAGS="$xorg_testset_save_CFLAGS"
17898
17899		eval supported=\$$cacheid
17900		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17901printf "%s\n" "$supported" >&6; }
17902		if test "$supported" = "yes" ; then
17903			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17904			found="yes"
17905		fi
17906	fi
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922xorg_testset_save_CFLAGS="$CFLAGS"
17923
17924if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17925	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17926	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17927printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17928if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17929then :
17930  printf %s "(cached) " >&6
17931else $as_nop
17932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17933/* end confdefs.h.  */
17934int i;
17935_ACEOF
17936if ac_fn_c_try_compile "$LINENO"
17937then :
17938  xorg_cv_cc_flag_unknown_warning_option=yes
17939else $as_nop
17940  xorg_cv_cc_flag_unknown_warning_option=no
17941fi
17942rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17943fi
17944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17945printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17946	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17947	CFLAGS="$xorg_testset_save_CFLAGS"
17948fi
17949
17950if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17951	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17952		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17953	fi
17954	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17955	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17956printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17957if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17958then :
17959  printf %s "(cached) " >&6
17960else $as_nop
17961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17962/* end confdefs.h.  */
17963int i;
17964_ACEOF
17965if ac_fn_c_try_compile "$LINENO"
17966then :
17967  xorg_cv_cc_flag_unused_command_line_argument=yes
17968else $as_nop
17969  xorg_cv_cc_flag_unused_command_line_argument=no
17970fi
17971rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17972fi
17973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17974printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17975	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17976	CFLAGS="$xorg_testset_save_CFLAGS"
17977fi
17978
17979found="no"
17980
17981	if test $found = "no" ; then
17982		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17983			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17984		fi
17985
17986		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17987			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17988		fi
17989
17990		CFLAGS="$CFLAGS -Warray-bounds"
17991
17992		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17993printf %s "checking if $CC supports -Warray-bounds... " >&6; }
17994		cacheid=xorg_cv_cc_flag__Warray_bounds
17995		if eval test \${$cacheid+y}
17996then :
17997  printf %s "(cached) " >&6
17998else $as_nop
17999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18000/* end confdefs.h.  */
18001int i;
18002int
18003main (void)
18004{
18005
18006  ;
18007  return 0;
18008}
18009_ACEOF
18010if ac_fn_c_try_link "$LINENO"
18011then :
18012  eval $cacheid=yes
18013else $as_nop
18014  eval $cacheid=no
18015fi
18016rm -f core conftest.err conftest.$ac_objext conftest.beam \
18017    conftest$ac_exeext conftest.$ac_ext
18018fi
18019
18020
18021		CFLAGS="$xorg_testset_save_CFLAGS"
18022
18023		eval supported=\$$cacheid
18024		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18025printf "%s\n" "$supported" >&6; }
18026		if test "$supported" = "yes" ; then
18027			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18028			found="yes"
18029		fi
18030	fi
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046xorg_testset_save_CFLAGS="$CFLAGS"
18047
18048if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18049	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18050	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18051printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18052if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18053then :
18054  printf %s "(cached) " >&6
18055else $as_nop
18056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18057/* end confdefs.h.  */
18058int i;
18059_ACEOF
18060if ac_fn_c_try_compile "$LINENO"
18061then :
18062  xorg_cv_cc_flag_unknown_warning_option=yes
18063else $as_nop
18064  xorg_cv_cc_flag_unknown_warning_option=no
18065fi
18066rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18067fi
18068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18069printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18070	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18071	CFLAGS="$xorg_testset_save_CFLAGS"
18072fi
18073
18074if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18075	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18076		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18077	fi
18078	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18079	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18080printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18081if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18082then :
18083  printf %s "(cached) " >&6
18084else $as_nop
18085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18086/* end confdefs.h.  */
18087int i;
18088_ACEOF
18089if ac_fn_c_try_compile "$LINENO"
18090then :
18091  xorg_cv_cc_flag_unused_command_line_argument=yes
18092else $as_nop
18093  xorg_cv_cc_flag_unused_command_line_argument=no
18094fi
18095rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18096fi
18097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18098printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18099	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18100	CFLAGS="$xorg_testset_save_CFLAGS"
18101fi
18102
18103found="no"
18104
18105	if test $found = "no" ; then
18106		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18107			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18108		fi
18109
18110		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18111			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18112		fi
18113
18114		CFLAGS="$CFLAGS -Wwrite-strings"
18115
18116		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18117printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18118		cacheid=xorg_cv_cc_flag__Wwrite_strings
18119		if eval test \${$cacheid+y}
18120then :
18121  printf %s "(cached) " >&6
18122else $as_nop
18123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18124/* end confdefs.h.  */
18125int i;
18126int
18127main (void)
18128{
18129
18130  ;
18131  return 0;
18132}
18133_ACEOF
18134if ac_fn_c_try_link "$LINENO"
18135then :
18136  eval $cacheid=yes
18137else $as_nop
18138  eval $cacheid=no
18139fi
18140rm -f core conftest.err conftest.$ac_objext conftest.beam \
18141    conftest$ac_exeext conftest.$ac_ext
18142fi
18143
18144
18145		CFLAGS="$xorg_testset_save_CFLAGS"
18146
18147		eval supported=\$$cacheid
18148		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18149printf "%s\n" "$supported" >&6; }
18150		if test "$supported" = "yes" ; then
18151			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18152			found="yes"
18153		fi
18154	fi
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170xorg_testset_save_CFLAGS="$CFLAGS"
18171
18172if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18173	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18174	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18175printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18176if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18177then :
18178  printf %s "(cached) " >&6
18179else $as_nop
18180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18181/* end confdefs.h.  */
18182int i;
18183_ACEOF
18184if ac_fn_c_try_compile "$LINENO"
18185then :
18186  xorg_cv_cc_flag_unknown_warning_option=yes
18187else $as_nop
18188  xorg_cv_cc_flag_unknown_warning_option=no
18189fi
18190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18191fi
18192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18193printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18194	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18195	CFLAGS="$xorg_testset_save_CFLAGS"
18196fi
18197
18198if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18199	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18200		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18201	fi
18202	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18203	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18204printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18205if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18206then :
18207  printf %s "(cached) " >&6
18208else $as_nop
18209  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_unused_command_line_argument=yes
18216else $as_nop
18217  xorg_cv_cc_flag_unused_command_line_argument=no
18218fi
18219rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18220fi
18221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18222printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18223	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18224	CFLAGS="$xorg_testset_save_CFLAGS"
18225fi
18226
18227found="no"
18228
18229	if test $found = "no" ; then
18230		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18231			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18232		fi
18233
18234		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18235			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18236		fi
18237
18238		CFLAGS="$CFLAGS -Waddress"
18239
18240		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18241printf %s "checking if $CC supports -Waddress... " >&6; }
18242		cacheid=xorg_cv_cc_flag__Waddress
18243		if eval test \${$cacheid+y}
18244then :
18245  printf %s "(cached) " >&6
18246else $as_nop
18247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18248/* end confdefs.h.  */
18249int i;
18250int
18251main (void)
18252{
18253
18254  ;
18255  return 0;
18256}
18257_ACEOF
18258if ac_fn_c_try_link "$LINENO"
18259then :
18260  eval $cacheid=yes
18261else $as_nop
18262  eval $cacheid=no
18263fi
18264rm -f core conftest.err conftest.$ac_objext conftest.beam \
18265    conftest$ac_exeext conftest.$ac_ext
18266fi
18267
18268
18269		CFLAGS="$xorg_testset_save_CFLAGS"
18270
18271		eval supported=\$$cacheid
18272		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18273printf "%s\n" "$supported" >&6; }
18274		if test "$supported" = "yes" ; then
18275			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18276			found="yes"
18277		fi
18278	fi
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294xorg_testset_save_CFLAGS="$CFLAGS"
18295
18296if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18297	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18298	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18299printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18300if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18301then :
18302  printf %s "(cached) " >&6
18303else $as_nop
18304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18305/* end confdefs.h.  */
18306int i;
18307_ACEOF
18308if ac_fn_c_try_compile "$LINENO"
18309then :
18310  xorg_cv_cc_flag_unknown_warning_option=yes
18311else $as_nop
18312  xorg_cv_cc_flag_unknown_warning_option=no
18313fi
18314rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18315fi
18316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18317printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18318	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18319	CFLAGS="$xorg_testset_save_CFLAGS"
18320fi
18321
18322if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18323	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18324		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18325	fi
18326	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18327	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18328printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18329if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18330then :
18331  printf %s "(cached) " >&6
18332else $as_nop
18333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18334/* end confdefs.h.  */
18335int i;
18336_ACEOF
18337if ac_fn_c_try_compile "$LINENO"
18338then :
18339  xorg_cv_cc_flag_unused_command_line_argument=yes
18340else $as_nop
18341  xorg_cv_cc_flag_unused_command_line_argument=no
18342fi
18343rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18344fi
18345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18346printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18347	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18348	CFLAGS="$xorg_testset_save_CFLAGS"
18349fi
18350
18351found="no"
18352
18353	if test $found = "no" ; then
18354		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18355			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18356		fi
18357
18358		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18359			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18360		fi
18361
18362		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18363
18364		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18365printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18366		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18367		if eval test \${$cacheid+y}
18368then :
18369  printf %s "(cached) " >&6
18370else $as_nop
18371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18372/* end confdefs.h.  */
18373int i;
18374int
18375main (void)
18376{
18377
18378  ;
18379  return 0;
18380}
18381_ACEOF
18382if ac_fn_c_try_link "$LINENO"
18383then :
18384  eval $cacheid=yes
18385else $as_nop
18386  eval $cacheid=no
18387fi
18388rm -f core conftest.err conftest.$ac_objext conftest.beam \
18389    conftest$ac_exeext conftest.$ac_ext
18390fi
18391
18392
18393		CFLAGS="$xorg_testset_save_CFLAGS"
18394
18395		eval supported=\$$cacheid
18396		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18397printf "%s\n" "$supported" >&6; }
18398		if test "$supported" = "yes" ; then
18399			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18400			found="yes"
18401		fi
18402	fi
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418xorg_testset_save_CFLAGS="$CFLAGS"
18419
18420if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18421	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18422	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18423printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18424if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18425then :
18426  printf %s "(cached) " >&6
18427else $as_nop
18428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18429/* end confdefs.h.  */
18430int i;
18431_ACEOF
18432if ac_fn_c_try_compile "$LINENO"
18433then :
18434  xorg_cv_cc_flag_unknown_warning_option=yes
18435else $as_nop
18436  xorg_cv_cc_flag_unknown_warning_option=no
18437fi
18438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18439fi
18440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18441printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18442	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18443	CFLAGS="$xorg_testset_save_CFLAGS"
18444fi
18445
18446if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18447	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18448		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18449	fi
18450	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18451	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18452printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18453if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18454then :
18455  printf %s "(cached) " >&6
18456else $as_nop
18457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18458/* end confdefs.h.  */
18459int i;
18460_ACEOF
18461if ac_fn_c_try_compile "$LINENO"
18462then :
18463  xorg_cv_cc_flag_unused_command_line_argument=yes
18464else $as_nop
18465  xorg_cv_cc_flag_unused_command_line_argument=no
18466fi
18467rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18468fi
18469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18470printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18471	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18472	CFLAGS="$xorg_testset_save_CFLAGS"
18473fi
18474
18475found="no"
18476
18477	if test $found = "no" ; then
18478		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18479			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18480		fi
18481
18482		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18483			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18484		fi
18485
18486		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18487
18488		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18489printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18490		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18491		if eval test \${$cacheid+y}
18492then :
18493  printf %s "(cached) " >&6
18494else $as_nop
18495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18496/* end confdefs.h.  */
18497int i;
18498int
18499main (void)
18500{
18501
18502  ;
18503  return 0;
18504}
18505_ACEOF
18506if ac_fn_c_try_link "$LINENO"
18507then :
18508  eval $cacheid=yes
18509else $as_nop
18510  eval $cacheid=no
18511fi
18512rm -f core conftest.err conftest.$ac_objext conftest.beam \
18513    conftest$ac_exeext conftest.$ac_ext
18514fi
18515
18516
18517		CFLAGS="$xorg_testset_save_CFLAGS"
18518
18519		eval supported=\$$cacheid
18520		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18521printf "%s\n" "$supported" >&6; }
18522		if test "$supported" = "yes" ; then
18523			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18524			found="yes"
18525		fi
18526	fi
18527
18528
18529fi
18530
18531
18532
18533
18534
18535
18536
18537		CWARNFLAGS="$BASE_CFLAGS"
18538		if  test "x$GCC" = xyes ; then
18539		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18540		fi
18541
18542
18543
18544
18545
18546
18547
18548
18549# Check whether --enable-strict-compilation was given.
18550if test ${enable_strict_compilation+y}
18551then :
18552  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18553else $as_nop
18554  STRICT_COMPILE=no
18555fi
18556
18557
18558
18559
18560
18561
18562STRICT_CFLAGS=""
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576xorg_testset_save_CFLAGS="$CFLAGS"
18577
18578if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18579	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18580	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18581printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18582if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18583then :
18584  printf %s "(cached) " >&6
18585else $as_nop
18586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18587/* end confdefs.h.  */
18588int i;
18589_ACEOF
18590if ac_fn_c_try_compile "$LINENO"
18591then :
18592  xorg_cv_cc_flag_unknown_warning_option=yes
18593else $as_nop
18594  xorg_cv_cc_flag_unknown_warning_option=no
18595fi
18596rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18597fi
18598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18599printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18600	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18601	CFLAGS="$xorg_testset_save_CFLAGS"
18602fi
18603
18604if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18605	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18606		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18607	fi
18608	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18609	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18610printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18611if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18612then :
18613  printf %s "(cached) " >&6
18614else $as_nop
18615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18616/* end confdefs.h.  */
18617int i;
18618_ACEOF
18619if ac_fn_c_try_compile "$LINENO"
18620then :
18621  xorg_cv_cc_flag_unused_command_line_argument=yes
18622else $as_nop
18623  xorg_cv_cc_flag_unused_command_line_argument=no
18624fi
18625rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18626fi
18627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18628printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18629	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18630	CFLAGS="$xorg_testset_save_CFLAGS"
18631fi
18632
18633found="no"
18634
18635	if test $found = "no" ; then
18636		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18637			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18638		fi
18639
18640		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18641			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18642		fi
18643
18644		CFLAGS="$CFLAGS -pedantic"
18645
18646		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18647printf %s "checking if $CC supports -pedantic... " >&6; }
18648		cacheid=xorg_cv_cc_flag__pedantic
18649		if eval test \${$cacheid+y}
18650then :
18651  printf %s "(cached) " >&6
18652else $as_nop
18653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18654/* end confdefs.h.  */
18655int i;
18656int
18657main (void)
18658{
18659
18660  ;
18661  return 0;
18662}
18663_ACEOF
18664if ac_fn_c_try_link "$LINENO"
18665then :
18666  eval $cacheid=yes
18667else $as_nop
18668  eval $cacheid=no
18669fi
18670rm -f core conftest.err conftest.$ac_objext conftest.beam \
18671    conftest$ac_exeext conftest.$ac_ext
18672fi
18673
18674
18675		CFLAGS="$xorg_testset_save_CFLAGS"
18676
18677		eval supported=\$$cacheid
18678		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18679printf "%s\n" "$supported" >&6; }
18680		if test "$supported" = "yes" ; then
18681			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18682			found="yes"
18683		fi
18684	fi
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700xorg_testset_save_CFLAGS="$CFLAGS"
18701
18702if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18703	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18704	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18705printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18706if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18707then :
18708  printf %s "(cached) " >&6
18709else $as_nop
18710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18711/* end confdefs.h.  */
18712int i;
18713_ACEOF
18714if ac_fn_c_try_compile "$LINENO"
18715then :
18716  xorg_cv_cc_flag_unknown_warning_option=yes
18717else $as_nop
18718  xorg_cv_cc_flag_unknown_warning_option=no
18719fi
18720rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18721fi
18722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18723printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18724	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18725	CFLAGS="$xorg_testset_save_CFLAGS"
18726fi
18727
18728if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18729	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18730		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18731	fi
18732	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18733	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18734printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18735if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18736then :
18737  printf %s "(cached) " >&6
18738else $as_nop
18739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18740/* end confdefs.h.  */
18741int i;
18742_ACEOF
18743if ac_fn_c_try_compile "$LINENO"
18744then :
18745  xorg_cv_cc_flag_unused_command_line_argument=yes
18746else $as_nop
18747  xorg_cv_cc_flag_unused_command_line_argument=no
18748fi
18749rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18750fi
18751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18752printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18753	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18754	CFLAGS="$xorg_testset_save_CFLAGS"
18755fi
18756
18757found="no"
18758
18759	if test $found = "no" ; then
18760		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18761			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18762		fi
18763
18764		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18765			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18766		fi
18767
18768		CFLAGS="$CFLAGS -Werror"
18769
18770		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18771printf %s "checking if $CC supports -Werror... " >&6; }
18772		cacheid=xorg_cv_cc_flag__Werror
18773		if eval test \${$cacheid+y}
18774then :
18775  printf %s "(cached) " >&6
18776else $as_nop
18777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18778/* end confdefs.h.  */
18779int i;
18780int
18781main (void)
18782{
18783
18784  ;
18785  return 0;
18786}
18787_ACEOF
18788if ac_fn_c_try_link "$LINENO"
18789then :
18790  eval $cacheid=yes
18791else $as_nop
18792  eval $cacheid=no
18793fi
18794rm -f core conftest.err conftest.$ac_objext conftest.beam \
18795    conftest$ac_exeext conftest.$ac_ext
18796fi
18797
18798
18799		CFLAGS="$xorg_testset_save_CFLAGS"
18800
18801		eval supported=\$$cacheid
18802		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18803printf "%s\n" "$supported" >&6; }
18804		if test "$supported" = "yes" ; then
18805			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18806			found="yes"
18807		fi
18808	fi
18809
18810	if test $found = "no" ; then
18811		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18812			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18813		fi
18814
18815		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18816			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18817		fi
18818
18819		CFLAGS="$CFLAGS -errwarn"
18820
18821		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18822printf %s "checking if $CC supports -errwarn... " >&6; }
18823		cacheid=xorg_cv_cc_flag__errwarn
18824		if eval test \${$cacheid+y}
18825then :
18826  printf %s "(cached) " >&6
18827else $as_nop
18828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18829/* end confdefs.h.  */
18830int i;
18831int
18832main (void)
18833{
18834
18835  ;
18836  return 0;
18837}
18838_ACEOF
18839if ac_fn_c_try_link "$LINENO"
18840then :
18841  eval $cacheid=yes
18842else $as_nop
18843  eval $cacheid=no
18844fi
18845rm -f core conftest.err conftest.$ac_objext conftest.beam \
18846    conftest$ac_exeext conftest.$ac_ext
18847fi
18848
18849
18850		CFLAGS="$xorg_testset_save_CFLAGS"
18851
18852		eval supported=\$$cacheid
18853		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18854printf "%s\n" "$supported" >&6; }
18855		if test "$supported" = "yes" ; then
18856			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18857			found="yes"
18858		fi
18859	fi
18860
18861
18862
18863# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18864# activate it with -Werror, so we add it here explicitly.
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878xorg_testset_save_CFLAGS="$CFLAGS"
18879
18880if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18881	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18882	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18883printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18884if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18885then :
18886  printf %s "(cached) " >&6
18887else $as_nop
18888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18889/* end confdefs.h.  */
18890int i;
18891_ACEOF
18892if ac_fn_c_try_compile "$LINENO"
18893then :
18894  xorg_cv_cc_flag_unknown_warning_option=yes
18895else $as_nop
18896  xorg_cv_cc_flag_unknown_warning_option=no
18897fi
18898rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18899fi
18900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18901printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18902	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18903	CFLAGS="$xorg_testset_save_CFLAGS"
18904fi
18905
18906if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18907	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18908		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18909	fi
18910	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18911	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18912printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18913if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18914then :
18915  printf %s "(cached) " >&6
18916else $as_nop
18917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18918/* end confdefs.h.  */
18919int i;
18920_ACEOF
18921if ac_fn_c_try_compile "$LINENO"
18922then :
18923  xorg_cv_cc_flag_unused_command_line_argument=yes
18924else $as_nop
18925  xorg_cv_cc_flag_unused_command_line_argument=no
18926fi
18927rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18928fi
18929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18930printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18931	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18932	CFLAGS="$xorg_testset_save_CFLAGS"
18933fi
18934
18935found="no"
18936
18937	if test $found = "no" ; then
18938		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18939			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18940		fi
18941
18942		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18943			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18944		fi
18945
18946		CFLAGS="$CFLAGS -Werror=attributes"
18947
18948		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18949printf %s "checking if $CC supports -Werror=attributes... " >&6; }
18950		cacheid=xorg_cv_cc_flag__Werror_attributes
18951		if eval test \${$cacheid+y}
18952then :
18953  printf %s "(cached) " >&6
18954else $as_nop
18955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18956/* end confdefs.h.  */
18957int i;
18958int
18959main (void)
18960{
18961
18962  ;
18963  return 0;
18964}
18965_ACEOF
18966if ac_fn_c_try_link "$LINENO"
18967then :
18968  eval $cacheid=yes
18969else $as_nop
18970  eval $cacheid=no
18971fi
18972rm -f core conftest.err conftest.$ac_objext conftest.beam \
18973    conftest$ac_exeext conftest.$ac_ext
18974fi
18975
18976
18977		CFLAGS="$xorg_testset_save_CFLAGS"
18978
18979		eval supported=\$$cacheid
18980		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18981printf "%s\n" "$supported" >&6; }
18982		if test "$supported" = "yes" ; then
18983			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18984			found="yes"
18985		fi
18986	fi
18987
18988
18989
18990if test "x$STRICT_COMPILE" = "xyes"; then
18991    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18992    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18993fi
18994
18995
18996
18997
18998
18999
19000
19001
19002cat >>confdefs.h <<_ACEOF
19003#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19004_ACEOF
19005
19006	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19007	if test "x$PVM" = "x"; then
19008		PVM="0"
19009	fi
19010
19011printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19012
19013	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19014	if test "x$PVP" = "x"; then
19015		PVP="0"
19016	fi
19017
19018printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19019
19020
19021
19022CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19023mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19024|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19025touch \$(top_srcdir)/ChangeLog; \
19026echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19027
19028
19029
19030
19031macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19032INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19033mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19034|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19035touch \$(top_srcdir)/INSTALL; \
19036echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19037
19038
19039
19040
19041
19042
19043case $host_os in
19044    solaris*)
19045        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19046        # check for a man page file found in later versions that use
19047        # traditional section numbers instead
19048        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19049printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19050if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19051then :
19052  printf %s "(cached) " >&6
19053else $as_nop
19054  test "$cross_compiling" = yes &&
19055  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19056if test -r "/usr/share/man/man7/attributes.7"; then
19057  ac_cv_file__usr_share_man_man7_attributes_7=yes
19058else
19059  ac_cv_file__usr_share_man_man7_attributes_7=no
19060fi
19061fi
19062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19063printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19064if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19065then :
19066  SYSV_MAN_SECTIONS=false
19067else $as_nop
19068  SYSV_MAN_SECTIONS=true
19069fi
19070
19071        ;;
19072    *) SYSV_MAN_SECTIONS=false ;;
19073esac
19074
19075if test x$APP_MAN_SUFFIX = x    ; then
19076    APP_MAN_SUFFIX=1
19077fi
19078if test x$APP_MAN_DIR = x    ; then
19079    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19080fi
19081
19082if test x$LIB_MAN_SUFFIX = x    ; then
19083    LIB_MAN_SUFFIX=3
19084fi
19085if test x$LIB_MAN_DIR = x    ; then
19086    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19087fi
19088
19089if test x$FILE_MAN_SUFFIX = x    ; then
19090    case $SYSV_MAN_SECTIONS in
19091	true)				FILE_MAN_SUFFIX=4  ;;
19092	*)				FILE_MAN_SUFFIX=5  ;;
19093    esac
19094fi
19095if test x$FILE_MAN_DIR = x    ; then
19096    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19097fi
19098
19099if test x$MISC_MAN_SUFFIX = x    ; then
19100    case $SYSV_MAN_SECTIONS in
19101	true)				MISC_MAN_SUFFIX=5  ;;
19102	*)				MISC_MAN_SUFFIX=7  ;;
19103    esac
19104fi
19105if test x$MISC_MAN_DIR = x    ; then
19106    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19107fi
19108
19109if test x$DRIVER_MAN_SUFFIX = x    ; then
19110    case $SYSV_MAN_SECTIONS in
19111	true)				DRIVER_MAN_SUFFIX=7  ;;
19112	*)				DRIVER_MAN_SUFFIX=4  ;;
19113    esac
19114fi
19115if test x$DRIVER_MAN_DIR = x    ; then
19116    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19117fi
19118
19119if test x$ADMIN_MAN_SUFFIX = x    ; then
19120    case $SYSV_MAN_SECTIONS in
19121	true)				ADMIN_MAN_SUFFIX=1m ;;
19122	*)				ADMIN_MAN_SUFFIX=8  ;;
19123    esac
19124fi
19125if test x$ADMIN_MAN_DIR = x    ; then
19126    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19127fi
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143XORG_MAN_PAGE="X Version 11"
19144
19145MAN_SUBSTS="\
19146	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19147	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19148	-e 's|__xservername__|Xorg|g' \
19149	-e 's|__xconfigfile__|xorg.conf|g' \
19150	-e 's|__projectroot__|\$(prefix)|g' \
19151	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
19152	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19153	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19154	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19155	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19156	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19157	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19158
19159
19160
19161# Check whether --enable-silent-rules was given.
19162if test ${enable_silent_rules+y}
19163then :
19164  enableval=$enable_silent_rules;
19165fi
19166
19167case $enable_silent_rules in # (((
19168  yes) AM_DEFAULT_VERBOSITY=0;;
19169   no) AM_DEFAULT_VERBOSITY=1;;
19170    *) AM_DEFAULT_VERBOSITY=0;;
19171esac
19172am_make=${MAKE-make}
19173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19174printf %s "checking whether $am_make supports nested variables... " >&6; }
19175if test ${am_cv_make_support_nested_variables+y}
19176then :
19177  printf %s "(cached) " >&6
19178else $as_nop
19179  if printf "%s\n" 'TRUE=$(BAR$(V))
19180BAR0=false
19181BAR1=true
19182V=1
19183am__doit:
19184	@$(TRUE)
19185.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19186  am_cv_make_support_nested_variables=yes
19187else
19188  am_cv_make_support_nested_variables=no
19189fi
19190fi
19191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19192printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19193if test $am_cv_make_support_nested_variables = yes; then
19194    AM_V='$(V)'
19195  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19196else
19197  AM_V=$AM_DEFAULT_VERBOSITY
19198  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19199fi
19200AM_BACKSLASH='\'
19201
19202
19203
19204
19205# Check fixesext configuration, strip extra digits from package version to
19206# find the required protocol version
19207FIXESEXT_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
19208
19209
19210# Obtain compiler/linker options for dependencies
19211
19212pkg_failed=no
19213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FIXESEXT" >&5
19214printf %s "checking for FIXESEXT... " >&6; }
19215
19216if test -n "$FIXESEXT_CFLAGS"; then
19217    pkg_cv_FIXESEXT_CFLAGS="$FIXESEXT_CFLAGS"
19218 elif test -n "$PKG_CONFIG"; then
19219    if test -n "$PKG_CONFIG" && \
19220    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.22 fixesproto >= \$FIXESEXT_VERSION xextproto x11 >= 1.6\""; } >&5
19221  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.22 fixesproto >= $FIXESEXT_VERSION xextproto x11 >= 1.6") 2>&5
19222  ac_status=$?
19223  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19224  test $ac_status = 0; }; then
19225  pkg_cv_FIXESEXT_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.22 fixesproto >= $FIXESEXT_VERSION xextproto x11 >= 1.6" 2>/dev/null`
19226		      test "x$?" != "x0" && pkg_failed=yes
19227else
19228  pkg_failed=yes
19229fi
19230 else
19231    pkg_failed=untried
19232fi
19233if test -n "$FIXESEXT_LIBS"; then
19234    pkg_cv_FIXESEXT_LIBS="$FIXESEXT_LIBS"
19235 elif test -n "$PKG_CONFIG"; then
19236    if test -n "$PKG_CONFIG" && \
19237    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.22 fixesproto >= \$FIXESEXT_VERSION xextproto x11 >= 1.6\""; } >&5
19238  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.22 fixesproto >= $FIXESEXT_VERSION xextproto x11 >= 1.6") 2>&5
19239  ac_status=$?
19240  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19241  test $ac_status = 0; }; then
19242  pkg_cv_FIXESEXT_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.22 fixesproto >= $FIXESEXT_VERSION xextproto x11 >= 1.6" 2>/dev/null`
19243		      test "x$?" != "x0" && pkg_failed=yes
19244else
19245  pkg_failed=yes
19246fi
19247 else
19248    pkg_failed=untried
19249fi
19250
19251
19252
19253if test $pkg_failed = yes; then
19254   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19255printf "%s\n" "no" >&6; }
19256
19257if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19258        _pkg_short_errors_supported=yes
19259else
19260        _pkg_short_errors_supported=no
19261fi
19262        if test $_pkg_short_errors_supported = yes; then
19263	        FIXESEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.22 fixesproto >= $FIXESEXT_VERSION xextproto x11 >= 1.6" 2>&1`
19264        else
19265	        FIXESEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.22 fixesproto >= $FIXESEXT_VERSION xextproto x11 >= 1.6" 2>&1`
19266        fi
19267	# Put the nasty error message in config.log where it belongs
19268	echo "$FIXESEXT_PKG_ERRORS" >&5
19269
19270	as_fn_error $? "Package requirements (xproto >= 7.0.22 fixesproto >= $FIXESEXT_VERSION xextproto x11 >= 1.6) were not met:
19271
19272$FIXESEXT_PKG_ERRORS
19273
19274Consider adjusting the PKG_CONFIG_PATH environment variable if you
19275installed software in a non-standard prefix.
19276
19277Alternatively, you may set the environment variables FIXESEXT_CFLAGS
19278and FIXESEXT_LIBS to avoid the need to call pkg-config.
19279See the pkg-config man page for more details." "$LINENO" 5
19280elif test $pkg_failed = untried; then
19281     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19282printf "%s\n" "no" >&6; }
19283	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19284printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19285as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19286is in your PATH or set the PKG_CONFIG environment variable to the full
19287path to pkg-config.
19288
19289Alternatively, you may set the environment variables FIXESEXT_CFLAGS
19290and FIXESEXT_LIBS to avoid the need to call pkg-config.
19291See the pkg-config man page for more details.
19292
19293To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19294See \`config.log' for more details" "$LINENO" 5; }
19295else
19296	FIXESEXT_CFLAGS=$pkg_cv_FIXESEXT_CFLAGS
19297	FIXESEXT_LIBS=$pkg_cv_FIXESEXT_LIBS
19298        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19299printf "%s\n" "yes" >&6; }
19300
19301fi
19302
19303
19304ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xfixes.pc"
19305
19306cat >confcache <<\_ACEOF
19307# This file is a shell script that caches the results of configure
19308# tests run on this system so they can be shared between configure
19309# scripts and configure runs, see configure's option --config-cache.
19310# It is not useful on other systems.  If it contains results you don't
19311# want to keep, you may remove or edit it.
19312#
19313# config.status only pays attention to the cache file if you give it
19314# the --recheck option to rerun configure.
19315#
19316# `ac_cv_env_foo' variables (set or unset) will be overridden when
19317# loading this file, other *unset* `ac_cv_foo' will be assigned the
19318# following values.
19319
19320_ACEOF
19321
19322# The following way of writing the cache mishandles newlines in values,
19323# but we know of no workaround that is simple, portable, and efficient.
19324# So, we kill variables containing newlines.
19325# Ultrix sh set writes to stderr and can't be redirected directly,
19326# and sets the high bit in the cache file unless we assign to the vars.
19327(
19328  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19329    eval ac_val=\$$ac_var
19330    case $ac_val in #(
19331    *${as_nl}*)
19332      case $ac_var in #(
19333      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19334printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19335      esac
19336      case $ac_var in #(
19337      _ | IFS | as_nl) ;; #(
19338      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19339      *) { eval $ac_var=; unset $ac_var;} ;;
19340      esac ;;
19341    esac
19342  done
19343
19344  (set) 2>&1 |
19345    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19346    *${as_nl}ac_space=\ *)
19347      # `set' does not quote correctly, so add quotes: double-quote
19348      # substitution turns \\\\ into \\, and sed turns \\ into \.
19349      sed -n \
19350	"s/'/'\\\\''/g;
19351	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19352      ;; #(
19353    *)
19354      # `set' quotes correctly as required by POSIX, so do not add quotes.
19355      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19356      ;;
19357    esac |
19358    sort
19359) |
19360  sed '
19361     /^ac_cv_env_/b end
19362     t clear
19363     :clear
19364     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19365     t end
19366     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19367     :end' >>confcache
19368if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19369  if test -w "$cache_file"; then
19370    if test "x$cache_file" != "x/dev/null"; then
19371      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19372printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19373      if test ! -f "$cache_file" || test -h "$cache_file"; then
19374	cat confcache >"$cache_file"
19375      else
19376        case $cache_file in #(
19377        */* | ?:*)
19378	  mv -f confcache "$cache_file"$$ &&
19379	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19380        *)
19381	  mv -f confcache "$cache_file" ;;
19382	esac
19383      fi
19384    fi
19385  else
19386    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19387printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19388  fi
19389fi
19390rm -f confcache
19391
19392test "x$prefix" = xNONE && prefix=$ac_default_prefix
19393# Let make expand exec_prefix.
19394test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19395
19396DEFS=-DHAVE_CONFIG_H
19397
19398ac_libobjs=
19399ac_ltlibobjs=
19400U=
19401for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19402  # 1. Remove the extension, and $U if already installed.
19403  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19404  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19405  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19406  #    will be set to the directory where LIBOBJS objects are built.
19407  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19408  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19409done
19410LIBOBJS=$ac_libobjs
19411
19412LTLIBOBJS=$ac_ltlibobjs
19413
19414
19415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19416printf %s "checking that generated files are newer than configure... " >&6; }
19417   if test -n "$am_sleep_pid"; then
19418     # Hide warnings about reused PIDs.
19419     wait $am_sleep_pid 2>/dev/null
19420   fi
19421   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19422printf "%s\n" "done" >&6; }
19423 if test -n "$EXEEXT"; then
19424  am__EXEEXT_TRUE=
19425  am__EXEEXT_FALSE='#'
19426else
19427  am__EXEEXT_TRUE='#'
19428  am__EXEEXT_FALSE=
19429fi
19430
19431if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19432  as_fn_error $? "conditional \"AMDEP\" was never defined.
19433Usually this means the macro was only invoked conditionally." "$LINENO" 5
19434fi
19435if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19436  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19437Usually this means the macro was only invoked conditionally." "$LINENO" 5
19438fi
19439
19440: "${CONFIG_STATUS=./config.status}"
19441ac_write_fail=0
19442ac_clean_files_save=$ac_clean_files
19443ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19445printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19446as_write_fail=0
19447cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19448#! $SHELL
19449# Generated by $as_me.
19450# Run this file to recreate the current configuration.
19451# Compiler output produced by configure, useful for debugging
19452# configure, is in config.log if it exists.
19453
19454debug=false
19455ac_cs_recheck=false
19456ac_cs_silent=false
19457
19458SHELL=\${CONFIG_SHELL-$SHELL}
19459export SHELL
19460_ASEOF
19461cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19462## -------------------- ##
19463## M4sh Initialization. ##
19464## -------------------- ##
19465
19466# Be more Bourne compatible
19467DUALCASE=1; export DUALCASE # for MKS sh
19468as_nop=:
19469if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19470then :
19471  emulate sh
19472  NULLCMD=:
19473  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19474  # is contrary to our usage.  Disable this feature.
19475  alias -g '${1+"$@"}'='"$@"'
19476  setopt NO_GLOB_SUBST
19477else $as_nop
19478  case `(set -o) 2>/dev/null` in #(
19479  *posix*) :
19480    set -o posix ;; #(
19481  *) :
19482     ;;
19483esac
19484fi
19485
19486
19487
19488# Reset variables that may have inherited troublesome values from
19489# the environment.
19490
19491# IFS needs to be set, to space, tab, and newline, in precisely that order.
19492# (If _AS_PATH_WALK were called with IFS unset, it would have the
19493# side effect of setting IFS to empty, thus disabling word splitting.)
19494# Quoting is to prevent editors from complaining about space-tab.
19495as_nl='
19496'
19497export as_nl
19498IFS=" ""	$as_nl"
19499
19500PS1='$ '
19501PS2='> '
19502PS4='+ '
19503
19504# Ensure predictable behavior from utilities with locale-dependent output.
19505LC_ALL=C
19506export LC_ALL
19507LANGUAGE=C
19508export LANGUAGE
19509
19510# We cannot yet rely on "unset" to work, but we need these variables
19511# to be unset--not just set to an empty or harmless value--now, to
19512# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
19513# also avoids known problems related to "unset" and subshell syntax
19514# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19515for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19516do eval test \${$as_var+y} \
19517  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19518done
19519
19520# Ensure that fds 0, 1, and 2 are open.
19521if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19522if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19523if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
19524
19525# The user is always right.
19526if ${PATH_SEPARATOR+false} :; then
19527  PATH_SEPARATOR=:
19528  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19529    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19530      PATH_SEPARATOR=';'
19531  }
19532fi
19533
19534
19535# Find who we are.  Look in the path if we contain no directory separator.
19536as_myself=
19537case $0 in #((
19538  *[\\/]* ) as_myself=$0 ;;
19539  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19540for as_dir in $PATH
19541do
19542  IFS=$as_save_IFS
19543  case $as_dir in #(((
19544    '') as_dir=./ ;;
19545    */) ;;
19546    *) as_dir=$as_dir/ ;;
19547  esac
19548    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19549  done
19550IFS=$as_save_IFS
19551
19552     ;;
19553esac
19554# We did not find ourselves, most probably we were run as `sh COMMAND'
19555# in which case we are not to be found in the path.
19556if test "x$as_myself" = x; then
19557  as_myself=$0
19558fi
19559if test ! -f "$as_myself"; then
19560  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19561  exit 1
19562fi
19563
19564
19565
19566# as_fn_error STATUS ERROR [LINENO LOG_FD]
19567# ----------------------------------------
19568# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19569# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19570# script with STATUS, using 1 if that was 0.
19571as_fn_error ()
19572{
19573  as_status=$1; test $as_status -eq 0 && as_status=1
19574  if test "$4"; then
19575    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19576    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19577  fi
19578  printf "%s\n" "$as_me: error: $2" >&2
19579  as_fn_exit $as_status
19580} # as_fn_error
19581
19582
19583
19584# as_fn_set_status STATUS
19585# -----------------------
19586# Set $? to STATUS, without forking.
19587as_fn_set_status ()
19588{
19589  return $1
19590} # as_fn_set_status
19591
19592# as_fn_exit STATUS
19593# -----------------
19594# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19595as_fn_exit ()
19596{
19597  set +e
19598  as_fn_set_status $1
19599  exit $1
19600} # as_fn_exit
19601
19602# as_fn_unset VAR
19603# ---------------
19604# Portably unset VAR.
19605as_fn_unset ()
19606{
19607  { eval $1=; unset $1;}
19608}
19609as_unset=as_fn_unset
19610
19611# as_fn_append VAR VALUE
19612# ----------------------
19613# Append the text in VALUE to the end of the definition contained in VAR. Take
19614# advantage of any shell optimizations that allow amortized linear growth over
19615# repeated appends, instead of the typical quadratic growth present in naive
19616# implementations.
19617if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19618then :
19619  eval 'as_fn_append ()
19620  {
19621    eval $1+=\$2
19622  }'
19623else $as_nop
19624  as_fn_append ()
19625  {
19626    eval $1=\$$1\$2
19627  }
19628fi # as_fn_append
19629
19630# as_fn_arith ARG...
19631# ------------------
19632# Perform arithmetic evaluation on the ARGs, and store the result in the
19633# global $as_val. Take advantage of shells that can avoid forks. The arguments
19634# must be portable across $(()) and expr.
19635if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19636then :
19637  eval 'as_fn_arith ()
19638  {
19639    as_val=$(( $* ))
19640  }'
19641else $as_nop
19642  as_fn_arith ()
19643  {
19644    as_val=`expr "$@" || test $? -eq 1`
19645  }
19646fi # as_fn_arith
19647
19648
19649if expr a : '\(a\)' >/dev/null 2>&1 &&
19650   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19651  as_expr=expr
19652else
19653  as_expr=false
19654fi
19655
19656if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19657  as_basename=basename
19658else
19659  as_basename=false
19660fi
19661
19662if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19663  as_dirname=dirname
19664else
19665  as_dirname=false
19666fi
19667
19668as_me=`$as_basename -- "$0" ||
19669$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19670	 X"$0" : 'X\(//\)$' \| \
19671	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19672printf "%s\n" X/"$0" |
19673    sed '/^.*\/\([^/][^/]*\)\/*$/{
19674	    s//\1/
19675	    q
19676	  }
19677	  /^X\/\(\/\/\)$/{
19678	    s//\1/
19679	    q
19680	  }
19681	  /^X\/\(\/\).*/{
19682	    s//\1/
19683	    q
19684	  }
19685	  s/.*/./; q'`
19686
19687# Avoid depending upon Character Ranges.
19688as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19689as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19690as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19691as_cr_digits='0123456789'
19692as_cr_alnum=$as_cr_Letters$as_cr_digits
19693
19694
19695# Determine whether it's possible to make 'echo' print without a newline.
19696# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19697# for compatibility with existing Makefiles.
19698ECHO_C= ECHO_N= ECHO_T=
19699case `echo -n x` in #(((((
19700-n*)
19701  case `echo 'xy\c'` in
19702  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19703  xy)  ECHO_C='\c';;
19704  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19705       ECHO_T='	';;
19706  esac;;
19707*)
19708  ECHO_N='-n';;
19709esac
19710
19711# For backward compatibility with old third-party macros, we provide
19712# the shell variables $as_echo and $as_echo_n.  New code should use
19713# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19714as_echo='printf %s\n'
19715as_echo_n='printf %s'
19716
19717rm -f conf$$ conf$$.exe conf$$.file
19718if test -d conf$$.dir; then
19719  rm -f conf$$.dir/conf$$.file
19720else
19721  rm -f conf$$.dir
19722  mkdir conf$$.dir 2>/dev/null
19723fi
19724if (echo >conf$$.file) 2>/dev/null; then
19725  if ln -s conf$$.file conf$$ 2>/dev/null; then
19726    as_ln_s='ln -s'
19727    # ... but there are two gotchas:
19728    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19729    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19730    # In both cases, we have to default to `cp -pR'.
19731    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19732      as_ln_s='cp -pR'
19733  elif ln conf$$.file conf$$ 2>/dev/null; then
19734    as_ln_s=ln
19735  else
19736    as_ln_s='cp -pR'
19737  fi
19738else
19739  as_ln_s='cp -pR'
19740fi
19741rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19742rmdir conf$$.dir 2>/dev/null
19743
19744
19745# as_fn_mkdir_p
19746# -------------
19747# Create "$as_dir" as a directory, including parents if necessary.
19748as_fn_mkdir_p ()
19749{
19750
19751  case $as_dir in #(
19752  -*) as_dir=./$as_dir;;
19753  esac
19754  test -d "$as_dir" || eval $as_mkdir_p || {
19755    as_dirs=
19756    while :; do
19757      case $as_dir in #(
19758      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19759      *) as_qdir=$as_dir;;
19760      esac
19761      as_dirs="'$as_qdir' $as_dirs"
19762      as_dir=`$as_dirname -- "$as_dir" ||
19763$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19764	 X"$as_dir" : 'X\(//\)[^/]' \| \
19765	 X"$as_dir" : 'X\(//\)$' \| \
19766	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19767printf "%s\n" X"$as_dir" |
19768    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19769	    s//\1/
19770	    q
19771	  }
19772	  /^X\(\/\/\)[^/].*/{
19773	    s//\1/
19774	    q
19775	  }
19776	  /^X\(\/\/\)$/{
19777	    s//\1/
19778	    q
19779	  }
19780	  /^X\(\/\).*/{
19781	    s//\1/
19782	    q
19783	  }
19784	  s/.*/./; q'`
19785      test -d "$as_dir" && break
19786    done
19787    test -z "$as_dirs" || eval "mkdir $as_dirs"
19788  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19789
19790
19791} # as_fn_mkdir_p
19792if mkdir -p . 2>/dev/null; then
19793  as_mkdir_p='mkdir -p "$as_dir"'
19794else
19795  test -d ./-p && rmdir ./-p
19796  as_mkdir_p=false
19797fi
19798
19799
19800# as_fn_executable_p FILE
19801# -----------------------
19802# Test if FILE is an executable regular file.
19803as_fn_executable_p ()
19804{
19805  test -f "$1" && test -x "$1"
19806} # as_fn_executable_p
19807as_test_x='test -x'
19808as_executable_p=as_fn_executable_p
19809
19810# Sed expression to map a string onto a valid CPP name.
19811as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19812
19813# Sed expression to map a string onto a valid variable name.
19814as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19815
19816
19817exec 6>&1
19818## ----------------------------------- ##
19819## Main body of $CONFIG_STATUS script. ##
19820## ----------------------------------- ##
19821_ASEOF
19822test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19823
19824cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19825# Save the log message, to keep $0 and so on meaningful, and to
19826# report actual input values of CONFIG_FILES etc. instead of their
19827# values after options handling.
19828ac_log="
19829This file was extended by libXfixes $as_me 6.0.1, which was
19830generated by GNU Autoconf 2.71.  Invocation command line was
19831
19832  CONFIG_FILES    = $CONFIG_FILES
19833  CONFIG_HEADERS  = $CONFIG_HEADERS
19834  CONFIG_LINKS    = $CONFIG_LINKS
19835  CONFIG_COMMANDS = $CONFIG_COMMANDS
19836  $ $0 $@
19837
19838on `(hostname || uname -n) 2>/dev/null | sed 1q`
19839"
19840
19841_ACEOF
19842
19843case $ac_config_files in *"
19844"*) set x $ac_config_files; shift; ac_config_files=$*;;
19845esac
19846
19847case $ac_config_headers in *"
19848"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19849esac
19850
19851
19852cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19853# Files that config.status was made for.
19854config_files="$ac_config_files"
19855config_headers="$ac_config_headers"
19856config_commands="$ac_config_commands"
19857
19858_ACEOF
19859
19860cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19861ac_cs_usage="\
19862\`$as_me' instantiates files and other configuration actions
19863from templates according to the current configuration.  Unless the files
19864and actions are specified as TAGs, all are instantiated by default.
19865
19866Usage: $0 [OPTION]... [TAG]...
19867
19868  -h, --help       print this help, then exit
19869  -V, --version    print version number and configuration settings, then exit
19870      --config     print configuration, then exit
19871  -q, --quiet, --silent
19872                   do not print progress messages
19873  -d, --debug      don't remove temporary files
19874      --recheck    update $as_me by reconfiguring in the same conditions
19875      --file=FILE[:TEMPLATE]
19876                   instantiate the configuration file FILE
19877      --header=FILE[:TEMPLATE]
19878                   instantiate the configuration header FILE
19879
19880Configuration files:
19881$config_files
19882
19883Configuration headers:
19884$config_headers
19885
19886Configuration commands:
19887$config_commands
19888
19889Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxfixes/-/issues>."
19890
19891_ACEOF
19892ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
19893ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
19894cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19895ac_cs_config='$ac_cs_config_escaped'
19896ac_cs_version="\\
19897libXfixes config.status 6.0.1
19898configured by $0, generated by GNU Autoconf 2.71,
19899  with options \\"\$ac_cs_config\\"
19900
19901Copyright (C) 2021 Free Software Foundation, Inc.
19902This config.status script is free software; the Free Software Foundation
19903gives unlimited permission to copy, distribute and modify it."
19904
19905ac_pwd='$ac_pwd'
19906srcdir='$srcdir'
19907INSTALL='$INSTALL'
19908MKDIR_P='$MKDIR_P'
19909AWK='$AWK'
19910test -n "\$AWK" || AWK=awk
19911_ACEOF
19912
19913cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19914# The default lists apply if the user does not specify any file.
19915ac_need_defaults=:
19916while test $# != 0
19917do
19918  case $1 in
19919  --*=?*)
19920    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19921    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19922    ac_shift=:
19923    ;;
19924  --*=)
19925    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19926    ac_optarg=
19927    ac_shift=:
19928    ;;
19929  *)
19930    ac_option=$1
19931    ac_optarg=$2
19932    ac_shift=shift
19933    ;;
19934  esac
19935
19936  case $ac_option in
19937  # Handling of the options.
19938  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19939    ac_cs_recheck=: ;;
19940  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19941    printf "%s\n" "$ac_cs_version"; exit ;;
19942  --config | --confi | --conf | --con | --co | --c )
19943    printf "%s\n" "$ac_cs_config"; exit ;;
19944  --debug | --debu | --deb | --de | --d | -d )
19945    debug=: ;;
19946  --file | --fil | --fi | --f )
19947    $ac_shift
19948    case $ac_optarg in
19949    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19950    '') as_fn_error $? "missing file argument" ;;
19951    esac
19952    as_fn_append CONFIG_FILES " '$ac_optarg'"
19953    ac_need_defaults=false;;
19954  --header | --heade | --head | --hea )
19955    $ac_shift
19956    case $ac_optarg in
19957    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19958    esac
19959    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19960    ac_need_defaults=false;;
19961  --he | --h)
19962    # Conflict between --help and --header
19963    as_fn_error $? "ambiguous option: \`$1'
19964Try \`$0 --help' for more information.";;
19965  --help | --hel | -h )
19966    printf "%s\n" "$ac_cs_usage"; exit ;;
19967  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19968  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19969    ac_cs_silent=: ;;
19970
19971  # This is an error.
19972  -*) as_fn_error $? "unrecognized option: \`$1'
19973Try \`$0 --help' for more information." ;;
19974
19975  *) as_fn_append ac_config_targets " $1"
19976     ac_need_defaults=false ;;
19977
19978  esac
19979  shift
19980done
19981
19982ac_configure_extra_args=
19983
19984if $ac_cs_silent; then
19985  exec 6>/dev/null
19986  ac_configure_extra_args="$ac_configure_extra_args --silent"
19987fi
19988
19989_ACEOF
19990cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19991if \$ac_cs_recheck; then
19992  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19993  shift
19994  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
19995  CONFIG_SHELL='$SHELL'
19996  export CONFIG_SHELL
19997  exec "\$@"
19998fi
19999
20000_ACEOF
20001cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20002exec 5>>config.log
20003{
20004  echo
20005  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20006## Running $as_me. ##
20007_ASBOX
20008  printf "%s\n" "$ac_log"
20009} >&5
20010
20011_ACEOF
20012cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20013#
20014# INIT-COMMANDS
20015#
20016AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20017
20018
20019# The HP-UX ksh and POSIX shell print the target directory to stdout
20020# if CDPATH is set.
20021(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20022
20023sed_quote_subst='$sed_quote_subst'
20024double_quote_subst='$double_quote_subst'
20025delay_variable_subst='$delay_variable_subst'
20026macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20027macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20028enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20029enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20030pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20031enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20032shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20033SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20034ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20035PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20036host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20037host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20038host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20039build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20040build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20041build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20042SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20043Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20044GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20045EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20046FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20047LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20048NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20049LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20050max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20051ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20052exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20053lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20054lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20055lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20056lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20057lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20058reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20059reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20060FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20061OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20062deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20063file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20064file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20065want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20066DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20067sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20068AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20069lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20070AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20071archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20072STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20073RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20074old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20075old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20076old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20077lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20078CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20079CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20080compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20081GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20082lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20083lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20084lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20085lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20086lt_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"`'
20087lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20088nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20089lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20090lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20091objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20092MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20093lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20094lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20095lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20096lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20097lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20098need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20099MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20100DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20101NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20102LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20103OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20104OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20105libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20106shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20107extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20108archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20109enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20110export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20111whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20112compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20113old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20114old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20115archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20116archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20117module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20118module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20119with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20120allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20121no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20122hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20123hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20124hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20125hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20126hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20127hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20128hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20129inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20130link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20131always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20132export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20133exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20134include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20135prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20136postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20137file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20138variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20139need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20140need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20141version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20142runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20143shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20144shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20145libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20146library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20147soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20148install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20149postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20150postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20151finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20152finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20153hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20154sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20155configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20156configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20157hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20158enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20159enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20160enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20161old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20162striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20163
20164LTCC='$LTCC'
20165LTCFLAGS='$LTCFLAGS'
20166compiler='$compiler_DEFAULT'
20167
20168# A function that is used when there is no print builtin or printf.
20169func_fallback_echo ()
20170{
20171  eval 'cat <<_LTECHO_EOF
20172\$1
20173_LTECHO_EOF'
20174}
20175
20176# Quote evaled strings.
20177for var in SHELL \
20178ECHO \
20179PATH_SEPARATOR \
20180SED \
20181GREP \
20182EGREP \
20183FGREP \
20184LD \
20185NM \
20186LN_S \
20187lt_SP2NL \
20188lt_NL2SP \
20189reload_flag \
20190FILECMD \
20191OBJDUMP \
20192deplibs_check_method \
20193file_magic_cmd \
20194file_magic_glob \
20195want_nocaseglob \
20196DLLTOOL \
20197sharedlib_from_linklib_cmd \
20198AR \
20199archiver_list_spec \
20200STRIP \
20201RANLIB \
20202CC \
20203CFLAGS \
20204compiler \
20205lt_cv_sys_global_symbol_pipe \
20206lt_cv_sys_global_symbol_to_cdecl \
20207lt_cv_sys_global_symbol_to_import \
20208lt_cv_sys_global_symbol_to_c_name_address \
20209lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20210lt_cv_nm_interface \
20211nm_file_list_spec \
20212lt_cv_truncate_bin \
20213lt_prog_compiler_no_builtin_flag \
20214lt_prog_compiler_pic \
20215lt_prog_compiler_wl \
20216lt_prog_compiler_static \
20217lt_cv_prog_compiler_c_o \
20218need_locks \
20219MANIFEST_TOOL \
20220DSYMUTIL \
20221NMEDIT \
20222LIPO \
20223OTOOL \
20224OTOOL64 \
20225shrext_cmds \
20226export_dynamic_flag_spec \
20227whole_archive_flag_spec \
20228compiler_needs_object \
20229with_gnu_ld \
20230allow_undefined_flag \
20231no_undefined_flag \
20232hardcode_libdir_flag_spec \
20233hardcode_libdir_separator \
20234exclude_expsyms \
20235include_expsyms \
20236file_list_spec \
20237variables_saved_for_relink \
20238libname_spec \
20239library_names_spec \
20240soname_spec \
20241install_override_mode \
20242finish_eval \
20243old_striplib \
20244striplib; do
20245    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20246    *[\\\\\\\`\\"\\\$]*)
20247      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20248      ;;
20249    *)
20250      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20251      ;;
20252    esac
20253done
20254
20255# Double-quote double-evaled strings.
20256for var in reload_cmds \
20257old_postinstall_cmds \
20258old_postuninstall_cmds \
20259old_archive_cmds \
20260extract_expsyms_cmds \
20261old_archive_from_new_cmds \
20262old_archive_from_expsyms_cmds \
20263archive_cmds \
20264archive_expsym_cmds \
20265module_cmds \
20266module_expsym_cmds \
20267export_symbols_cmds \
20268prelink_cmds \
20269postlink_cmds \
20270postinstall_cmds \
20271postuninstall_cmds \
20272finish_cmds \
20273sys_lib_search_path_spec \
20274configure_time_dlsearch_path \
20275configure_time_lt_sys_library_path; do
20276    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20277    *[\\\\\\\`\\"\\\$]*)
20278      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20279      ;;
20280    *)
20281      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20282      ;;
20283    esac
20284done
20285
20286ac_aux_dir='$ac_aux_dir'
20287
20288# See if we are running on zsh, and set the options that allow our
20289# commands through without removal of \ escapes INIT.
20290if test -n "\${ZSH_VERSION+set}"; then
20291   setopt NO_GLOB_SUBST
20292fi
20293
20294
20295    PACKAGE='$PACKAGE'
20296    VERSION='$VERSION'
20297    RM='$RM'
20298    ofile='$ofile'
20299
20300
20301
20302
20303_ACEOF
20304
20305cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20306
20307# Handling of arguments.
20308for ac_config_target in $ac_config_targets
20309do
20310  case $ac_config_target in
20311    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20312    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20313    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20314    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20315    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20316    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20317    "xfixes.pc") CONFIG_FILES="$CONFIG_FILES xfixes.pc" ;;
20318
20319  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20320  esac
20321done
20322
20323
20324# If the user did not use the arguments to specify the items to instantiate,
20325# then the envvar interface is used.  Set only those that are not.
20326# We use the long form for the default assignment because of an extremely
20327# bizarre bug on SunOS 4.1.3.
20328if $ac_need_defaults; then
20329  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20330  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20331  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20332fi
20333
20334# Have a temporary directory for convenience.  Make it in the build tree
20335# simply because there is no reason against having it here, and in addition,
20336# creating and moving files from /tmp can sometimes cause problems.
20337# Hook for its removal unless debugging.
20338# Note that there is a small window in which the directory will not be cleaned:
20339# after its creation but before its name has been assigned to `$tmp'.
20340$debug ||
20341{
20342  tmp= ac_tmp=
20343  trap 'exit_status=$?
20344  : "${ac_tmp:=$tmp}"
20345  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20346' 0
20347  trap 'as_fn_exit 1' 1 2 13 15
20348}
20349# Create a (secure) tmp directory for tmp files.
20350
20351{
20352  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20353  test -d "$tmp"
20354}  ||
20355{
20356  tmp=./conf$$-$RANDOM
20357  (umask 077 && mkdir "$tmp")
20358} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20359ac_tmp=$tmp
20360
20361# Set up the scripts for CONFIG_FILES section.
20362# No need to generate them if there are no CONFIG_FILES.
20363# This happens for instance with `./config.status config.h'.
20364if test -n "$CONFIG_FILES"; then
20365
20366
20367ac_cr=`echo X | tr X '\015'`
20368# On cygwin, bash can eat \r inside `` if the user requested igncr.
20369# But we know of no other shell where ac_cr would be empty at this
20370# point, so we can use a bashism as a fallback.
20371if test "x$ac_cr" = x; then
20372  eval ac_cr=\$\'\\r\'
20373fi
20374ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20375if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20376  ac_cs_awk_cr='\\r'
20377else
20378  ac_cs_awk_cr=$ac_cr
20379fi
20380
20381echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20382_ACEOF
20383
20384
20385{
20386  echo "cat >conf$$subs.awk <<_ACEOF" &&
20387  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20388  echo "_ACEOF"
20389} >conf$$subs.sh ||
20390  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20391ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20392ac_delim='%!_!# '
20393for ac_last_try in false false false false false :; do
20394  . ./conf$$subs.sh ||
20395    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20396
20397  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20398  if test $ac_delim_n = $ac_delim_num; then
20399    break
20400  elif $ac_last_try; then
20401    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20402  else
20403    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20404  fi
20405done
20406rm -f conf$$subs.sh
20407
20408cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20409cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20410_ACEOF
20411sed -n '
20412h
20413s/^/S["/; s/!.*/"]=/
20414p
20415g
20416s/^[^!]*!//
20417:repl
20418t repl
20419s/'"$ac_delim"'$//
20420t delim
20421:nl
20422h
20423s/\(.\{148\}\)..*/\1/
20424t more1
20425s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20426p
20427n
20428b repl
20429:more1
20430s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20431p
20432g
20433s/.\{148\}//
20434t nl
20435:delim
20436h
20437s/\(.\{148\}\)..*/\1/
20438t more2
20439s/["\\]/\\&/g; s/^/"/; s/$/"/
20440p
20441b
20442:more2
20443s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20444p
20445g
20446s/.\{148\}//
20447t delim
20448' <conf$$subs.awk | sed '
20449/^[^""]/{
20450  N
20451  s/\n//
20452}
20453' >>$CONFIG_STATUS || ac_write_fail=1
20454rm -f conf$$subs.awk
20455cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20456_ACAWK
20457cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20458  for (key in S) S_is_set[key] = 1
20459  FS = ""
20460
20461}
20462{
20463  line = $ 0
20464  nfields = split(line, field, "@")
20465  substed = 0
20466  len = length(field[1])
20467  for (i = 2; i < nfields; i++) {
20468    key = field[i]
20469    keylen = length(key)
20470    if (S_is_set[key]) {
20471      value = S[key]
20472      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20473      len += length(value) + length(field[++i])
20474      substed = 1
20475    } else
20476      len += 1 + keylen
20477  }
20478
20479  print line
20480}
20481
20482_ACAWK
20483_ACEOF
20484cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20485if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20486  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20487else
20488  cat
20489fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20490  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20491_ACEOF
20492
20493# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20494# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20495# trailing colons and then remove the whole line if VPATH becomes empty
20496# (actually we leave an empty line to preserve line numbers).
20497if test "x$srcdir" = x.; then
20498  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20499h
20500s///
20501s/^/:/
20502s/[	 ]*$/:/
20503s/:\$(srcdir):/:/g
20504s/:\${srcdir}:/:/g
20505s/:@srcdir@:/:/g
20506s/^:*//
20507s/:*$//
20508x
20509s/\(=[	 ]*\).*/\1/
20510G
20511s/\n//
20512s/^[^=]*=[	 ]*$//
20513}'
20514fi
20515
20516cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20517fi # test -n "$CONFIG_FILES"
20518
20519# Set up the scripts for CONFIG_HEADERS section.
20520# No need to generate them if there are no CONFIG_HEADERS.
20521# This happens for instance with `./config.status Makefile'.
20522if test -n "$CONFIG_HEADERS"; then
20523cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20524BEGIN {
20525_ACEOF
20526
20527# Transform confdefs.h into an awk script `defines.awk', embedded as
20528# here-document in config.status, that substitutes the proper values into
20529# config.h.in to produce config.h.
20530
20531# Create a delimiter string that does not exist in confdefs.h, to ease
20532# handling of long lines.
20533ac_delim='%!_!# '
20534for ac_last_try in false false :; do
20535  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20536  if test -z "$ac_tt"; then
20537    break
20538  elif $ac_last_try; then
20539    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20540  else
20541    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20542  fi
20543done
20544
20545# For the awk script, D is an array of macro values keyed by name,
20546# likewise P contains macro parameters if any.  Preserve backslash
20547# newline sequences.
20548
20549ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20550sed -n '
20551s/.\{148\}/&'"$ac_delim"'/g
20552t rset
20553:rset
20554s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20555t def
20556d
20557:def
20558s/\\$//
20559t bsnl
20560s/["\\]/\\&/g
20561s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20562D["\1"]=" \3"/p
20563s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20564d
20565:bsnl
20566s/["\\]/\\&/g
20567s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20568D["\1"]=" \3\\\\\\n"\\/p
20569t cont
20570s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20571t cont
20572d
20573:cont
20574n
20575s/.\{148\}/&'"$ac_delim"'/g
20576t clear
20577:clear
20578s/\\$//
20579t bsnlc
20580s/["\\]/\\&/g; s/^/"/; s/$/"/p
20581d
20582:bsnlc
20583s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20584b cont
20585' <confdefs.h | sed '
20586s/'"$ac_delim"'/"\\\
20587"/g' >>$CONFIG_STATUS || ac_write_fail=1
20588
20589cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20590  for (key in D) D_is_set[key] = 1
20591  FS = ""
20592}
20593/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20594  line = \$ 0
20595  split(line, arg, " ")
20596  if (arg[1] == "#") {
20597    defundef = arg[2]
20598    mac1 = arg[3]
20599  } else {
20600    defundef = substr(arg[1], 2)
20601    mac1 = arg[2]
20602  }
20603  split(mac1, mac2, "(") #)
20604  macro = mac2[1]
20605  prefix = substr(line, 1, index(line, defundef) - 1)
20606  if (D_is_set[macro]) {
20607    # Preserve the white space surrounding the "#".
20608    print prefix "define", macro P[macro] D[macro]
20609    next
20610  } else {
20611    # Replace #undef with comments.  This is necessary, for example,
20612    # in the case of _POSIX_SOURCE, which is predefined and required
20613    # on some systems where configure will not decide to define it.
20614    if (defundef == "undef") {
20615      print "/*", prefix defundef, macro, "*/"
20616      next
20617    }
20618  }
20619}
20620{ print }
20621_ACAWK
20622_ACEOF
20623cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20624  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20625fi # test -n "$CONFIG_HEADERS"
20626
20627
20628eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20629shift
20630for ac_tag
20631do
20632  case $ac_tag in
20633  :[FHLC]) ac_mode=$ac_tag; continue;;
20634  esac
20635  case $ac_mode$ac_tag in
20636  :[FHL]*:*);;
20637  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20638  :[FH]-) ac_tag=-:-;;
20639  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20640  esac
20641  ac_save_IFS=$IFS
20642  IFS=:
20643  set x $ac_tag
20644  IFS=$ac_save_IFS
20645  shift
20646  ac_file=$1
20647  shift
20648
20649  case $ac_mode in
20650  :L) ac_source=$1;;
20651  :[FH])
20652    ac_file_inputs=
20653    for ac_f
20654    do
20655      case $ac_f in
20656      -) ac_f="$ac_tmp/stdin";;
20657      *) # Look for the file first in the build tree, then in the source tree
20658	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20659	 # because $ac_f cannot contain `:'.
20660	 test -f "$ac_f" ||
20661	   case $ac_f in
20662	   [\\/$]*) false;;
20663	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20664	   esac ||
20665	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20666      esac
20667      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20668      as_fn_append ac_file_inputs " '$ac_f'"
20669    done
20670
20671    # Let's still pretend it is `configure' which instantiates (i.e., don't
20672    # use $as_me), people would be surprised to read:
20673    #    /* config.h.  Generated by config.status.  */
20674    configure_input='Generated from '`
20675	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20676	`' by configure.'
20677    if test x"$ac_file" != x-; then
20678      configure_input="$ac_file.  $configure_input"
20679      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20680printf "%s\n" "$as_me: creating $ac_file" >&6;}
20681    fi
20682    # Neutralize special characters interpreted by sed in replacement strings.
20683    case $configure_input in #(
20684    *\&* | *\|* | *\\* )
20685       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20686       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20687    *) ac_sed_conf_input=$configure_input;;
20688    esac
20689
20690    case $ac_tag in
20691    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20692      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20693    esac
20694    ;;
20695  esac
20696
20697  ac_dir=`$as_dirname -- "$ac_file" ||
20698$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20699	 X"$ac_file" : 'X\(//\)[^/]' \| \
20700	 X"$ac_file" : 'X\(//\)$' \| \
20701	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20702printf "%s\n" X"$ac_file" |
20703    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20704	    s//\1/
20705	    q
20706	  }
20707	  /^X\(\/\/\)[^/].*/{
20708	    s//\1/
20709	    q
20710	  }
20711	  /^X\(\/\/\)$/{
20712	    s//\1/
20713	    q
20714	  }
20715	  /^X\(\/\).*/{
20716	    s//\1/
20717	    q
20718	  }
20719	  s/.*/./; q'`
20720  as_dir="$ac_dir"; as_fn_mkdir_p
20721  ac_builddir=.
20722
20723case "$ac_dir" in
20724.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20725*)
20726  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
20727  # A ".." for each directory in $ac_dir_suffix.
20728  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20729  case $ac_top_builddir_sub in
20730  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20731  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20732  esac ;;
20733esac
20734ac_abs_top_builddir=$ac_pwd
20735ac_abs_builddir=$ac_pwd$ac_dir_suffix
20736# for backward compatibility:
20737ac_top_builddir=$ac_top_build_prefix
20738
20739case $srcdir in
20740  .)  # We are building in place.
20741    ac_srcdir=.
20742    ac_top_srcdir=$ac_top_builddir_sub
20743    ac_abs_top_srcdir=$ac_pwd ;;
20744  [\\/]* | ?:[\\/]* )  # Absolute name.
20745    ac_srcdir=$srcdir$ac_dir_suffix;
20746    ac_top_srcdir=$srcdir
20747    ac_abs_top_srcdir=$srcdir ;;
20748  *) # Relative name.
20749    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20750    ac_top_srcdir=$ac_top_build_prefix$srcdir
20751    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20752esac
20753ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20754
20755
20756  case $ac_mode in
20757  :F)
20758  #
20759  # CONFIG_FILE
20760  #
20761
20762  case $INSTALL in
20763  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20764  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20765  esac
20766  ac_MKDIR_P=$MKDIR_P
20767  case $MKDIR_P in
20768  [\\/$]* | ?:[\\/]* ) ;;
20769  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20770  esac
20771_ACEOF
20772
20773cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20774# If the template does not know about datarootdir, expand it.
20775# FIXME: This hack should be removed a few years after 2.60.
20776ac_datarootdir_hack=; ac_datarootdir_seen=
20777ac_sed_dataroot='
20778/datarootdir/ {
20779  p
20780  q
20781}
20782/@datadir@/p
20783/@docdir@/p
20784/@infodir@/p
20785/@localedir@/p
20786/@mandir@/p'
20787case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20788*datarootdir*) ac_datarootdir_seen=yes;;
20789*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20790  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20791printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20792_ACEOF
20793cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20794  ac_datarootdir_hack='
20795  s&@datadir@&$datadir&g
20796  s&@docdir@&$docdir&g
20797  s&@infodir@&$infodir&g
20798  s&@localedir@&$localedir&g
20799  s&@mandir@&$mandir&g
20800  s&\\\${datarootdir}&$datarootdir&g' ;;
20801esac
20802_ACEOF
20803
20804# Neutralize VPATH when `$srcdir' = `.'.
20805# Shell code in configure.ac might set extrasub.
20806# FIXME: do we really want to maintain this feature?
20807cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20808ac_sed_extra="$ac_vpsub
20809$extrasub
20810_ACEOF
20811cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20812:t
20813/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20814s|@configure_input@|$ac_sed_conf_input|;t t
20815s&@top_builddir@&$ac_top_builddir_sub&;t t
20816s&@top_build_prefix@&$ac_top_build_prefix&;t t
20817s&@srcdir@&$ac_srcdir&;t t
20818s&@abs_srcdir@&$ac_abs_srcdir&;t t
20819s&@top_srcdir@&$ac_top_srcdir&;t t
20820s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20821s&@builddir@&$ac_builddir&;t t
20822s&@abs_builddir@&$ac_abs_builddir&;t t
20823s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20824s&@INSTALL@&$ac_INSTALL&;t t
20825s&@MKDIR_P@&$ac_MKDIR_P&;t t
20826$ac_datarootdir_hack
20827"
20828eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20829  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20830
20831test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20832  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20833  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20834      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20835  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20836which seems to be undefined.  Please make sure it is defined" >&5
20837printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20838which seems to be undefined.  Please make sure it is defined" >&2;}
20839
20840  rm -f "$ac_tmp/stdin"
20841  case $ac_file in
20842  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20843  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20844  esac \
20845  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20846 ;;
20847  :H)
20848  #
20849  # CONFIG_HEADER
20850  #
20851  if test x"$ac_file" != x-; then
20852    {
20853      printf "%s\n" "/* $configure_input  */" >&1 \
20854      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20855    } >"$ac_tmp/config.h" \
20856      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20857    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20858      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20859printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
20860    else
20861      rm -f "$ac_file"
20862      mv "$ac_tmp/config.h" "$ac_file" \
20863	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20864    fi
20865  else
20866    printf "%s\n" "/* $configure_input  */" >&1 \
20867      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20868      || as_fn_error $? "could not create -" "$LINENO" 5
20869  fi
20870# Compute "$ac_file"'s index in $config_headers.
20871_am_arg="$ac_file"
20872_am_stamp_count=1
20873for _am_header in $config_headers :; do
20874  case $_am_header in
20875    $_am_arg | $_am_arg:* )
20876      break ;;
20877    * )
20878      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20879  esac
20880done
20881echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20882$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20883	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20884	 X"$_am_arg" : 'X\(//\)$' \| \
20885	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20886printf "%s\n" X"$_am_arg" |
20887    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20888	    s//\1/
20889	    q
20890	  }
20891	  /^X\(\/\/\)[^/].*/{
20892	    s//\1/
20893	    q
20894	  }
20895	  /^X\(\/\/\)$/{
20896	    s//\1/
20897	    q
20898	  }
20899	  /^X\(\/\).*/{
20900	    s//\1/
20901	    q
20902	  }
20903	  s/.*/./; q'`/stamp-h$_am_stamp_count
20904 ;;
20905
20906  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20907printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
20908 ;;
20909  esac
20910
20911
20912  case $ac_file$ac_mode in
20913    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20914  # Older Autoconf quotes --file arguments for eval, but not when files
20915  # are listed without --file.  Let's play safe and only enable the eval
20916  # if we detect the quoting.
20917  # TODO: see whether this extra hack can be removed once we start
20918  # requiring Autoconf 2.70 or later.
20919  case $CONFIG_FILES in #(
20920  *\'*) :
20921    eval set x "$CONFIG_FILES" ;; #(
20922  *) :
20923    set x $CONFIG_FILES ;; #(
20924  *) :
20925     ;;
20926esac
20927  shift
20928  # Used to flag and report bootstrapping failures.
20929  am_rc=0
20930  for am_mf
20931  do
20932    # Strip MF so we end up with the name of the file.
20933    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
20934    # Check whether this is an Automake generated Makefile which includes
20935    # dependency-tracking related rules and includes.
20936    # Grep'ing the whole file directly is not great: AIX grep has a line
20937    # limit of 2048, but all sed's we know have understand at least 4000.
20938    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20939      || continue
20940    am_dirpart=`$as_dirname -- "$am_mf" ||
20941$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20942	 X"$am_mf" : 'X\(//\)[^/]' \| \
20943	 X"$am_mf" : 'X\(//\)$' \| \
20944	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20945printf "%s\n" X"$am_mf" |
20946    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20947	    s//\1/
20948	    q
20949	  }
20950	  /^X\(\/\/\)[^/].*/{
20951	    s//\1/
20952	    q
20953	  }
20954	  /^X\(\/\/\)$/{
20955	    s//\1/
20956	    q
20957	  }
20958	  /^X\(\/\).*/{
20959	    s//\1/
20960	    q
20961	  }
20962	  s/.*/./; q'`
20963    am_filepart=`$as_basename -- "$am_mf" ||
20964$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20965	 X"$am_mf" : 'X\(//\)$' \| \
20966	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20967printf "%s\n" X/"$am_mf" |
20968    sed '/^.*\/\([^/][^/]*\)\/*$/{
20969	    s//\1/
20970	    q
20971	  }
20972	  /^X\/\(\/\/\)$/{
20973	    s//\1/
20974	    q
20975	  }
20976	  /^X\/\(\/\).*/{
20977	    s//\1/
20978	    q
20979	  }
20980	  s/.*/./; q'`
20981    { echo "$as_me:$LINENO: cd "$am_dirpart" \
20982      && sed -e '/# am--include-marker/d' "$am_filepart" \
20983        | $MAKE -f - am--depfiles" >&5
20984   (cd "$am_dirpart" \
20985      && sed -e '/# am--include-marker/d' "$am_filepart" \
20986        | $MAKE -f - am--depfiles) >&5 2>&5
20987   ac_status=$?
20988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989   (exit $ac_status); } || am_rc=$?
20990  done
20991  if test $am_rc -ne 0; then
20992    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20993printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20994as_fn_error $? "Something went wrong bootstrapping makefile fragments
20995    for automatic dependency tracking.  If GNU make was not used, consider
20996    re-running the configure script with MAKE=\"gmake\" (or whatever is
20997    necessary).  You can also try re-running configure with the
20998    '--disable-dependency-tracking' option to at least be able to build
20999    the package (albeit without support for automatic dependency tracking).
21000See \`config.log' for more details" "$LINENO" 5; }
21001  fi
21002  { am_dirpart=; unset am_dirpart;}
21003  { am_filepart=; unset am_filepart;}
21004  { am_mf=; unset am_mf;}
21005  { am_rc=; unset am_rc;}
21006  rm -f conftest-deps.mk
21007}
21008 ;;
21009    "libtool":C)
21010
21011    # See if we are running on zsh, and set the options that allow our
21012    # commands through without removal of \ escapes.
21013    if test -n "${ZSH_VERSION+set}"; then
21014      setopt NO_GLOB_SUBST
21015    fi
21016
21017    cfgfile=${ofile}T
21018    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21019    $RM "$cfgfile"
21020
21021    cat <<_LT_EOF >> "$cfgfile"
21022#! $SHELL
21023# Generated automatically by $as_me ($PACKAGE) $VERSION
21024# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21025# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21026
21027# Provide generalized library-building support services.
21028# Written by Gordon Matzigkeit, 1996
21029
21030# Copyright (C) 2014 Free Software Foundation, Inc.
21031# This is free software; see the source for copying conditions.  There is NO
21032# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21033
21034# GNU Libtool is free software; you can redistribute it and/or modify
21035# it under the terms of the GNU General Public License as published by
21036# the Free Software Foundation; either version 2 of of the License, or
21037# (at your option) any later version.
21038#
21039# As a special exception to the GNU General Public License, if you
21040# distribute this file as part of a program or library that is built
21041# using GNU Libtool, you may include this file under the  same
21042# distribution terms that you use for the rest of that program.
21043#
21044# GNU Libtool is distributed in the hope that it will be useful, but
21045# WITHOUT ANY WARRANTY; without even the implied warranty of
21046# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21047# GNU General Public License for more details.
21048#
21049# You should have received a copy of the GNU General Public License
21050# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21051
21052
21053# The names of the tagged configurations supported by this script.
21054available_tags=''
21055
21056# Configured defaults for sys_lib_dlsearch_path munging.
21057: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21058
21059# ### BEGIN LIBTOOL CONFIG
21060
21061# Which release of libtool.m4 was used?
21062macro_version=$macro_version
21063macro_revision=$macro_revision
21064
21065# Whether or not to build shared libraries.
21066build_libtool_libs=$enable_shared
21067
21068# Whether or not to build static libraries.
21069build_old_libs=$enable_static
21070
21071# What type of objects to build.
21072pic_mode=$pic_mode
21073
21074# Whether or not to optimize for fast installation.
21075fast_install=$enable_fast_install
21076
21077# Shared archive member basename,for filename based shared library versioning on AIX.
21078shared_archive_member_spec=$shared_archive_member_spec
21079
21080# Shell to use when invoking shell scripts.
21081SHELL=$lt_SHELL
21082
21083# An echo program that protects backslashes.
21084ECHO=$lt_ECHO
21085
21086# The PATH separator for the build system.
21087PATH_SEPARATOR=$lt_PATH_SEPARATOR
21088
21089# The host system.
21090host_alias=$host_alias
21091host=$host
21092host_os=$host_os
21093
21094# The build system.
21095build_alias=$build_alias
21096build=$build
21097build_os=$build_os
21098
21099# A sed program that does not truncate output.
21100SED=$lt_SED
21101
21102# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21103Xsed="\$SED -e 1s/^X//"
21104
21105# A grep program that handles long lines.
21106GREP=$lt_GREP
21107
21108# An ERE matcher.
21109EGREP=$lt_EGREP
21110
21111# A literal string matcher.
21112FGREP=$lt_FGREP
21113
21114# A BSD- or MS-compatible name lister.
21115NM=$lt_NM
21116
21117# Whether we need soft or hard links.
21118LN_S=$lt_LN_S
21119
21120# What is the maximum length of a command?
21121max_cmd_len=$max_cmd_len
21122
21123# Object file suffix (normally "o").
21124objext=$ac_objext
21125
21126# Executable file suffix (normally "").
21127exeext=$exeext
21128
21129# whether the shell understands "unset".
21130lt_unset=$lt_unset
21131
21132# turn spaces into newlines.
21133SP2NL=$lt_lt_SP2NL
21134
21135# turn newlines into spaces.
21136NL2SP=$lt_lt_NL2SP
21137
21138# convert \$build file names to \$host format.
21139to_host_file_cmd=$lt_cv_to_host_file_cmd
21140
21141# convert \$build files to toolchain format.
21142to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21143
21144# A file(cmd) program that detects file types.
21145FILECMD=$lt_FILECMD
21146
21147# An object symbol dumper.
21148OBJDUMP=$lt_OBJDUMP
21149
21150# Method to check whether dependent libraries are shared objects.
21151deplibs_check_method=$lt_deplibs_check_method
21152
21153# Command to use when deplibs_check_method = "file_magic".
21154file_magic_cmd=$lt_file_magic_cmd
21155
21156# How to find potential files when deplibs_check_method = "file_magic".
21157file_magic_glob=$lt_file_magic_glob
21158
21159# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21160want_nocaseglob=$lt_want_nocaseglob
21161
21162# DLL creation program.
21163DLLTOOL=$lt_DLLTOOL
21164
21165# Command to associate shared and link libraries.
21166sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21167
21168# The archiver.
21169AR=$lt_AR
21170
21171# Flags to create an archive (by configure).
21172lt_ar_flags=$lt_ar_flags
21173
21174# Flags to create an archive.
21175AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21176
21177# How to feed a file listing to the archiver.
21178archiver_list_spec=$lt_archiver_list_spec
21179
21180# A symbol stripping program.
21181STRIP=$lt_STRIP
21182
21183# Commands used to install an old-style archive.
21184RANLIB=$lt_RANLIB
21185old_postinstall_cmds=$lt_old_postinstall_cmds
21186old_postuninstall_cmds=$lt_old_postuninstall_cmds
21187
21188# Whether to use a lock for old archive extraction.
21189lock_old_archive_extraction=$lock_old_archive_extraction
21190
21191# A C compiler.
21192LTCC=$lt_CC
21193
21194# LTCC compiler flags.
21195LTCFLAGS=$lt_CFLAGS
21196
21197# Take the output of nm and produce a listing of raw symbols and C names.
21198global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21199
21200# Transform the output of nm in a proper C declaration.
21201global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21202
21203# Transform the output of nm into a list of symbols to manually relocate.
21204global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21205
21206# Transform the output of nm in a C name address pair.
21207global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21208
21209# Transform the output of nm in a C name address pair when lib prefix is needed.
21210global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21211
21212# The name lister interface.
21213nm_interface=$lt_lt_cv_nm_interface
21214
21215# Specify filename containing input files for \$NM.
21216nm_file_list_spec=$lt_nm_file_list_spec
21217
21218# The root where to search for dependent libraries,and where our libraries should be installed.
21219lt_sysroot=$lt_sysroot
21220
21221# Command to truncate a binary pipe.
21222lt_truncate_bin=$lt_lt_cv_truncate_bin
21223
21224# The name of the directory that contains temporary libtool files.
21225objdir=$objdir
21226
21227# Used to examine libraries when file_magic_cmd begins with "file".
21228MAGIC_CMD=$MAGIC_CMD
21229
21230# Must we lock files when doing compilation?
21231need_locks=$lt_need_locks
21232
21233# Manifest tool.
21234MANIFEST_TOOL=$lt_MANIFEST_TOOL
21235
21236# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21237DSYMUTIL=$lt_DSYMUTIL
21238
21239# Tool to change global to local symbols on Mac OS X.
21240NMEDIT=$lt_NMEDIT
21241
21242# Tool to manipulate fat objects and archives on Mac OS X.
21243LIPO=$lt_LIPO
21244
21245# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21246OTOOL=$lt_OTOOL
21247
21248# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21249OTOOL64=$lt_OTOOL64
21250
21251# Old archive suffix (normally "a").
21252libext=$libext
21253
21254# Shared library suffix (normally ".so").
21255shrext_cmds=$lt_shrext_cmds
21256
21257# The commands to extract the exported symbol list from a shared archive.
21258extract_expsyms_cmds=$lt_extract_expsyms_cmds
21259
21260# Variables whose values should be saved in libtool wrapper scripts and
21261# restored at link time.
21262variables_saved_for_relink=$lt_variables_saved_for_relink
21263
21264# Do we need the "lib" prefix for modules?
21265need_lib_prefix=$need_lib_prefix
21266
21267# Do we need a version for libraries?
21268need_version=$need_version
21269
21270# Library versioning type.
21271version_type=$version_type
21272
21273# Shared library runtime path variable.
21274runpath_var=$runpath_var
21275
21276# Shared library path variable.
21277shlibpath_var=$shlibpath_var
21278
21279# Is shlibpath searched before the hard-coded library search path?
21280shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21281
21282# Format of library name prefix.
21283libname_spec=$lt_libname_spec
21284
21285# List of archive names.  First name is the real one, the rest are links.
21286# The last name is the one that the linker finds with -lNAME
21287library_names_spec=$lt_library_names_spec
21288
21289# The coded name of the library, if different from the real name.
21290soname_spec=$lt_soname_spec
21291
21292# Permission mode override for installation of shared libraries.
21293install_override_mode=$lt_install_override_mode
21294
21295# Command to use after installation of a shared archive.
21296postinstall_cmds=$lt_postinstall_cmds
21297
21298# Command to use after uninstallation of a shared archive.
21299postuninstall_cmds=$lt_postuninstall_cmds
21300
21301# Commands used to finish a libtool library installation in a directory.
21302finish_cmds=$lt_finish_cmds
21303
21304# As "finish_cmds", except a single script fragment to be evaled but
21305# not shown.
21306finish_eval=$lt_finish_eval
21307
21308# Whether we should hardcode library paths into libraries.
21309hardcode_into_libs=$hardcode_into_libs
21310
21311# Compile-time system search path for libraries.
21312sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21313
21314# Detected run-time system search path for libraries.
21315sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21316
21317# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21318configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21319
21320# Whether dlopen is supported.
21321dlopen_support=$enable_dlopen
21322
21323# Whether dlopen of programs is supported.
21324dlopen_self=$enable_dlopen_self
21325
21326# Whether dlopen of statically linked programs is supported.
21327dlopen_self_static=$enable_dlopen_self_static
21328
21329# Commands to strip libraries.
21330old_striplib=$lt_old_striplib
21331striplib=$lt_striplib
21332
21333
21334# The linker used to build libraries.
21335LD=$lt_LD
21336
21337# How to create reloadable object files.
21338reload_flag=$lt_reload_flag
21339reload_cmds=$lt_reload_cmds
21340
21341# Commands used to build an old-style archive.
21342old_archive_cmds=$lt_old_archive_cmds
21343
21344# A language specific compiler.
21345CC=$lt_compiler
21346
21347# Is the compiler the GNU compiler?
21348with_gcc=$GCC
21349
21350# Compiler flag to turn off builtin functions.
21351no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21352
21353# Additional compiler flags for building library objects.
21354pic_flag=$lt_lt_prog_compiler_pic
21355
21356# How to pass a linker flag through the compiler.
21357wl=$lt_lt_prog_compiler_wl
21358
21359# Compiler flag to prevent dynamic linking.
21360link_static_flag=$lt_lt_prog_compiler_static
21361
21362# Does compiler simultaneously support -c and -o options?
21363compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21364
21365# Whether or not to add -lc for building shared libraries.
21366build_libtool_need_lc=$archive_cmds_need_lc
21367
21368# Whether or not to disallow shared libs when runtime libs are static.
21369allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21370
21371# Compiler flag to allow reflexive dlopens.
21372export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21373
21374# Compiler flag to generate shared objects directly from archives.
21375whole_archive_flag_spec=$lt_whole_archive_flag_spec
21376
21377# Whether the compiler copes with passing no objects directly.
21378compiler_needs_object=$lt_compiler_needs_object
21379
21380# Create an old-style archive from a shared archive.
21381old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21382
21383# Create a temporary old-style archive to link instead of a shared archive.
21384old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21385
21386# Commands used to build a shared archive.
21387archive_cmds=$lt_archive_cmds
21388archive_expsym_cmds=$lt_archive_expsym_cmds
21389
21390# Commands used to build a loadable module if different from building
21391# a shared archive.
21392module_cmds=$lt_module_cmds
21393module_expsym_cmds=$lt_module_expsym_cmds
21394
21395# Whether we are building with GNU ld or not.
21396with_gnu_ld=$lt_with_gnu_ld
21397
21398# Flag that allows shared libraries with undefined symbols to be built.
21399allow_undefined_flag=$lt_allow_undefined_flag
21400
21401# Flag that enforces no undefined symbols.
21402no_undefined_flag=$lt_no_undefined_flag
21403
21404# Flag to hardcode \$libdir into a binary during linking.
21405# This must work even if \$libdir does not exist
21406hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21407
21408# Whether we need a single "-rpath" flag with a separated argument.
21409hardcode_libdir_separator=$lt_hardcode_libdir_separator
21410
21411# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21412# DIR into the resulting binary.
21413hardcode_direct=$hardcode_direct
21414
21415# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21416# DIR into the resulting binary and the resulting library dependency is
21417# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21418# library is relocated.
21419hardcode_direct_absolute=$hardcode_direct_absolute
21420
21421# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21422# into the resulting binary.
21423hardcode_minus_L=$hardcode_minus_L
21424
21425# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21426# into the resulting binary.
21427hardcode_shlibpath_var=$hardcode_shlibpath_var
21428
21429# Set to "yes" if building a shared library automatically hardcodes DIR
21430# into the library and all subsequent libraries and executables linked
21431# against it.
21432hardcode_automatic=$hardcode_automatic
21433
21434# Set to yes if linker adds runtime paths of dependent libraries
21435# to runtime path list.
21436inherit_rpath=$inherit_rpath
21437
21438# Whether libtool must link a program against all its dependency libraries.
21439link_all_deplibs=$link_all_deplibs
21440
21441# Set to "yes" if exported symbols are required.
21442always_export_symbols=$always_export_symbols
21443
21444# The commands to list exported symbols.
21445export_symbols_cmds=$lt_export_symbols_cmds
21446
21447# Symbols that should not be listed in the preloaded symbols.
21448exclude_expsyms=$lt_exclude_expsyms
21449
21450# Symbols that must always be exported.
21451include_expsyms=$lt_include_expsyms
21452
21453# Commands necessary for linking programs (against libraries) with templates.
21454prelink_cmds=$lt_prelink_cmds
21455
21456# Commands necessary for finishing linking programs.
21457postlink_cmds=$lt_postlink_cmds
21458
21459# Specify filename containing input files.
21460file_list_spec=$lt_file_list_spec
21461
21462# How to hardcode a shared library path into an executable.
21463hardcode_action=$hardcode_action
21464
21465# ### END LIBTOOL CONFIG
21466
21467_LT_EOF
21468
21469    cat <<'_LT_EOF' >> "$cfgfile"
21470
21471# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21472
21473# func_munge_path_list VARIABLE PATH
21474# -----------------------------------
21475# VARIABLE is name of variable containing _space_ separated list of
21476# directories to be munged by the contents of PATH, which is string
21477# having a format:
21478# "DIR[:DIR]:"
21479#       string "DIR[ DIR]" will be prepended to VARIABLE
21480# ":DIR[:DIR]"
21481#       string "DIR[ DIR]" will be appended to VARIABLE
21482# "DIRP[:DIRP]::[DIRA:]DIRA"
21483#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21484#       "DIRA[ DIRA]" will be appended to VARIABLE
21485# "DIR[:DIR]"
21486#       VARIABLE will be replaced by "DIR[ DIR]"
21487func_munge_path_list ()
21488{
21489    case x$2 in
21490    x)
21491        ;;
21492    *:)
21493        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21494        ;;
21495    x:*)
21496        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21497        ;;
21498    *::*)
21499        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21500        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21501        ;;
21502    *)
21503        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21504        ;;
21505    esac
21506}
21507
21508
21509# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21510func_cc_basename ()
21511{
21512    for cc_temp in $*""; do
21513      case $cc_temp in
21514        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21515        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21516        \-*) ;;
21517        *) break;;
21518      esac
21519    done
21520    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21521}
21522
21523
21524# ### END FUNCTIONS SHARED WITH CONFIGURE
21525
21526_LT_EOF
21527
21528  case $host_os in
21529  aix3*)
21530    cat <<\_LT_EOF >> "$cfgfile"
21531# AIX sometimes has problems with the GCC collect2 program.  For some
21532# reason, if we set the COLLECT_NAMES environment variable, the problems
21533# vanish in a puff of smoke.
21534if test set != "${COLLECT_NAMES+set}"; then
21535  COLLECT_NAMES=
21536  export COLLECT_NAMES
21537fi
21538_LT_EOF
21539    ;;
21540  esac
21541
21542
21543
21544ltmain=$ac_aux_dir/ltmain.sh
21545
21546
21547  # We use sed instead of cat because bash on DJGPP gets confused if
21548  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21549  # text mode, it properly converts lines to CR/LF.  This bash problem
21550  # is reportedly fixed, but why not run on old versions too?
21551  $SED '$q' "$ltmain" >> "$cfgfile" \
21552     || (rm -f "$cfgfile"; exit 1)
21553
21554   mv -f "$cfgfile" "$ofile" ||
21555    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21556  chmod +x "$ofile"
21557
21558 ;;
21559
21560  esac
21561done # for ac_tag
21562
21563
21564as_fn_exit 0
21565_ACEOF
21566ac_clean_files=$ac_clean_files_save
21567
21568test $ac_write_fail = 0 ||
21569  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21570
21571
21572# configure is writing to config.log, and then calls config.status.
21573# config.status does its own redirection, appending to config.log.
21574# Unfortunately, on DOS this fails, as config.log is still kept open
21575# by configure, so config.status won't be able to write to it; its
21576# output is simply discarded.  So we exec the FD to /dev/null,
21577# effectively closing config.log, so it can be properly (re)opened and
21578# appended to by config.status.  When coming back to configure, we
21579# need to make the FD available again.
21580if test "$no_create" != yes; then
21581  ac_cs_success=:
21582  ac_config_status_args=
21583  test "$silent" = yes &&
21584    ac_config_status_args="$ac_config_status_args --quiet"
21585  exec 5>/dev/null
21586  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21587  exec 5>>config.log
21588  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21589  # would make configure fail if this is the last instruction.
21590  $ac_cs_success || as_fn_exit 1
21591fi
21592if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21593  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21594printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21595fi
21596
21597
21598