1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for libXdamage 1.1.6.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxdamage/-/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/libxdamage/-/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='libXdamage'
624PACKAGE_TARNAME='libXdamage'
625PACKAGE_VERSION='1.1.6'
626PACKAGE_STRING='libXdamage 1.1.6'
627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxdamage/-/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
667XDAMAGE_LIBS
668XDAMAGE_CFLAGS
669DAMAGEEXT_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
837XDAMAGE_CFLAGS
838XDAMAGE_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 libXdamage 1.1.6 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/libXdamage]
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 libXdamage 1.1.6:";;
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  XDAMAGE_CFLAGS
1512              C compiler flags for XDAMAGE, overriding pkg-config
1513  XDAMAGE_LIBS
1514              linker flags for XDAMAGE, 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/libxdamage/-/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
1583libXdamage configure 1.1.6
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 libXdamage $as_me 1.1.6, 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# Initialize Automake
2613am__api_version='1.16'
2614
2615
2616
2617  # Find a good install program.  We prefer a C program (faster),
2618# so one script is as good as another.  But avoid the broken or
2619# incompatible versions:
2620# SysV /etc/install, /usr/sbin/install
2621# SunOS /usr/etc/install
2622# IRIX /sbin/install
2623# AIX /bin/install
2624# AmigaOS /C/install, which installs bootblocks on floppy discs
2625# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2626# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2627# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2628# OS/2's system install, which has a completely different semantic
2629# ./install, which can be erroneously created by make from ./install.sh.
2630# Reject install programs that cannot install multiple files.
2631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2632printf %s "checking for a BSD-compatible install... " >&6; }
2633if test -z "$INSTALL"; then
2634if test ${ac_cv_path_install+y}
2635then :
2636  printf %s "(cached) " >&6
2637else $as_nop
2638  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639for as_dir in $PATH
2640do
2641  IFS=$as_save_IFS
2642  case $as_dir in #(((
2643    '') as_dir=./ ;;
2644    */) ;;
2645    *) as_dir=$as_dir/ ;;
2646  esac
2647    # Account for fact that we put trailing slashes in our PATH walk.
2648case $as_dir in #((
2649  ./ | /[cC]/* | \
2650  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2651  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2652  /usr/ucb/* ) ;;
2653  *)
2654    # OSF1 and SCO ODT 3.0 have their own names for install.
2655    # Don't use installbsd from OSF since it installs stuff as root
2656    # by default.
2657    for ac_prog in ginstall scoinst install; do
2658      for ac_exec_ext in '' $ac_executable_extensions; do
2659	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2660	  if test $ac_prog = install &&
2661	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2662	    # AIX install.  It has an incompatible calling convention.
2663	    :
2664	  elif test $ac_prog = install &&
2665	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2666	    # program-specific install script used by HP pwplus--don't use.
2667	    :
2668	  else
2669	    rm -rf conftest.one conftest.two conftest.dir
2670	    echo one > conftest.one
2671	    echo two > conftest.two
2672	    mkdir conftest.dir
2673	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2674	      test -s conftest.one && test -s conftest.two &&
2675	      test -s conftest.dir/conftest.one &&
2676	      test -s conftest.dir/conftest.two
2677	    then
2678	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2679	      break 3
2680	    fi
2681	  fi
2682	fi
2683      done
2684    done
2685    ;;
2686esac
2687
2688  done
2689IFS=$as_save_IFS
2690
2691rm -rf conftest.one conftest.two conftest.dir
2692
2693fi
2694  if test ${ac_cv_path_install+y}; then
2695    INSTALL=$ac_cv_path_install
2696  else
2697    # As a last resort, use the slow shell script.  Don't cache a
2698    # value for INSTALL within a source directory, because that will
2699    # break other packages using the cache if that directory is
2700    # removed, or if the value is a relative name.
2701    INSTALL=$ac_install_sh
2702  fi
2703fi
2704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2705printf "%s\n" "$INSTALL" >&6; }
2706
2707# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2708# It thinks the first close brace ends the variable substitution.
2709test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2710
2711test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2712
2713test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2714
2715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2716printf %s "checking whether build environment is sane... " >&6; }
2717# Reject unsafe characters in $srcdir or the absolute working directory
2718# name.  Accept space and tab only in the latter.
2719am_lf='
2720'
2721case `pwd` in
2722  *[\\\"\#\$\&\'\`$am_lf]*)
2723    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2724esac
2725case $srcdir in
2726  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2727    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2728esac
2729
2730# Do 'set' in a subshell so we don't clobber the current shell's
2731# arguments.  Must try -L first in case configure is actually a
2732# symlink; some systems play weird games with the mod time of symlinks
2733# (eg FreeBSD returns the mod time of the symlink's containing
2734# directory).
2735if (
2736   am_has_slept=no
2737   for am_try in 1 2; do
2738     echo "timestamp, slept: $am_has_slept" > conftest.file
2739     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2740     if test "$*" = "X"; then
2741	# -L didn't work.
2742	set X `ls -t "$srcdir/configure" conftest.file`
2743     fi
2744     if test "$*" != "X $srcdir/configure conftest.file" \
2745	&& test "$*" != "X conftest.file $srcdir/configure"; then
2746
2747	# If neither matched, then we have a broken ls.  This can happen
2748	# if, for instance, CONFIG_SHELL is bash and it inherits a
2749	# broken ls alias from the environment.  This has actually
2750	# happened.  Such a system could not be considered "sane".
2751	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2752  alias in your environment" "$LINENO" 5
2753     fi
2754     if test "$2" = conftest.file || test $am_try -eq 2; then
2755       break
2756     fi
2757     # Just in case.
2758     sleep 1
2759     am_has_slept=yes
2760   done
2761   test "$2" = conftest.file
2762   )
2763then
2764   # Ok.
2765   :
2766else
2767   as_fn_error $? "newly created file is older than distributed files!
2768Check your system clock" "$LINENO" 5
2769fi
2770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2771printf "%s\n" "yes" >&6; }
2772# If we didn't sleep, we still need to ensure time stamps of config.status and
2773# generated files are strictly newer.
2774am_sleep_pid=
2775if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2776  ( sleep 1 ) &
2777  am_sleep_pid=$!
2778fi
2779
2780rm -f conftest.file
2781
2782test "$program_prefix" != NONE &&
2783  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2784# Use a double $ so make ignores it.
2785test "$program_suffix" != NONE &&
2786  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2787# Double any \ or $.
2788# By default was `s,x,x', remove it if useless.
2789ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2790program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2791
2792
2793# Expand $ac_aux_dir to an absolute path.
2794am_aux_dir=`cd "$ac_aux_dir" && pwd`
2795
2796
2797  if test x"${MISSING+set}" != xset; then
2798  MISSING="\${SHELL} '$am_aux_dir/missing'"
2799fi
2800# Use eval to expand $SHELL
2801if eval "$MISSING --is-lightweight"; then
2802  am_missing_run="$MISSING "
2803else
2804  am_missing_run=
2805  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2806printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2807fi
2808
2809if test x"${install_sh+set}" != xset; then
2810  case $am_aux_dir in
2811  *\ * | *\	*)
2812    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2813  *)
2814    install_sh="\${SHELL} $am_aux_dir/install-sh"
2815  esac
2816fi
2817
2818# Installed binaries are usually stripped using 'strip' when the user
2819# run "make install-strip".  However 'strip' might not be the right
2820# tool to use in cross-compilation environments, therefore Automake
2821# will honor the 'STRIP' environment variable to overrule this program.
2822if test "$cross_compiling" != no; then
2823  if test -n "$ac_tool_prefix"; then
2824  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2825set dummy ${ac_tool_prefix}strip; ac_word=$2
2826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827printf %s "checking for $ac_word... " >&6; }
2828if test ${ac_cv_prog_STRIP+y}
2829then :
2830  printf %s "(cached) " >&6
2831else $as_nop
2832  if test -n "$STRIP"; then
2833  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2834else
2835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836for as_dir in $PATH
2837do
2838  IFS=$as_save_IFS
2839  case $as_dir in #(((
2840    '') as_dir=./ ;;
2841    */) ;;
2842    *) as_dir=$as_dir/ ;;
2843  esac
2844    for ac_exec_ext in '' $ac_executable_extensions; do
2845  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2846    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2847    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2848    break 2
2849  fi
2850done
2851  done
2852IFS=$as_save_IFS
2853
2854fi
2855fi
2856STRIP=$ac_cv_prog_STRIP
2857if test -n "$STRIP"; then
2858  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2859printf "%s\n" "$STRIP" >&6; }
2860else
2861  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862printf "%s\n" "no" >&6; }
2863fi
2864
2865
2866fi
2867if test -z "$ac_cv_prog_STRIP"; then
2868  ac_ct_STRIP=$STRIP
2869  # Extract the first word of "strip", so it can be a program name with args.
2870set dummy strip; ac_word=$2
2871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872printf %s "checking for $ac_word... " >&6; }
2873if test ${ac_cv_prog_ac_ct_STRIP+y}
2874then :
2875  printf %s "(cached) " >&6
2876else $as_nop
2877  if test -n "$ac_ct_STRIP"; then
2878  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2879else
2880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881for as_dir in $PATH
2882do
2883  IFS=$as_save_IFS
2884  case $as_dir in #(((
2885    '') as_dir=./ ;;
2886    */) ;;
2887    *) as_dir=$as_dir/ ;;
2888  esac
2889    for ac_exec_ext in '' $ac_executable_extensions; do
2890  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2891    ac_cv_prog_ac_ct_STRIP="strip"
2892    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2893    break 2
2894  fi
2895done
2896  done
2897IFS=$as_save_IFS
2898
2899fi
2900fi
2901ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2902if test -n "$ac_ct_STRIP"; then
2903  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2904printf "%s\n" "$ac_ct_STRIP" >&6; }
2905else
2906  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907printf "%s\n" "no" >&6; }
2908fi
2909
2910  if test "x$ac_ct_STRIP" = x; then
2911    STRIP=":"
2912  else
2913    case $cross_compiling:$ac_tool_warned in
2914yes:)
2915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2916printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2917ac_tool_warned=yes ;;
2918esac
2919    STRIP=$ac_ct_STRIP
2920  fi
2921else
2922  STRIP="$ac_cv_prog_STRIP"
2923fi
2924
2925fi
2926INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2927
2928
2929  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2930printf %s "checking for a race-free mkdir -p... " >&6; }
2931if test -z "$MKDIR_P"; then
2932  if test ${ac_cv_path_mkdir+y}
2933then :
2934  printf %s "(cached) " >&6
2935else $as_nop
2936  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2938do
2939  IFS=$as_save_IFS
2940  case $as_dir in #(((
2941    '') as_dir=./ ;;
2942    */) ;;
2943    *) as_dir=$as_dir/ ;;
2944  esac
2945    for ac_prog in mkdir gmkdir; do
2946	 for ac_exec_ext in '' $ac_executable_extensions; do
2947	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2948	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2949	     'mkdir ('*'coreutils) '* | \
2950	     'BusyBox '* | \
2951	     'mkdir (fileutils) '4.1*)
2952	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2953	       break 3;;
2954	   esac
2955	 done
2956       done
2957  done
2958IFS=$as_save_IFS
2959
2960fi
2961
2962  test -d ./--version && rmdir ./--version
2963  if test ${ac_cv_path_mkdir+y}; then
2964    MKDIR_P="$ac_cv_path_mkdir -p"
2965  else
2966    # As a last resort, use the slow shell script.  Don't cache a
2967    # value for MKDIR_P within a source directory, because that will
2968    # break other packages using the cache if that directory is
2969    # removed, or if the value is a relative name.
2970    MKDIR_P="$ac_install_sh -d"
2971  fi
2972fi
2973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2974printf "%s\n" "$MKDIR_P" >&6; }
2975
2976for ac_prog in gawk mawk nawk awk
2977do
2978  # Extract the first word of "$ac_prog", so it can be a program name with args.
2979set dummy $ac_prog; ac_word=$2
2980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2981printf %s "checking for $ac_word... " >&6; }
2982if test ${ac_cv_prog_AWK+y}
2983then :
2984  printf %s "(cached) " >&6
2985else $as_nop
2986  if test -n "$AWK"; then
2987  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2988else
2989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990for as_dir in $PATH
2991do
2992  IFS=$as_save_IFS
2993  case $as_dir in #(((
2994    '') as_dir=./ ;;
2995    */) ;;
2996    *) as_dir=$as_dir/ ;;
2997  esac
2998    for ac_exec_ext in '' $ac_executable_extensions; do
2999  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3000    ac_cv_prog_AWK="$ac_prog"
3001    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3002    break 2
3003  fi
3004done
3005  done
3006IFS=$as_save_IFS
3007
3008fi
3009fi
3010AWK=$ac_cv_prog_AWK
3011if test -n "$AWK"; then
3012  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3013printf "%s\n" "$AWK" >&6; }
3014else
3015  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016printf "%s\n" "no" >&6; }
3017fi
3018
3019
3020  test -n "$AWK" && break
3021done
3022
3023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3024printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3025set x ${MAKE-make}
3026ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3027if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3028then :
3029  printf %s "(cached) " >&6
3030else $as_nop
3031  cat >conftest.make <<\_ACEOF
3032SHELL = /bin/sh
3033all:
3034	@echo '@@@%%%=$(MAKE)=@@@%%%'
3035_ACEOF
3036# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3037case `${MAKE-make} -f conftest.make 2>/dev/null` in
3038  *@@@%%%=?*=@@@%%%*)
3039    eval ac_cv_prog_make_${ac_make}_set=yes;;
3040  *)
3041    eval ac_cv_prog_make_${ac_make}_set=no;;
3042esac
3043rm -f conftest.make
3044fi
3045if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3046  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3047printf "%s\n" "yes" >&6; }
3048  SET_MAKE=
3049else
3050  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051printf "%s\n" "no" >&6; }
3052  SET_MAKE="MAKE=${MAKE-make}"
3053fi
3054
3055rm -rf .tst 2>/dev/null
3056mkdir .tst 2>/dev/null
3057if test -d .tst; then
3058  am__leading_dot=.
3059else
3060  am__leading_dot=_
3061fi
3062rmdir .tst 2>/dev/null
3063
3064# Check whether --enable-silent-rules was given.
3065if test ${enable_silent_rules+y}
3066then :
3067  enableval=$enable_silent_rules;
3068fi
3069
3070case $enable_silent_rules in # (((
3071  yes) AM_DEFAULT_VERBOSITY=0;;
3072   no) AM_DEFAULT_VERBOSITY=1;;
3073    *) AM_DEFAULT_VERBOSITY=1;;
3074esac
3075am_make=${MAKE-make}
3076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3077printf %s "checking whether $am_make supports nested variables... " >&6; }
3078if test ${am_cv_make_support_nested_variables+y}
3079then :
3080  printf %s "(cached) " >&6
3081else $as_nop
3082  if printf "%s\n" 'TRUE=$(BAR$(V))
3083BAR0=false
3084BAR1=true
3085V=1
3086am__doit:
3087	@$(TRUE)
3088.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3089  am_cv_make_support_nested_variables=yes
3090else
3091  am_cv_make_support_nested_variables=no
3092fi
3093fi
3094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3095printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3096if test $am_cv_make_support_nested_variables = yes; then
3097    AM_V='$(V)'
3098  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3099else
3100  AM_V=$AM_DEFAULT_VERBOSITY
3101  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3102fi
3103AM_BACKSLASH='\'
3104
3105if test "`cd $srcdir && pwd`" != "`pwd`"; then
3106  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3107  # is not polluted with repeated "-I."
3108  am__isrc=' -I$(srcdir)'
3109  # test to see if srcdir already configured
3110  if test -f $srcdir/config.status; then
3111    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3112  fi
3113fi
3114
3115# test whether we have cygpath
3116if test -z "$CYGPATH_W"; then
3117  if (cygpath --version) >/dev/null 2>/dev/null; then
3118    CYGPATH_W='cygpath -w'
3119  else
3120    CYGPATH_W=echo
3121  fi
3122fi
3123
3124
3125# Define the identity of the package.
3126 PACKAGE='libXdamage'
3127 VERSION='1.1.6'
3128
3129
3130printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3131
3132
3133printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3134
3135# Some tools Automake needs.
3136
3137ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3138
3139
3140AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3141
3142
3143AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3144
3145
3146AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3147
3148
3149MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3150
3151# For better backward compatibility.  To be removed once Automake 1.9.x
3152# dies out for good.  For more background, see:
3153# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3154# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3155mkdir_p='$(MKDIR_P)'
3156
3157# We need awk for the "check" target (and possibly the TAP driver).  The
3158# system "awk" is bad on some platforms.
3159# Always define AMTAR for backward compatibility.  Yes, it's still used
3160# in the wild :-(  We should find a proper way to deprecate it ...
3161AMTAR='$${TAR-tar}'
3162
3163
3164# We'll loop over all known methods to create a tar archive until one works.
3165_am_tools='gnutar  pax cpio none'
3166
3167am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3168
3169
3170
3171
3172
3173# Variables for tags utilities; see am/tags.am
3174if test -z "$CTAGS"; then
3175  CTAGS=ctags
3176fi
3177
3178if test -z "$ETAGS"; then
3179  ETAGS=etags
3180fi
3181
3182if test -z "$CSCOPE"; then
3183  CSCOPE=cscope
3184fi
3185
3186
3187
3188# POSIX will say in a future version that running "rm -f" with no argument
3189# is OK; and we want to be able to make that assumption in our Makefile
3190# recipes.  So use an aggressive probe to check that the usage we want is
3191# actually supported "in the wild" to an acceptable degree.
3192# See automake bug#10828.
3193# To make any issue more visible, cause the running configure to be aborted
3194# by default if the 'rm' program in use doesn't match our expectations; the
3195# user can still override this though.
3196if rm -f && rm -fr && rm -rf; then : OK; else
3197  cat >&2 <<'END'
3198Oops!
3199
3200Your 'rm' program seems unable to run without file operands specified
3201on the command line, even when the '-f' option is present.  This is contrary
3202to the behaviour of most rm programs out there, and not conforming with
3203the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3204
3205Please tell bug-automake@gnu.org about your system, including the value
3206of your $PATH and any error possibly output before this message.  This
3207can help us improve future automake versions.
3208
3209END
3210  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3211    echo 'Configuration will proceed anyway, since you have set the' >&2
3212    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3213    echo >&2
3214  else
3215    cat >&2 <<'END'
3216Aborting the configuration process, to ensure you take notice of the issue.
3217
3218You can download and install GNU coreutils to get an 'rm' implementation
3219that behaves properly: <https://www.gnu.org/software/coreutils/>.
3220
3221If you want to complete the configuration process using your problematic
3222'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3223to "yes", and re-run configure.
3224
3225END
3226    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3227  fi
3228fi
3229
3230
3231# Initialize libtool
3232case `pwd` in
3233  *\ * | *\	*)
3234    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3235printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3236esac
3237
3238
3239
3240macro_version='2.4.7'
3241macro_revision='2.4.7'
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256ltmain=$ac_aux_dir/ltmain.sh
3257
3258
3259
3260  # Make sure we can run config.sub.
3261$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3262  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3263
3264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3265printf %s "checking build system type... " >&6; }
3266if test ${ac_cv_build+y}
3267then :
3268  printf %s "(cached) " >&6
3269else $as_nop
3270  ac_build_alias=$build_alias
3271test "x$ac_build_alias" = x &&
3272  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3273test "x$ac_build_alias" = x &&
3274  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3275ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3276  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3277
3278fi
3279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3280printf "%s\n" "$ac_cv_build" >&6; }
3281case $ac_cv_build in
3282*-*-*) ;;
3283*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3284esac
3285build=$ac_cv_build
3286ac_save_IFS=$IFS; IFS='-'
3287set x $ac_cv_build
3288shift
3289build_cpu=$1
3290build_vendor=$2
3291shift; shift
3292# Remember, the first character of IFS is used to create $*,
3293# except with old shells:
3294build_os=$*
3295IFS=$ac_save_IFS
3296case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3297
3298
3299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3300printf %s "checking host system type... " >&6; }
3301if test ${ac_cv_host+y}
3302then :
3303  printf %s "(cached) " >&6
3304else $as_nop
3305  if test "x$host_alias" = x; then
3306  ac_cv_host=$ac_cv_build
3307else
3308  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3309    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3310fi
3311
3312fi
3313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3314printf "%s\n" "$ac_cv_host" >&6; }
3315case $ac_cv_host in
3316*-*-*) ;;
3317*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3318esac
3319host=$ac_cv_host
3320ac_save_IFS=$IFS; IFS='-'
3321set x $ac_cv_host
3322shift
3323host_cpu=$1
3324host_vendor=$2
3325shift; shift
3326# Remember, the first character of IFS is used to create $*,
3327# except with old shells:
3328host_os=$*
3329IFS=$ac_save_IFS
3330case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3331
3332
3333# Backslashify metacharacters that are still active within
3334# double-quoted strings.
3335sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3336
3337# Same as above, but do not quote variable references.
3338double_quote_subst='s/\(["`\\]\)/\\\1/g'
3339
3340# Sed substitution to delay expansion of an escaped shell variable in a
3341# double_quote_subst'ed string.
3342delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3343
3344# Sed substitution to delay expansion of an escaped single quote.
3345delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3346
3347# Sed substitution to avoid accidental globbing in evaled expressions
3348no_glob_subst='s/\*/\\\*/g'
3349
3350ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3351ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3352ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3353
3354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3355printf %s "checking how to print strings... " >&6; }
3356# Test print first, because it will be a builtin if present.
3357if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3358   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3359  ECHO='print -r --'
3360elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3361  ECHO='printf %s\n'
3362else
3363  # Use this function as a fallback that always works.
3364  func_fallback_echo ()
3365  {
3366    eval 'cat <<_LTECHO_EOF
3367$1
3368_LTECHO_EOF'
3369  }
3370  ECHO='func_fallback_echo'
3371fi
3372
3373# func_echo_all arg...
3374# Invoke $ECHO with all args, space-separated.
3375func_echo_all ()
3376{
3377    $ECHO ""
3378}
3379
3380case $ECHO in
3381  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3382printf "%s\n" "printf" >&6; } ;;
3383  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3384printf "%s\n" "print -r" >&6; } ;;
3385  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3386printf "%s\n" "cat" >&6; } ;;
3387esac
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411DEPDIR="${am__leading_dot}deps"
3412
3413ac_config_commands="$ac_config_commands depfiles"
3414
3415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3416printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3417cat > confinc.mk << 'END'
3418am__doit:
3419	@echo this is the am__doit target >confinc.out
3420.PHONY: am__doit
3421END
3422am__include="#"
3423am__quote=
3424# BSD make does it like this.
3425echo '.include "confinc.mk" # ignored' > confmf.BSD
3426# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3427echo 'include confinc.mk # ignored' > confmf.GNU
3428_am_result=no
3429for s in GNU BSD; do
3430  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3431   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3432   ac_status=$?
3433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434   (exit $ac_status); }
3435  case $?:`cat confinc.out 2>/dev/null` in #(
3436  '0:this is the am__doit target') :
3437    case $s in #(
3438  BSD) :
3439    am__include='.include' am__quote='"' ;; #(
3440  *) :
3441    am__include='include' am__quote='' ;;
3442esac ;; #(
3443  *) :
3444     ;;
3445esac
3446  if test "$am__include" != "#"; then
3447    _am_result="yes ($s style)"
3448    break
3449  fi
3450done
3451rm -f confinc.* confmf.*
3452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3453printf "%s\n" "${_am_result}" >&6; }
3454
3455# Check whether --enable-dependency-tracking was given.
3456if test ${enable_dependency_tracking+y}
3457then :
3458  enableval=$enable_dependency_tracking;
3459fi
3460
3461if test "x$enable_dependency_tracking" != xno; then
3462  am_depcomp="$ac_aux_dir/depcomp"
3463  AMDEPBACKSLASH='\'
3464  am__nodep='_no'
3465fi
3466 if test "x$enable_dependency_tracking" != xno; then
3467  AMDEP_TRUE=
3468  AMDEP_FALSE='#'
3469else
3470  AMDEP_TRUE='#'
3471  AMDEP_FALSE=
3472fi
3473
3474
3475ac_ext=c
3476ac_cpp='$CPP $CPPFLAGS'
3477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3479ac_compiler_gnu=$ac_cv_c_compiler_gnu
3480if test -n "$ac_tool_prefix"; then
3481  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3482set dummy ${ac_tool_prefix}gcc; ac_word=$2
3483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3484printf %s "checking for $ac_word... " >&6; }
3485if test ${ac_cv_prog_CC+y}
3486then :
3487  printf %s "(cached) " >&6
3488else $as_nop
3489  if test -n "$CC"; then
3490  ac_cv_prog_CC="$CC" # Let the user override the test.
3491else
3492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493for as_dir in $PATH
3494do
3495  IFS=$as_save_IFS
3496  case $as_dir in #(((
3497    '') as_dir=./ ;;
3498    */) ;;
3499    *) as_dir=$as_dir/ ;;
3500  esac
3501    for ac_exec_ext in '' $ac_executable_extensions; do
3502  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3503    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3504    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3505    break 2
3506  fi
3507done
3508  done
3509IFS=$as_save_IFS
3510
3511fi
3512fi
3513CC=$ac_cv_prog_CC
3514if test -n "$CC"; then
3515  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3516printf "%s\n" "$CC" >&6; }
3517else
3518  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3519printf "%s\n" "no" >&6; }
3520fi
3521
3522
3523fi
3524if test -z "$ac_cv_prog_CC"; then
3525  ac_ct_CC=$CC
3526  # Extract the first word of "gcc", so it can be a program name with args.
3527set dummy gcc; ac_word=$2
3528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3529printf %s "checking for $ac_word... " >&6; }
3530if test ${ac_cv_prog_ac_ct_CC+y}
3531then :
3532  printf %s "(cached) " >&6
3533else $as_nop
3534  if test -n "$ac_ct_CC"; then
3535  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3536else
3537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538for as_dir in $PATH
3539do
3540  IFS=$as_save_IFS
3541  case $as_dir in #(((
3542    '') as_dir=./ ;;
3543    */) ;;
3544    *) as_dir=$as_dir/ ;;
3545  esac
3546    for ac_exec_ext in '' $ac_executable_extensions; do
3547  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3548    ac_cv_prog_ac_ct_CC="gcc"
3549    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3550    break 2
3551  fi
3552done
3553  done
3554IFS=$as_save_IFS
3555
3556fi
3557fi
3558ac_ct_CC=$ac_cv_prog_ac_ct_CC
3559if test -n "$ac_ct_CC"; then
3560  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3561printf "%s\n" "$ac_ct_CC" >&6; }
3562else
3563  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564printf "%s\n" "no" >&6; }
3565fi
3566
3567  if test "x$ac_ct_CC" = x; then
3568    CC=""
3569  else
3570    case $cross_compiling:$ac_tool_warned in
3571yes:)
3572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3573printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3574ac_tool_warned=yes ;;
3575esac
3576    CC=$ac_ct_CC
3577  fi
3578else
3579  CC="$ac_cv_prog_CC"
3580fi
3581
3582if test -z "$CC"; then
3583          if test -n "$ac_tool_prefix"; then
3584    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3585set dummy ${ac_tool_prefix}cc; ac_word=$2
3586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587printf %s "checking for $ac_word... " >&6; }
3588if test ${ac_cv_prog_CC+y}
3589then :
3590  printf %s "(cached) " >&6
3591else $as_nop
3592  if test -n "$CC"; then
3593  ac_cv_prog_CC="$CC" # Let the user override the test.
3594else
3595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596for as_dir in $PATH
3597do
3598  IFS=$as_save_IFS
3599  case $as_dir in #(((
3600    '') as_dir=./ ;;
3601    */) ;;
3602    *) as_dir=$as_dir/ ;;
3603  esac
3604    for ac_exec_ext in '' $ac_executable_extensions; do
3605  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3606    ac_cv_prog_CC="${ac_tool_prefix}cc"
3607    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3608    break 2
3609  fi
3610done
3611  done
3612IFS=$as_save_IFS
3613
3614fi
3615fi
3616CC=$ac_cv_prog_CC
3617if test -n "$CC"; then
3618  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3619printf "%s\n" "$CC" >&6; }
3620else
3621  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622printf "%s\n" "no" >&6; }
3623fi
3624
3625
3626  fi
3627fi
3628if test -z "$CC"; then
3629  # Extract the first word of "cc", so it can be a program name with args.
3630set dummy cc; ac_word=$2
3631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3632printf %s "checking for $ac_word... " >&6; }
3633if test ${ac_cv_prog_CC+y}
3634then :
3635  printf %s "(cached) " >&6
3636else $as_nop
3637  if test -n "$CC"; then
3638  ac_cv_prog_CC="$CC" # Let the user override the test.
3639else
3640  ac_prog_rejected=no
3641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642for as_dir in $PATH
3643do
3644  IFS=$as_save_IFS
3645  case $as_dir in #(((
3646    '') as_dir=./ ;;
3647    */) ;;
3648    *) as_dir=$as_dir/ ;;
3649  esac
3650    for ac_exec_ext in '' $ac_executable_extensions; do
3651  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3652    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3653       ac_prog_rejected=yes
3654       continue
3655     fi
3656    ac_cv_prog_CC="cc"
3657    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3658    break 2
3659  fi
3660done
3661  done
3662IFS=$as_save_IFS
3663
3664if test $ac_prog_rejected = yes; then
3665  # We found a bogon in the path, so make sure we never use it.
3666  set dummy $ac_cv_prog_CC
3667  shift
3668  if test $# != 0; then
3669    # We chose a different compiler from the bogus one.
3670    # However, it has the same basename, so the bogon will be chosen
3671    # first if we set CC to just the basename; use the full file name.
3672    shift
3673    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3674  fi
3675fi
3676fi
3677fi
3678CC=$ac_cv_prog_CC
3679if test -n "$CC"; then
3680  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3681printf "%s\n" "$CC" >&6; }
3682else
3683  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684printf "%s\n" "no" >&6; }
3685fi
3686
3687
3688fi
3689if test -z "$CC"; then
3690  if test -n "$ac_tool_prefix"; then
3691  for ac_prog in cl.exe
3692  do
3693    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3694set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3696printf %s "checking for $ac_word... " >&6; }
3697if test ${ac_cv_prog_CC+y}
3698then :
3699  printf %s "(cached) " >&6
3700else $as_nop
3701  if test -n "$CC"; then
3702  ac_cv_prog_CC="$CC" # Let the user override the test.
3703else
3704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705for as_dir in $PATH
3706do
3707  IFS=$as_save_IFS
3708  case $as_dir in #(((
3709    '') as_dir=./ ;;
3710    */) ;;
3711    *) as_dir=$as_dir/ ;;
3712  esac
3713    for ac_exec_ext in '' $ac_executable_extensions; do
3714  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3715    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3716    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3717    break 2
3718  fi
3719done
3720  done
3721IFS=$as_save_IFS
3722
3723fi
3724fi
3725CC=$ac_cv_prog_CC
3726if test -n "$CC"; then
3727  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3728printf "%s\n" "$CC" >&6; }
3729else
3730  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731printf "%s\n" "no" >&6; }
3732fi
3733
3734
3735    test -n "$CC" && break
3736  done
3737fi
3738if test -z "$CC"; then
3739  ac_ct_CC=$CC
3740  for ac_prog in cl.exe
3741do
3742  # Extract the first word of "$ac_prog", so it can be a program name with args.
3743set dummy $ac_prog; ac_word=$2
3744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745printf %s "checking for $ac_word... " >&6; }
3746if test ${ac_cv_prog_ac_ct_CC+y}
3747then :
3748  printf %s "(cached) " >&6
3749else $as_nop
3750  if test -n "$ac_ct_CC"; then
3751  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3752else
3753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754for as_dir in $PATH
3755do
3756  IFS=$as_save_IFS
3757  case $as_dir in #(((
3758    '') as_dir=./ ;;
3759    */) ;;
3760    *) as_dir=$as_dir/ ;;
3761  esac
3762    for ac_exec_ext in '' $ac_executable_extensions; do
3763  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3764    ac_cv_prog_ac_ct_CC="$ac_prog"
3765    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3766    break 2
3767  fi
3768done
3769  done
3770IFS=$as_save_IFS
3771
3772fi
3773fi
3774ac_ct_CC=$ac_cv_prog_ac_ct_CC
3775if test -n "$ac_ct_CC"; then
3776  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3777printf "%s\n" "$ac_ct_CC" >&6; }
3778else
3779  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780printf "%s\n" "no" >&6; }
3781fi
3782
3783
3784  test -n "$ac_ct_CC" && break
3785done
3786
3787  if test "x$ac_ct_CC" = x; then
3788    CC=""
3789  else
3790    case $cross_compiling:$ac_tool_warned in
3791yes:)
3792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3793printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3794ac_tool_warned=yes ;;
3795esac
3796    CC=$ac_ct_CC
3797  fi
3798fi
3799
3800fi
3801if test -z "$CC"; then
3802  if test -n "$ac_tool_prefix"; then
3803  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3804set dummy ${ac_tool_prefix}clang; ac_word=$2
3805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3806printf %s "checking for $ac_word... " >&6; }
3807if test ${ac_cv_prog_CC+y}
3808then :
3809  printf %s "(cached) " >&6
3810else $as_nop
3811  if test -n "$CC"; then
3812  ac_cv_prog_CC="$CC" # Let the user override the test.
3813else
3814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815for as_dir in $PATH
3816do
3817  IFS=$as_save_IFS
3818  case $as_dir in #(((
3819    '') as_dir=./ ;;
3820    */) ;;
3821    *) as_dir=$as_dir/ ;;
3822  esac
3823    for ac_exec_ext in '' $ac_executable_extensions; do
3824  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3825    ac_cv_prog_CC="${ac_tool_prefix}clang"
3826    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3827    break 2
3828  fi
3829done
3830  done
3831IFS=$as_save_IFS
3832
3833fi
3834fi
3835CC=$ac_cv_prog_CC
3836if test -n "$CC"; then
3837  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3838printf "%s\n" "$CC" >&6; }
3839else
3840  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841printf "%s\n" "no" >&6; }
3842fi
3843
3844
3845fi
3846if test -z "$ac_cv_prog_CC"; then
3847  ac_ct_CC=$CC
3848  # Extract the first word of "clang", so it can be a program name with args.
3849set dummy clang; ac_word=$2
3850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3851printf %s "checking for $ac_word... " >&6; }
3852if test ${ac_cv_prog_ac_ct_CC+y}
3853then :
3854  printf %s "(cached) " >&6
3855else $as_nop
3856  if test -n "$ac_ct_CC"; then
3857  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3858else
3859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860for as_dir in $PATH
3861do
3862  IFS=$as_save_IFS
3863  case $as_dir in #(((
3864    '') as_dir=./ ;;
3865    */) ;;
3866    *) as_dir=$as_dir/ ;;
3867  esac
3868    for ac_exec_ext in '' $ac_executable_extensions; do
3869  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3870    ac_cv_prog_ac_ct_CC="clang"
3871    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3872    break 2
3873  fi
3874done
3875  done
3876IFS=$as_save_IFS
3877
3878fi
3879fi
3880ac_ct_CC=$ac_cv_prog_ac_ct_CC
3881if test -n "$ac_ct_CC"; then
3882  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3883printf "%s\n" "$ac_ct_CC" >&6; }
3884else
3885  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886printf "%s\n" "no" >&6; }
3887fi
3888
3889  if test "x$ac_ct_CC" = x; then
3890    CC=""
3891  else
3892    case $cross_compiling:$ac_tool_warned in
3893yes:)
3894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3895printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3896ac_tool_warned=yes ;;
3897esac
3898    CC=$ac_ct_CC
3899  fi
3900else
3901  CC="$ac_cv_prog_CC"
3902fi
3903
3904fi
3905
3906
3907test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3908printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3909as_fn_error $? "no acceptable C compiler found in \$PATH
3910See \`config.log' for more details" "$LINENO" 5; }
3911
3912# Provide some information about the compiler.
3913printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3914set X $ac_compile
3915ac_compiler=$2
3916for ac_option in --version -v -V -qversion -version; do
3917  { { ac_try="$ac_compiler $ac_option >&5"
3918case "(($ac_try" in
3919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3920  *) ac_try_echo=$ac_try;;
3921esac
3922eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3923printf "%s\n" "$ac_try_echo"; } >&5
3924  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3925  ac_status=$?
3926  if test -s conftest.err; then
3927    sed '10a\
3928... rest of stderr output deleted ...
3929         10q' conftest.err >conftest.er1
3930    cat conftest.er1 >&5
3931  fi
3932  rm -f conftest.er1 conftest.err
3933  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3934  test $ac_status = 0; }
3935done
3936
3937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938/* end confdefs.h.  */
3939
3940int
3941main (void)
3942{
3943
3944  ;
3945  return 0;
3946}
3947_ACEOF
3948ac_clean_files_save=$ac_clean_files
3949ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3950# Try to create an executable without -o first, disregard a.out.
3951# It will help us diagnose broken compilers, and finding out an intuition
3952# of exeext.
3953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3954printf %s "checking whether the C compiler works... " >&6; }
3955ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3956
3957# The possible output files:
3958ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3959
3960ac_rmfiles=
3961for ac_file in $ac_files
3962do
3963  case $ac_file in
3964    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3965    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3966  esac
3967done
3968rm -f $ac_rmfiles
3969
3970if { { ac_try="$ac_link_default"
3971case "(($ac_try" in
3972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973  *) ac_try_echo=$ac_try;;
3974esac
3975eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3976printf "%s\n" "$ac_try_echo"; } >&5
3977  (eval "$ac_link_default") 2>&5
3978  ac_status=$?
3979  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3980  test $ac_status = 0; }
3981then :
3982  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3983# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3984# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3985# so that the user can short-circuit this test for compilers unknown to
3986# Autoconf.
3987for ac_file in $ac_files ''
3988do
3989  test -f "$ac_file" || continue
3990  case $ac_file in
3991    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3992	;;
3993    [ab].out )
3994	# We found the default executable, but exeext='' is most
3995	# certainly right.
3996	break;;
3997    *.* )
3998	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3999	then :; else
4000	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4001	fi
4002	# We set ac_cv_exeext here because the later test for it is not
4003	# safe: cross compilers may not add the suffix if given an `-o'
4004	# argument, so we may need to know it at that point already.
4005	# Even if this section looks crufty: it has the advantage of
4006	# actually working.
4007	break;;
4008    * )
4009	break;;
4010  esac
4011done
4012test "$ac_cv_exeext" = no && ac_cv_exeext=
4013
4014else $as_nop
4015  ac_file=''
4016fi
4017if test -z "$ac_file"
4018then :
4019  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4020printf "%s\n" "no" >&6; }
4021printf "%s\n" "$as_me: failed program was:" >&5
4022sed 's/^/| /' conftest.$ac_ext >&5
4023
4024{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4025printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4026as_fn_error 77 "C compiler cannot create executables
4027See \`config.log' for more details" "$LINENO" 5; }
4028else $as_nop
4029  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4030printf "%s\n" "yes" >&6; }
4031fi
4032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4033printf %s "checking for C compiler default output file name... " >&6; }
4034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4035printf "%s\n" "$ac_file" >&6; }
4036ac_exeext=$ac_cv_exeext
4037
4038rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4039ac_clean_files=$ac_clean_files_save
4040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4041printf %s "checking for suffix of executables... " >&6; }
4042if { { ac_try="$ac_link"
4043case "(($ac_try" in
4044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045  *) ac_try_echo=$ac_try;;
4046esac
4047eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4048printf "%s\n" "$ac_try_echo"; } >&5
4049  (eval "$ac_link") 2>&5
4050  ac_status=$?
4051  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4052  test $ac_status = 0; }
4053then :
4054  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4055# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4056# work properly (i.e., refer to `conftest.exe'), while it won't with
4057# `rm'.
4058for ac_file in conftest.exe conftest conftest.*; do
4059  test -f "$ac_file" || continue
4060  case $ac_file in
4061    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4062    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4063	  break;;
4064    * ) break;;
4065  esac
4066done
4067else $as_nop
4068  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4069printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4070as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4071See \`config.log' for more details" "$LINENO" 5; }
4072fi
4073rm -f conftest conftest$ac_cv_exeext
4074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4075printf "%s\n" "$ac_cv_exeext" >&6; }
4076
4077rm -f conftest.$ac_ext
4078EXEEXT=$ac_cv_exeext
4079ac_exeext=$EXEEXT
4080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081/* end confdefs.h.  */
4082#include <stdio.h>
4083int
4084main (void)
4085{
4086FILE *f = fopen ("conftest.out", "w");
4087 return ferror (f) || fclose (f) != 0;
4088
4089  ;
4090  return 0;
4091}
4092_ACEOF
4093ac_clean_files="$ac_clean_files conftest.out"
4094# Check that the compiler produces executables we can run.  If not, either
4095# the compiler is broken, or we cross compile.
4096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4097printf %s "checking whether we are cross compiling... " >&6; }
4098if test "$cross_compiling" != yes; then
4099  { { ac_try="$ac_link"
4100case "(($ac_try" in
4101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102  *) ac_try_echo=$ac_try;;
4103esac
4104eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4105printf "%s\n" "$ac_try_echo"; } >&5
4106  (eval "$ac_link") 2>&5
4107  ac_status=$?
4108  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4109  test $ac_status = 0; }
4110  if { ac_try='./conftest$ac_cv_exeext'
4111  { { case "(($ac_try" in
4112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113  *) ac_try_echo=$ac_try;;
4114esac
4115eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4116printf "%s\n" "$ac_try_echo"; } >&5
4117  (eval "$ac_try") 2>&5
4118  ac_status=$?
4119  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4120  test $ac_status = 0; }; }; then
4121    cross_compiling=no
4122  else
4123    if test "$cross_compiling" = maybe; then
4124	cross_compiling=yes
4125    else
4126	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4127printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4128as_fn_error 77 "cannot run C compiled programs.
4129If you meant to cross compile, use \`--host'.
4130See \`config.log' for more details" "$LINENO" 5; }
4131    fi
4132  fi
4133fi
4134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4135printf "%s\n" "$cross_compiling" >&6; }
4136
4137rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4138ac_clean_files=$ac_clean_files_save
4139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4140printf %s "checking for suffix of object files... " >&6; }
4141if test ${ac_cv_objext+y}
4142then :
4143  printf %s "(cached) " >&6
4144else $as_nop
4145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146/* end confdefs.h.  */
4147
4148int
4149main (void)
4150{
4151
4152  ;
4153  return 0;
4154}
4155_ACEOF
4156rm -f conftest.o conftest.obj
4157if { { ac_try="$ac_compile"
4158case "(($ac_try" in
4159  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160  *) ac_try_echo=$ac_try;;
4161esac
4162eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4163printf "%s\n" "$ac_try_echo"; } >&5
4164  (eval "$ac_compile") 2>&5
4165  ac_status=$?
4166  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4167  test $ac_status = 0; }
4168then :
4169  for ac_file in conftest.o conftest.obj conftest.*; do
4170  test -f "$ac_file" || continue;
4171  case $ac_file in
4172    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4173    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4174       break;;
4175  esac
4176done
4177else $as_nop
4178  printf "%s\n" "$as_me: failed program was:" >&5
4179sed 's/^/| /' conftest.$ac_ext >&5
4180
4181{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4182printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4183as_fn_error $? "cannot compute suffix of object files: cannot compile
4184See \`config.log' for more details" "$LINENO" 5; }
4185fi
4186rm -f conftest.$ac_cv_objext conftest.$ac_ext
4187fi
4188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4189printf "%s\n" "$ac_cv_objext" >&6; }
4190OBJEXT=$ac_cv_objext
4191ac_objext=$OBJEXT
4192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4193printf %s "checking whether the compiler supports GNU C... " >&6; }
4194if test ${ac_cv_c_compiler_gnu+y}
4195then :
4196  printf %s "(cached) " >&6
4197else $as_nop
4198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199/* end confdefs.h.  */
4200
4201int
4202main (void)
4203{
4204#ifndef __GNUC__
4205       choke me
4206#endif
4207
4208  ;
4209  return 0;
4210}
4211_ACEOF
4212if ac_fn_c_try_compile "$LINENO"
4213then :
4214  ac_compiler_gnu=yes
4215else $as_nop
4216  ac_compiler_gnu=no
4217fi
4218rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4219ac_cv_c_compiler_gnu=$ac_compiler_gnu
4220
4221fi
4222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4223printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4224ac_compiler_gnu=$ac_cv_c_compiler_gnu
4225
4226if test $ac_compiler_gnu = yes; then
4227  GCC=yes
4228else
4229  GCC=
4230fi
4231ac_test_CFLAGS=${CFLAGS+y}
4232ac_save_CFLAGS=$CFLAGS
4233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4234printf %s "checking whether $CC accepts -g... " >&6; }
4235if test ${ac_cv_prog_cc_g+y}
4236then :
4237  printf %s "(cached) " >&6
4238else $as_nop
4239  ac_save_c_werror_flag=$ac_c_werror_flag
4240   ac_c_werror_flag=yes
4241   ac_cv_prog_cc_g=no
4242   CFLAGS="-g"
4243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244/* end confdefs.h.  */
4245
4246int
4247main (void)
4248{
4249
4250  ;
4251  return 0;
4252}
4253_ACEOF
4254if ac_fn_c_try_compile "$LINENO"
4255then :
4256  ac_cv_prog_cc_g=yes
4257else $as_nop
4258  CFLAGS=""
4259      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260/* end confdefs.h.  */
4261
4262int
4263main (void)
4264{
4265
4266  ;
4267  return 0;
4268}
4269_ACEOF
4270if ac_fn_c_try_compile "$LINENO"
4271then :
4272
4273else $as_nop
4274  ac_c_werror_flag=$ac_save_c_werror_flag
4275	 CFLAGS="-g"
4276	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277/* end confdefs.h.  */
4278
4279int
4280main (void)
4281{
4282
4283  ;
4284  return 0;
4285}
4286_ACEOF
4287if ac_fn_c_try_compile "$LINENO"
4288then :
4289  ac_cv_prog_cc_g=yes
4290fi
4291rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4292fi
4293rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4294fi
4295rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4296   ac_c_werror_flag=$ac_save_c_werror_flag
4297fi
4298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4299printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4300if test $ac_test_CFLAGS; then
4301  CFLAGS=$ac_save_CFLAGS
4302elif test $ac_cv_prog_cc_g = yes; then
4303  if test "$GCC" = yes; then
4304    CFLAGS="-g -O2"
4305  else
4306    CFLAGS="-g"
4307  fi
4308else
4309  if test "$GCC" = yes; then
4310    CFLAGS="-O2"
4311  else
4312    CFLAGS=
4313  fi
4314fi
4315ac_prog_cc_stdc=no
4316if test x$ac_prog_cc_stdc = xno
4317then :
4318  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4319printf %s "checking for $CC option to enable C11 features... " >&6; }
4320if test ${ac_cv_prog_cc_c11+y}
4321then :
4322  printf %s "(cached) " >&6
4323else $as_nop
4324  ac_cv_prog_cc_c11=no
4325ac_save_CC=$CC
4326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327/* end confdefs.h.  */
4328$ac_c_conftest_c11_program
4329_ACEOF
4330for ac_arg in '' -std=gnu11
4331do
4332  CC="$ac_save_CC $ac_arg"
4333  if ac_fn_c_try_compile "$LINENO"
4334then :
4335  ac_cv_prog_cc_c11=$ac_arg
4336fi
4337rm -f core conftest.err conftest.$ac_objext conftest.beam
4338  test "x$ac_cv_prog_cc_c11" != "xno" && break
4339done
4340rm -f conftest.$ac_ext
4341CC=$ac_save_CC
4342fi
4343
4344if test "x$ac_cv_prog_cc_c11" = xno
4345then :
4346  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4347printf "%s\n" "unsupported" >&6; }
4348else $as_nop
4349  if test "x$ac_cv_prog_cc_c11" = x
4350then :
4351  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4352printf "%s\n" "none needed" >&6; }
4353else $as_nop
4354  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4355printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4356     CC="$CC $ac_cv_prog_cc_c11"
4357fi
4358  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4359  ac_prog_cc_stdc=c11
4360fi
4361fi
4362if test x$ac_prog_cc_stdc = xno
4363then :
4364  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4365printf %s "checking for $CC option to enable C99 features... " >&6; }
4366if test ${ac_cv_prog_cc_c99+y}
4367then :
4368  printf %s "(cached) " >&6
4369else $as_nop
4370  ac_cv_prog_cc_c99=no
4371ac_save_CC=$CC
4372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373/* end confdefs.h.  */
4374$ac_c_conftest_c99_program
4375_ACEOF
4376for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4377do
4378  CC="$ac_save_CC $ac_arg"
4379  if ac_fn_c_try_compile "$LINENO"
4380then :
4381  ac_cv_prog_cc_c99=$ac_arg
4382fi
4383rm -f core conftest.err conftest.$ac_objext conftest.beam
4384  test "x$ac_cv_prog_cc_c99" != "xno" && break
4385done
4386rm -f conftest.$ac_ext
4387CC=$ac_save_CC
4388fi
4389
4390if test "x$ac_cv_prog_cc_c99" = xno
4391then :
4392  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4393printf "%s\n" "unsupported" >&6; }
4394else $as_nop
4395  if test "x$ac_cv_prog_cc_c99" = x
4396then :
4397  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4398printf "%s\n" "none needed" >&6; }
4399else $as_nop
4400  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4401printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4402     CC="$CC $ac_cv_prog_cc_c99"
4403fi
4404  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4405  ac_prog_cc_stdc=c99
4406fi
4407fi
4408if test x$ac_prog_cc_stdc = xno
4409then :
4410  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4411printf %s "checking for $CC option to enable C89 features... " >&6; }
4412if test ${ac_cv_prog_cc_c89+y}
4413then :
4414  printf %s "(cached) " >&6
4415else $as_nop
4416  ac_cv_prog_cc_c89=no
4417ac_save_CC=$CC
4418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419/* end confdefs.h.  */
4420$ac_c_conftest_c89_program
4421_ACEOF
4422for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4423do
4424  CC="$ac_save_CC $ac_arg"
4425  if ac_fn_c_try_compile "$LINENO"
4426then :
4427  ac_cv_prog_cc_c89=$ac_arg
4428fi
4429rm -f core conftest.err conftest.$ac_objext conftest.beam
4430  test "x$ac_cv_prog_cc_c89" != "xno" && break
4431done
4432rm -f conftest.$ac_ext
4433CC=$ac_save_CC
4434fi
4435
4436if test "x$ac_cv_prog_cc_c89" = xno
4437then :
4438  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4439printf "%s\n" "unsupported" >&6; }
4440else $as_nop
4441  if test "x$ac_cv_prog_cc_c89" = x
4442then :
4443  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4444printf "%s\n" "none needed" >&6; }
4445else $as_nop
4446  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4447printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4448     CC="$CC $ac_cv_prog_cc_c89"
4449fi
4450  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4451  ac_prog_cc_stdc=c89
4452fi
4453fi
4454
4455ac_ext=c
4456ac_cpp='$CPP $CPPFLAGS'
4457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4459ac_compiler_gnu=$ac_cv_c_compiler_gnu
4460
4461
4462  ac_ext=c
4463ac_cpp='$CPP $CPPFLAGS'
4464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4466ac_compiler_gnu=$ac_cv_c_compiler_gnu
4467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4468printf %s "checking whether $CC understands -c and -o together... " >&6; }
4469if test ${am_cv_prog_cc_c_o+y}
4470then :
4471  printf %s "(cached) " >&6
4472else $as_nop
4473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474/* end confdefs.h.  */
4475
4476int
4477main (void)
4478{
4479
4480  ;
4481  return 0;
4482}
4483_ACEOF
4484  # Make sure it works both with $CC and with simple cc.
4485  # Following AC_PROG_CC_C_O, we do the test twice because some
4486  # compilers refuse to overwrite an existing .o file with -o,
4487  # though they will create one.
4488  am_cv_prog_cc_c_o=yes
4489  for am_i in 1 2; do
4490    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4491   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4492   ac_status=$?
4493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494   (exit $ac_status); } \
4495         && test -f conftest2.$ac_objext; then
4496      : OK
4497    else
4498      am_cv_prog_cc_c_o=no
4499      break
4500    fi
4501  done
4502  rm -f core conftest*
4503  unset am_i
4504fi
4505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4506printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4507if test "$am_cv_prog_cc_c_o" != yes; then
4508   # Losing compiler, so override with the script.
4509   # FIXME: It is wrong to rewrite CC.
4510   # But if we don't then we get into trouble of one sort or another.
4511   # A longer-term fix would be to have automake use am__CC in this case,
4512   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4513   CC="$am_aux_dir/compile $CC"
4514fi
4515ac_ext=c
4516ac_cpp='$CPP $CPPFLAGS'
4517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4519ac_compiler_gnu=$ac_cv_c_compiler_gnu
4520
4521
4522depcc="$CC"   am_compiler_list=
4523
4524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4525printf %s "checking dependency style of $depcc... " >&6; }
4526if test ${am_cv_CC_dependencies_compiler_type+y}
4527then :
4528  printf %s "(cached) " >&6
4529else $as_nop
4530  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4531  # We make a subdir and do the tests there.  Otherwise we can end up
4532  # making bogus files that we don't know about and never remove.  For
4533  # instance it was reported that on HP-UX the gcc test will end up
4534  # making a dummy file named 'D' -- because '-MD' means "put the output
4535  # in D".
4536  rm -rf conftest.dir
4537  mkdir conftest.dir
4538  # Copy depcomp to subdir because otherwise we won't find it if we're
4539  # using a relative directory.
4540  cp "$am_depcomp" conftest.dir
4541  cd conftest.dir
4542  # We will build objects and dependencies in a subdirectory because
4543  # it helps to detect inapplicable dependency modes.  For instance
4544  # both Tru64's cc and ICC support -MD to output dependencies as a
4545  # side effect of compilation, but ICC will put the dependencies in
4546  # the current directory while Tru64 will put them in the object
4547  # directory.
4548  mkdir sub
4549
4550  am_cv_CC_dependencies_compiler_type=none
4551  if test "$am_compiler_list" = ""; then
4552     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4553  fi
4554  am__universal=false
4555  case " $depcc " in #(
4556     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4557     esac
4558
4559  for depmode in $am_compiler_list; do
4560    # Setup a source with many dependencies, because some compilers
4561    # like to wrap large dependency lists on column 80 (with \), and
4562    # we should not choose a depcomp mode which is confused by this.
4563    #
4564    # We need to recreate these files for each test, as the compiler may
4565    # overwrite some of them when testing with obscure command lines.
4566    # This happens at least with the AIX C compiler.
4567    : > sub/conftest.c
4568    for i in 1 2 3 4 5 6; do
4569      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4570      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4571      # Solaris 10 /bin/sh.
4572      echo '/* dummy */' > sub/conftst$i.h
4573    done
4574    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4575
4576    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4577    # mode.  It turns out that the SunPro C++ compiler does not properly
4578    # handle '-M -o', and we need to detect this.  Also, some Intel
4579    # versions had trouble with output in subdirs.
4580    am__obj=sub/conftest.${OBJEXT-o}
4581    am__minus_obj="-o $am__obj"
4582    case $depmode in
4583    gcc)
4584      # This depmode causes a compiler race in universal mode.
4585      test "$am__universal" = false || continue
4586      ;;
4587    nosideeffect)
4588      # After this tag, mechanisms are not by side-effect, so they'll
4589      # only be used when explicitly requested.
4590      if test "x$enable_dependency_tracking" = xyes; then
4591	continue
4592      else
4593	break
4594      fi
4595      ;;
4596    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4597      # This compiler won't grok '-c -o', but also, the minuso test has
4598      # not run yet.  These depmodes are late enough in the game, and
4599      # so weak that their functioning should not be impacted.
4600      am__obj=conftest.${OBJEXT-o}
4601      am__minus_obj=
4602      ;;
4603    none) break ;;
4604    esac
4605    if depmode=$depmode \
4606       source=sub/conftest.c object=$am__obj \
4607       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4608       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4609         >/dev/null 2>conftest.err &&
4610       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4611       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4612       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4613       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4614      # icc doesn't choke on unknown options, it will just issue warnings
4615      # or remarks (even with -Werror).  So we grep stderr for any message
4616      # that says an option was ignored or not supported.
4617      # When given -MP, icc 7.0 and 7.1 complain thusly:
4618      #   icc: Command line warning: ignoring option '-M'; no argument required
4619      # The diagnosis changed in icc 8.0:
4620      #   icc: Command line remark: option '-MP' not supported
4621      if (grep 'ignoring option' conftest.err ||
4622          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4623        am_cv_CC_dependencies_compiler_type=$depmode
4624        break
4625      fi
4626    fi
4627  done
4628
4629  cd ..
4630  rm -rf conftest.dir
4631else
4632  am_cv_CC_dependencies_compiler_type=none
4633fi
4634
4635fi
4636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4637printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4638CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4639
4640 if
4641  test "x$enable_dependency_tracking" != xno \
4642  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4643  am__fastdepCC_TRUE=
4644  am__fastdepCC_FALSE='#'
4645else
4646  am__fastdepCC_TRUE='#'
4647  am__fastdepCC_FALSE=
4648fi
4649
4650
4651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4652printf %s "checking for a sed that does not truncate output... " >&6; }
4653if test ${ac_cv_path_SED+y}
4654then :
4655  printf %s "(cached) " >&6
4656else $as_nop
4657            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4658     for ac_i in 1 2 3 4 5 6 7; do
4659       ac_script="$ac_script$as_nl$ac_script"
4660     done
4661     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4662     { ac_script=; unset ac_script;}
4663     if test -z "$SED"; then
4664  ac_path_SED_found=false
4665  # Loop through the user's path and test for each of PROGNAME-LIST
4666  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667for as_dir in $PATH
4668do
4669  IFS=$as_save_IFS
4670  case $as_dir in #(((
4671    '') as_dir=./ ;;
4672    */) ;;
4673    *) as_dir=$as_dir/ ;;
4674  esac
4675    for ac_prog in sed gsed
4676   do
4677    for ac_exec_ext in '' $ac_executable_extensions; do
4678      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4679      as_fn_executable_p "$ac_path_SED" || continue
4680# Check for GNU ac_path_SED and select it if it is found.
4681  # Check for GNU $ac_path_SED
4682case `"$ac_path_SED" --version 2>&1` in
4683*GNU*)
4684  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4685*)
4686  ac_count=0
4687  printf %s 0123456789 >"conftest.in"
4688  while :
4689  do
4690    cat "conftest.in" "conftest.in" >"conftest.tmp"
4691    mv "conftest.tmp" "conftest.in"
4692    cp "conftest.in" "conftest.nl"
4693    printf "%s\n" '' >> "conftest.nl"
4694    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4695    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4696    as_fn_arith $ac_count + 1 && ac_count=$as_val
4697    if test $ac_count -gt ${ac_path_SED_max-0}; then
4698      # Best one so far, save it but keep looking for a better one
4699      ac_cv_path_SED="$ac_path_SED"
4700      ac_path_SED_max=$ac_count
4701    fi
4702    # 10*(2^10) chars as input seems more than enough
4703    test $ac_count -gt 10 && break
4704  done
4705  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4706esac
4707
4708      $ac_path_SED_found && break 3
4709    done
4710  done
4711  done
4712IFS=$as_save_IFS
4713  if test -z "$ac_cv_path_SED"; then
4714    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4715  fi
4716else
4717  ac_cv_path_SED=$SED
4718fi
4719
4720fi
4721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4722printf "%s\n" "$ac_cv_path_SED" >&6; }
4723 SED="$ac_cv_path_SED"
4724  rm -f conftest.sed
4725
4726test -z "$SED" && SED=sed
4727Xsed="$SED -e 1s/^X//"
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4740printf %s "checking for grep that handles long lines and -e... " >&6; }
4741if test ${ac_cv_path_GREP+y}
4742then :
4743  printf %s "(cached) " >&6
4744else $as_nop
4745  if test -z "$GREP"; then
4746  ac_path_GREP_found=false
4747  # Loop through the user's path and test for each of PROGNAME-LIST
4748  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4750do
4751  IFS=$as_save_IFS
4752  case $as_dir in #(((
4753    '') as_dir=./ ;;
4754    */) ;;
4755    *) as_dir=$as_dir/ ;;
4756  esac
4757    for ac_prog in grep ggrep
4758   do
4759    for ac_exec_ext in '' $ac_executable_extensions; do
4760      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4761      as_fn_executable_p "$ac_path_GREP" || continue
4762# Check for GNU ac_path_GREP and select it if it is found.
4763  # Check for GNU $ac_path_GREP
4764case `"$ac_path_GREP" --version 2>&1` in
4765*GNU*)
4766  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4767*)
4768  ac_count=0
4769  printf %s 0123456789 >"conftest.in"
4770  while :
4771  do
4772    cat "conftest.in" "conftest.in" >"conftest.tmp"
4773    mv "conftest.tmp" "conftest.in"
4774    cp "conftest.in" "conftest.nl"
4775    printf "%s\n" 'GREP' >> "conftest.nl"
4776    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4777    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4778    as_fn_arith $ac_count + 1 && ac_count=$as_val
4779    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4780      # Best one so far, save it but keep looking for a better one
4781      ac_cv_path_GREP="$ac_path_GREP"
4782      ac_path_GREP_max=$ac_count
4783    fi
4784    # 10*(2^10) chars as input seems more than enough
4785    test $ac_count -gt 10 && break
4786  done
4787  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4788esac
4789
4790      $ac_path_GREP_found && break 3
4791    done
4792  done
4793  done
4794IFS=$as_save_IFS
4795  if test -z "$ac_cv_path_GREP"; then
4796    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4797  fi
4798else
4799  ac_cv_path_GREP=$GREP
4800fi
4801
4802fi
4803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4804printf "%s\n" "$ac_cv_path_GREP" >&6; }
4805 GREP="$ac_cv_path_GREP"
4806
4807
4808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4809printf %s "checking for egrep... " >&6; }
4810if test ${ac_cv_path_EGREP+y}
4811then :
4812  printf %s "(cached) " >&6
4813else $as_nop
4814  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4815   then ac_cv_path_EGREP="$GREP -E"
4816   else
4817     if test -z "$EGREP"; then
4818  ac_path_EGREP_found=false
4819  # Loop through the user's path and test for each of PROGNAME-LIST
4820  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4822do
4823  IFS=$as_save_IFS
4824  case $as_dir in #(((
4825    '') as_dir=./ ;;
4826    */) ;;
4827    *) as_dir=$as_dir/ ;;
4828  esac
4829    for ac_prog in egrep
4830   do
4831    for ac_exec_ext in '' $ac_executable_extensions; do
4832      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4833      as_fn_executable_p "$ac_path_EGREP" || continue
4834# Check for GNU ac_path_EGREP and select it if it is found.
4835  # Check for GNU $ac_path_EGREP
4836case `"$ac_path_EGREP" --version 2>&1` in
4837*GNU*)
4838  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4839*)
4840  ac_count=0
4841  printf %s 0123456789 >"conftest.in"
4842  while :
4843  do
4844    cat "conftest.in" "conftest.in" >"conftest.tmp"
4845    mv "conftest.tmp" "conftest.in"
4846    cp "conftest.in" "conftest.nl"
4847    printf "%s\n" 'EGREP' >> "conftest.nl"
4848    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4849    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4850    as_fn_arith $ac_count + 1 && ac_count=$as_val
4851    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4852      # Best one so far, save it but keep looking for a better one
4853      ac_cv_path_EGREP="$ac_path_EGREP"
4854      ac_path_EGREP_max=$ac_count
4855    fi
4856    # 10*(2^10) chars as input seems more than enough
4857    test $ac_count -gt 10 && break
4858  done
4859  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4860esac
4861
4862      $ac_path_EGREP_found && break 3
4863    done
4864  done
4865  done
4866IFS=$as_save_IFS
4867  if test -z "$ac_cv_path_EGREP"; then
4868    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4869  fi
4870else
4871  ac_cv_path_EGREP=$EGREP
4872fi
4873
4874   fi
4875fi
4876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4877printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4878 EGREP="$ac_cv_path_EGREP"
4879
4880
4881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4882printf %s "checking for fgrep... " >&6; }
4883if test ${ac_cv_path_FGREP+y}
4884then :
4885  printf %s "(cached) " >&6
4886else $as_nop
4887  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4888   then ac_cv_path_FGREP="$GREP -F"
4889   else
4890     if test -z "$FGREP"; then
4891  ac_path_FGREP_found=false
4892  # Loop through the user's path and test for each of PROGNAME-LIST
4893  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4895do
4896  IFS=$as_save_IFS
4897  case $as_dir in #(((
4898    '') as_dir=./ ;;
4899    */) ;;
4900    *) as_dir=$as_dir/ ;;
4901  esac
4902    for ac_prog in fgrep
4903   do
4904    for ac_exec_ext in '' $ac_executable_extensions; do
4905      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4906      as_fn_executable_p "$ac_path_FGREP" || continue
4907# Check for GNU ac_path_FGREP and select it if it is found.
4908  # Check for GNU $ac_path_FGREP
4909case `"$ac_path_FGREP" --version 2>&1` in
4910*GNU*)
4911  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4912*)
4913  ac_count=0
4914  printf %s 0123456789 >"conftest.in"
4915  while :
4916  do
4917    cat "conftest.in" "conftest.in" >"conftest.tmp"
4918    mv "conftest.tmp" "conftest.in"
4919    cp "conftest.in" "conftest.nl"
4920    printf "%s\n" 'FGREP' >> "conftest.nl"
4921    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4922    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4923    as_fn_arith $ac_count + 1 && ac_count=$as_val
4924    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4925      # Best one so far, save it but keep looking for a better one
4926      ac_cv_path_FGREP="$ac_path_FGREP"
4927      ac_path_FGREP_max=$ac_count
4928    fi
4929    # 10*(2^10) chars as input seems more than enough
4930    test $ac_count -gt 10 && break
4931  done
4932  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4933esac
4934
4935      $ac_path_FGREP_found && break 3
4936    done
4937  done
4938  done
4939IFS=$as_save_IFS
4940  if test -z "$ac_cv_path_FGREP"; then
4941    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4942  fi
4943else
4944  ac_cv_path_FGREP=$FGREP
4945fi
4946
4947   fi
4948fi
4949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4950printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4951 FGREP="$ac_cv_path_FGREP"
4952
4953
4954test -z "$GREP" && GREP=grep
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974# Check whether --with-gnu-ld was given.
4975if test ${with_gnu_ld+y}
4976then :
4977  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4978else $as_nop
4979  with_gnu_ld=no
4980fi
4981
4982ac_prog=ld
4983if test yes = "$GCC"; then
4984  # Check if gcc -print-prog-name=ld gives a path.
4985  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4986printf %s "checking for ld used by $CC... " >&6; }
4987  case $host in
4988  *-*-mingw*)
4989    # gcc leaves a trailing carriage return, which upsets mingw
4990    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4991  *)
4992    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4993  esac
4994  case $ac_prog in
4995    # Accept absolute paths.
4996    [\\/]* | ?:[\\/]*)
4997      re_direlt='/[^/][^/]*/\.\./'
4998      # Canonicalize the pathname of ld
4999      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5000      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5001	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5002      done
5003      test -z "$LD" && LD=$ac_prog
5004      ;;
5005  "")
5006    # If it fails, then pretend we aren't using GCC.
5007    ac_prog=ld
5008    ;;
5009  *)
5010    # If it is relative, then search for the first ld in PATH.
5011    with_gnu_ld=unknown
5012    ;;
5013  esac
5014elif test yes = "$with_gnu_ld"; then
5015  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5016printf %s "checking for GNU ld... " >&6; }
5017else
5018  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5019printf %s "checking for non-GNU ld... " >&6; }
5020fi
5021if test ${lt_cv_path_LD+y}
5022then :
5023  printf %s "(cached) " >&6
5024else $as_nop
5025  if test -z "$LD"; then
5026  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5027  for ac_dir in $PATH; do
5028    IFS=$lt_save_ifs
5029    test -z "$ac_dir" && ac_dir=.
5030    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5031      lt_cv_path_LD=$ac_dir/$ac_prog
5032      # Check to see if the program is GNU ld.  I'd rather use --version,
5033      # but apparently some variants of GNU ld only accept -v.
5034      # Break only if it was the GNU/non-GNU ld that we prefer.
5035      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5036      *GNU* | *'with BFD'*)
5037	test no != "$with_gnu_ld" && break
5038	;;
5039      *)
5040	test yes != "$with_gnu_ld" && break
5041	;;
5042      esac
5043    fi
5044  done
5045  IFS=$lt_save_ifs
5046else
5047  lt_cv_path_LD=$LD # Let the user override the test with a path.
5048fi
5049fi
5050
5051LD=$lt_cv_path_LD
5052if test -n "$LD"; then
5053  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5054printf "%s\n" "$LD" >&6; }
5055else
5056  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5057printf "%s\n" "no" >&6; }
5058fi
5059test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5061printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5062if test ${lt_cv_prog_gnu_ld+y}
5063then :
5064  printf %s "(cached) " >&6
5065else $as_nop
5066  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5067case `$LD -v 2>&1 </dev/null` in
5068*GNU* | *'with BFD'*)
5069  lt_cv_prog_gnu_ld=yes
5070  ;;
5071*)
5072  lt_cv_prog_gnu_ld=no
5073  ;;
5074esac
5075fi
5076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5077printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5078with_gnu_ld=$lt_cv_prog_gnu_ld
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5089printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5090if test ${lt_cv_path_NM+y}
5091then :
5092  printf %s "(cached) " >&6
5093else $as_nop
5094  if test -n "$NM"; then
5095  # Let the user override the test.
5096  lt_cv_path_NM=$NM
5097else
5098  lt_nm_to_check=${ac_tool_prefix}nm
5099  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5100    lt_nm_to_check="$lt_nm_to_check nm"
5101  fi
5102  for lt_tmp_nm in $lt_nm_to_check; do
5103    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5104    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5105      IFS=$lt_save_ifs
5106      test -z "$ac_dir" && ac_dir=.
5107      tmp_nm=$ac_dir/$lt_tmp_nm
5108      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5109	# Check to see if the nm accepts a BSD-compat flag.
5110	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5111	#   nm: unknown option "B" ignored
5112	# Tru64's nm complains that /dev/null is an invalid object file
5113	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5114	case $build_os in
5115	mingw*) lt_bad_file=conftest.nm/nofile ;;
5116	*) lt_bad_file=/dev/null ;;
5117	esac
5118	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5119	*$lt_bad_file* | *'Invalid file or object type'*)
5120	  lt_cv_path_NM="$tmp_nm -B"
5121	  break 2
5122	  ;;
5123	*)
5124	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5125	  */dev/null*)
5126	    lt_cv_path_NM="$tmp_nm -p"
5127	    break 2
5128	    ;;
5129	  *)
5130	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5131	    continue # so that we can try to find one that supports BSD flags
5132	    ;;
5133	  esac
5134	  ;;
5135	esac
5136      fi
5137    done
5138    IFS=$lt_save_ifs
5139  done
5140  : ${lt_cv_path_NM=no}
5141fi
5142fi
5143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5144printf "%s\n" "$lt_cv_path_NM" >&6; }
5145if test no != "$lt_cv_path_NM"; then
5146  NM=$lt_cv_path_NM
5147else
5148  # Didn't find any BSD compatible name lister, look for dumpbin.
5149  if test -n "$DUMPBIN"; then :
5150    # Let the user override the test.
5151  else
5152    if test -n "$ac_tool_prefix"; then
5153  for ac_prog in dumpbin "link -dump"
5154  do
5155    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5156set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158printf %s "checking for $ac_word... " >&6; }
5159if test ${ac_cv_prog_DUMPBIN+y}
5160then :
5161  printf %s "(cached) " >&6
5162else $as_nop
5163  if test -n "$DUMPBIN"; then
5164  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5165else
5166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167for as_dir in $PATH
5168do
5169  IFS=$as_save_IFS
5170  case $as_dir in #(((
5171    '') as_dir=./ ;;
5172    */) ;;
5173    *) as_dir=$as_dir/ ;;
5174  esac
5175    for ac_exec_ext in '' $ac_executable_extensions; do
5176  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5177    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5178    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5179    break 2
5180  fi
5181done
5182  done
5183IFS=$as_save_IFS
5184
5185fi
5186fi
5187DUMPBIN=$ac_cv_prog_DUMPBIN
5188if test -n "$DUMPBIN"; then
5189  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5190printf "%s\n" "$DUMPBIN" >&6; }
5191else
5192  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5193printf "%s\n" "no" >&6; }
5194fi
5195
5196
5197    test -n "$DUMPBIN" && break
5198  done
5199fi
5200if test -z "$DUMPBIN"; then
5201  ac_ct_DUMPBIN=$DUMPBIN
5202  for ac_prog in dumpbin "link -dump"
5203do
5204  # Extract the first word of "$ac_prog", so it can be a program name with args.
5205set dummy $ac_prog; ac_word=$2
5206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5207printf %s "checking for $ac_word... " >&6; }
5208if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5209then :
5210  printf %s "(cached) " >&6
5211else $as_nop
5212  if test -n "$ac_ct_DUMPBIN"; then
5213  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5214else
5215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216for as_dir in $PATH
5217do
5218  IFS=$as_save_IFS
5219  case $as_dir in #(((
5220    '') as_dir=./ ;;
5221    */) ;;
5222    *) as_dir=$as_dir/ ;;
5223  esac
5224    for ac_exec_ext in '' $ac_executable_extensions; do
5225  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5226    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5227    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5228    break 2
5229  fi
5230done
5231  done
5232IFS=$as_save_IFS
5233
5234fi
5235fi
5236ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5237if test -n "$ac_ct_DUMPBIN"; then
5238  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5239printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5240else
5241  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242printf "%s\n" "no" >&6; }
5243fi
5244
5245
5246  test -n "$ac_ct_DUMPBIN" && break
5247done
5248
5249  if test "x$ac_ct_DUMPBIN" = x; then
5250    DUMPBIN=":"
5251  else
5252    case $cross_compiling:$ac_tool_warned in
5253yes:)
5254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5255printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5256ac_tool_warned=yes ;;
5257esac
5258    DUMPBIN=$ac_ct_DUMPBIN
5259  fi
5260fi
5261
5262    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5263    *COFF*)
5264      DUMPBIN="$DUMPBIN -symbols -headers"
5265      ;;
5266    *)
5267      DUMPBIN=:
5268      ;;
5269    esac
5270  fi
5271
5272  if test : != "$DUMPBIN"; then
5273    NM=$DUMPBIN
5274  fi
5275fi
5276test -z "$NM" && NM=nm
5277
5278
5279
5280
5281
5282
5283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5284printf %s "checking the name lister ($NM) interface... " >&6; }
5285if test ${lt_cv_nm_interface+y}
5286then :
5287  printf %s "(cached) " >&6
5288else $as_nop
5289  lt_cv_nm_interface="BSD nm"
5290  echo "int some_variable = 0;" > conftest.$ac_ext
5291  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5292  (eval "$ac_compile" 2>conftest.err)
5293  cat conftest.err >&5
5294  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5295  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5296  cat conftest.err >&5
5297  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5298  cat conftest.out >&5
5299  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5300    lt_cv_nm_interface="MS dumpbin"
5301  fi
5302  rm -f conftest*
5303fi
5304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5305printf "%s\n" "$lt_cv_nm_interface" >&6; }
5306
5307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5308printf %s "checking whether ln -s works... " >&6; }
5309LN_S=$as_ln_s
5310if test "$LN_S" = "ln -s"; then
5311  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5312printf "%s\n" "yes" >&6; }
5313else
5314  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5315printf "%s\n" "no, using $LN_S" >&6; }
5316fi
5317
5318# find the maximum length of command line arguments
5319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5320printf %s "checking the maximum length of command line arguments... " >&6; }
5321if test ${lt_cv_sys_max_cmd_len+y}
5322then :
5323  printf %s "(cached) " >&6
5324else $as_nop
5325    i=0
5326  teststring=ABCD
5327
5328  case $build_os in
5329  msdosdjgpp*)
5330    # On DJGPP, this test can blow up pretty badly due to problems in libc
5331    # (any single argument exceeding 2000 bytes causes a buffer overrun
5332    # during glob expansion).  Even if it were fixed, the result of this
5333    # check would be larger than it should be.
5334    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5335    ;;
5336
5337  gnu*)
5338    # Under GNU Hurd, this test is not required because there is
5339    # no limit to the length of command line arguments.
5340    # Libtool will interpret -1 as no limit whatsoever
5341    lt_cv_sys_max_cmd_len=-1;
5342    ;;
5343
5344  cygwin* | mingw* | cegcc*)
5345    # On Win9x/ME, this test blows up -- it succeeds, but takes
5346    # about 5 minutes as the teststring grows exponentially.
5347    # Worse, since 9x/ME are not pre-emptively multitasking,
5348    # you end up with a "frozen" computer, even though with patience
5349    # the test eventually succeeds (with a max line length of 256k).
5350    # Instead, let's just punt: use the minimum linelength reported by
5351    # all of the supported platforms: 8192 (on NT/2K/XP).
5352    lt_cv_sys_max_cmd_len=8192;
5353    ;;
5354
5355  mint*)
5356    # On MiNT this can take a long time and run out of memory.
5357    lt_cv_sys_max_cmd_len=8192;
5358    ;;
5359
5360  amigaos*)
5361    # On AmigaOS with pdksh, this test takes hours, literally.
5362    # So we just punt and use a minimum line length of 8192.
5363    lt_cv_sys_max_cmd_len=8192;
5364    ;;
5365
5366  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5367    # This has been around since 386BSD, at least.  Likely further.
5368    if test -x /sbin/sysctl; then
5369      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5370    elif test -x /usr/sbin/sysctl; then
5371      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5372    else
5373      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5374    fi
5375    # And add a safety zone
5376    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5377    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5378    ;;
5379
5380  interix*)
5381    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5382    lt_cv_sys_max_cmd_len=196608
5383    ;;
5384
5385  os2*)
5386    # The test takes a long time on OS/2.
5387    lt_cv_sys_max_cmd_len=8192
5388    ;;
5389
5390  osf*)
5391    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5392    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5393    # nice to cause kernel panics so lets avoid the loop below.
5394    # First set a reasonable default.
5395    lt_cv_sys_max_cmd_len=16384
5396    #
5397    if test -x /sbin/sysconfig; then
5398      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5399        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5400      esac
5401    fi
5402    ;;
5403  sco3.2v5*)
5404    lt_cv_sys_max_cmd_len=102400
5405    ;;
5406  sysv5* | sco5v6* | sysv4.2uw2*)
5407    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5408    if test -n "$kargmax"; then
5409      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
5410    else
5411      lt_cv_sys_max_cmd_len=32768
5412    fi
5413    ;;
5414  *)
5415    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5416    if test -n "$lt_cv_sys_max_cmd_len" && \
5417       test undefined != "$lt_cv_sys_max_cmd_len"; then
5418      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5419      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5420    else
5421      # Make teststring a little bigger before we do anything with it.
5422      # a 1K string should be a reasonable start.
5423      for i in 1 2 3 4 5 6 7 8; do
5424        teststring=$teststring$teststring
5425      done
5426      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5427      # If test is not a shell built-in, we'll probably end up computing a
5428      # maximum length that is only half of the actual maximum length, but
5429      # we can't tell.
5430      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5431	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5432	      test 17 != "$i" # 1/2 MB should be enough
5433      do
5434        i=`expr $i + 1`
5435        teststring=$teststring$teststring
5436      done
5437      # Only check the string length outside the loop.
5438      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5439      teststring=
5440      # Add a significant safety factor because C++ compilers can tack on
5441      # massive amounts of additional arguments before passing them to the
5442      # linker.  It appears as though 1/2 is a usable value.
5443      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5444    fi
5445    ;;
5446  esac
5447
5448fi
5449
5450if test -n "$lt_cv_sys_max_cmd_len"; then
5451  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5452printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5453else
5454  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5455printf "%s\n" "none" >&6; }
5456fi
5457max_cmd_len=$lt_cv_sys_max_cmd_len
5458
5459
5460
5461
5462
5463
5464: ${CP="cp -f"}
5465: ${MV="mv -f"}
5466: ${RM="rm -f"}
5467
5468if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5469  lt_unset=unset
5470else
5471  lt_unset=false
5472fi
5473
5474
5475
5476
5477
5478# test EBCDIC or ASCII
5479case `echo X|tr X '\101'` in
5480 A) # ASCII based system
5481    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5482  lt_SP2NL='tr \040 \012'
5483  lt_NL2SP='tr \015\012 \040\040'
5484  ;;
5485 *) # EBCDIC based system
5486  lt_SP2NL='tr \100 \n'
5487  lt_NL2SP='tr \r\n \100\100'
5488  ;;
5489esac
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5500printf %s "checking how to convert $build file names to $host format... " >&6; }
5501if test ${lt_cv_to_host_file_cmd+y}
5502then :
5503  printf %s "(cached) " >&6
5504else $as_nop
5505  case $host in
5506  *-*-mingw* )
5507    case $build in
5508      *-*-mingw* ) # actually msys
5509        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5510        ;;
5511      *-*-cygwin* )
5512        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5513        ;;
5514      * ) # otherwise, assume *nix
5515        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5516        ;;
5517    esac
5518    ;;
5519  *-*-cygwin* )
5520    case $build in
5521      *-*-mingw* ) # actually msys
5522        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5523        ;;
5524      *-*-cygwin* )
5525        lt_cv_to_host_file_cmd=func_convert_file_noop
5526        ;;
5527      * ) # otherwise, assume *nix
5528        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5529        ;;
5530    esac
5531    ;;
5532  * ) # unhandled hosts (and "normal" native builds)
5533    lt_cv_to_host_file_cmd=func_convert_file_noop
5534    ;;
5535esac
5536
5537fi
5538
5539to_host_file_cmd=$lt_cv_to_host_file_cmd
5540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5541printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5542
5543
5544
5545
5546
5547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5548printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5549if test ${lt_cv_to_tool_file_cmd+y}
5550then :
5551  printf %s "(cached) " >&6
5552else $as_nop
5553  #assume ordinary cross tools, or native build.
5554lt_cv_to_tool_file_cmd=func_convert_file_noop
5555case $host in
5556  *-*-mingw* )
5557    case $build in
5558      *-*-mingw* ) # actually msys
5559        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5560        ;;
5561    esac
5562    ;;
5563esac
5564
5565fi
5566
5567to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5569printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5570
5571
5572
5573
5574
5575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5576printf %s "checking for $LD option to reload object files... " >&6; }
5577if test ${lt_cv_ld_reload_flag+y}
5578then :
5579  printf %s "(cached) " >&6
5580else $as_nop
5581  lt_cv_ld_reload_flag='-r'
5582fi
5583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5584printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5585reload_flag=$lt_cv_ld_reload_flag
5586case $reload_flag in
5587"" | " "*) ;;
5588*) reload_flag=" $reload_flag" ;;
5589esac
5590reload_cmds='$LD$reload_flag -o $output$reload_objs'
5591case $host_os in
5592  cygwin* | mingw* | pw32* | cegcc*)
5593    if test yes != "$GCC"; then
5594      reload_cmds=false
5595    fi
5596    ;;
5597  darwin*)
5598    if test yes = "$GCC"; then
5599      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5600    else
5601      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5602    fi
5603    ;;
5604esac
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614if test -n "$ac_tool_prefix"; then
5615  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5616set dummy ${ac_tool_prefix}file; ac_word=$2
5617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618printf %s "checking for $ac_word... " >&6; }
5619if test ${ac_cv_prog_FILECMD+y}
5620then :
5621  printf %s "(cached) " >&6
5622else $as_nop
5623  if test -n "$FILECMD"; then
5624  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5625else
5626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627for as_dir in $PATH
5628do
5629  IFS=$as_save_IFS
5630  case $as_dir in #(((
5631    '') as_dir=./ ;;
5632    */) ;;
5633    *) as_dir=$as_dir/ ;;
5634  esac
5635    for ac_exec_ext in '' $ac_executable_extensions; do
5636  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5637    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5638    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5639    break 2
5640  fi
5641done
5642  done
5643IFS=$as_save_IFS
5644
5645fi
5646fi
5647FILECMD=$ac_cv_prog_FILECMD
5648if test -n "$FILECMD"; then
5649  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5650printf "%s\n" "$FILECMD" >&6; }
5651else
5652  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653printf "%s\n" "no" >&6; }
5654fi
5655
5656
5657fi
5658if test -z "$ac_cv_prog_FILECMD"; then
5659  ac_ct_FILECMD=$FILECMD
5660  # Extract the first word of "file", so it can be a program name with args.
5661set dummy file; ac_word=$2
5662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5663printf %s "checking for $ac_word... " >&6; }
5664if test ${ac_cv_prog_ac_ct_FILECMD+y}
5665then :
5666  printf %s "(cached) " >&6
5667else $as_nop
5668  if test -n "$ac_ct_FILECMD"; then
5669  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5670else
5671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672for as_dir in $PATH
5673do
5674  IFS=$as_save_IFS
5675  case $as_dir in #(((
5676    '') as_dir=./ ;;
5677    */) ;;
5678    *) as_dir=$as_dir/ ;;
5679  esac
5680    for ac_exec_ext in '' $ac_executable_extensions; do
5681  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5682    ac_cv_prog_ac_ct_FILECMD="file"
5683    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5684    break 2
5685  fi
5686done
5687  done
5688IFS=$as_save_IFS
5689
5690fi
5691fi
5692ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5693if test -n "$ac_ct_FILECMD"; then
5694  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5695printf "%s\n" "$ac_ct_FILECMD" >&6; }
5696else
5697  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5698printf "%s\n" "no" >&6; }
5699fi
5700
5701  if test "x$ac_ct_FILECMD" = x; then
5702    FILECMD=":"
5703  else
5704    case $cross_compiling:$ac_tool_warned in
5705yes:)
5706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5707printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5708ac_tool_warned=yes ;;
5709esac
5710    FILECMD=$ac_ct_FILECMD
5711  fi
5712else
5713  FILECMD="$ac_cv_prog_FILECMD"
5714fi
5715
5716
5717
5718
5719
5720
5721
5722if test -n "$ac_tool_prefix"; then
5723  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5724set dummy ${ac_tool_prefix}objdump; ac_word=$2
5725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726printf %s "checking for $ac_word... " >&6; }
5727if test ${ac_cv_prog_OBJDUMP+y}
5728then :
5729  printf %s "(cached) " >&6
5730else $as_nop
5731  if test -n "$OBJDUMP"; then
5732  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5733else
5734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735for as_dir in $PATH
5736do
5737  IFS=$as_save_IFS
5738  case $as_dir in #(((
5739    '') as_dir=./ ;;
5740    */) ;;
5741    *) as_dir=$as_dir/ ;;
5742  esac
5743    for ac_exec_ext in '' $ac_executable_extensions; do
5744  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5745    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5746    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5747    break 2
5748  fi
5749done
5750  done
5751IFS=$as_save_IFS
5752
5753fi
5754fi
5755OBJDUMP=$ac_cv_prog_OBJDUMP
5756if test -n "$OBJDUMP"; then
5757  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5758printf "%s\n" "$OBJDUMP" >&6; }
5759else
5760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761printf "%s\n" "no" >&6; }
5762fi
5763
5764
5765fi
5766if test -z "$ac_cv_prog_OBJDUMP"; then
5767  ac_ct_OBJDUMP=$OBJDUMP
5768  # Extract the first word of "objdump", so it can be a program name with args.
5769set dummy objdump; ac_word=$2
5770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5771printf %s "checking for $ac_word... " >&6; }
5772if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5773then :
5774  printf %s "(cached) " >&6
5775else $as_nop
5776  if test -n "$ac_ct_OBJDUMP"; then
5777  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5778else
5779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780for as_dir in $PATH
5781do
5782  IFS=$as_save_IFS
5783  case $as_dir in #(((
5784    '') as_dir=./ ;;
5785    */) ;;
5786    *) as_dir=$as_dir/ ;;
5787  esac
5788    for ac_exec_ext in '' $ac_executable_extensions; do
5789  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5790    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5791    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5792    break 2
5793  fi
5794done
5795  done
5796IFS=$as_save_IFS
5797
5798fi
5799fi
5800ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5801if test -n "$ac_ct_OBJDUMP"; then
5802  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5803printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5804else
5805  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5806printf "%s\n" "no" >&6; }
5807fi
5808
5809  if test "x$ac_ct_OBJDUMP" = x; then
5810    OBJDUMP="false"
5811  else
5812    case $cross_compiling:$ac_tool_warned in
5813yes:)
5814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5815printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5816ac_tool_warned=yes ;;
5817esac
5818    OBJDUMP=$ac_ct_OBJDUMP
5819  fi
5820else
5821  OBJDUMP="$ac_cv_prog_OBJDUMP"
5822fi
5823
5824test -z "$OBJDUMP" && OBJDUMP=objdump
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5835printf %s "checking how to recognize dependent libraries... " >&6; }
5836if test ${lt_cv_deplibs_check_method+y}
5837then :
5838  printf %s "(cached) " >&6
5839else $as_nop
5840  lt_cv_file_magic_cmd='$MAGIC_CMD'
5841lt_cv_file_magic_test_file=
5842lt_cv_deplibs_check_method='unknown'
5843# Need to set the preceding variable on all platforms that support
5844# interlibrary dependencies.
5845# 'none' -- dependencies not supported.
5846# 'unknown' -- same as none, but documents that we really don't know.
5847# 'pass_all' -- all dependencies passed with no checks.
5848# 'test_compile' -- check by making test program.
5849# 'file_magic [[regex]]' -- check by looking for files in library path
5850# that responds to the $file_magic_cmd with a given extended regex.
5851# If you have 'file' or equivalent on your system and you're not sure
5852# whether 'pass_all' will *always* work, you probably want this one.
5853
5854case $host_os in
5855aix[4-9]*)
5856  lt_cv_deplibs_check_method=pass_all
5857  ;;
5858
5859beos*)
5860  lt_cv_deplibs_check_method=pass_all
5861  ;;
5862
5863bsdi[45]*)
5864  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5865  lt_cv_file_magic_cmd='$FILECMD -L'
5866  lt_cv_file_magic_test_file=/shlib/libc.so
5867  ;;
5868
5869cygwin*)
5870  # func_win32_libid is a shell function defined in ltmain.sh
5871  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5872  lt_cv_file_magic_cmd='func_win32_libid'
5873  ;;
5874
5875mingw* | pw32*)
5876  # Base MSYS/MinGW do not provide the 'file' command needed by
5877  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5878  # unless we find 'file', for example because we are cross-compiling.
5879  if ( file / ) >/dev/null 2>&1; then
5880    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5881    lt_cv_file_magic_cmd='func_win32_libid'
5882  else
5883    # Keep this pattern in sync with the one in func_win32_libid.
5884    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5885    lt_cv_file_magic_cmd='$OBJDUMP -f'
5886  fi
5887  ;;
5888
5889cegcc*)
5890  # use the weaker test based on 'objdump'. See mingw*.
5891  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5892  lt_cv_file_magic_cmd='$OBJDUMP -f'
5893  ;;
5894
5895darwin* | rhapsody*)
5896  lt_cv_deplibs_check_method=pass_all
5897  ;;
5898
5899freebsd* | dragonfly* | midnightbsd*)
5900  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5901    case $host_cpu in
5902    i*86 )
5903      # Not sure whether the presence of OpenBSD here was a mistake.
5904      # Let's accept both of them until this is cleared up.
5905      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5906      lt_cv_file_magic_cmd=$FILECMD
5907      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5908      ;;
5909    esac
5910  else
5911    lt_cv_deplibs_check_method=pass_all
5912  fi
5913  ;;
5914
5915haiku*)
5916  lt_cv_deplibs_check_method=pass_all
5917  ;;
5918
5919hpux10.20* | hpux11*)
5920  lt_cv_file_magic_cmd=$FILECMD
5921  case $host_cpu in
5922  ia64*)
5923    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5924    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5925    ;;
5926  hppa*64*)
5927    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]'
5928    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5929    ;;
5930  *)
5931    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5932    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5933    ;;
5934  esac
5935  ;;
5936
5937interix[3-9]*)
5938  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5939  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5940  ;;
5941
5942irix5* | irix6* | nonstopux*)
5943  case $LD in
5944  *-32|*"-32 ") libmagic=32-bit;;
5945  *-n32|*"-n32 ") libmagic=N32;;
5946  *-64|*"-64 ") libmagic=64-bit;;
5947  *) libmagic=never-match;;
5948  esac
5949  lt_cv_deplibs_check_method=pass_all
5950  ;;
5951
5952# This must be glibc/ELF.
5953linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5954  lt_cv_deplibs_check_method=pass_all
5955  ;;
5956
5957netbsd*)
5958  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5959    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5960  else
5961    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5962  fi
5963  ;;
5964
5965newos6*)
5966  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5967  lt_cv_file_magic_cmd=$FILECMD
5968  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5969  ;;
5970
5971*nto* | *qnx*)
5972  lt_cv_deplibs_check_method=pass_all
5973  ;;
5974
5975openbsd* | bitrig*)
5976  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5977    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5978  else
5979    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5980  fi
5981  ;;
5982
5983osf3* | osf4* | osf5*)
5984  lt_cv_deplibs_check_method=pass_all
5985  ;;
5986
5987rdos*)
5988  lt_cv_deplibs_check_method=pass_all
5989  ;;
5990
5991solaris*)
5992  lt_cv_deplibs_check_method=pass_all
5993  ;;
5994
5995sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5996  lt_cv_deplibs_check_method=pass_all
5997  ;;
5998
5999sysv4 | sysv4.3*)
6000  case $host_vendor in
6001  motorola)
6002    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]'
6003    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6004    ;;
6005  ncr)
6006    lt_cv_deplibs_check_method=pass_all
6007    ;;
6008  sequent)
6009    lt_cv_file_magic_cmd='/bin/file'
6010    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6011    ;;
6012  sni)
6013    lt_cv_file_magic_cmd='/bin/file'
6014    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6015    lt_cv_file_magic_test_file=/lib/libc.so
6016    ;;
6017  siemens)
6018    lt_cv_deplibs_check_method=pass_all
6019    ;;
6020  pc)
6021    lt_cv_deplibs_check_method=pass_all
6022    ;;
6023  esac
6024  ;;
6025
6026tpf*)
6027  lt_cv_deplibs_check_method=pass_all
6028  ;;
6029os2*)
6030  lt_cv_deplibs_check_method=pass_all
6031  ;;
6032esac
6033
6034fi
6035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6036printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6037
6038file_magic_glob=
6039want_nocaseglob=no
6040if test "$build" = "$host"; then
6041  case $host_os in
6042  mingw* | pw32*)
6043    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6044      want_nocaseglob=yes
6045    else
6046      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6047    fi
6048    ;;
6049  esac
6050fi
6051
6052file_magic_cmd=$lt_cv_file_magic_cmd
6053deplibs_check_method=$lt_cv_deplibs_check_method
6054test -z "$deplibs_check_method" && deplibs_check_method=unknown
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077if test -n "$ac_tool_prefix"; then
6078  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6079set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081printf %s "checking for $ac_word... " >&6; }
6082if test ${ac_cv_prog_DLLTOOL+y}
6083then :
6084  printf %s "(cached) " >&6
6085else $as_nop
6086  if test -n "$DLLTOOL"; then
6087  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6088else
6089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090for as_dir in $PATH
6091do
6092  IFS=$as_save_IFS
6093  case $as_dir in #(((
6094    '') as_dir=./ ;;
6095    */) ;;
6096    *) as_dir=$as_dir/ ;;
6097  esac
6098    for ac_exec_ext in '' $ac_executable_extensions; do
6099  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6100    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6101    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6102    break 2
6103  fi
6104done
6105  done
6106IFS=$as_save_IFS
6107
6108fi
6109fi
6110DLLTOOL=$ac_cv_prog_DLLTOOL
6111if test -n "$DLLTOOL"; then
6112  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6113printf "%s\n" "$DLLTOOL" >&6; }
6114else
6115  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6116printf "%s\n" "no" >&6; }
6117fi
6118
6119
6120fi
6121if test -z "$ac_cv_prog_DLLTOOL"; then
6122  ac_ct_DLLTOOL=$DLLTOOL
6123  # Extract the first word of "dlltool", so it can be a program name with args.
6124set dummy dlltool; ac_word=$2
6125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6126printf %s "checking for $ac_word... " >&6; }
6127if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6128then :
6129  printf %s "(cached) " >&6
6130else $as_nop
6131  if test -n "$ac_ct_DLLTOOL"; then
6132  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6133else
6134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135for as_dir in $PATH
6136do
6137  IFS=$as_save_IFS
6138  case $as_dir in #(((
6139    '') as_dir=./ ;;
6140    */) ;;
6141    *) as_dir=$as_dir/ ;;
6142  esac
6143    for ac_exec_ext in '' $ac_executable_extensions; do
6144  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6145    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6146    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6147    break 2
6148  fi
6149done
6150  done
6151IFS=$as_save_IFS
6152
6153fi
6154fi
6155ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6156if test -n "$ac_ct_DLLTOOL"; then
6157  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6158printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6159else
6160  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161printf "%s\n" "no" >&6; }
6162fi
6163
6164  if test "x$ac_ct_DLLTOOL" = x; then
6165    DLLTOOL="false"
6166  else
6167    case $cross_compiling:$ac_tool_warned in
6168yes:)
6169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6170printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6171ac_tool_warned=yes ;;
6172esac
6173    DLLTOOL=$ac_ct_DLLTOOL
6174  fi
6175else
6176  DLLTOOL="$ac_cv_prog_DLLTOOL"
6177fi
6178
6179test -z "$DLLTOOL" && DLLTOOL=dlltool
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6191printf %s "checking how to associate runtime and link libraries... " >&6; }
6192if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6193then :
6194  printf %s "(cached) " >&6
6195else $as_nop
6196  lt_cv_sharedlib_from_linklib_cmd='unknown'
6197
6198case $host_os in
6199cygwin* | mingw* | pw32* | cegcc*)
6200  # two different shell functions defined in ltmain.sh;
6201  # decide which one to use based on capabilities of $DLLTOOL
6202  case `$DLLTOOL --help 2>&1` in
6203  *--identify-strict*)
6204    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6205    ;;
6206  *)
6207    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6208    ;;
6209  esac
6210  ;;
6211*)
6212  # fallback: assume linklib IS sharedlib
6213  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6214  ;;
6215esac
6216
6217fi
6218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6219printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6220sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6221test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6222
6223
6224
6225
6226
6227
6228
6229
6230if test -n "$ac_tool_prefix"; then
6231  for ac_prog in ar
6232  do
6233    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6234set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6236printf %s "checking for $ac_word... " >&6; }
6237if test ${ac_cv_prog_AR+y}
6238then :
6239  printf %s "(cached) " >&6
6240else $as_nop
6241  if test -n "$AR"; then
6242  ac_cv_prog_AR="$AR" # Let the user override the test.
6243else
6244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245for as_dir in $PATH
6246do
6247  IFS=$as_save_IFS
6248  case $as_dir in #(((
6249    '') as_dir=./ ;;
6250    */) ;;
6251    *) as_dir=$as_dir/ ;;
6252  esac
6253    for ac_exec_ext in '' $ac_executable_extensions; do
6254  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6255    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6256    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6257    break 2
6258  fi
6259done
6260  done
6261IFS=$as_save_IFS
6262
6263fi
6264fi
6265AR=$ac_cv_prog_AR
6266if test -n "$AR"; then
6267  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6268printf "%s\n" "$AR" >&6; }
6269else
6270  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6271printf "%s\n" "no" >&6; }
6272fi
6273
6274
6275    test -n "$AR" && break
6276  done
6277fi
6278if test -z "$AR"; then
6279  ac_ct_AR=$AR
6280  for ac_prog in ar
6281do
6282  # Extract the first word of "$ac_prog", so it can be a program name with args.
6283set dummy $ac_prog; ac_word=$2
6284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6285printf %s "checking for $ac_word... " >&6; }
6286if test ${ac_cv_prog_ac_ct_AR+y}
6287then :
6288  printf %s "(cached) " >&6
6289else $as_nop
6290  if test -n "$ac_ct_AR"; then
6291  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6292else
6293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294for as_dir in $PATH
6295do
6296  IFS=$as_save_IFS
6297  case $as_dir in #(((
6298    '') as_dir=./ ;;
6299    */) ;;
6300    *) as_dir=$as_dir/ ;;
6301  esac
6302    for ac_exec_ext in '' $ac_executable_extensions; do
6303  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6304    ac_cv_prog_ac_ct_AR="$ac_prog"
6305    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6306    break 2
6307  fi
6308done
6309  done
6310IFS=$as_save_IFS
6311
6312fi
6313fi
6314ac_ct_AR=$ac_cv_prog_ac_ct_AR
6315if test -n "$ac_ct_AR"; then
6316  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6317printf "%s\n" "$ac_ct_AR" >&6; }
6318else
6319  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320printf "%s\n" "no" >&6; }
6321fi
6322
6323
6324  test -n "$ac_ct_AR" && break
6325done
6326
6327  if test "x$ac_ct_AR" = x; then
6328    AR="false"
6329  else
6330    case $cross_compiling:$ac_tool_warned in
6331yes:)
6332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6333printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6334ac_tool_warned=yes ;;
6335esac
6336    AR=$ac_ct_AR
6337  fi
6338fi
6339
6340: ${AR=ar}
6341
6342
6343
6344
6345
6346
6347# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6348# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6349# higher priority because thats what people were doing historically (setting
6350# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6351# variable obsoleted/removed.
6352
6353test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6354lt_ar_flags=$AR_FLAGS
6355
6356
6357
6358
6359
6360
6361# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6362# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6363
6364
6365
6366
6367
6368
6369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6370printf %s "checking for archiver @FILE support... " >&6; }
6371if test ${lt_cv_ar_at_file+y}
6372then :
6373  printf %s "(cached) " >&6
6374else $as_nop
6375  lt_cv_ar_at_file=no
6376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377/* end confdefs.h.  */
6378
6379int
6380main (void)
6381{
6382
6383  ;
6384  return 0;
6385}
6386_ACEOF
6387if ac_fn_c_try_compile "$LINENO"
6388then :
6389  echo conftest.$ac_objext > conftest.lst
6390      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6391      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6392  (eval $lt_ar_try) 2>&5
6393  ac_status=$?
6394  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6395  test $ac_status = 0; }
6396      if test 0 -eq "$ac_status"; then
6397	# Ensure the archiver fails upon bogus file names.
6398	rm -f conftest.$ac_objext libconftest.a
6399	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6400  (eval $lt_ar_try) 2>&5
6401  ac_status=$?
6402  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6403  test $ac_status = 0; }
6404	if test 0 -ne "$ac_status"; then
6405          lt_cv_ar_at_file=@
6406        fi
6407      fi
6408      rm -f conftest.* libconftest.a
6409
6410fi
6411rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6412
6413fi
6414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6415printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6416
6417if test no = "$lt_cv_ar_at_file"; then
6418  archiver_list_spec=
6419else
6420  archiver_list_spec=$lt_cv_ar_at_file
6421fi
6422
6423
6424
6425
6426
6427
6428
6429if test -n "$ac_tool_prefix"; then
6430  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6431set dummy ${ac_tool_prefix}strip; ac_word=$2
6432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433printf %s "checking for $ac_word... " >&6; }
6434if test ${ac_cv_prog_STRIP+y}
6435then :
6436  printf %s "(cached) " >&6
6437else $as_nop
6438  if test -n "$STRIP"; then
6439  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6440else
6441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442for as_dir in $PATH
6443do
6444  IFS=$as_save_IFS
6445  case $as_dir in #(((
6446    '') as_dir=./ ;;
6447    */) ;;
6448    *) as_dir=$as_dir/ ;;
6449  esac
6450    for ac_exec_ext in '' $ac_executable_extensions; do
6451  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6452    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6453    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6454    break 2
6455  fi
6456done
6457  done
6458IFS=$as_save_IFS
6459
6460fi
6461fi
6462STRIP=$ac_cv_prog_STRIP
6463if test -n "$STRIP"; then
6464  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6465printf "%s\n" "$STRIP" >&6; }
6466else
6467  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6468printf "%s\n" "no" >&6; }
6469fi
6470
6471
6472fi
6473if test -z "$ac_cv_prog_STRIP"; then
6474  ac_ct_STRIP=$STRIP
6475  # Extract the first word of "strip", so it can be a program name with args.
6476set dummy strip; ac_word=$2
6477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6478printf %s "checking for $ac_word... " >&6; }
6479if test ${ac_cv_prog_ac_ct_STRIP+y}
6480then :
6481  printf %s "(cached) " >&6
6482else $as_nop
6483  if test -n "$ac_ct_STRIP"; then
6484  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6485else
6486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487for as_dir in $PATH
6488do
6489  IFS=$as_save_IFS
6490  case $as_dir in #(((
6491    '') as_dir=./ ;;
6492    */) ;;
6493    *) as_dir=$as_dir/ ;;
6494  esac
6495    for ac_exec_ext in '' $ac_executable_extensions; do
6496  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6497    ac_cv_prog_ac_ct_STRIP="strip"
6498    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6499    break 2
6500  fi
6501done
6502  done
6503IFS=$as_save_IFS
6504
6505fi
6506fi
6507ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6508if test -n "$ac_ct_STRIP"; then
6509  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6510printf "%s\n" "$ac_ct_STRIP" >&6; }
6511else
6512  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513printf "%s\n" "no" >&6; }
6514fi
6515
6516  if test "x$ac_ct_STRIP" = x; then
6517    STRIP=":"
6518  else
6519    case $cross_compiling:$ac_tool_warned in
6520yes:)
6521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6522printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6523ac_tool_warned=yes ;;
6524esac
6525    STRIP=$ac_ct_STRIP
6526  fi
6527else
6528  STRIP="$ac_cv_prog_STRIP"
6529fi
6530
6531test -z "$STRIP" && STRIP=:
6532
6533
6534
6535
6536
6537
6538if test -n "$ac_tool_prefix"; then
6539  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6540set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542printf %s "checking for $ac_word... " >&6; }
6543if test ${ac_cv_prog_RANLIB+y}
6544then :
6545  printf %s "(cached) " >&6
6546else $as_nop
6547  if test -n "$RANLIB"; then
6548  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6549else
6550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551for as_dir in $PATH
6552do
6553  IFS=$as_save_IFS
6554  case $as_dir in #(((
6555    '') as_dir=./ ;;
6556    */) ;;
6557    *) as_dir=$as_dir/ ;;
6558  esac
6559    for ac_exec_ext in '' $ac_executable_extensions; do
6560  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6561    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6562    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6563    break 2
6564  fi
6565done
6566  done
6567IFS=$as_save_IFS
6568
6569fi
6570fi
6571RANLIB=$ac_cv_prog_RANLIB
6572if test -n "$RANLIB"; then
6573  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6574printf "%s\n" "$RANLIB" >&6; }
6575else
6576  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577printf "%s\n" "no" >&6; }
6578fi
6579
6580
6581fi
6582if test -z "$ac_cv_prog_RANLIB"; then
6583  ac_ct_RANLIB=$RANLIB
6584  # Extract the first word of "ranlib", so it can be a program name with args.
6585set dummy ranlib; ac_word=$2
6586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6587printf %s "checking for $ac_word... " >&6; }
6588if test ${ac_cv_prog_ac_ct_RANLIB+y}
6589then :
6590  printf %s "(cached) " >&6
6591else $as_nop
6592  if test -n "$ac_ct_RANLIB"; then
6593  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6594else
6595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596for as_dir in $PATH
6597do
6598  IFS=$as_save_IFS
6599  case $as_dir in #(((
6600    '') as_dir=./ ;;
6601    */) ;;
6602    *) as_dir=$as_dir/ ;;
6603  esac
6604    for ac_exec_ext in '' $ac_executable_extensions; do
6605  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6606    ac_cv_prog_ac_ct_RANLIB="ranlib"
6607    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6608    break 2
6609  fi
6610done
6611  done
6612IFS=$as_save_IFS
6613
6614fi
6615fi
6616ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6617if test -n "$ac_ct_RANLIB"; then
6618  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6619printf "%s\n" "$ac_ct_RANLIB" >&6; }
6620else
6621  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6622printf "%s\n" "no" >&6; }
6623fi
6624
6625  if test "x$ac_ct_RANLIB" = x; then
6626    RANLIB=":"
6627  else
6628    case $cross_compiling:$ac_tool_warned in
6629yes:)
6630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6631printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6632ac_tool_warned=yes ;;
6633esac
6634    RANLIB=$ac_ct_RANLIB
6635  fi
6636else
6637  RANLIB="$ac_cv_prog_RANLIB"
6638fi
6639
6640test -z "$RANLIB" && RANLIB=:
6641
6642
6643
6644
6645
6646
6647# Determine commands to create old-style static archives.
6648old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6649old_postinstall_cmds='chmod 644 $oldlib'
6650old_postuninstall_cmds=
6651
6652if test -n "$RANLIB"; then
6653  case $host_os in
6654  bitrig* | openbsd*)
6655    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6656    ;;
6657  *)
6658    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6659    ;;
6660  esac
6661  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6662fi
6663
6664case $host_os in
6665  darwin*)
6666    lock_old_archive_extraction=yes ;;
6667  *)
6668    lock_old_archive_extraction=no ;;
6669esac
6670
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# If no C compiler was specified, use CC.
6710LTCC=${LTCC-"$CC"}
6711
6712# If no C compiler flags were specified, use CFLAGS.
6713LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6714
6715# Allow CC to be a program name with arguments.
6716compiler=$CC
6717
6718
6719# Check for command to grab the raw symbol name followed by C symbol from nm.
6720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6721printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6722if test ${lt_cv_sys_global_symbol_pipe+y}
6723then :
6724  printf %s "(cached) " >&6
6725else $as_nop
6726
6727# These are sane defaults that work on at least a few old systems.
6728# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6729
6730# Character class describing NM global symbol codes.
6731symcode='[BCDEGRST]'
6732
6733# Regexp to match symbols that can be accessed directly from C.
6734sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6735
6736# Define system-specific variables.
6737case $host_os in
6738aix*)
6739  symcode='[BCDT]'
6740  ;;
6741cygwin* | mingw* | pw32* | cegcc*)
6742  symcode='[ABCDGISTW]'
6743  ;;
6744hpux*)
6745  if test ia64 = "$host_cpu"; then
6746    symcode='[ABCDEGRST]'
6747  fi
6748  ;;
6749irix* | nonstopux*)
6750  symcode='[BCDEGRST]'
6751  ;;
6752osf*)
6753  symcode='[BCDEGQRST]'
6754  ;;
6755solaris*)
6756  symcode='[BDRT]'
6757  ;;
6758sco3.2v5*)
6759  symcode='[DT]'
6760  ;;
6761sysv4.2uw2*)
6762  symcode='[DT]'
6763  ;;
6764sysv5* | sco5v6* | unixware* | OpenUNIX*)
6765  symcode='[ABDT]'
6766  ;;
6767sysv4)
6768  symcode='[DFNSTU]'
6769  ;;
6770esac
6771
6772# If we're using GNU nm, then use its standard symbol codes.
6773case `$NM -V 2>&1` in
6774*GNU* | *'with BFD'*)
6775  symcode='[ABCDGIRSTW]' ;;
6776esac
6777
6778if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6779  # Gets list of data symbols to import.
6780  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6781  # Adjust the below global symbol transforms to fixup imported variables.
6782  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6783  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6784  lt_c_name_lib_hook="\
6785  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6786  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6787else
6788  # Disable hooks by default.
6789  lt_cv_sys_global_symbol_to_import=
6790  lt_cdecl_hook=
6791  lt_c_name_hook=
6792  lt_c_name_lib_hook=
6793fi
6794
6795# Transform an extracted symbol line into a proper C declaration.
6796# Some systems (esp. on ia64) link data and code symbols differently,
6797# so use this general approach.
6798lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6799$lt_cdecl_hook\
6800" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6801" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6802
6803# Transform an extracted symbol line into symbol name and symbol address
6804lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6805$lt_c_name_hook\
6806" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6807" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6808
6809# Transform an extracted symbol line into symbol name with lib prefix and
6810# symbol address.
6811lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6812$lt_c_name_lib_hook\
6813" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6814" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6815" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6816
6817# Handle CRLF in mingw tool chain
6818opt_cr=
6819case $build_os in
6820mingw*)
6821  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6822  ;;
6823esac
6824
6825# Try without a prefix underscore, then with it.
6826for ac_symprfx in "" "_"; do
6827
6828  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6829  symxfrm="\\1 $ac_symprfx\\2 \\2"
6830
6831  # Write the raw and C identifiers.
6832  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6833    # Fake it for dumpbin and say T for any non-static function,
6834    # D for any global variable and I for any imported variable.
6835    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6836    # which start with @ or ?.
6837    lt_cv_sys_global_symbol_pipe="$AWK '"\
6838"     {last_section=section; section=\$ 3};"\
6839"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6840"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6841"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6842"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6843"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6844"     \$ 0!~/External *\|/{next};"\
6845"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6846"     {if(hide[section]) next};"\
6847"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6848"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6849"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6850"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6851"     ' prfx=^$ac_symprfx"
6852  else
6853    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6854  fi
6855  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6856
6857  # Check to see that the pipe works correctly.
6858  pipe_works=no
6859
6860  rm -f conftest*
6861  cat > conftest.$ac_ext <<_LT_EOF
6862#ifdef __cplusplus
6863extern "C" {
6864#endif
6865char nm_test_var;
6866void nm_test_func(void);
6867void nm_test_func(void){}
6868#ifdef __cplusplus
6869}
6870#endif
6871int main(){nm_test_var='a';nm_test_func();return(0);}
6872_LT_EOF
6873
6874  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6875  (eval $ac_compile) 2>&5
6876  ac_status=$?
6877  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6878  test $ac_status = 0; }; then
6879    # Now try to grab the symbols.
6880    nlist=conftest.nm
6881    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6882  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6883  ac_status=$?
6884  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6885  test $ac_status = 0; } && test -s "$nlist"; then
6886      # Try sorting and uniquifying the output.
6887      if sort "$nlist" | uniq > "$nlist"T; then
6888	mv -f "$nlist"T "$nlist"
6889      else
6890	rm -f "$nlist"T
6891      fi
6892
6893      # Make sure that we snagged all the symbols we need.
6894      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6895	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6896	  cat <<_LT_EOF > conftest.$ac_ext
6897/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6898#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6899/* DATA imports from DLLs on WIN32 can't be const, because runtime
6900   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6901# define LT_DLSYM_CONST
6902#elif defined __osf__
6903/* This system does not cope well with relocations in const data.  */
6904# define LT_DLSYM_CONST
6905#else
6906# define LT_DLSYM_CONST const
6907#endif
6908
6909#ifdef __cplusplus
6910extern "C" {
6911#endif
6912
6913_LT_EOF
6914	  # Now generate the symbol file.
6915	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6916
6917	  cat <<_LT_EOF >> conftest.$ac_ext
6918
6919/* The mapping between symbol names and symbols.  */
6920LT_DLSYM_CONST struct {
6921  const char *name;
6922  void       *address;
6923}
6924lt__PROGRAM__LTX_preloaded_symbols[] =
6925{
6926  { "@PROGRAM@", (void *) 0 },
6927_LT_EOF
6928	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6929	  cat <<\_LT_EOF >> conftest.$ac_ext
6930  {0, (void *) 0}
6931};
6932
6933/* This works around a problem in FreeBSD linker */
6934#ifdef FREEBSD_WORKAROUND
6935static const void *lt_preloaded_setup() {
6936  return lt__PROGRAM__LTX_preloaded_symbols;
6937}
6938#endif
6939
6940#ifdef __cplusplus
6941}
6942#endif
6943_LT_EOF
6944	  # Now try linking the two files.
6945	  mv conftest.$ac_objext conftstm.$ac_objext
6946	  lt_globsym_save_LIBS=$LIBS
6947	  lt_globsym_save_CFLAGS=$CFLAGS
6948	  LIBS=conftstm.$ac_objext
6949	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6950	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6951  (eval $ac_link) 2>&5
6952  ac_status=$?
6953  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6954  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6955	    pipe_works=yes
6956	  fi
6957	  LIBS=$lt_globsym_save_LIBS
6958	  CFLAGS=$lt_globsym_save_CFLAGS
6959	else
6960	  echo "cannot find nm_test_func in $nlist" >&5
6961	fi
6962      else
6963	echo "cannot find nm_test_var in $nlist" >&5
6964      fi
6965    else
6966      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6967    fi
6968  else
6969    echo "$progname: failed program was:" >&5
6970    cat conftest.$ac_ext >&5
6971  fi
6972  rm -rf conftest* conftst*
6973
6974  # Do not use the global_symbol_pipe unless it works.
6975  if test yes = "$pipe_works"; then
6976    break
6977  else
6978    lt_cv_sys_global_symbol_pipe=
6979  fi
6980done
6981
6982fi
6983
6984if test -z "$lt_cv_sys_global_symbol_pipe"; then
6985  lt_cv_sys_global_symbol_to_cdecl=
6986fi
6987if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6988  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6989printf "%s\n" "failed" >&6; }
6990else
6991  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6992printf "%s\n" "ok" >&6; }
6993fi
6994
6995# Response file support.
6996if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6997  nm_file_list_spec='@'
6998elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6999  nm_file_list_spec='@'
7000fi
7001
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{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7039printf %s "checking for sysroot... " >&6; }
7040
7041# Check whether --with-sysroot was given.
7042if test ${with_sysroot+y}
7043then :
7044  withval=$with_sysroot;
7045else $as_nop
7046  with_sysroot=no
7047fi
7048
7049
7050lt_sysroot=
7051case $with_sysroot in #(
7052 yes)
7053   if test yes = "$GCC"; then
7054     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7055   fi
7056   ;; #(
7057 /*)
7058   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7059   ;; #(
7060 no|'')
7061   ;; #(
7062 *)
7063   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7064printf "%s\n" "$with_sysroot" >&6; }
7065   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7066   ;;
7067esac
7068
7069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7070printf "%s\n" "${lt_sysroot:-no}" >&6; }
7071
7072
7073
7074
7075
7076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7077printf %s "checking for a working dd... " >&6; }
7078if test ${ac_cv_path_lt_DD+y}
7079then :
7080  printf %s "(cached) " >&6
7081else $as_nop
7082  printf 0123456789abcdef0123456789abcdef >conftest.i
7083cat conftest.i conftest.i >conftest2.i
7084: ${lt_DD:=$DD}
7085if test -z "$lt_DD"; then
7086  ac_path_lt_DD_found=false
7087  # Loop through the user's path and test for each of PROGNAME-LIST
7088  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089for as_dir in $PATH
7090do
7091  IFS=$as_save_IFS
7092  case $as_dir in #(((
7093    '') as_dir=./ ;;
7094    */) ;;
7095    *) as_dir=$as_dir/ ;;
7096  esac
7097    for ac_prog in dd
7098   do
7099    for ac_exec_ext in '' $ac_executable_extensions; do
7100      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7101      as_fn_executable_p "$ac_path_lt_DD" || continue
7102if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7103  cmp -s conftest.i conftest.out \
7104  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7105fi
7106      $ac_path_lt_DD_found && break 3
7107    done
7108  done
7109  done
7110IFS=$as_save_IFS
7111  if test -z "$ac_cv_path_lt_DD"; then
7112    :
7113  fi
7114else
7115  ac_cv_path_lt_DD=$lt_DD
7116fi
7117
7118rm -f conftest.i conftest2.i conftest.out
7119fi
7120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7121printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7122
7123
7124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7125printf %s "checking how to truncate binary pipes... " >&6; }
7126if test ${lt_cv_truncate_bin+y}
7127then :
7128  printf %s "(cached) " >&6
7129else $as_nop
7130  printf 0123456789abcdef0123456789abcdef >conftest.i
7131cat conftest.i conftest.i >conftest2.i
7132lt_cv_truncate_bin=
7133if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7134  cmp -s conftest.i conftest.out \
7135  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7136fi
7137rm -f conftest.i conftest2.i conftest.out
7138test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7139fi
7140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7141printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7142
7143
7144
7145
7146
7147
7148
7149# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7150func_cc_basename ()
7151{
7152    for cc_temp in $*""; do
7153      case $cc_temp in
7154        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7155        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7156        \-*) ;;
7157        *) break;;
7158      esac
7159    done
7160    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7161}
7162
7163# Check whether --enable-libtool-lock was given.
7164if test ${enable_libtool_lock+y}
7165then :
7166  enableval=$enable_libtool_lock;
7167fi
7168
7169test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7170
7171# Some flags need to be propagated to the compiler or linker for good
7172# libtool support.
7173case $host in
7174ia64-*-hpux*)
7175  # Find out what ABI is being produced by ac_compile, and set mode
7176  # options accordingly.
7177  echo 'int i;' > conftest.$ac_ext
7178  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7179  (eval $ac_compile) 2>&5
7180  ac_status=$?
7181  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7182  test $ac_status = 0; }; then
7183    case `$FILECMD conftest.$ac_objext` in
7184      *ELF-32*)
7185	HPUX_IA64_MODE=32
7186	;;
7187      *ELF-64*)
7188	HPUX_IA64_MODE=64
7189	;;
7190    esac
7191  fi
7192  rm -rf conftest*
7193  ;;
7194*-*-irix6*)
7195  # Find out what ABI is being produced by ac_compile, and set linker
7196  # options accordingly.
7197  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7198  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7199  (eval $ac_compile) 2>&5
7200  ac_status=$?
7201  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7202  test $ac_status = 0; }; then
7203    if test yes = "$lt_cv_prog_gnu_ld"; then
7204      case `$FILECMD conftest.$ac_objext` in
7205	*32-bit*)
7206	  LD="${LD-ld} -melf32bsmip"
7207	  ;;
7208	*N32*)
7209	  LD="${LD-ld} -melf32bmipn32"
7210	  ;;
7211	*64-bit*)
7212	  LD="${LD-ld} -melf64bmip"
7213	;;
7214      esac
7215    else
7216      case `$FILECMD conftest.$ac_objext` in
7217	*32-bit*)
7218	  LD="${LD-ld} -32"
7219	  ;;
7220	*N32*)
7221	  LD="${LD-ld} -n32"
7222	  ;;
7223	*64-bit*)
7224	  LD="${LD-ld} -64"
7225	  ;;
7226      esac
7227    fi
7228  fi
7229  rm -rf conftest*
7230  ;;
7231
7232mips64*-*linux*)
7233  # Find out what ABI is being produced by ac_compile, and set linker
7234  # options accordingly.
7235  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7236  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7237  (eval $ac_compile) 2>&5
7238  ac_status=$?
7239  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7240  test $ac_status = 0; }; then
7241    emul=elf
7242    case `$FILECMD conftest.$ac_objext` in
7243      *32-bit*)
7244	emul="${emul}32"
7245	;;
7246      *64-bit*)
7247	emul="${emul}64"
7248	;;
7249    esac
7250    case `$FILECMD conftest.$ac_objext` in
7251      *MSB*)
7252	emul="${emul}btsmip"
7253	;;
7254      *LSB*)
7255	emul="${emul}ltsmip"
7256	;;
7257    esac
7258    case `$FILECMD conftest.$ac_objext` in
7259      *N32*)
7260	emul="${emul}n32"
7261	;;
7262    esac
7263    LD="${LD-ld} -m $emul"
7264  fi
7265  rm -rf conftest*
7266  ;;
7267
7268x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7269s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7270  # Find out what ABI is being produced by ac_compile, and set linker
7271  # options accordingly.  Note that the listed cases only cover the
7272  # situations where additional linker options are needed (such as when
7273  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7274  # vice versa); the common cases where no linker options are needed do
7275  # not appear in the list.
7276  echo 'int i;' > conftest.$ac_ext
7277  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7278  (eval $ac_compile) 2>&5
7279  ac_status=$?
7280  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7281  test $ac_status = 0; }; then
7282    case `$FILECMD conftest.o` in
7283      *32-bit*)
7284	case $host in
7285	  x86_64-*kfreebsd*-gnu)
7286	    LD="${LD-ld} -m elf_i386_fbsd"
7287	    ;;
7288	  x86_64-*linux*)
7289	    case `$FILECMD conftest.o` in
7290	      *x86-64*)
7291		LD="${LD-ld} -m elf32_x86_64"
7292		;;
7293	      *)
7294		LD="${LD-ld} -m elf_i386"
7295		;;
7296	    esac
7297	    ;;
7298	  powerpc64le-*linux*)
7299	    LD="${LD-ld} -m elf32lppclinux"
7300	    ;;
7301	  powerpc64-*linux*)
7302	    LD="${LD-ld} -m elf32ppclinux"
7303	    ;;
7304	  s390x-*linux*)
7305	    LD="${LD-ld} -m elf_s390"
7306	    ;;
7307	  sparc64-*linux*)
7308	    LD="${LD-ld} -m elf32_sparc"
7309	    ;;
7310	esac
7311	;;
7312      *64-bit*)
7313	case $host in
7314	  x86_64-*kfreebsd*-gnu)
7315	    LD="${LD-ld} -m elf_x86_64_fbsd"
7316	    ;;
7317	  x86_64-*linux*)
7318	    LD="${LD-ld} -m elf_x86_64"
7319	    ;;
7320	  powerpcle-*linux*)
7321	    LD="${LD-ld} -m elf64lppc"
7322	    ;;
7323	  powerpc-*linux*)
7324	    LD="${LD-ld} -m elf64ppc"
7325	    ;;
7326	  s390*-*linux*|s390*-*tpf*)
7327	    LD="${LD-ld} -m elf64_s390"
7328	    ;;
7329	  sparc*-*linux*)
7330	    LD="${LD-ld} -m elf64_sparc"
7331	    ;;
7332	esac
7333	;;
7334    esac
7335  fi
7336  rm -rf conftest*
7337  ;;
7338
7339*-*-sco3.2v5*)
7340  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7341  SAVE_CFLAGS=$CFLAGS
7342  CFLAGS="$CFLAGS -belf"
7343  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7344printf %s "checking whether the C compiler needs -belf... " >&6; }
7345if test ${lt_cv_cc_needs_belf+y}
7346then :
7347  printf %s "(cached) " >&6
7348else $as_nop
7349  ac_ext=c
7350ac_cpp='$CPP $CPPFLAGS'
7351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7353ac_compiler_gnu=$ac_cv_c_compiler_gnu
7354
7355     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356/* end confdefs.h.  */
7357
7358int
7359main (void)
7360{
7361
7362  ;
7363  return 0;
7364}
7365_ACEOF
7366if ac_fn_c_try_link "$LINENO"
7367then :
7368  lt_cv_cc_needs_belf=yes
7369else $as_nop
7370  lt_cv_cc_needs_belf=no
7371fi
7372rm -f core conftest.err conftest.$ac_objext conftest.beam \
7373    conftest$ac_exeext conftest.$ac_ext
7374     ac_ext=c
7375ac_cpp='$CPP $CPPFLAGS'
7376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378ac_compiler_gnu=$ac_cv_c_compiler_gnu
7379
7380fi
7381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7382printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7383  if test yes != "$lt_cv_cc_needs_belf"; then
7384    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7385    CFLAGS=$SAVE_CFLAGS
7386  fi
7387  ;;
7388*-*solaris*)
7389  # Find out what ABI is being produced by ac_compile, and set linker
7390  # options accordingly.
7391  echo 'int i;' > conftest.$ac_ext
7392  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7393  (eval $ac_compile) 2>&5
7394  ac_status=$?
7395  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7396  test $ac_status = 0; }; then
7397    case `$FILECMD conftest.o` in
7398    *64-bit*)
7399      case $lt_cv_prog_gnu_ld in
7400      yes*)
7401        case $host in
7402        i?86-*-solaris*|x86_64-*-solaris*)
7403          LD="${LD-ld} -m elf_x86_64"
7404          ;;
7405        sparc*-*-solaris*)
7406          LD="${LD-ld} -m elf64_sparc"
7407          ;;
7408        esac
7409        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7410        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7411          LD=${LD-ld}_sol2
7412        fi
7413        ;;
7414      *)
7415	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7416	  LD="${LD-ld} -64"
7417	fi
7418	;;
7419      esac
7420      ;;
7421    esac
7422  fi
7423  rm -rf conftest*
7424  ;;
7425esac
7426
7427need_locks=$enable_libtool_lock
7428
7429if test -n "$ac_tool_prefix"; then
7430  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7431set dummy ${ac_tool_prefix}mt; ac_word=$2
7432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7433printf %s "checking for $ac_word... " >&6; }
7434if test ${ac_cv_prog_MANIFEST_TOOL+y}
7435then :
7436  printf %s "(cached) " >&6
7437else $as_nop
7438  if test -n "$MANIFEST_TOOL"; then
7439  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7440else
7441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442for as_dir in $PATH
7443do
7444  IFS=$as_save_IFS
7445  case $as_dir in #(((
7446    '') as_dir=./ ;;
7447    */) ;;
7448    *) as_dir=$as_dir/ ;;
7449  esac
7450    for ac_exec_ext in '' $ac_executable_extensions; do
7451  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7452    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7453    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7454    break 2
7455  fi
7456done
7457  done
7458IFS=$as_save_IFS
7459
7460fi
7461fi
7462MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7463if test -n "$MANIFEST_TOOL"; then
7464  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7465printf "%s\n" "$MANIFEST_TOOL" >&6; }
7466else
7467  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468printf "%s\n" "no" >&6; }
7469fi
7470
7471
7472fi
7473if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7474  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7475  # Extract the first word of "mt", so it can be a program name with args.
7476set dummy mt; ac_word=$2
7477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7478printf %s "checking for $ac_word... " >&6; }
7479if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7480then :
7481  printf %s "(cached) " >&6
7482else $as_nop
7483  if test -n "$ac_ct_MANIFEST_TOOL"; then
7484  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7485else
7486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487for as_dir in $PATH
7488do
7489  IFS=$as_save_IFS
7490  case $as_dir in #(((
7491    '') as_dir=./ ;;
7492    */) ;;
7493    *) as_dir=$as_dir/ ;;
7494  esac
7495    for ac_exec_ext in '' $ac_executable_extensions; do
7496  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7497    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7498    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7499    break 2
7500  fi
7501done
7502  done
7503IFS=$as_save_IFS
7504
7505fi
7506fi
7507ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7508if test -n "$ac_ct_MANIFEST_TOOL"; then
7509  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7510printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7511else
7512  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513printf "%s\n" "no" >&6; }
7514fi
7515
7516  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7517    MANIFEST_TOOL=":"
7518  else
7519    case $cross_compiling:$ac_tool_warned in
7520yes:)
7521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7522printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7523ac_tool_warned=yes ;;
7524esac
7525    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7526  fi
7527else
7528  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7529fi
7530
7531test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7533printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7534if test ${lt_cv_path_mainfest_tool+y}
7535then :
7536  printf %s "(cached) " >&6
7537else $as_nop
7538  lt_cv_path_mainfest_tool=no
7539  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7540  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7541  cat conftest.err >&5
7542  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7543    lt_cv_path_mainfest_tool=yes
7544  fi
7545  rm -f conftest*
7546fi
7547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7548printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7549if test yes != "$lt_cv_path_mainfest_tool"; then
7550  MANIFEST_TOOL=:
7551fi
7552
7553
7554
7555
7556
7557
7558  case $host_os in
7559    rhapsody* | darwin*)
7560    if test -n "$ac_tool_prefix"; then
7561  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7562set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7564printf %s "checking for $ac_word... " >&6; }
7565if test ${ac_cv_prog_DSYMUTIL+y}
7566then :
7567  printf %s "(cached) " >&6
7568else $as_nop
7569  if test -n "$DSYMUTIL"; then
7570  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7571else
7572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573for as_dir in $PATH
7574do
7575  IFS=$as_save_IFS
7576  case $as_dir in #(((
7577    '') as_dir=./ ;;
7578    */) ;;
7579    *) as_dir=$as_dir/ ;;
7580  esac
7581    for ac_exec_ext in '' $ac_executable_extensions; do
7582  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7583    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7584    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7585    break 2
7586  fi
7587done
7588  done
7589IFS=$as_save_IFS
7590
7591fi
7592fi
7593DSYMUTIL=$ac_cv_prog_DSYMUTIL
7594if test -n "$DSYMUTIL"; then
7595  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7596printf "%s\n" "$DSYMUTIL" >&6; }
7597else
7598  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7599printf "%s\n" "no" >&6; }
7600fi
7601
7602
7603fi
7604if test -z "$ac_cv_prog_DSYMUTIL"; then
7605  ac_ct_DSYMUTIL=$DSYMUTIL
7606  # Extract the first word of "dsymutil", so it can be a program name with args.
7607set dummy dsymutil; ac_word=$2
7608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609printf %s "checking for $ac_word... " >&6; }
7610if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7611then :
7612  printf %s "(cached) " >&6
7613else $as_nop
7614  if test -n "$ac_ct_DSYMUTIL"; then
7615  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7616else
7617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618for as_dir in $PATH
7619do
7620  IFS=$as_save_IFS
7621  case $as_dir in #(((
7622    '') as_dir=./ ;;
7623    */) ;;
7624    *) as_dir=$as_dir/ ;;
7625  esac
7626    for ac_exec_ext in '' $ac_executable_extensions; do
7627  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7628    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7629    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7630    break 2
7631  fi
7632done
7633  done
7634IFS=$as_save_IFS
7635
7636fi
7637fi
7638ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7639if test -n "$ac_ct_DSYMUTIL"; then
7640  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7641printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7642else
7643  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7644printf "%s\n" "no" >&6; }
7645fi
7646
7647  if test "x$ac_ct_DSYMUTIL" = x; then
7648    DSYMUTIL=":"
7649  else
7650    case $cross_compiling:$ac_tool_warned in
7651yes:)
7652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7653printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7654ac_tool_warned=yes ;;
7655esac
7656    DSYMUTIL=$ac_ct_DSYMUTIL
7657  fi
7658else
7659  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7660fi
7661
7662    if test -n "$ac_tool_prefix"; then
7663  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7664set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7666printf %s "checking for $ac_word... " >&6; }
7667if test ${ac_cv_prog_NMEDIT+y}
7668then :
7669  printf %s "(cached) " >&6
7670else $as_nop
7671  if test -n "$NMEDIT"; then
7672  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7673else
7674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675for as_dir in $PATH
7676do
7677  IFS=$as_save_IFS
7678  case $as_dir in #(((
7679    '') as_dir=./ ;;
7680    */) ;;
7681    *) as_dir=$as_dir/ ;;
7682  esac
7683    for ac_exec_ext in '' $ac_executable_extensions; do
7684  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7685    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7686    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7687    break 2
7688  fi
7689done
7690  done
7691IFS=$as_save_IFS
7692
7693fi
7694fi
7695NMEDIT=$ac_cv_prog_NMEDIT
7696if test -n "$NMEDIT"; then
7697  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7698printf "%s\n" "$NMEDIT" >&6; }
7699else
7700  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701printf "%s\n" "no" >&6; }
7702fi
7703
7704
7705fi
7706if test -z "$ac_cv_prog_NMEDIT"; then
7707  ac_ct_NMEDIT=$NMEDIT
7708  # Extract the first word of "nmedit", so it can be a program name with args.
7709set dummy nmedit; ac_word=$2
7710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7711printf %s "checking for $ac_word... " >&6; }
7712if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7713then :
7714  printf %s "(cached) " >&6
7715else $as_nop
7716  if test -n "$ac_ct_NMEDIT"; then
7717  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7718else
7719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720for as_dir in $PATH
7721do
7722  IFS=$as_save_IFS
7723  case $as_dir in #(((
7724    '') as_dir=./ ;;
7725    */) ;;
7726    *) as_dir=$as_dir/ ;;
7727  esac
7728    for ac_exec_ext in '' $ac_executable_extensions; do
7729  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7730    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7731    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7732    break 2
7733  fi
7734done
7735  done
7736IFS=$as_save_IFS
7737
7738fi
7739fi
7740ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7741if test -n "$ac_ct_NMEDIT"; then
7742  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7743printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7744else
7745  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746printf "%s\n" "no" >&6; }
7747fi
7748
7749  if test "x$ac_ct_NMEDIT" = x; then
7750    NMEDIT=":"
7751  else
7752    case $cross_compiling:$ac_tool_warned in
7753yes:)
7754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7755printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7756ac_tool_warned=yes ;;
7757esac
7758    NMEDIT=$ac_ct_NMEDIT
7759  fi
7760else
7761  NMEDIT="$ac_cv_prog_NMEDIT"
7762fi
7763
7764    if test -n "$ac_tool_prefix"; then
7765  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7766set dummy ${ac_tool_prefix}lipo; ac_word=$2
7767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768printf %s "checking for $ac_word... " >&6; }
7769if test ${ac_cv_prog_LIPO+y}
7770then :
7771  printf %s "(cached) " >&6
7772else $as_nop
7773  if test -n "$LIPO"; then
7774  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7775else
7776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777for as_dir in $PATH
7778do
7779  IFS=$as_save_IFS
7780  case $as_dir in #(((
7781    '') as_dir=./ ;;
7782    */) ;;
7783    *) as_dir=$as_dir/ ;;
7784  esac
7785    for ac_exec_ext in '' $ac_executable_extensions; do
7786  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7787    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7788    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7789    break 2
7790  fi
7791done
7792  done
7793IFS=$as_save_IFS
7794
7795fi
7796fi
7797LIPO=$ac_cv_prog_LIPO
7798if test -n "$LIPO"; then
7799  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7800printf "%s\n" "$LIPO" >&6; }
7801else
7802  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803printf "%s\n" "no" >&6; }
7804fi
7805
7806
7807fi
7808if test -z "$ac_cv_prog_LIPO"; then
7809  ac_ct_LIPO=$LIPO
7810  # Extract the first word of "lipo", so it can be a program name with args.
7811set dummy lipo; ac_word=$2
7812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7813printf %s "checking for $ac_word... " >&6; }
7814if test ${ac_cv_prog_ac_ct_LIPO+y}
7815then :
7816  printf %s "(cached) " >&6
7817else $as_nop
7818  if test -n "$ac_ct_LIPO"; then
7819  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7820else
7821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822for as_dir in $PATH
7823do
7824  IFS=$as_save_IFS
7825  case $as_dir in #(((
7826    '') as_dir=./ ;;
7827    */) ;;
7828    *) as_dir=$as_dir/ ;;
7829  esac
7830    for ac_exec_ext in '' $ac_executable_extensions; do
7831  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7832    ac_cv_prog_ac_ct_LIPO="lipo"
7833    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7834    break 2
7835  fi
7836done
7837  done
7838IFS=$as_save_IFS
7839
7840fi
7841fi
7842ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7843if test -n "$ac_ct_LIPO"; then
7844  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7845printf "%s\n" "$ac_ct_LIPO" >&6; }
7846else
7847  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7848printf "%s\n" "no" >&6; }
7849fi
7850
7851  if test "x$ac_ct_LIPO" = x; then
7852    LIPO=":"
7853  else
7854    case $cross_compiling:$ac_tool_warned in
7855yes:)
7856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7857printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7858ac_tool_warned=yes ;;
7859esac
7860    LIPO=$ac_ct_LIPO
7861  fi
7862else
7863  LIPO="$ac_cv_prog_LIPO"
7864fi
7865
7866    if test -n "$ac_tool_prefix"; then
7867  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7868set dummy ${ac_tool_prefix}otool; ac_word=$2
7869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7870printf %s "checking for $ac_word... " >&6; }
7871if test ${ac_cv_prog_OTOOL+y}
7872then :
7873  printf %s "(cached) " >&6
7874else $as_nop
7875  if test -n "$OTOOL"; then
7876  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7877else
7878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7879for as_dir in $PATH
7880do
7881  IFS=$as_save_IFS
7882  case $as_dir in #(((
7883    '') as_dir=./ ;;
7884    */) ;;
7885    *) as_dir=$as_dir/ ;;
7886  esac
7887    for ac_exec_ext in '' $ac_executable_extensions; do
7888  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7889    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7890    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7891    break 2
7892  fi
7893done
7894  done
7895IFS=$as_save_IFS
7896
7897fi
7898fi
7899OTOOL=$ac_cv_prog_OTOOL
7900if test -n "$OTOOL"; then
7901  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7902printf "%s\n" "$OTOOL" >&6; }
7903else
7904  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905printf "%s\n" "no" >&6; }
7906fi
7907
7908
7909fi
7910if test -z "$ac_cv_prog_OTOOL"; then
7911  ac_ct_OTOOL=$OTOOL
7912  # Extract the first word of "otool", so it can be a program name with args.
7913set dummy otool; ac_word=$2
7914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915printf %s "checking for $ac_word... " >&6; }
7916if test ${ac_cv_prog_ac_ct_OTOOL+y}
7917then :
7918  printf %s "(cached) " >&6
7919else $as_nop
7920  if test -n "$ac_ct_OTOOL"; then
7921  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7922else
7923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924for as_dir in $PATH
7925do
7926  IFS=$as_save_IFS
7927  case $as_dir in #(((
7928    '') as_dir=./ ;;
7929    */) ;;
7930    *) as_dir=$as_dir/ ;;
7931  esac
7932    for ac_exec_ext in '' $ac_executable_extensions; do
7933  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7934    ac_cv_prog_ac_ct_OTOOL="otool"
7935    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7936    break 2
7937  fi
7938done
7939  done
7940IFS=$as_save_IFS
7941
7942fi
7943fi
7944ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7945if test -n "$ac_ct_OTOOL"; then
7946  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7947printf "%s\n" "$ac_ct_OTOOL" >&6; }
7948else
7949  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7950printf "%s\n" "no" >&6; }
7951fi
7952
7953  if test "x$ac_ct_OTOOL" = x; then
7954    OTOOL=":"
7955  else
7956    case $cross_compiling:$ac_tool_warned in
7957yes:)
7958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7959printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7960ac_tool_warned=yes ;;
7961esac
7962    OTOOL=$ac_ct_OTOOL
7963  fi
7964else
7965  OTOOL="$ac_cv_prog_OTOOL"
7966fi
7967
7968    if test -n "$ac_tool_prefix"; then
7969  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7970set dummy ${ac_tool_prefix}otool64; ac_word=$2
7971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7972printf %s "checking for $ac_word... " >&6; }
7973if test ${ac_cv_prog_OTOOL64+y}
7974then :
7975  printf %s "(cached) " >&6
7976else $as_nop
7977  if test -n "$OTOOL64"; then
7978  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7979else
7980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981for as_dir in $PATH
7982do
7983  IFS=$as_save_IFS
7984  case $as_dir in #(((
7985    '') as_dir=./ ;;
7986    */) ;;
7987    *) as_dir=$as_dir/ ;;
7988  esac
7989    for ac_exec_ext in '' $ac_executable_extensions; do
7990  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7991    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7992    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7993    break 2
7994  fi
7995done
7996  done
7997IFS=$as_save_IFS
7998
7999fi
8000fi
8001OTOOL64=$ac_cv_prog_OTOOL64
8002if test -n "$OTOOL64"; then
8003  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8004printf "%s\n" "$OTOOL64" >&6; }
8005else
8006  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8007printf "%s\n" "no" >&6; }
8008fi
8009
8010
8011fi
8012if test -z "$ac_cv_prog_OTOOL64"; then
8013  ac_ct_OTOOL64=$OTOOL64
8014  # Extract the first word of "otool64", so it can be a program name with args.
8015set dummy otool64; ac_word=$2
8016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8017printf %s "checking for $ac_word... " >&6; }
8018if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8019then :
8020  printf %s "(cached) " >&6
8021else $as_nop
8022  if test -n "$ac_ct_OTOOL64"; then
8023  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8024else
8025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026for as_dir in $PATH
8027do
8028  IFS=$as_save_IFS
8029  case $as_dir in #(((
8030    '') as_dir=./ ;;
8031    */) ;;
8032    *) as_dir=$as_dir/ ;;
8033  esac
8034    for ac_exec_ext in '' $ac_executable_extensions; do
8035  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8036    ac_cv_prog_ac_ct_OTOOL64="otool64"
8037    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8038    break 2
8039  fi
8040done
8041  done
8042IFS=$as_save_IFS
8043
8044fi
8045fi
8046ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8047if test -n "$ac_ct_OTOOL64"; then
8048  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8049printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8050else
8051  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052printf "%s\n" "no" >&6; }
8053fi
8054
8055  if test "x$ac_ct_OTOOL64" = x; then
8056    OTOOL64=":"
8057  else
8058    case $cross_compiling:$ac_tool_warned in
8059yes:)
8060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8061printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8062ac_tool_warned=yes ;;
8063esac
8064    OTOOL64=$ac_ct_OTOOL64
8065  fi
8066else
8067  OTOOL64="$ac_cv_prog_OTOOL64"
8068fi
8069
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    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8097printf %s "checking for -single_module linker flag... " >&6; }
8098if test ${lt_cv_apple_cc_single_mod+y}
8099then :
8100  printf %s "(cached) " >&6
8101else $as_nop
8102  lt_cv_apple_cc_single_mod=no
8103      if test -z "$LT_MULTI_MODULE"; then
8104	# By default we will add the -single_module flag. You can override
8105	# by either setting the environment variable LT_MULTI_MODULE
8106	# non-empty at configure time, or by adding -multi_module to the
8107	# link flags.
8108	rm -rf libconftest.dylib*
8109	echo "int foo(void){return 1;}" > conftest.c
8110	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8111-dynamiclib -Wl,-single_module conftest.c" >&5
8112	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8113	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8114        _lt_result=$?
8115	# If there is a non-empty error log, and "single_module"
8116	# appears in it, assume the flag caused a linker warning
8117        if test -s conftest.err && $GREP single_module conftest.err; then
8118	  cat conftest.err >&5
8119	# Otherwise, if the output was created with a 0 exit code from
8120	# the compiler, it worked.
8121	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8122	  lt_cv_apple_cc_single_mod=yes
8123	else
8124	  cat conftest.err >&5
8125	fi
8126	rm -rf libconftest.dylib*
8127	rm -f conftest.*
8128      fi
8129fi
8130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8131printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8132
8133    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8134printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8135if test ${lt_cv_ld_exported_symbols_list+y}
8136then :
8137  printf %s "(cached) " >&6
8138else $as_nop
8139  lt_cv_ld_exported_symbols_list=no
8140      save_LDFLAGS=$LDFLAGS
8141      echo "_main" > conftest.sym
8142      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8143      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8144/* end confdefs.h.  */
8145
8146int
8147main (void)
8148{
8149
8150  ;
8151  return 0;
8152}
8153_ACEOF
8154if ac_fn_c_try_link "$LINENO"
8155then :
8156  lt_cv_ld_exported_symbols_list=yes
8157else $as_nop
8158  lt_cv_ld_exported_symbols_list=no
8159fi
8160rm -f core conftest.err conftest.$ac_objext conftest.beam \
8161    conftest$ac_exeext conftest.$ac_ext
8162	LDFLAGS=$save_LDFLAGS
8163
8164fi
8165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8166printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8167
8168    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8169printf %s "checking for -force_load linker flag... " >&6; }
8170if test ${lt_cv_ld_force_load+y}
8171then :
8172  printf %s "(cached) " >&6
8173else $as_nop
8174  lt_cv_ld_force_load=no
8175      cat > conftest.c << _LT_EOF
8176int forced_loaded() { return 2;}
8177_LT_EOF
8178      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8179      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8180      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8181      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8182      echo "$RANLIB libconftest.a" >&5
8183      $RANLIB libconftest.a 2>&5
8184      cat > conftest.c << _LT_EOF
8185int main() { return 0;}
8186_LT_EOF
8187      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8188      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8189      _lt_result=$?
8190      if test -s conftest.err && $GREP force_load conftest.err; then
8191	cat conftest.err >&5
8192      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8193	lt_cv_ld_force_load=yes
8194      else
8195	cat conftest.err >&5
8196      fi
8197        rm -f conftest.err libconftest.a conftest conftest.c
8198        rm -rf conftest.dSYM
8199
8200fi
8201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8202printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8203    case $host_os in
8204    rhapsody* | darwin1.[012])
8205      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8206    darwin1.*)
8207      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8208    darwin*)
8209      case $MACOSX_DEPLOYMENT_TARGET,$host in
8210        10.[012],*|,*powerpc*-darwin[5-8]*)
8211          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8212        *)
8213          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8214      esac
8215    ;;
8216  esac
8217    if test yes = "$lt_cv_apple_cc_single_mod"; then
8218      _lt_dar_single_mod='$single_module'
8219    fi
8220    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8221      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8222    else
8223      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8224    fi
8225    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8226      _lt_dsymutil='~$DSYMUTIL $lib || :'
8227    else
8228      _lt_dsymutil=
8229    fi
8230    ;;
8231  esac
8232
8233# func_munge_path_list VARIABLE PATH
8234# -----------------------------------
8235# VARIABLE is name of variable containing _space_ separated list of
8236# directories to be munged by the contents of PATH, which is string
8237# having a format:
8238# "DIR[:DIR]:"
8239#       string "DIR[ DIR]" will be prepended to VARIABLE
8240# ":DIR[:DIR]"
8241#       string "DIR[ DIR]" will be appended to VARIABLE
8242# "DIRP[:DIRP]::[DIRA:]DIRA"
8243#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8244#       "DIRA[ DIRA]" will be appended to VARIABLE
8245# "DIR[:DIR]"
8246#       VARIABLE will be replaced by "DIR[ DIR]"
8247func_munge_path_list ()
8248{
8249    case x$2 in
8250    x)
8251        ;;
8252    *:)
8253        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8254        ;;
8255    x:*)
8256        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8257        ;;
8258    *::*)
8259        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8260        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8261        ;;
8262    *)
8263        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8264        ;;
8265    esac
8266}
8267
8268ac_header= ac_cache=
8269for ac_item in $ac_header_c_list
8270do
8271  if test $ac_cache; then
8272    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8273    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8274      printf "%s\n" "#define $ac_item 1" >> confdefs.h
8275    fi
8276    ac_header= ac_cache=
8277  elif test $ac_header; then
8278    ac_cache=$ac_item
8279  else
8280    ac_header=$ac_item
8281  fi
8282done
8283
8284
8285
8286
8287
8288
8289
8290
8291if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8292then :
8293
8294printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8295
8296fi
8297ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8298"
8299if test "x$ac_cv_header_dlfcn_h" = xyes
8300then :
8301  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8302
8303fi
8304
8305
8306
8307
8308
8309# Set options
8310
8311
8312
8313        enable_dlopen=no
8314
8315
8316  enable_win32_dll=no
8317
8318
8319            # Check whether --enable-shared was given.
8320if test ${enable_shared+y}
8321then :
8322  enableval=$enable_shared; p=${PACKAGE-default}
8323    case $enableval in
8324    yes) enable_shared=yes ;;
8325    no) enable_shared=no ;;
8326    *)
8327      enable_shared=no
8328      # Look at the argument we got.  We use all the common list separators.
8329      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8330      for pkg in $enableval; do
8331	IFS=$lt_save_ifs
8332	if test "X$pkg" = "X$p"; then
8333	  enable_shared=yes
8334	fi
8335      done
8336      IFS=$lt_save_ifs
8337      ;;
8338    esac
8339else $as_nop
8340  enable_shared=yes
8341fi
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351  # Check whether --enable-static was given.
8352if test ${enable_static+y}
8353then :
8354  enableval=$enable_static; p=${PACKAGE-default}
8355    case $enableval in
8356    yes) enable_static=yes ;;
8357    no) enable_static=no ;;
8358    *)
8359     enable_static=no
8360      # Look at the argument we got.  We use all the common list separators.
8361      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8362      for pkg in $enableval; do
8363	IFS=$lt_save_ifs
8364	if test "X$pkg" = "X$p"; then
8365	  enable_static=yes
8366	fi
8367      done
8368      IFS=$lt_save_ifs
8369      ;;
8370    esac
8371else $as_nop
8372  enable_static=yes
8373fi
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384# Check whether --with-pic was given.
8385if test ${with_pic+y}
8386then :
8387  withval=$with_pic; lt_p=${PACKAGE-default}
8388    case $withval in
8389    yes|no) pic_mode=$withval ;;
8390    *)
8391      pic_mode=default
8392      # Look at the argument we got.  We use all the common list separators.
8393      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8394      for lt_pkg in $withval; do
8395	IFS=$lt_save_ifs
8396	if test "X$lt_pkg" = "X$lt_p"; then
8397	  pic_mode=yes
8398	fi
8399      done
8400      IFS=$lt_save_ifs
8401      ;;
8402    esac
8403else $as_nop
8404  pic_mode=default
8405fi
8406
8407
8408
8409
8410
8411
8412
8413
8414  # Check whether --enable-fast-install was given.
8415if test ${enable_fast_install+y}
8416then :
8417  enableval=$enable_fast_install; p=${PACKAGE-default}
8418    case $enableval in
8419    yes) enable_fast_install=yes ;;
8420    no) enable_fast_install=no ;;
8421    *)
8422      enable_fast_install=no
8423      # Look at the argument we got.  We use all the common list separators.
8424      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8425      for pkg in $enableval; do
8426	IFS=$lt_save_ifs
8427	if test "X$pkg" = "X$p"; then
8428	  enable_fast_install=yes
8429	fi
8430      done
8431      IFS=$lt_save_ifs
8432      ;;
8433    esac
8434else $as_nop
8435  enable_fast_install=yes
8436fi
8437
8438
8439
8440
8441
8442
8443
8444
8445  shared_archive_member_spec=
8446case $host,$enable_shared in
8447power*-*-aix[5-9]*,yes)
8448  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8449printf %s "checking which variant of shared library versioning to provide... " >&6; }
8450
8451# Check whether --with-aix-soname was given.
8452if test ${with_aix_soname+y}
8453then :
8454  withval=$with_aix_soname; case $withval in
8455    aix|svr4|both)
8456      ;;
8457    *)
8458      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8459      ;;
8460    esac
8461    lt_cv_with_aix_soname=$with_aix_soname
8462else $as_nop
8463  if test ${lt_cv_with_aix_soname+y}
8464then :
8465  printf %s "(cached) " >&6
8466else $as_nop
8467  lt_cv_with_aix_soname=aix
8468fi
8469
8470    with_aix_soname=$lt_cv_with_aix_soname
8471fi
8472
8473  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8474printf "%s\n" "$with_aix_soname" >&6; }
8475  if test aix != "$with_aix_soname"; then
8476    # For the AIX way of multilib, we name the shared archive member
8477    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8478    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8479    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8480    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8481    if test 64 = "${OBJECT_MODE-32}"; then
8482      shared_archive_member_spec=shr_64
8483    else
8484      shared_archive_member_spec=shr
8485    fi
8486  fi
8487  ;;
8488*)
8489  with_aix_soname=aix
8490  ;;
8491esac
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502# This can be used to rebuild libtool when needed
8503LIBTOOL_DEPS=$ltmain
8504
8505# Always use our own libtool.
8506LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8507
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
8537test -z "$LN_S" && LN_S="ln -s"
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552if test -n "${ZSH_VERSION+set}"; then
8553   setopt NO_GLOB_SUBST
8554fi
8555
8556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8557printf %s "checking for objdir... " >&6; }
8558if test ${lt_cv_objdir+y}
8559then :
8560  printf %s "(cached) " >&6
8561else $as_nop
8562  rm -f .libs 2>/dev/null
8563mkdir .libs 2>/dev/null
8564if test -d .libs; then
8565  lt_cv_objdir=.libs
8566else
8567  # MS-DOS does not allow filenames that begin with a dot.
8568  lt_cv_objdir=_libs
8569fi
8570rmdir .libs 2>/dev/null
8571fi
8572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8573printf "%s\n" "$lt_cv_objdir" >&6; }
8574objdir=$lt_cv_objdir
8575
8576
8577
8578
8579
8580printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8581
8582
8583
8584
8585case $host_os in
8586aix3*)
8587  # AIX sometimes has problems with the GCC collect2 program.  For some
8588  # reason, if we set the COLLECT_NAMES environment variable, the problems
8589  # vanish in a puff of smoke.
8590  if test set != "${COLLECT_NAMES+set}"; then
8591    COLLECT_NAMES=
8592    export COLLECT_NAMES
8593  fi
8594  ;;
8595esac
8596
8597# Global variables:
8598ofile=libtool
8599can_build_shared=yes
8600
8601# All known linkers require a '.a' archive for static linking (except MSVC and
8602# ICC, which need '.lib').
8603libext=a
8604
8605with_gnu_ld=$lt_cv_prog_gnu_ld
8606
8607old_CC=$CC
8608old_CFLAGS=$CFLAGS
8609
8610# Set sane defaults for various variables
8611test -z "$CC" && CC=cc
8612test -z "$LTCC" && LTCC=$CC
8613test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8614test -z "$LD" && LD=ld
8615test -z "$ac_objext" && ac_objext=o
8616
8617func_cc_basename $compiler
8618cc_basename=$func_cc_basename_result
8619
8620
8621# Only perform the check for file, if the check method requires it
8622test -z "$MAGIC_CMD" && MAGIC_CMD=file
8623case $deplibs_check_method in
8624file_magic*)
8625  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8626    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8627printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8628if test ${lt_cv_path_MAGIC_CMD+y}
8629then :
8630  printf %s "(cached) " >&6
8631else $as_nop
8632  case $MAGIC_CMD in
8633[\\/*] |  ?:[\\/]*)
8634  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8635  ;;
8636*)
8637  lt_save_MAGIC_CMD=$MAGIC_CMD
8638  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8639  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8640  for ac_dir in $ac_dummy; do
8641    IFS=$lt_save_ifs
8642    test -z "$ac_dir" && ac_dir=.
8643    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8644      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8645      if test -n "$file_magic_test_file"; then
8646	case $deplibs_check_method in
8647	"file_magic "*)
8648	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8649	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8650	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8651	    $EGREP "$file_magic_regex" > /dev/null; then
8652	    :
8653	  else
8654	    cat <<_LT_EOF 1>&2
8655
8656*** Warning: the command libtool uses to detect shared libraries,
8657*** $file_magic_cmd, produces output that libtool cannot recognize.
8658*** The result is that libtool may fail to recognize shared libraries
8659*** as such.  This will affect the creation of libtool libraries that
8660*** depend on shared libraries, but programs linked with such libtool
8661*** libraries will work regardless of this problem.  Nevertheless, you
8662*** may want to report the problem to your system manager and/or to
8663*** bug-libtool@gnu.org
8664
8665_LT_EOF
8666	  fi ;;
8667	esac
8668      fi
8669      break
8670    fi
8671  done
8672  IFS=$lt_save_ifs
8673  MAGIC_CMD=$lt_save_MAGIC_CMD
8674  ;;
8675esac
8676fi
8677
8678MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8679if test -n "$MAGIC_CMD"; then
8680  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8681printf "%s\n" "$MAGIC_CMD" >&6; }
8682else
8683  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8684printf "%s\n" "no" >&6; }
8685fi
8686
8687
8688
8689
8690
8691if test -z "$lt_cv_path_MAGIC_CMD"; then
8692  if test -n "$ac_tool_prefix"; then
8693    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8694printf %s "checking for file... " >&6; }
8695if test ${lt_cv_path_MAGIC_CMD+y}
8696then :
8697  printf %s "(cached) " >&6
8698else $as_nop
8699  case $MAGIC_CMD in
8700[\\/*] |  ?:[\\/]*)
8701  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8702  ;;
8703*)
8704  lt_save_MAGIC_CMD=$MAGIC_CMD
8705  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8706  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8707  for ac_dir in $ac_dummy; do
8708    IFS=$lt_save_ifs
8709    test -z "$ac_dir" && ac_dir=.
8710    if test -f "$ac_dir/file"; then
8711      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8712      if test -n "$file_magic_test_file"; then
8713	case $deplibs_check_method in
8714	"file_magic "*)
8715	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8716	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8717	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8718	    $EGREP "$file_magic_regex" > /dev/null; then
8719	    :
8720	  else
8721	    cat <<_LT_EOF 1>&2
8722
8723*** Warning: the command libtool uses to detect shared libraries,
8724*** $file_magic_cmd, produces output that libtool cannot recognize.
8725*** The result is that libtool may fail to recognize shared libraries
8726*** as such.  This will affect the creation of libtool libraries that
8727*** depend on shared libraries, but programs linked with such libtool
8728*** libraries will work regardless of this problem.  Nevertheless, you
8729*** may want to report the problem to your system manager and/or to
8730*** bug-libtool@gnu.org
8731
8732_LT_EOF
8733	  fi ;;
8734	esac
8735      fi
8736      break
8737    fi
8738  done
8739  IFS=$lt_save_ifs
8740  MAGIC_CMD=$lt_save_MAGIC_CMD
8741  ;;
8742esac
8743fi
8744
8745MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8746if test -n "$MAGIC_CMD"; then
8747  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8748printf "%s\n" "$MAGIC_CMD" >&6; }
8749else
8750  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8751printf "%s\n" "no" >&6; }
8752fi
8753
8754
8755  else
8756    MAGIC_CMD=:
8757  fi
8758fi
8759
8760  fi
8761  ;;
8762esac
8763
8764# Use C for the default configuration in the libtool script
8765
8766lt_save_CC=$CC
8767ac_ext=c
8768ac_cpp='$CPP $CPPFLAGS'
8769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8771ac_compiler_gnu=$ac_cv_c_compiler_gnu
8772
8773
8774# Source file extension for C test sources.
8775ac_ext=c
8776
8777# Object file extension for compiled C test sources.
8778objext=o
8779objext=$objext
8780
8781# Code to be used in simple compile tests
8782lt_simple_compile_test_code="int some_variable = 0;"
8783
8784# Code to be used in simple link tests
8785lt_simple_link_test_code='int main(){return(0);}'
8786
8787
8788
8789
8790
8791
8792
8793# If no C compiler was specified, use CC.
8794LTCC=${LTCC-"$CC"}
8795
8796# If no C compiler flags were specified, use CFLAGS.
8797LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8798
8799# Allow CC to be a program name with arguments.
8800compiler=$CC
8801
8802# Save the default compiler, since it gets overwritten when the other
8803# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8804compiler_DEFAULT=$CC
8805
8806# save warnings/boilerplate of simple test code
8807ac_outfile=conftest.$ac_objext
8808echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8809eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8810_lt_compiler_boilerplate=`cat conftest.err`
8811$RM conftest*
8812
8813ac_outfile=conftest.$ac_objext
8814echo "$lt_simple_link_test_code" >conftest.$ac_ext
8815eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8816_lt_linker_boilerplate=`cat conftest.err`
8817$RM -r conftest*
8818
8819
8820if test -n "$compiler"; then
8821
8822lt_prog_compiler_no_builtin_flag=
8823
8824if test yes = "$GCC"; then
8825  case $cc_basename in
8826  nvcc*)
8827    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8828  *)
8829    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8830  esac
8831
8832  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8833printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8834if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8835then :
8836  printf %s "(cached) " >&6
8837else $as_nop
8838  lt_cv_prog_compiler_rtti_exceptions=no
8839   ac_outfile=conftest.$ac_objext
8840   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8841   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8842   # Insert the option either (1) after the last *FLAGS variable, or
8843   # (2) before a word containing "conftest.", or (3) at the end.
8844   # Note that $ac_compile itself does not contain backslashes and begins
8845   # with a dollar sign (not a hyphen), so the echo should work correctly.
8846   # The option is referenced via a variable to avoid confusing sed.
8847   lt_compile=`echo "$ac_compile" | $SED \
8848   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8849   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8850   -e 's:$: $lt_compiler_flag:'`
8851   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8852   (eval "$lt_compile" 2>conftest.err)
8853   ac_status=$?
8854   cat conftest.err >&5
8855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856   if (exit $ac_status) && test -s "$ac_outfile"; then
8857     # The compiler can only warn and ignore the option if not recognized
8858     # So say no if there are warnings other than the usual output.
8859     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8860     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8861     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8862       lt_cv_prog_compiler_rtti_exceptions=yes
8863     fi
8864   fi
8865   $RM conftest*
8866
8867fi
8868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8869printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8870
8871if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8872    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8873else
8874    :
8875fi
8876
8877fi
8878
8879
8880
8881
8882
8883
8884  lt_prog_compiler_wl=
8885lt_prog_compiler_pic=
8886lt_prog_compiler_static=
8887
8888
8889  if test yes = "$GCC"; then
8890    lt_prog_compiler_wl='-Wl,'
8891    lt_prog_compiler_static='-static'
8892
8893    case $host_os in
8894      aix*)
8895      # All AIX code is PIC.
8896      if test ia64 = "$host_cpu"; then
8897	# AIX 5 now supports IA64 processor
8898	lt_prog_compiler_static='-Bstatic'
8899      fi
8900      lt_prog_compiler_pic='-fPIC'
8901      ;;
8902
8903    amigaos*)
8904      case $host_cpu in
8905      powerpc)
8906            # see comment about AmigaOS4 .so support
8907            lt_prog_compiler_pic='-fPIC'
8908        ;;
8909      m68k)
8910            # FIXME: we need at least 68020 code to build shared libraries, but
8911            # adding the '-m68020' flag to GCC prevents building anything better,
8912            # like '-m68040'.
8913            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8914        ;;
8915      esac
8916      ;;
8917
8918    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8919      # PIC is the default for these OSes.
8920      ;;
8921
8922    mingw* | cygwin* | pw32* | os2* | cegcc*)
8923      # This hack is so that the source file can tell whether it is being
8924      # built for inclusion in a dll (and should export symbols for example).
8925      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8926      # (--disable-auto-import) libraries
8927      lt_prog_compiler_pic='-DDLL_EXPORT'
8928      case $host_os in
8929      os2*)
8930	lt_prog_compiler_static='$wl-static'
8931	;;
8932      esac
8933      ;;
8934
8935    darwin* | rhapsody*)
8936      # PIC is the default on this platform
8937      # Common symbols not allowed in MH_DYLIB files
8938      lt_prog_compiler_pic='-fno-common'
8939      ;;
8940
8941    haiku*)
8942      # PIC is the default for Haiku.
8943      # The "-static" flag exists, but is broken.
8944      lt_prog_compiler_static=
8945      ;;
8946
8947    hpux*)
8948      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8949      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8950      # sets the default TLS model and affects inlining.
8951      case $host_cpu in
8952      hppa*64*)
8953	# +Z the default
8954	;;
8955      *)
8956	lt_prog_compiler_pic='-fPIC'
8957	;;
8958      esac
8959      ;;
8960
8961    interix[3-9]*)
8962      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8963      # Instead, we relocate shared libraries at runtime.
8964      ;;
8965
8966    msdosdjgpp*)
8967      # Just because we use GCC doesn't mean we suddenly get shared libraries
8968      # on systems that don't support them.
8969      lt_prog_compiler_can_build_shared=no
8970      enable_shared=no
8971      ;;
8972
8973    *nto* | *qnx*)
8974      # QNX uses GNU C++, but need to define -shared option too, otherwise
8975      # it will coredump.
8976      lt_prog_compiler_pic='-fPIC -shared'
8977      ;;
8978
8979    sysv4*MP*)
8980      if test -d /usr/nec; then
8981	lt_prog_compiler_pic=-Kconform_pic
8982      fi
8983      ;;
8984
8985    *)
8986      lt_prog_compiler_pic='-fPIC'
8987      ;;
8988    esac
8989
8990    case $cc_basename in
8991    nvcc*) # Cuda Compiler Driver 2.2
8992      lt_prog_compiler_wl='-Xlinker '
8993      if test -n "$lt_prog_compiler_pic"; then
8994        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8995      fi
8996      ;;
8997    esac
8998  else
8999    # PORTME Check for flag to pass linker flags through the system compiler.
9000    case $host_os in
9001    aix*)
9002      lt_prog_compiler_wl='-Wl,'
9003      if test ia64 = "$host_cpu"; then
9004	# AIX 5 now supports IA64 processor
9005	lt_prog_compiler_static='-Bstatic'
9006      else
9007	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9008      fi
9009      ;;
9010
9011    darwin* | rhapsody*)
9012      # PIC is the default on this platform
9013      # Common symbols not allowed in MH_DYLIB files
9014      lt_prog_compiler_pic='-fno-common'
9015      case $cc_basename in
9016      nagfor*)
9017        # NAG Fortran compiler
9018        lt_prog_compiler_wl='-Wl,-Wl,,'
9019        lt_prog_compiler_pic='-PIC'
9020        lt_prog_compiler_static='-Bstatic'
9021        ;;
9022      esac
9023      ;;
9024
9025    mingw* | cygwin* | pw32* | os2* | cegcc*)
9026      # This hack is so that the source file can tell whether it is being
9027      # built for inclusion in a dll (and should export symbols for example).
9028      lt_prog_compiler_pic='-DDLL_EXPORT'
9029      case $host_os in
9030      os2*)
9031	lt_prog_compiler_static='$wl-static'
9032	;;
9033      esac
9034      ;;
9035
9036    hpux9* | hpux10* | hpux11*)
9037      lt_prog_compiler_wl='-Wl,'
9038      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9039      # not for PA HP-UX.
9040      case $host_cpu in
9041      hppa*64*|ia64*)
9042	# +Z the default
9043	;;
9044      *)
9045	lt_prog_compiler_pic='+Z'
9046	;;
9047      esac
9048      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9049      lt_prog_compiler_static='$wl-a ${wl}archive'
9050      ;;
9051
9052    irix5* | irix6* | nonstopux*)
9053      lt_prog_compiler_wl='-Wl,'
9054      # PIC (with -KPIC) is the default.
9055      lt_prog_compiler_static='-non_shared'
9056      ;;
9057
9058    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9059      case $cc_basename in
9060      # old Intel for x86_64, which still supported -KPIC.
9061      ecc*)
9062	lt_prog_compiler_wl='-Wl,'
9063	lt_prog_compiler_pic='-KPIC'
9064	lt_prog_compiler_static='-static'
9065        ;;
9066      # icc used to be incompatible with GCC.
9067      # ICC 10 doesn't accept -KPIC any more.
9068      icc* | ifort*)
9069	lt_prog_compiler_wl='-Wl,'
9070	lt_prog_compiler_pic='-fPIC'
9071	lt_prog_compiler_static='-static'
9072        ;;
9073      # Lahey Fortran 8.1.
9074      lf95*)
9075	lt_prog_compiler_wl='-Wl,'
9076	lt_prog_compiler_pic='--shared'
9077	lt_prog_compiler_static='--static'
9078	;;
9079      nagfor*)
9080	# NAG Fortran compiler
9081	lt_prog_compiler_wl='-Wl,-Wl,,'
9082	lt_prog_compiler_pic='-PIC'
9083	lt_prog_compiler_static='-Bstatic'
9084	;;
9085      tcc*)
9086	# Fabrice Bellard et al's Tiny C Compiler
9087	lt_prog_compiler_wl='-Wl,'
9088	lt_prog_compiler_pic='-fPIC'
9089	lt_prog_compiler_static='-static'
9090	;;
9091      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9092        # Portland Group compilers (*not* the Pentium gcc compiler,
9093	# which looks to be a dead project)
9094	lt_prog_compiler_wl='-Wl,'
9095	lt_prog_compiler_pic='-fpic'
9096	lt_prog_compiler_static='-Bstatic'
9097        ;;
9098      ccc*)
9099        lt_prog_compiler_wl='-Wl,'
9100        # All Alpha code is PIC.
9101        lt_prog_compiler_static='-non_shared'
9102        ;;
9103      xl* | bgxl* | bgf* | mpixl*)
9104	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9105	lt_prog_compiler_wl='-Wl,'
9106	lt_prog_compiler_pic='-qpic'
9107	lt_prog_compiler_static='-qstaticlink'
9108	;;
9109      *)
9110	case `$CC -V 2>&1 | $SED 5q` in
9111	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9112	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9113	  lt_prog_compiler_pic='-KPIC'
9114	  lt_prog_compiler_static='-Bstatic'
9115	  lt_prog_compiler_wl=''
9116	  ;;
9117	*Sun\ F* | *Sun*Fortran*)
9118	  lt_prog_compiler_pic='-KPIC'
9119	  lt_prog_compiler_static='-Bstatic'
9120	  lt_prog_compiler_wl='-Qoption ld '
9121	  ;;
9122	*Sun\ C*)
9123	  # Sun C 5.9
9124	  lt_prog_compiler_pic='-KPIC'
9125	  lt_prog_compiler_static='-Bstatic'
9126	  lt_prog_compiler_wl='-Wl,'
9127	  ;;
9128        *Intel*\ [CF]*Compiler*)
9129	  lt_prog_compiler_wl='-Wl,'
9130	  lt_prog_compiler_pic='-fPIC'
9131	  lt_prog_compiler_static='-static'
9132	  ;;
9133	*Portland\ Group*)
9134	  lt_prog_compiler_wl='-Wl,'
9135	  lt_prog_compiler_pic='-fpic'
9136	  lt_prog_compiler_static='-Bstatic'
9137	  ;;
9138	esac
9139	;;
9140      esac
9141      ;;
9142
9143    newsos6)
9144      lt_prog_compiler_pic='-KPIC'
9145      lt_prog_compiler_static='-Bstatic'
9146      ;;
9147
9148    *nto* | *qnx*)
9149      # QNX uses GNU C++, but need to define -shared option too, otherwise
9150      # it will coredump.
9151      lt_prog_compiler_pic='-fPIC -shared'
9152      ;;
9153
9154    osf3* | osf4* | osf5*)
9155      lt_prog_compiler_wl='-Wl,'
9156      # All OSF/1 code is PIC.
9157      lt_prog_compiler_static='-non_shared'
9158      ;;
9159
9160    rdos*)
9161      lt_prog_compiler_static='-non_shared'
9162      ;;
9163
9164    solaris*)
9165      lt_prog_compiler_pic='-KPIC'
9166      lt_prog_compiler_static='-Bstatic'
9167      case $cc_basename in
9168      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9169	lt_prog_compiler_wl='-Qoption ld ';;
9170      *)
9171	lt_prog_compiler_wl='-Wl,';;
9172      esac
9173      ;;
9174
9175    sunos4*)
9176      lt_prog_compiler_wl='-Qoption ld '
9177      lt_prog_compiler_pic='-PIC'
9178      lt_prog_compiler_static='-Bstatic'
9179      ;;
9180
9181    sysv4 | sysv4.2uw2* | sysv4.3*)
9182      lt_prog_compiler_wl='-Wl,'
9183      lt_prog_compiler_pic='-KPIC'
9184      lt_prog_compiler_static='-Bstatic'
9185      ;;
9186
9187    sysv4*MP*)
9188      if test -d /usr/nec; then
9189	lt_prog_compiler_pic='-Kconform_pic'
9190	lt_prog_compiler_static='-Bstatic'
9191      fi
9192      ;;
9193
9194    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9195      lt_prog_compiler_wl='-Wl,'
9196      lt_prog_compiler_pic='-KPIC'
9197      lt_prog_compiler_static='-Bstatic'
9198      ;;
9199
9200    unicos*)
9201      lt_prog_compiler_wl='-Wl,'
9202      lt_prog_compiler_can_build_shared=no
9203      ;;
9204
9205    uts4*)
9206      lt_prog_compiler_pic='-pic'
9207      lt_prog_compiler_static='-Bstatic'
9208      ;;
9209
9210    *)
9211      lt_prog_compiler_can_build_shared=no
9212      ;;
9213    esac
9214  fi
9215
9216case $host_os in
9217  # For platforms that do not support PIC, -DPIC is meaningless:
9218  *djgpp*)
9219    lt_prog_compiler_pic=
9220    ;;
9221  *)
9222    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9223    ;;
9224esac
9225
9226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9227printf %s "checking for $compiler option to produce PIC... " >&6; }
9228if test ${lt_cv_prog_compiler_pic+y}
9229then :
9230  printf %s "(cached) " >&6
9231else $as_nop
9232  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9233fi
9234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9235printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9236lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9237
9238#
9239# Check to make sure the PIC flag actually works.
9240#
9241if test -n "$lt_prog_compiler_pic"; then
9242  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9243printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9244if test ${lt_cv_prog_compiler_pic_works+y}
9245then :
9246  printf %s "(cached) " >&6
9247else $as_nop
9248  lt_cv_prog_compiler_pic_works=no
9249   ac_outfile=conftest.$ac_objext
9250   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9251   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9252   # Insert the option either (1) after the last *FLAGS variable, or
9253   # (2) before a word containing "conftest.", or (3) at the end.
9254   # Note that $ac_compile itself does not contain backslashes and begins
9255   # with a dollar sign (not a hyphen), so the echo should work correctly.
9256   # The option is referenced via a variable to avoid confusing sed.
9257   lt_compile=`echo "$ac_compile" | $SED \
9258   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9259   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9260   -e 's:$: $lt_compiler_flag:'`
9261   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9262   (eval "$lt_compile" 2>conftest.err)
9263   ac_status=$?
9264   cat conftest.err >&5
9265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266   if (exit $ac_status) && test -s "$ac_outfile"; then
9267     # The compiler can only warn and ignore the option if not recognized
9268     # So say no if there are warnings other than the usual output.
9269     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9270     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9271     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9272       lt_cv_prog_compiler_pic_works=yes
9273     fi
9274   fi
9275   $RM conftest*
9276
9277fi
9278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9279printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9280
9281if test yes = "$lt_cv_prog_compiler_pic_works"; then
9282    case $lt_prog_compiler_pic in
9283     "" | " "*) ;;
9284     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9285     esac
9286else
9287    lt_prog_compiler_pic=
9288     lt_prog_compiler_can_build_shared=no
9289fi
9290
9291fi
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303#
9304# Check to make sure the static flag actually works.
9305#
9306wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9308printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9309if test ${lt_cv_prog_compiler_static_works+y}
9310then :
9311  printf %s "(cached) " >&6
9312else $as_nop
9313  lt_cv_prog_compiler_static_works=no
9314   save_LDFLAGS=$LDFLAGS
9315   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9316   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9317   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9318     # The linker can only warn and ignore the option if not recognized
9319     # So say no if there are warnings
9320     if test -s conftest.err; then
9321       # Append any errors to the config.log.
9322       cat conftest.err 1>&5
9323       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9324       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9325       if diff conftest.exp conftest.er2 >/dev/null; then
9326         lt_cv_prog_compiler_static_works=yes
9327       fi
9328     else
9329       lt_cv_prog_compiler_static_works=yes
9330     fi
9331   fi
9332   $RM -r conftest*
9333   LDFLAGS=$save_LDFLAGS
9334
9335fi
9336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9337printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9338
9339if test yes = "$lt_cv_prog_compiler_static_works"; then
9340    :
9341else
9342    lt_prog_compiler_static=
9343fi
9344
9345
9346
9347
9348
9349
9350
9351  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9352printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9353if test ${lt_cv_prog_compiler_c_o+y}
9354then :
9355  printf %s "(cached) " >&6
9356else $as_nop
9357  lt_cv_prog_compiler_c_o=no
9358   $RM -r conftest 2>/dev/null
9359   mkdir conftest
9360   cd conftest
9361   mkdir out
9362   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9363
9364   lt_compiler_flag="-o out/conftest2.$ac_objext"
9365   # Insert the option either (1) after the last *FLAGS variable, or
9366   # (2) before a word containing "conftest.", or (3) at the end.
9367   # Note that $ac_compile itself does not contain backslashes and begins
9368   # with a dollar sign (not a hyphen), so the echo should work correctly.
9369   lt_compile=`echo "$ac_compile" | $SED \
9370   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9371   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9372   -e 's:$: $lt_compiler_flag:'`
9373   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9374   (eval "$lt_compile" 2>out/conftest.err)
9375   ac_status=$?
9376   cat out/conftest.err >&5
9377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9379   then
9380     # The compiler can only warn and ignore the option if not recognized
9381     # So say no if there are warnings
9382     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9383     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9384     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9385       lt_cv_prog_compiler_c_o=yes
9386     fi
9387   fi
9388   chmod u+w . 2>&5
9389   $RM conftest*
9390   # SGI C++ compiler will create directory out/ii_files/ for
9391   # template instantiation
9392   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9393   $RM out/* && rmdir out
9394   cd ..
9395   $RM -r conftest
9396   $RM conftest*
9397
9398fi
9399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9400printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9401
9402
9403
9404
9405
9406
9407  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9408printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9409if test ${lt_cv_prog_compiler_c_o+y}
9410then :
9411  printf %s "(cached) " >&6
9412else $as_nop
9413  lt_cv_prog_compiler_c_o=no
9414   $RM -r conftest 2>/dev/null
9415   mkdir conftest
9416   cd conftest
9417   mkdir out
9418   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9419
9420   lt_compiler_flag="-o out/conftest2.$ac_objext"
9421   # Insert the option either (1) after the last *FLAGS variable, or
9422   # (2) before a word containing "conftest.", or (3) at the end.
9423   # Note that $ac_compile itself does not contain backslashes and begins
9424   # with a dollar sign (not a hyphen), so the echo should work correctly.
9425   lt_compile=`echo "$ac_compile" | $SED \
9426   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9427   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9428   -e 's:$: $lt_compiler_flag:'`
9429   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9430   (eval "$lt_compile" 2>out/conftest.err)
9431   ac_status=$?
9432   cat out/conftest.err >&5
9433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9435   then
9436     # The compiler can only warn and ignore the option if not recognized
9437     # So say no if there are warnings
9438     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9439     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9440     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9441       lt_cv_prog_compiler_c_o=yes
9442     fi
9443   fi
9444   chmod u+w . 2>&5
9445   $RM conftest*
9446   # SGI C++ compiler will create directory out/ii_files/ for
9447   # template instantiation
9448   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9449   $RM out/* && rmdir out
9450   cd ..
9451   $RM -r conftest
9452   $RM conftest*
9453
9454fi
9455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9456printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9457
9458
9459
9460
9461hard_links=nottested
9462if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9463  # do not overwrite the value of need_locks provided by the user
9464  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9465printf %s "checking if we can lock with hard links... " >&6; }
9466  hard_links=yes
9467  $RM conftest*
9468  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9469  touch conftest.a
9470  ln conftest.a conftest.b 2>&5 || hard_links=no
9471  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9472  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9473printf "%s\n" "$hard_links" >&6; }
9474  if test no = "$hard_links"; then
9475    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9476printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9477    need_locks=warn
9478  fi
9479else
9480  need_locks=no
9481fi
9482
9483
9484
9485
9486
9487
9488  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9489printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9490
9491  runpath_var=
9492  allow_undefined_flag=
9493  always_export_symbols=no
9494  archive_cmds=
9495  archive_expsym_cmds=
9496  compiler_needs_object=no
9497  enable_shared_with_static_runtimes=no
9498  export_dynamic_flag_spec=
9499  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9500  hardcode_automatic=no
9501  hardcode_direct=no
9502  hardcode_direct_absolute=no
9503  hardcode_libdir_flag_spec=
9504  hardcode_libdir_separator=
9505  hardcode_minus_L=no
9506  hardcode_shlibpath_var=unsupported
9507  inherit_rpath=no
9508  link_all_deplibs=unknown
9509  module_cmds=
9510  module_expsym_cmds=
9511  old_archive_from_new_cmds=
9512  old_archive_from_expsyms_cmds=
9513  thread_safe_flag_spec=
9514  whole_archive_flag_spec=
9515  # include_expsyms should be a list of space-separated symbols to be *always*
9516  # included in the symbol list
9517  include_expsyms=
9518  # exclude_expsyms can be an extended regexp of symbols to exclude
9519  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9520  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9521  # as well as any symbol that contains 'd'.
9522  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9523  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9524  # platforms (ab)use it in PIC code, but their linkers get confused if
9525  # the symbol is explicitly referenced.  Since portable code cannot
9526  # rely on this symbol name, it's probably fine to never include it in
9527  # preloaded symbol tables.
9528  # Exclude shared library initialization/finalization symbols.
9529  extract_expsyms_cmds=
9530
9531  case $host_os in
9532  cygwin* | mingw* | pw32* | cegcc*)
9533    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9534    # When not using gcc, we currently assume that we are using
9535    # Microsoft Visual C++ or Intel C++ Compiler.
9536    if test yes != "$GCC"; then
9537      with_gnu_ld=no
9538    fi
9539    ;;
9540  interix*)
9541    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9542    with_gnu_ld=yes
9543    ;;
9544  openbsd* | bitrig*)
9545    with_gnu_ld=no
9546    ;;
9547  esac
9548
9549  ld_shlibs=yes
9550
9551  # On some targets, GNU ld is compatible enough with the native linker
9552  # that we're better off using the native interface for both.
9553  lt_use_gnu_ld_interface=no
9554  if test yes = "$with_gnu_ld"; then
9555    case $host_os in
9556      aix*)
9557	# The AIX port of GNU ld has always aspired to compatibility
9558	# with the native linker.  However, as the warning in the GNU ld
9559	# block says, versions before 2.19.5* couldn't really create working
9560	# shared libraries, regardless of the interface used.
9561	case `$LD -v 2>&1` in
9562	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9563	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9564	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9565	  *)
9566	    lt_use_gnu_ld_interface=yes
9567	    ;;
9568	esac
9569	;;
9570      *)
9571	lt_use_gnu_ld_interface=yes
9572	;;
9573    esac
9574  fi
9575
9576  if test yes = "$lt_use_gnu_ld_interface"; then
9577    # If archive_cmds runs LD, not CC, wlarc should be empty
9578    wlarc='$wl'
9579
9580    # Set some defaults for GNU ld with shared library support. These
9581    # are reset later if shared libraries are not supported. Putting them
9582    # here allows them to be overridden if necessary.
9583    runpath_var=LD_RUN_PATH
9584    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9585    export_dynamic_flag_spec='$wl--export-dynamic'
9586    # ancient GNU ld didn't support --whole-archive et. al.
9587    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9588      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9589    else
9590      whole_archive_flag_spec=
9591    fi
9592    supports_anon_versioning=no
9593    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9594      *GNU\ gold*) supports_anon_versioning=yes ;;
9595      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9596      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9597      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9598      *\ 2.11.*) ;; # other 2.11 versions
9599      *) supports_anon_versioning=yes ;;
9600    esac
9601
9602    # See if GNU ld supports shared libraries.
9603    case $host_os in
9604    aix[3-9]*)
9605      # On AIX/PPC, the GNU linker is very broken
9606      if test ia64 != "$host_cpu"; then
9607	ld_shlibs=no
9608	cat <<_LT_EOF 1>&2
9609
9610*** Warning: the GNU linker, at least up to release 2.19, is reported
9611*** to be unable to reliably create shared libraries on AIX.
9612*** Therefore, libtool is disabling shared libraries support.  If you
9613*** really care for shared libraries, you may want to install binutils
9614*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9615*** You will then need to restart the configuration process.
9616
9617_LT_EOF
9618      fi
9619      ;;
9620
9621    amigaos*)
9622      case $host_cpu in
9623      powerpc)
9624            # see comment about AmigaOS4 .so support
9625            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9626            archive_expsym_cmds=''
9627        ;;
9628      m68k)
9629            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)'
9630            hardcode_libdir_flag_spec='-L$libdir'
9631            hardcode_minus_L=yes
9632        ;;
9633      esac
9634      ;;
9635
9636    beos*)
9637      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9638	allow_undefined_flag=unsupported
9639	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9640	# support --undefined.  This deserves some investigation.  FIXME
9641	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9642      else
9643	ld_shlibs=no
9644      fi
9645      ;;
9646
9647    cygwin* | mingw* | pw32* | cegcc*)
9648      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9649      # as there is no search path for DLLs.
9650      hardcode_libdir_flag_spec='-L$libdir'
9651      export_dynamic_flag_spec='$wl--export-all-symbols'
9652      allow_undefined_flag=unsupported
9653      always_export_symbols=no
9654      enable_shared_with_static_runtimes=yes
9655      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'
9656      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9657
9658      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9659        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9660	# If the export-symbols file already is a .def file, use it as
9661	# is; otherwise, prepend EXPORTS...
9662	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9663          cp $export_symbols $output_objdir/$soname.def;
9664        else
9665          echo EXPORTS > $output_objdir/$soname.def;
9666          cat $export_symbols >> $output_objdir/$soname.def;
9667        fi~
9668        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9669      else
9670	ld_shlibs=no
9671      fi
9672      ;;
9673
9674    haiku*)
9675      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9676      link_all_deplibs=yes
9677      ;;
9678
9679    os2*)
9680      hardcode_libdir_flag_spec='-L$libdir'
9681      hardcode_minus_L=yes
9682      allow_undefined_flag=unsupported
9683      shrext_cmds=.dll
9684      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9685	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9686	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9687	$ECHO EXPORTS >> $output_objdir/$libname.def~
9688	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9689	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9690	emximp -o $lib $output_objdir/$libname.def'
9691      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9692	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9693	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9694	$ECHO EXPORTS >> $output_objdir/$libname.def~
9695	prefix_cmds="$SED"~
9696	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9697	  prefix_cmds="$prefix_cmds -e 1d";
9698	fi~
9699	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9700	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9701	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9702	emximp -o $lib $output_objdir/$libname.def'
9703      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9704      enable_shared_with_static_runtimes=yes
9705      file_list_spec='@'
9706      ;;
9707
9708    interix[3-9]*)
9709      hardcode_direct=no
9710      hardcode_shlibpath_var=no
9711      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9712      export_dynamic_flag_spec='$wl-E'
9713      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9714      # Instead, shared libraries are loaded at an image base (0x10000000 by
9715      # default) and relocated if they conflict, which is a slow very memory
9716      # consuming and fragmenting process.  To avoid this, we pick a random,
9717      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9718      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9719      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9720      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'
9721      ;;
9722
9723    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9724      tmp_diet=no
9725      if test linux-dietlibc = "$host_os"; then
9726	case $cc_basename in
9727	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9728	esac
9729      fi
9730      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9731	 && test no = "$tmp_diet"
9732      then
9733	tmp_addflag=' $pic_flag'
9734	tmp_sharedflag='-shared'
9735	case $cc_basename,$host_cpu in
9736        pgcc*)				# Portland Group C compiler
9737	  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'
9738	  tmp_addflag=' $pic_flag'
9739	  ;;
9740	pgf77* | pgf90* | pgf95* | pgfortran*)
9741					# Portland Group f77 and f90 compilers
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 -Mnomain' ;;
9744	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9745	  tmp_addflag=' -i_dynamic' ;;
9746	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9747	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9748	ifc* | ifort*)			# Intel Fortran compiler
9749	  tmp_addflag=' -nofor_main' ;;
9750	lf95*)				# Lahey Fortran 8.1
9751	  whole_archive_flag_spec=
9752	  tmp_sharedflag='--shared' ;;
9753        nagfor*)                        # NAGFOR 5.3
9754          tmp_sharedflag='-Wl,-shared' ;;
9755	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9756	  tmp_sharedflag='-qmkshrobj'
9757	  tmp_addflag= ;;
9758	nvcc*)	# Cuda Compiler Driver 2.2
9759	  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'
9760	  compiler_needs_object=yes
9761	  ;;
9762	esac
9763	case `$CC -V 2>&1 | $SED 5q` in
9764	*Sun\ C*)			# Sun C 5.9
9765	  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'
9766	  compiler_needs_object=yes
9767	  tmp_sharedflag='-G' ;;
9768	*Sun\ F*)			# Sun Fortran 8.3
9769	  tmp_sharedflag='-G' ;;
9770	esac
9771	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9772
9773        if test yes = "$supports_anon_versioning"; then
9774          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9775            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9776            echo "local: *; };" >> $output_objdir/$libname.ver~
9777            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9778        fi
9779
9780	case $cc_basename in
9781	tcc*)
9782	  export_dynamic_flag_spec='-rdynamic'
9783	  ;;
9784	xlf* | bgf* | bgxlf* | mpixlf*)
9785	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9786	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9787	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9788	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9789	  if test yes = "$supports_anon_versioning"; then
9790	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9791              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9792              echo "local: *; };" >> $output_objdir/$libname.ver~
9793              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9794	  fi
9795	  ;;
9796	esac
9797      else
9798        ld_shlibs=no
9799      fi
9800      ;;
9801
9802    netbsd*)
9803      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9804	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9805	wlarc=
9806      else
9807	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9808	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9809      fi
9810      ;;
9811
9812    solaris*)
9813      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9814	ld_shlibs=no
9815	cat <<_LT_EOF 1>&2
9816
9817*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9818*** create shared libraries on Solaris systems.  Therefore, libtool
9819*** is disabling shared libraries support.  We urge you to upgrade GNU
9820*** binutils to release 2.9.1 or newer.  Another option is to modify
9821*** your PATH or compiler configuration so that the native linker is
9822*** used, and then restart.
9823
9824_LT_EOF
9825      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9826	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9827	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9828      else
9829	ld_shlibs=no
9830      fi
9831      ;;
9832
9833    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9834      case `$LD -v 2>&1` in
9835        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9836	ld_shlibs=no
9837	cat <<_LT_EOF 1>&2
9838
9839*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9840*** reliably create shared libraries on SCO systems.  Therefore, libtool
9841*** is disabling shared libraries support.  We urge you to upgrade GNU
9842*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9843*** your PATH or compiler configuration so that the native linker is
9844*** used, and then restart.
9845
9846_LT_EOF
9847	;;
9848	*)
9849	  # For security reasons, it is highly recommended that you always
9850	  # use absolute paths for naming shared libraries, and exclude the
9851	  # DT_RUNPATH tag from executables and libraries.  But doing so
9852	  # requires that you compile everything twice, which is a pain.
9853	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9854	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9855	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9856	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9857	  else
9858	    ld_shlibs=no
9859	  fi
9860	;;
9861      esac
9862      ;;
9863
9864    sunos4*)
9865      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9866      wlarc=
9867      hardcode_direct=yes
9868      hardcode_shlibpath_var=no
9869      ;;
9870
9871    *)
9872      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9873	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9874	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9875      else
9876	ld_shlibs=no
9877      fi
9878      ;;
9879    esac
9880
9881    if test no = "$ld_shlibs"; then
9882      runpath_var=
9883      hardcode_libdir_flag_spec=
9884      export_dynamic_flag_spec=
9885      whole_archive_flag_spec=
9886    fi
9887  else
9888    # PORTME fill in a description of your system's linker (not GNU ld)
9889    case $host_os in
9890    aix3*)
9891      allow_undefined_flag=unsupported
9892      always_export_symbols=yes
9893      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'
9894      # Note: this linker hardcodes the directories in LIBPATH if there
9895      # are no directories specified by -L.
9896      hardcode_minus_L=yes
9897      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9898	# Neither direct hardcoding nor static linking is supported with a
9899	# broken collect2.
9900	hardcode_direct=unsupported
9901      fi
9902      ;;
9903
9904    aix[4-9]*)
9905      if test ia64 = "$host_cpu"; then
9906	# On IA64, the linker does run time linking by default, so we don't
9907	# have to do anything special.
9908	aix_use_runtimelinking=no
9909	exp_sym_flag='-Bexport'
9910	no_entry_flag=
9911      else
9912	# If we're using GNU nm, then we don't want the "-C" option.
9913	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9914	# Without the "-l" option, or with the "-B" option, AIX nm treats
9915	# weak defined symbols like other global defined symbols, whereas
9916	# GNU nm marks them as "W".
9917	# While the 'weak' keyword is ignored in the Export File, we need
9918	# it in the Import File for the 'aix-soname' feature, so we have
9919	# to replace the "-B" option with "-P" for AIX nm.
9920	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9921	  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'
9922	else
9923	  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'
9924	fi
9925	aix_use_runtimelinking=no
9926
9927	# Test if we are trying to use run time linking or normal
9928	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9929	# have runtime linking enabled, and use it for executables.
9930	# For shared libraries, we enable/disable runtime linking
9931	# depending on the kind of the shared library created -
9932	# when "with_aix_soname,aix_use_runtimelinking" is:
9933	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9934	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9935	#            lib.a           static archive
9936	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9937	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9938	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9939	#            lib.a(lib.so.V) shared, rtl:no
9940	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9941	#            lib.a           static archive
9942	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9943	  for ld_flag in $LDFLAGS; do
9944	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9945	    aix_use_runtimelinking=yes
9946	    break
9947	  fi
9948	  done
9949	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9950	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9951	    # so we don't have lib.a shared libs to link our executables.
9952	    # We have to force runtime linking in this case.
9953	    aix_use_runtimelinking=yes
9954	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9955	  fi
9956	  ;;
9957	esac
9958
9959	exp_sym_flag='-bexport'
9960	no_entry_flag='-bnoentry'
9961      fi
9962
9963      # When large executables or shared objects are built, AIX ld can
9964      # have problems creating the table of contents.  If linking a library
9965      # or program results in "error TOC overflow" add -mminimal-toc to
9966      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9967      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9968
9969      archive_cmds=''
9970      hardcode_direct=yes
9971      hardcode_direct_absolute=yes
9972      hardcode_libdir_separator=':'
9973      link_all_deplibs=yes
9974      file_list_spec='$wl-f,'
9975      case $with_aix_soname,$aix_use_runtimelinking in
9976      aix,*) ;; # traditional, no import file
9977      svr4,* | *,yes) # use import file
9978	# The Import File defines what to hardcode.
9979	hardcode_direct=no
9980	hardcode_direct_absolute=no
9981	;;
9982      esac
9983
9984      if test yes = "$GCC"; then
9985	case $host_os in aix4.[012]|aix4.[012].*)
9986	# We only want to do this on AIX 4.2 and lower, the check
9987	# below for broken collect2 doesn't work under 4.3+
9988	  collect2name=`$CC -print-prog-name=collect2`
9989	  if test -f "$collect2name" &&
9990	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9991	  then
9992	  # We have reworked collect2
9993	  :
9994	  else
9995	  # We have old collect2
9996	  hardcode_direct=unsupported
9997	  # It fails to find uninstalled libraries when the uninstalled
9998	  # path is not listed in the libpath.  Setting hardcode_minus_L
9999	  # to unsupported forces relinking
10000	  hardcode_minus_L=yes
10001	  hardcode_libdir_flag_spec='-L$libdir'
10002	  hardcode_libdir_separator=
10003	  fi
10004	  ;;
10005	esac
10006	shared_flag='-shared'
10007	if test yes = "$aix_use_runtimelinking"; then
10008	  shared_flag="$shared_flag "'$wl-G'
10009	fi
10010	# Need to ensure runtime linking is disabled for the traditional
10011	# shared library, or the linker may eventually find shared libraries
10012	# /with/ Import File - we do not want to mix them.
10013	shared_flag_aix='-shared'
10014	shared_flag_svr4='-shared $wl-G'
10015      else
10016	# not using gcc
10017	if test ia64 = "$host_cpu"; then
10018	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10019	# chokes on -Wl,-G. The following line is correct:
10020	  shared_flag='-G'
10021	else
10022	  if test yes = "$aix_use_runtimelinking"; then
10023	    shared_flag='$wl-G'
10024	  else
10025	    shared_flag='$wl-bM:SRE'
10026	  fi
10027	  shared_flag_aix='$wl-bM:SRE'
10028	  shared_flag_svr4='$wl-G'
10029	fi
10030      fi
10031
10032      export_dynamic_flag_spec='$wl-bexpall'
10033      # It seems that -bexpall does not export symbols beginning with
10034      # underscore (_), so it is better to generate a list of symbols to export.
10035      always_export_symbols=yes
10036      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10037	# Warning - without using the other runtime loading flags (-brtl),
10038	# -berok will link without error, but may produce a broken library.
10039	allow_undefined_flag='-berok'
10040        # Determine the default libpath from the value encoded in an
10041        # empty executable.
10042        if test set = "${lt_cv_aix_libpath+set}"; then
10043  aix_libpath=$lt_cv_aix_libpath
10044else
10045  if test ${lt_cv_aix_libpath_+y}
10046then :
10047  printf %s "(cached) " >&6
10048else $as_nop
10049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10050/* end confdefs.h.  */
10051
10052int
10053main (void)
10054{
10055
10056  ;
10057  return 0;
10058}
10059_ACEOF
10060if ac_fn_c_try_link "$LINENO"
10061then :
10062
10063  lt_aix_libpath_sed='
10064      /Import File Strings/,/^$/ {
10065	  /^0/ {
10066	      s/^0  *\([^ ]*\) *$/\1/
10067	      p
10068	  }
10069      }'
10070  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10071  # Check for a 64-bit object if we didn't find anything.
10072  if test -z "$lt_cv_aix_libpath_"; then
10073    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10074  fi
10075fi
10076rm -f core conftest.err conftest.$ac_objext conftest.beam \
10077    conftest$ac_exeext conftest.$ac_ext
10078  if test -z "$lt_cv_aix_libpath_"; then
10079    lt_cv_aix_libpath_=/usr/lib:/lib
10080  fi
10081
10082fi
10083
10084  aix_libpath=$lt_cv_aix_libpath_
10085fi
10086
10087        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10088        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
10089      else
10090	if test ia64 = "$host_cpu"; then
10091	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10092	  allow_undefined_flag="-z nodefs"
10093	  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"
10094	else
10095	 # Determine the default libpath from the value encoded in an
10096	 # empty executable.
10097	 if test set = "${lt_cv_aix_libpath+set}"; then
10098  aix_libpath=$lt_cv_aix_libpath
10099else
10100  if test ${lt_cv_aix_libpath_+y}
10101then :
10102  printf %s "(cached) " >&6
10103else $as_nop
10104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10105/* end confdefs.h.  */
10106
10107int
10108main (void)
10109{
10110
10111  ;
10112  return 0;
10113}
10114_ACEOF
10115if ac_fn_c_try_link "$LINENO"
10116then :
10117
10118  lt_aix_libpath_sed='
10119      /Import File Strings/,/^$/ {
10120	  /^0/ {
10121	      s/^0  *\([^ ]*\) *$/\1/
10122	      p
10123	  }
10124      }'
10125  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10126  # Check for a 64-bit object if we didn't find anything.
10127  if test -z "$lt_cv_aix_libpath_"; then
10128    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10129  fi
10130fi
10131rm -f core conftest.err conftest.$ac_objext conftest.beam \
10132    conftest$ac_exeext conftest.$ac_ext
10133  if test -z "$lt_cv_aix_libpath_"; then
10134    lt_cv_aix_libpath_=/usr/lib:/lib
10135  fi
10136
10137fi
10138
10139  aix_libpath=$lt_cv_aix_libpath_
10140fi
10141
10142	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10143	  # Warning - without using the other run time loading flags,
10144	  # -berok will link without error, but may produce a broken library.
10145	  no_undefined_flag=' $wl-bernotok'
10146	  allow_undefined_flag=' $wl-berok'
10147	  if test yes = "$with_gnu_ld"; then
10148	    # We only use this code for GNU lds that support --whole-archive.
10149	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10150	  else
10151	    # Exported symbols can be pulled into shared objects from archives
10152	    whole_archive_flag_spec='$convenience'
10153	  fi
10154	  archive_cmds_need_lc=yes
10155	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10156	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10157	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10158	  if test svr4 != "$with_aix_soname"; then
10159	    # This is similar to how AIX traditionally builds its shared libraries.
10160	    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'
10161	  fi
10162	  if test aix != "$with_aix_soname"; then
10163	    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'
10164	  else
10165	    # used by -dlpreopen to get the symbols
10166	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10167	  fi
10168	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10169	fi
10170      fi
10171      ;;
10172
10173    amigaos*)
10174      case $host_cpu in
10175      powerpc)
10176            # see comment about AmigaOS4 .so support
10177            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10178            archive_expsym_cmds=''
10179        ;;
10180      m68k)
10181            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)'
10182            hardcode_libdir_flag_spec='-L$libdir'
10183            hardcode_minus_L=yes
10184        ;;
10185      esac
10186      ;;
10187
10188    bsdi[45]*)
10189      export_dynamic_flag_spec=-rdynamic
10190      ;;
10191
10192    cygwin* | mingw* | pw32* | cegcc*)
10193      # When not using gcc, we currently assume that we are using
10194      # Microsoft Visual C++ or Intel C++ Compiler.
10195      # hardcode_libdir_flag_spec is actually meaningless, as there is
10196      # no search path for DLLs.
10197      case $cc_basename in
10198      cl* | icl*)
10199	# Native MSVC or ICC
10200	hardcode_libdir_flag_spec=' '
10201	allow_undefined_flag=unsupported
10202	always_export_symbols=yes
10203	file_list_spec='@'
10204	# Tell ltmain to make .lib files, not .a files.
10205	libext=lib
10206	# Tell ltmain to make .dll files, not .so files.
10207	shrext_cmds=.dll
10208	# FIXME: Setting linknames here is a bad hack.
10209	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10210	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10211            cp "$export_symbols" "$output_objdir/$soname.def";
10212            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10213          else
10214            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10215          fi~
10216          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10217          linknames='
10218	# The linker will not automatically build a static lib if we build a DLL.
10219	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10220	enable_shared_with_static_runtimes=yes
10221	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10222	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10223	# Don't use ranlib
10224	old_postinstall_cmds='chmod 644 $oldlib'
10225	postlink_cmds='lt_outputfile="@OUTPUT@"~
10226          lt_tool_outputfile="@TOOL_OUTPUT@"~
10227          case $lt_outputfile in
10228            *.exe|*.EXE) ;;
10229            *)
10230              lt_outputfile=$lt_outputfile.exe
10231              lt_tool_outputfile=$lt_tool_outputfile.exe
10232              ;;
10233          esac~
10234          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10235            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10236            $RM "$lt_outputfile.manifest";
10237          fi'
10238	;;
10239      *)
10240	# Assume MSVC and ICC wrapper
10241	hardcode_libdir_flag_spec=' '
10242	allow_undefined_flag=unsupported
10243	# Tell ltmain to make .lib files, not .a files.
10244	libext=lib
10245	# Tell ltmain to make .dll files, not .so files.
10246	shrext_cmds=.dll
10247	# FIXME: Setting linknames here is a bad hack.
10248	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10249	# The linker will automatically build a .lib file if we build a DLL.
10250	old_archive_from_new_cmds='true'
10251	# FIXME: Should let the user specify the lib program.
10252	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10253	enable_shared_with_static_runtimes=yes
10254	;;
10255      esac
10256      ;;
10257
10258    darwin* | rhapsody*)
10259
10260
10261  archive_cmds_need_lc=no
10262  hardcode_direct=no
10263  hardcode_automatic=yes
10264  hardcode_shlibpath_var=unsupported
10265  if test yes = "$lt_cv_ld_force_load"; then
10266    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\"`'
10267
10268  else
10269    whole_archive_flag_spec=''
10270  fi
10271  link_all_deplibs=yes
10272  allow_undefined_flag=$_lt_dar_allow_undefined
10273  case $cc_basename in
10274     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10275     *) _lt_dar_can_shared=$GCC ;;
10276  esac
10277  if test yes = "$_lt_dar_can_shared"; then
10278    output_verbose_link_cmd=func_echo_all
10279    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10280    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10281    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"
10282    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"
10283
10284  else
10285  ld_shlibs=no
10286  fi
10287
10288      ;;
10289
10290    dgux*)
10291      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10292      hardcode_libdir_flag_spec='-L$libdir'
10293      hardcode_shlibpath_var=no
10294      ;;
10295
10296    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10297    # support.  Future versions do this automatically, but an explicit c++rt0.o
10298    # does not break anything, and helps significantly (at the cost of a little
10299    # extra space).
10300    freebsd2.2*)
10301      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10302      hardcode_libdir_flag_spec='-R$libdir'
10303      hardcode_direct=yes
10304      hardcode_shlibpath_var=no
10305      ;;
10306
10307    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10308    freebsd2.*)
10309      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10310      hardcode_direct=yes
10311      hardcode_minus_L=yes
10312      hardcode_shlibpath_var=no
10313      ;;
10314
10315    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10316    freebsd* | dragonfly* | midnightbsd*)
10317      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10318      hardcode_libdir_flag_spec='-R$libdir'
10319      hardcode_direct=yes
10320      hardcode_shlibpath_var=no
10321      ;;
10322
10323    hpux9*)
10324      if test yes = "$GCC"; then
10325	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'
10326      else
10327	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'
10328      fi
10329      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10330      hardcode_libdir_separator=:
10331      hardcode_direct=yes
10332
10333      # hardcode_minus_L: Not really in the search PATH,
10334      # but as the default location of the library.
10335      hardcode_minus_L=yes
10336      export_dynamic_flag_spec='$wl-E'
10337      ;;
10338
10339    hpux10*)
10340      if test yes,no = "$GCC,$with_gnu_ld"; then
10341	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10342      else
10343	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10344      fi
10345      if test no = "$with_gnu_ld"; then
10346	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10347	hardcode_libdir_separator=:
10348	hardcode_direct=yes
10349	hardcode_direct_absolute=yes
10350	export_dynamic_flag_spec='$wl-E'
10351	# hardcode_minus_L: Not really in the search PATH,
10352	# but as the default location of the library.
10353	hardcode_minus_L=yes
10354      fi
10355      ;;
10356
10357    hpux11*)
10358      if test yes,no = "$GCC,$with_gnu_ld"; then
10359	case $host_cpu in
10360	hppa*64*)
10361	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10362	  ;;
10363	ia64*)
10364	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10365	  ;;
10366	*)
10367	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10368	  ;;
10369	esac
10370      else
10371	case $host_cpu in
10372	hppa*64*)
10373	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10374	  ;;
10375	ia64*)
10376	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10377	  ;;
10378	*)
10379
10380	  # Older versions of the 11.00 compiler do not understand -b yet
10381	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10382	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10383printf %s "checking if $CC understands -b... " >&6; }
10384if test ${lt_cv_prog_compiler__b+y}
10385then :
10386  printf %s "(cached) " >&6
10387else $as_nop
10388  lt_cv_prog_compiler__b=no
10389   save_LDFLAGS=$LDFLAGS
10390   LDFLAGS="$LDFLAGS -b"
10391   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10392   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10393     # The linker can only warn and ignore the option if not recognized
10394     # So say no if there are warnings
10395     if test -s conftest.err; then
10396       # Append any errors to the config.log.
10397       cat conftest.err 1>&5
10398       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10399       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10400       if diff conftest.exp conftest.er2 >/dev/null; then
10401         lt_cv_prog_compiler__b=yes
10402       fi
10403     else
10404       lt_cv_prog_compiler__b=yes
10405     fi
10406   fi
10407   $RM -r conftest*
10408   LDFLAGS=$save_LDFLAGS
10409
10410fi
10411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10412printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10413
10414if test yes = "$lt_cv_prog_compiler__b"; then
10415    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10416else
10417    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10418fi
10419
10420	  ;;
10421	esac
10422      fi
10423      if test no = "$with_gnu_ld"; then
10424	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10425	hardcode_libdir_separator=:
10426
10427	case $host_cpu in
10428	hppa*64*|ia64*)
10429	  hardcode_direct=no
10430	  hardcode_shlibpath_var=no
10431	  ;;
10432	*)
10433	  hardcode_direct=yes
10434	  hardcode_direct_absolute=yes
10435	  export_dynamic_flag_spec='$wl-E'
10436
10437	  # hardcode_minus_L: Not really in the search PATH,
10438	  # but as the default location of the library.
10439	  hardcode_minus_L=yes
10440	  ;;
10441	esac
10442      fi
10443      ;;
10444
10445    irix5* | irix6* | nonstopux*)
10446      if test yes = "$GCC"; then
10447	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'
10448	# Try to use the -exported_symbol ld option, if it does not
10449	# work, assume that -exports_file does not work either and
10450	# implicitly export all symbols.
10451	# This should be the same for all languages, so no per-tag cache variable.
10452	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10453printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10454if test ${lt_cv_irix_exported_symbol+y}
10455then :
10456  printf %s "(cached) " >&6
10457else $as_nop
10458  save_LDFLAGS=$LDFLAGS
10459	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10460	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10461/* end confdefs.h.  */
10462int foo (void) { return 0; }
10463_ACEOF
10464if ac_fn_c_try_link "$LINENO"
10465then :
10466  lt_cv_irix_exported_symbol=yes
10467else $as_nop
10468  lt_cv_irix_exported_symbol=no
10469fi
10470rm -f core conftest.err conftest.$ac_objext conftest.beam \
10471    conftest$ac_exeext conftest.$ac_ext
10472           LDFLAGS=$save_LDFLAGS
10473fi
10474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10475printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10476	if test yes = "$lt_cv_irix_exported_symbol"; then
10477          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'
10478	fi
10479      else
10480	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'
10481	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'
10482      fi
10483      archive_cmds_need_lc='no'
10484      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10485      hardcode_libdir_separator=:
10486      inherit_rpath=yes
10487      link_all_deplibs=yes
10488      ;;
10489
10490    linux*)
10491      case $cc_basename in
10492      tcc*)
10493	# Fabrice Bellard et al's Tiny C Compiler
10494	ld_shlibs=yes
10495	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10496	;;
10497      esac
10498      ;;
10499
10500    netbsd*)
10501      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10502	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10503      else
10504	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10505      fi
10506      hardcode_libdir_flag_spec='-R$libdir'
10507      hardcode_direct=yes
10508      hardcode_shlibpath_var=no
10509      ;;
10510
10511    newsos6)
10512      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10513      hardcode_direct=yes
10514      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10515      hardcode_libdir_separator=:
10516      hardcode_shlibpath_var=no
10517      ;;
10518
10519    *nto* | *qnx*)
10520      ;;
10521
10522    openbsd* | bitrig*)
10523      if test -f /usr/libexec/ld.so; then
10524	hardcode_direct=yes
10525	hardcode_shlibpath_var=no
10526	hardcode_direct_absolute=yes
10527	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10528	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10529	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10530	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10531	  export_dynamic_flag_spec='$wl-E'
10532	else
10533	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10534	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10535	fi
10536      else
10537	ld_shlibs=no
10538      fi
10539      ;;
10540
10541    os2*)
10542      hardcode_libdir_flag_spec='-L$libdir'
10543      hardcode_minus_L=yes
10544      allow_undefined_flag=unsupported
10545      shrext_cmds=.dll
10546      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10547	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10548	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10549	$ECHO EXPORTS >> $output_objdir/$libname.def~
10550	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10551	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10552	emximp -o $lib $output_objdir/$libname.def'
10553      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10554	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10555	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10556	$ECHO EXPORTS >> $output_objdir/$libname.def~
10557	prefix_cmds="$SED"~
10558	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10559	  prefix_cmds="$prefix_cmds -e 1d";
10560	fi~
10561	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10562	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10563	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10564	emximp -o $lib $output_objdir/$libname.def'
10565      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10566      enable_shared_with_static_runtimes=yes
10567      file_list_spec='@'
10568      ;;
10569
10570    osf3*)
10571      if test yes = "$GCC"; then
10572	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10573	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'
10574      else
10575	allow_undefined_flag=' -expect_unresolved \*'
10576	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'
10577      fi
10578      archive_cmds_need_lc='no'
10579      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10580      hardcode_libdir_separator=:
10581      ;;
10582
10583    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10584      if test yes = "$GCC"; then
10585	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10586	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'
10587	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10588      else
10589	allow_undefined_flag=' -expect_unresolved \*'
10590	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'
10591	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~
10592          $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'
10593
10594	# Both c and cxx compiler support -rpath directly
10595	hardcode_libdir_flag_spec='-rpath $libdir'
10596      fi
10597      archive_cmds_need_lc='no'
10598      hardcode_libdir_separator=:
10599      ;;
10600
10601    solaris*)
10602      no_undefined_flag=' -z defs'
10603      if test yes = "$GCC"; then
10604	wlarc='$wl'
10605	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10606	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10607          $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'
10608      else
10609	case `$CC -V 2>&1` in
10610	*"Compilers 5.0"*)
10611	  wlarc=''
10612	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10613	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10614            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10615	  ;;
10616	*)
10617	  wlarc='$wl'
10618	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10619	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10620            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10621	  ;;
10622	esac
10623      fi
10624      hardcode_libdir_flag_spec='-R$libdir'
10625      hardcode_shlibpath_var=no
10626      case $host_os in
10627      solaris2.[0-5] | solaris2.[0-5].*) ;;
10628      *)
10629	# The compiler driver will combine and reorder linker options,
10630	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10631	# but is careful enough not to reorder.
10632	# Supported since Solaris 2.6 (maybe 2.5.1?)
10633	if test yes = "$GCC"; then
10634	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10635	else
10636	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10637	fi
10638	;;
10639      esac
10640      link_all_deplibs=yes
10641      ;;
10642
10643    sunos4*)
10644      if test sequent = "$host_vendor"; then
10645	# Use $CC to link under sequent, because it throws in some extra .o
10646	# files that make .init and .fini sections work.
10647	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10648      else
10649	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10650      fi
10651      hardcode_libdir_flag_spec='-L$libdir'
10652      hardcode_direct=yes
10653      hardcode_minus_L=yes
10654      hardcode_shlibpath_var=no
10655      ;;
10656
10657    sysv4)
10658      case $host_vendor in
10659	sni)
10660	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10661	  hardcode_direct=yes # is this really true???
10662	;;
10663	siemens)
10664	  ## LD is ld it makes a PLAMLIB
10665	  ## CC just makes a GrossModule.
10666	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10667	  reload_cmds='$CC -r -o $output$reload_objs'
10668	  hardcode_direct=no
10669        ;;
10670	motorola)
10671	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10672	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10673	;;
10674      esac
10675      runpath_var='LD_RUN_PATH'
10676      hardcode_shlibpath_var=no
10677      ;;
10678
10679    sysv4.3*)
10680      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10681      hardcode_shlibpath_var=no
10682      export_dynamic_flag_spec='-Bexport'
10683      ;;
10684
10685    sysv4*MP*)
10686      if test -d /usr/nec; then
10687	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10688	hardcode_shlibpath_var=no
10689	runpath_var=LD_RUN_PATH
10690	hardcode_runpath_var=yes
10691	ld_shlibs=yes
10692      fi
10693      ;;
10694
10695    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10696      no_undefined_flag='$wl-z,text'
10697      archive_cmds_need_lc=no
10698      hardcode_shlibpath_var=no
10699      runpath_var='LD_RUN_PATH'
10700
10701      if test yes = "$GCC"; then
10702	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10703	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10704      else
10705	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10706	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10707      fi
10708      ;;
10709
10710    sysv5* | sco3.2v5* | sco5v6*)
10711      # Note: We CANNOT use -z defs as we might desire, because we do not
10712      # link with -lc, and that would cause any symbols used from libc to
10713      # always be unresolved, which means just about no library would
10714      # ever link correctly.  If we're not using GNU ld we use -z text
10715      # though, which does catch some bad symbols but isn't as heavy-handed
10716      # as -z defs.
10717      no_undefined_flag='$wl-z,text'
10718      allow_undefined_flag='$wl-z,nodefs'
10719      archive_cmds_need_lc=no
10720      hardcode_shlibpath_var=no
10721      hardcode_libdir_flag_spec='$wl-R,$libdir'
10722      hardcode_libdir_separator=':'
10723      link_all_deplibs=yes
10724      export_dynamic_flag_spec='$wl-Bexport'
10725      runpath_var='LD_RUN_PATH'
10726
10727      if test yes = "$GCC"; then
10728	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10729	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10730      else
10731	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10732	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10733      fi
10734      ;;
10735
10736    uts4*)
10737      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10738      hardcode_libdir_flag_spec='-L$libdir'
10739      hardcode_shlibpath_var=no
10740      ;;
10741
10742    *)
10743      ld_shlibs=no
10744      ;;
10745    esac
10746
10747    if test sni = "$host_vendor"; then
10748      case $host in
10749      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10750	export_dynamic_flag_spec='$wl-Blargedynsym'
10751	;;
10752      esac
10753    fi
10754  fi
10755
10756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10757printf "%s\n" "$ld_shlibs" >&6; }
10758test no = "$ld_shlibs" && can_build_shared=no
10759
10760with_gnu_ld=$with_gnu_ld
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776#
10777# Do we need to explicitly link libc?
10778#
10779case "x$archive_cmds_need_lc" in
10780x|xyes)
10781  # Assume -lc should be added
10782  archive_cmds_need_lc=yes
10783
10784  if test yes,yes = "$GCC,$enable_shared"; then
10785    case $archive_cmds in
10786    *'~'*)
10787      # FIXME: we may have to deal with multi-command sequences.
10788      ;;
10789    '$CC '*)
10790      # Test whether the compiler implicitly links with -lc since on some
10791      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10792      # to ld, don't add -lc before -lgcc.
10793      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10794printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10795if test ${lt_cv_archive_cmds_need_lc+y}
10796then :
10797  printf %s "(cached) " >&6
10798else $as_nop
10799  $RM conftest*
10800	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10801
10802	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10803  (eval $ac_compile) 2>&5
10804  ac_status=$?
10805  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10806  test $ac_status = 0; } 2>conftest.err; then
10807	  soname=conftest
10808	  lib=conftest
10809	  libobjs=conftest.$ac_objext
10810	  deplibs=
10811	  wl=$lt_prog_compiler_wl
10812	  pic_flag=$lt_prog_compiler_pic
10813	  compiler_flags=-v
10814	  linker_flags=-v
10815	  verstring=
10816	  output_objdir=.
10817	  libname=conftest
10818	  lt_save_allow_undefined_flag=$allow_undefined_flag
10819	  allow_undefined_flag=
10820	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10821  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10822  ac_status=$?
10823  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10824  test $ac_status = 0; }
10825	  then
10826	    lt_cv_archive_cmds_need_lc=no
10827	  else
10828	    lt_cv_archive_cmds_need_lc=yes
10829	  fi
10830	  allow_undefined_flag=$lt_save_allow_undefined_flag
10831	else
10832	  cat conftest.err 1>&5
10833	fi
10834	$RM conftest*
10835
10836fi
10837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10838printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10839      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10840      ;;
10841    esac
10842  fi
10843  ;;
10844esac
10845
10846
10847
10848
10849
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  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10998printf %s "checking dynamic linker characteristics... " >&6; }
10999
11000if test yes = "$GCC"; then
11001  case $host_os in
11002    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11003    *) lt_awk_arg='/^libraries:/' ;;
11004  esac
11005  case $host_os in
11006    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11007    *) lt_sed_strip_eq='s|=/|/|g' ;;
11008  esac
11009  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11010  case $lt_search_path_spec in
11011  *\;*)
11012    # if the path contains ";" then we assume it to be the separator
11013    # otherwise default to the standard path separator (i.e. ":") - it is
11014    # assumed that no part of a normal pathname contains ";" but that should
11015    # okay in the real world where ";" in dirpaths is itself problematic.
11016    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11017    ;;
11018  *)
11019    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11020    ;;
11021  esac
11022  # Ok, now we have the path, separated by spaces, we can step through it
11023  # and add multilib dir if necessary...
11024  lt_tmp_lt_search_path_spec=
11025  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11026  # ...but if some path component already ends with the multilib dir we assume
11027  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11028  case "$lt_multi_os_dir; $lt_search_path_spec " in
11029  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11030    lt_multi_os_dir=
11031    ;;
11032  esac
11033  for lt_sys_path in $lt_search_path_spec; do
11034    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11035      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11036    elif test -n "$lt_multi_os_dir"; then
11037      test -d "$lt_sys_path" && \
11038	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11039    fi
11040  done
11041  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11042BEGIN {RS = " "; FS = "/|\n";} {
11043  lt_foo = "";
11044  lt_count = 0;
11045  for (lt_i = NF; lt_i > 0; lt_i--) {
11046    if ($lt_i != "" && $lt_i != ".") {
11047      if ($lt_i == "..") {
11048        lt_count++;
11049      } else {
11050        if (lt_count == 0) {
11051          lt_foo = "/" $lt_i lt_foo;
11052        } else {
11053          lt_count--;
11054        }
11055      }
11056    }
11057  }
11058  if (lt_foo != "") { lt_freq[lt_foo]++; }
11059  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11060}'`
11061  # AWK program above erroneously prepends '/' to C:/dos/paths
11062  # for these hosts.
11063  case $host_os in
11064    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11065      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11066  esac
11067  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11068else
11069  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11070fi
11071library_names_spec=
11072libname_spec='lib$name'
11073soname_spec=
11074shrext_cmds=.so
11075postinstall_cmds=
11076postuninstall_cmds=
11077finish_cmds=
11078finish_eval=
11079shlibpath_var=
11080shlibpath_overrides_runpath=unknown
11081version_type=none
11082dynamic_linker="$host_os ld.so"
11083sys_lib_dlsearch_path_spec="/lib /usr/lib"
11084need_lib_prefix=unknown
11085hardcode_into_libs=no
11086
11087# when you set need_version to no, make sure it does not cause -set_version
11088# flags to be left without arguments
11089need_version=unknown
11090
11091
11092
11093case $host_os in
11094aix3*)
11095  version_type=linux # correct to gnu/linux during the next big refactor
11096  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11097  shlibpath_var=LIBPATH
11098
11099  # AIX 3 has no versioning support, so we append a major version to the name.
11100  soname_spec='$libname$release$shared_ext$major'
11101  ;;
11102
11103aix[4-9]*)
11104  version_type=linux # correct to gnu/linux during the next big refactor
11105  need_lib_prefix=no
11106  need_version=no
11107  hardcode_into_libs=yes
11108  if test ia64 = "$host_cpu"; then
11109    # AIX 5 supports IA64
11110    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11111    shlibpath_var=LD_LIBRARY_PATH
11112  else
11113    # With GCC up to 2.95.x, collect2 would create an import file
11114    # for dependence libraries.  The import file would start with
11115    # the line '#! .'.  This would cause the generated library to
11116    # depend on '.', always an invalid library.  This was fixed in
11117    # development snapshots of GCC prior to 3.0.
11118    case $host_os in
11119      aix4 | aix4.[01] | aix4.[01].*)
11120      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11121	   echo ' yes '
11122	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11123	:
11124      else
11125	can_build_shared=no
11126      fi
11127      ;;
11128    esac
11129    # Using Import Files as archive members, it is possible to support
11130    # filename-based versioning of shared library archives on AIX. While
11131    # this would work for both with and without runtime linking, it will
11132    # prevent static linking of such archives. So we do filename-based
11133    # shared library versioning with .so extension only, which is used
11134    # when both runtime linking and shared linking is enabled.
11135    # Unfortunately, runtime linking may impact performance, so we do
11136    # not want this to be the default eventually. Also, we use the
11137    # versioned .so libs for executables only if there is the -brtl
11138    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11139    # To allow for filename-based versioning support, we need to create
11140    # libNAME.so.V as an archive file, containing:
11141    # *) an Import File, referring to the versioned filename of the
11142    #    archive as well as the shared archive member, telling the
11143    #    bitwidth (32 or 64) of that shared object, and providing the
11144    #    list of exported symbols of that shared object, eventually
11145    #    decorated with the 'weak' keyword
11146    # *) the shared object with the F_LOADONLY flag set, to really avoid
11147    #    it being seen by the linker.
11148    # At run time we better use the real file rather than another symlink,
11149    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11150
11151    case $with_aix_soname,$aix_use_runtimelinking in
11152    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11153    # soname into executable. Probably we can add versioning support to
11154    # collect2, so additional links can be useful in future.
11155    aix,yes) # traditional libtool
11156      dynamic_linker='AIX unversionable lib.so'
11157      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11158      # instead of lib<name>.a to let people know that these are not
11159      # typical AIX shared libraries.
11160      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11161      ;;
11162    aix,no) # traditional AIX only
11163      dynamic_linker='AIX lib.a(lib.so.V)'
11164      # We preserve .a as extension for shared libraries through AIX4.2
11165      # and later when we are not doing run time linking.
11166      library_names_spec='$libname$release.a $libname.a'
11167      soname_spec='$libname$release$shared_ext$major'
11168      ;;
11169    svr4,*) # full svr4 only
11170      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11171      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11172      # We do not specify a path in Import Files, so LIBPATH fires.
11173      shlibpath_overrides_runpath=yes
11174      ;;
11175    *,yes) # both, prefer svr4
11176      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11177      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11178      # unpreferred sharedlib libNAME.a needs extra handling
11179      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"'
11180      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"'
11181      # We do not specify a path in Import Files, so LIBPATH fires.
11182      shlibpath_overrides_runpath=yes
11183      ;;
11184    *,no) # both, prefer aix
11185      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11186      library_names_spec='$libname$release.a $libname.a'
11187      soname_spec='$libname$release$shared_ext$major'
11188      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11189      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)'
11190      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"'
11191      ;;
11192    esac
11193    shlibpath_var=LIBPATH
11194  fi
11195  ;;
11196
11197amigaos*)
11198  case $host_cpu in
11199  powerpc)
11200    # Since July 2007 AmigaOS4 officially supports .so libraries.
11201    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11202    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11203    ;;
11204  m68k)
11205    library_names_spec='$libname.ixlibrary $libname.a'
11206    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11207    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'
11208    ;;
11209  esac
11210  ;;
11211
11212beos*)
11213  library_names_spec='$libname$shared_ext'
11214  dynamic_linker="$host_os ld.so"
11215  shlibpath_var=LIBRARY_PATH
11216  ;;
11217
11218bsdi[45]*)
11219  version_type=linux # correct to gnu/linux during the next big refactor
11220  need_version=no
11221  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11222  soname_spec='$libname$release$shared_ext$major'
11223  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11224  shlibpath_var=LD_LIBRARY_PATH
11225  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11226  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11227  # the default ld.so.conf also contains /usr/contrib/lib and
11228  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11229  # libtool to hard-code these into programs
11230  ;;
11231
11232cygwin* | mingw* | pw32* | cegcc*)
11233  version_type=windows
11234  shrext_cmds=.dll
11235  need_version=no
11236  need_lib_prefix=no
11237
11238  case $GCC,$cc_basename in
11239  yes,*)
11240    # gcc
11241    library_names_spec='$libname.dll.a'
11242    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11243    postinstall_cmds='base_file=`basename \$file`~
11244      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11245      dldir=$destdir/`dirname \$dlpath`~
11246      test -d \$dldir || mkdir -p \$dldir~
11247      $install_prog $dir/$dlname \$dldir/$dlname~
11248      chmod a+x \$dldir/$dlname~
11249      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11250        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11251      fi'
11252    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11253      dlpath=$dir/\$dldll~
11254       $RM \$dlpath'
11255    shlibpath_overrides_runpath=yes
11256
11257    case $host_os in
11258    cygwin*)
11259      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11260      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11261
11262      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11263      ;;
11264    mingw* | cegcc*)
11265      # MinGW DLLs use traditional 'lib' prefix
11266      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11267      ;;
11268    pw32*)
11269      # pw32 DLLs use 'pw' prefix rather than 'lib'
11270      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11271      ;;
11272    esac
11273    dynamic_linker='Win32 ld.exe'
11274    ;;
11275
11276  *,cl* | *,icl*)
11277    # Native MSVC or ICC
11278    libname_spec='$name'
11279    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11280    library_names_spec='$libname.dll.lib'
11281
11282    case $build_os in
11283    mingw*)
11284      sys_lib_search_path_spec=
11285      lt_save_ifs=$IFS
11286      IFS=';'
11287      for lt_path in $LIB
11288      do
11289        IFS=$lt_save_ifs
11290        # Let DOS variable expansion print the short 8.3 style file name.
11291        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11292        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11293      done
11294      IFS=$lt_save_ifs
11295      # Convert to MSYS style.
11296      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11297      ;;
11298    cygwin*)
11299      # Convert to unix form, then to dos form, then back to unix form
11300      # but this time dos style (no spaces!) so that the unix form looks
11301      # like /cygdrive/c/PROGRA~1:/cygdr...
11302      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11303      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11304      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11305      ;;
11306    *)
11307      sys_lib_search_path_spec=$LIB
11308      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11309        # It is most probably a Windows format PATH.
11310        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11311      else
11312        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11313      fi
11314      # FIXME: find the short name or the path components, as spaces are
11315      # common. (e.g. "Program Files" -> "PROGRA~1")
11316      ;;
11317    esac
11318
11319    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11320    postinstall_cmds='base_file=`basename \$file`~
11321      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11322      dldir=$destdir/`dirname \$dlpath`~
11323      test -d \$dldir || mkdir -p \$dldir~
11324      $install_prog $dir/$dlname \$dldir/$dlname'
11325    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11326      dlpath=$dir/\$dldll~
11327       $RM \$dlpath'
11328    shlibpath_overrides_runpath=yes
11329    dynamic_linker='Win32 link.exe'
11330    ;;
11331
11332  *)
11333    # Assume MSVC and ICC wrapper
11334    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11335    dynamic_linker='Win32 ld.exe'
11336    ;;
11337  esac
11338  # FIXME: first we should search . and the directory the executable is in
11339  shlibpath_var=PATH
11340  ;;
11341
11342darwin* | rhapsody*)
11343  dynamic_linker="$host_os dyld"
11344  version_type=darwin
11345  need_lib_prefix=no
11346  need_version=no
11347  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11348  soname_spec='$libname$release$major$shared_ext'
11349  shlibpath_overrides_runpath=yes
11350  shlibpath_var=DYLD_LIBRARY_PATH
11351  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11352
11353  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11354  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11355  ;;
11356
11357dgux*)
11358  version_type=linux # correct to gnu/linux during the next big refactor
11359  need_lib_prefix=no
11360  need_version=no
11361  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11362  soname_spec='$libname$release$shared_ext$major'
11363  shlibpath_var=LD_LIBRARY_PATH
11364  ;;
11365
11366freebsd* | dragonfly* | midnightbsd*)
11367  # DragonFly does not have aout.  When/if they implement a new
11368  # versioning mechanism, adjust this.
11369  if test -x /usr/bin/objformat; then
11370    objformat=`/usr/bin/objformat`
11371  else
11372    case $host_os in
11373    freebsd[23].*) objformat=aout ;;
11374    *) objformat=elf ;;
11375    esac
11376  fi
11377  version_type=freebsd-$objformat
11378  case $version_type in
11379    freebsd-elf*)
11380      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11381      soname_spec='$libname$release$shared_ext$major'
11382      need_version=no
11383      need_lib_prefix=no
11384      ;;
11385    freebsd-*)
11386      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11387      need_version=yes
11388      ;;
11389  esac
11390  shlibpath_var=LD_LIBRARY_PATH
11391  case $host_os in
11392  freebsd2.*)
11393    shlibpath_overrides_runpath=yes
11394    ;;
11395  freebsd3.[01]* | freebsdelf3.[01]*)
11396    shlibpath_overrides_runpath=yes
11397    hardcode_into_libs=yes
11398    ;;
11399  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11400  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11401    shlibpath_overrides_runpath=no
11402    hardcode_into_libs=yes
11403    ;;
11404  *) # from 4.6 on, and DragonFly
11405    shlibpath_overrides_runpath=yes
11406    hardcode_into_libs=yes
11407    ;;
11408  esac
11409  ;;
11410
11411haiku*)
11412  version_type=linux # correct to gnu/linux during the next big refactor
11413  need_lib_prefix=no
11414  need_version=no
11415  dynamic_linker="$host_os runtime_loader"
11416  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11417  soname_spec='$libname$release$shared_ext$major'
11418  shlibpath_var=LIBRARY_PATH
11419  shlibpath_overrides_runpath=no
11420  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11421  hardcode_into_libs=yes
11422  ;;
11423
11424hpux9* | hpux10* | hpux11*)
11425  # Give a soname corresponding to the major version so that dld.sl refuses to
11426  # link against other versions.
11427  version_type=sunos
11428  need_lib_prefix=no
11429  need_version=no
11430  case $host_cpu in
11431  ia64*)
11432    shrext_cmds='.so'
11433    hardcode_into_libs=yes
11434    dynamic_linker="$host_os dld.so"
11435    shlibpath_var=LD_LIBRARY_PATH
11436    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11437    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11438    soname_spec='$libname$release$shared_ext$major'
11439    if test 32 = "$HPUX_IA64_MODE"; then
11440      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11441      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11442    else
11443      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11444      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11445    fi
11446    ;;
11447  hppa*64*)
11448    shrext_cmds='.sl'
11449    hardcode_into_libs=yes
11450    dynamic_linker="$host_os dld.sl"
11451    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11452    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11453    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11454    soname_spec='$libname$release$shared_ext$major'
11455    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11456    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11457    ;;
11458  *)
11459    shrext_cmds='.sl'
11460    dynamic_linker="$host_os dld.sl"
11461    shlibpath_var=SHLIB_PATH
11462    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11463    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11464    soname_spec='$libname$release$shared_ext$major'
11465    ;;
11466  esac
11467  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11468  postinstall_cmds='chmod 555 $lib'
11469  # or fails outright, so override atomically:
11470  install_override_mode=555
11471  ;;
11472
11473interix[3-9]*)
11474  version_type=linux # correct to gnu/linux during the next big refactor
11475  need_lib_prefix=no
11476  need_version=no
11477  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11478  soname_spec='$libname$release$shared_ext$major'
11479  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11480  shlibpath_var=LD_LIBRARY_PATH
11481  shlibpath_overrides_runpath=no
11482  hardcode_into_libs=yes
11483  ;;
11484
11485irix5* | irix6* | nonstopux*)
11486  case $host_os in
11487    nonstopux*) version_type=nonstopux ;;
11488    *)
11489	if test yes = "$lt_cv_prog_gnu_ld"; then
11490		version_type=linux # correct to gnu/linux during the next big refactor
11491	else
11492		version_type=irix
11493	fi ;;
11494  esac
11495  need_lib_prefix=no
11496  need_version=no
11497  soname_spec='$libname$release$shared_ext$major'
11498  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11499  case $host_os in
11500  irix5* | nonstopux*)
11501    libsuff= shlibsuff=
11502    ;;
11503  *)
11504    case $LD in # libtool.m4 will add one of these switches to LD
11505    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11506      libsuff= shlibsuff= libmagic=32-bit;;
11507    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11508      libsuff=32 shlibsuff=N32 libmagic=N32;;
11509    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11510      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11511    *) libsuff= shlibsuff= libmagic=never-match;;
11512    esac
11513    ;;
11514  esac
11515  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11516  shlibpath_overrides_runpath=no
11517  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11518  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11519  hardcode_into_libs=yes
11520  ;;
11521
11522# No shared lib support for Linux oldld, aout, or coff.
11523linux*oldld* | linux*aout* | linux*coff*)
11524  dynamic_linker=no
11525  ;;
11526
11527linux*android*)
11528  version_type=none # Android doesn't support versioned libraries.
11529  need_lib_prefix=no
11530  need_version=no
11531  library_names_spec='$libname$release$shared_ext'
11532  soname_spec='$libname$release$shared_ext'
11533  finish_cmds=
11534  shlibpath_var=LD_LIBRARY_PATH
11535  shlibpath_overrides_runpath=yes
11536
11537  # This implies no fast_install, which is unacceptable.
11538  # Some rework will be needed to allow for fast_install
11539  # before this can be enabled.
11540  hardcode_into_libs=yes
11541
11542  dynamic_linker='Android linker'
11543  # Don't embed -rpath directories since the linker doesn't support them.
11544  hardcode_libdir_flag_spec='-L$libdir'
11545  ;;
11546
11547# This must be glibc/ELF.
11548linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11549  version_type=linux # correct to gnu/linux during the next big refactor
11550  need_lib_prefix=no
11551  need_version=no
11552  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11553  soname_spec='$libname$release$shared_ext$major'
11554  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11555  shlibpath_var=LD_LIBRARY_PATH
11556  shlibpath_overrides_runpath=no
11557
11558  # Some binutils ld are patched to set DT_RUNPATH
11559  if test ${lt_cv_shlibpath_overrides_runpath+y}
11560then :
11561  printf %s "(cached) " >&6
11562else $as_nop
11563  lt_cv_shlibpath_overrides_runpath=no
11564    save_LDFLAGS=$LDFLAGS
11565    save_libdir=$libdir
11566    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11567	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11568    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11569/* end confdefs.h.  */
11570
11571int
11572main (void)
11573{
11574
11575  ;
11576  return 0;
11577}
11578_ACEOF
11579if ac_fn_c_try_link "$LINENO"
11580then :
11581  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11582then :
11583  lt_cv_shlibpath_overrides_runpath=yes
11584fi
11585fi
11586rm -f core conftest.err conftest.$ac_objext conftest.beam \
11587    conftest$ac_exeext conftest.$ac_ext
11588    LDFLAGS=$save_LDFLAGS
11589    libdir=$save_libdir
11590
11591fi
11592
11593  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11594
11595  # This implies no fast_install, which is unacceptable.
11596  # Some rework will be needed to allow for fast_install
11597  # before this can be enabled.
11598  hardcode_into_libs=yes
11599
11600  # Ideally, we could use ldconfig to report *all* directores which are
11601  # searched for libraries, however this is still not possible.  Aside from not
11602  # being certain /sbin/ldconfig is available, command
11603  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11604  # even though it is searched at run-time.  Try to do the best guess by
11605  # appending ld.so.conf contents (and includes) to the search path.
11606  if test -f /etc/ld.so.conf; then
11607    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' ' '`
11608    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11609  fi
11610
11611  # We used to test for /lib/ld.so.1 and disable shared libraries on
11612  # powerpc, because MkLinux only supported shared libraries with the
11613  # GNU dynamic linker.  Since this was broken with cross compilers,
11614  # most powerpc-linux boxes support dynamic linking these days and
11615  # people can always --disable-shared, the test was removed, and we
11616  # assume the GNU/Linux dynamic linker is in use.
11617  dynamic_linker='GNU/Linux ld.so'
11618  ;;
11619
11620netbsd*)
11621  version_type=sunos
11622  need_lib_prefix=no
11623  need_version=no
11624  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11625    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11626    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11627    dynamic_linker='NetBSD (a.out) ld.so'
11628  else
11629    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11630    soname_spec='$libname$release$shared_ext$major'
11631    dynamic_linker='NetBSD ld.elf_so'
11632  fi
11633  shlibpath_var=LD_LIBRARY_PATH
11634  shlibpath_overrides_runpath=yes
11635  hardcode_into_libs=yes
11636  ;;
11637
11638newsos6)
11639  version_type=linux # correct to gnu/linux during the next big refactor
11640  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11641  shlibpath_var=LD_LIBRARY_PATH
11642  shlibpath_overrides_runpath=yes
11643  ;;
11644
11645*nto* | *qnx*)
11646  version_type=qnx
11647  need_lib_prefix=no
11648  need_version=no
11649  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11650  soname_spec='$libname$release$shared_ext$major'
11651  shlibpath_var=LD_LIBRARY_PATH
11652  shlibpath_overrides_runpath=no
11653  hardcode_into_libs=yes
11654  dynamic_linker='ldqnx.so'
11655  ;;
11656
11657openbsd* | bitrig*)
11658  version_type=sunos
11659  sys_lib_dlsearch_path_spec=/usr/lib
11660  need_lib_prefix=no
11661  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11662    need_version=no
11663  else
11664    need_version=yes
11665  fi
11666  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11667  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11668  shlibpath_var=LD_LIBRARY_PATH
11669  shlibpath_overrides_runpath=yes
11670  ;;
11671
11672os2*)
11673  libname_spec='$name'
11674  version_type=windows
11675  shrext_cmds=.dll
11676  need_version=no
11677  need_lib_prefix=no
11678  # OS/2 can only load a DLL with a base name of 8 characters or less.
11679  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11680    v=$($ECHO $release$versuffix | tr -d .-);
11681    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11682    $ECHO $n$v`$shared_ext'
11683  library_names_spec='${libname}_dll.$libext'
11684  dynamic_linker='OS/2 ld.exe'
11685  shlibpath_var=BEGINLIBPATH
11686  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11687  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11688  postinstall_cmds='base_file=`basename \$file`~
11689    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11690    dldir=$destdir/`dirname \$dlpath`~
11691    test -d \$dldir || mkdir -p \$dldir~
11692    $install_prog $dir/$dlname \$dldir/$dlname~
11693    chmod a+x \$dldir/$dlname~
11694    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11695      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11696    fi'
11697  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11698    dlpath=$dir/\$dldll~
11699    $RM \$dlpath'
11700  ;;
11701
11702osf3* | osf4* | osf5*)
11703  version_type=osf
11704  need_lib_prefix=no
11705  need_version=no
11706  soname_spec='$libname$release$shared_ext$major'
11707  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11708  shlibpath_var=LD_LIBRARY_PATH
11709  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11710  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11711  ;;
11712
11713rdos*)
11714  dynamic_linker=no
11715  ;;
11716
11717solaris*)
11718  version_type=linux # correct to gnu/linux during the next big refactor
11719  need_lib_prefix=no
11720  need_version=no
11721  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11722  soname_spec='$libname$release$shared_ext$major'
11723  shlibpath_var=LD_LIBRARY_PATH
11724  shlibpath_overrides_runpath=yes
11725  hardcode_into_libs=yes
11726  # ldd complains unless libraries are executable
11727  postinstall_cmds='chmod +x $lib'
11728  ;;
11729
11730sunos4*)
11731  version_type=sunos
11732  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11733  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11734  shlibpath_var=LD_LIBRARY_PATH
11735  shlibpath_overrides_runpath=yes
11736  if test yes = "$with_gnu_ld"; then
11737    need_lib_prefix=no
11738  fi
11739  need_version=yes
11740  ;;
11741
11742sysv4 | sysv4.3*)
11743  version_type=linux # correct to gnu/linux during the next big refactor
11744  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11745  soname_spec='$libname$release$shared_ext$major'
11746  shlibpath_var=LD_LIBRARY_PATH
11747  case $host_vendor in
11748    sni)
11749      shlibpath_overrides_runpath=no
11750      need_lib_prefix=no
11751      runpath_var=LD_RUN_PATH
11752      ;;
11753    siemens)
11754      need_lib_prefix=no
11755      ;;
11756    motorola)
11757      need_lib_prefix=no
11758      need_version=no
11759      shlibpath_overrides_runpath=no
11760      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11761      ;;
11762  esac
11763  ;;
11764
11765sysv4*MP*)
11766  if test -d /usr/nec; then
11767    version_type=linux # correct to gnu/linux during the next big refactor
11768    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11769    soname_spec='$libname$shared_ext.$major'
11770    shlibpath_var=LD_LIBRARY_PATH
11771  fi
11772  ;;
11773
11774sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11775  version_type=sco
11776  need_lib_prefix=no
11777  need_version=no
11778  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11779  soname_spec='$libname$release$shared_ext$major'
11780  shlibpath_var=LD_LIBRARY_PATH
11781  shlibpath_overrides_runpath=yes
11782  hardcode_into_libs=yes
11783  if test yes = "$with_gnu_ld"; then
11784    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11785  else
11786    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11787    case $host_os in
11788      sco3.2v5*)
11789        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11790	;;
11791    esac
11792  fi
11793  sys_lib_dlsearch_path_spec='/usr/lib'
11794  ;;
11795
11796tpf*)
11797  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11798  version_type=linux # correct to gnu/linux during the next big refactor
11799  need_lib_prefix=no
11800  need_version=no
11801  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11802  shlibpath_var=LD_LIBRARY_PATH
11803  shlibpath_overrides_runpath=no
11804  hardcode_into_libs=yes
11805  ;;
11806
11807uts4*)
11808  version_type=linux # correct to gnu/linux during the next big refactor
11809  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11810  soname_spec='$libname$release$shared_ext$major'
11811  shlibpath_var=LD_LIBRARY_PATH
11812  ;;
11813
11814*)
11815  dynamic_linker=no
11816  ;;
11817esac
11818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11819printf "%s\n" "$dynamic_linker" >&6; }
11820test no = "$dynamic_linker" && can_build_shared=no
11821
11822variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11823if test yes = "$GCC"; then
11824  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11825fi
11826
11827if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11828  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11829fi
11830
11831if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11832  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11833fi
11834
11835# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11836configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11837
11838# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11839func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11840
11841# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11842configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11843
11844
11845
11846
11847
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  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11941printf %s "checking how to hardcode library paths into programs... " >&6; }
11942hardcode_action=
11943if test -n "$hardcode_libdir_flag_spec" ||
11944   test -n "$runpath_var" ||
11945   test yes = "$hardcode_automatic"; then
11946
11947  # We can hardcode non-existent directories.
11948  if test no != "$hardcode_direct" &&
11949     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11950     # have to relink, otherwise we might link with an installed library
11951     # when we should be linking with a yet-to-be-installed one
11952     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11953     test no != "$hardcode_minus_L"; then
11954    # Linking always hardcodes the temporary library directory.
11955    hardcode_action=relink
11956  else
11957    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11958    hardcode_action=immediate
11959  fi
11960else
11961  # We cannot hardcode anything, or else we can only hardcode existing
11962  # directories.
11963  hardcode_action=unsupported
11964fi
11965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11966printf "%s\n" "$hardcode_action" >&6; }
11967
11968if test relink = "$hardcode_action" ||
11969   test yes = "$inherit_rpath"; then
11970  # Fast installation is not supported
11971  enable_fast_install=no
11972elif test yes = "$shlibpath_overrides_runpath" ||
11973     test no = "$enable_shared"; then
11974  # Fast installation is not necessary
11975  enable_fast_install=needless
11976fi
11977
11978
11979
11980
11981
11982
11983  if test yes != "$enable_dlopen"; then
11984  enable_dlopen=unknown
11985  enable_dlopen_self=unknown
11986  enable_dlopen_self_static=unknown
11987else
11988  lt_cv_dlopen=no
11989  lt_cv_dlopen_libs=
11990
11991  case $host_os in
11992  beos*)
11993    lt_cv_dlopen=load_add_on
11994    lt_cv_dlopen_libs=
11995    lt_cv_dlopen_self=yes
11996    ;;
11997
11998  mingw* | pw32* | cegcc*)
11999    lt_cv_dlopen=LoadLibrary
12000    lt_cv_dlopen_libs=
12001    ;;
12002
12003  cygwin*)
12004    lt_cv_dlopen=dlopen
12005    lt_cv_dlopen_libs=
12006    ;;
12007
12008  darwin*)
12009    # if libdl is installed we need to link against it
12010    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12011printf %s "checking for dlopen in -ldl... " >&6; }
12012if test ${ac_cv_lib_dl_dlopen+y}
12013then :
12014  printf %s "(cached) " >&6
12015else $as_nop
12016  ac_check_lib_save_LIBS=$LIBS
12017LIBS="-ldl  $LIBS"
12018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019/* end confdefs.h.  */
12020
12021/* Override any GCC internal prototype to avoid an error.
12022   Use char because int might match the return type of a GCC
12023   builtin and then its argument prototype would still apply.  */
12024char dlopen ();
12025int
12026main (void)
12027{
12028return dlopen ();
12029  ;
12030  return 0;
12031}
12032_ACEOF
12033if ac_fn_c_try_link "$LINENO"
12034then :
12035  ac_cv_lib_dl_dlopen=yes
12036else $as_nop
12037  ac_cv_lib_dl_dlopen=no
12038fi
12039rm -f core conftest.err conftest.$ac_objext conftest.beam \
12040    conftest$ac_exeext conftest.$ac_ext
12041LIBS=$ac_check_lib_save_LIBS
12042fi
12043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12044printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12045if test "x$ac_cv_lib_dl_dlopen" = xyes
12046then :
12047  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12048else $as_nop
12049
12050    lt_cv_dlopen=dyld
12051    lt_cv_dlopen_libs=
12052    lt_cv_dlopen_self=yes
12053
12054fi
12055
12056    ;;
12057
12058  tpf*)
12059    # Don't try to run any link tests for TPF.  We know it's impossible
12060    # because TPF is a cross-compiler, and we know how we open DSOs.
12061    lt_cv_dlopen=dlopen
12062    lt_cv_dlopen_libs=
12063    lt_cv_dlopen_self=no
12064    ;;
12065
12066  *)
12067    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12068if test "x$ac_cv_func_shl_load" = xyes
12069then :
12070  lt_cv_dlopen=shl_load
12071else $as_nop
12072  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12073printf %s "checking for shl_load in -ldld... " >&6; }
12074if test ${ac_cv_lib_dld_shl_load+y}
12075then :
12076  printf %s "(cached) " >&6
12077else $as_nop
12078  ac_check_lib_save_LIBS=$LIBS
12079LIBS="-ldld  $LIBS"
12080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081/* end confdefs.h.  */
12082
12083/* Override any GCC internal prototype to avoid an error.
12084   Use char because int might match the return type of a GCC
12085   builtin and then its argument prototype would still apply.  */
12086char shl_load ();
12087int
12088main (void)
12089{
12090return shl_load ();
12091  ;
12092  return 0;
12093}
12094_ACEOF
12095if ac_fn_c_try_link "$LINENO"
12096then :
12097  ac_cv_lib_dld_shl_load=yes
12098else $as_nop
12099  ac_cv_lib_dld_shl_load=no
12100fi
12101rm -f core conftest.err conftest.$ac_objext conftest.beam \
12102    conftest$ac_exeext conftest.$ac_ext
12103LIBS=$ac_check_lib_save_LIBS
12104fi
12105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12106printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12107if test "x$ac_cv_lib_dld_shl_load" = xyes
12108then :
12109  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12110else $as_nop
12111  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12112if test "x$ac_cv_func_dlopen" = xyes
12113then :
12114  lt_cv_dlopen=dlopen
12115else $as_nop
12116  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12117printf %s "checking for dlopen in -ldl... " >&6; }
12118if test ${ac_cv_lib_dl_dlopen+y}
12119then :
12120  printf %s "(cached) " >&6
12121else $as_nop
12122  ac_check_lib_save_LIBS=$LIBS
12123LIBS="-ldl  $LIBS"
12124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12125/* end confdefs.h.  */
12126
12127/* Override any GCC internal prototype to avoid an error.
12128   Use char because int might match the return type of a GCC
12129   builtin and then its argument prototype would still apply.  */
12130char dlopen ();
12131int
12132main (void)
12133{
12134return dlopen ();
12135  ;
12136  return 0;
12137}
12138_ACEOF
12139if ac_fn_c_try_link "$LINENO"
12140then :
12141  ac_cv_lib_dl_dlopen=yes
12142else $as_nop
12143  ac_cv_lib_dl_dlopen=no
12144fi
12145rm -f core conftest.err conftest.$ac_objext conftest.beam \
12146    conftest$ac_exeext conftest.$ac_ext
12147LIBS=$ac_check_lib_save_LIBS
12148fi
12149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12150printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12151if test "x$ac_cv_lib_dl_dlopen" = xyes
12152then :
12153  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12154else $as_nop
12155  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12156printf %s "checking for dlopen in -lsvld... " >&6; }
12157if test ${ac_cv_lib_svld_dlopen+y}
12158then :
12159  printf %s "(cached) " >&6
12160else $as_nop
12161  ac_check_lib_save_LIBS=$LIBS
12162LIBS="-lsvld  $LIBS"
12163cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12164/* end confdefs.h.  */
12165
12166/* Override any GCC internal prototype to avoid an error.
12167   Use char because int might match the return type of a GCC
12168   builtin and then its argument prototype would still apply.  */
12169char dlopen ();
12170int
12171main (void)
12172{
12173return dlopen ();
12174  ;
12175  return 0;
12176}
12177_ACEOF
12178if ac_fn_c_try_link "$LINENO"
12179then :
12180  ac_cv_lib_svld_dlopen=yes
12181else $as_nop
12182  ac_cv_lib_svld_dlopen=no
12183fi
12184rm -f core conftest.err conftest.$ac_objext conftest.beam \
12185    conftest$ac_exeext conftest.$ac_ext
12186LIBS=$ac_check_lib_save_LIBS
12187fi
12188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12189printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12190if test "x$ac_cv_lib_svld_dlopen" = xyes
12191then :
12192  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12193else $as_nop
12194  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12195printf %s "checking for dld_link in -ldld... " >&6; }
12196if test ${ac_cv_lib_dld_dld_link+y}
12197then :
12198  printf %s "(cached) " >&6
12199else $as_nop
12200  ac_check_lib_save_LIBS=$LIBS
12201LIBS="-ldld  $LIBS"
12202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12203/* end confdefs.h.  */
12204
12205/* Override any GCC internal prototype to avoid an error.
12206   Use char because int might match the return type of a GCC
12207   builtin and then its argument prototype would still apply.  */
12208char dld_link ();
12209int
12210main (void)
12211{
12212return dld_link ();
12213  ;
12214  return 0;
12215}
12216_ACEOF
12217if ac_fn_c_try_link "$LINENO"
12218then :
12219  ac_cv_lib_dld_dld_link=yes
12220else $as_nop
12221  ac_cv_lib_dld_dld_link=no
12222fi
12223rm -f core conftest.err conftest.$ac_objext conftest.beam \
12224    conftest$ac_exeext conftest.$ac_ext
12225LIBS=$ac_check_lib_save_LIBS
12226fi
12227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12228printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12229if test "x$ac_cv_lib_dld_dld_link" = xyes
12230then :
12231  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12232fi
12233
12234
12235fi
12236
12237
12238fi
12239
12240
12241fi
12242
12243
12244fi
12245
12246
12247fi
12248
12249    ;;
12250  esac
12251
12252  if test no = "$lt_cv_dlopen"; then
12253    enable_dlopen=no
12254  else
12255    enable_dlopen=yes
12256  fi
12257
12258  case $lt_cv_dlopen in
12259  dlopen)
12260    save_CPPFLAGS=$CPPFLAGS
12261    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12262
12263    save_LDFLAGS=$LDFLAGS
12264    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12265
12266    save_LIBS=$LIBS
12267    LIBS="$lt_cv_dlopen_libs $LIBS"
12268
12269    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12270printf %s "checking whether a program can dlopen itself... " >&6; }
12271if test ${lt_cv_dlopen_self+y}
12272then :
12273  printf %s "(cached) " >&6
12274else $as_nop
12275  	  if test yes = "$cross_compiling"; then :
12276  lt_cv_dlopen_self=cross
12277else
12278  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12279  lt_status=$lt_dlunknown
12280  cat > conftest.$ac_ext <<_LT_EOF
12281#line $LINENO "configure"
12282#include "confdefs.h"
12283
12284#if HAVE_DLFCN_H
12285#include <dlfcn.h>
12286#endif
12287
12288#include <stdio.h>
12289
12290#ifdef RTLD_GLOBAL
12291#  define LT_DLGLOBAL		RTLD_GLOBAL
12292#else
12293#  ifdef DL_GLOBAL
12294#    define LT_DLGLOBAL		DL_GLOBAL
12295#  else
12296#    define LT_DLGLOBAL		0
12297#  endif
12298#endif
12299
12300/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12301   find out it does not work in some platform. */
12302#ifndef LT_DLLAZY_OR_NOW
12303#  ifdef RTLD_LAZY
12304#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12305#  else
12306#    ifdef DL_LAZY
12307#      define LT_DLLAZY_OR_NOW		DL_LAZY
12308#    else
12309#      ifdef RTLD_NOW
12310#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12311#      else
12312#        ifdef DL_NOW
12313#          define LT_DLLAZY_OR_NOW	DL_NOW
12314#        else
12315#          define LT_DLLAZY_OR_NOW	0
12316#        endif
12317#      endif
12318#    endif
12319#  endif
12320#endif
12321
12322/* When -fvisibility=hidden is used, assume the code has been annotated
12323   correspondingly for the symbols needed.  */
12324#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12325int fnord () __attribute__((visibility("default")));
12326#endif
12327
12328int fnord () { return 42; }
12329int main ()
12330{
12331  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12332  int status = $lt_dlunknown;
12333
12334  if (self)
12335    {
12336      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12337      else
12338        {
12339	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12340          else puts (dlerror ());
12341	}
12342      /* dlclose (self); */
12343    }
12344  else
12345    puts (dlerror ());
12346
12347  return status;
12348}
12349_LT_EOF
12350  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12351  (eval $ac_link) 2>&5
12352  ac_status=$?
12353  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12354  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12355    (./conftest; exit; ) >&5 2>/dev/null
12356    lt_status=$?
12357    case x$lt_status in
12358      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12359      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12360      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12361    esac
12362  else :
12363    # compilation failed
12364    lt_cv_dlopen_self=no
12365  fi
12366fi
12367rm -fr conftest*
12368
12369
12370fi
12371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12372printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12373
12374    if test yes = "$lt_cv_dlopen_self"; then
12375      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12376      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12377printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12378if test ${lt_cv_dlopen_self_static+y}
12379then :
12380  printf %s "(cached) " >&6
12381else $as_nop
12382  	  if test yes = "$cross_compiling"; then :
12383  lt_cv_dlopen_self_static=cross
12384else
12385  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12386  lt_status=$lt_dlunknown
12387  cat > conftest.$ac_ext <<_LT_EOF
12388#line $LINENO "configure"
12389#include "confdefs.h"
12390
12391#if HAVE_DLFCN_H
12392#include <dlfcn.h>
12393#endif
12394
12395#include <stdio.h>
12396
12397#ifdef RTLD_GLOBAL
12398#  define LT_DLGLOBAL		RTLD_GLOBAL
12399#else
12400#  ifdef DL_GLOBAL
12401#    define LT_DLGLOBAL		DL_GLOBAL
12402#  else
12403#    define LT_DLGLOBAL		0
12404#  endif
12405#endif
12406
12407/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12408   find out it does not work in some platform. */
12409#ifndef LT_DLLAZY_OR_NOW
12410#  ifdef RTLD_LAZY
12411#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12412#  else
12413#    ifdef DL_LAZY
12414#      define LT_DLLAZY_OR_NOW		DL_LAZY
12415#    else
12416#      ifdef RTLD_NOW
12417#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12418#      else
12419#        ifdef DL_NOW
12420#          define LT_DLLAZY_OR_NOW	DL_NOW
12421#        else
12422#          define LT_DLLAZY_OR_NOW	0
12423#        endif
12424#      endif
12425#    endif
12426#  endif
12427#endif
12428
12429/* When -fvisibility=hidden is used, assume the code has been annotated
12430   correspondingly for the symbols needed.  */
12431#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12432int fnord () __attribute__((visibility("default")));
12433#endif
12434
12435int fnord () { return 42; }
12436int main ()
12437{
12438  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12439  int status = $lt_dlunknown;
12440
12441  if (self)
12442    {
12443      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12444      else
12445        {
12446	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12447          else puts (dlerror ());
12448	}
12449      /* dlclose (self); */
12450    }
12451  else
12452    puts (dlerror ());
12453
12454  return status;
12455}
12456_LT_EOF
12457  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12458  (eval $ac_link) 2>&5
12459  ac_status=$?
12460  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12461  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12462    (./conftest; exit; ) >&5 2>/dev/null
12463    lt_status=$?
12464    case x$lt_status in
12465      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12466      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12467      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12468    esac
12469  else :
12470    # compilation failed
12471    lt_cv_dlopen_self_static=no
12472  fi
12473fi
12474rm -fr conftest*
12475
12476
12477fi
12478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12479printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12480    fi
12481
12482    CPPFLAGS=$save_CPPFLAGS
12483    LDFLAGS=$save_LDFLAGS
12484    LIBS=$save_LIBS
12485    ;;
12486  esac
12487
12488  case $lt_cv_dlopen_self in
12489  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12490  *) enable_dlopen_self=unknown ;;
12491  esac
12492
12493  case $lt_cv_dlopen_self_static in
12494  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12495  *) enable_dlopen_self_static=unknown ;;
12496  esac
12497fi
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515striplib=
12516old_striplib=
12517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12518printf %s "checking whether stripping libraries is possible... " >&6; }
12519if test -z "$STRIP"; then
12520  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12521printf "%s\n" "no" >&6; }
12522else
12523  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12524    old_striplib="$STRIP --strip-debug"
12525    striplib="$STRIP --strip-unneeded"
12526    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12527printf "%s\n" "yes" >&6; }
12528  else
12529    case $host_os in
12530    darwin*)
12531      # FIXME - insert some real tests, host_os isn't really good enough
12532      striplib="$STRIP -x"
12533      old_striplib="$STRIP -S"
12534      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12535printf "%s\n" "yes" >&6; }
12536      ;;
12537    freebsd*)
12538      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12539        old_striplib="$STRIP --strip-debug"
12540        striplib="$STRIP --strip-unneeded"
12541        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12542printf "%s\n" "yes" >&6; }
12543      else
12544        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12545printf "%s\n" "no" >&6; }
12546      fi
12547      ;;
12548    *)
12549      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550printf "%s\n" "no" >&6; }
12551      ;;
12552    esac
12553  fi
12554fi
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567  # Report what library types will actually be built
12568  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12569printf %s "checking if libtool supports shared libraries... " >&6; }
12570  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12571printf "%s\n" "$can_build_shared" >&6; }
12572
12573  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12574printf %s "checking whether to build shared libraries... " >&6; }
12575  test no = "$can_build_shared" && enable_shared=no
12576
12577  # On AIX, shared libraries and static libraries use the same namespace, and
12578  # are all built from PIC.
12579  case $host_os in
12580  aix3*)
12581    test yes = "$enable_shared" && enable_static=no
12582    if test -n "$RANLIB"; then
12583      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12584      postinstall_cmds='$RANLIB $lib'
12585    fi
12586    ;;
12587
12588  aix[4-9]*)
12589    if test ia64 != "$host_cpu"; then
12590      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12591      yes,aix,yes) ;;			# shared object as lib.so file only
12592      yes,svr4,*) ;;			# shared object as lib.so archive member only
12593      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12594      esac
12595    fi
12596    ;;
12597  esac
12598  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12599printf "%s\n" "$enable_shared" >&6; }
12600
12601  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12602printf %s "checking whether to build static libraries... " >&6; }
12603  # Make sure either enable_shared or enable_static is yes.
12604  test yes = "$enable_shared" || enable_static=yes
12605  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12606printf "%s\n" "$enable_static" >&6; }
12607
12608
12609
12610
12611fi
12612ac_ext=c
12613ac_cpp='$CPP $CPPFLAGS'
12614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12616ac_compiler_gnu=$ac_cv_c_compiler_gnu
12617
12618CC=$lt_save_CC
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634        ac_config_commands="$ac_config_commands libtool"
12635
12636
12637
12638
12639# Only expand once:
12640
12641
12642
12643# Require X.Org macros 1.8 or later
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12657printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12658if test ${ac_cv_c_undeclared_builtin_options+y}
12659then :
12660  printf %s "(cached) " >&6
12661else $as_nop
12662  ac_save_CFLAGS=$CFLAGS
12663   ac_cv_c_undeclared_builtin_options='cannot detect'
12664   for ac_arg in '' -fno-builtin; do
12665     CFLAGS="$ac_save_CFLAGS $ac_arg"
12666     # This test program should *not* compile successfully.
12667     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12668/* end confdefs.h.  */
12669
12670int
12671main (void)
12672{
12673(void) strchr;
12674  ;
12675  return 0;
12676}
12677_ACEOF
12678if ac_fn_c_try_compile "$LINENO"
12679then :
12680
12681else $as_nop
12682  # This test program should compile successfully.
12683        # No library function is consistently available on
12684        # freestanding implementations, so test against a dummy
12685        # declaration.  Include always-available headers on the
12686        # off chance that they somehow elicit warnings.
12687        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12688/* end confdefs.h.  */
12689#include <float.h>
12690#include <limits.h>
12691#include <stdarg.h>
12692#include <stddef.h>
12693extern void ac_decl (int, char *);
12694
12695int
12696main (void)
12697{
12698(void) ac_decl (0, (char *) 0);
12699  (void) ac_decl;
12700
12701  ;
12702  return 0;
12703}
12704_ACEOF
12705if ac_fn_c_try_compile "$LINENO"
12706then :
12707  if test x"$ac_arg" = x
12708then :
12709  ac_cv_c_undeclared_builtin_options='none needed'
12710else $as_nop
12711  ac_cv_c_undeclared_builtin_options=$ac_arg
12712fi
12713          break
12714fi
12715rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12716fi
12717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12718    done
12719    CFLAGS=$ac_save_CFLAGS
12720
12721fi
12722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12723printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12724  case $ac_cv_c_undeclared_builtin_options in #(
12725  'cannot detect') :
12726    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12727printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12728as_fn_error $? "cannot make $CC report undeclared builtins
12729See \`config.log' for more details" "$LINENO" 5; } ;; #(
12730  'none needed') :
12731    ac_c_undeclared_builtin_options='' ;; #(
12732  *) :
12733    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12734esac
12735
12736
12737
12738
12739
12740ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12741if test "x$ac_cv_have_decl___clang__" = xyes
12742then :
12743  CLANGCC="yes"
12744else $as_nop
12745  CLANGCC="no"
12746fi
12747ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12748if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
12749then :
12750  INTELCC="yes"
12751else $as_nop
12752  INTELCC="no"
12753fi
12754ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12755if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
12756then :
12757  SUNCC="yes"
12758else $as_nop
12759  SUNCC="no"
12760fi
12761
12762
12763
12764
12765
12766
12767
12768
12769if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12770	if test -n "$ac_tool_prefix"; then
12771  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12772set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12774printf %s "checking for $ac_word... " >&6; }
12775if test ${ac_cv_path_PKG_CONFIG+y}
12776then :
12777  printf %s "(cached) " >&6
12778else $as_nop
12779  case $PKG_CONFIG in
12780  [\\/]* | ?:[\\/]*)
12781  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12782  ;;
12783  *)
12784  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785for as_dir in $PATH
12786do
12787  IFS=$as_save_IFS
12788  case $as_dir in #(((
12789    '') as_dir=./ ;;
12790    */) ;;
12791    *) as_dir=$as_dir/ ;;
12792  esac
12793    for ac_exec_ext in '' $ac_executable_extensions; do
12794  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12795    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12796    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12797    break 2
12798  fi
12799done
12800  done
12801IFS=$as_save_IFS
12802
12803  ;;
12804esac
12805fi
12806PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12807if test -n "$PKG_CONFIG"; then
12808  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12809printf "%s\n" "$PKG_CONFIG" >&6; }
12810else
12811  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12812printf "%s\n" "no" >&6; }
12813fi
12814
12815
12816fi
12817if test -z "$ac_cv_path_PKG_CONFIG"; then
12818  ac_pt_PKG_CONFIG=$PKG_CONFIG
12819  # Extract the first word of "pkg-config", so it can be a program name with args.
12820set dummy pkg-config; ac_word=$2
12821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12822printf %s "checking for $ac_word... " >&6; }
12823if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12824then :
12825  printf %s "(cached) " >&6
12826else $as_nop
12827  case $ac_pt_PKG_CONFIG in
12828  [\\/]* | ?:[\\/]*)
12829  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12830  ;;
12831  *)
12832  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12833for as_dir in $PATH
12834do
12835  IFS=$as_save_IFS
12836  case $as_dir in #(((
12837    '') as_dir=./ ;;
12838    */) ;;
12839    *) as_dir=$as_dir/ ;;
12840  esac
12841    for ac_exec_ext in '' $ac_executable_extensions; do
12842  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12843    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12844    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12845    break 2
12846  fi
12847done
12848  done
12849IFS=$as_save_IFS
12850
12851  ;;
12852esac
12853fi
12854ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12855if test -n "$ac_pt_PKG_CONFIG"; then
12856  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12857printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
12858else
12859  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12860printf "%s\n" "no" >&6; }
12861fi
12862
12863  if test "x$ac_pt_PKG_CONFIG" = x; then
12864    PKG_CONFIG=""
12865  else
12866    case $cross_compiling:$ac_tool_warned in
12867yes:)
12868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12869printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12870ac_tool_warned=yes ;;
12871esac
12872    PKG_CONFIG=$ac_pt_PKG_CONFIG
12873  fi
12874else
12875  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12876fi
12877
12878fi
12879if test -n "$PKG_CONFIG"; then
12880	_pkg_min_version=0.9.0
12881	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12882printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12883	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12884		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12885printf "%s\n" "yes" >&6; }
12886	else
12887		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12888printf "%s\n" "no" >&6; }
12889		PKG_CONFIG=""
12890	fi
12891fi
12892
12893
12894
12895
12896
12897# Check whether --enable-selective-werror was given.
12898if test ${enable_selective_werror+y}
12899then :
12900  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12901else $as_nop
12902  SELECTIVE_WERROR=yes
12903fi
12904
12905
12906
12907
12908
12909# -v is too short to test reliably with XORG_TESTSET_CFLAG
12910if test "x$SUNCC" = "xyes"; then
12911    BASE_CFLAGS="-v"
12912else
12913    BASE_CFLAGS=""
12914fi
12915
12916# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930xorg_testset_save_CFLAGS="$CFLAGS"
12931
12932if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12933	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12934	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12935printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12936if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12937then :
12938  printf %s "(cached) " >&6
12939else $as_nop
12940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12941/* end confdefs.h.  */
12942int i;
12943_ACEOF
12944if ac_fn_c_try_compile "$LINENO"
12945then :
12946  xorg_cv_cc_flag_unknown_warning_option=yes
12947else $as_nop
12948  xorg_cv_cc_flag_unknown_warning_option=no
12949fi
12950rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12951fi
12952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12953printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12954	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12955	CFLAGS="$xorg_testset_save_CFLAGS"
12956fi
12957
12958if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12959	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12960		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12961	fi
12962	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12963	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12964printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12965if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
12966then :
12967  printf %s "(cached) " >&6
12968else $as_nop
12969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12970/* end confdefs.h.  */
12971int i;
12972_ACEOF
12973if ac_fn_c_try_compile "$LINENO"
12974then :
12975  xorg_cv_cc_flag_unused_command_line_argument=yes
12976else $as_nop
12977  xorg_cv_cc_flag_unused_command_line_argument=no
12978fi
12979rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12980fi
12981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12982printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12983	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12984	CFLAGS="$xorg_testset_save_CFLAGS"
12985fi
12986
12987found="no"
12988
12989	if test $found = "no" ; then
12990		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12991			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12992		fi
12993
12994		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12995			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12996		fi
12997
12998		CFLAGS="$CFLAGS -Wall"
12999
13000		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13001printf %s "checking if $CC supports -Wall... " >&6; }
13002		cacheid=xorg_cv_cc_flag__Wall
13003		if eval test \${$cacheid+y}
13004then :
13005  printf %s "(cached) " >&6
13006else $as_nop
13007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13008/* end confdefs.h.  */
13009int i;
13010int
13011main (void)
13012{
13013
13014  ;
13015  return 0;
13016}
13017_ACEOF
13018if ac_fn_c_try_link "$LINENO"
13019then :
13020  eval $cacheid=yes
13021else $as_nop
13022  eval $cacheid=no
13023fi
13024rm -f core conftest.err conftest.$ac_objext conftest.beam \
13025    conftest$ac_exeext conftest.$ac_ext
13026fi
13027
13028
13029		CFLAGS="$xorg_testset_save_CFLAGS"
13030
13031		eval supported=\$$cacheid
13032		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13033printf "%s\n" "$supported" >&6; }
13034		if test "$supported" = "yes" ; then
13035			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13036			found="yes"
13037		fi
13038	fi
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054xorg_testset_save_CFLAGS="$CFLAGS"
13055
13056if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13057	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13058	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13059printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13060if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13061then :
13062  printf %s "(cached) " >&6
13063else $as_nop
13064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13065/* end confdefs.h.  */
13066int i;
13067_ACEOF
13068if ac_fn_c_try_compile "$LINENO"
13069then :
13070  xorg_cv_cc_flag_unknown_warning_option=yes
13071else $as_nop
13072  xorg_cv_cc_flag_unknown_warning_option=no
13073fi
13074rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13075fi
13076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13077printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13078	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13079	CFLAGS="$xorg_testset_save_CFLAGS"
13080fi
13081
13082if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13083	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13084		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13085	fi
13086	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13087	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13088printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13089if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13090then :
13091  printf %s "(cached) " >&6
13092else $as_nop
13093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13094/* end confdefs.h.  */
13095int i;
13096_ACEOF
13097if ac_fn_c_try_compile "$LINENO"
13098then :
13099  xorg_cv_cc_flag_unused_command_line_argument=yes
13100else $as_nop
13101  xorg_cv_cc_flag_unused_command_line_argument=no
13102fi
13103rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13104fi
13105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13106printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13107	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13108	CFLAGS="$xorg_testset_save_CFLAGS"
13109fi
13110
13111found="no"
13112
13113	if test $found = "no" ; then
13114		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13115			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13116		fi
13117
13118		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13119			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13120		fi
13121
13122		CFLAGS="$CFLAGS -Wpointer-arith"
13123
13124		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13125printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13126		cacheid=xorg_cv_cc_flag__Wpointer_arith
13127		if eval test \${$cacheid+y}
13128then :
13129  printf %s "(cached) " >&6
13130else $as_nop
13131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13132/* end confdefs.h.  */
13133int i;
13134int
13135main (void)
13136{
13137
13138  ;
13139  return 0;
13140}
13141_ACEOF
13142if ac_fn_c_try_link "$LINENO"
13143then :
13144  eval $cacheid=yes
13145else $as_nop
13146  eval $cacheid=no
13147fi
13148rm -f core conftest.err conftest.$ac_objext conftest.beam \
13149    conftest$ac_exeext conftest.$ac_ext
13150fi
13151
13152
13153		CFLAGS="$xorg_testset_save_CFLAGS"
13154
13155		eval supported=\$$cacheid
13156		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13157printf "%s\n" "$supported" >&6; }
13158		if test "$supported" = "yes" ; then
13159			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13160			found="yes"
13161		fi
13162	fi
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178xorg_testset_save_CFLAGS="$CFLAGS"
13179
13180if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13181	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13182	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13183printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13184if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13185then :
13186  printf %s "(cached) " >&6
13187else $as_nop
13188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13189/* end confdefs.h.  */
13190int i;
13191_ACEOF
13192if ac_fn_c_try_compile "$LINENO"
13193then :
13194  xorg_cv_cc_flag_unknown_warning_option=yes
13195else $as_nop
13196  xorg_cv_cc_flag_unknown_warning_option=no
13197fi
13198rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13199fi
13200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13201printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13202	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13203	CFLAGS="$xorg_testset_save_CFLAGS"
13204fi
13205
13206if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13207	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13208		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13209	fi
13210	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13211	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13212printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13213if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13214then :
13215  printf %s "(cached) " >&6
13216else $as_nop
13217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13218/* end confdefs.h.  */
13219int i;
13220_ACEOF
13221if ac_fn_c_try_compile "$LINENO"
13222then :
13223  xorg_cv_cc_flag_unused_command_line_argument=yes
13224else $as_nop
13225  xorg_cv_cc_flag_unused_command_line_argument=no
13226fi
13227rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13228fi
13229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13230printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13231	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13232	CFLAGS="$xorg_testset_save_CFLAGS"
13233fi
13234
13235found="no"
13236
13237	if test $found = "no" ; then
13238		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13239			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13240		fi
13241
13242		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13243			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13244		fi
13245
13246		CFLAGS="$CFLAGS -Wmissing-declarations"
13247
13248		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13249printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13250		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13251		if eval test \${$cacheid+y}
13252then :
13253  printf %s "(cached) " >&6
13254else $as_nop
13255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13256/* end confdefs.h.  */
13257int i;
13258int
13259main (void)
13260{
13261
13262  ;
13263  return 0;
13264}
13265_ACEOF
13266if ac_fn_c_try_link "$LINENO"
13267then :
13268  eval $cacheid=yes
13269else $as_nop
13270  eval $cacheid=no
13271fi
13272rm -f core conftest.err conftest.$ac_objext conftest.beam \
13273    conftest$ac_exeext conftest.$ac_ext
13274fi
13275
13276
13277		CFLAGS="$xorg_testset_save_CFLAGS"
13278
13279		eval supported=\$$cacheid
13280		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13281printf "%s\n" "$supported" >&6; }
13282		if test "$supported" = "yes" ; then
13283			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13284			found="yes"
13285		fi
13286	fi
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302xorg_testset_save_CFLAGS="$CFLAGS"
13303
13304if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13305	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13306	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13307printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13308if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13309then :
13310  printf %s "(cached) " >&6
13311else $as_nop
13312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13313/* end confdefs.h.  */
13314int i;
13315_ACEOF
13316if ac_fn_c_try_compile "$LINENO"
13317then :
13318  xorg_cv_cc_flag_unknown_warning_option=yes
13319else $as_nop
13320  xorg_cv_cc_flag_unknown_warning_option=no
13321fi
13322rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13323fi
13324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13325printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13326	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13327	CFLAGS="$xorg_testset_save_CFLAGS"
13328fi
13329
13330if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13331	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13332		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13333	fi
13334	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13335	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13336printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13337if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13338then :
13339  printf %s "(cached) " >&6
13340else $as_nop
13341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13342/* end confdefs.h.  */
13343int i;
13344_ACEOF
13345if ac_fn_c_try_compile "$LINENO"
13346then :
13347  xorg_cv_cc_flag_unused_command_line_argument=yes
13348else $as_nop
13349  xorg_cv_cc_flag_unused_command_line_argument=no
13350fi
13351rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13352fi
13353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13354printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13355	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13356	CFLAGS="$xorg_testset_save_CFLAGS"
13357fi
13358
13359found="no"
13360
13361	if test $found = "no" ; then
13362		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13363			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13364		fi
13365
13366		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13367			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13368		fi
13369
13370		CFLAGS="$CFLAGS -Wformat=2"
13371
13372		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13373printf %s "checking if $CC supports -Wformat=2... " >&6; }
13374		cacheid=xorg_cv_cc_flag__Wformat_2
13375		if eval test \${$cacheid+y}
13376then :
13377  printf %s "(cached) " >&6
13378else $as_nop
13379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13380/* end confdefs.h.  */
13381int i;
13382int
13383main (void)
13384{
13385
13386  ;
13387  return 0;
13388}
13389_ACEOF
13390if ac_fn_c_try_link "$LINENO"
13391then :
13392  eval $cacheid=yes
13393else $as_nop
13394  eval $cacheid=no
13395fi
13396rm -f core conftest.err conftest.$ac_objext conftest.beam \
13397    conftest$ac_exeext conftest.$ac_ext
13398fi
13399
13400
13401		CFLAGS="$xorg_testset_save_CFLAGS"
13402
13403		eval supported=\$$cacheid
13404		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13405printf "%s\n" "$supported" >&6; }
13406		if test "$supported" = "yes" ; then
13407			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13408			found="yes"
13409		fi
13410	fi
13411
13412	if test $found = "no" ; then
13413		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13414			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13415		fi
13416
13417		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13418			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13419		fi
13420
13421		CFLAGS="$CFLAGS -Wformat"
13422
13423		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13424printf %s "checking if $CC supports -Wformat... " >&6; }
13425		cacheid=xorg_cv_cc_flag__Wformat
13426		if eval test \${$cacheid+y}
13427then :
13428  printf %s "(cached) " >&6
13429else $as_nop
13430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13431/* end confdefs.h.  */
13432int i;
13433int
13434main (void)
13435{
13436
13437  ;
13438  return 0;
13439}
13440_ACEOF
13441if ac_fn_c_try_link "$LINENO"
13442then :
13443  eval $cacheid=yes
13444else $as_nop
13445  eval $cacheid=no
13446fi
13447rm -f core conftest.err conftest.$ac_objext conftest.beam \
13448    conftest$ac_exeext conftest.$ac_ext
13449fi
13450
13451
13452		CFLAGS="$xorg_testset_save_CFLAGS"
13453
13454		eval supported=\$$cacheid
13455		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13456printf "%s\n" "$supported" >&6; }
13457		if test "$supported" = "yes" ; then
13458			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13459			found="yes"
13460		fi
13461	fi
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479xorg_testset_save_CFLAGS="$CFLAGS"
13480
13481if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13482	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13483	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13484printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13485if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13486then :
13487  printf %s "(cached) " >&6
13488else $as_nop
13489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490/* end confdefs.h.  */
13491int i;
13492_ACEOF
13493if ac_fn_c_try_compile "$LINENO"
13494then :
13495  xorg_cv_cc_flag_unknown_warning_option=yes
13496else $as_nop
13497  xorg_cv_cc_flag_unknown_warning_option=no
13498fi
13499rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13500fi
13501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13502printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13503	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13504	CFLAGS="$xorg_testset_save_CFLAGS"
13505fi
13506
13507if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13508	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13509		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13510	fi
13511	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13512	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13513printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13514if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13515then :
13516  printf %s "(cached) " >&6
13517else $as_nop
13518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13519/* end confdefs.h.  */
13520int i;
13521_ACEOF
13522if ac_fn_c_try_compile "$LINENO"
13523then :
13524  xorg_cv_cc_flag_unused_command_line_argument=yes
13525else $as_nop
13526  xorg_cv_cc_flag_unused_command_line_argument=no
13527fi
13528rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13529fi
13530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13531printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13532	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13533	CFLAGS="$xorg_testset_save_CFLAGS"
13534fi
13535
13536found="no"
13537
13538	if test $found = "no" ; then
13539		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13540			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13541		fi
13542
13543		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13544			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13545		fi
13546
13547		CFLAGS="$CFLAGS -Wstrict-prototypes"
13548
13549		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13550printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13551		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13552		if eval test \${$cacheid+y}
13553then :
13554  printf %s "(cached) " >&6
13555else $as_nop
13556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13557/* end confdefs.h.  */
13558int i;
13559int
13560main (void)
13561{
13562
13563  ;
13564  return 0;
13565}
13566_ACEOF
13567if ac_fn_c_try_link "$LINENO"
13568then :
13569  eval $cacheid=yes
13570else $as_nop
13571  eval $cacheid=no
13572fi
13573rm -f core conftest.err conftest.$ac_objext conftest.beam \
13574    conftest$ac_exeext conftest.$ac_ext
13575fi
13576
13577
13578		CFLAGS="$xorg_testset_save_CFLAGS"
13579
13580		eval supported=\$$cacheid
13581		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13582printf "%s\n" "$supported" >&6; }
13583		if test "$supported" = "yes" ; then
13584			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13585			found="yes"
13586		fi
13587	fi
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603xorg_testset_save_CFLAGS="$CFLAGS"
13604
13605if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13606	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13607	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13608printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13609if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13610then :
13611  printf %s "(cached) " >&6
13612else $as_nop
13613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13614/* end confdefs.h.  */
13615int i;
13616_ACEOF
13617if ac_fn_c_try_compile "$LINENO"
13618then :
13619  xorg_cv_cc_flag_unknown_warning_option=yes
13620else $as_nop
13621  xorg_cv_cc_flag_unknown_warning_option=no
13622fi
13623rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13624fi
13625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13626printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13627	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13628	CFLAGS="$xorg_testset_save_CFLAGS"
13629fi
13630
13631if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13632	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13633		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13634	fi
13635	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13636	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13637printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13638if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13639then :
13640  printf %s "(cached) " >&6
13641else $as_nop
13642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13643/* end confdefs.h.  */
13644int i;
13645_ACEOF
13646if ac_fn_c_try_compile "$LINENO"
13647then :
13648  xorg_cv_cc_flag_unused_command_line_argument=yes
13649else $as_nop
13650  xorg_cv_cc_flag_unused_command_line_argument=no
13651fi
13652rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13653fi
13654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13655printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13656	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13657	CFLAGS="$xorg_testset_save_CFLAGS"
13658fi
13659
13660found="no"
13661
13662	if test $found = "no" ; then
13663		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13664			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13665		fi
13666
13667		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13668			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13669		fi
13670
13671		CFLAGS="$CFLAGS -Wmissing-prototypes"
13672
13673		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13674printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13675		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13676		if eval test \${$cacheid+y}
13677then :
13678  printf %s "(cached) " >&6
13679else $as_nop
13680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681/* end confdefs.h.  */
13682int i;
13683int
13684main (void)
13685{
13686
13687  ;
13688  return 0;
13689}
13690_ACEOF
13691if ac_fn_c_try_link "$LINENO"
13692then :
13693  eval $cacheid=yes
13694else $as_nop
13695  eval $cacheid=no
13696fi
13697rm -f core conftest.err conftest.$ac_objext conftest.beam \
13698    conftest$ac_exeext conftest.$ac_ext
13699fi
13700
13701
13702		CFLAGS="$xorg_testset_save_CFLAGS"
13703
13704		eval supported=\$$cacheid
13705		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13706printf "%s\n" "$supported" >&6; }
13707		if test "$supported" = "yes" ; then
13708			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13709			found="yes"
13710		fi
13711	fi
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727xorg_testset_save_CFLAGS="$CFLAGS"
13728
13729if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13730	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13731	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13732printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13733if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13734then :
13735  printf %s "(cached) " >&6
13736else $as_nop
13737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13738/* end confdefs.h.  */
13739int i;
13740_ACEOF
13741if ac_fn_c_try_compile "$LINENO"
13742then :
13743  xorg_cv_cc_flag_unknown_warning_option=yes
13744else $as_nop
13745  xorg_cv_cc_flag_unknown_warning_option=no
13746fi
13747rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13748fi
13749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13750printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13751	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13752	CFLAGS="$xorg_testset_save_CFLAGS"
13753fi
13754
13755if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13756	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13757		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13758	fi
13759	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13760	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13761printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13762if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13763then :
13764  printf %s "(cached) " >&6
13765else $as_nop
13766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13767/* end confdefs.h.  */
13768int i;
13769_ACEOF
13770if ac_fn_c_try_compile "$LINENO"
13771then :
13772  xorg_cv_cc_flag_unused_command_line_argument=yes
13773else $as_nop
13774  xorg_cv_cc_flag_unused_command_line_argument=no
13775fi
13776rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13777fi
13778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13779printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13780	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13781	CFLAGS="$xorg_testset_save_CFLAGS"
13782fi
13783
13784found="no"
13785
13786	if test $found = "no" ; then
13787		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13788			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13789		fi
13790
13791		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13792			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13793		fi
13794
13795		CFLAGS="$CFLAGS -Wnested-externs"
13796
13797		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13798printf %s "checking if $CC supports -Wnested-externs... " >&6; }
13799		cacheid=xorg_cv_cc_flag__Wnested_externs
13800		if eval test \${$cacheid+y}
13801then :
13802  printf %s "(cached) " >&6
13803else $as_nop
13804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13805/* end confdefs.h.  */
13806int i;
13807int
13808main (void)
13809{
13810
13811  ;
13812  return 0;
13813}
13814_ACEOF
13815if ac_fn_c_try_link "$LINENO"
13816then :
13817  eval $cacheid=yes
13818else $as_nop
13819  eval $cacheid=no
13820fi
13821rm -f core conftest.err conftest.$ac_objext conftest.beam \
13822    conftest$ac_exeext conftest.$ac_ext
13823fi
13824
13825
13826		CFLAGS="$xorg_testset_save_CFLAGS"
13827
13828		eval supported=\$$cacheid
13829		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13830printf "%s\n" "$supported" >&6; }
13831		if test "$supported" = "yes" ; then
13832			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13833			found="yes"
13834		fi
13835	fi
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851xorg_testset_save_CFLAGS="$CFLAGS"
13852
13853if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13854	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13855	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13856printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13857if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13858then :
13859  printf %s "(cached) " >&6
13860else $as_nop
13861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862/* end confdefs.h.  */
13863int i;
13864_ACEOF
13865if ac_fn_c_try_compile "$LINENO"
13866then :
13867  xorg_cv_cc_flag_unknown_warning_option=yes
13868else $as_nop
13869  xorg_cv_cc_flag_unknown_warning_option=no
13870fi
13871rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13872fi
13873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13874printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13875	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13876	CFLAGS="$xorg_testset_save_CFLAGS"
13877fi
13878
13879if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13880	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13881		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13882	fi
13883	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13884	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13885printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13886if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13887then :
13888  printf %s "(cached) " >&6
13889else $as_nop
13890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13891/* end confdefs.h.  */
13892int i;
13893_ACEOF
13894if ac_fn_c_try_compile "$LINENO"
13895then :
13896  xorg_cv_cc_flag_unused_command_line_argument=yes
13897else $as_nop
13898  xorg_cv_cc_flag_unused_command_line_argument=no
13899fi
13900rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13901fi
13902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13903printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13904	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13905	CFLAGS="$xorg_testset_save_CFLAGS"
13906fi
13907
13908found="no"
13909
13910	if test $found = "no" ; then
13911		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13912			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13913		fi
13914
13915		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13916			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13917		fi
13918
13919		CFLAGS="$CFLAGS -Wbad-function-cast"
13920
13921		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13922printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
13923		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13924		if eval test \${$cacheid+y}
13925then :
13926  printf %s "(cached) " >&6
13927else $as_nop
13928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929/* end confdefs.h.  */
13930int i;
13931int
13932main (void)
13933{
13934
13935  ;
13936  return 0;
13937}
13938_ACEOF
13939if ac_fn_c_try_link "$LINENO"
13940then :
13941  eval $cacheid=yes
13942else $as_nop
13943  eval $cacheid=no
13944fi
13945rm -f core conftest.err conftest.$ac_objext conftest.beam \
13946    conftest$ac_exeext conftest.$ac_ext
13947fi
13948
13949
13950		CFLAGS="$xorg_testset_save_CFLAGS"
13951
13952		eval supported=\$$cacheid
13953		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13954printf "%s\n" "$supported" >&6; }
13955		if test "$supported" = "yes" ; then
13956			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13957			found="yes"
13958		fi
13959	fi
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975xorg_testset_save_CFLAGS="$CFLAGS"
13976
13977if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13978	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13979	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13980printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13981if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13982then :
13983  printf %s "(cached) " >&6
13984else $as_nop
13985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13986/* end confdefs.h.  */
13987int i;
13988_ACEOF
13989if ac_fn_c_try_compile "$LINENO"
13990then :
13991  xorg_cv_cc_flag_unknown_warning_option=yes
13992else $as_nop
13993  xorg_cv_cc_flag_unknown_warning_option=no
13994fi
13995rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13996fi
13997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13998printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13999	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14000	CFLAGS="$xorg_testset_save_CFLAGS"
14001fi
14002
14003if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14004	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14005		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14006	fi
14007	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14008	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14009printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14010if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14011then :
14012  printf %s "(cached) " >&6
14013else $as_nop
14014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14015/* end confdefs.h.  */
14016int i;
14017_ACEOF
14018if ac_fn_c_try_compile "$LINENO"
14019then :
14020  xorg_cv_cc_flag_unused_command_line_argument=yes
14021else $as_nop
14022  xorg_cv_cc_flag_unused_command_line_argument=no
14023fi
14024rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14025fi
14026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14027printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14028	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14029	CFLAGS="$xorg_testset_save_CFLAGS"
14030fi
14031
14032found="no"
14033
14034	if test $found = "no" ; then
14035		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14036			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14037		fi
14038
14039		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14040			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14041		fi
14042
14043		CFLAGS="$CFLAGS -Wold-style-definition"
14044
14045		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14046printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14047		cacheid=xorg_cv_cc_flag__Wold_style_definition
14048		if eval test \${$cacheid+y}
14049then :
14050  printf %s "(cached) " >&6
14051else $as_nop
14052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14053/* end confdefs.h.  */
14054int i;
14055int
14056main (void)
14057{
14058
14059  ;
14060  return 0;
14061}
14062_ACEOF
14063if ac_fn_c_try_link "$LINENO"
14064then :
14065  eval $cacheid=yes
14066else $as_nop
14067  eval $cacheid=no
14068fi
14069rm -f core conftest.err conftest.$ac_objext conftest.beam \
14070    conftest$ac_exeext conftest.$ac_ext
14071fi
14072
14073
14074		CFLAGS="$xorg_testset_save_CFLAGS"
14075
14076		eval supported=\$$cacheid
14077		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14078printf "%s\n" "$supported" >&6; }
14079		if test "$supported" = "yes" ; then
14080			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14081			found="yes"
14082		fi
14083	fi
14084
14085	if test $found = "no" ; then
14086		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14087			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14088		fi
14089
14090		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14091			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14092		fi
14093
14094		CFLAGS="$CFLAGS -fd"
14095
14096		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14097printf %s "checking if $CC supports -fd... " >&6; }
14098		cacheid=xorg_cv_cc_flag__fd
14099		if eval test \${$cacheid+y}
14100then :
14101  printf %s "(cached) " >&6
14102else $as_nop
14103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14104/* end confdefs.h.  */
14105int i;
14106int
14107main (void)
14108{
14109
14110  ;
14111  return 0;
14112}
14113_ACEOF
14114if ac_fn_c_try_link "$LINENO"
14115then :
14116  eval $cacheid=yes
14117else $as_nop
14118  eval $cacheid=no
14119fi
14120rm -f core conftest.err conftest.$ac_objext conftest.beam \
14121    conftest$ac_exeext conftest.$ac_ext
14122fi
14123
14124
14125		CFLAGS="$xorg_testset_save_CFLAGS"
14126
14127		eval supported=\$$cacheid
14128		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14129printf "%s\n" "$supported" >&6; }
14130		if test "$supported" = "yes" ; then
14131			BASE_CFLAGS="$BASE_CFLAGS -fd"
14132			found="yes"
14133		fi
14134	fi
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150xorg_testset_save_CFLAGS="$CFLAGS"
14151
14152if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14153	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14154	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14155printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14156if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14157then :
14158  printf %s "(cached) " >&6
14159else $as_nop
14160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14161/* end confdefs.h.  */
14162int i;
14163_ACEOF
14164if ac_fn_c_try_compile "$LINENO"
14165then :
14166  xorg_cv_cc_flag_unknown_warning_option=yes
14167else $as_nop
14168  xorg_cv_cc_flag_unknown_warning_option=no
14169fi
14170rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14171fi
14172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14173printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14174	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14175	CFLAGS="$xorg_testset_save_CFLAGS"
14176fi
14177
14178if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14179	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14180		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14181	fi
14182	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14183	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14184printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14185if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14186then :
14187  printf %s "(cached) " >&6
14188else $as_nop
14189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14190/* end confdefs.h.  */
14191int i;
14192_ACEOF
14193if ac_fn_c_try_compile "$LINENO"
14194then :
14195  xorg_cv_cc_flag_unused_command_line_argument=yes
14196else $as_nop
14197  xorg_cv_cc_flag_unused_command_line_argument=no
14198fi
14199rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14200fi
14201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14202printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14203	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14204	CFLAGS="$xorg_testset_save_CFLAGS"
14205fi
14206
14207found="no"
14208
14209	if test $found = "no" ; then
14210		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14211			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14212		fi
14213
14214		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14215			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14216		fi
14217
14218		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14219
14220		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14221printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14222		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14223		if eval test \${$cacheid+y}
14224then :
14225  printf %s "(cached) " >&6
14226else $as_nop
14227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14228/* end confdefs.h.  */
14229int i;
14230int
14231main (void)
14232{
14233
14234  ;
14235  return 0;
14236}
14237_ACEOF
14238if ac_fn_c_try_link "$LINENO"
14239then :
14240  eval $cacheid=yes
14241else $as_nop
14242  eval $cacheid=no
14243fi
14244rm -f core conftest.err conftest.$ac_objext conftest.beam \
14245    conftest$ac_exeext conftest.$ac_ext
14246fi
14247
14248
14249		CFLAGS="$xorg_testset_save_CFLAGS"
14250
14251		eval supported=\$$cacheid
14252		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14253printf "%s\n" "$supported" >&6; }
14254		if test "$supported" = "yes" ; then
14255			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14256			found="yes"
14257		fi
14258	fi
14259
14260
14261
14262
14263
14264# This chunk adds additional warnings that could catch undesired effects.
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278xorg_testset_save_CFLAGS="$CFLAGS"
14279
14280if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14281	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14282	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14283printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14284if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14285then :
14286  printf %s "(cached) " >&6
14287else $as_nop
14288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14289/* end confdefs.h.  */
14290int i;
14291_ACEOF
14292if ac_fn_c_try_compile "$LINENO"
14293then :
14294  xorg_cv_cc_flag_unknown_warning_option=yes
14295else $as_nop
14296  xorg_cv_cc_flag_unknown_warning_option=no
14297fi
14298rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14299fi
14300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14301printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14302	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14303	CFLAGS="$xorg_testset_save_CFLAGS"
14304fi
14305
14306if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14307	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14308		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14309	fi
14310	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14311	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14312printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14313if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14314then :
14315  printf %s "(cached) " >&6
14316else $as_nop
14317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14318/* end confdefs.h.  */
14319int i;
14320_ACEOF
14321if ac_fn_c_try_compile "$LINENO"
14322then :
14323  xorg_cv_cc_flag_unused_command_line_argument=yes
14324else $as_nop
14325  xorg_cv_cc_flag_unused_command_line_argument=no
14326fi
14327rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14328fi
14329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14330printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14331	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14332	CFLAGS="$xorg_testset_save_CFLAGS"
14333fi
14334
14335found="no"
14336
14337	if test $found = "no" ; then
14338		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14339			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14340		fi
14341
14342		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14343			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14344		fi
14345
14346		CFLAGS="$CFLAGS -Wunused"
14347
14348		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14349printf %s "checking if $CC supports -Wunused... " >&6; }
14350		cacheid=xorg_cv_cc_flag__Wunused
14351		if eval test \${$cacheid+y}
14352then :
14353  printf %s "(cached) " >&6
14354else $as_nop
14355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14356/* end confdefs.h.  */
14357int i;
14358int
14359main (void)
14360{
14361
14362  ;
14363  return 0;
14364}
14365_ACEOF
14366if ac_fn_c_try_link "$LINENO"
14367then :
14368  eval $cacheid=yes
14369else $as_nop
14370  eval $cacheid=no
14371fi
14372rm -f core conftest.err conftest.$ac_objext conftest.beam \
14373    conftest$ac_exeext conftest.$ac_ext
14374fi
14375
14376
14377		CFLAGS="$xorg_testset_save_CFLAGS"
14378
14379		eval supported=\$$cacheid
14380		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14381printf "%s\n" "$supported" >&6; }
14382		if test "$supported" = "yes" ; then
14383			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14384			found="yes"
14385		fi
14386	fi
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402xorg_testset_save_CFLAGS="$CFLAGS"
14403
14404if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14405	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14406	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14407printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14408if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14409then :
14410  printf %s "(cached) " >&6
14411else $as_nop
14412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14413/* end confdefs.h.  */
14414int i;
14415_ACEOF
14416if ac_fn_c_try_compile "$LINENO"
14417then :
14418  xorg_cv_cc_flag_unknown_warning_option=yes
14419else $as_nop
14420  xorg_cv_cc_flag_unknown_warning_option=no
14421fi
14422rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14423fi
14424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14425printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14426	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14427	CFLAGS="$xorg_testset_save_CFLAGS"
14428fi
14429
14430if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14431	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14432		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14433	fi
14434	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14435	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14436printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14437if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14438then :
14439  printf %s "(cached) " >&6
14440else $as_nop
14441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14442/* end confdefs.h.  */
14443int i;
14444_ACEOF
14445if ac_fn_c_try_compile "$LINENO"
14446then :
14447  xorg_cv_cc_flag_unused_command_line_argument=yes
14448else $as_nop
14449  xorg_cv_cc_flag_unused_command_line_argument=no
14450fi
14451rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14452fi
14453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14454printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14455	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14456	CFLAGS="$xorg_testset_save_CFLAGS"
14457fi
14458
14459found="no"
14460
14461	if test $found = "no" ; then
14462		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14463			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14464		fi
14465
14466		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14467			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14468		fi
14469
14470		CFLAGS="$CFLAGS -Wuninitialized"
14471
14472		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14473printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14474		cacheid=xorg_cv_cc_flag__Wuninitialized
14475		if eval test \${$cacheid+y}
14476then :
14477  printf %s "(cached) " >&6
14478else $as_nop
14479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14480/* end confdefs.h.  */
14481int i;
14482int
14483main (void)
14484{
14485
14486  ;
14487  return 0;
14488}
14489_ACEOF
14490if ac_fn_c_try_link "$LINENO"
14491then :
14492  eval $cacheid=yes
14493else $as_nop
14494  eval $cacheid=no
14495fi
14496rm -f core conftest.err conftest.$ac_objext conftest.beam \
14497    conftest$ac_exeext conftest.$ac_ext
14498fi
14499
14500
14501		CFLAGS="$xorg_testset_save_CFLAGS"
14502
14503		eval supported=\$$cacheid
14504		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14505printf "%s\n" "$supported" >&6; }
14506		if test "$supported" = "yes" ; then
14507			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14508			found="yes"
14509		fi
14510	fi
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526xorg_testset_save_CFLAGS="$CFLAGS"
14527
14528if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14529	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14530	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14531printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14532if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14533then :
14534  printf %s "(cached) " >&6
14535else $as_nop
14536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14537/* end confdefs.h.  */
14538int i;
14539_ACEOF
14540if ac_fn_c_try_compile "$LINENO"
14541then :
14542  xorg_cv_cc_flag_unknown_warning_option=yes
14543else $as_nop
14544  xorg_cv_cc_flag_unknown_warning_option=no
14545fi
14546rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14547fi
14548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14549printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14550	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14551	CFLAGS="$xorg_testset_save_CFLAGS"
14552fi
14553
14554if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14555	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14556		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14557	fi
14558	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14559	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14560printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14561if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14562then :
14563  printf %s "(cached) " >&6
14564else $as_nop
14565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14566/* end confdefs.h.  */
14567int i;
14568_ACEOF
14569if ac_fn_c_try_compile "$LINENO"
14570then :
14571  xorg_cv_cc_flag_unused_command_line_argument=yes
14572else $as_nop
14573  xorg_cv_cc_flag_unused_command_line_argument=no
14574fi
14575rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14576fi
14577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14578printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14579	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14580	CFLAGS="$xorg_testset_save_CFLAGS"
14581fi
14582
14583found="no"
14584
14585	if test $found = "no" ; then
14586		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14587			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14588		fi
14589
14590		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14591			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14592		fi
14593
14594		CFLAGS="$CFLAGS -Wshadow"
14595
14596		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14597printf %s "checking if $CC supports -Wshadow... " >&6; }
14598		cacheid=xorg_cv_cc_flag__Wshadow
14599		if eval test \${$cacheid+y}
14600then :
14601  printf %s "(cached) " >&6
14602else $as_nop
14603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14604/* end confdefs.h.  */
14605int i;
14606int
14607main (void)
14608{
14609
14610  ;
14611  return 0;
14612}
14613_ACEOF
14614if ac_fn_c_try_link "$LINENO"
14615then :
14616  eval $cacheid=yes
14617else $as_nop
14618  eval $cacheid=no
14619fi
14620rm -f core conftest.err conftest.$ac_objext conftest.beam \
14621    conftest$ac_exeext conftest.$ac_ext
14622fi
14623
14624
14625		CFLAGS="$xorg_testset_save_CFLAGS"
14626
14627		eval supported=\$$cacheid
14628		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14629printf "%s\n" "$supported" >&6; }
14630		if test "$supported" = "yes" ; then
14631			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14632			found="yes"
14633		fi
14634	fi
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650xorg_testset_save_CFLAGS="$CFLAGS"
14651
14652if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14653	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14654	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14655printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14656if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14657then :
14658  printf %s "(cached) " >&6
14659else $as_nop
14660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14661/* end confdefs.h.  */
14662int i;
14663_ACEOF
14664if ac_fn_c_try_compile "$LINENO"
14665then :
14666  xorg_cv_cc_flag_unknown_warning_option=yes
14667else $as_nop
14668  xorg_cv_cc_flag_unknown_warning_option=no
14669fi
14670rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14671fi
14672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14673printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14674	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14675	CFLAGS="$xorg_testset_save_CFLAGS"
14676fi
14677
14678if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14679	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14680		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14681	fi
14682	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14683	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14684printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14685if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14686then :
14687  printf %s "(cached) " >&6
14688else $as_nop
14689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14690/* end confdefs.h.  */
14691int i;
14692_ACEOF
14693if ac_fn_c_try_compile "$LINENO"
14694then :
14695  xorg_cv_cc_flag_unused_command_line_argument=yes
14696else $as_nop
14697  xorg_cv_cc_flag_unused_command_line_argument=no
14698fi
14699rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14700fi
14701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14702printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14703	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14704	CFLAGS="$xorg_testset_save_CFLAGS"
14705fi
14706
14707found="no"
14708
14709	if test $found = "no" ; then
14710		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14711			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14712		fi
14713
14714		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14715			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14716		fi
14717
14718		CFLAGS="$CFLAGS -Wmissing-noreturn"
14719
14720		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14721printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14722		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14723		if eval test \${$cacheid+y}
14724then :
14725  printf %s "(cached) " >&6
14726else $as_nop
14727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14728/* end confdefs.h.  */
14729int i;
14730int
14731main (void)
14732{
14733
14734  ;
14735  return 0;
14736}
14737_ACEOF
14738if ac_fn_c_try_link "$LINENO"
14739then :
14740  eval $cacheid=yes
14741else $as_nop
14742  eval $cacheid=no
14743fi
14744rm -f core conftest.err conftest.$ac_objext conftest.beam \
14745    conftest$ac_exeext conftest.$ac_ext
14746fi
14747
14748
14749		CFLAGS="$xorg_testset_save_CFLAGS"
14750
14751		eval supported=\$$cacheid
14752		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14753printf "%s\n" "$supported" >&6; }
14754		if test "$supported" = "yes" ; then
14755			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14756			found="yes"
14757		fi
14758	fi
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774xorg_testset_save_CFLAGS="$CFLAGS"
14775
14776if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14777	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14778	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14779printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14780if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14781then :
14782  printf %s "(cached) " >&6
14783else $as_nop
14784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14785/* end confdefs.h.  */
14786int i;
14787_ACEOF
14788if ac_fn_c_try_compile "$LINENO"
14789then :
14790  xorg_cv_cc_flag_unknown_warning_option=yes
14791else $as_nop
14792  xorg_cv_cc_flag_unknown_warning_option=no
14793fi
14794rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14795fi
14796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14797printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14798	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14799	CFLAGS="$xorg_testset_save_CFLAGS"
14800fi
14801
14802if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14803	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14804		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14805	fi
14806	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14807	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14808printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14809if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14810then :
14811  printf %s "(cached) " >&6
14812else $as_nop
14813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14814/* end confdefs.h.  */
14815int i;
14816_ACEOF
14817if ac_fn_c_try_compile "$LINENO"
14818then :
14819  xorg_cv_cc_flag_unused_command_line_argument=yes
14820else $as_nop
14821  xorg_cv_cc_flag_unused_command_line_argument=no
14822fi
14823rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14824fi
14825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14826printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14827	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14828	CFLAGS="$xorg_testset_save_CFLAGS"
14829fi
14830
14831found="no"
14832
14833	if test $found = "no" ; then
14834		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14835			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14836		fi
14837
14838		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14839			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14840		fi
14841
14842		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14843
14844		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14845printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14846		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14847		if eval test \${$cacheid+y}
14848then :
14849  printf %s "(cached) " >&6
14850else $as_nop
14851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14852/* end confdefs.h.  */
14853int i;
14854int
14855main (void)
14856{
14857
14858  ;
14859  return 0;
14860}
14861_ACEOF
14862if ac_fn_c_try_link "$LINENO"
14863then :
14864  eval $cacheid=yes
14865else $as_nop
14866  eval $cacheid=no
14867fi
14868rm -f core conftest.err conftest.$ac_objext conftest.beam \
14869    conftest$ac_exeext conftest.$ac_ext
14870fi
14871
14872
14873		CFLAGS="$xorg_testset_save_CFLAGS"
14874
14875		eval supported=\$$cacheid
14876		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14877printf "%s\n" "$supported" >&6; }
14878		if test "$supported" = "yes" ; then
14879			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14880			found="yes"
14881		fi
14882	fi
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898xorg_testset_save_CFLAGS="$CFLAGS"
14899
14900if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14901	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14902	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14903printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14904if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14905then :
14906  printf %s "(cached) " >&6
14907else $as_nop
14908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14909/* end confdefs.h.  */
14910int i;
14911_ACEOF
14912if ac_fn_c_try_compile "$LINENO"
14913then :
14914  xorg_cv_cc_flag_unknown_warning_option=yes
14915else $as_nop
14916  xorg_cv_cc_flag_unknown_warning_option=no
14917fi
14918rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14919fi
14920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14921printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14922	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14923	CFLAGS="$xorg_testset_save_CFLAGS"
14924fi
14925
14926if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14927	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14928		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14929	fi
14930	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14931	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14932printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14933if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14934then :
14935  printf %s "(cached) " >&6
14936else $as_nop
14937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14938/* end confdefs.h.  */
14939int i;
14940_ACEOF
14941if ac_fn_c_try_compile "$LINENO"
14942then :
14943  xorg_cv_cc_flag_unused_command_line_argument=yes
14944else $as_nop
14945  xorg_cv_cc_flag_unused_command_line_argument=no
14946fi
14947rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14948fi
14949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14950printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14951	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14952	CFLAGS="$xorg_testset_save_CFLAGS"
14953fi
14954
14955found="no"
14956
14957	if test $found = "no" ; then
14958		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14959			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14960		fi
14961
14962		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14963			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14964		fi
14965
14966		CFLAGS="$CFLAGS -Wredundant-decls"
14967
14968		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14969printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
14970		cacheid=xorg_cv_cc_flag__Wredundant_decls
14971		if eval test \${$cacheid+y}
14972then :
14973  printf %s "(cached) " >&6
14974else $as_nop
14975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14976/* end confdefs.h.  */
14977int i;
14978int
14979main (void)
14980{
14981
14982  ;
14983  return 0;
14984}
14985_ACEOF
14986if ac_fn_c_try_link "$LINENO"
14987then :
14988  eval $cacheid=yes
14989else $as_nop
14990  eval $cacheid=no
14991fi
14992rm -f core conftest.err conftest.$ac_objext conftest.beam \
14993    conftest$ac_exeext conftest.$ac_ext
14994fi
14995
14996
14997		CFLAGS="$xorg_testset_save_CFLAGS"
14998
14999		eval supported=\$$cacheid
15000		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15001printf "%s\n" "$supported" >&6; }
15002		if test "$supported" = "yes" ; then
15003			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15004			found="yes"
15005		fi
15006	fi
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022xorg_testset_save_CFLAGS="$CFLAGS"
15023
15024if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15025	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15026	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15027printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15028if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15029then :
15030  printf %s "(cached) " >&6
15031else $as_nop
15032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15033/* end confdefs.h.  */
15034int i;
15035_ACEOF
15036if ac_fn_c_try_compile "$LINENO"
15037then :
15038  xorg_cv_cc_flag_unknown_warning_option=yes
15039else $as_nop
15040  xorg_cv_cc_flag_unknown_warning_option=no
15041fi
15042rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15043fi
15044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15045printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15046	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15047	CFLAGS="$xorg_testset_save_CFLAGS"
15048fi
15049
15050if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15051	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15052		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15053	fi
15054	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15055	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15056printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15057if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15058then :
15059  printf %s "(cached) " >&6
15060else $as_nop
15061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15062/* end confdefs.h.  */
15063int i;
15064_ACEOF
15065if ac_fn_c_try_compile "$LINENO"
15066then :
15067  xorg_cv_cc_flag_unused_command_line_argument=yes
15068else $as_nop
15069  xorg_cv_cc_flag_unused_command_line_argument=no
15070fi
15071rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15072fi
15073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15074printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15075	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15076	CFLAGS="$xorg_testset_save_CFLAGS"
15077fi
15078
15079found="no"
15080
15081	if test $found = "no" ; then
15082		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15083			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15084		fi
15085
15086		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15087			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15088		fi
15089
15090		CFLAGS="$CFLAGS -Wlogical-op"
15091
15092		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15093printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15094		cacheid=xorg_cv_cc_flag__Wlogical_op
15095		if eval test \${$cacheid+y}
15096then :
15097  printf %s "(cached) " >&6
15098else $as_nop
15099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15100/* end confdefs.h.  */
15101int i;
15102int
15103main (void)
15104{
15105
15106  ;
15107  return 0;
15108}
15109_ACEOF
15110if ac_fn_c_try_link "$LINENO"
15111then :
15112  eval $cacheid=yes
15113else $as_nop
15114  eval $cacheid=no
15115fi
15116rm -f core conftest.err conftest.$ac_objext conftest.beam \
15117    conftest$ac_exeext conftest.$ac_ext
15118fi
15119
15120
15121		CFLAGS="$xorg_testset_save_CFLAGS"
15122
15123		eval supported=\$$cacheid
15124		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15125printf "%s\n" "$supported" >&6; }
15126		if test "$supported" = "yes" ; then
15127			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15128			found="yes"
15129		fi
15130	fi
15131
15132
15133
15134# These are currently disabled because they are noisy.  They will be enabled
15135# in the future once the codebase is sufficiently modernized to silence
15136# them.  For now, I don't want them to drown out the other warnings.
15137# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15138# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15139# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15140
15141# Turn some warnings into errors, so we don't accidently get successful builds
15142# when there are problems that should be fixed.
15143
15144if test "x$SELECTIVE_WERROR" = "xyes" ; then
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158xorg_testset_save_CFLAGS="$CFLAGS"
15159
15160if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15161	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15162	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15163printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15164if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15165then :
15166  printf %s "(cached) " >&6
15167else $as_nop
15168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15169/* end confdefs.h.  */
15170int i;
15171_ACEOF
15172if ac_fn_c_try_compile "$LINENO"
15173then :
15174  xorg_cv_cc_flag_unknown_warning_option=yes
15175else $as_nop
15176  xorg_cv_cc_flag_unknown_warning_option=no
15177fi
15178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15179fi
15180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15181printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15182	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15183	CFLAGS="$xorg_testset_save_CFLAGS"
15184fi
15185
15186if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15187	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15188		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15189	fi
15190	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15191	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15192printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15193if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15194then :
15195  printf %s "(cached) " >&6
15196else $as_nop
15197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15198/* end confdefs.h.  */
15199int i;
15200_ACEOF
15201if ac_fn_c_try_compile "$LINENO"
15202then :
15203  xorg_cv_cc_flag_unused_command_line_argument=yes
15204else $as_nop
15205  xorg_cv_cc_flag_unused_command_line_argument=no
15206fi
15207rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15208fi
15209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15210printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15211	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15212	CFLAGS="$xorg_testset_save_CFLAGS"
15213fi
15214
15215found="no"
15216
15217	if test $found = "no" ; then
15218		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15219			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15220		fi
15221
15222		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15223			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15224		fi
15225
15226		CFLAGS="$CFLAGS -Werror=implicit"
15227
15228		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15229printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15230		cacheid=xorg_cv_cc_flag__Werror_implicit
15231		if eval test \${$cacheid+y}
15232then :
15233  printf %s "(cached) " >&6
15234else $as_nop
15235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15236/* end confdefs.h.  */
15237int i;
15238int
15239main (void)
15240{
15241
15242  ;
15243  return 0;
15244}
15245_ACEOF
15246if ac_fn_c_try_link "$LINENO"
15247then :
15248  eval $cacheid=yes
15249else $as_nop
15250  eval $cacheid=no
15251fi
15252rm -f core conftest.err conftest.$ac_objext conftest.beam \
15253    conftest$ac_exeext conftest.$ac_ext
15254fi
15255
15256
15257		CFLAGS="$xorg_testset_save_CFLAGS"
15258
15259		eval supported=\$$cacheid
15260		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15261printf "%s\n" "$supported" >&6; }
15262		if test "$supported" = "yes" ; then
15263			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15264			found="yes"
15265		fi
15266	fi
15267
15268	if test $found = "no" ; then
15269		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15270			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15271		fi
15272
15273		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15274			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15275		fi
15276
15277		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15278
15279		{ 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
15280printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15281		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15282		if eval test \${$cacheid+y}
15283then :
15284  printf %s "(cached) " >&6
15285else $as_nop
15286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15287/* end confdefs.h.  */
15288int i;
15289int
15290main (void)
15291{
15292
15293  ;
15294  return 0;
15295}
15296_ACEOF
15297if ac_fn_c_try_link "$LINENO"
15298then :
15299  eval $cacheid=yes
15300else $as_nop
15301  eval $cacheid=no
15302fi
15303rm -f core conftest.err conftest.$ac_objext conftest.beam \
15304    conftest$ac_exeext conftest.$ac_ext
15305fi
15306
15307
15308		CFLAGS="$xorg_testset_save_CFLAGS"
15309
15310		eval supported=\$$cacheid
15311		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15312printf "%s\n" "$supported" >&6; }
15313		if test "$supported" = "yes" ; then
15314			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15315			found="yes"
15316		fi
15317	fi
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333xorg_testset_save_CFLAGS="$CFLAGS"
15334
15335if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15336	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15337	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15338printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15339if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15340then :
15341  printf %s "(cached) " >&6
15342else $as_nop
15343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15344/* end confdefs.h.  */
15345int i;
15346_ACEOF
15347if ac_fn_c_try_compile "$LINENO"
15348then :
15349  xorg_cv_cc_flag_unknown_warning_option=yes
15350else $as_nop
15351  xorg_cv_cc_flag_unknown_warning_option=no
15352fi
15353rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15354fi
15355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15356printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15357	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15358	CFLAGS="$xorg_testset_save_CFLAGS"
15359fi
15360
15361if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15362	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15363		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15364	fi
15365	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15366	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15367printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15368if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15369then :
15370  printf %s "(cached) " >&6
15371else $as_nop
15372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15373/* end confdefs.h.  */
15374int i;
15375_ACEOF
15376if ac_fn_c_try_compile "$LINENO"
15377then :
15378  xorg_cv_cc_flag_unused_command_line_argument=yes
15379else $as_nop
15380  xorg_cv_cc_flag_unused_command_line_argument=no
15381fi
15382rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15383fi
15384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15385printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15386	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15387	CFLAGS="$xorg_testset_save_CFLAGS"
15388fi
15389
15390found="no"
15391
15392	if test $found = "no" ; then
15393		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15394			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15395		fi
15396
15397		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15398			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15399		fi
15400
15401		CFLAGS="$CFLAGS -Werror=nonnull"
15402
15403		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15404printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15405		cacheid=xorg_cv_cc_flag__Werror_nonnull
15406		if eval test \${$cacheid+y}
15407then :
15408  printf %s "(cached) " >&6
15409else $as_nop
15410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15411/* end confdefs.h.  */
15412int i;
15413int
15414main (void)
15415{
15416
15417  ;
15418  return 0;
15419}
15420_ACEOF
15421if ac_fn_c_try_link "$LINENO"
15422then :
15423  eval $cacheid=yes
15424else $as_nop
15425  eval $cacheid=no
15426fi
15427rm -f core conftest.err conftest.$ac_objext conftest.beam \
15428    conftest$ac_exeext conftest.$ac_ext
15429fi
15430
15431
15432		CFLAGS="$xorg_testset_save_CFLAGS"
15433
15434		eval supported=\$$cacheid
15435		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15436printf "%s\n" "$supported" >&6; }
15437		if test "$supported" = "yes" ; then
15438			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15439			found="yes"
15440		fi
15441	fi
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457xorg_testset_save_CFLAGS="$CFLAGS"
15458
15459if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15460	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15461	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15462printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15463if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15464then :
15465  printf %s "(cached) " >&6
15466else $as_nop
15467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15468/* end confdefs.h.  */
15469int i;
15470_ACEOF
15471if ac_fn_c_try_compile "$LINENO"
15472then :
15473  xorg_cv_cc_flag_unknown_warning_option=yes
15474else $as_nop
15475  xorg_cv_cc_flag_unknown_warning_option=no
15476fi
15477rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15478fi
15479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15480printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15481	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15482	CFLAGS="$xorg_testset_save_CFLAGS"
15483fi
15484
15485if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15486	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15487		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15488	fi
15489	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15490	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15491printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15492if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15493then :
15494  printf %s "(cached) " >&6
15495else $as_nop
15496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15497/* end confdefs.h.  */
15498int i;
15499_ACEOF
15500if ac_fn_c_try_compile "$LINENO"
15501then :
15502  xorg_cv_cc_flag_unused_command_line_argument=yes
15503else $as_nop
15504  xorg_cv_cc_flag_unused_command_line_argument=no
15505fi
15506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15507fi
15508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15509printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15510	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15511	CFLAGS="$xorg_testset_save_CFLAGS"
15512fi
15513
15514found="no"
15515
15516	if test $found = "no" ; then
15517		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15518			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15519		fi
15520
15521		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15522			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15523		fi
15524
15525		CFLAGS="$CFLAGS -Werror=init-self"
15526
15527		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15528printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15529		cacheid=xorg_cv_cc_flag__Werror_init_self
15530		if eval test \${$cacheid+y}
15531then :
15532  printf %s "(cached) " >&6
15533else $as_nop
15534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15535/* end confdefs.h.  */
15536int i;
15537int
15538main (void)
15539{
15540
15541  ;
15542  return 0;
15543}
15544_ACEOF
15545if ac_fn_c_try_link "$LINENO"
15546then :
15547  eval $cacheid=yes
15548else $as_nop
15549  eval $cacheid=no
15550fi
15551rm -f core conftest.err conftest.$ac_objext conftest.beam \
15552    conftest$ac_exeext conftest.$ac_ext
15553fi
15554
15555
15556		CFLAGS="$xorg_testset_save_CFLAGS"
15557
15558		eval supported=\$$cacheid
15559		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15560printf "%s\n" "$supported" >&6; }
15561		if test "$supported" = "yes" ; then
15562			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15563			found="yes"
15564		fi
15565	fi
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581xorg_testset_save_CFLAGS="$CFLAGS"
15582
15583if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15584	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15585	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15586printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15587if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15588then :
15589  printf %s "(cached) " >&6
15590else $as_nop
15591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15592/* end confdefs.h.  */
15593int i;
15594_ACEOF
15595if ac_fn_c_try_compile "$LINENO"
15596then :
15597  xorg_cv_cc_flag_unknown_warning_option=yes
15598else $as_nop
15599  xorg_cv_cc_flag_unknown_warning_option=no
15600fi
15601rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15602fi
15603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15604printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15605	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15606	CFLAGS="$xorg_testset_save_CFLAGS"
15607fi
15608
15609if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15610	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15611		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15612	fi
15613	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15614	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15615printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15616if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15617then :
15618  printf %s "(cached) " >&6
15619else $as_nop
15620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15621/* end confdefs.h.  */
15622int i;
15623_ACEOF
15624if ac_fn_c_try_compile "$LINENO"
15625then :
15626  xorg_cv_cc_flag_unused_command_line_argument=yes
15627else $as_nop
15628  xorg_cv_cc_flag_unused_command_line_argument=no
15629fi
15630rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15631fi
15632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15633printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15634	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15635	CFLAGS="$xorg_testset_save_CFLAGS"
15636fi
15637
15638found="no"
15639
15640	if test $found = "no" ; then
15641		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15642			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15643		fi
15644
15645		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15646			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15647		fi
15648
15649		CFLAGS="$CFLAGS -Werror=main"
15650
15651		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15652printf %s "checking if $CC supports -Werror=main... " >&6; }
15653		cacheid=xorg_cv_cc_flag__Werror_main
15654		if eval test \${$cacheid+y}
15655then :
15656  printf %s "(cached) " >&6
15657else $as_nop
15658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15659/* end confdefs.h.  */
15660int i;
15661int
15662main (void)
15663{
15664
15665  ;
15666  return 0;
15667}
15668_ACEOF
15669if ac_fn_c_try_link "$LINENO"
15670then :
15671  eval $cacheid=yes
15672else $as_nop
15673  eval $cacheid=no
15674fi
15675rm -f core conftest.err conftest.$ac_objext conftest.beam \
15676    conftest$ac_exeext conftest.$ac_ext
15677fi
15678
15679
15680		CFLAGS="$xorg_testset_save_CFLAGS"
15681
15682		eval supported=\$$cacheid
15683		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15684printf "%s\n" "$supported" >&6; }
15685		if test "$supported" = "yes" ; then
15686			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15687			found="yes"
15688		fi
15689	fi
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705xorg_testset_save_CFLAGS="$CFLAGS"
15706
15707if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15708	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15709	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15710printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15711if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15712then :
15713  printf %s "(cached) " >&6
15714else $as_nop
15715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15716/* end confdefs.h.  */
15717int i;
15718_ACEOF
15719if ac_fn_c_try_compile "$LINENO"
15720then :
15721  xorg_cv_cc_flag_unknown_warning_option=yes
15722else $as_nop
15723  xorg_cv_cc_flag_unknown_warning_option=no
15724fi
15725rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15726fi
15727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15728printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15729	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15730	CFLAGS="$xorg_testset_save_CFLAGS"
15731fi
15732
15733if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15734	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15735		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15736	fi
15737	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15738	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15739printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15740if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15741then :
15742  printf %s "(cached) " >&6
15743else $as_nop
15744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15745/* end confdefs.h.  */
15746int i;
15747_ACEOF
15748if ac_fn_c_try_compile "$LINENO"
15749then :
15750  xorg_cv_cc_flag_unused_command_line_argument=yes
15751else $as_nop
15752  xorg_cv_cc_flag_unused_command_line_argument=no
15753fi
15754rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15755fi
15756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15757printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15758	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15759	CFLAGS="$xorg_testset_save_CFLAGS"
15760fi
15761
15762found="no"
15763
15764	if test $found = "no" ; then
15765		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15766			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15767		fi
15768
15769		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15770			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15771		fi
15772
15773		CFLAGS="$CFLAGS -Werror=missing-braces"
15774
15775		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15776printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
15777		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15778		if eval test \${$cacheid+y}
15779then :
15780  printf %s "(cached) " >&6
15781else $as_nop
15782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15783/* end confdefs.h.  */
15784int i;
15785int
15786main (void)
15787{
15788
15789  ;
15790  return 0;
15791}
15792_ACEOF
15793if ac_fn_c_try_link "$LINENO"
15794then :
15795  eval $cacheid=yes
15796else $as_nop
15797  eval $cacheid=no
15798fi
15799rm -f core conftest.err conftest.$ac_objext conftest.beam \
15800    conftest$ac_exeext conftest.$ac_ext
15801fi
15802
15803
15804		CFLAGS="$xorg_testset_save_CFLAGS"
15805
15806		eval supported=\$$cacheid
15807		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15808printf "%s\n" "$supported" >&6; }
15809		if test "$supported" = "yes" ; then
15810			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15811			found="yes"
15812		fi
15813	fi
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829xorg_testset_save_CFLAGS="$CFLAGS"
15830
15831if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15832	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15833	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15834printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15835if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15836then :
15837  printf %s "(cached) " >&6
15838else $as_nop
15839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15840/* end confdefs.h.  */
15841int i;
15842_ACEOF
15843if ac_fn_c_try_compile "$LINENO"
15844then :
15845  xorg_cv_cc_flag_unknown_warning_option=yes
15846else $as_nop
15847  xorg_cv_cc_flag_unknown_warning_option=no
15848fi
15849rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15850fi
15851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15852printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15853	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15854	CFLAGS="$xorg_testset_save_CFLAGS"
15855fi
15856
15857if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15858	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15859		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15860	fi
15861	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15862	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15863printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15864if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15865then :
15866  printf %s "(cached) " >&6
15867else $as_nop
15868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15869/* end confdefs.h.  */
15870int i;
15871_ACEOF
15872if ac_fn_c_try_compile "$LINENO"
15873then :
15874  xorg_cv_cc_flag_unused_command_line_argument=yes
15875else $as_nop
15876  xorg_cv_cc_flag_unused_command_line_argument=no
15877fi
15878rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15879fi
15880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15881printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15882	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15883	CFLAGS="$xorg_testset_save_CFLAGS"
15884fi
15885
15886found="no"
15887
15888	if test $found = "no" ; then
15889		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15890			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15891		fi
15892
15893		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15894			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15895		fi
15896
15897		CFLAGS="$CFLAGS -Werror=sequence-point"
15898
15899		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15900printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
15901		cacheid=xorg_cv_cc_flag__Werror_sequence_point
15902		if eval test \${$cacheid+y}
15903then :
15904  printf %s "(cached) " >&6
15905else $as_nop
15906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15907/* end confdefs.h.  */
15908int i;
15909int
15910main (void)
15911{
15912
15913  ;
15914  return 0;
15915}
15916_ACEOF
15917if ac_fn_c_try_link "$LINENO"
15918then :
15919  eval $cacheid=yes
15920else $as_nop
15921  eval $cacheid=no
15922fi
15923rm -f core conftest.err conftest.$ac_objext conftest.beam \
15924    conftest$ac_exeext conftest.$ac_ext
15925fi
15926
15927
15928		CFLAGS="$xorg_testset_save_CFLAGS"
15929
15930		eval supported=\$$cacheid
15931		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15932printf "%s\n" "$supported" >&6; }
15933		if test "$supported" = "yes" ; then
15934			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15935			found="yes"
15936		fi
15937	fi
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953xorg_testset_save_CFLAGS="$CFLAGS"
15954
15955if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15956	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15957	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15958printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15959if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15960then :
15961  printf %s "(cached) " >&6
15962else $as_nop
15963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15964/* end confdefs.h.  */
15965int i;
15966_ACEOF
15967if ac_fn_c_try_compile "$LINENO"
15968then :
15969  xorg_cv_cc_flag_unknown_warning_option=yes
15970else $as_nop
15971  xorg_cv_cc_flag_unknown_warning_option=no
15972fi
15973rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15974fi
15975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15976printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15977	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15978	CFLAGS="$xorg_testset_save_CFLAGS"
15979fi
15980
15981if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15982	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15983		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15984	fi
15985	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15986	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15987printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15988if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15989then :
15990  printf %s "(cached) " >&6
15991else $as_nop
15992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15993/* end confdefs.h.  */
15994int i;
15995_ACEOF
15996if ac_fn_c_try_compile "$LINENO"
15997then :
15998  xorg_cv_cc_flag_unused_command_line_argument=yes
15999else $as_nop
16000  xorg_cv_cc_flag_unused_command_line_argument=no
16001fi
16002rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16003fi
16004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16005printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16006	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16007	CFLAGS="$xorg_testset_save_CFLAGS"
16008fi
16009
16010found="no"
16011
16012	if test $found = "no" ; then
16013		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16014			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16015		fi
16016
16017		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16018			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16019		fi
16020
16021		CFLAGS="$CFLAGS -Werror=return-type"
16022
16023		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16024printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16025		cacheid=xorg_cv_cc_flag__Werror_return_type
16026		if eval test \${$cacheid+y}
16027then :
16028  printf %s "(cached) " >&6
16029else $as_nop
16030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16031/* end confdefs.h.  */
16032int i;
16033int
16034main (void)
16035{
16036
16037  ;
16038  return 0;
16039}
16040_ACEOF
16041if ac_fn_c_try_link "$LINENO"
16042then :
16043  eval $cacheid=yes
16044else $as_nop
16045  eval $cacheid=no
16046fi
16047rm -f core conftest.err conftest.$ac_objext conftest.beam \
16048    conftest$ac_exeext conftest.$ac_ext
16049fi
16050
16051
16052		CFLAGS="$xorg_testset_save_CFLAGS"
16053
16054		eval supported=\$$cacheid
16055		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16056printf "%s\n" "$supported" >&6; }
16057		if test "$supported" = "yes" ; then
16058			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16059			found="yes"
16060		fi
16061	fi
16062
16063	if test $found = "no" ; then
16064		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16065			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16066		fi
16067
16068		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16069			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16070		fi
16071
16072		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16073
16074		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16075printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16076		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16077		if eval test \${$cacheid+y}
16078then :
16079  printf %s "(cached) " >&6
16080else $as_nop
16081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16082/* end confdefs.h.  */
16083int i;
16084int
16085main (void)
16086{
16087
16088  ;
16089  return 0;
16090}
16091_ACEOF
16092if ac_fn_c_try_link "$LINENO"
16093then :
16094  eval $cacheid=yes
16095else $as_nop
16096  eval $cacheid=no
16097fi
16098rm -f core conftest.err conftest.$ac_objext conftest.beam \
16099    conftest$ac_exeext conftest.$ac_ext
16100fi
16101
16102
16103		CFLAGS="$xorg_testset_save_CFLAGS"
16104
16105		eval supported=\$$cacheid
16106		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16107printf "%s\n" "$supported" >&6; }
16108		if test "$supported" = "yes" ; then
16109			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16110			found="yes"
16111		fi
16112	fi
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128xorg_testset_save_CFLAGS="$CFLAGS"
16129
16130if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16131	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16132	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16133printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16134if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16135then :
16136  printf %s "(cached) " >&6
16137else $as_nop
16138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16139/* end confdefs.h.  */
16140int i;
16141_ACEOF
16142if ac_fn_c_try_compile "$LINENO"
16143then :
16144  xorg_cv_cc_flag_unknown_warning_option=yes
16145else $as_nop
16146  xorg_cv_cc_flag_unknown_warning_option=no
16147fi
16148rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16149fi
16150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16151printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16152	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16153	CFLAGS="$xorg_testset_save_CFLAGS"
16154fi
16155
16156if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16157	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16158		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16159	fi
16160	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16161	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16162printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16163if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16164then :
16165  printf %s "(cached) " >&6
16166else $as_nop
16167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16168/* end confdefs.h.  */
16169int i;
16170_ACEOF
16171if ac_fn_c_try_compile "$LINENO"
16172then :
16173  xorg_cv_cc_flag_unused_command_line_argument=yes
16174else $as_nop
16175  xorg_cv_cc_flag_unused_command_line_argument=no
16176fi
16177rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16178fi
16179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16180printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16181	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16182	CFLAGS="$xorg_testset_save_CFLAGS"
16183fi
16184
16185found="no"
16186
16187	if test $found = "no" ; then
16188		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16189			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16190		fi
16191
16192		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16193			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16194		fi
16195
16196		CFLAGS="$CFLAGS -Werror=trigraphs"
16197
16198		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16199printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16200		cacheid=xorg_cv_cc_flag__Werror_trigraphs
16201		if eval test \${$cacheid+y}
16202then :
16203  printf %s "(cached) " >&6
16204else $as_nop
16205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16206/* end confdefs.h.  */
16207int i;
16208int
16209main (void)
16210{
16211
16212  ;
16213  return 0;
16214}
16215_ACEOF
16216if ac_fn_c_try_link "$LINENO"
16217then :
16218  eval $cacheid=yes
16219else $as_nop
16220  eval $cacheid=no
16221fi
16222rm -f core conftest.err conftest.$ac_objext conftest.beam \
16223    conftest$ac_exeext conftest.$ac_ext
16224fi
16225
16226
16227		CFLAGS="$xorg_testset_save_CFLAGS"
16228
16229		eval supported=\$$cacheid
16230		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16231printf "%s\n" "$supported" >&6; }
16232		if test "$supported" = "yes" ; then
16233			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16234			found="yes"
16235		fi
16236	fi
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252xorg_testset_save_CFLAGS="$CFLAGS"
16253
16254if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16255	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16256	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16257printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16258if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16259then :
16260  printf %s "(cached) " >&6
16261else $as_nop
16262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16263/* end confdefs.h.  */
16264int i;
16265_ACEOF
16266if ac_fn_c_try_compile "$LINENO"
16267then :
16268  xorg_cv_cc_flag_unknown_warning_option=yes
16269else $as_nop
16270  xorg_cv_cc_flag_unknown_warning_option=no
16271fi
16272rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16273fi
16274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16275printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16276	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16277	CFLAGS="$xorg_testset_save_CFLAGS"
16278fi
16279
16280if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16281	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16282		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16283	fi
16284	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16285	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16286printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16287if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16288then :
16289  printf %s "(cached) " >&6
16290else $as_nop
16291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16292/* end confdefs.h.  */
16293int i;
16294_ACEOF
16295if ac_fn_c_try_compile "$LINENO"
16296then :
16297  xorg_cv_cc_flag_unused_command_line_argument=yes
16298else $as_nop
16299  xorg_cv_cc_flag_unused_command_line_argument=no
16300fi
16301rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16302fi
16303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16304printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16305	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16306	CFLAGS="$xorg_testset_save_CFLAGS"
16307fi
16308
16309found="no"
16310
16311	if test $found = "no" ; then
16312		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16313			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16314		fi
16315
16316		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16317			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16318		fi
16319
16320		CFLAGS="$CFLAGS -Werror=array-bounds"
16321
16322		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16323printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16324		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16325		if eval test \${$cacheid+y}
16326then :
16327  printf %s "(cached) " >&6
16328else $as_nop
16329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16330/* end confdefs.h.  */
16331int i;
16332int
16333main (void)
16334{
16335
16336  ;
16337  return 0;
16338}
16339_ACEOF
16340if ac_fn_c_try_link "$LINENO"
16341then :
16342  eval $cacheid=yes
16343else $as_nop
16344  eval $cacheid=no
16345fi
16346rm -f core conftest.err conftest.$ac_objext conftest.beam \
16347    conftest$ac_exeext conftest.$ac_ext
16348fi
16349
16350
16351		CFLAGS="$xorg_testset_save_CFLAGS"
16352
16353		eval supported=\$$cacheid
16354		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16355printf "%s\n" "$supported" >&6; }
16356		if test "$supported" = "yes" ; then
16357			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16358			found="yes"
16359		fi
16360	fi
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376xorg_testset_save_CFLAGS="$CFLAGS"
16377
16378if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16379	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16380	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16381printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16382if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16383then :
16384  printf %s "(cached) " >&6
16385else $as_nop
16386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16387/* end confdefs.h.  */
16388int i;
16389_ACEOF
16390if ac_fn_c_try_compile "$LINENO"
16391then :
16392  xorg_cv_cc_flag_unknown_warning_option=yes
16393else $as_nop
16394  xorg_cv_cc_flag_unknown_warning_option=no
16395fi
16396rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16397fi
16398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16399printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16400	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16401	CFLAGS="$xorg_testset_save_CFLAGS"
16402fi
16403
16404if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16405	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16406		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16407	fi
16408	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16409	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16410printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16411if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16412then :
16413  printf %s "(cached) " >&6
16414else $as_nop
16415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16416/* end confdefs.h.  */
16417int i;
16418_ACEOF
16419if ac_fn_c_try_compile "$LINENO"
16420then :
16421  xorg_cv_cc_flag_unused_command_line_argument=yes
16422else $as_nop
16423  xorg_cv_cc_flag_unused_command_line_argument=no
16424fi
16425rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16426fi
16427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16428printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16429	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16430	CFLAGS="$xorg_testset_save_CFLAGS"
16431fi
16432
16433found="no"
16434
16435	if test $found = "no" ; then
16436		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16437			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16438		fi
16439
16440		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16441			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16442		fi
16443
16444		CFLAGS="$CFLAGS -Werror=write-strings"
16445
16446		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16447printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16448		cacheid=xorg_cv_cc_flag__Werror_write_strings
16449		if eval test \${$cacheid+y}
16450then :
16451  printf %s "(cached) " >&6
16452else $as_nop
16453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16454/* end confdefs.h.  */
16455int i;
16456int
16457main (void)
16458{
16459
16460  ;
16461  return 0;
16462}
16463_ACEOF
16464if ac_fn_c_try_link "$LINENO"
16465then :
16466  eval $cacheid=yes
16467else $as_nop
16468  eval $cacheid=no
16469fi
16470rm -f core conftest.err conftest.$ac_objext conftest.beam \
16471    conftest$ac_exeext conftest.$ac_ext
16472fi
16473
16474
16475		CFLAGS="$xorg_testset_save_CFLAGS"
16476
16477		eval supported=\$$cacheid
16478		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16479printf "%s\n" "$supported" >&6; }
16480		if test "$supported" = "yes" ; then
16481			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16482			found="yes"
16483		fi
16484	fi
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500xorg_testset_save_CFLAGS="$CFLAGS"
16501
16502if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16503	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16504	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16505printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16506if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16507then :
16508  printf %s "(cached) " >&6
16509else $as_nop
16510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16511/* end confdefs.h.  */
16512int i;
16513_ACEOF
16514if ac_fn_c_try_compile "$LINENO"
16515then :
16516  xorg_cv_cc_flag_unknown_warning_option=yes
16517else $as_nop
16518  xorg_cv_cc_flag_unknown_warning_option=no
16519fi
16520rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16521fi
16522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16523printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16524	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16525	CFLAGS="$xorg_testset_save_CFLAGS"
16526fi
16527
16528if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16529	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16530		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16531	fi
16532	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16533	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16534printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16535if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16536then :
16537  printf %s "(cached) " >&6
16538else $as_nop
16539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16540/* end confdefs.h.  */
16541int i;
16542_ACEOF
16543if ac_fn_c_try_compile "$LINENO"
16544then :
16545  xorg_cv_cc_flag_unused_command_line_argument=yes
16546else $as_nop
16547  xorg_cv_cc_flag_unused_command_line_argument=no
16548fi
16549rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16550fi
16551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16552printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16553	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16554	CFLAGS="$xorg_testset_save_CFLAGS"
16555fi
16556
16557found="no"
16558
16559	if test $found = "no" ; then
16560		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16561			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16562		fi
16563
16564		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16565			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16566		fi
16567
16568		CFLAGS="$CFLAGS -Werror=address"
16569
16570		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16571printf %s "checking if $CC supports -Werror=address... " >&6; }
16572		cacheid=xorg_cv_cc_flag__Werror_address
16573		if eval test \${$cacheid+y}
16574then :
16575  printf %s "(cached) " >&6
16576else $as_nop
16577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16578/* end confdefs.h.  */
16579int i;
16580int
16581main (void)
16582{
16583
16584  ;
16585  return 0;
16586}
16587_ACEOF
16588if ac_fn_c_try_link "$LINENO"
16589then :
16590  eval $cacheid=yes
16591else $as_nop
16592  eval $cacheid=no
16593fi
16594rm -f core conftest.err conftest.$ac_objext conftest.beam \
16595    conftest$ac_exeext conftest.$ac_ext
16596fi
16597
16598
16599		CFLAGS="$xorg_testset_save_CFLAGS"
16600
16601		eval supported=\$$cacheid
16602		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16603printf "%s\n" "$supported" >&6; }
16604		if test "$supported" = "yes" ; then
16605			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16606			found="yes"
16607		fi
16608	fi
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624xorg_testset_save_CFLAGS="$CFLAGS"
16625
16626if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16627	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16628	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16629printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16630if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16631then :
16632  printf %s "(cached) " >&6
16633else $as_nop
16634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16635/* end confdefs.h.  */
16636int i;
16637_ACEOF
16638if ac_fn_c_try_compile "$LINENO"
16639then :
16640  xorg_cv_cc_flag_unknown_warning_option=yes
16641else $as_nop
16642  xorg_cv_cc_flag_unknown_warning_option=no
16643fi
16644rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16645fi
16646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16647printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16648	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16649	CFLAGS="$xorg_testset_save_CFLAGS"
16650fi
16651
16652if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16653	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16654		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16655	fi
16656	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16657	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16658printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16659if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16660then :
16661  printf %s "(cached) " >&6
16662else $as_nop
16663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16664/* end confdefs.h.  */
16665int i;
16666_ACEOF
16667if ac_fn_c_try_compile "$LINENO"
16668then :
16669  xorg_cv_cc_flag_unused_command_line_argument=yes
16670else $as_nop
16671  xorg_cv_cc_flag_unused_command_line_argument=no
16672fi
16673rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16674fi
16675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16676printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16677	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16678	CFLAGS="$xorg_testset_save_CFLAGS"
16679fi
16680
16681found="no"
16682
16683	if test $found = "no" ; then
16684		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16685			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16686		fi
16687
16688		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16689			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16690		fi
16691
16692		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16693
16694		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16695printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16696		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16697		if eval test \${$cacheid+y}
16698then :
16699  printf %s "(cached) " >&6
16700else $as_nop
16701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16702/* end confdefs.h.  */
16703int i;
16704int
16705main (void)
16706{
16707
16708  ;
16709  return 0;
16710}
16711_ACEOF
16712if ac_fn_c_try_link "$LINENO"
16713then :
16714  eval $cacheid=yes
16715else $as_nop
16716  eval $cacheid=no
16717fi
16718rm -f core conftest.err conftest.$ac_objext conftest.beam \
16719    conftest$ac_exeext conftest.$ac_ext
16720fi
16721
16722
16723		CFLAGS="$xorg_testset_save_CFLAGS"
16724
16725		eval supported=\$$cacheid
16726		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16727printf "%s\n" "$supported" >&6; }
16728		if test "$supported" = "yes" ; then
16729			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16730			found="yes"
16731		fi
16732	fi
16733
16734	if test $found = "no" ; then
16735		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16736			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16737		fi
16738
16739		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16740			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16741		fi
16742
16743		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16744
16745		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16746printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16747		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16748		if eval test \${$cacheid+y}
16749then :
16750  printf %s "(cached) " >&6
16751else $as_nop
16752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16753/* end confdefs.h.  */
16754int i;
16755int
16756main (void)
16757{
16758
16759  ;
16760  return 0;
16761}
16762_ACEOF
16763if ac_fn_c_try_link "$LINENO"
16764then :
16765  eval $cacheid=yes
16766else $as_nop
16767  eval $cacheid=no
16768fi
16769rm -f core conftest.err conftest.$ac_objext conftest.beam \
16770    conftest$ac_exeext conftest.$ac_ext
16771fi
16772
16773
16774		CFLAGS="$xorg_testset_save_CFLAGS"
16775
16776		eval supported=\$$cacheid
16777		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16778printf "%s\n" "$supported" >&6; }
16779		if test "$supported" = "yes" ; then
16780			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16781			found="yes"
16782		fi
16783	fi
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799xorg_testset_save_CFLAGS="$CFLAGS"
16800
16801if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16802	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16803	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16804printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16805if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16806then :
16807  printf %s "(cached) " >&6
16808else $as_nop
16809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16810/* end confdefs.h.  */
16811int i;
16812_ACEOF
16813if ac_fn_c_try_compile "$LINENO"
16814then :
16815  xorg_cv_cc_flag_unknown_warning_option=yes
16816else $as_nop
16817  xorg_cv_cc_flag_unknown_warning_option=no
16818fi
16819rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16820fi
16821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16822printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16823	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16824	CFLAGS="$xorg_testset_save_CFLAGS"
16825fi
16826
16827if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16828	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16829		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16830	fi
16831	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16832	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16833printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16834if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16835then :
16836  printf %s "(cached) " >&6
16837else $as_nop
16838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16839/* end confdefs.h.  */
16840int i;
16841_ACEOF
16842if ac_fn_c_try_compile "$LINENO"
16843then :
16844  xorg_cv_cc_flag_unused_command_line_argument=yes
16845else $as_nop
16846  xorg_cv_cc_flag_unused_command_line_argument=no
16847fi
16848rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16849fi
16850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16851printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16852	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16853	CFLAGS="$xorg_testset_save_CFLAGS"
16854fi
16855
16856found="no"
16857
16858	if test $found = "no" ; then
16859		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16860			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16861		fi
16862
16863		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16864			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16865		fi
16866
16867		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16868
16869		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16870printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16871		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16872		if eval test \${$cacheid+y}
16873then :
16874  printf %s "(cached) " >&6
16875else $as_nop
16876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16877/* end confdefs.h.  */
16878int i;
16879int
16880main (void)
16881{
16882
16883  ;
16884  return 0;
16885}
16886_ACEOF
16887if ac_fn_c_try_link "$LINENO"
16888then :
16889  eval $cacheid=yes
16890else $as_nop
16891  eval $cacheid=no
16892fi
16893rm -f core conftest.err conftest.$ac_objext conftest.beam \
16894    conftest$ac_exeext conftest.$ac_ext
16895fi
16896
16897
16898		CFLAGS="$xorg_testset_save_CFLAGS"
16899
16900		eval supported=\$$cacheid
16901		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16902printf "%s\n" "$supported" >&6; }
16903		if test "$supported" = "yes" ; then
16904			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16905			found="yes"
16906		fi
16907	fi
16908
16909 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16910else
16911{ 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
16912printf "%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;}
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926xorg_testset_save_CFLAGS="$CFLAGS"
16927
16928if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16929	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16930	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16931printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16932if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16933then :
16934  printf %s "(cached) " >&6
16935else $as_nop
16936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16937/* end confdefs.h.  */
16938int i;
16939_ACEOF
16940if ac_fn_c_try_compile "$LINENO"
16941then :
16942  xorg_cv_cc_flag_unknown_warning_option=yes
16943else $as_nop
16944  xorg_cv_cc_flag_unknown_warning_option=no
16945fi
16946rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16947fi
16948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16949printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16950	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16951	CFLAGS="$xorg_testset_save_CFLAGS"
16952fi
16953
16954if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16955	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16956		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16957	fi
16958	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16959	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16960printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16961if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16962then :
16963  printf %s "(cached) " >&6
16964else $as_nop
16965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16966/* end confdefs.h.  */
16967int i;
16968_ACEOF
16969if ac_fn_c_try_compile "$LINENO"
16970then :
16971  xorg_cv_cc_flag_unused_command_line_argument=yes
16972else $as_nop
16973  xorg_cv_cc_flag_unused_command_line_argument=no
16974fi
16975rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16976fi
16977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16978printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16979	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16980	CFLAGS="$xorg_testset_save_CFLAGS"
16981fi
16982
16983found="no"
16984
16985	if test $found = "no" ; then
16986		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16987			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16988		fi
16989
16990		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16991			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16992		fi
16993
16994		CFLAGS="$CFLAGS -Wimplicit"
16995
16996		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16997printf %s "checking if $CC supports -Wimplicit... " >&6; }
16998		cacheid=xorg_cv_cc_flag__Wimplicit
16999		if eval test \${$cacheid+y}
17000then :
17001  printf %s "(cached) " >&6
17002else $as_nop
17003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17004/* end confdefs.h.  */
17005int i;
17006int
17007main (void)
17008{
17009
17010  ;
17011  return 0;
17012}
17013_ACEOF
17014if ac_fn_c_try_link "$LINENO"
17015then :
17016  eval $cacheid=yes
17017else $as_nop
17018  eval $cacheid=no
17019fi
17020rm -f core conftest.err conftest.$ac_objext conftest.beam \
17021    conftest$ac_exeext conftest.$ac_ext
17022fi
17023
17024
17025		CFLAGS="$xorg_testset_save_CFLAGS"
17026
17027		eval supported=\$$cacheid
17028		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17029printf "%s\n" "$supported" >&6; }
17030		if test "$supported" = "yes" ; then
17031			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17032			found="yes"
17033		fi
17034	fi
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050xorg_testset_save_CFLAGS="$CFLAGS"
17051
17052if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17053	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17054	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17055printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17056if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17057then :
17058  printf %s "(cached) " >&6
17059else $as_nop
17060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17061/* end confdefs.h.  */
17062int i;
17063_ACEOF
17064if ac_fn_c_try_compile "$LINENO"
17065then :
17066  xorg_cv_cc_flag_unknown_warning_option=yes
17067else $as_nop
17068  xorg_cv_cc_flag_unknown_warning_option=no
17069fi
17070rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17071fi
17072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17073printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17074	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17075	CFLAGS="$xorg_testset_save_CFLAGS"
17076fi
17077
17078if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17079	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17080		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17081	fi
17082	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17083	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17084printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17085if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17086then :
17087  printf %s "(cached) " >&6
17088else $as_nop
17089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17090/* end confdefs.h.  */
17091int i;
17092_ACEOF
17093if ac_fn_c_try_compile "$LINENO"
17094then :
17095  xorg_cv_cc_flag_unused_command_line_argument=yes
17096else $as_nop
17097  xorg_cv_cc_flag_unused_command_line_argument=no
17098fi
17099rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17100fi
17101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17102printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17103	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17104	CFLAGS="$xorg_testset_save_CFLAGS"
17105fi
17106
17107found="no"
17108
17109	if test $found = "no" ; then
17110		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17111			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17112		fi
17113
17114		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17115			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17116		fi
17117
17118		CFLAGS="$CFLAGS -Wnonnull"
17119
17120		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17121printf %s "checking if $CC supports -Wnonnull... " >&6; }
17122		cacheid=xorg_cv_cc_flag__Wnonnull
17123		if eval test \${$cacheid+y}
17124then :
17125  printf %s "(cached) " >&6
17126else $as_nop
17127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17128/* end confdefs.h.  */
17129int i;
17130int
17131main (void)
17132{
17133
17134  ;
17135  return 0;
17136}
17137_ACEOF
17138if ac_fn_c_try_link "$LINENO"
17139then :
17140  eval $cacheid=yes
17141else $as_nop
17142  eval $cacheid=no
17143fi
17144rm -f core conftest.err conftest.$ac_objext conftest.beam \
17145    conftest$ac_exeext conftest.$ac_ext
17146fi
17147
17148
17149		CFLAGS="$xorg_testset_save_CFLAGS"
17150
17151		eval supported=\$$cacheid
17152		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17153printf "%s\n" "$supported" >&6; }
17154		if test "$supported" = "yes" ; then
17155			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17156			found="yes"
17157		fi
17158	fi
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174xorg_testset_save_CFLAGS="$CFLAGS"
17175
17176if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17177	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17178	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17179printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17180if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17181then :
17182  printf %s "(cached) " >&6
17183else $as_nop
17184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17185/* end confdefs.h.  */
17186int i;
17187_ACEOF
17188if ac_fn_c_try_compile "$LINENO"
17189then :
17190  xorg_cv_cc_flag_unknown_warning_option=yes
17191else $as_nop
17192  xorg_cv_cc_flag_unknown_warning_option=no
17193fi
17194rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17195fi
17196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17197printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17198	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17199	CFLAGS="$xorg_testset_save_CFLAGS"
17200fi
17201
17202if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17203	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17204		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17205	fi
17206	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17207	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17208printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17209if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17210then :
17211  printf %s "(cached) " >&6
17212else $as_nop
17213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17214/* end confdefs.h.  */
17215int i;
17216_ACEOF
17217if ac_fn_c_try_compile "$LINENO"
17218then :
17219  xorg_cv_cc_flag_unused_command_line_argument=yes
17220else $as_nop
17221  xorg_cv_cc_flag_unused_command_line_argument=no
17222fi
17223rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17224fi
17225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17226printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17227	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17228	CFLAGS="$xorg_testset_save_CFLAGS"
17229fi
17230
17231found="no"
17232
17233	if test $found = "no" ; then
17234		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17235			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17236		fi
17237
17238		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17239			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17240		fi
17241
17242		CFLAGS="$CFLAGS -Winit-self"
17243
17244		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17245printf %s "checking if $CC supports -Winit-self... " >&6; }
17246		cacheid=xorg_cv_cc_flag__Winit_self
17247		if eval test \${$cacheid+y}
17248then :
17249  printf %s "(cached) " >&6
17250else $as_nop
17251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17252/* end confdefs.h.  */
17253int i;
17254int
17255main (void)
17256{
17257
17258  ;
17259  return 0;
17260}
17261_ACEOF
17262if ac_fn_c_try_link "$LINENO"
17263then :
17264  eval $cacheid=yes
17265else $as_nop
17266  eval $cacheid=no
17267fi
17268rm -f core conftest.err conftest.$ac_objext conftest.beam \
17269    conftest$ac_exeext conftest.$ac_ext
17270fi
17271
17272
17273		CFLAGS="$xorg_testset_save_CFLAGS"
17274
17275		eval supported=\$$cacheid
17276		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17277printf "%s\n" "$supported" >&6; }
17278		if test "$supported" = "yes" ; then
17279			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17280			found="yes"
17281		fi
17282	fi
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298xorg_testset_save_CFLAGS="$CFLAGS"
17299
17300if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17301	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17302	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17303printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17304if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17305then :
17306  printf %s "(cached) " >&6
17307else $as_nop
17308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17309/* end confdefs.h.  */
17310int i;
17311_ACEOF
17312if ac_fn_c_try_compile "$LINENO"
17313then :
17314  xorg_cv_cc_flag_unknown_warning_option=yes
17315else $as_nop
17316  xorg_cv_cc_flag_unknown_warning_option=no
17317fi
17318rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17319fi
17320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17321printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17322	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17323	CFLAGS="$xorg_testset_save_CFLAGS"
17324fi
17325
17326if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17327	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17328		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17329	fi
17330	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17331	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17332printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17333if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17334then :
17335  printf %s "(cached) " >&6
17336else $as_nop
17337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17338/* end confdefs.h.  */
17339int i;
17340_ACEOF
17341if ac_fn_c_try_compile "$LINENO"
17342then :
17343  xorg_cv_cc_flag_unused_command_line_argument=yes
17344else $as_nop
17345  xorg_cv_cc_flag_unused_command_line_argument=no
17346fi
17347rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17348fi
17349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17350printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17351	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17352	CFLAGS="$xorg_testset_save_CFLAGS"
17353fi
17354
17355found="no"
17356
17357	if test $found = "no" ; then
17358		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17359			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17360		fi
17361
17362		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17363			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17364		fi
17365
17366		CFLAGS="$CFLAGS -Wmain"
17367
17368		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17369printf %s "checking if $CC supports -Wmain... " >&6; }
17370		cacheid=xorg_cv_cc_flag__Wmain
17371		if eval test \${$cacheid+y}
17372then :
17373  printf %s "(cached) " >&6
17374else $as_nop
17375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17376/* end confdefs.h.  */
17377int i;
17378int
17379main (void)
17380{
17381
17382  ;
17383  return 0;
17384}
17385_ACEOF
17386if ac_fn_c_try_link "$LINENO"
17387then :
17388  eval $cacheid=yes
17389else $as_nop
17390  eval $cacheid=no
17391fi
17392rm -f core conftest.err conftest.$ac_objext conftest.beam \
17393    conftest$ac_exeext conftest.$ac_ext
17394fi
17395
17396
17397		CFLAGS="$xorg_testset_save_CFLAGS"
17398
17399		eval supported=\$$cacheid
17400		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17401printf "%s\n" "$supported" >&6; }
17402		if test "$supported" = "yes" ; then
17403			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17404			found="yes"
17405		fi
17406	fi
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422xorg_testset_save_CFLAGS="$CFLAGS"
17423
17424if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17425	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17426	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17427printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17428if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17429then :
17430  printf %s "(cached) " >&6
17431else $as_nop
17432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17433/* end confdefs.h.  */
17434int i;
17435_ACEOF
17436if ac_fn_c_try_compile "$LINENO"
17437then :
17438  xorg_cv_cc_flag_unknown_warning_option=yes
17439else $as_nop
17440  xorg_cv_cc_flag_unknown_warning_option=no
17441fi
17442rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17443fi
17444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17445printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17446	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17447	CFLAGS="$xorg_testset_save_CFLAGS"
17448fi
17449
17450if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17451	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17452		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17453	fi
17454	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17455	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17456printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17457if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17458then :
17459  printf %s "(cached) " >&6
17460else $as_nop
17461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17462/* end confdefs.h.  */
17463int i;
17464_ACEOF
17465if ac_fn_c_try_compile "$LINENO"
17466then :
17467  xorg_cv_cc_flag_unused_command_line_argument=yes
17468else $as_nop
17469  xorg_cv_cc_flag_unused_command_line_argument=no
17470fi
17471rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17472fi
17473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17474printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17475	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17476	CFLAGS="$xorg_testset_save_CFLAGS"
17477fi
17478
17479found="no"
17480
17481	if test $found = "no" ; then
17482		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17483			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17484		fi
17485
17486		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17487			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17488		fi
17489
17490		CFLAGS="$CFLAGS -Wmissing-braces"
17491
17492		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17493printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17494		cacheid=xorg_cv_cc_flag__Wmissing_braces
17495		if eval test \${$cacheid+y}
17496then :
17497  printf %s "(cached) " >&6
17498else $as_nop
17499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17500/* end confdefs.h.  */
17501int i;
17502int
17503main (void)
17504{
17505
17506  ;
17507  return 0;
17508}
17509_ACEOF
17510if ac_fn_c_try_link "$LINENO"
17511then :
17512  eval $cacheid=yes
17513else $as_nop
17514  eval $cacheid=no
17515fi
17516rm -f core conftest.err conftest.$ac_objext conftest.beam \
17517    conftest$ac_exeext conftest.$ac_ext
17518fi
17519
17520
17521		CFLAGS="$xorg_testset_save_CFLAGS"
17522
17523		eval supported=\$$cacheid
17524		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17525printf "%s\n" "$supported" >&6; }
17526		if test "$supported" = "yes" ; then
17527			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17528			found="yes"
17529		fi
17530	fi
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546xorg_testset_save_CFLAGS="$CFLAGS"
17547
17548if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17549	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17550	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17551printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17552if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17553then :
17554  printf %s "(cached) " >&6
17555else $as_nop
17556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17557/* end confdefs.h.  */
17558int i;
17559_ACEOF
17560if ac_fn_c_try_compile "$LINENO"
17561then :
17562  xorg_cv_cc_flag_unknown_warning_option=yes
17563else $as_nop
17564  xorg_cv_cc_flag_unknown_warning_option=no
17565fi
17566rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17567fi
17568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17569printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17570	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17571	CFLAGS="$xorg_testset_save_CFLAGS"
17572fi
17573
17574if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17575	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17576		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17577	fi
17578	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17579	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17580printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17581if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17582then :
17583  printf %s "(cached) " >&6
17584else $as_nop
17585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17586/* end confdefs.h.  */
17587int i;
17588_ACEOF
17589if ac_fn_c_try_compile "$LINENO"
17590then :
17591  xorg_cv_cc_flag_unused_command_line_argument=yes
17592else $as_nop
17593  xorg_cv_cc_flag_unused_command_line_argument=no
17594fi
17595rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17596fi
17597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17598printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17599	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17600	CFLAGS="$xorg_testset_save_CFLAGS"
17601fi
17602
17603found="no"
17604
17605	if test $found = "no" ; then
17606		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17607			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17608		fi
17609
17610		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17611			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17612		fi
17613
17614		CFLAGS="$CFLAGS -Wsequence-point"
17615
17616		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17617printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17618		cacheid=xorg_cv_cc_flag__Wsequence_point
17619		if eval test \${$cacheid+y}
17620then :
17621  printf %s "(cached) " >&6
17622else $as_nop
17623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17624/* end confdefs.h.  */
17625int i;
17626int
17627main (void)
17628{
17629
17630  ;
17631  return 0;
17632}
17633_ACEOF
17634if ac_fn_c_try_link "$LINENO"
17635then :
17636  eval $cacheid=yes
17637else $as_nop
17638  eval $cacheid=no
17639fi
17640rm -f core conftest.err conftest.$ac_objext conftest.beam \
17641    conftest$ac_exeext conftest.$ac_ext
17642fi
17643
17644
17645		CFLAGS="$xorg_testset_save_CFLAGS"
17646
17647		eval supported=\$$cacheid
17648		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17649printf "%s\n" "$supported" >&6; }
17650		if test "$supported" = "yes" ; then
17651			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17652			found="yes"
17653		fi
17654	fi
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670xorg_testset_save_CFLAGS="$CFLAGS"
17671
17672if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17673	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17674	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17675printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17676if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17677then :
17678  printf %s "(cached) " >&6
17679else $as_nop
17680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17681/* end confdefs.h.  */
17682int i;
17683_ACEOF
17684if ac_fn_c_try_compile "$LINENO"
17685then :
17686  xorg_cv_cc_flag_unknown_warning_option=yes
17687else $as_nop
17688  xorg_cv_cc_flag_unknown_warning_option=no
17689fi
17690rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17691fi
17692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17693printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17694	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17695	CFLAGS="$xorg_testset_save_CFLAGS"
17696fi
17697
17698if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17699	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17700		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17701	fi
17702	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17703	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17704printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17705if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17706then :
17707  printf %s "(cached) " >&6
17708else $as_nop
17709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17710/* end confdefs.h.  */
17711int i;
17712_ACEOF
17713if ac_fn_c_try_compile "$LINENO"
17714then :
17715  xorg_cv_cc_flag_unused_command_line_argument=yes
17716else $as_nop
17717  xorg_cv_cc_flag_unused_command_line_argument=no
17718fi
17719rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17720fi
17721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17722printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17723	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17724	CFLAGS="$xorg_testset_save_CFLAGS"
17725fi
17726
17727found="no"
17728
17729	if test $found = "no" ; then
17730		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17731			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17732		fi
17733
17734		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17735			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17736		fi
17737
17738		CFLAGS="$CFLAGS -Wreturn-type"
17739
17740		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17741printf %s "checking if $CC supports -Wreturn-type... " >&6; }
17742		cacheid=xorg_cv_cc_flag__Wreturn_type
17743		if eval test \${$cacheid+y}
17744then :
17745  printf %s "(cached) " >&6
17746else $as_nop
17747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17748/* end confdefs.h.  */
17749int i;
17750int
17751main (void)
17752{
17753
17754  ;
17755  return 0;
17756}
17757_ACEOF
17758if ac_fn_c_try_link "$LINENO"
17759then :
17760  eval $cacheid=yes
17761else $as_nop
17762  eval $cacheid=no
17763fi
17764rm -f core conftest.err conftest.$ac_objext conftest.beam \
17765    conftest$ac_exeext conftest.$ac_ext
17766fi
17767
17768
17769		CFLAGS="$xorg_testset_save_CFLAGS"
17770
17771		eval supported=\$$cacheid
17772		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17773printf "%s\n" "$supported" >&6; }
17774		if test "$supported" = "yes" ; then
17775			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17776			found="yes"
17777		fi
17778	fi
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794xorg_testset_save_CFLAGS="$CFLAGS"
17795
17796if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17797	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17798	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17799printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17800if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17801then :
17802  printf %s "(cached) " >&6
17803else $as_nop
17804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17805/* end confdefs.h.  */
17806int i;
17807_ACEOF
17808if ac_fn_c_try_compile "$LINENO"
17809then :
17810  xorg_cv_cc_flag_unknown_warning_option=yes
17811else $as_nop
17812  xorg_cv_cc_flag_unknown_warning_option=no
17813fi
17814rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17815fi
17816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17817printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17818	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17819	CFLAGS="$xorg_testset_save_CFLAGS"
17820fi
17821
17822if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17823	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17824		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17825	fi
17826	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17827	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17828printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17829if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17830then :
17831  printf %s "(cached) " >&6
17832else $as_nop
17833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17834/* end confdefs.h.  */
17835int i;
17836_ACEOF
17837if ac_fn_c_try_compile "$LINENO"
17838then :
17839  xorg_cv_cc_flag_unused_command_line_argument=yes
17840else $as_nop
17841  xorg_cv_cc_flag_unused_command_line_argument=no
17842fi
17843rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17844fi
17845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17846printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17847	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17848	CFLAGS="$xorg_testset_save_CFLAGS"
17849fi
17850
17851found="no"
17852
17853	if test $found = "no" ; then
17854		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17855			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17856		fi
17857
17858		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17859			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17860		fi
17861
17862		CFLAGS="$CFLAGS -Wtrigraphs"
17863
17864		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17865printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
17866		cacheid=xorg_cv_cc_flag__Wtrigraphs
17867		if eval test \${$cacheid+y}
17868then :
17869  printf %s "(cached) " >&6
17870else $as_nop
17871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17872/* end confdefs.h.  */
17873int i;
17874int
17875main (void)
17876{
17877
17878  ;
17879  return 0;
17880}
17881_ACEOF
17882if ac_fn_c_try_link "$LINENO"
17883then :
17884  eval $cacheid=yes
17885else $as_nop
17886  eval $cacheid=no
17887fi
17888rm -f core conftest.err conftest.$ac_objext conftest.beam \
17889    conftest$ac_exeext conftest.$ac_ext
17890fi
17891
17892
17893		CFLAGS="$xorg_testset_save_CFLAGS"
17894
17895		eval supported=\$$cacheid
17896		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17897printf "%s\n" "$supported" >&6; }
17898		if test "$supported" = "yes" ; then
17899			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17900			found="yes"
17901		fi
17902	fi
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918xorg_testset_save_CFLAGS="$CFLAGS"
17919
17920if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17921	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17922	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17923printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17924if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17925then :
17926  printf %s "(cached) " >&6
17927else $as_nop
17928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17929/* end confdefs.h.  */
17930int i;
17931_ACEOF
17932if ac_fn_c_try_compile "$LINENO"
17933then :
17934  xorg_cv_cc_flag_unknown_warning_option=yes
17935else $as_nop
17936  xorg_cv_cc_flag_unknown_warning_option=no
17937fi
17938rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17939fi
17940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17941printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17942	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17943	CFLAGS="$xorg_testset_save_CFLAGS"
17944fi
17945
17946if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17947	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17948		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17949	fi
17950	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17951	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17952printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17953if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17954then :
17955  printf %s "(cached) " >&6
17956else $as_nop
17957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17958/* end confdefs.h.  */
17959int i;
17960_ACEOF
17961if ac_fn_c_try_compile "$LINENO"
17962then :
17963  xorg_cv_cc_flag_unused_command_line_argument=yes
17964else $as_nop
17965  xorg_cv_cc_flag_unused_command_line_argument=no
17966fi
17967rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17968fi
17969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17970printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17971	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17972	CFLAGS="$xorg_testset_save_CFLAGS"
17973fi
17974
17975found="no"
17976
17977	if test $found = "no" ; then
17978		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17979			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17980		fi
17981
17982		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17983			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17984		fi
17985
17986		CFLAGS="$CFLAGS -Warray-bounds"
17987
17988		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17989printf %s "checking if $CC supports -Warray-bounds... " >&6; }
17990		cacheid=xorg_cv_cc_flag__Warray_bounds
17991		if eval test \${$cacheid+y}
17992then :
17993  printf %s "(cached) " >&6
17994else $as_nop
17995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17996/* end confdefs.h.  */
17997int i;
17998int
17999main (void)
18000{
18001
18002  ;
18003  return 0;
18004}
18005_ACEOF
18006if ac_fn_c_try_link "$LINENO"
18007then :
18008  eval $cacheid=yes
18009else $as_nop
18010  eval $cacheid=no
18011fi
18012rm -f core conftest.err conftest.$ac_objext conftest.beam \
18013    conftest$ac_exeext conftest.$ac_ext
18014fi
18015
18016
18017		CFLAGS="$xorg_testset_save_CFLAGS"
18018
18019		eval supported=\$$cacheid
18020		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18021printf "%s\n" "$supported" >&6; }
18022		if test "$supported" = "yes" ; then
18023			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18024			found="yes"
18025		fi
18026	fi
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042xorg_testset_save_CFLAGS="$CFLAGS"
18043
18044if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18045	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18046	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18047printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18048if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18049then :
18050  printf %s "(cached) " >&6
18051else $as_nop
18052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18053/* end confdefs.h.  */
18054int i;
18055_ACEOF
18056if ac_fn_c_try_compile "$LINENO"
18057then :
18058  xorg_cv_cc_flag_unknown_warning_option=yes
18059else $as_nop
18060  xorg_cv_cc_flag_unknown_warning_option=no
18061fi
18062rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18063fi
18064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18065printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18066	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18067	CFLAGS="$xorg_testset_save_CFLAGS"
18068fi
18069
18070if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18071	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18072		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18073	fi
18074	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18075	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18076printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18077if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18078then :
18079  printf %s "(cached) " >&6
18080else $as_nop
18081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18082/* end confdefs.h.  */
18083int i;
18084_ACEOF
18085if ac_fn_c_try_compile "$LINENO"
18086then :
18087  xorg_cv_cc_flag_unused_command_line_argument=yes
18088else $as_nop
18089  xorg_cv_cc_flag_unused_command_line_argument=no
18090fi
18091rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18092fi
18093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18094printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18095	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18096	CFLAGS="$xorg_testset_save_CFLAGS"
18097fi
18098
18099found="no"
18100
18101	if test $found = "no" ; then
18102		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18103			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18104		fi
18105
18106		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18107			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18108		fi
18109
18110		CFLAGS="$CFLAGS -Wwrite-strings"
18111
18112		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18113printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18114		cacheid=xorg_cv_cc_flag__Wwrite_strings
18115		if eval test \${$cacheid+y}
18116then :
18117  printf %s "(cached) " >&6
18118else $as_nop
18119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18120/* end confdefs.h.  */
18121int i;
18122int
18123main (void)
18124{
18125
18126  ;
18127  return 0;
18128}
18129_ACEOF
18130if ac_fn_c_try_link "$LINENO"
18131then :
18132  eval $cacheid=yes
18133else $as_nop
18134  eval $cacheid=no
18135fi
18136rm -f core conftest.err conftest.$ac_objext conftest.beam \
18137    conftest$ac_exeext conftest.$ac_ext
18138fi
18139
18140
18141		CFLAGS="$xorg_testset_save_CFLAGS"
18142
18143		eval supported=\$$cacheid
18144		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18145printf "%s\n" "$supported" >&6; }
18146		if test "$supported" = "yes" ; then
18147			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18148			found="yes"
18149		fi
18150	fi
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166xorg_testset_save_CFLAGS="$CFLAGS"
18167
18168if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18169	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18170	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18171printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18172if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18173then :
18174  printf %s "(cached) " >&6
18175else $as_nop
18176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18177/* end confdefs.h.  */
18178int i;
18179_ACEOF
18180if ac_fn_c_try_compile "$LINENO"
18181then :
18182  xorg_cv_cc_flag_unknown_warning_option=yes
18183else $as_nop
18184  xorg_cv_cc_flag_unknown_warning_option=no
18185fi
18186rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18187fi
18188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18189printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18190	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18191	CFLAGS="$xorg_testset_save_CFLAGS"
18192fi
18193
18194if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18195	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18196		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18197	fi
18198	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18199	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18200printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18201if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18202then :
18203  printf %s "(cached) " >&6
18204else $as_nop
18205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18206/* end confdefs.h.  */
18207int i;
18208_ACEOF
18209if ac_fn_c_try_compile "$LINENO"
18210then :
18211  xorg_cv_cc_flag_unused_command_line_argument=yes
18212else $as_nop
18213  xorg_cv_cc_flag_unused_command_line_argument=no
18214fi
18215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18216fi
18217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18218printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18219	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18220	CFLAGS="$xorg_testset_save_CFLAGS"
18221fi
18222
18223found="no"
18224
18225	if test $found = "no" ; then
18226		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18227			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18228		fi
18229
18230		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18231			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18232		fi
18233
18234		CFLAGS="$CFLAGS -Waddress"
18235
18236		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18237printf %s "checking if $CC supports -Waddress... " >&6; }
18238		cacheid=xorg_cv_cc_flag__Waddress
18239		if eval test \${$cacheid+y}
18240then :
18241  printf %s "(cached) " >&6
18242else $as_nop
18243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18244/* end confdefs.h.  */
18245int i;
18246int
18247main (void)
18248{
18249
18250  ;
18251  return 0;
18252}
18253_ACEOF
18254if ac_fn_c_try_link "$LINENO"
18255then :
18256  eval $cacheid=yes
18257else $as_nop
18258  eval $cacheid=no
18259fi
18260rm -f core conftest.err conftest.$ac_objext conftest.beam \
18261    conftest$ac_exeext conftest.$ac_ext
18262fi
18263
18264
18265		CFLAGS="$xorg_testset_save_CFLAGS"
18266
18267		eval supported=\$$cacheid
18268		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18269printf "%s\n" "$supported" >&6; }
18270		if test "$supported" = "yes" ; then
18271			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18272			found="yes"
18273		fi
18274	fi
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290xorg_testset_save_CFLAGS="$CFLAGS"
18291
18292if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18293	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18294	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18295printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18296if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18297then :
18298  printf %s "(cached) " >&6
18299else $as_nop
18300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18301/* end confdefs.h.  */
18302int i;
18303_ACEOF
18304if ac_fn_c_try_compile "$LINENO"
18305then :
18306  xorg_cv_cc_flag_unknown_warning_option=yes
18307else $as_nop
18308  xorg_cv_cc_flag_unknown_warning_option=no
18309fi
18310rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18311fi
18312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18313printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18314	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18315	CFLAGS="$xorg_testset_save_CFLAGS"
18316fi
18317
18318if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18319	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18320		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18321	fi
18322	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18323	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18324printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18325if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18326then :
18327  printf %s "(cached) " >&6
18328else $as_nop
18329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18330/* end confdefs.h.  */
18331int i;
18332_ACEOF
18333if ac_fn_c_try_compile "$LINENO"
18334then :
18335  xorg_cv_cc_flag_unused_command_line_argument=yes
18336else $as_nop
18337  xorg_cv_cc_flag_unused_command_line_argument=no
18338fi
18339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18340fi
18341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18342printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18343	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18344	CFLAGS="$xorg_testset_save_CFLAGS"
18345fi
18346
18347found="no"
18348
18349	if test $found = "no" ; then
18350		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18351			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18352		fi
18353
18354		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18355			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18356		fi
18357
18358		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18359
18360		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18361printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18362		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18363		if eval test \${$cacheid+y}
18364then :
18365  printf %s "(cached) " >&6
18366else $as_nop
18367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18368/* end confdefs.h.  */
18369int i;
18370int
18371main (void)
18372{
18373
18374  ;
18375  return 0;
18376}
18377_ACEOF
18378if ac_fn_c_try_link "$LINENO"
18379then :
18380  eval $cacheid=yes
18381else $as_nop
18382  eval $cacheid=no
18383fi
18384rm -f core conftest.err conftest.$ac_objext conftest.beam \
18385    conftest$ac_exeext conftest.$ac_ext
18386fi
18387
18388
18389		CFLAGS="$xorg_testset_save_CFLAGS"
18390
18391		eval supported=\$$cacheid
18392		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18393printf "%s\n" "$supported" >&6; }
18394		if test "$supported" = "yes" ; then
18395			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18396			found="yes"
18397		fi
18398	fi
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414xorg_testset_save_CFLAGS="$CFLAGS"
18415
18416if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18417	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18418	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18419printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18420if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18421then :
18422  printf %s "(cached) " >&6
18423else $as_nop
18424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18425/* end confdefs.h.  */
18426int i;
18427_ACEOF
18428if ac_fn_c_try_compile "$LINENO"
18429then :
18430  xorg_cv_cc_flag_unknown_warning_option=yes
18431else $as_nop
18432  xorg_cv_cc_flag_unknown_warning_option=no
18433fi
18434rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18435fi
18436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18437printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18438	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18439	CFLAGS="$xorg_testset_save_CFLAGS"
18440fi
18441
18442if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18443	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18444		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18445	fi
18446	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18447	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18448printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18449if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18450then :
18451  printf %s "(cached) " >&6
18452else $as_nop
18453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18454/* end confdefs.h.  */
18455int i;
18456_ACEOF
18457if ac_fn_c_try_compile "$LINENO"
18458then :
18459  xorg_cv_cc_flag_unused_command_line_argument=yes
18460else $as_nop
18461  xorg_cv_cc_flag_unused_command_line_argument=no
18462fi
18463rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18464fi
18465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18466printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18467	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18468	CFLAGS="$xorg_testset_save_CFLAGS"
18469fi
18470
18471found="no"
18472
18473	if test $found = "no" ; then
18474		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18475			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18476		fi
18477
18478		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18479			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18480		fi
18481
18482		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18483
18484		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18485printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18486		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18487		if eval test \${$cacheid+y}
18488then :
18489  printf %s "(cached) " >&6
18490else $as_nop
18491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18492/* end confdefs.h.  */
18493int i;
18494int
18495main (void)
18496{
18497
18498  ;
18499  return 0;
18500}
18501_ACEOF
18502if ac_fn_c_try_link "$LINENO"
18503then :
18504  eval $cacheid=yes
18505else $as_nop
18506  eval $cacheid=no
18507fi
18508rm -f core conftest.err conftest.$ac_objext conftest.beam \
18509    conftest$ac_exeext conftest.$ac_ext
18510fi
18511
18512
18513		CFLAGS="$xorg_testset_save_CFLAGS"
18514
18515		eval supported=\$$cacheid
18516		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18517printf "%s\n" "$supported" >&6; }
18518		if test "$supported" = "yes" ; then
18519			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18520			found="yes"
18521		fi
18522	fi
18523
18524
18525fi
18526
18527
18528
18529
18530
18531
18532
18533		CWARNFLAGS="$BASE_CFLAGS"
18534		if  test "x$GCC" = xyes ; then
18535		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18536		fi
18537
18538
18539
18540
18541
18542
18543
18544
18545# Check whether --enable-strict-compilation was given.
18546if test ${enable_strict_compilation+y}
18547then :
18548  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18549else $as_nop
18550  STRICT_COMPILE=no
18551fi
18552
18553
18554
18555
18556
18557
18558STRICT_CFLAGS=""
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572xorg_testset_save_CFLAGS="$CFLAGS"
18573
18574if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18575	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18576	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18577printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18578if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18579then :
18580  printf %s "(cached) " >&6
18581else $as_nop
18582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18583/* end confdefs.h.  */
18584int i;
18585_ACEOF
18586if ac_fn_c_try_compile "$LINENO"
18587then :
18588  xorg_cv_cc_flag_unknown_warning_option=yes
18589else $as_nop
18590  xorg_cv_cc_flag_unknown_warning_option=no
18591fi
18592rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18593fi
18594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18595printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18596	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18597	CFLAGS="$xorg_testset_save_CFLAGS"
18598fi
18599
18600if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18601	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18602		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18603	fi
18604	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18605	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18606printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18607if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18608then :
18609  printf %s "(cached) " >&6
18610else $as_nop
18611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18612/* end confdefs.h.  */
18613int i;
18614_ACEOF
18615if ac_fn_c_try_compile "$LINENO"
18616then :
18617  xorg_cv_cc_flag_unused_command_line_argument=yes
18618else $as_nop
18619  xorg_cv_cc_flag_unused_command_line_argument=no
18620fi
18621rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18622fi
18623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18624printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18625	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18626	CFLAGS="$xorg_testset_save_CFLAGS"
18627fi
18628
18629found="no"
18630
18631	if test $found = "no" ; then
18632		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18633			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18634		fi
18635
18636		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18637			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18638		fi
18639
18640		CFLAGS="$CFLAGS -pedantic"
18641
18642		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18643printf %s "checking if $CC supports -pedantic... " >&6; }
18644		cacheid=xorg_cv_cc_flag__pedantic
18645		if eval test \${$cacheid+y}
18646then :
18647  printf %s "(cached) " >&6
18648else $as_nop
18649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18650/* end confdefs.h.  */
18651int i;
18652int
18653main (void)
18654{
18655
18656  ;
18657  return 0;
18658}
18659_ACEOF
18660if ac_fn_c_try_link "$LINENO"
18661then :
18662  eval $cacheid=yes
18663else $as_nop
18664  eval $cacheid=no
18665fi
18666rm -f core conftest.err conftest.$ac_objext conftest.beam \
18667    conftest$ac_exeext conftest.$ac_ext
18668fi
18669
18670
18671		CFLAGS="$xorg_testset_save_CFLAGS"
18672
18673		eval supported=\$$cacheid
18674		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18675printf "%s\n" "$supported" >&6; }
18676		if test "$supported" = "yes" ; then
18677			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18678			found="yes"
18679		fi
18680	fi
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696xorg_testset_save_CFLAGS="$CFLAGS"
18697
18698if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18699	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18700	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18701printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18702if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18703then :
18704  printf %s "(cached) " >&6
18705else $as_nop
18706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18707/* end confdefs.h.  */
18708int i;
18709_ACEOF
18710if ac_fn_c_try_compile "$LINENO"
18711then :
18712  xorg_cv_cc_flag_unknown_warning_option=yes
18713else $as_nop
18714  xorg_cv_cc_flag_unknown_warning_option=no
18715fi
18716rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18717fi
18718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18719printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18720	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18721	CFLAGS="$xorg_testset_save_CFLAGS"
18722fi
18723
18724if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18725	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18726		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18727	fi
18728	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18729	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18730printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18731if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18732then :
18733  printf %s "(cached) " >&6
18734else $as_nop
18735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18736/* end confdefs.h.  */
18737int i;
18738_ACEOF
18739if ac_fn_c_try_compile "$LINENO"
18740then :
18741  xorg_cv_cc_flag_unused_command_line_argument=yes
18742else $as_nop
18743  xorg_cv_cc_flag_unused_command_line_argument=no
18744fi
18745rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18746fi
18747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18748printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18749	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18750	CFLAGS="$xorg_testset_save_CFLAGS"
18751fi
18752
18753found="no"
18754
18755	if test $found = "no" ; then
18756		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18757			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18758		fi
18759
18760		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18761			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18762		fi
18763
18764		CFLAGS="$CFLAGS -Werror"
18765
18766		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18767printf %s "checking if $CC supports -Werror... " >&6; }
18768		cacheid=xorg_cv_cc_flag__Werror
18769		if eval test \${$cacheid+y}
18770then :
18771  printf %s "(cached) " >&6
18772else $as_nop
18773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18774/* end confdefs.h.  */
18775int i;
18776int
18777main (void)
18778{
18779
18780  ;
18781  return 0;
18782}
18783_ACEOF
18784if ac_fn_c_try_link "$LINENO"
18785then :
18786  eval $cacheid=yes
18787else $as_nop
18788  eval $cacheid=no
18789fi
18790rm -f core conftest.err conftest.$ac_objext conftest.beam \
18791    conftest$ac_exeext conftest.$ac_ext
18792fi
18793
18794
18795		CFLAGS="$xorg_testset_save_CFLAGS"
18796
18797		eval supported=\$$cacheid
18798		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18799printf "%s\n" "$supported" >&6; }
18800		if test "$supported" = "yes" ; then
18801			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18802			found="yes"
18803		fi
18804	fi
18805
18806	if test $found = "no" ; then
18807		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18808			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18809		fi
18810
18811		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18812			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18813		fi
18814
18815		CFLAGS="$CFLAGS -errwarn"
18816
18817		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18818printf %s "checking if $CC supports -errwarn... " >&6; }
18819		cacheid=xorg_cv_cc_flag__errwarn
18820		if eval test \${$cacheid+y}
18821then :
18822  printf %s "(cached) " >&6
18823else $as_nop
18824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18825/* end confdefs.h.  */
18826int i;
18827int
18828main (void)
18829{
18830
18831  ;
18832  return 0;
18833}
18834_ACEOF
18835if ac_fn_c_try_link "$LINENO"
18836then :
18837  eval $cacheid=yes
18838else $as_nop
18839  eval $cacheid=no
18840fi
18841rm -f core conftest.err conftest.$ac_objext conftest.beam \
18842    conftest$ac_exeext conftest.$ac_ext
18843fi
18844
18845
18846		CFLAGS="$xorg_testset_save_CFLAGS"
18847
18848		eval supported=\$$cacheid
18849		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18850printf "%s\n" "$supported" >&6; }
18851		if test "$supported" = "yes" ; then
18852			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18853			found="yes"
18854		fi
18855	fi
18856
18857
18858
18859# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18860# activate it with -Werror, so we add it here explicitly.
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874xorg_testset_save_CFLAGS="$CFLAGS"
18875
18876if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18877	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18878	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18879printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18880if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18881then :
18882  printf %s "(cached) " >&6
18883else $as_nop
18884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18885/* end confdefs.h.  */
18886int i;
18887_ACEOF
18888if ac_fn_c_try_compile "$LINENO"
18889then :
18890  xorg_cv_cc_flag_unknown_warning_option=yes
18891else $as_nop
18892  xorg_cv_cc_flag_unknown_warning_option=no
18893fi
18894rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18895fi
18896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18897printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18898	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18899	CFLAGS="$xorg_testset_save_CFLAGS"
18900fi
18901
18902if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18903	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18904		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18905	fi
18906	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18907	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18908printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18909if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18910then :
18911  printf %s "(cached) " >&6
18912else $as_nop
18913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18914/* end confdefs.h.  */
18915int i;
18916_ACEOF
18917if ac_fn_c_try_compile "$LINENO"
18918then :
18919  xorg_cv_cc_flag_unused_command_line_argument=yes
18920else $as_nop
18921  xorg_cv_cc_flag_unused_command_line_argument=no
18922fi
18923rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18924fi
18925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18926printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18927	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18928	CFLAGS="$xorg_testset_save_CFLAGS"
18929fi
18930
18931found="no"
18932
18933	if test $found = "no" ; then
18934		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18935			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18936		fi
18937
18938		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18939			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18940		fi
18941
18942		CFLAGS="$CFLAGS -Werror=attributes"
18943
18944		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18945printf %s "checking if $CC supports -Werror=attributes... " >&6; }
18946		cacheid=xorg_cv_cc_flag__Werror_attributes
18947		if eval test \${$cacheid+y}
18948then :
18949  printf %s "(cached) " >&6
18950else $as_nop
18951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18952/* end confdefs.h.  */
18953int i;
18954int
18955main (void)
18956{
18957
18958  ;
18959  return 0;
18960}
18961_ACEOF
18962if ac_fn_c_try_link "$LINENO"
18963then :
18964  eval $cacheid=yes
18965else $as_nop
18966  eval $cacheid=no
18967fi
18968rm -f core conftest.err conftest.$ac_objext conftest.beam \
18969    conftest$ac_exeext conftest.$ac_ext
18970fi
18971
18972
18973		CFLAGS="$xorg_testset_save_CFLAGS"
18974
18975		eval supported=\$$cacheid
18976		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18977printf "%s\n" "$supported" >&6; }
18978		if test "$supported" = "yes" ; then
18979			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18980			found="yes"
18981		fi
18982	fi
18983
18984
18985
18986if test "x$STRICT_COMPILE" = "xyes"; then
18987    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18988    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18989fi
18990
18991
18992
18993
18994
18995
18996cat >>confdefs.h <<_ACEOF
18997#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18998_ACEOF
18999
19000	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19001	if test "x$PVM" = "x"; then
19002		PVM="0"
19003	fi
19004
19005printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19006
19007	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19008	if test "x$PVP" = "x"; then
19009		PVP="0"
19010	fi
19011
19012printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19013
19014
19015
19016CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19017mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19018|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19019touch \$(top_srcdir)/ChangeLog; \
19020echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19021
19022
19023
19024
19025macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19026INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19027mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19028|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19029touch \$(top_srcdir)/INSTALL; \
19030echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19031
19032
19033
19034
19035
19036
19037case $host_os in
19038    solaris*)
19039        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19040        # check for a man page file found in later versions that use
19041        # traditional section numbers instead
19042        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19043printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19044if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19045then :
19046  printf %s "(cached) " >&6
19047else $as_nop
19048  test "$cross_compiling" = yes &&
19049  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19050if test -r "/usr/share/man/man7/attributes.7"; then
19051  ac_cv_file__usr_share_man_man7_attributes_7=yes
19052else
19053  ac_cv_file__usr_share_man_man7_attributes_7=no
19054fi
19055fi
19056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19057printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19058if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19059then :
19060  SYSV_MAN_SECTIONS=false
19061else $as_nop
19062  SYSV_MAN_SECTIONS=true
19063fi
19064
19065        ;;
19066    *) SYSV_MAN_SECTIONS=false ;;
19067esac
19068
19069if test x$APP_MAN_SUFFIX = x    ; then
19070    APP_MAN_SUFFIX=1
19071fi
19072if test x$APP_MAN_DIR = x    ; then
19073    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19074fi
19075
19076if test x$LIB_MAN_SUFFIX = x    ; then
19077    LIB_MAN_SUFFIX=3
19078fi
19079if test x$LIB_MAN_DIR = x    ; then
19080    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19081fi
19082
19083if test x$FILE_MAN_SUFFIX = x    ; then
19084    case $SYSV_MAN_SECTIONS in
19085	true)				FILE_MAN_SUFFIX=4  ;;
19086	*)				FILE_MAN_SUFFIX=5  ;;
19087    esac
19088fi
19089if test x$FILE_MAN_DIR = x    ; then
19090    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19091fi
19092
19093if test x$MISC_MAN_SUFFIX = x    ; then
19094    case $SYSV_MAN_SECTIONS in
19095	true)				MISC_MAN_SUFFIX=5  ;;
19096	*)				MISC_MAN_SUFFIX=7  ;;
19097    esac
19098fi
19099if test x$MISC_MAN_DIR = x    ; then
19100    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19101fi
19102
19103if test x$DRIVER_MAN_SUFFIX = x    ; then
19104    case $SYSV_MAN_SECTIONS in
19105	true)				DRIVER_MAN_SUFFIX=7  ;;
19106	*)				DRIVER_MAN_SUFFIX=4  ;;
19107    esac
19108fi
19109if test x$DRIVER_MAN_DIR = x    ; then
19110    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19111fi
19112
19113if test x$ADMIN_MAN_SUFFIX = x    ; then
19114    case $SYSV_MAN_SECTIONS in
19115	true)				ADMIN_MAN_SUFFIX=1m ;;
19116	*)				ADMIN_MAN_SUFFIX=8  ;;
19117    esac
19118fi
19119if test x$ADMIN_MAN_DIR = x    ; then
19120    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19121fi
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137XORG_MAN_PAGE="X Version 11"
19138
19139MAN_SUBSTS="\
19140	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19141	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19142	-e 's|__xservername__|Xorg|g' \
19143	-e 's|__xconfigfile__|xorg.conf|g' \
19144	-e 's|__projectroot__|\$(prefix)|g' \
19145	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
19146	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19147	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19148	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19149	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19150	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19151	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19152
19153
19154
19155# Check whether --enable-silent-rules was given.
19156if test ${enable_silent_rules+y}
19157then :
19158  enableval=$enable_silent_rules;
19159fi
19160
19161case $enable_silent_rules in # (((
19162  yes) AM_DEFAULT_VERBOSITY=0;;
19163   no) AM_DEFAULT_VERBOSITY=1;;
19164    *) AM_DEFAULT_VERBOSITY=0;;
19165esac
19166am_make=${MAKE-make}
19167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19168printf %s "checking whether $am_make supports nested variables... " >&6; }
19169if test ${am_cv_make_support_nested_variables+y}
19170then :
19171  printf %s "(cached) " >&6
19172else $as_nop
19173  if printf "%s\n" 'TRUE=$(BAR$(V))
19174BAR0=false
19175BAR1=true
19176V=1
19177am__doit:
19178	@$(TRUE)
19179.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19180  am_cv_make_support_nested_variables=yes
19181else
19182  am_cv_make_support_nested_variables=no
19183fi
19184fi
19185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19186printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19187if test $am_cv_make_support_nested_variables = yes; then
19188    AM_V='$(V)'
19189  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19190else
19191  AM_V=$AM_DEFAULT_VERBOSITY
19192  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19193fi
19194AM_BACKSLASH='\'
19195
19196
19197
19198# Check damageext configuration, strip extra digits from package version to
19199# find the required protocol version
19200DAMAGEEXT_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
19201
19202
19203# Obtain compiler/linker options for dependencies
19204
19205pkg_failed=no
19206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XDAMAGE" >&5
19207printf %s "checking for XDAMAGE... " >&6; }
19208
19209if test -n "$XDAMAGE_CFLAGS"; then
19210    pkg_cv_XDAMAGE_CFLAGS="$XDAMAGE_CFLAGS"
19211 elif test -n "$PKG_CONFIG"; then
19212    if test -n "$PKG_CONFIG" && \
19213    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"damageproto >= \$DAMAGEEXT_VERSION xfixes fixesproto xextproto x11 xproto >= 7.0.22\""; } >&5
19214  ($PKG_CONFIG --exists --print-errors "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11 xproto >= 7.0.22") 2>&5
19215  ac_status=$?
19216  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19217  test $ac_status = 0; }; then
19218  pkg_cv_XDAMAGE_CFLAGS=`$PKG_CONFIG --cflags "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11 xproto >= 7.0.22" 2>/dev/null`
19219		      test "x$?" != "x0" && pkg_failed=yes
19220else
19221  pkg_failed=yes
19222fi
19223 else
19224    pkg_failed=untried
19225fi
19226if test -n "$XDAMAGE_LIBS"; then
19227    pkg_cv_XDAMAGE_LIBS="$XDAMAGE_LIBS"
19228 elif test -n "$PKG_CONFIG"; then
19229    if test -n "$PKG_CONFIG" && \
19230    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"damageproto >= \$DAMAGEEXT_VERSION xfixes fixesproto xextproto x11 xproto >= 7.0.22\""; } >&5
19231  ($PKG_CONFIG --exists --print-errors "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11 xproto >= 7.0.22") 2>&5
19232  ac_status=$?
19233  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19234  test $ac_status = 0; }; then
19235  pkg_cv_XDAMAGE_LIBS=`$PKG_CONFIG --libs "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11 xproto >= 7.0.22" 2>/dev/null`
19236		      test "x$?" != "x0" && pkg_failed=yes
19237else
19238  pkg_failed=yes
19239fi
19240 else
19241    pkg_failed=untried
19242fi
19243
19244
19245
19246if test $pkg_failed = yes; then
19247   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19248printf "%s\n" "no" >&6; }
19249
19250if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19251        _pkg_short_errors_supported=yes
19252else
19253        _pkg_short_errors_supported=no
19254fi
19255        if test $_pkg_short_errors_supported = yes; then
19256	        XDAMAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11 xproto >= 7.0.22" 2>&1`
19257        else
19258	        XDAMAGE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11 xproto >= 7.0.22" 2>&1`
19259        fi
19260	# Put the nasty error message in config.log where it belongs
19261	echo "$XDAMAGE_PKG_ERRORS" >&5
19262
19263	as_fn_error $? "Package requirements (damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11 xproto >= 7.0.22) were not met:
19264
19265$XDAMAGE_PKG_ERRORS
19266
19267Consider adjusting the PKG_CONFIG_PATH environment variable if you
19268installed software in a non-standard prefix.
19269
19270Alternatively, you may set the environment variables XDAMAGE_CFLAGS
19271and XDAMAGE_LIBS to avoid the need to call pkg-config.
19272See the pkg-config man page for more details." "$LINENO" 5
19273elif test $pkg_failed = untried; then
19274     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19275printf "%s\n" "no" >&6; }
19276	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19277printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19278as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19279is in your PATH or set the PKG_CONFIG environment variable to the full
19280path to pkg-config.
19281
19282Alternatively, you may set the environment variables XDAMAGE_CFLAGS
19283and XDAMAGE_LIBS to avoid the need to call pkg-config.
19284See the pkg-config man page for more details.
19285
19286To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19287See \`config.log' for more details" "$LINENO" 5; }
19288else
19289	XDAMAGE_CFLAGS=$pkg_cv_XDAMAGE_CFLAGS
19290	XDAMAGE_LIBS=$pkg_cv_XDAMAGE_LIBS
19291        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19292printf "%s\n" "yes" >&6; }
19293
19294fi
19295
19296ac_config_files="$ac_config_files Makefile src/Makefile xdamage.pc"
19297
19298cat >confcache <<\_ACEOF
19299# This file is a shell script that caches the results of configure
19300# tests run on this system so they can be shared between configure
19301# scripts and configure runs, see configure's option --config-cache.
19302# It is not useful on other systems.  If it contains results you don't
19303# want to keep, you may remove or edit it.
19304#
19305# config.status only pays attention to the cache file if you give it
19306# the --recheck option to rerun configure.
19307#
19308# `ac_cv_env_foo' variables (set or unset) will be overridden when
19309# loading this file, other *unset* `ac_cv_foo' will be assigned the
19310# following values.
19311
19312_ACEOF
19313
19314# The following way of writing the cache mishandles newlines in values,
19315# but we know of no workaround that is simple, portable, and efficient.
19316# So, we kill variables containing newlines.
19317# Ultrix sh set writes to stderr and can't be redirected directly,
19318# and sets the high bit in the cache file unless we assign to the vars.
19319(
19320  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19321    eval ac_val=\$$ac_var
19322    case $ac_val in #(
19323    *${as_nl}*)
19324      case $ac_var in #(
19325      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19326printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19327      esac
19328      case $ac_var in #(
19329      _ | IFS | as_nl) ;; #(
19330      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19331      *) { eval $ac_var=; unset $ac_var;} ;;
19332      esac ;;
19333    esac
19334  done
19335
19336  (set) 2>&1 |
19337    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19338    *${as_nl}ac_space=\ *)
19339      # `set' does not quote correctly, so add quotes: double-quote
19340      # substitution turns \\\\ into \\, and sed turns \\ into \.
19341      sed -n \
19342	"s/'/'\\\\''/g;
19343	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19344      ;; #(
19345    *)
19346      # `set' quotes correctly as required by POSIX, so do not add quotes.
19347      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19348      ;;
19349    esac |
19350    sort
19351) |
19352  sed '
19353     /^ac_cv_env_/b end
19354     t clear
19355     :clear
19356     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19357     t end
19358     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19359     :end' >>confcache
19360if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19361  if test -w "$cache_file"; then
19362    if test "x$cache_file" != "x/dev/null"; then
19363      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19364printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19365      if test ! -f "$cache_file" || test -h "$cache_file"; then
19366	cat confcache >"$cache_file"
19367      else
19368        case $cache_file in #(
19369        */* | ?:*)
19370	  mv -f confcache "$cache_file"$$ &&
19371	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19372        *)
19373	  mv -f confcache "$cache_file" ;;
19374	esac
19375      fi
19376    fi
19377  else
19378    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19379printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19380  fi
19381fi
19382rm -f confcache
19383
19384test "x$prefix" = xNONE && prefix=$ac_default_prefix
19385# Let make expand exec_prefix.
19386test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19387
19388DEFS=-DHAVE_CONFIG_H
19389
19390ac_libobjs=
19391ac_ltlibobjs=
19392U=
19393for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19394  # 1. Remove the extension, and $U if already installed.
19395  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19396  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19397  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19398  #    will be set to the directory where LIBOBJS objects are built.
19399  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19400  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19401done
19402LIBOBJS=$ac_libobjs
19403
19404LTLIBOBJS=$ac_ltlibobjs
19405
19406
19407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19408printf %s "checking that generated files are newer than configure... " >&6; }
19409   if test -n "$am_sleep_pid"; then
19410     # Hide warnings about reused PIDs.
19411     wait $am_sleep_pid 2>/dev/null
19412   fi
19413   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19414printf "%s\n" "done" >&6; }
19415 if test -n "$EXEEXT"; then
19416  am__EXEEXT_TRUE=
19417  am__EXEEXT_FALSE='#'
19418else
19419  am__EXEEXT_TRUE='#'
19420  am__EXEEXT_FALSE=
19421fi
19422
19423if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19424  as_fn_error $? "conditional \"AMDEP\" was never defined.
19425Usually this means the macro was only invoked conditionally." "$LINENO" 5
19426fi
19427if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19428  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19429Usually this means the macro was only invoked conditionally." "$LINENO" 5
19430fi
19431
19432: "${CONFIG_STATUS=./config.status}"
19433ac_write_fail=0
19434ac_clean_files_save=$ac_clean_files
19435ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19437printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19438as_write_fail=0
19439cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19440#! $SHELL
19441# Generated by $as_me.
19442# Run this file to recreate the current configuration.
19443# Compiler output produced by configure, useful for debugging
19444# configure, is in config.log if it exists.
19445
19446debug=false
19447ac_cs_recheck=false
19448ac_cs_silent=false
19449
19450SHELL=\${CONFIG_SHELL-$SHELL}
19451export SHELL
19452_ASEOF
19453cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19454## -------------------- ##
19455## M4sh Initialization. ##
19456## -------------------- ##
19457
19458# Be more Bourne compatible
19459DUALCASE=1; export DUALCASE # for MKS sh
19460as_nop=:
19461if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19462then :
19463  emulate sh
19464  NULLCMD=:
19465  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19466  # is contrary to our usage.  Disable this feature.
19467  alias -g '${1+"$@"}'='"$@"'
19468  setopt NO_GLOB_SUBST
19469else $as_nop
19470  case `(set -o) 2>/dev/null` in #(
19471  *posix*) :
19472    set -o posix ;; #(
19473  *) :
19474     ;;
19475esac
19476fi
19477
19478
19479
19480# Reset variables that may have inherited troublesome values from
19481# the environment.
19482
19483# IFS needs to be set, to space, tab, and newline, in precisely that order.
19484# (If _AS_PATH_WALK were called with IFS unset, it would have the
19485# side effect of setting IFS to empty, thus disabling word splitting.)
19486# Quoting is to prevent editors from complaining about space-tab.
19487as_nl='
19488'
19489export as_nl
19490IFS=" ""	$as_nl"
19491
19492PS1='$ '
19493PS2='> '
19494PS4='+ '
19495
19496# Ensure predictable behavior from utilities with locale-dependent output.
19497LC_ALL=C
19498export LC_ALL
19499LANGUAGE=C
19500export LANGUAGE
19501
19502# We cannot yet rely on "unset" to work, but we need these variables
19503# to be unset--not just set to an empty or harmless value--now, to
19504# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
19505# also avoids known problems related to "unset" and subshell syntax
19506# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19507for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19508do eval test \${$as_var+y} \
19509  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19510done
19511
19512# Ensure that fds 0, 1, and 2 are open.
19513if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19514if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19515if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
19516
19517# The user is always right.
19518if ${PATH_SEPARATOR+false} :; then
19519  PATH_SEPARATOR=:
19520  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19521    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19522      PATH_SEPARATOR=';'
19523  }
19524fi
19525
19526
19527# Find who we are.  Look in the path if we contain no directory separator.
19528as_myself=
19529case $0 in #((
19530  *[\\/]* ) as_myself=$0 ;;
19531  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19532for as_dir in $PATH
19533do
19534  IFS=$as_save_IFS
19535  case $as_dir in #(((
19536    '') as_dir=./ ;;
19537    */) ;;
19538    *) as_dir=$as_dir/ ;;
19539  esac
19540    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19541  done
19542IFS=$as_save_IFS
19543
19544     ;;
19545esac
19546# We did not find ourselves, most probably we were run as `sh COMMAND'
19547# in which case we are not to be found in the path.
19548if test "x$as_myself" = x; then
19549  as_myself=$0
19550fi
19551if test ! -f "$as_myself"; then
19552  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19553  exit 1
19554fi
19555
19556
19557
19558# as_fn_error STATUS ERROR [LINENO LOG_FD]
19559# ----------------------------------------
19560# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19561# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19562# script with STATUS, using 1 if that was 0.
19563as_fn_error ()
19564{
19565  as_status=$1; test $as_status -eq 0 && as_status=1
19566  if test "$4"; then
19567    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19568    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19569  fi
19570  printf "%s\n" "$as_me: error: $2" >&2
19571  as_fn_exit $as_status
19572} # as_fn_error
19573
19574
19575
19576# as_fn_set_status STATUS
19577# -----------------------
19578# Set $? to STATUS, without forking.
19579as_fn_set_status ()
19580{
19581  return $1
19582} # as_fn_set_status
19583
19584# as_fn_exit STATUS
19585# -----------------
19586# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19587as_fn_exit ()
19588{
19589  set +e
19590  as_fn_set_status $1
19591  exit $1
19592} # as_fn_exit
19593
19594# as_fn_unset VAR
19595# ---------------
19596# Portably unset VAR.
19597as_fn_unset ()
19598{
19599  { eval $1=; unset $1;}
19600}
19601as_unset=as_fn_unset
19602
19603# as_fn_append VAR VALUE
19604# ----------------------
19605# Append the text in VALUE to the end of the definition contained in VAR. Take
19606# advantage of any shell optimizations that allow amortized linear growth over
19607# repeated appends, instead of the typical quadratic growth present in naive
19608# implementations.
19609if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19610then :
19611  eval 'as_fn_append ()
19612  {
19613    eval $1+=\$2
19614  }'
19615else $as_nop
19616  as_fn_append ()
19617  {
19618    eval $1=\$$1\$2
19619  }
19620fi # as_fn_append
19621
19622# as_fn_arith ARG...
19623# ------------------
19624# Perform arithmetic evaluation on the ARGs, and store the result in the
19625# global $as_val. Take advantage of shells that can avoid forks. The arguments
19626# must be portable across $(()) and expr.
19627if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19628then :
19629  eval 'as_fn_arith ()
19630  {
19631    as_val=$(( $* ))
19632  }'
19633else $as_nop
19634  as_fn_arith ()
19635  {
19636    as_val=`expr "$@" || test $? -eq 1`
19637  }
19638fi # as_fn_arith
19639
19640
19641if expr a : '\(a\)' >/dev/null 2>&1 &&
19642   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19643  as_expr=expr
19644else
19645  as_expr=false
19646fi
19647
19648if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19649  as_basename=basename
19650else
19651  as_basename=false
19652fi
19653
19654if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19655  as_dirname=dirname
19656else
19657  as_dirname=false
19658fi
19659
19660as_me=`$as_basename -- "$0" ||
19661$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19662	 X"$0" : 'X\(//\)$' \| \
19663	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19664printf "%s\n" X/"$0" |
19665    sed '/^.*\/\([^/][^/]*\)\/*$/{
19666	    s//\1/
19667	    q
19668	  }
19669	  /^X\/\(\/\/\)$/{
19670	    s//\1/
19671	    q
19672	  }
19673	  /^X\/\(\/\).*/{
19674	    s//\1/
19675	    q
19676	  }
19677	  s/.*/./; q'`
19678
19679# Avoid depending upon Character Ranges.
19680as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19681as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19682as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19683as_cr_digits='0123456789'
19684as_cr_alnum=$as_cr_Letters$as_cr_digits
19685
19686
19687# Determine whether it's possible to make 'echo' print without a newline.
19688# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19689# for compatibility with existing Makefiles.
19690ECHO_C= ECHO_N= ECHO_T=
19691case `echo -n x` in #(((((
19692-n*)
19693  case `echo 'xy\c'` in
19694  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19695  xy)  ECHO_C='\c';;
19696  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19697       ECHO_T='	';;
19698  esac;;
19699*)
19700  ECHO_N='-n';;
19701esac
19702
19703# For backward compatibility with old third-party macros, we provide
19704# the shell variables $as_echo and $as_echo_n.  New code should use
19705# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19706as_echo='printf %s\n'
19707as_echo_n='printf %s'
19708
19709rm -f conf$$ conf$$.exe conf$$.file
19710if test -d conf$$.dir; then
19711  rm -f conf$$.dir/conf$$.file
19712else
19713  rm -f conf$$.dir
19714  mkdir conf$$.dir 2>/dev/null
19715fi
19716if (echo >conf$$.file) 2>/dev/null; then
19717  if ln -s conf$$.file conf$$ 2>/dev/null; then
19718    as_ln_s='ln -s'
19719    # ... but there are two gotchas:
19720    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19721    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19722    # In both cases, we have to default to `cp -pR'.
19723    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19724      as_ln_s='cp -pR'
19725  elif ln conf$$.file conf$$ 2>/dev/null; then
19726    as_ln_s=ln
19727  else
19728    as_ln_s='cp -pR'
19729  fi
19730else
19731  as_ln_s='cp -pR'
19732fi
19733rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19734rmdir conf$$.dir 2>/dev/null
19735
19736
19737# as_fn_mkdir_p
19738# -------------
19739# Create "$as_dir" as a directory, including parents if necessary.
19740as_fn_mkdir_p ()
19741{
19742
19743  case $as_dir in #(
19744  -*) as_dir=./$as_dir;;
19745  esac
19746  test -d "$as_dir" || eval $as_mkdir_p || {
19747    as_dirs=
19748    while :; do
19749      case $as_dir in #(
19750      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19751      *) as_qdir=$as_dir;;
19752      esac
19753      as_dirs="'$as_qdir' $as_dirs"
19754      as_dir=`$as_dirname -- "$as_dir" ||
19755$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19756	 X"$as_dir" : 'X\(//\)[^/]' \| \
19757	 X"$as_dir" : 'X\(//\)$' \| \
19758	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19759printf "%s\n" X"$as_dir" |
19760    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19761	    s//\1/
19762	    q
19763	  }
19764	  /^X\(\/\/\)[^/].*/{
19765	    s//\1/
19766	    q
19767	  }
19768	  /^X\(\/\/\)$/{
19769	    s//\1/
19770	    q
19771	  }
19772	  /^X\(\/\).*/{
19773	    s//\1/
19774	    q
19775	  }
19776	  s/.*/./; q'`
19777      test -d "$as_dir" && break
19778    done
19779    test -z "$as_dirs" || eval "mkdir $as_dirs"
19780  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19781
19782
19783} # as_fn_mkdir_p
19784if mkdir -p . 2>/dev/null; then
19785  as_mkdir_p='mkdir -p "$as_dir"'
19786else
19787  test -d ./-p && rmdir ./-p
19788  as_mkdir_p=false
19789fi
19790
19791
19792# as_fn_executable_p FILE
19793# -----------------------
19794# Test if FILE is an executable regular file.
19795as_fn_executable_p ()
19796{
19797  test -f "$1" && test -x "$1"
19798} # as_fn_executable_p
19799as_test_x='test -x'
19800as_executable_p=as_fn_executable_p
19801
19802# Sed expression to map a string onto a valid CPP name.
19803as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19804
19805# Sed expression to map a string onto a valid variable name.
19806as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19807
19808
19809exec 6>&1
19810## ----------------------------------- ##
19811## Main body of $CONFIG_STATUS script. ##
19812## ----------------------------------- ##
19813_ASEOF
19814test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19815
19816cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19817# Save the log message, to keep $0 and so on meaningful, and to
19818# report actual input values of CONFIG_FILES etc. instead of their
19819# values after options handling.
19820ac_log="
19821This file was extended by libXdamage $as_me 1.1.6, which was
19822generated by GNU Autoconf 2.71.  Invocation command line was
19823
19824  CONFIG_FILES    = $CONFIG_FILES
19825  CONFIG_HEADERS  = $CONFIG_HEADERS
19826  CONFIG_LINKS    = $CONFIG_LINKS
19827  CONFIG_COMMANDS = $CONFIG_COMMANDS
19828  $ $0 $@
19829
19830on `(hostname || uname -n) 2>/dev/null | sed 1q`
19831"
19832
19833_ACEOF
19834
19835case $ac_config_files in *"
19836"*) set x $ac_config_files; shift; ac_config_files=$*;;
19837esac
19838
19839case $ac_config_headers in *"
19840"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19841esac
19842
19843
19844cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19845# Files that config.status was made for.
19846config_files="$ac_config_files"
19847config_headers="$ac_config_headers"
19848config_commands="$ac_config_commands"
19849
19850_ACEOF
19851
19852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19853ac_cs_usage="\
19854\`$as_me' instantiates files and other configuration actions
19855from templates according to the current configuration.  Unless the files
19856and actions are specified as TAGs, all are instantiated by default.
19857
19858Usage: $0 [OPTION]... [TAG]...
19859
19860  -h, --help       print this help, then exit
19861  -V, --version    print version number and configuration settings, then exit
19862      --config     print configuration, then exit
19863  -q, --quiet, --silent
19864                   do not print progress messages
19865  -d, --debug      don't remove temporary files
19866      --recheck    update $as_me by reconfiguring in the same conditions
19867      --file=FILE[:TEMPLATE]
19868                   instantiate the configuration file FILE
19869      --header=FILE[:TEMPLATE]
19870                   instantiate the configuration header FILE
19871
19872Configuration files:
19873$config_files
19874
19875Configuration headers:
19876$config_headers
19877
19878Configuration commands:
19879$config_commands
19880
19881Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxdamage/-/issues>."
19882
19883_ACEOF
19884ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
19885ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
19886cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19887ac_cs_config='$ac_cs_config_escaped'
19888ac_cs_version="\\
19889libXdamage config.status 1.1.6
19890configured by $0, generated by GNU Autoconf 2.71,
19891  with options \\"\$ac_cs_config\\"
19892
19893Copyright (C) 2021 Free Software Foundation, Inc.
19894This config.status script is free software; the Free Software Foundation
19895gives unlimited permission to copy, distribute and modify it."
19896
19897ac_pwd='$ac_pwd'
19898srcdir='$srcdir'
19899INSTALL='$INSTALL'
19900MKDIR_P='$MKDIR_P'
19901AWK='$AWK'
19902test -n "\$AWK" || AWK=awk
19903_ACEOF
19904
19905cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19906# The default lists apply if the user does not specify any file.
19907ac_need_defaults=:
19908while test $# != 0
19909do
19910  case $1 in
19911  --*=?*)
19912    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19913    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19914    ac_shift=:
19915    ;;
19916  --*=)
19917    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19918    ac_optarg=
19919    ac_shift=:
19920    ;;
19921  *)
19922    ac_option=$1
19923    ac_optarg=$2
19924    ac_shift=shift
19925    ;;
19926  esac
19927
19928  case $ac_option in
19929  # Handling of the options.
19930  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19931    ac_cs_recheck=: ;;
19932  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19933    printf "%s\n" "$ac_cs_version"; exit ;;
19934  --config | --confi | --conf | --con | --co | --c )
19935    printf "%s\n" "$ac_cs_config"; exit ;;
19936  --debug | --debu | --deb | --de | --d | -d )
19937    debug=: ;;
19938  --file | --fil | --fi | --f )
19939    $ac_shift
19940    case $ac_optarg in
19941    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19942    '') as_fn_error $? "missing file argument" ;;
19943    esac
19944    as_fn_append CONFIG_FILES " '$ac_optarg'"
19945    ac_need_defaults=false;;
19946  --header | --heade | --head | --hea )
19947    $ac_shift
19948    case $ac_optarg in
19949    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19950    esac
19951    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19952    ac_need_defaults=false;;
19953  --he | --h)
19954    # Conflict between --help and --header
19955    as_fn_error $? "ambiguous option: \`$1'
19956Try \`$0 --help' for more information.";;
19957  --help | --hel | -h )
19958    printf "%s\n" "$ac_cs_usage"; exit ;;
19959  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19960  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19961    ac_cs_silent=: ;;
19962
19963  # This is an error.
19964  -*) as_fn_error $? "unrecognized option: \`$1'
19965Try \`$0 --help' for more information." ;;
19966
19967  *) as_fn_append ac_config_targets " $1"
19968     ac_need_defaults=false ;;
19969
19970  esac
19971  shift
19972done
19973
19974ac_configure_extra_args=
19975
19976if $ac_cs_silent; then
19977  exec 6>/dev/null
19978  ac_configure_extra_args="$ac_configure_extra_args --silent"
19979fi
19980
19981_ACEOF
19982cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19983if \$ac_cs_recheck; then
19984  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19985  shift
19986  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
19987  CONFIG_SHELL='$SHELL'
19988  export CONFIG_SHELL
19989  exec "\$@"
19990fi
19991
19992_ACEOF
19993cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19994exec 5>>config.log
19995{
19996  echo
19997  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19998## Running $as_me. ##
19999_ASBOX
20000  printf "%s\n" "$ac_log"
20001} >&5
20002
20003_ACEOF
20004cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20005#
20006# INIT-COMMANDS
20007#
20008AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20009
20010
20011# The HP-UX ksh and POSIX shell print the target directory to stdout
20012# if CDPATH is set.
20013(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20014
20015sed_quote_subst='$sed_quote_subst'
20016double_quote_subst='$double_quote_subst'
20017delay_variable_subst='$delay_variable_subst'
20018macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20019macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20020enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20021enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20022pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20023enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20024shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20025SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20026ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20027PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20028host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20029host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20030host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20031build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20032build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20033build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20034SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20035Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20036GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20037EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20038FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20039LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20040NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20041LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20042max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20043ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20044exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20045lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20046lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20047lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20048lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20049lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20050reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20051reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20052FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20053OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20054deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20055file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20056file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20057want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20058DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20059sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20060AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20061lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20062AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20063archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20064STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20065RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20066old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20067old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20068old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20069lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20070CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20071CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20072compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20073GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20074lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20075lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20076lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20077lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20078lt_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"`'
20079lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20080nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20081lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20082lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20083objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20084MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20085lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20086lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20087lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20088lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20089lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20090need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20091MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20092DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20093NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20094LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20095OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20096OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20097libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20098shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20099extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20100archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20101enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20102export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20103whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20104compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20105old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20106old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20107archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20108archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20109module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20110module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20111with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20112allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20113no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20114hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20115hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20116hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20117hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20118hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20119hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20120hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20121inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20122link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20123always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20124export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20125exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20126include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20127prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20128postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20129file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20130variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20131need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20132need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20133version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20134runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20135shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20136shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20137libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20138library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20139soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20140install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20141postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20142postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20143finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20144finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20145hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20146sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20147configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20148configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20149hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20150enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20151enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20152enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20153old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20154striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20155
20156LTCC='$LTCC'
20157LTCFLAGS='$LTCFLAGS'
20158compiler='$compiler_DEFAULT'
20159
20160# A function that is used when there is no print builtin or printf.
20161func_fallback_echo ()
20162{
20163  eval 'cat <<_LTECHO_EOF
20164\$1
20165_LTECHO_EOF'
20166}
20167
20168# Quote evaled strings.
20169for var in SHELL \
20170ECHO \
20171PATH_SEPARATOR \
20172SED \
20173GREP \
20174EGREP \
20175FGREP \
20176LD \
20177NM \
20178LN_S \
20179lt_SP2NL \
20180lt_NL2SP \
20181reload_flag \
20182FILECMD \
20183OBJDUMP \
20184deplibs_check_method \
20185file_magic_cmd \
20186file_magic_glob \
20187want_nocaseglob \
20188DLLTOOL \
20189sharedlib_from_linklib_cmd \
20190AR \
20191archiver_list_spec \
20192STRIP \
20193RANLIB \
20194CC \
20195CFLAGS \
20196compiler \
20197lt_cv_sys_global_symbol_pipe \
20198lt_cv_sys_global_symbol_to_cdecl \
20199lt_cv_sys_global_symbol_to_import \
20200lt_cv_sys_global_symbol_to_c_name_address \
20201lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20202lt_cv_nm_interface \
20203nm_file_list_spec \
20204lt_cv_truncate_bin \
20205lt_prog_compiler_no_builtin_flag \
20206lt_prog_compiler_pic \
20207lt_prog_compiler_wl \
20208lt_prog_compiler_static \
20209lt_cv_prog_compiler_c_o \
20210need_locks \
20211MANIFEST_TOOL \
20212DSYMUTIL \
20213NMEDIT \
20214LIPO \
20215OTOOL \
20216OTOOL64 \
20217shrext_cmds \
20218export_dynamic_flag_spec \
20219whole_archive_flag_spec \
20220compiler_needs_object \
20221with_gnu_ld \
20222allow_undefined_flag \
20223no_undefined_flag \
20224hardcode_libdir_flag_spec \
20225hardcode_libdir_separator \
20226exclude_expsyms \
20227include_expsyms \
20228file_list_spec \
20229variables_saved_for_relink \
20230libname_spec \
20231library_names_spec \
20232soname_spec \
20233install_override_mode \
20234finish_eval \
20235old_striplib \
20236striplib; do
20237    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20238    *[\\\\\\\`\\"\\\$]*)
20239      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20240      ;;
20241    *)
20242      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20243      ;;
20244    esac
20245done
20246
20247# Double-quote double-evaled strings.
20248for var in reload_cmds \
20249old_postinstall_cmds \
20250old_postuninstall_cmds \
20251old_archive_cmds \
20252extract_expsyms_cmds \
20253old_archive_from_new_cmds \
20254old_archive_from_expsyms_cmds \
20255archive_cmds \
20256archive_expsym_cmds \
20257module_cmds \
20258module_expsym_cmds \
20259export_symbols_cmds \
20260prelink_cmds \
20261postlink_cmds \
20262postinstall_cmds \
20263postuninstall_cmds \
20264finish_cmds \
20265sys_lib_search_path_spec \
20266configure_time_dlsearch_path \
20267configure_time_lt_sys_library_path; do
20268    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20269    *[\\\\\\\`\\"\\\$]*)
20270      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20271      ;;
20272    *)
20273      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20274      ;;
20275    esac
20276done
20277
20278ac_aux_dir='$ac_aux_dir'
20279
20280# See if we are running on zsh, and set the options that allow our
20281# commands through without removal of \ escapes INIT.
20282if test -n "\${ZSH_VERSION+set}"; then
20283   setopt NO_GLOB_SUBST
20284fi
20285
20286
20287    PACKAGE='$PACKAGE'
20288    VERSION='$VERSION'
20289    RM='$RM'
20290    ofile='$ofile'
20291
20292
20293
20294
20295_ACEOF
20296
20297cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20298
20299# Handling of arguments.
20300for ac_config_target in $ac_config_targets
20301do
20302  case $ac_config_target in
20303    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20304    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20305    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20306    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20307    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20308    "xdamage.pc") CONFIG_FILES="$CONFIG_FILES xdamage.pc" ;;
20309
20310  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20311  esac
20312done
20313
20314
20315# If the user did not use the arguments to specify the items to instantiate,
20316# then the envvar interface is used.  Set only those that are not.
20317# We use the long form for the default assignment because of an extremely
20318# bizarre bug on SunOS 4.1.3.
20319if $ac_need_defaults; then
20320  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20321  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20322  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20323fi
20324
20325# Have a temporary directory for convenience.  Make it in the build tree
20326# simply because there is no reason against having it here, and in addition,
20327# creating and moving files from /tmp can sometimes cause problems.
20328# Hook for its removal unless debugging.
20329# Note that there is a small window in which the directory will not be cleaned:
20330# after its creation but before its name has been assigned to `$tmp'.
20331$debug ||
20332{
20333  tmp= ac_tmp=
20334  trap 'exit_status=$?
20335  : "${ac_tmp:=$tmp}"
20336  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20337' 0
20338  trap 'as_fn_exit 1' 1 2 13 15
20339}
20340# Create a (secure) tmp directory for tmp files.
20341
20342{
20343  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20344  test -d "$tmp"
20345}  ||
20346{
20347  tmp=./conf$$-$RANDOM
20348  (umask 077 && mkdir "$tmp")
20349} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20350ac_tmp=$tmp
20351
20352# Set up the scripts for CONFIG_FILES section.
20353# No need to generate them if there are no CONFIG_FILES.
20354# This happens for instance with `./config.status config.h'.
20355if test -n "$CONFIG_FILES"; then
20356
20357
20358ac_cr=`echo X | tr X '\015'`
20359# On cygwin, bash can eat \r inside `` if the user requested igncr.
20360# But we know of no other shell where ac_cr would be empty at this
20361# point, so we can use a bashism as a fallback.
20362if test "x$ac_cr" = x; then
20363  eval ac_cr=\$\'\\r\'
20364fi
20365ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20366if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20367  ac_cs_awk_cr='\\r'
20368else
20369  ac_cs_awk_cr=$ac_cr
20370fi
20371
20372echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20373_ACEOF
20374
20375
20376{
20377  echo "cat >conf$$subs.awk <<_ACEOF" &&
20378  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20379  echo "_ACEOF"
20380} >conf$$subs.sh ||
20381  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20382ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20383ac_delim='%!_!# '
20384for ac_last_try in false false false false false :; do
20385  . ./conf$$subs.sh ||
20386    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20387
20388  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20389  if test $ac_delim_n = $ac_delim_num; then
20390    break
20391  elif $ac_last_try; then
20392    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20393  else
20394    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20395  fi
20396done
20397rm -f conf$$subs.sh
20398
20399cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20400cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20401_ACEOF
20402sed -n '
20403h
20404s/^/S["/; s/!.*/"]=/
20405p
20406g
20407s/^[^!]*!//
20408:repl
20409t repl
20410s/'"$ac_delim"'$//
20411t delim
20412:nl
20413h
20414s/\(.\{148\}\)..*/\1/
20415t more1
20416s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20417p
20418n
20419b repl
20420:more1
20421s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20422p
20423g
20424s/.\{148\}//
20425t nl
20426:delim
20427h
20428s/\(.\{148\}\)..*/\1/
20429t more2
20430s/["\\]/\\&/g; s/^/"/; s/$/"/
20431p
20432b
20433:more2
20434s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20435p
20436g
20437s/.\{148\}//
20438t delim
20439' <conf$$subs.awk | sed '
20440/^[^""]/{
20441  N
20442  s/\n//
20443}
20444' >>$CONFIG_STATUS || ac_write_fail=1
20445rm -f conf$$subs.awk
20446cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20447_ACAWK
20448cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20449  for (key in S) S_is_set[key] = 1
20450  FS = ""
20451
20452}
20453{
20454  line = $ 0
20455  nfields = split(line, field, "@")
20456  substed = 0
20457  len = length(field[1])
20458  for (i = 2; i < nfields; i++) {
20459    key = field[i]
20460    keylen = length(key)
20461    if (S_is_set[key]) {
20462      value = S[key]
20463      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20464      len += length(value) + length(field[++i])
20465      substed = 1
20466    } else
20467      len += 1 + keylen
20468  }
20469
20470  print line
20471}
20472
20473_ACAWK
20474_ACEOF
20475cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20476if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20477  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20478else
20479  cat
20480fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20481  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20482_ACEOF
20483
20484# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20485# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20486# trailing colons and then remove the whole line if VPATH becomes empty
20487# (actually we leave an empty line to preserve line numbers).
20488if test "x$srcdir" = x.; then
20489  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20490h
20491s///
20492s/^/:/
20493s/[	 ]*$/:/
20494s/:\$(srcdir):/:/g
20495s/:\${srcdir}:/:/g
20496s/:@srcdir@:/:/g
20497s/^:*//
20498s/:*$//
20499x
20500s/\(=[	 ]*\).*/\1/
20501G
20502s/\n//
20503s/^[^=]*=[	 ]*$//
20504}'
20505fi
20506
20507cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20508fi # test -n "$CONFIG_FILES"
20509
20510# Set up the scripts for CONFIG_HEADERS section.
20511# No need to generate them if there are no CONFIG_HEADERS.
20512# This happens for instance with `./config.status Makefile'.
20513if test -n "$CONFIG_HEADERS"; then
20514cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20515BEGIN {
20516_ACEOF
20517
20518# Transform confdefs.h into an awk script `defines.awk', embedded as
20519# here-document in config.status, that substitutes the proper values into
20520# config.h.in to produce config.h.
20521
20522# Create a delimiter string that does not exist in confdefs.h, to ease
20523# handling of long lines.
20524ac_delim='%!_!# '
20525for ac_last_try in false false :; do
20526  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20527  if test -z "$ac_tt"; then
20528    break
20529  elif $ac_last_try; then
20530    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20531  else
20532    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20533  fi
20534done
20535
20536# For the awk script, D is an array of macro values keyed by name,
20537# likewise P contains macro parameters if any.  Preserve backslash
20538# newline sequences.
20539
20540ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20541sed -n '
20542s/.\{148\}/&'"$ac_delim"'/g
20543t rset
20544:rset
20545s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20546t def
20547d
20548:def
20549s/\\$//
20550t bsnl
20551s/["\\]/\\&/g
20552s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20553D["\1"]=" \3"/p
20554s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20555d
20556:bsnl
20557s/["\\]/\\&/g
20558s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20559D["\1"]=" \3\\\\\\n"\\/p
20560t cont
20561s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20562t cont
20563d
20564:cont
20565n
20566s/.\{148\}/&'"$ac_delim"'/g
20567t clear
20568:clear
20569s/\\$//
20570t bsnlc
20571s/["\\]/\\&/g; s/^/"/; s/$/"/p
20572d
20573:bsnlc
20574s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20575b cont
20576' <confdefs.h | sed '
20577s/'"$ac_delim"'/"\\\
20578"/g' >>$CONFIG_STATUS || ac_write_fail=1
20579
20580cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20581  for (key in D) D_is_set[key] = 1
20582  FS = ""
20583}
20584/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20585  line = \$ 0
20586  split(line, arg, " ")
20587  if (arg[1] == "#") {
20588    defundef = arg[2]
20589    mac1 = arg[3]
20590  } else {
20591    defundef = substr(arg[1], 2)
20592    mac1 = arg[2]
20593  }
20594  split(mac1, mac2, "(") #)
20595  macro = mac2[1]
20596  prefix = substr(line, 1, index(line, defundef) - 1)
20597  if (D_is_set[macro]) {
20598    # Preserve the white space surrounding the "#".
20599    print prefix "define", macro P[macro] D[macro]
20600    next
20601  } else {
20602    # Replace #undef with comments.  This is necessary, for example,
20603    # in the case of _POSIX_SOURCE, which is predefined and required
20604    # on some systems where configure will not decide to define it.
20605    if (defundef == "undef") {
20606      print "/*", prefix defundef, macro, "*/"
20607      next
20608    }
20609  }
20610}
20611{ print }
20612_ACAWK
20613_ACEOF
20614cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20615  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20616fi # test -n "$CONFIG_HEADERS"
20617
20618
20619eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20620shift
20621for ac_tag
20622do
20623  case $ac_tag in
20624  :[FHLC]) ac_mode=$ac_tag; continue;;
20625  esac
20626  case $ac_mode$ac_tag in
20627  :[FHL]*:*);;
20628  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20629  :[FH]-) ac_tag=-:-;;
20630  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20631  esac
20632  ac_save_IFS=$IFS
20633  IFS=:
20634  set x $ac_tag
20635  IFS=$ac_save_IFS
20636  shift
20637  ac_file=$1
20638  shift
20639
20640  case $ac_mode in
20641  :L) ac_source=$1;;
20642  :[FH])
20643    ac_file_inputs=
20644    for ac_f
20645    do
20646      case $ac_f in
20647      -) ac_f="$ac_tmp/stdin";;
20648      *) # Look for the file first in the build tree, then in the source tree
20649	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20650	 # because $ac_f cannot contain `:'.
20651	 test -f "$ac_f" ||
20652	   case $ac_f in
20653	   [\\/$]*) false;;
20654	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20655	   esac ||
20656	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20657      esac
20658      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20659      as_fn_append ac_file_inputs " '$ac_f'"
20660    done
20661
20662    # Let's still pretend it is `configure' which instantiates (i.e., don't
20663    # use $as_me), people would be surprised to read:
20664    #    /* config.h.  Generated by config.status.  */
20665    configure_input='Generated from '`
20666	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20667	`' by configure.'
20668    if test x"$ac_file" != x-; then
20669      configure_input="$ac_file.  $configure_input"
20670      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20671printf "%s\n" "$as_me: creating $ac_file" >&6;}
20672    fi
20673    # Neutralize special characters interpreted by sed in replacement strings.
20674    case $configure_input in #(
20675    *\&* | *\|* | *\\* )
20676       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20677       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20678    *) ac_sed_conf_input=$configure_input;;
20679    esac
20680
20681    case $ac_tag in
20682    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20683      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20684    esac
20685    ;;
20686  esac
20687
20688  ac_dir=`$as_dirname -- "$ac_file" ||
20689$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20690	 X"$ac_file" : 'X\(//\)[^/]' \| \
20691	 X"$ac_file" : 'X\(//\)$' \| \
20692	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20693printf "%s\n" X"$ac_file" |
20694    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20695	    s//\1/
20696	    q
20697	  }
20698	  /^X\(\/\/\)[^/].*/{
20699	    s//\1/
20700	    q
20701	  }
20702	  /^X\(\/\/\)$/{
20703	    s//\1/
20704	    q
20705	  }
20706	  /^X\(\/\).*/{
20707	    s//\1/
20708	    q
20709	  }
20710	  s/.*/./; q'`
20711  as_dir="$ac_dir"; as_fn_mkdir_p
20712  ac_builddir=.
20713
20714case "$ac_dir" in
20715.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20716*)
20717  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
20718  # A ".." for each directory in $ac_dir_suffix.
20719  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20720  case $ac_top_builddir_sub in
20721  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20722  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20723  esac ;;
20724esac
20725ac_abs_top_builddir=$ac_pwd
20726ac_abs_builddir=$ac_pwd$ac_dir_suffix
20727# for backward compatibility:
20728ac_top_builddir=$ac_top_build_prefix
20729
20730case $srcdir in
20731  .)  # We are building in place.
20732    ac_srcdir=.
20733    ac_top_srcdir=$ac_top_builddir_sub
20734    ac_abs_top_srcdir=$ac_pwd ;;
20735  [\\/]* | ?:[\\/]* )  # Absolute name.
20736    ac_srcdir=$srcdir$ac_dir_suffix;
20737    ac_top_srcdir=$srcdir
20738    ac_abs_top_srcdir=$srcdir ;;
20739  *) # Relative name.
20740    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20741    ac_top_srcdir=$ac_top_build_prefix$srcdir
20742    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20743esac
20744ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20745
20746
20747  case $ac_mode in
20748  :F)
20749  #
20750  # CONFIG_FILE
20751  #
20752
20753  case $INSTALL in
20754  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20755  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20756  esac
20757  ac_MKDIR_P=$MKDIR_P
20758  case $MKDIR_P in
20759  [\\/$]* | ?:[\\/]* ) ;;
20760  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20761  esac
20762_ACEOF
20763
20764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20765# If the template does not know about datarootdir, expand it.
20766# FIXME: This hack should be removed a few years after 2.60.
20767ac_datarootdir_hack=; ac_datarootdir_seen=
20768ac_sed_dataroot='
20769/datarootdir/ {
20770  p
20771  q
20772}
20773/@datadir@/p
20774/@docdir@/p
20775/@infodir@/p
20776/@localedir@/p
20777/@mandir@/p'
20778case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20779*datarootdir*) ac_datarootdir_seen=yes;;
20780*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20781  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20782printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20783_ACEOF
20784cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20785  ac_datarootdir_hack='
20786  s&@datadir@&$datadir&g
20787  s&@docdir@&$docdir&g
20788  s&@infodir@&$infodir&g
20789  s&@localedir@&$localedir&g
20790  s&@mandir@&$mandir&g
20791  s&\\\${datarootdir}&$datarootdir&g' ;;
20792esac
20793_ACEOF
20794
20795# Neutralize VPATH when `$srcdir' = `.'.
20796# Shell code in configure.ac might set extrasub.
20797# FIXME: do we really want to maintain this feature?
20798cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20799ac_sed_extra="$ac_vpsub
20800$extrasub
20801_ACEOF
20802cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20803:t
20804/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20805s|@configure_input@|$ac_sed_conf_input|;t t
20806s&@top_builddir@&$ac_top_builddir_sub&;t t
20807s&@top_build_prefix@&$ac_top_build_prefix&;t t
20808s&@srcdir@&$ac_srcdir&;t t
20809s&@abs_srcdir@&$ac_abs_srcdir&;t t
20810s&@top_srcdir@&$ac_top_srcdir&;t t
20811s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20812s&@builddir@&$ac_builddir&;t t
20813s&@abs_builddir@&$ac_abs_builddir&;t t
20814s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20815s&@INSTALL@&$ac_INSTALL&;t t
20816s&@MKDIR_P@&$ac_MKDIR_P&;t t
20817$ac_datarootdir_hack
20818"
20819eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20820  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20821
20822test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20823  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20824  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20825      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20826  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20827which seems to be undefined.  Please make sure it is defined" >&5
20828printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20829which seems to be undefined.  Please make sure it is defined" >&2;}
20830
20831  rm -f "$ac_tmp/stdin"
20832  case $ac_file in
20833  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20834  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20835  esac \
20836  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20837 ;;
20838  :H)
20839  #
20840  # CONFIG_HEADER
20841  #
20842  if test x"$ac_file" != x-; then
20843    {
20844      printf "%s\n" "/* $configure_input  */" >&1 \
20845      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20846    } >"$ac_tmp/config.h" \
20847      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20848    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20849      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20850printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
20851    else
20852      rm -f "$ac_file"
20853      mv "$ac_tmp/config.h" "$ac_file" \
20854	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20855    fi
20856  else
20857    printf "%s\n" "/* $configure_input  */" >&1 \
20858      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20859      || as_fn_error $? "could not create -" "$LINENO" 5
20860  fi
20861# Compute "$ac_file"'s index in $config_headers.
20862_am_arg="$ac_file"
20863_am_stamp_count=1
20864for _am_header in $config_headers :; do
20865  case $_am_header in
20866    $_am_arg | $_am_arg:* )
20867      break ;;
20868    * )
20869      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20870  esac
20871done
20872echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20873$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20874	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20875	 X"$_am_arg" : 'X\(//\)$' \| \
20876	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20877printf "%s\n" X"$_am_arg" |
20878    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20879	    s//\1/
20880	    q
20881	  }
20882	  /^X\(\/\/\)[^/].*/{
20883	    s//\1/
20884	    q
20885	  }
20886	  /^X\(\/\/\)$/{
20887	    s//\1/
20888	    q
20889	  }
20890	  /^X\(\/\).*/{
20891	    s//\1/
20892	    q
20893	  }
20894	  s/.*/./; q'`/stamp-h$_am_stamp_count
20895 ;;
20896
20897  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20898printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
20899 ;;
20900  esac
20901
20902
20903  case $ac_file$ac_mode in
20904    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20905  # Older Autoconf quotes --file arguments for eval, but not when files
20906  # are listed without --file.  Let's play safe and only enable the eval
20907  # if we detect the quoting.
20908  # TODO: see whether this extra hack can be removed once we start
20909  # requiring Autoconf 2.70 or later.
20910  case $CONFIG_FILES in #(
20911  *\'*) :
20912    eval set x "$CONFIG_FILES" ;; #(
20913  *) :
20914    set x $CONFIG_FILES ;; #(
20915  *) :
20916     ;;
20917esac
20918  shift
20919  # Used to flag and report bootstrapping failures.
20920  am_rc=0
20921  for am_mf
20922  do
20923    # Strip MF so we end up with the name of the file.
20924    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
20925    # Check whether this is an Automake generated Makefile which includes
20926    # dependency-tracking related rules and includes.
20927    # Grep'ing the whole file directly is not great: AIX grep has a line
20928    # limit of 2048, but all sed's we know have understand at least 4000.
20929    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20930      || continue
20931    am_dirpart=`$as_dirname -- "$am_mf" ||
20932$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20933	 X"$am_mf" : 'X\(//\)[^/]' \| \
20934	 X"$am_mf" : 'X\(//\)$' \| \
20935	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20936printf "%s\n" X"$am_mf" |
20937    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20938	    s//\1/
20939	    q
20940	  }
20941	  /^X\(\/\/\)[^/].*/{
20942	    s//\1/
20943	    q
20944	  }
20945	  /^X\(\/\/\)$/{
20946	    s//\1/
20947	    q
20948	  }
20949	  /^X\(\/\).*/{
20950	    s//\1/
20951	    q
20952	  }
20953	  s/.*/./; q'`
20954    am_filepart=`$as_basename -- "$am_mf" ||
20955$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20956	 X"$am_mf" : 'X\(//\)$' \| \
20957	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20958printf "%s\n" X/"$am_mf" |
20959    sed '/^.*\/\([^/][^/]*\)\/*$/{
20960	    s//\1/
20961	    q
20962	  }
20963	  /^X\/\(\/\/\)$/{
20964	    s//\1/
20965	    q
20966	  }
20967	  /^X\/\(\/\).*/{
20968	    s//\1/
20969	    q
20970	  }
20971	  s/.*/./; q'`
20972    { echo "$as_me:$LINENO: cd "$am_dirpart" \
20973      && sed -e '/# am--include-marker/d' "$am_filepart" \
20974        | $MAKE -f - am--depfiles" >&5
20975   (cd "$am_dirpart" \
20976      && sed -e '/# am--include-marker/d' "$am_filepart" \
20977        | $MAKE -f - am--depfiles) >&5 2>&5
20978   ac_status=$?
20979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980   (exit $ac_status); } || am_rc=$?
20981  done
20982  if test $am_rc -ne 0; then
20983    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20984printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20985as_fn_error $? "Something went wrong bootstrapping makefile fragments
20986    for automatic dependency tracking.  If GNU make was not used, consider
20987    re-running the configure script with MAKE=\"gmake\" (or whatever is
20988    necessary).  You can also try re-running configure with the
20989    '--disable-dependency-tracking' option to at least be able to build
20990    the package (albeit without support for automatic dependency tracking).
20991See \`config.log' for more details" "$LINENO" 5; }
20992  fi
20993  { am_dirpart=; unset am_dirpart;}
20994  { am_filepart=; unset am_filepart;}
20995  { am_mf=; unset am_mf;}
20996  { am_rc=; unset am_rc;}
20997  rm -f conftest-deps.mk
20998}
20999 ;;
21000    "libtool":C)
21001
21002    # See if we are running on zsh, and set the options that allow our
21003    # commands through without removal of \ escapes.
21004    if test -n "${ZSH_VERSION+set}"; then
21005      setopt NO_GLOB_SUBST
21006    fi
21007
21008    cfgfile=${ofile}T
21009    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21010    $RM "$cfgfile"
21011
21012    cat <<_LT_EOF >> "$cfgfile"
21013#! $SHELL
21014# Generated automatically by $as_me ($PACKAGE) $VERSION
21015# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21016# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21017
21018# Provide generalized library-building support services.
21019# Written by Gordon Matzigkeit, 1996
21020
21021# Copyright (C) 2014 Free Software Foundation, Inc.
21022# This is free software; see the source for copying conditions.  There is NO
21023# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21024
21025# GNU Libtool is free software; you can redistribute it and/or modify
21026# it under the terms of the GNU General Public License as published by
21027# the Free Software Foundation; either version 2 of of the License, or
21028# (at your option) any later version.
21029#
21030# As a special exception to the GNU General Public License, if you
21031# distribute this file as part of a program or library that is built
21032# using GNU Libtool, you may include this file under the  same
21033# distribution terms that you use for the rest of that program.
21034#
21035# GNU Libtool is distributed in the hope that it will be useful, but
21036# WITHOUT ANY WARRANTY; without even the implied warranty of
21037# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21038# GNU General Public License for more details.
21039#
21040# You should have received a copy of the GNU General Public License
21041# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21042
21043
21044# The names of the tagged configurations supported by this script.
21045available_tags=''
21046
21047# Configured defaults for sys_lib_dlsearch_path munging.
21048: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21049
21050# ### BEGIN LIBTOOL CONFIG
21051
21052# Which release of libtool.m4 was used?
21053macro_version=$macro_version
21054macro_revision=$macro_revision
21055
21056# Whether or not to build shared libraries.
21057build_libtool_libs=$enable_shared
21058
21059# Whether or not to build static libraries.
21060build_old_libs=$enable_static
21061
21062# What type of objects to build.
21063pic_mode=$pic_mode
21064
21065# Whether or not to optimize for fast installation.
21066fast_install=$enable_fast_install
21067
21068# Shared archive member basename,for filename based shared library versioning on AIX.
21069shared_archive_member_spec=$shared_archive_member_spec
21070
21071# Shell to use when invoking shell scripts.
21072SHELL=$lt_SHELL
21073
21074# An echo program that protects backslashes.
21075ECHO=$lt_ECHO
21076
21077# The PATH separator for the build system.
21078PATH_SEPARATOR=$lt_PATH_SEPARATOR
21079
21080# The host system.
21081host_alias=$host_alias
21082host=$host
21083host_os=$host_os
21084
21085# The build system.
21086build_alias=$build_alias
21087build=$build
21088build_os=$build_os
21089
21090# A sed program that does not truncate output.
21091SED=$lt_SED
21092
21093# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21094Xsed="\$SED -e 1s/^X//"
21095
21096# A grep program that handles long lines.
21097GREP=$lt_GREP
21098
21099# An ERE matcher.
21100EGREP=$lt_EGREP
21101
21102# A literal string matcher.
21103FGREP=$lt_FGREP
21104
21105# A BSD- or MS-compatible name lister.
21106NM=$lt_NM
21107
21108# Whether we need soft or hard links.
21109LN_S=$lt_LN_S
21110
21111# What is the maximum length of a command?
21112max_cmd_len=$max_cmd_len
21113
21114# Object file suffix (normally "o").
21115objext=$ac_objext
21116
21117# Executable file suffix (normally "").
21118exeext=$exeext
21119
21120# whether the shell understands "unset".
21121lt_unset=$lt_unset
21122
21123# turn spaces into newlines.
21124SP2NL=$lt_lt_SP2NL
21125
21126# turn newlines into spaces.
21127NL2SP=$lt_lt_NL2SP
21128
21129# convert \$build file names to \$host format.
21130to_host_file_cmd=$lt_cv_to_host_file_cmd
21131
21132# convert \$build files to toolchain format.
21133to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21134
21135# A file(cmd) program that detects file types.
21136FILECMD=$lt_FILECMD
21137
21138# An object symbol dumper.
21139OBJDUMP=$lt_OBJDUMP
21140
21141# Method to check whether dependent libraries are shared objects.
21142deplibs_check_method=$lt_deplibs_check_method
21143
21144# Command to use when deplibs_check_method = "file_magic".
21145file_magic_cmd=$lt_file_magic_cmd
21146
21147# How to find potential files when deplibs_check_method = "file_magic".
21148file_magic_glob=$lt_file_magic_glob
21149
21150# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21151want_nocaseglob=$lt_want_nocaseglob
21152
21153# DLL creation program.
21154DLLTOOL=$lt_DLLTOOL
21155
21156# Command to associate shared and link libraries.
21157sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21158
21159# The archiver.
21160AR=$lt_AR
21161
21162# Flags to create an archive (by configure).
21163lt_ar_flags=$lt_ar_flags
21164
21165# Flags to create an archive.
21166AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21167
21168# How to feed a file listing to the archiver.
21169archiver_list_spec=$lt_archiver_list_spec
21170
21171# A symbol stripping program.
21172STRIP=$lt_STRIP
21173
21174# Commands used to install an old-style archive.
21175RANLIB=$lt_RANLIB
21176old_postinstall_cmds=$lt_old_postinstall_cmds
21177old_postuninstall_cmds=$lt_old_postuninstall_cmds
21178
21179# Whether to use a lock for old archive extraction.
21180lock_old_archive_extraction=$lock_old_archive_extraction
21181
21182# A C compiler.
21183LTCC=$lt_CC
21184
21185# LTCC compiler flags.
21186LTCFLAGS=$lt_CFLAGS
21187
21188# Take the output of nm and produce a listing of raw symbols and C names.
21189global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21190
21191# Transform the output of nm in a proper C declaration.
21192global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21193
21194# Transform the output of nm into a list of symbols to manually relocate.
21195global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21196
21197# Transform the output of nm in a C name address pair.
21198global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21199
21200# Transform the output of nm in a C name address pair when lib prefix is needed.
21201global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21202
21203# The name lister interface.
21204nm_interface=$lt_lt_cv_nm_interface
21205
21206# Specify filename containing input files for \$NM.
21207nm_file_list_spec=$lt_nm_file_list_spec
21208
21209# The root where to search for dependent libraries,and where our libraries should be installed.
21210lt_sysroot=$lt_sysroot
21211
21212# Command to truncate a binary pipe.
21213lt_truncate_bin=$lt_lt_cv_truncate_bin
21214
21215# The name of the directory that contains temporary libtool files.
21216objdir=$objdir
21217
21218# Used to examine libraries when file_magic_cmd begins with "file".
21219MAGIC_CMD=$MAGIC_CMD
21220
21221# Must we lock files when doing compilation?
21222need_locks=$lt_need_locks
21223
21224# Manifest tool.
21225MANIFEST_TOOL=$lt_MANIFEST_TOOL
21226
21227# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21228DSYMUTIL=$lt_DSYMUTIL
21229
21230# Tool to change global to local symbols on Mac OS X.
21231NMEDIT=$lt_NMEDIT
21232
21233# Tool to manipulate fat objects and archives on Mac OS X.
21234LIPO=$lt_LIPO
21235
21236# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21237OTOOL=$lt_OTOOL
21238
21239# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21240OTOOL64=$lt_OTOOL64
21241
21242# Old archive suffix (normally "a").
21243libext=$libext
21244
21245# Shared library suffix (normally ".so").
21246shrext_cmds=$lt_shrext_cmds
21247
21248# The commands to extract the exported symbol list from a shared archive.
21249extract_expsyms_cmds=$lt_extract_expsyms_cmds
21250
21251# Variables whose values should be saved in libtool wrapper scripts and
21252# restored at link time.
21253variables_saved_for_relink=$lt_variables_saved_for_relink
21254
21255# Do we need the "lib" prefix for modules?
21256need_lib_prefix=$need_lib_prefix
21257
21258# Do we need a version for libraries?
21259need_version=$need_version
21260
21261# Library versioning type.
21262version_type=$version_type
21263
21264# Shared library runtime path variable.
21265runpath_var=$runpath_var
21266
21267# Shared library path variable.
21268shlibpath_var=$shlibpath_var
21269
21270# Is shlibpath searched before the hard-coded library search path?
21271shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21272
21273# Format of library name prefix.
21274libname_spec=$lt_libname_spec
21275
21276# List of archive names.  First name is the real one, the rest are links.
21277# The last name is the one that the linker finds with -lNAME
21278library_names_spec=$lt_library_names_spec
21279
21280# The coded name of the library, if different from the real name.
21281soname_spec=$lt_soname_spec
21282
21283# Permission mode override for installation of shared libraries.
21284install_override_mode=$lt_install_override_mode
21285
21286# Command to use after installation of a shared archive.
21287postinstall_cmds=$lt_postinstall_cmds
21288
21289# Command to use after uninstallation of a shared archive.
21290postuninstall_cmds=$lt_postuninstall_cmds
21291
21292# Commands used to finish a libtool library installation in a directory.
21293finish_cmds=$lt_finish_cmds
21294
21295# As "finish_cmds", except a single script fragment to be evaled but
21296# not shown.
21297finish_eval=$lt_finish_eval
21298
21299# Whether we should hardcode library paths into libraries.
21300hardcode_into_libs=$hardcode_into_libs
21301
21302# Compile-time system search path for libraries.
21303sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21304
21305# Detected run-time system search path for libraries.
21306sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21307
21308# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21309configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21310
21311# Whether dlopen is supported.
21312dlopen_support=$enable_dlopen
21313
21314# Whether dlopen of programs is supported.
21315dlopen_self=$enable_dlopen_self
21316
21317# Whether dlopen of statically linked programs is supported.
21318dlopen_self_static=$enable_dlopen_self_static
21319
21320# Commands to strip libraries.
21321old_striplib=$lt_old_striplib
21322striplib=$lt_striplib
21323
21324
21325# The linker used to build libraries.
21326LD=$lt_LD
21327
21328# How to create reloadable object files.
21329reload_flag=$lt_reload_flag
21330reload_cmds=$lt_reload_cmds
21331
21332# Commands used to build an old-style archive.
21333old_archive_cmds=$lt_old_archive_cmds
21334
21335# A language specific compiler.
21336CC=$lt_compiler
21337
21338# Is the compiler the GNU compiler?
21339with_gcc=$GCC
21340
21341# Compiler flag to turn off builtin functions.
21342no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21343
21344# Additional compiler flags for building library objects.
21345pic_flag=$lt_lt_prog_compiler_pic
21346
21347# How to pass a linker flag through the compiler.
21348wl=$lt_lt_prog_compiler_wl
21349
21350# Compiler flag to prevent dynamic linking.
21351link_static_flag=$lt_lt_prog_compiler_static
21352
21353# Does compiler simultaneously support -c and -o options?
21354compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21355
21356# Whether or not to add -lc for building shared libraries.
21357build_libtool_need_lc=$archive_cmds_need_lc
21358
21359# Whether or not to disallow shared libs when runtime libs are static.
21360allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21361
21362# Compiler flag to allow reflexive dlopens.
21363export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21364
21365# Compiler flag to generate shared objects directly from archives.
21366whole_archive_flag_spec=$lt_whole_archive_flag_spec
21367
21368# Whether the compiler copes with passing no objects directly.
21369compiler_needs_object=$lt_compiler_needs_object
21370
21371# Create an old-style archive from a shared archive.
21372old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21373
21374# Create a temporary old-style archive to link instead of a shared archive.
21375old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21376
21377# Commands used to build a shared archive.
21378archive_cmds=$lt_archive_cmds
21379archive_expsym_cmds=$lt_archive_expsym_cmds
21380
21381# Commands used to build a loadable module if different from building
21382# a shared archive.
21383module_cmds=$lt_module_cmds
21384module_expsym_cmds=$lt_module_expsym_cmds
21385
21386# Whether we are building with GNU ld or not.
21387with_gnu_ld=$lt_with_gnu_ld
21388
21389# Flag that allows shared libraries with undefined symbols to be built.
21390allow_undefined_flag=$lt_allow_undefined_flag
21391
21392# Flag that enforces no undefined symbols.
21393no_undefined_flag=$lt_no_undefined_flag
21394
21395# Flag to hardcode \$libdir into a binary during linking.
21396# This must work even if \$libdir does not exist
21397hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21398
21399# Whether we need a single "-rpath" flag with a separated argument.
21400hardcode_libdir_separator=$lt_hardcode_libdir_separator
21401
21402# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21403# DIR into the resulting binary.
21404hardcode_direct=$hardcode_direct
21405
21406# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21407# DIR into the resulting binary and the resulting library dependency is
21408# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21409# library is relocated.
21410hardcode_direct_absolute=$hardcode_direct_absolute
21411
21412# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21413# into the resulting binary.
21414hardcode_minus_L=$hardcode_minus_L
21415
21416# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21417# into the resulting binary.
21418hardcode_shlibpath_var=$hardcode_shlibpath_var
21419
21420# Set to "yes" if building a shared library automatically hardcodes DIR
21421# into the library and all subsequent libraries and executables linked
21422# against it.
21423hardcode_automatic=$hardcode_automatic
21424
21425# Set to yes if linker adds runtime paths of dependent libraries
21426# to runtime path list.
21427inherit_rpath=$inherit_rpath
21428
21429# Whether libtool must link a program against all its dependency libraries.
21430link_all_deplibs=$link_all_deplibs
21431
21432# Set to "yes" if exported symbols are required.
21433always_export_symbols=$always_export_symbols
21434
21435# The commands to list exported symbols.
21436export_symbols_cmds=$lt_export_symbols_cmds
21437
21438# Symbols that should not be listed in the preloaded symbols.
21439exclude_expsyms=$lt_exclude_expsyms
21440
21441# Symbols that must always be exported.
21442include_expsyms=$lt_include_expsyms
21443
21444# Commands necessary for linking programs (against libraries) with templates.
21445prelink_cmds=$lt_prelink_cmds
21446
21447# Commands necessary for finishing linking programs.
21448postlink_cmds=$lt_postlink_cmds
21449
21450# Specify filename containing input files.
21451file_list_spec=$lt_file_list_spec
21452
21453# How to hardcode a shared library path into an executable.
21454hardcode_action=$hardcode_action
21455
21456# ### END LIBTOOL CONFIG
21457
21458_LT_EOF
21459
21460    cat <<'_LT_EOF' >> "$cfgfile"
21461
21462# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21463
21464# func_munge_path_list VARIABLE PATH
21465# -----------------------------------
21466# VARIABLE is name of variable containing _space_ separated list of
21467# directories to be munged by the contents of PATH, which is string
21468# having a format:
21469# "DIR[:DIR]:"
21470#       string "DIR[ DIR]" will be prepended to VARIABLE
21471# ":DIR[:DIR]"
21472#       string "DIR[ DIR]" will be appended to VARIABLE
21473# "DIRP[:DIRP]::[DIRA:]DIRA"
21474#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21475#       "DIRA[ DIRA]" will be appended to VARIABLE
21476# "DIR[:DIR]"
21477#       VARIABLE will be replaced by "DIR[ DIR]"
21478func_munge_path_list ()
21479{
21480    case x$2 in
21481    x)
21482        ;;
21483    *:)
21484        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21485        ;;
21486    x:*)
21487        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21488        ;;
21489    *::*)
21490        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21491        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21492        ;;
21493    *)
21494        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21495        ;;
21496    esac
21497}
21498
21499
21500# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21501func_cc_basename ()
21502{
21503    for cc_temp in $*""; do
21504      case $cc_temp in
21505        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21506        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21507        \-*) ;;
21508        *) break;;
21509      esac
21510    done
21511    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21512}
21513
21514
21515# ### END FUNCTIONS SHARED WITH CONFIGURE
21516
21517_LT_EOF
21518
21519  case $host_os in
21520  aix3*)
21521    cat <<\_LT_EOF >> "$cfgfile"
21522# AIX sometimes has problems with the GCC collect2 program.  For some
21523# reason, if we set the COLLECT_NAMES environment variable, the problems
21524# vanish in a puff of smoke.
21525if test set != "${COLLECT_NAMES+set}"; then
21526  COLLECT_NAMES=
21527  export COLLECT_NAMES
21528fi
21529_LT_EOF
21530    ;;
21531  esac
21532
21533
21534
21535ltmain=$ac_aux_dir/ltmain.sh
21536
21537
21538  # We use sed instead of cat because bash on DJGPP gets confused if
21539  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21540  # text mode, it properly converts lines to CR/LF.  This bash problem
21541  # is reportedly fixed, but why not run on old versions too?
21542  $SED '$q' "$ltmain" >> "$cfgfile" \
21543     || (rm -f "$cfgfile"; exit 1)
21544
21545   mv -f "$cfgfile" "$ofile" ||
21546    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21547  chmod +x "$ofile"
21548
21549 ;;
21550
21551  esac
21552done # for ac_tag
21553
21554
21555as_fn_exit 0
21556_ACEOF
21557ac_clean_files=$ac_clean_files_save
21558
21559test $ac_write_fail = 0 ||
21560  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21561
21562
21563# configure is writing to config.log, and then calls config.status.
21564# config.status does its own redirection, appending to config.log.
21565# Unfortunately, on DOS this fails, as config.log is still kept open
21566# by configure, so config.status won't be able to write to it; its
21567# output is simply discarded.  So we exec the FD to /dev/null,
21568# effectively closing config.log, so it can be properly (re)opened and
21569# appended to by config.status.  When coming back to configure, we
21570# need to make the FD available again.
21571if test "$no_create" != yes; then
21572  ac_cs_success=:
21573  ac_config_status_args=
21574  test "$silent" = yes &&
21575    ac_config_status_args="$ac_config_status_args --quiet"
21576  exec 5>/dev/null
21577  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21578  exec 5>>config.log
21579  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21580  # would make configure fail if this is the last instruction.
21581  $ac_cs_success || as_fn_exit 1
21582fi
21583if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21584  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21585printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21586fi
21587
21588
21589