1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for libXres 1.2.2.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxres/-/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/libxres/-/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='libXres'
624PACKAGE_TARNAME='libXres'
625PACKAGE_VERSION='1.2.2'
626PACKAGE_STRING='libXres 1.2.2'
627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxres/-/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
667XRES_LIBS
668XRES_CFLAGS
669XTMALLOC_ZERO_CFLAGS
670XMALLOC_ZERO_CFLAGS
671MALLOC_ZERO_CFLAGS
672MAN_SUBSTS
673XORG_MAN_PAGE
674ADMIN_MAN_DIR
675DRIVER_MAN_DIR
676MISC_MAN_DIR
677FILE_MAN_DIR
678LIB_MAN_DIR
679APP_MAN_DIR
680ADMIN_MAN_SUFFIX
681DRIVER_MAN_SUFFIX
682MISC_MAN_SUFFIX
683FILE_MAN_SUFFIX
684LIB_MAN_SUFFIX
685APP_MAN_SUFFIX
686INSTALL_CMD
687PKG_CONFIG_LIBDIR
688PKG_CONFIG_PATH
689PKG_CONFIG
690CHANGELOG_CMD
691STRICT_CFLAGS
692CWARNFLAGS
693BASE_CFLAGS
694LT_SYS_LIBRARY_PATH
695OTOOL64
696OTOOL
697LIPO
698NMEDIT
699DSYMUTIL
700MANIFEST_TOOL
701RANLIB
702ac_ct_AR
703AR
704DLLTOOL
705OBJDUMP
706FILECMD
707LN_S
708NM
709ac_ct_DUMPBIN
710DUMPBIN
711LD
712FGREP
713EGREP
714GREP
715SED
716am__fastdepCC_FALSE
717am__fastdepCC_TRUE
718CCDEPMODE
719am__nodep
720AMDEPBACKSLASH
721AMDEP_FALSE
722AMDEP_TRUE
723am__include
724DEPDIR
725OBJEXT
726EXEEXT
727ac_ct_CC
728CPPFLAGS
729LDFLAGS
730CFLAGS
731CC
732host_os
733host_vendor
734host_cpu
735host
736build_os
737build_vendor
738build_cpu
739build
740LIBTOOL
741AM_BACKSLASH
742AM_DEFAULT_VERBOSITY
743AM_DEFAULT_V
744AM_V
745CSCOPE
746ETAGS
747CTAGS
748am__untar
749am__tar
750AMTAR
751am__leading_dot
752SET_MAKE
753AWK
754mkdir_p
755MKDIR_P
756INSTALL_STRIP_PROGRAM
757STRIP
758install_sh
759MAKEINFO
760AUTOHEADER
761AUTOMAKE
762AUTOCONF
763ACLOCAL
764VERSION
765PACKAGE
766CYGPATH_W
767am__isrc
768INSTALL_DATA
769INSTALL_SCRIPT
770INSTALL_PROGRAM
771target_alias
772host_alias
773build_alias
774LIBS
775ECHO_T
776ECHO_N
777ECHO_C
778DEFS
779mandir
780localedir
781libdir
782psdir
783pdfdir
784dvidir
785htmldir
786infodir
787docdir
788oldincludedir
789includedir
790runstatedir
791localstatedir
792sharedstatedir
793sysconfdir
794datadir
795datarootdir
796libexecdir
797sbindir
798bindir
799program_transform_name
800prefix
801exec_prefix
802PACKAGE_URL
803PACKAGE_BUGREPORT
804PACKAGE_STRING
805PACKAGE_VERSION
806PACKAGE_TARNAME
807PACKAGE_NAME
808PATH_SEPARATOR
809SHELL
810am__quote'
811ac_subst_files=''
812ac_user_opts='
813enable_option_checking
814enable_silent_rules
815enable_shared
816enable_static
817with_pic
818enable_fast_install
819with_aix_soname
820enable_dependency_tracking
821with_gnu_ld
822with_sysroot
823enable_libtool_lock
824enable_selective_werror
825enable_strict_compilation
826enable_malloc0returnsnull
827'
828      ac_precious_vars='build_alias
829host_alias
830target_alias
831CC
832CFLAGS
833LDFLAGS
834LIBS
835CPPFLAGS
836LT_SYS_LIBRARY_PATH
837PKG_CONFIG
838PKG_CONFIG_PATH
839PKG_CONFIG_LIBDIR
840XRES_CFLAGS
841XRES_LIBS'
842
843
844# Initialize some variables set by options.
845ac_init_help=
846ac_init_version=false
847ac_unrecognized_opts=
848ac_unrecognized_sep=
849# The variables have the same names as the options, with
850# dashes changed to underlines.
851cache_file=/dev/null
852exec_prefix=NONE
853no_create=
854no_recursion=
855prefix=NONE
856program_prefix=NONE
857program_suffix=NONE
858program_transform_name=s,x,x,
859silent=
860site=
861srcdir=
862verbose=
863x_includes=NONE
864x_libraries=NONE
865
866# Installation directory options.
867# These are left unexpanded so users can "make install exec_prefix=/foo"
868# and all the variables that are supposed to be based on exec_prefix
869# by default will actually change.
870# Use braces instead of parens because sh, perl, etc. also accept them.
871# (The list follows the same order as the GNU Coding Standards.)
872bindir='${exec_prefix}/bin'
873sbindir='${exec_prefix}/sbin'
874libexecdir='${exec_prefix}/libexec'
875datarootdir='${prefix}/share'
876datadir='${datarootdir}'
877sysconfdir='${prefix}/etc'
878sharedstatedir='${prefix}/com'
879localstatedir='${prefix}/var'
880runstatedir='${localstatedir}/run'
881includedir='${prefix}/include'
882oldincludedir='/usr/include'
883docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
884infodir='${datarootdir}/info'
885htmldir='${docdir}'
886dvidir='${docdir}'
887pdfdir='${docdir}'
888psdir='${docdir}'
889libdir='${exec_prefix}/lib'
890localedir='${datarootdir}/locale'
891mandir='${datarootdir}/man'
892
893ac_prev=
894ac_dashdash=
895for ac_option
896do
897  # If the previous option needs an argument, assign it.
898  if test -n "$ac_prev"; then
899    eval $ac_prev=\$ac_option
900    ac_prev=
901    continue
902  fi
903
904  case $ac_option in
905  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
906  *=)   ac_optarg= ;;
907  *)    ac_optarg=yes ;;
908  esac
909
910  case $ac_dashdash$ac_option in
911  --)
912    ac_dashdash=yes ;;
913
914  -bindir | --bindir | --bindi | --bind | --bin | --bi)
915    ac_prev=bindir ;;
916  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917    bindir=$ac_optarg ;;
918
919  -build | --build | --buil | --bui | --bu)
920    ac_prev=build_alias ;;
921  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922    build_alias=$ac_optarg ;;
923
924  -cache-file | --cache-file | --cache-fil | --cache-fi \
925  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926    ac_prev=cache_file ;;
927  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929    cache_file=$ac_optarg ;;
930
931  --config-cache | -C)
932    cache_file=config.cache ;;
933
934  -datadir | --datadir | --datadi | --datad)
935    ac_prev=datadir ;;
936  -datadir=* | --datadir=* | --datadi=* | --datad=*)
937    datadir=$ac_optarg ;;
938
939  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940  | --dataroo | --dataro | --datar)
941    ac_prev=datarootdir ;;
942  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944    datarootdir=$ac_optarg ;;
945
946  -disable-* | --disable-*)
947    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948    # Reject names that are not valid shell variable names.
949    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950      as_fn_error $? "invalid feature name: \`$ac_useropt'"
951    ac_useropt_orig=$ac_useropt
952    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
953    case $ac_user_opts in
954      *"
955"enable_$ac_useropt"
956"*) ;;
957      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958	 ac_unrecognized_sep=', ';;
959    esac
960    eval enable_$ac_useropt=no ;;
961
962  -docdir | --docdir | --docdi | --doc | --do)
963    ac_prev=docdir ;;
964  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965    docdir=$ac_optarg ;;
966
967  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968    ac_prev=dvidir ;;
969  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970    dvidir=$ac_optarg ;;
971
972  -enable-* | --enable-*)
973    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974    # Reject names that are not valid shell variable names.
975    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976      as_fn_error $? "invalid feature name: \`$ac_useropt'"
977    ac_useropt_orig=$ac_useropt
978    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
979    case $ac_user_opts in
980      *"
981"enable_$ac_useropt"
982"*) ;;
983      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984	 ac_unrecognized_sep=', ';;
985    esac
986    eval enable_$ac_useropt=\$ac_optarg ;;
987
988  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990  | --exec | --exe | --ex)
991    ac_prev=exec_prefix ;;
992  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994  | --exec=* | --exe=* | --ex=*)
995    exec_prefix=$ac_optarg ;;
996
997  -gas | --gas | --ga | --g)
998    # Obsolete; use --with-gas.
999    with_gas=yes ;;
1000
1001  -help | --help | --hel | --he | -h)
1002    ac_init_help=long ;;
1003  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004    ac_init_help=recursive ;;
1005  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006    ac_init_help=short ;;
1007
1008  -host | --host | --hos | --ho)
1009    ac_prev=host_alias ;;
1010  -host=* | --host=* | --hos=* | --ho=*)
1011    host_alias=$ac_optarg ;;
1012
1013  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014    ac_prev=htmldir ;;
1015  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016  | --ht=*)
1017    htmldir=$ac_optarg ;;
1018
1019  -includedir | --includedir | --includedi | --included | --include \
1020  | --includ | --inclu | --incl | --inc)
1021    ac_prev=includedir ;;
1022  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023  | --includ=* | --inclu=* | --incl=* | --inc=*)
1024    includedir=$ac_optarg ;;
1025
1026  -infodir | --infodir | --infodi | --infod | --info | --inf)
1027    ac_prev=infodir ;;
1028  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029    infodir=$ac_optarg ;;
1030
1031  -libdir | --libdir | --libdi | --libd)
1032    ac_prev=libdir ;;
1033  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034    libdir=$ac_optarg ;;
1035
1036  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037  | --libexe | --libex | --libe)
1038    ac_prev=libexecdir ;;
1039  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040  | --libexe=* | --libex=* | --libe=*)
1041    libexecdir=$ac_optarg ;;
1042
1043  -localedir | --localedir | --localedi | --localed | --locale)
1044    ac_prev=localedir ;;
1045  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046    localedir=$ac_optarg ;;
1047
1048  -localstatedir | --localstatedir | --localstatedi | --localstated \
1049  | --localstate | --localstat | --localsta | --localst | --locals)
1050    ac_prev=localstatedir ;;
1051  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1052  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1053    localstatedir=$ac_optarg ;;
1054
1055  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056    ac_prev=mandir ;;
1057  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058    mandir=$ac_optarg ;;
1059
1060  -nfp | --nfp | --nf)
1061    # Obsolete; use --without-fp.
1062    with_fp=no ;;
1063
1064  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065  | --no-cr | --no-c | -n)
1066    no_create=yes ;;
1067
1068  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070    no_recursion=yes ;;
1071
1072  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074  | --oldin | --oldi | --old | --ol | --o)
1075    ac_prev=oldincludedir ;;
1076  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079    oldincludedir=$ac_optarg ;;
1080
1081  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082    ac_prev=prefix ;;
1083  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084    prefix=$ac_optarg ;;
1085
1086  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087  | --program-pre | --program-pr | --program-p)
1088    ac_prev=program_prefix ;;
1089  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091    program_prefix=$ac_optarg ;;
1092
1093  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094  | --program-suf | --program-su | --program-s)
1095    ac_prev=program_suffix ;;
1096  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098    program_suffix=$ac_optarg ;;
1099
1100  -program-transform-name | --program-transform-name \
1101  | --program-transform-nam | --program-transform-na \
1102  | --program-transform-n | --program-transform- \
1103  | --program-transform | --program-transfor \
1104  | --program-transfo | --program-transf \
1105  | --program-trans | --program-tran \
1106  | --progr-tra | --program-tr | --program-t)
1107    ac_prev=program_transform_name ;;
1108  -program-transform-name=* | --program-transform-name=* \
1109  | --program-transform-nam=* | --program-transform-na=* \
1110  | --program-transform-n=* | --program-transform-=* \
1111  | --program-transform=* | --program-transfor=* \
1112  | --program-transfo=* | --program-transf=* \
1113  | --program-trans=* | --program-tran=* \
1114  | --progr-tra=* | --program-tr=* | --program-t=*)
1115    program_transform_name=$ac_optarg ;;
1116
1117  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118    ac_prev=pdfdir ;;
1119  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120    pdfdir=$ac_optarg ;;
1121
1122  -psdir | --psdir | --psdi | --psd | --ps)
1123    ac_prev=psdir ;;
1124  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125    psdir=$ac_optarg ;;
1126
1127  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128  | -silent | --silent | --silen | --sile | --sil)
1129    silent=yes ;;
1130
1131  -runstatedir | --runstatedir | --runstatedi | --runstated \
1132  | --runstate | --runstat | --runsta | --runst | --runs \
1133  | --run | --ru | --r)
1134    ac_prev=runstatedir ;;
1135  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1136  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1137  | --run=* | --ru=* | --r=*)
1138    runstatedir=$ac_optarg ;;
1139
1140  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1141    ac_prev=sbindir ;;
1142  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1143  | --sbi=* | --sb=*)
1144    sbindir=$ac_optarg ;;
1145
1146  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1147  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1148  | --sharedst | --shareds | --shared | --share | --shar \
1149  | --sha | --sh)
1150    ac_prev=sharedstatedir ;;
1151  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1152  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1153  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1154  | --sha=* | --sh=*)
1155    sharedstatedir=$ac_optarg ;;
1156
1157  -site | --site | --sit)
1158    ac_prev=site ;;
1159  -site=* | --site=* | --sit=*)
1160    site=$ac_optarg ;;
1161
1162  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1163    ac_prev=srcdir ;;
1164  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1165    srcdir=$ac_optarg ;;
1166
1167  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1168  | --syscon | --sysco | --sysc | --sys | --sy)
1169    ac_prev=sysconfdir ;;
1170  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1171  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1172    sysconfdir=$ac_optarg ;;
1173
1174  -target | --target | --targe | --targ | --tar | --ta | --t)
1175    ac_prev=target_alias ;;
1176  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1177    target_alias=$ac_optarg ;;
1178
1179  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1180    verbose=yes ;;
1181
1182  -version | --version | --versio | --versi | --vers | -V)
1183    ac_init_version=: ;;
1184
1185  -with-* | --with-*)
1186    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1187    # Reject names that are not valid shell variable names.
1188    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189      as_fn_error $? "invalid package name: \`$ac_useropt'"
1190    ac_useropt_orig=$ac_useropt
1191    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1192    case $ac_user_opts in
1193      *"
1194"with_$ac_useropt"
1195"*) ;;
1196      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1197	 ac_unrecognized_sep=', ';;
1198    esac
1199    eval with_$ac_useropt=\$ac_optarg ;;
1200
1201  -without-* | --without-*)
1202    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1203    # Reject names that are not valid shell variable names.
1204    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1205      as_fn_error $? "invalid package name: \`$ac_useropt'"
1206    ac_useropt_orig=$ac_useropt
1207    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1208    case $ac_user_opts in
1209      *"
1210"with_$ac_useropt"
1211"*) ;;
1212      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1213	 ac_unrecognized_sep=', ';;
1214    esac
1215    eval with_$ac_useropt=no ;;
1216
1217  --x)
1218    # Obsolete; use --with-x.
1219    with_x=yes ;;
1220
1221  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222  | --x-incl | --x-inc | --x-in | --x-i)
1223    ac_prev=x_includes ;;
1224  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226    x_includes=$ac_optarg ;;
1227
1228  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230    ac_prev=x_libraries ;;
1231  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233    x_libraries=$ac_optarg ;;
1234
1235  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1236Try \`$0 --help' for more information"
1237    ;;
1238
1239  *=*)
1240    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1241    # Reject names that are not valid shell variable names.
1242    case $ac_envvar in #(
1243      '' | [0-9]* | *[!_$as_cr_alnum]* )
1244      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1245    esac
1246    eval $ac_envvar=\$ac_optarg
1247    export $ac_envvar ;;
1248
1249  *)
1250    # FIXME: should be removed in autoconf 3.0.
1251    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1252    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1254    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1255    ;;
1256
1257  esac
1258done
1259
1260if test -n "$ac_prev"; then
1261  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1262  as_fn_error $? "missing argument to $ac_option"
1263fi
1264
1265if test -n "$ac_unrecognized_opts"; then
1266  case $enable_option_checking in
1267    no) ;;
1268    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1269    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1270  esac
1271fi
1272
1273# Check all directory arguments for consistency.
1274for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1275		datadir sysconfdir sharedstatedir localstatedir includedir \
1276		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1277		libdir localedir mandir runstatedir
1278do
1279  eval ac_val=\$$ac_var
1280  # Remove trailing slashes.
1281  case $ac_val in
1282    */ )
1283      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1284      eval $ac_var=\$ac_val;;
1285  esac
1286  # Be sure to have absolute directory names.
1287  case $ac_val in
1288    [\\/$]* | ?:[\\/]* )  continue;;
1289    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290  esac
1291  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1292done
1293
1294# There might be people who depend on the old broken behavior: `$host'
1295# used to hold the argument of --host etc.
1296# FIXME: To remove some day.
1297build=$build_alias
1298host=$host_alias
1299target=$target_alias
1300
1301# FIXME: To remove some day.
1302if test "x$host_alias" != x; then
1303  if test "x$build_alias" = x; then
1304    cross_compiling=maybe
1305  elif test "x$build_alias" != "x$host_alias"; then
1306    cross_compiling=yes
1307  fi
1308fi
1309
1310ac_tool_prefix=
1311test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312
1313test "$silent" = yes && exec 6>/dev/null
1314
1315
1316ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317ac_ls_di=`ls -di .` &&
1318ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1319  as_fn_error $? "working directory cannot be determined"
1320test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321  as_fn_error $? "pwd does not report name of working directory"
1322
1323
1324# Find the source files, if location was not specified.
1325if test -z "$srcdir"; then
1326  ac_srcdir_defaulted=yes
1327  # Try the directory containing this script, then the parent directory.
1328  ac_confdir=`$as_dirname -- "$as_myself" ||
1329$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330	 X"$as_myself" : 'X\(//\)[^/]' \| \
1331	 X"$as_myself" : 'X\(//\)$' \| \
1332	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1333printf "%s\n" X"$as_myself" |
1334    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335	    s//\1/
1336	    q
1337	  }
1338	  /^X\(\/\/\)[^/].*/{
1339	    s//\1/
1340	    q
1341	  }
1342	  /^X\(\/\/\)$/{
1343	    s//\1/
1344	    q
1345	  }
1346	  /^X\(\/\).*/{
1347	    s//\1/
1348	    q
1349	  }
1350	  s/.*/./; q'`
1351  srcdir=$ac_confdir
1352  if test ! -r "$srcdir/$ac_unique_file"; then
1353    srcdir=..
1354  fi
1355else
1356  ac_srcdir_defaulted=no
1357fi
1358if test ! -r "$srcdir/$ac_unique_file"; then
1359  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1360  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1361fi
1362ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1363ac_abs_confdir=`(
1364	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1365	pwd)`
1366# When building in place, set srcdir=.
1367if test "$ac_abs_confdir" = "$ac_pwd"; then
1368  srcdir=.
1369fi
1370# Remove unnecessary trailing slashes from srcdir.
1371# Double slashes in file names in object file debugging info
1372# mess up M-x gdb in Emacs.
1373case $srcdir in
1374*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375esac
1376for ac_var in $ac_precious_vars; do
1377  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1378  eval ac_env_${ac_var}_value=\$${ac_var}
1379  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1380  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381done
1382
1383#
1384# Report the --help message.
1385#
1386if test "$ac_init_help" = "long"; then
1387  # Omit some internal or obsolete options to make the list less imposing.
1388  # This message is too long to be a string in the A/UX 3.1 sh.
1389  cat <<_ACEOF
1390\`configure' configures libXres 1.2.2 to adapt to many kinds of systems.
1391
1392Usage: $0 [OPTION]... [VAR=VALUE]...
1393
1394To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395VAR=VALUE.  See below for descriptions of some of the useful variables.
1396
1397Defaults for the options are specified in brackets.
1398
1399Configuration:
1400  -h, --help              display this help and exit
1401      --help=short        display options specific to this package
1402      --help=recursive    display the short help of all the included packages
1403  -V, --version           display version information and exit
1404  -q, --quiet, --silent   do not print \`checking ...' messages
1405      --cache-file=FILE   cache test results in FILE [disabled]
1406  -C, --config-cache      alias for \`--cache-file=config.cache'
1407  -n, --no-create         do not create output files
1408      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1409
1410Installation directories:
1411  --prefix=PREFIX         install architecture-independent files in PREFIX
1412                          [$ac_default_prefix]
1413  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1414                          [PREFIX]
1415
1416By default, \`make install' will install all the files in
1417\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1418an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1419for instance \`--prefix=\$HOME'.
1420
1421For better control, use the options below.
1422
1423Fine tuning of the installation directories:
1424  --bindir=DIR            user executables [EPREFIX/bin]
1425  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1426  --libexecdir=DIR        program executables [EPREFIX/libexec]
1427  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1428  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1429  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1430  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1431  --libdir=DIR            object code libraries [EPREFIX/lib]
1432  --includedir=DIR        C header files [PREFIX/include]
1433  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1434  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1435  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1436  --infodir=DIR           info documentation [DATAROOTDIR/info]
1437  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1438  --mandir=DIR            man documentation [DATAROOTDIR/man]
1439  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXres]
1440  --htmldir=DIR           html documentation [DOCDIR]
1441  --dvidir=DIR            dvi documentation [DOCDIR]
1442  --pdfdir=DIR            pdf documentation [DOCDIR]
1443  --psdir=DIR             ps documentation [DOCDIR]
1444_ACEOF
1445
1446  cat <<\_ACEOF
1447
1448Program names:
1449  --program-prefix=PREFIX            prepend PREFIX to installed program names
1450  --program-suffix=SUFFIX            append SUFFIX to installed program names
1451  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1452
1453System types:
1454  --build=BUILD     configure for building on BUILD [guessed]
1455  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1456_ACEOF
1457fi
1458
1459if test -n "$ac_init_help"; then
1460  case $ac_init_help in
1461     short | recursive ) echo "Configuration of libXres 1.2.2:";;
1462   esac
1463  cat <<\_ACEOF
1464
1465Optional Features:
1466  --disable-option-checking  ignore unrecognized --enable/--with options
1467  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1468  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1469  --enable-silent-rules   less verbose build output (undo: "make V=1")
1470  --disable-silent-rules  verbose build output (undo: "make V=0")
1471  --enable-shared[=PKGS]  build shared libraries [default=yes]
1472  --enable-static[=PKGS]  build static libraries [default=yes]
1473  --enable-fast-install[=PKGS]
1474                          optimize for fast installation [default=yes]
1475  --enable-dependency-tracking
1476                          do not reject slow dependency extractors
1477  --disable-dependency-tracking
1478                          speeds up one-time build
1479  --disable-libtool-lock  avoid locking (might break parallel builds)
1480  --disable-selective-werror
1481                          Turn off selective compiler errors. (default:
1482                          enabled)
1483  --enable-strict-compilation
1484                          Enable all warnings from compiler and make them
1485                          errors (default: disabled)
1486  --enable-malloc0returnsnull
1487                          malloc(0) returns NULL (default: auto)
1488
1489Optional Packages:
1490  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1491  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1492  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1493                          both]
1494  --with-aix-soname=aix|svr4|both
1495                          shared library versioning (aka "SONAME") variant to
1496                          provide on AIX, [default=aix].
1497  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1498  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1499                          compiler's sysroot if not specified).
1500
1501Some influential environment variables:
1502  CC          C compiler command
1503  CFLAGS      C compiler flags
1504  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1505              nonstandard directory <lib dir>
1506  LIBS        libraries to pass to the linker, e.g. -l<library>
1507  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1508              you have headers in a nonstandard directory <include dir>
1509  LT_SYS_LIBRARY_PATH
1510              User-defined run-time library search path.
1511  PKG_CONFIG  path to pkg-config utility
1512  PKG_CONFIG_PATH
1513              directories to add to pkg-config's search path
1514  PKG_CONFIG_LIBDIR
1515              path overriding pkg-config's built-in search path
1516  XRES_CFLAGS C compiler flags for XRES, overriding pkg-config
1517  XRES_LIBS   linker flags for XRES, overriding pkg-config
1518
1519Use these variables to override the choices made by `configure' or to help
1520it to find libraries and programs with nonstandard names/locations.
1521
1522Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxres/-/issues>.
1523_ACEOF
1524ac_status=$?
1525fi
1526
1527if test "$ac_init_help" = "recursive"; then
1528  # If there are subdirs, report their specific --help.
1529  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1530    test -d "$ac_dir" ||
1531      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1532      continue
1533    ac_builddir=.
1534
1535case "$ac_dir" in
1536.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537*)
1538  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1539  # A ".." for each directory in $ac_dir_suffix.
1540  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1541  case $ac_top_builddir_sub in
1542  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1544  esac ;;
1545esac
1546ac_abs_top_builddir=$ac_pwd
1547ac_abs_builddir=$ac_pwd$ac_dir_suffix
1548# for backward compatibility:
1549ac_top_builddir=$ac_top_build_prefix
1550
1551case $srcdir in
1552  .)  # We are building in place.
1553    ac_srcdir=.
1554    ac_top_srcdir=$ac_top_builddir_sub
1555    ac_abs_top_srcdir=$ac_pwd ;;
1556  [\\/]* | ?:[\\/]* )  # Absolute name.
1557    ac_srcdir=$srcdir$ac_dir_suffix;
1558    ac_top_srcdir=$srcdir
1559    ac_abs_top_srcdir=$srcdir ;;
1560  *) # Relative name.
1561    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1562    ac_top_srcdir=$ac_top_build_prefix$srcdir
1563    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1564esac
1565ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1566
1567    cd "$ac_dir" || { ac_status=$?; continue; }
1568    # Check for configure.gnu first; this name is used for a wrapper for
1569    # Metaconfig's "Configure" on case-insensitive file systems.
1570    if test -f "$ac_srcdir/configure.gnu"; then
1571      echo &&
1572      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1573    elif test -f "$ac_srcdir/configure"; then
1574      echo &&
1575      $SHELL "$ac_srcdir/configure" --help=recursive
1576    else
1577      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1578    fi || ac_status=$?
1579    cd "$ac_pwd" || { ac_status=$?; break; }
1580  done
1581fi
1582
1583test -n "$ac_init_help" && exit $ac_status
1584if $ac_init_version; then
1585  cat <<\_ACEOF
1586libXres configure 1.2.2
1587generated by GNU Autoconf 2.71
1588
1589Copyright (C) 2021 Free Software Foundation, Inc.
1590This configure script is free software; the Free Software Foundation
1591gives unlimited permission to copy, distribute and modify it.
1592_ACEOF
1593  exit
1594fi
1595
1596## ------------------------ ##
1597## Autoconf initialization. ##
1598## ------------------------ ##
1599
1600# ac_fn_c_try_compile LINENO
1601# --------------------------
1602# Try to compile conftest.$ac_ext, and return whether this succeeded.
1603ac_fn_c_try_compile ()
1604{
1605  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606  rm -f conftest.$ac_objext conftest.beam
1607  if { { ac_try="$ac_compile"
1608case "(($ac_try" in
1609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610  *) ac_try_echo=$ac_try;;
1611esac
1612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613printf "%s\n" "$ac_try_echo"; } >&5
1614  (eval "$ac_compile") 2>conftest.err
1615  ac_status=$?
1616  if test -s conftest.err; then
1617    grep -v '^ *+' conftest.err >conftest.er1
1618    cat conftest.er1 >&5
1619    mv -f conftest.er1 conftest.err
1620  fi
1621  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622  test $ac_status = 0; } && {
1623	 test -z "$ac_c_werror_flag" ||
1624	 test ! -s conftest.err
1625       } && test -s conftest.$ac_objext
1626then :
1627  ac_retval=0
1628else $as_nop
1629  printf "%s\n" "$as_me: failed program was:" >&5
1630sed 's/^/| /' conftest.$ac_ext >&5
1631
1632	ac_retval=1
1633fi
1634  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635  as_fn_set_status $ac_retval
1636
1637} # ac_fn_c_try_compile
1638
1639# ac_fn_c_try_link LINENO
1640# -----------------------
1641# Try to link conftest.$ac_ext, and return whether this succeeded.
1642ac_fn_c_try_link ()
1643{
1644  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1646  if { { ac_try="$ac_link"
1647case "(($ac_try" in
1648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649  *) ac_try_echo=$ac_try;;
1650esac
1651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652printf "%s\n" "$ac_try_echo"; } >&5
1653  (eval "$ac_link") 2>conftest.err
1654  ac_status=$?
1655  if test -s conftest.err; then
1656    grep -v '^ *+' conftest.err >conftest.er1
1657    cat conftest.er1 >&5
1658    mv -f conftest.er1 conftest.err
1659  fi
1660  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661  test $ac_status = 0; } && {
1662	 test -z "$ac_c_werror_flag" ||
1663	 test ! -s conftest.err
1664       } && test -s conftest$ac_exeext && {
1665	 test "$cross_compiling" = yes ||
1666	 test -x conftest$ac_exeext
1667       }
1668then :
1669  ac_retval=0
1670else $as_nop
1671  printf "%s\n" "$as_me: failed program was:" >&5
1672sed 's/^/| /' conftest.$ac_ext >&5
1673
1674	ac_retval=1
1675fi
1676  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1677  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1678  # interfere with the next link command; also delete a directory that is
1679  # left behind by Apple's compiler.  We do this before executing the actions.
1680  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1681  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682  as_fn_set_status $ac_retval
1683
1684} # ac_fn_c_try_link
1685
1686# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1687# -------------------------------------------------------
1688# Tests whether HEADER exists and can be compiled using the include files in
1689# INCLUDES, setting the cache variable VAR accordingly.
1690ac_fn_c_check_header_compile ()
1691{
1692  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1694printf %s "checking for $2... " >&6; }
1695if eval test \${$3+y}
1696then :
1697  printf %s "(cached) " >&6
1698else $as_nop
1699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700/* end confdefs.h.  */
1701$4
1702#include <$2>
1703_ACEOF
1704if ac_fn_c_try_compile "$LINENO"
1705then :
1706  eval "$3=yes"
1707else $as_nop
1708  eval "$3=no"
1709fi
1710rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1711fi
1712eval ac_res=\$$3
1713	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714printf "%s\n" "$ac_res" >&6; }
1715  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716
1717} # ac_fn_c_check_header_compile
1718
1719# ac_fn_c_check_func LINENO FUNC VAR
1720# ----------------------------------
1721# Tests whether FUNC exists, setting the cache variable VAR accordingly
1722ac_fn_c_check_func ()
1723{
1724  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726printf %s "checking for $2... " >&6; }
1727if eval test \${$3+y}
1728then :
1729  printf %s "(cached) " >&6
1730else $as_nop
1731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732/* end confdefs.h.  */
1733/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1734   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1735#define $2 innocuous_$2
1736
1737/* System header to define __stub macros and hopefully few prototypes,
1738   which can conflict with char $2 (); below.  */
1739
1740#include <limits.h>
1741#undef $2
1742
1743/* Override any GCC internal prototype to avoid an error.
1744   Use char because int might match the return type of a GCC
1745   builtin and then its argument prototype would still apply.  */
1746#ifdef __cplusplus
1747extern "C"
1748#endif
1749char $2 ();
1750/* The GNU C library defines this for functions which it implements
1751    to always fail with ENOSYS.  Some functions are actually named
1752    something starting with __ and the normal name is an alias.  */
1753#if defined __stub_$2 || defined __stub___$2
1754choke me
1755#endif
1756
1757int
1758main (void)
1759{
1760return $2 ();
1761  ;
1762  return 0;
1763}
1764_ACEOF
1765if ac_fn_c_try_link "$LINENO"
1766then :
1767  eval "$3=yes"
1768else $as_nop
1769  eval "$3=no"
1770fi
1771rm -f core conftest.err conftest.$ac_objext conftest.beam \
1772    conftest$ac_exeext conftest.$ac_ext
1773fi
1774eval ac_res=\$$3
1775	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776printf "%s\n" "$ac_res" >&6; }
1777  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778
1779} # ac_fn_c_check_func
1780
1781# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1782# ------------------------------------------------------------------
1783# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1784# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1785ac_fn_check_decl ()
1786{
1787  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788  as_decl_name=`echo $2|sed 's/ *(.*//'`
1789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1790printf %s "checking whether $as_decl_name is declared... " >&6; }
1791if eval test \${$3+y}
1792then :
1793  printf %s "(cached) " >&6
1794else $as_nop
1795  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1796  eval ac_save_FLAGS=\$$6
1797  as_fn_append $6 " $5"
1798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799/* end confdefs.h.  */
1800$4
1801int
1802main (void)
1803{
1804#ifndef $as_decl_name
1805#ifdef __cplusplus
1806  (void) $as_decl_use;
1807#else
1808  (void) $as_decl_name;
1809#endif
1810#endif
1811
1812  ;
1813  return 0;
1814}
1815_ACEOF
1816if ac_fn_c_try_compile "$LINENO"
1817then :
1818  eval "$3=yes"
1819else $as_nop
1820  eval "$3=no"
1821fi
1822rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1823  eval $6=\$ac_save_FLAGS
1824
1825fi
1826eval ac_res=\$$3
1827	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828printf "%s\n" "$ac_res" >&6; }
1829  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830
1831} # ac_fn_check_decl
1832
1833# ac_fn_c_try_run LINENO
1834# ----------------------
1835# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1836# executables *can* be run.
1837ac_fn_c_try_run ()
1838{
1839  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840  if { { ac_try="$ac_link"
1841case "(($ac_try" in
1842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843  *) ac_try_echo=$ac_try;;
1844esac
1845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846printf "%s\n" "$ac_try_echo"; } >&5
1847  (eval "$ac_link") 2>&5
1848  ac_status=$?
1849  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1851  { { case "(($ac_try" in
1852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853  *) ac_try_echo=$ac_try;;
1854esac
1855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856printf "%s\n" "$ac_try_echo"; } >&5
1857  (eval "$ac_try") 2>&5
1858  ac_status=$?
1859  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860  test $ac_status = 0; }; }
1861then :
1862  ac_retval=0
1863else $as_nop
1864  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1865       printf "%s\n" "$as_me: failed program was:" >&5
1866sed 's/^/| /' conftest.$ac_ext >&5
1867
1868       ac_retval=$ac_status
1869fi
1870  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1871  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872  as_fn_set_status $ac_retval
1873
1874} # ac_fn_c_try_run
1875ac_configure_args_raw=
1876for ac_arg
1877do
1878  case $ac_arg in
1879  *\'*)
1880    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1881  esac
1882  as_fn_append ac_configure_args_raw " '$ac_arg'"
1883done
1884
1885case $ac_configure_args_raw in
1886  *$as_nl*)
1887    ac_safe_unquote= ;;
1888  *)
1889    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1890    ac_unsafe_a="$ac_unsafe_z#~"
1891    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1892    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1893esac
1894
1895cat >config.log <<_ACEOF
1896This file contains any messages produced by compilers while
1897running configure, to aid debugging if configure makes a mistake.
1898
1899It was created by libXres $as_me 1.2.2, which was
1900generated by GNU Autoconf 2.71.  Invocation command line was
1901
1902  $ $0$ac_configure_args_raw
1903
1904_ACEOF
1905exec 5>>config.log
1906{
1907cat <<_ASUNAME
1908## --------- ##
1909## Platform. ##
1910## --------- ##
1911
1912hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1913uname -m = `(uname -m) 2>/dev/null || echo unknown`
1914uname -r = `(uname -r) 2>/dev/null || echo unknown`
1915uname -s = `(uname -s) 2>/dev/null || echo unknown`
1916uname -v = `(uname -v) 2>/dev/null || echo unknown`
1917
1918/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1919/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1920
1921/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1922/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1923/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1924/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1925/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1926/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1927/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1928
1929_ASUNAME
1930
1931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932for as_dir in $PATH
1933do
1934  IFS=$as_save_IFS
1935  case $as_dir in #(((
1936    '') as_dir=./ ;;
1937    */) ;;
1938    *) as_dir=$as_dir/ ;;
1939  esac
1940    printf "%s\n" "PATH: $as_dir"
1941  done
1942IFS=$as_save_IFS
1943
1944} >&5
1945
1946cat >&5 <<_ACEOF
1947
1948
1949## ----------- ##
1950## Core tests. ##
1951## ----------- ##
1952
1953_ACEOF
1954
1955
1956# Keep a trace of the command line.
1957# Strip out --no-create and --no-recursion so they do not pile up.
1958# Strip out --silent because we don't want to record it for future runs.
1959# Also quote any args containing shell meta-characters.
1960# Make two passes to allow for proper duplicate-argument suppression.
1961ac_configure_args=
1962ac_configure_args0=
1963ac_configure_args1=
1964ac_must_keep_next=false
1965for ac_pass in 1 2
1966do
1967  for ac_arg
1968  do
1969    case $ac_arg in
1970    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1971    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1972    | -silent | --silent | --silen | --sile | --sil)
1973      continue ;;
1974    *\'*)
1975      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1976    esac
1977    case $ac_pass in
1978    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1979    2)
1980      as_fn_append ac_configure_args1 " '$ac_arg'"
1981      if test $ac_must_keep_next = true; then
1982	ac_must_keep_next=false # Got value, back to normal.
1983      else
1984	case $ac_arg in
1985	  *=* | --config-cache | -C | -disable-* | --disable-* \
1986	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1987	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1988	  | -with-* | --with-* | -without-* | --without-* | --x)
1989	    case "$ac_configure_args0 " in
1990	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1991	    esac
1992	    ;;
1993	  -* ) ac_must_keep_next=true ;;
1994	esac
1995      fi
1996      as_fn_append ac_configure_args " '$ac_arg'"
1997      ;;
1998    esac
1999  done
2000done
2001{ ac_configure_args0=; unset ac_configure_args0;}
2002{ ac_configure_args1=; unset ac_configure_args1;}
2003
2004# When interrupted or exit'd, cleanup temporary files, and complete
2005# config.log.  We remove comments because anyway the quotes in there
2006# would cause problems or look ugly.
2007# WARNING: Use '\'' to represent an apostrophe within the trap.
2008# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2009trap 'exit_status=$?
2010  # Sanitize IFS.
2011  IFS=" ""	$as_nl"
2012  # Save into config.log some information that might help in debugging.
2013  {
2014    echo
2015
2016    printf "%s\n" "## ---------------- ##
2017## Cache variables. ##
2018## ---------------- ##"
2019    echo
2020    # The following way of writing the cache mishandles newlines in values,
2021(
2022  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2023    eval ac_val=\$$ac_var
2024    case $ac_val in #(
2025    *${as_nl}*)
2026      case $ac_var in #(
2027      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2028printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2029      esac
2030      case $ac_var in #(
2031      _ | IFS | as_nl) ;; #(
2032      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2033      *) { eval $ac_var=; unset $ac_var;} ;;
2034      esac ;;
2035    esac
2036  done
2037  (set) 2>&1 |
2038    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2039    *${as_nl}ac_space=\ *)
2040      sed -n \
2041	"s/'\''/'\''\\\\'\'''\''/g;
2042	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2043      ;; #(
2044    *)
2045      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2046      ;;
2047    esac |
2048    sort
2049)
2050    echo
2051
2052    printf "%s\n" "## ----------------- ##
2053## Output variables. ##
2054## ----------------- ##"
2055    echo
2056    for ac_var in $ac_subst_vars
2057    do
2058      eval ac_val=\$$ac_var
2059      case $ac_val in
2060      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2061      esac
2062      printf "%s\n" "$ac_var='\''$ac_val'\''"
2063    done | sort
2064    echo
2065
2066    if test -n "$ac_subst_files"; then
2067      printf "%s\n" "## ------------------- ##
2068## File substitutions. ##
2069## ------------------- ##"
2070      echo
2071      for ac_var in $ac_subst_files
2072      do
2073	eval ac_val=\$$ac_var
2074	case $ac_val in
2075	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2076	esac
2077	printf "%s\n" "$ac_var='\''$ac_val'\''"
2078      done | sort
2079      echo
2080    fi
2081
2082    if test -s confdefs.h; then
2083      printf "%s\n" "## ----------- ##
2084## confdefs.h. ##
2085## ----------- ##"
2086      echo
2087      cat confdefs.h
2088      echo
2089    fi
2090    test "$ac_signal" != 0 &&
2091      printf "%s\n" "$as_me: caught signal $ac_signal"
2092    printf "%s\n" "$as_me: exit $exit_status"
2093  } >&5
2094  rm -f core *.core core.conftest.* &&
2095    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2096    exit $exit_status
2097' 0
2098for ac_signal in 1 2 13 15; do
2099  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2100done
2101ac_signal=0
2102
2103# confdefs.h avoids OS command line length limits that DEFS can exceed.
2104rm -f -r conftest* confdefs.h
2105
2106printf "%s\n" "/* confdefs.h */" > confdefs.h
2107
2108# Predefined preprocessor variables.
2109
2110printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2111
2112printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2113
2114printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2115
2116printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2117
2118printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2119
2120printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2121
2122
2123# Let the site file select an alternate cache file if it wants to.
2124# Prefer an explicitly selected file to automatically selected ones.
2125if test -n "$CONFIG_SITE"; then
2126  ac_site_files="$CONFIG_SITE"
2127elif test "x$prefix" != xNONE; then
2128  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2129else
2130  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2131fi
2132
2133for ac_site_file in $ac_site_files
2134do
2135  case $ac_site_file in #(
2136  */*) :
2137     ;; #(
2138  *) :
2139    ac_site_file=./$ac_site_file ;;
2140esac
2141  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2142    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2143printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2144    sed 's/^/| /' "$ac_site_file" >&5
2145    . "$ac_site_file" \
2146      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2147printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2148as_fn_error $? "failed to load site script $ac_site_file
2149See \`config.log' for more details" "$LINENO" 5; }
2150  fi
2151done
2152
2153if test -r "$cache_file"; then
2154  # Some versions of bash will fail to source /dev/null (special files
2155  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2156  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2157    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2158printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2159    case $cache_file in
2160      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2161      *)                      . "./$cache_file";;
2162    esac
2163  fi
2164else
2165  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2166printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2167  >$cache_file
2168fi
2169
2170# Test code for whether the C compiler supports C89 (global declarations)
2171ac_c_conftest_c89_globals='
2172/* Does the compiler advertise C89 conformance?
2173   Do not test the value of __STDC__, because some compilers set it to 0
2174   while being otherwise adequately conformant. */
2175#if !defined __STDC__
2176# error "Compiler does not advertise C89 conformance"
2177#endif
2178
2179#include <stddef.h>
2180#include <stdarg.h>
2181struct stat;
2182/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2183struct buf { int x; };
2184struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2185static char *e (p, i)
2186     char **p;
2187     int i;
2188{
2189  return p[i];
2190}
2191static char *f (char * (*g) (char **, int), char **p, ...)
2192{
2193  char *s;
2194  va_list v;
2195  va_start (v,p);
2196  s = g (p, va_arg (v,int));
2197  va_end (v);
2198  return s;
2199}
2200
2201/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2202   function prototypes and stuff, but not \xHH hex character constants.
2203   These do not provoke an error unfortunately, instead are silently treated
2204   as an "x".  The following induces an error, until -std is added to get
2205   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2206   array size at least.  It is necessary to write \x00 == 0 to get something
2207   that is true only with -std.  */
2208int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2209
2210/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2211   inside strings and character constants.  */
2212#define FOO(x) '\''x'\''
2213int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2214
2215int test (int i, double x);
2216struct s1 {int (*f) (int a);};
2217struct s2 {int (*f) (double a);};
2218int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2219               int, int);'
2220
2221# Test code for whether the C compiler supports C89 (body of main).
2222ac_c_conftest_c89_main='
2223ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2224'
2225
2226# Test code for whether the C compiler supports C99 (global declarations)
2227ac_c_conftest_c99_globals='
2228// Does the compiler advertise C99 conformance?
2229#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2230# error "Compiler does not advertise C99 conformance"
2231#endif
2232
2233#include <stdbool.h>
2234extern int puts (const char *);
2235extern int printf (const char *, ...);
2236extern int dprintf (int, const char *, ...);
2237extern void *malloc (size_t);
2238
2239// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2240// dprintf is used instead of fprintf to avoid needing to declare
2241// FILE and stderr.
2242#define debug(...) dprintf (2, __VA_ARGS__)
2243#define showlist(...) puts (#__VA_ARGS__)
2244#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2245static void
2246test_varargs_macros (void)
2247{
2248  int x = 1234;
2249  int y = 5678;
2250  debug ("Flag");
2251  debug ("X = %d\n", x);
2252  showlist (The first, second, and third items.);
2253  report (x>y, "x is %d but y is %d", x, y);
2254}
2255
2256// Check long long types.
2257#define BIG64 18446744073709551615ull
2258#define BIG32 4294967295ul
2259#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2260#if !BIG_OK
2261  #error "your preprocessor is broken"
2262#endif
2263#if BIG_OK
2264#else
2265  #error "your preprocessor is broken"
2266#endif
2267static long long int bignum = -9223372036854775807LL;
2268static unsigned long long int ubignum = BIG64;
2269
2270struct incomplete_array
2271{
2272  int datasize;
2273  double data[];
2274};
2275
2276struct named_init {
2277  int number;
2278  const wchar_t *name;
2279  double average;
2280};
2281
2282typedef const char *ccp;
2283
2284static inline int
2285test_restrict (ccp restrict text)
2286{
2287  // See if C++-style comments work.
2288  // Iterate through items via the restricted pointer.
2289  // Also check for declarations in for loops.
2290  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2291    continue;
2292  return 0;
2293}
2294
2295// Check varargs and va_copy.
2296static bool
2297test_varargs (const char *format, ...)
2298{
2299  va_list args;
2300  va_start (args, format);
2301  va_list args_copy;
2302  va_copy (args_copy, args);
2303
2304  const char *str = "";
2305  int number = 0;
2306  float fnumber = 0;
2307
2308  while (*format)
2309    {
2310      switch (*format++)
2311	{
2312	case '\''s'\'': // string
2313	  str = va_arg (args_copy, const char *);
2314	  break;
2315	case '\''d'\'': // int
2316	  number = va_arg (args_copy, int);
2317	  break;
2318	case '\''f'\'': // float
2319	  fnumber = va_arg (args_copy, double);
2320	  break;
2321	default:
2322	  break;
2323	}
2324    }
2325  va_end (args_copy);
2326  va_end (args);
2327
2328  return *str && number && fnumber;
2329}
2330'
2331
2332# Test code for whether the C compiler supports C99 (body of main).
2333ac_c_conftest_c99_main='
2334  // Check bool.
2335  _Bool success = false;
2336  success |= (argc != 0);
2337
2338  // Check restrict.
2339  if (test_restrict ("String literal") == 0)
2340    success = true;
2341  char *restrict newvar = "Another string";
2342
2343  // Check varargs.
2344  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2345  test_varargs_macros ();
2346
2347  // Check flexible array members.
2348  struct incomplete_array *ia =
2349    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2350  ia->datasize = 10;
2351  for (int i = 0; i < ia->datasize; ++i)
2352    ia->data[i] = i * 1.234;
2353
2354  // Check named initializers.
2355  struct named_init ni = {
2356    .number = 34,
2357    .name = L"Test wide string",
2358    .average = 543.34343,
2359  };
2360
2361  ni.number = 58;
2362
2363  int dynamic_array[ni.number];
2364  dynamic_array[0] = argv[0][0];
2365  dynamic_array[ni.number - 1] = 543;
2366
2367  // work around unused variable warnings
2368  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2369	 || dynamic_array[ni.number - 1] != 543);
2370'
2371
2372# Test code for whether the C compiler supports C11 (global declarations)
2373ac_c_conftest_c11_globals='
2374// Does the compiler advertise C11 conformance?
2375#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2376# error "Compiler does not advertise C11 conformance"
2377#endif
2378
2379// Check _Alignas.
2380char _Alignas (double) aligned_as_double;
2381char _Alignas (0) no_special_alignment;
2382extern char aligned_as_int;
2383char _Alignas (0) _Alignas (int) aligned_as_int;
2384
2385// Check _Alignof.
2386enum
2387{
2388  int_alignment = _Alignof (int),
2389  int_array_alignment = _Alignof (int[100]),
2390  char_alignment = _Alignof (char)
2391};
2392_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2393
2394// Check _Noreturn.
2395int _Noreturn does_not_return (void) { for (;;) continue; }
2396
2397// Check _Static_assert.
2398struct test_static_assert
2399{
2400  int x;
2401  _Static_assert (sizeof (int) <= sizeof (long int),
2402                  "_Static_assert does not work in struct");
2403  long int y;
2404};
2405
2406// Check UTF-8 literals.
2407#define u8 syntax error!
2408char const utf8_literal[] = u8"happens to be ASCII" "another string";
2409
2410// Check duplicate typedefs.
2411typedef long *long_ptr;
2412typedef long int *long_ptr;
2413typedef long_ptr long_ptr;
2414
2415// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2416struct anonymous
2417{
2418  union {
2419    struct { int i; int j; };
2420    struct { int k; long int l; } w;
2421  };
2422  int m;
2423} v1;
2424'
2425
2426# Test code for whether the C compiler supports C11 (body of main).
2427ac_c_conftest_c11_main='
2428  _Static_assert ((offsetof (struct anonymous, i)
2429		   == offsetof (struct anonymous, w.k)),
2430		  "Anonymous union alignment botch");
2431  v1.i = 2;
2432  v1.w.k = 5;
2433  ok |= v1.i != 5;
2434'
2435
2436# Test code for whether the C compiler supports C11 (complete).
2437ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2438${ac_c_conftest_c99_globals}
2439${ac_c_conftest_c11_globals}
2440
2441int
2442main (int argc, char **argv)
2443{
2444  int ok = 0;
2445  ${ac_c_conftest_c89_main}
2446  ${ac_c_conftest_c99_main}
2447  ${ac_c_conftest_c11_main}
2448  return ok;
2449}
2450"
2451
2452# Test code for whether the C compiler supports C99 (complete).
2453ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2454${ac_c_conftest_c99_globals}
2455
2456int
2457main (int argc, char **argv)
2458{
2459  int ok = 0;
2460  ${ac_c_conftest_c89_main}
2461  ${ac_c_conftest_c99_main}
2462  return ok;
2463}
2464"
2465
2466# Test code for whether the C compiler supports C89 (complete).
2467ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2468
2469int
2470main (int argc, char **argv)
2471{
2472  int ok = 0;
2473  ${ac_c_conftest_c89_main}
2474  return ok;
2475}
2476"
2477
2478as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2479as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2480as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2481as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2482as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2483as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2484as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2485as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2486as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2487
2488# Auxiliary files required by this configure script.
2489ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2490
2491# Locations in which to look for auxiliary files.
2492ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2493
2494# Search for a directory containing all of the required auxiliary files,
2495# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2496# If we don't find one directory that contains all the files we need,
2497# we report the set of missing files from the *first* directory in
2498# $ac_aux_dir_candidates and give up.
2499ac_missing_aux_files=""
2500ac_first_candidate=:
2501printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503as_found=false
2504for as_dir in $ac_aux_dir_candidates
2505do
2506  IFS=$as_save_IFS
2507  case $as_dir in #(((
2508    '') as_dir=./ ;;
2509    */) ;;
2510    *) as_dir=$as_dir/ ;;
2511  esac
2512  as_found=:
2513
2514  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2515  ac_aux_dir_found=yes
2516  ac_install_sh=
2517  for ac_aux in $ac_aux_files
2518  do
2519    # As a special case, if "install-sh" is required, that requirement
2520    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2521    # and $ac_install_sh is set appropriately for whichever one is found.
2522    if test x"$ac_aux" = x"install-sh"
2523    then
2524      if test -f "${as_dir}install-sh"; then
2525        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2526        ac_install_sh="${as_dir}install-sh -c"
2527      elif test -f "${as_dir}install.sh"; then
2528        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2529        ac_install_sh="${as_dir}install.sh -c"
2530      elif test -f "${as_dir}shtool"; then
2531        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2532        ac_install_sh="${as_dir}shtool install -c"
2533      else
2534        ac_aux_dir_found=no
2535        if $ac_first_candidate; then
2536          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2537        else
2538          break
2539        fi
2540      fi
2541    else
2542      if test -f "${as_dir}${ac_aux}"; then
2543        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2544      else
2545        ac_aux_dir_found=no
2546        if $ac_first_candidate; then
2547          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2548        else
2549          break
2550        fi
2551      fi
2552    fi
2553  done
2554  if test "$ac_aux_dir_found" = yes; then
2555    ac_aux_dir="$as_dir"
2556    break
2557  fi
2558  ac_first_candidate=false
2559
2560  as_found=false
2561done
2562IFS=$as_save_IFS
2563if $as_found
2564then :
2565
2566else $as_nop
2567  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2568fi
2569
2570
2571# These three variables are undocumented and unsupported,
2572# and are intended to be withdrawn in a future Autoconf release.
2573# They can cause serious problems if a builder's source tree is in a directory
2574# whose full name contains unusual characters.
2575if test -f "${ac_aux_dir}config.guess"; then
2576  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2577fi
2578if test -f "${ac_aux_dir}config.sub"; then
2579  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2580fi
2581if test -f "$ac_aux_dir/configure"; then
2582  ac_configure="$SHELL ${ac_aux_dir}configure"
2583fi
2584
2585# Check that the precious variables saved in the cache have kept the same
2586# value.
2587ac_cache_corrupted=false
2588for ac_var in $ac_precious_vars; do
2589  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2590  eval ac_new_set=\$ac_env_${ac_var}_set
2591  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2592  eval ac_new_val=\$ac_env_${ac_var}_value
2593  case $ac_old_set,$ac_new_set in
2594    set,)
2595      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2596printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2597      ac_cache_corrupted=: ;;
2598    ,set)
2599      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2600printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2601      ac_cache_corrupted=: ;;
2602    ,);;
2603    *)
2604      if test "x$ac_old_val" != "x$ac_new_val"; then
2605	# differences in whitespace do not lead to failure.
2606	ac_old_val_w=`echo x $ac_old_val`
2607	ac_new_val_w=`echo x $ac_new_val`
2608	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2609	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2610printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2611	  ac_cache_corrupted=:
2612	else
2613	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2614printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2615	  eval $ac_var=\$ac_old_val
2616	fi
2617	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2618printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2619	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2620printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2621      fi;;
2622  esac
2623  # Pass precious variables to config.status.
2624  if test "$ac_new_set" = set; then
2625    case $ac_new_val in
2626    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2627    *) ac_arg=$ac_var=$ac_new_val ;;
2628    esac
2629    case " $ac_configure_args " in
2630      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2631      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2632    esac
2633  fi
2634done
2635if $ac_cache_corrupted; then
2636  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2637printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2638  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2639printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2640  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2641	    and start over" "$LINENO" 5
2642fi
2643## -------------------- ##
2644## Main body of script. ##
2645## -------------------- ##
2646
2647ac_ext=c
2648ac_cpp='$CPP $CPPFLAGS'
2649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2651ac_compiler_gnu=$ac_cv_c_compiler_gnu
2652
2653
2654
2655ac_config_headers="$ac_config_headers config.h"
2656
2657
2658# Initialize Automake
2659am__api_version='1.16'
2660
2661
2662
2663  # Find a good install program.  We prefer a C program (faster),
2664# so one script is as good as another.  But avoid the broken or
2665# incompatible versions:
2666# SysV /etc/install, /usr/sbin/install
2667# SunOS /usr/etc/install
2668# IRIX /sbin/install
2669# AIX /bin/install
2670# AmigaOS /C/install, which installs bootblocks on floppy discs
2671# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2672# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2673# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2674# OS/2's system install, which has a completely different semantic
2675# ./install, which can be erroneously created by make from ./install.sh.
2676# Reject install programs that cannot install multiple files.
2677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2678printf %s "checking for a BSD-compatible install... " >&6; }
2679if test -z "$INSTALL"; then
2680if test ${ac_cv_path_install+y}
2681then :
2682  printf %s "(cached) " >&6
2683else $as_nop
2684  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685for as_dir in $PATH
2686do
2687  IFS=$as_save_IFS
2688  case $as_dir in #(((
2689    '') as_dir=./ ;;
2690    */) ;;
2691    *) as_dir=$as_dir/ ;;
2692  esac
2693    # Account for fact that we put trailing slashes in our PATH walk.
2694case $as_dir in #((
2695  ./ | /[cC]/* | \
2696  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2697  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2698  /usr/ucb/* ) ;;
2699  *)
2700    # OSF1 and SCO ODT 3.0 have their own names for install.
2701    # Don't use installbsd from OSF since it installs stuff as root
2702    # by default.
2703    for ac_prog in ginstall scoinst install; do
2704      for ac_exec_ext in '' $ac_executable_extensions; do
2705	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2706	  if test $ac_prog = install &&
2707	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2708	    # AIX install.  It has an incompatible calling convention.
2709	    :
2710	  elif test $ac_prog = install &&
2711	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2712	    # program-specific install script used by HP pwplus--don't use.
2713	    :
2714	  else
2715	    rm -rf conftest.one conftest.two conftest.dir
2716	    echo one > conftest.one
2717	    echo two > conftest.two
2718	    mkdir conftest.dir
2719	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2720	      test -s conftest.one && test -s conftest.two &&
2721	      test -s conftest.dir/conftest.one &&
2722	      test -s conftest.dir/conftest.two
2723	    then
2724	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2725	      break 3
2726	    fi
2727	  fi
2728	fi
2729      done
2730    done
2731    ;;
2732esac
2733
2734  done
2735IFS=$as_save_IFS
2736
2737rm -rf conftest.one conftest.two conftest.dir
2738
2739fi
2740  if test ${ac_cv_path_install+y}; then
2741    INSTALL=$ac_cv_path_install
2742  else
2743    # As a last resort, use the slow shell script.  Don't cache a
2744    # value for INSTALL within a source directory, because that will
2745    # break other packages using the cache if that directory is
2746    # removed, or if the value is a relative name.
2747    INSTALL=$ac_install_sh
2748  fi
2749fi
2750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2751printf "%s\n" "$INSTALL" >&6; }
2752
2753# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2754# It thinks the first close brace ends the variable substitution.
2755test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2756
2757test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2758
2759test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2760
2761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2762printf %s "checking whether build environment is sane... " >&6; }
2763# Reject unsafe characters in $srcdir or the absolute working directory
2764# name.  Accept space and tab only in the latter.
2765am_lf='
2766'
2767case `pwd` in
2768  *[\\\"\#\$\&\'\`$am_lf]*)
2769    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2770esac
2771case $srcdir in
2772  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2773    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2774esac
2775
2776# Do 'set' in a subshell so we don't clobber the current shell's
2777# arguments.  Must try -L first in case configure is actually a
2778# symlink; some systems play weird games with the mod time of symlinks
2779# (eg FreeBSD returns the mod time of the symlink's containing
2780# directory).
2781if (
2782   am_has_slept=no
2783   for am_try in 1 2; do
2784     echo "timestamp, slept: $am_has_slept" > conftest.file
2785     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2786     if test "$*" = "X"; then
2787	# -L didn't work.
2788	set X `ls -t "$srcdir/configure" conftest.file`
2789     fi
2790     if test "$*" != "X $srcdir/configure conftest.file" \
2791	&& test "$*" != "X conftest.file $srcdir/configure"; then
2792
2793	# If neither matched, then we have a broken ls.  This can happen
2794	# if, for instance, CONFIG_SHELL is bash and it inherits a
2795	# broken ls alias from the environment.  This has actually
2796	# happened.  Such a system could not be considered "sane".
2797	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2798  alias in your environment" "$LINENO" 5
2799     fi
2800     if test "$2" = conftest.file || test $am_try -eq 2; then
2801       break
2802     fi
2803     # Just in case.
2804     sleep 1
2805     am_has_slept=yes
2806   done
2807   test "$2" = conftest.file
2808   )
2809then
2810   # Ok.
2811   :
2812else
2813   as_fn_error $? "newly created file is older than distributed files!
2814Check your system clock" "$LINENO" 5
2815fi
2816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2817printf "%s\n" "yes" >&6; }
2818# If we didn't sleep, we still need to ensure time stamps of config.status and
2819# generated files are strictly newer.
2820am_sleep_pid=
2821if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2822  ( sleep 1 ) &
2823  am_sleep_pid=$!
2824fi
2825
2826rm -f conftest.file
2827
2828test "$program_prefix" != NONE &&
2829  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2830# Use a double $ so make ignores it.
2831test "$program_suffix" != NONE &&
2832  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2833# Double any \ or $.
2834# By default was `s,x,x', remove it if useless.
2835ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2836program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2837
2838
2839# Expand $ac_aux_dir to an absolute path.
2840am_aux_dir=`cd "$ac_aux_dir" && pwd`
2841
2842
2843  if test x"${MISSING+set}" != xset; then
2844  MISSING="\${SHELL} '$am_aux_dir/missing'"
2845fi
2846# Use eval to expand $SHELL
2847if eval "$MISSING --is-lightweight"; then
2848  am_missing_run="$MISSING "
2849else
2850  am_missing_run=
2851  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2852printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2853fi
2854
2855if test x"${install_sh+set}" != xset; then
2856  case $am_aux_dir in
2857  *\ * | *\	*)
2858    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2859  *)
2860    install_sh="\${SHELL} $am_aux_dir/install-sh"
2861  esac
2862fi
2863
2864# Installed binaries are usually stripped using 'strip' when the user
2865# run "make install-strip".  However 'strip' might not be the right
2866# tool to use in cross-compilation environments, therefore Automake
2867# will honor the 'STRIP' environment variable to overrule this program.
2868if test "$cross_compiling" != no; then
2869  if test -n "$ac_tool_prefix"; then
2870  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2871set dummy ${ac_tool_prefix}strip; ac_word=$2
2872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873printf %s "checking for $ac_word... " >&6; }
2874if test ${ac_cv_prog_STRIP+y}
2875then :
2876  printf %s "(cached) " >&6
2877else $as_nop
2878  if test -n "$STRIP"; then
2879  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2880else
2881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882for as_dir in $PATH
2883do
2884  IFS=$as_save_IFS
2885  case $as_dir in #(((
2886    '') as_dir=./ ;;
2887    */) ;;
2888    *) as_dir=$as_dir/ ;;
2889  esac
2890    for ac_exec_ext in '' $ac_executable_extensions; do
2891  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2892    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2893    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2894    break 2
2895  fi
2896done
2897  done
2898IFS=$as_save_IFS
2899
2900fi
2901fi
2902STRIP=$ac_cv_prog_STRIP
2903if test -n "$STRIP"; then
2904  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2905printf "%s\n" "$STRIP" >&6; }
2906else
2907  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908printf "%s\n" "no" >&6; }
2909fi
2910
2911
2912fi
2913if test -z "$ac_cv_prog_STRIP"; then
2914  ac_ct_STRIP=$STRIP
2915  # Extract the first word of "strip", so it can be a program name with args.
2916set dummy strip; ac_word=$2
2917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918printf %s "checking for $ac_word... " >&6; }
2919if test ${ac_cv_prog_ac_ct_STRIP+y}
2920then :
2921  printf %s "(cached) " >&6
2922else $as_nop
2923  if test -n "$ac_ct_STRIP"; then
2924  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2925else
2926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927for as_dir in $PATH
2928do
2929  IFS=$as_save_IFS
2930  case $as_dir in #(((
2931    '') as_dir=./ ;;
2932    */) ;;
2933    *) as_dir=$as_dir/ ;;
2934  esac
2935    for ac_exec_ext in '' $ac_executable_extensions; do
2936  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2937    ac_cv_prog_ac_ct_STRIP="strip"
2938    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2939    break 2
2940  fi
2941done
2942  done
2943IFS=$as_save_IFS
2944
2945fi
2946fi
2947ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2948if test -n "$ac_ct_STRIP"; then
2949  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2950printf "%s\n" "$ac_ct_STRIP" >&6; }
2951else
2952  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953printf "%s\n" "no" >&6; }
2954fi
2955
2956  if test "x$ac_ct_STRIP" = x; then
2957    STRIP=":"
2958  else
2959    case $cross_compiling:$ac_tool_warned in
2960yes:)
2961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2962printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2963ac_tool_warned=yes ;;
2964esac
2965    STRIP=$ac_ct_STRIP
2966  fi
2967else
2968  STRIP="$ac_cv_prog_STRIP"
2969fi
2970
2971fi
2972INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2973
2974
2975  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2976printf %s "checking for a race-free mkdir -p... " >&6; }
2977if test -z "$MKDIR_P"; then
2978  if test ${ac_cv_path_mkdir+y}
2979then :
2980  printf %s "(cached) " >&6
2981else $as_nop
2982  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2984do
2985  IFS=$as_save_IFS
2986  case $as_dir in #(((
2987    '') as_dir=./ ;;
2988    */) ;;
2989    *) as_dir=$as_dir/ ;;
2990  esac
2991    for ac_prog in mkdir gmkdir; do
2992	 for ac_exec_ext in '' $ac_executable_extensions; do
2993	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2994	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2995	     'mkdir ('*'coreutils) '* | \
2996	     'BusyBox '* | \
2997	     'mkdir (fileutils) '4.1*)
2998	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2999	       break 3;;
3000	   esac
3001	 done
3002       done
3003  done
3004IFS=$as_save_IFS
3005
3006fi
3007
3008  test -d ./--version && rmdir ./--version
3009  if test ${ac_cv_path_mkdir+y}; then
3010    MKDIR_P="$ac_cv_path_mkdir -p"
3011  else
3012    # As a last resort, use the slow shell script.  Don't cache a
3013    # value for MKDIR_P within a source directory, because that will
3014    # break other packages using the cache if that directory is
3015    # removed, or if the value is a relative name.
3016    MKDIR_P="$ac_install_sh -d"
3017  fi
3018fi
3019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3020printf "%s\n" "$MKDIR_P" >&6; }
3021
3022for ac_prog in gawk mawk nawk awk
3023do
3024  # Extract the first word of "$ac_prog", so it can be a program name with args.
3025set dummy $ac_prog; ac_word=$2
3026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3027printf %s "checking for $ac_word... " >&6; }
3028if test ${ac_cv_prog_AWK+y}
3029then :
3030  printf %s "(cached) " >&6
3031else $as_nop
3032  if test -n "$AWK"; then
3033  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3034else
3035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036for as_dir in $PATH
3037do
3038  IFS=$as_save_IFS
3039  case $as_dir in #(((
3040    '') as_dir=./ ;;
3041    */) ;;
3042    *) as_dir=$as_dir/ ;;
3043  esac
3044    for ac_exec_ext in '' $ac_executable_extensions; do
3045  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3046    ac_cv_prog_AWK="$ac_prog"
3047    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3048    break 2
3049  fi
3050done
3051  done
3052IFS=$as_save_IFS
3053
3054fi
3055fi
3056AWK=$ac_cv_prog_AWK
3057if test -n "$AWK"; then
3058  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3059printf "%s\n" "$AWK" >&6; }
3060else
3061  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062printf "%s\n" "no" >&6; }
3063fi
3064
3065
3066  test -n "$AWK" && break
3067done
3068
3069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3070printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3071set x ${MAKE-make}
3072ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3073if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3074then :
3075  printf %s "(cached) " >&6
3076else $as_nop
3077  cat >conftest.make <<\_ACEOF
3078SHELL = /bin/sh
3079all:
3080	@echo '@@@%%%=$(MAKE)=@@@%%%'
3081_ACEOF
3082# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3083case `${MAKE-make} -f conftest.make 2>/dev/null` in
3084  *@@@%%%=?*=@@@%%%*)
3085    eval ac_cv_prog_make_${ac_make}_set=yes;;
3086  *)
3087    eval ac_cv_prog_make_${ac_make}_set=no;;
3088esac
3089rm -f conftest.make
3090fi
3091if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3092  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3093printf "%s\n" "yes" >&6; }
3094  SET_MAKE=
3095else
3096  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097printf "%s\n" "no" >&6; }
3098  SET_MAKE="MAKE=${MAKE-make}"
3099fi
3100
3101rm -rf .tst 2>/dev/null
3102mkdir .tst 2>/dev/null
3103if test -d .tst; then
3104  am__leading_dot=.
3105else
3106  am__leading_dot=_
3107fi
3108rmdir .tst 2>/dev/null
3109
3110# Check whether --enable-silent-rules was given.
3111if test ${enable_silent_rules+y}
3112then :
3113  enableval=$enable_silent_rules;
3114fi
3115
3116case $enable_silent_rules in # (((
3117  yes) AM_DEFAULT_VERBOSITY=0;;
3118   no) AM_DEFAULT_VERBOSITY=1;;
3119    *) AM_DEFAULT_VERBOSITY=1;;
3120esac
3121am_make=${MAKE-make}
3122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3123printf %s "checking whether $am_make supports nested variables... " >&6; }
3124if test ${am_cv_make_support_nested_variables+y}
3125then :
3126  printf %s "(cached) " >&6
3127else $as_nop
3128  if printf "%s\n" 'TRUE=$(BAR$(V))
3129BAR0=false
3130BAR1=true
3131V=1
3132am__doit:
3133	@$(TRUE)
3134.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3135  am_cv_make_support_nested_variables=yes
3136else
3137  am_cv_make_support_nested_variables=no
3138fi
3139fi
3140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3141printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3142if test $am_cv_make_support_nested_variables = yes; then
3143    AM_V='$(V)'
3144  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3145else
3146  AM_V=$AM_DEFAULT_VERBOSITY
3147  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3148fi
3149AM_BACKSLASH='\'
3150
3151if test "`cd $srcdir && pwd`" != "`pwd`"; then
3152  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3153  # is not polluted with repeated "-I."
3154  am__isrc=' -I$(srcdir)'
3155  # test to see if srcdir already configured
3156  if test -f $srcdir/config.status; then
3157    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3158  fi
3159fi
3160
3161# test whether we have cygpath
3162if test -z "$CYGPATH_W"; then
3163  if (cygpath --version) >/dev/null 2>/dev/null; then
3164    CYGPATH_W='cygpath -w'
3165  else
3166    CYGPATH_W=echo
3167  fi
3168fi
3169
3170
3171# Define the identity of the package.
3172 PACKAGE='libXres'
3173 VERSION='1.2.2'
3174
3175
3176printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3177
3178
3179printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3180
3181# Some tools Automake needs.
3182
3183ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3184
3185
3186AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3187
3188
3189AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3190
3191
3192AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3193
3194
3195MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3196
3197# For better backward compatibility.  To be removed once Automake 1.9.x
3198# dies out for good.  For more background, see:
3199# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3200# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3201mkdir_p='$(MKDIR_P)'
3202
3203# We need awk for the "check" target (and possibly the TAP driver).  The
3204# system "awk" is bad on some platforms.
3205# Always define AMTAR for backward compatibility.  Yes, it's still used
3206# in the wild :-(  We should find a proper way to deprecate it ...
3207AMTAR='$${TAR-tar}'
3208
3209
3210# We'll loop over all known methods to create a tar archive until one works.
3211_am_tools='gnutar  pax cpio none'
3212
3213am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3214
3215
3216
3217
3218
3219# Variables for tags utilities; see am/tags.am
3220if test -z "$CTAGS"; then
3221  CTAGS=ctags
3222fi
3223
3224if test -z "$ETAGS"; then
3225  ETAGS=etags
3226fi
3227
3228if test -z "$CSCOPE"; then
3229  CSCOPE=cscope
3230fi
3231
3232
3233
3234# POSIX will say in a future version that running "rm -f" with no argument
3235# is OK; and we want to be able to make that assumption in our Makefile
3236# recipes.  So use an aggressive probe to check that the usage we want is
3237# actually supported "in the wild" to an acceptable degree.
3238# See automake bug#10828.
3239# To make any issue more visible, cause the running configure to be aborted
3240# by default if the 'rm' program in use doesn't match our expectations; the
3241# user can still override this though.
3242if rm -f && rm -fr && rm -rf; then : OK; else
3243  cat >&2 <<'END'
3244Oops!
3245
3246Your 'rm' program seems unable to run without file operands specified
3247on the command line, even when the '-f' option is present.  This is contrary
3248to the behaviour of most rm programs out there, and not conforming with
3249the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3250
3251Please tell bug-automake@gnu.org about your system, including the value
3252of your $PATH and any error possibly output before this message.  This
3253can help us improve future automake versions.
3254
3255END
3256  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3257    echo 'Configuration will proceed anyway, since you have set the' >&2
3258    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3259    echo >&2
3260  else
3261    cat >&2 <<'END'
3262Aborting the configuration process, to ensure you take notice of the issue.
3263
3264You can download and install GNU coreutils to get an 'rm' implementation
3265that behaves properly: <https://www.gnu.org/software/coreutils/>.
3266
3267If you want to complete the configuration process using your problematic
3268'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3269to "yes", and re-run configure.
3270
3271END
3272    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3273  fi
3274fi
3275
3276
3277# Initialize libtool
3278case `pwd` in
3279  *\ * | *\	*)
3280    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3281printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3282esac
3283
3284
3285
3286macro_version='2.4.7'
3287macro_revision='2.4.7'
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302ltmain=$ac_aux_dir/ltmain.sh
3303
3304
3305
3306  # Make sure we can run config.sub.
3307$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3308  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3309
3310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3311printf %s "checking build system type... " >&6; }
3312if test ${ac_cv_build+y}
3313then :
3314  printf %s "(cached) " >&6
3315else $as_nop
3316  ac_build_alias=$build_alias
3317test "x$ac_build_alias" = x &&
3318  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3319test "x$ac_build_alias" = x &&
3320  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3321ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3322  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3323
3324fi
3325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3326printf "%s\n" "$ac_cv_build" >&6; }
3327case $ac_cv_build in
3328*-*-*) ;;
3329*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3330esac
3331build=$ac_cv_build
3332ac_save_IFS=$IFS; IFS='-'
3333set x $ac_cv_build
3334shift
3335build_cpu=$1
3336build_vendor=$2
3337shift; shift
3338# Remember, the first character of IFS is used to create $*,
3339# except with old shells:
3340build_os=$*
3341IFS=$ac_save_IFS
3342case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3343
3344
3345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3346printf %s "checking host system type... " >&6; }
3347if test ${ac_cv_host+y}
3348then :
3349  printf %s "(cached) " >&6
3350else $as_nop
3351  if test "x$host_alias" = x; then
3352  ac_cv_host=$ac_cv_build
3353else
3354  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3355    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3356fi
3357
3358fi
3359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3360printf "%s\n" "$ac_cv_host" >&6; }
3361case $ac_cv_host in
3362*-*-*) ;;
3363*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3364esac
3365host=$ac_cv_host
3366ac_save_IFS=$IFS; IFS='-'
3367set x $ac_cv_host
3368shift
3369host_cpu=$1
3370host_vendor=$2
3371shift; shift
3372# Remember, the first character of IFS is used to create $*,
3373# except with old shells:
3374host_os=$*
3375IFS=$ac_save_IFS
3376case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3377
3378
3379# Backslashify metacharacters that are still active within
3380# double-quoted strings.
3381sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3382
3383# Same as above, but do not quote variable references.
3384double_quote_subst='s/\(["`\\]\)/\\\1/g'
3385
3386# Sed substitution to delay expansion of an escaped shell variable in a
3387# double_quote_subst'ed string.
3388delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3389
3390# Sed substitution to delay expansion of an escaped single quote.
3391delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3392
3393# Sed substitution to avoid accidental globbing in evaled expressions
3394no_glob_subst='s/\*/\\\*/g'
3395
3396ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3397ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3398ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3399
3400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3401printf %s "checking how to print strings... " >&6; }
3402# Test print first, because it will be a builtin if present.
3403if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3404   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3405  ECHO='print -r --'
3406elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3407  ECHO='printf %s\n'
3408else
3409  # Use this function as a fallback that always works.
3410  func_fallback_echo ()
3411  {
3412    eval 'cat <<_LTECHO_EOF
3413$1
3414_LTECHO_EOF'
3415  }
3416  ECHO='func_fallback_echo'
3417fi
3418
3419# func_echo_all arg...
3420# Invoke $ECHO with all args, space-separated.
3421func_echo_all ()
3422{
3423    $ECHO ""
3424}
3425
3426case $ECHO in
3427  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3428printf "%s\n" "printf" >&6; } ;;
3429  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3430printf "%s\n" "print -r" >&6; } ;;
3431  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3432printf "%s\n" "cat" >&6; } ;;
3433esac
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457DEPDIR="${am__leading_dot}deps"
3458
3459ac_config_commands="$ac_config_commands depfiles"
3460
3461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3462printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3463cat > confinc.mk << 'END'
3464am__doit:
3465	@echo this is the am__doit target >confinc.out
3466.PHONY: am__doit
3467END
3468am__include="#"
3469am__quote=
3470# BSD make does it like this.
3471echo '.include "confinc.mk" # ignored' > confmf.BSD
3472# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3473echo 'include confinc.mk # ignored' > confmf.GNU
3474_am_result=no
3475for s in GNU BSD; do
3476  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3477   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3478   ac_status=$?
3479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480   (exit $ac_status); }
3481  case $?:`cat confinc.out 2>/dev/null` in #(
3482  '0:this is the am__doit target') :
3483    case $s in #(
3484  BSD) :
3485    am__include='.include' am__quote='"' ;; #(
3486  *) :
3487    am__include='include' am__quote='' ;;
3488esac ;; #(
3489  *) :
3490     ;;
3491esac
3492  if test "$am__include" != "#"; then
3493    _am_result="yes ($s style)"
3494    break
3495  fi
3496done
3497rm -f confinc.* confmf.*
3498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3499printf "%s\n" "${_am_result}" >&6; }
3500
3501# Check whether --enable-dependency-tracking was given.
3502if test ${enable_dependency_tracking+y}
3503then :
3504  enableval=$enable_dependency_tracking;
3505fi
3506
3507if test "x$enable_dependency_tracking" != xno; then
3508  am_depcomp="$ac_aux_dir/depcomp"
3509  AMDEPBACKSLASH='\'
3510  am__nodep='_no'
3511fi
3512 if test "x$enable_dependency_tracking" != xno; then
3513  AMDEP_TRUE=
3514  AMDEP_FALSE='#'
3515else
3516  AMDEP_TRUE='#'
3517  AMDEP_FALSE=
3518fi
3519
3520
3521ac_ext=c
3522ac_cpp='$CPP $CPPFLAGS'
3523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525ac_compiler_gnu=$ac_cv_c_compiler_gnu
3526if test -n "$ac_tool_prefix"; then
3527  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3528set dummy ${ac_tool_prefix}gcc; ac_word=$2
3529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3530printf %s "checking for $ac_word... " >&6; }
3531if test ${ac_cv_prog_CC+y}
3532then :
3533  printf %s "(cached) " >&6
3534else $as_nop
3535  if test -n "$CC"; then
3536  ac_cv_prog_CC="$CC" # Let the user override the test.
3537else
3538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539for as_dir in $PATH
3540do
3541  IFS=$as_save_IFS
3542  case $as_dir in #(((
3543    '') as_dir=./ ;;
3544    */) ;;
3545    *) as_dir=$as_dir/ ;;
3546  esac
3547    for ac_exec_ext in '' $ac_executable_extensions; do
3548  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3549    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3550    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3551    break 2
3552  fi
3553done
3554  done
3555IFS=$as_save_IFS
3556
3557fi
3558fi
3559CC=$ac_cv_prog_CC
3560if test -n "$CC"; then
3561  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3562printf "%s\n" "$CC" >&6; }
3563else
3564  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3565printf "%s\n" "no" >&6; }
3566fi
3567
3568
3569fi
3570if test -z "$ac_cv_prog_CC"; then
3571  ac_ct_CC=$CC
3572  # Extract the first word of "gcc", so it can be a program name with args.
3573set dummy gcc; ac_word=$2
3574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3575printf %s "checking for $ac_word... " >&6; }
3576if test ${ac_cv_prog_ac_ct_CC+y}
3577then :
3578  printf %s "(cached) " >&6
3579else $as_nop
3580  if test -n "$ac_ct_CC"; then
3581  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3582else
3583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584for as_dir in $PATH
3585do
3586  IFS=$as_save_IFS
3587  case $as_dir in #(((
3588    '') as_dir=./ ;;
3589    */) ;;
3590    *) as_dir=$as_dir/ ;;
3591  esac
3592    for ac_exec_ext in '' $ac_executable_extensions; do
3593  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3594    ac_cv_prog_ac_ct_CC="gcc"
3595    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3596    break 2
3597  fi
3598done
3599  done
3600IFS=$as_save_IFS
3601
3602fi
3603fi
3604ac_ct_CC=$ac_cv_prog_ac_ct_CC
3605if test -n "$ac_ct_CC"; then
3606  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3607printf "%s\n" "$ac_ct_CC" >&6; }
3608else
3609  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3610printf "%s\n" "no" >&6; }
3611fi
3612
3613  if test "x$ac_ct_CC" = x; then
3614    CC=""
3615  else
3616    case $cross_compiling:$ac_tool_warned in
3617yes:)
3618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3619printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3620ac_tool_warned=yes ;;
3621esac
3622    CC=$ac_ct_CC
3623  fi
3624else
3625  CC="$ac_cv_prog_CC"
3626fi
3627
3628if test -z "$CC"; then
3629          if test -n "$ac_tool_prefix"; then
3630    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3631set dummy ${ac_tool_prefix}cc; ac_word=$2
3632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3633printf %s "checking for $ac_word... " >&6; }
3634if test ${ac_cv_prog_CC+y}
3635then :
3636  printf %s "(cached) " >&6
3637else $as_nop
3638  if test -n "$CC"; then
3639  ac_cv_prog_CC="$CC" # Let the user override the test.
3640else
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    ac_cv_prog_CC="${ac_tool_prefix}cc"
3653    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3654    break 2
3655  fi
3656done
3657  done
3658IFS=$as_save_IFS
3659
3660fi
3661fi
3662CC=$ac_cv_prog_CC
3663if test -n "$CC"; then
3664  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3665printf "%s\n" "$CC" >&6; }
3666else
3667  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668printf "%s\n" "no" >&6; }
3669fi
3670
3671
3672  fi
3673fi
3674if test -z "$CC"; then
3675  # Extract the first word of "cc", so it can be a program name with args.
3676set dummy cc; ac_word=$2
3677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678printf %s "checking for $ac_word... " >&6; }
3679if test ${ac_cv_prog_CC+y}
3680then :
3681  printf %s "(cached) " >&6
3682else $as_nop
3683  if test -n "$CC"; then
3684  ac_cv_prog_CC="$CC" # Let the user override the test.
3685else
3686  ac_prog_rejected=no
3687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688for as_dir in $PATH
3689do
3690  IFS=$as_save_IFS
3691  case $as_dir in #(((
3692    '') as_dir=./ ;;
3693    */) ;;
3694    *) as_dir=$as_dir/ ;;
3695  esac
3696    for ac_exec_ext in '' $ac_executable_extensions; do
3697  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3698    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3699       ac_prog_rejected=yes
3700       continue
3701     fi
3702    ac_cv_prog_CC="cc"
3703    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3704    break 2
3705  fi
3706done
3707  done
3708IFS=$as_save_IFS
3709
3710if test $ac_prog_rejected = yes; then
3711  # We found a bogon in the path, so make sure we never use it.
3712  set dummy $ac_cv_prog_CC
3713  shift
3714  if test $# != 0; then
3715    # We chose a different compiler from the bogus one.
3716    # However, it has the same basename, so the bogon will be chosen
3717    # first if we set CC to just the basename; use the full file name.
3718    shift
3719    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3720  fi
3721fi
3722fi
3723fi
3724CC=$ac_cv_prog_CC
3725if test -n "$CC"; then
3726  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3727printf "%s\n" "$CC" >&6; }
3728else
3729  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730printf "%s\n" "no" >&6; }
3731fi
3732
3733
3734fi
3735if test -z "$CC"; then
3736  if test -n "$ac_tool_prefix"; then
3737  for ac_prog in cl.exe
3738  do
3739    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3740set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3742printf %s "checking for $ac_word... " >&6; }
3743if test ${ac_cv_prog_CC+y}
3744then :
3745  printf %s "(cached) " >&6
3746else $as_nop
3747  if test -n "$CC"; then
3748  ac_cv_prog_CC="$CC" # Let the user override the test.
3749else
3750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751for as_dir in $PATH
3752do
3753  IFS=$as_save_IFS
3754  case $as_dir in #(((
3755    '') as_dir=./ ;;
3756    */) ;;
3757    *) as_dir=$as_dir/ ;;
3758  esac
3759    for ac_exec_ext in '' $ac_executable_extensions; do
3760  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3761    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3762    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3763    break 2
3764  fi
3765done
3766  done
3767IFS=$as_save_IFS
3768
3769fi
3770fi
3771CC=$ac_cv_prog_CC
3772if test -n "$CC"; then
3773  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3774printf "%s\n" "$CC" >&6; }
3775else
3776  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3777printf "%s\n" "no" >&6; }
3778fi
3779
3780
3781    test -n "$CC" && break
3782  done
3783fi
3784if test -z "$CC"; then
3785  ac_ct_CC=$CC
3786  for ac_prog in cl.exe
3787do
3788  # Extract the first word of "$ac_prog", so it can be a program name with args.
3789set dummy $ac_prog; ac_word=$2
3790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3791printf %s "checking for $ac_word... " >&6; }
3792if test ${ac_cv_prog_ac_ct_CC+y}
3793then :
3794  printf %s "(cached) " >&6
3795else $as_nop
3796  if test -n "$ac_ct_CC"; then
3797  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3798else
3799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800for as_dir in $PATH
3801do
3802  IFS=$as_save_IFS
3803  case $as_dir in #(((
3804    '') as_dir=./ ;;
3805    */) ;;
3806    *) as_dir=$as_dir/ ;;
3807  esac
3808    for ac_exec_ext in '' $ac_executable_extensions; do
3809  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3810    ac_cv_prog_ac_ct_CC="$ac_prog"
3811    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3812    break 2
3813  fi
3814done
3815  done
3816IFS=$as_save_IFS
3817
3818fi
3819fi
3820ac_ct_CC=$ac_cv_prog_ac_ct_CC
3821if test -n "$ac_ct_CC"; then
3822  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3823printf "%s\n" "$ac_ct_CC" >&6; }
3824else
3825  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3826printf "%s\n" "no" >&6; }
3827fi
3828
3829
3830  test -n "$ac_ct_CC" && break
3831done
3832
3833  if test "x$ac_ct_CC" = x; then
3834    CC=""
3835  else
3836    case $cross_compiling:$ac_tool_warned in
3837yes:)
3838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3839printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3840ac_tool_warned=yes ;;
3841esac
3842    CC=$ac_ct_CC
3843  fi
3844fi
3845
3846fi
3847if test -z "$CC"; then
3848  if test -n "$ac_tool_prefix"; then
3849  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3850set dummy ${ac_tool_prefix}clang; ac_word=$2
3851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3852printf %s "checking for $ac_word... " >&6; }
3853if test ${ac_cv_prog_CC+y}
3854then :
3855  printf %s "(cached) " >&6
3856else $as_nop
3857  if test -n "$CC"; then
3858  ac_cv_prog_CC="$CC" # Let the user override the test.
3859else
3860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861for as_dir in $PATH
3862do
3863  IFS=$as_save_IFS
3864  case $as_dir in #(((
3865    '') as_dir=./ ;;
3866    */) ;;
3867    *) as_dir=$as_dir/ ;;
3868  esac
3869    for ac_exec_ext in '' $ac_executable_extensions; do
3870  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3871    ac_cv_prog_CC="${ac_tool_prefix}clang"
3872    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3873    break 2
3874  fi
3875done
3876  done
3877IFS=$as_save_IFS
3878
3879fi
3880fi
3881CC=$ac_cv_prog_CC
3882if test -n "$CC"; then
3883  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3884printf "%s\n" "$CC" >&6; }
3885else
3886  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887printf "%s\n" "no" >&6; }
3888fi
3889
3890
3891fi
3892if test -z "$ac_cv_prog_CC"; then
3893  ac_ct_CC=$CC
3894  # Extract the first word of "clang", so it can be a program name with args.
3895set dummy clang; ac_word=$2
3896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3897printf %s "checking for $ac_word... " >&6; }
3898if test ${ac_cv_prog_ac_ct_CC+y}
3899then :
3900  printf %s "(cached) " >&6
3901else $as_nop
3902  if test -n "$ac_ct_CC"; then
3903  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3904else
3905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906for as_dir in $PATH
3907do
3908  IFS=$as_save_IFS
3909  case $as_dir in #(((
3910    '') as_dir=./ ;;
3911    */) ;;
3912    *) as_dir=$as_dir/ ;;
3913  esac
3914    for ac_exec_ext in '' $ac_executable_extensions; do
3915  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3916    ac_cv_prog_ac_ct_CC="clang"
3917    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3918    break 2
3919  fi
3920done
3921  done
3922IFS=$as_save_IFS
3923
3924fi
3925fi
3926ac_ct_CC=$ac_cv_prog_ac_ct_CC
3927if test -n "$ac_ct_CC"; then
3928  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3929printf "%s\n" "$ac_ct_CC" >&6; }
3930else
3931  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932printf "%s\n" "no" >&6; }
3933fi
3934
3935  if test "x$ac_ct_CC" = x; then
3936    CC=""
3937  else
3938    case $cross_compiling:$ac_tool_warned in
3939yes:)
3940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3941printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3942ac_tool_warned=yes ;;
3943esac
3944    CC=$ac_ct_CC
3945  fi
3946else
3947  CC="$ac_cv_prog_CC"
3948fi
3949
3950fi
3951
3952
3953test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3954printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3955as_fn_error $? "no acceptable C compiler found in \$PATH
3956See \`config.log' for more details" "$LINENO" 5; }
3957
3958# Provide some information about the compiler.
3959printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3960set X $ac_compile
3961ac_compiler=$2
3962for ac_option in --version -v -V -qversion -version; do
3963  { { ac_try="$ac_compiler $ac_option >&5"
3964case "(($ac_try" in
3965  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966  *) ac_try_echo=$ac_try;;
3967esac
3968eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3969printf "%s\n" "$ac_try_echo"; } >&5
3970  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3971  ac_status=$?
3972  if test -s conftest.err; then
3973    sed '10a\
3974... rest of stderr output deleted ...
3975         10q' conftest.err >conftest.er1
3976    cat conftest.er1 >&5
3977  fi
3978  rm -f conftest.er1 conftest.err
3979  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3980  test $ac_status = 0; }
3981done
3982
3983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984/* end confdefs.h.  */
3985
3986int
3987main (void)
3988{
3989
3990  ;
3991  return 0;
3992}
3993_ACEOF
3994ac_clean_files_save=$ac_clean_files
3995ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3996# Try to create an executable without -o first, disregard a.out.
3997# It will help us diagnose broken compilers, and finding out an intuition
3998# of exeext.
3999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4000printf %s "checking whether the C compiler works... " >&6; }
4001ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4002
4003# The possible output files:
4004ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4005
4006ac_rmfiles=
4007for ac_file in $ac_files
4008do
4009  case $ac_file in
4010    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4011    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4012  esac
4013done
4014rm -f $ac_rmfiles
4015
4016if { { ac_try="$ac_link_default"
4017case "(($ac_try" in
4018  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019  *) ac_try_echo=$ac_try;;
4020esac
4021eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4022printf "%s\n" "$ac_try_echo"; } >&5
4023  (eval "$ac_link_default") 2>&5
4024  ac_status=$?
4025  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4026  test $ac_status = 0; }
4027then :
4028  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4029# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4030# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4031# so that the user can short-circuit this test for compilers unknown to
4032# Autoconf.
4033for ac_file in $ac_files ''
4034do
4035  test -f "$ac_file" || continue
4036  case $ac_file in
4037    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4038	;;
4039    [ab].out )
4040	# We found the default executable, but exeext='' is most
4041	# certainly right.
4042	break;;
4043    *.* )
4044	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4045	then :; else
4046	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4047	fi
4048	# We set ac_cv_exeext here because the later test for it is not
4049	# safe: cross compilers may not add the suffix if given an `-o'
4050	# argument, so we may need to know it at that point already.
4051	# Even if this section looks crufty: it has the advantage of
4052	# actually working.
4053	break;;
4054    * )
4055	break;;
4056  esac
4057done
4058test "$ac_cv_exeext" = no && ac_cv_exeext=
4059
4060else $as_nop
4061  ac_file=''
4062fi
4063if test -z "$ac_file"
4064then :
4065  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4066printf "%s\n" "no" >&6; }
4067printf "%s\n" "$as_me: failed program was:" >&5
4068sed 's/^/| /' conftest.$ac_ext >&5
4069
4070{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4071printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4072as_fn_error 77 "C compiler cannot create executables
4073See \`config.log' for more details" "$LINENO" 5; }
4074else $as_nop
4075  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4076printf "%s\n" "yes" >&6; }
4077fi
4078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4079printf %s "checking for C compiler default output file name... " >&6; }
4080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4081printf "%s\n" "$ac_file" >&6; }
4082ac_exeext=$ac_cv_exeext
4083
4084rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4085ac_clean_files=$ac_clean_files_save
4086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4087printf %s "checking for suffix of executables... " >&6; }
4088if { { ac_try="$ac_link"
4089case "(($ac_try" in
4090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091  *) ac_try_echo=$ac_try;;
4092esac
4093eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4094printf "%s\n" "$ac_try_echo"; } >&5
4095  (eval "$ac_link") 2>&5
4096  ac_status=$?
4097  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4098  test $ac_status = 0; }
4099then :
4100  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4101# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4102# work properly (i.e., refer to `conftest.exe'), while it won't with
4103# `rm'.
4104for ac_file in conftest.exe conftest conftest.*; do
4105  test -f "$ac_file" || continue
4106  case $ac_file in
4107    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4108    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4109	  break;;
4110    * ) break;;
4111  esac
4112done
4113else $as_nop
4114  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4115printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4116as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4117See \`config.log' for more details" "$LINENO" 5; }
4118fi
4119rm -f conftest conftest$ac_cv_exeext
4120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4121printf "%s\n" "$ac_cv_exeext" >&6; }
4122
4123rm -f conftest.$ac_ext
4124EXEEXT=$ac_cv_exeext
4125ac_exeext=$EXEEXT
4126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127/* end confdefs.h.  */
4128#include <stdio.h>
4129int
4130main (void)
4131{
4132FILE *f = fopen ("conftest.out", "w");
4133 return ferror (f) || fclose (f) != 0;
4134
4135  ;
4136  return 0;
4137}
4138_ACEOF
4139ac_clean_files="$ac_clean_files conftest.out"
4140# Check that the compiler produces executables we can run.  If not, either
4141# the compiler is broken, or we cross compile.
4142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4143printf %s "checking whether we are cross compiling... " >&6; }
4144if test "$cross_compiling" != yes; then
4145  { { ac_try="$ac_link"
4146case "(($ac_try" in
4147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148  *) ac_try_echo=$ac_try;;
4149esac
4150eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4151printf "%s\n" "$ac_try_echo"; } >&5
4152  (eval "$ac_link") 2>&5
4153  ac_status=$?
4154  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4155  test $ac_status = 0; }
4156  if { ac_try='./conftest$ac_cv_exeext'
4157  { { case "(($ac_try" in
4158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159  *) ac_try_echo=$ac_try;;
4160esac
4161eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4162printf "%s\n" "$ac_try_echo"; } >&5
4163  (eval "$ac_try") 2>&5
4164  ac_status=$?
4165  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4166  test $ac_status = 0; }; }; then
4167    cross_compiling=no
4168  else
4169    if test "$cross_compiling" = maybe; then
4170	cross_compiling=yes
4171    else
4172	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4173printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4174as_fn_error 77 "cannot run C compiled programs.
4175If you meant to cross compile, use \`--host'.
4176See \`config.log' for more details" "$LINENO" 5; }
4177    fi
4178  fi
4179fi
4180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4181printf "%s\n" "$cross_compiling" >&6; }
4182
4183rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4184ac_clean_files=$ac_clean_files_save
4185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4186printf %s "checking for suffix of object files... " >&6; }
4187if test ${ac_cv_objext+y}
4188then :
4189  printf %s "(cached) " >&6
4190else $as_nop
4191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192/* end confdefs.h.  */
4193
4194int
4195main (void)
4196{
4197
4198  ;
4199  return 0;
4200}
4201_ACEOF
4202rm -f conftest.o conftest.obj
4203if { { ac_try="$ac_compile"
4204case "(($ac_try" in
4205  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206  *) ac_try_echo=$ac_try;;
4207esac
4208eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4209printf "%s\n" "$ac_try_echo"; } >&5
4210  (eval "$ac_compile") 2>&5
4211  ac_status=$?
4212  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4213  test $ac_status = 0; }
4214then :
4215  for ac_file in conftest.o conftest.obj conftest.*; do
4216  test -f "$ac_file" || continue;
4217  case $ac_file in
4218    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4219    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4220       break;;
4221  esac
4222done
4223else $as_nop
4224  printf "%s\n" "$as_me: failed program was:" >&5
4225sed 's/^/| /' conftest.$ac_ext >&5
4226
4227{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4228printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4229as_fn_error $? "cannot compute suffix of object files: cannot compile
4230See \`config.log' for more details" "$LINENO" 5; }
4231fi
4232rm -f conftest.$ac_cv_objext conftest.$ac_ext
4233fi
4234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4235printf "%s\n" "$ac_cv_objext" >&6; }
4236OBJEXT=$ac_cv_objext
4237ac_objext=$OBJEXT
4238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4239printf %s "checking whether the compiler supports GNU C... " >&6; }
4240if test ${ac_cv_c_compiler_gnu+y}
4241then :
4242  printf %s "(cached) " >&6
4243else $as_nop
4244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245/* end confdefs.h.  */
4246
4247int
4248main (void)
4249{
4250#ifndef __GNUC__
4251       choke me
4252#endif
4253
4254  ;
4255  return 0;
4256}
4257_ACEOF
4258if ac_fn_c_try_compile "$LINENO"
4259then :
4260  ac_compiler_gnu=yes
4261else $as_nop
4262  ac_compiler_gnu=no
4263fi
4264rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4265ac_cv_c_compiler_gnu=$ac_compiler_gnu
4266
4267fi
4268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4269printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4270ac_compiler_gnu=$ac_cv_c_compiler_gnu
4271
4272if test $ac_compiler_gnu = yes; then
4273  GCC=yes
4274else
4275  GCC=
4276fi
4277ac_test_CFLAGS=${CFLAGS+y}
4278ac_save_CFLAGS=$CFLAGS
4279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4280printf %s "checking whether $CC accepts -g... " >&6; }
4281if test ${ac_cv_prog_cc_g+y}
4282then :
4283  printf %s "(cached) " >&6
4284else $as_nop
4285  ac_save_c_werror_flag=$ac_c_werror_flag
4286   ac_c_werror_flag=yes
4287   ac_cv_prog_cc_g=no
4288   CFLAGS="-g"
4289   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290/* end confdefs.h.  */
4291
4292int
4293main (void)
4294{
4295
4296  ;
4297  return 0;
4298}
4299_ACEOF
4300if ac_fn_c_try_compile "$LINENO"
4301then :
4302  ac_cv_prog_cc_g=yes
4303else $as_nop
4304  CFLAGS=""
4305      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306/* end confdefs.h.  */
4307
4308int
4309main (void)
4310{
4311
4312  ;
4313  return 0;
4314}
4315_ACEOF
4316if ac_fn_c_try_compile "$LINENO"
4317then :
4318
4319else $as_nop
4320  ac_c_werror_flag=$ac_save_c_werror_flag
4321	 CFLAGS="-g"
4322	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323/* end confdefs.h.  */
4324
4325int
4326main (void)
4327{
4328
4329  ;
4330  return 0;
4331}
4332_ACEOF
4333if ac_fn_c_try_compile "$LINENO"
4334then :
4335  ac_cv_prog_cc_g=yes
4336fi
4337rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4338fi
4339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4340fi
4341rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4342   ac_c_werror_flag=$ac_save_c_werror_flag
4343fi
4344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4345printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4346if test $ac_test_CFLAGS; then
4347  CFLAGS=$ac_save_CFLAGS
4348elif test $ac_cv_prog_cc_g = yes; then
4349  if test "$GCC" = yes; then
4350    CFLAGS="-g -O2"
4351  else
4352    CFLAGS="-g"
4353  fi
4354else
4355  if test "$GCC" = yes; then
4356    CFLAGS="-O2"
4357  else
4358    CFLAGS=
4359  fi
4360fi
4361ac_prog_cc_stdc=no
4362if test x$ac_prog_cc_stdc = xno
4363then :
4364  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4365printf %s "checking for $CC option to enable C11 features... " >&6; }
4366if test ${ac_cv_prog_cc_c11+y}
4367then :
4368  printf %s "(cached) " >&6
4369else $as_nop
4370  ac_cv_prog_cc_c11=no
4371ac_save_CC=$CC
4372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373/* end confdefs.h.  */
4374$ac_c_conftest_c11_program
4375_ACEOF
4376for ac_arg in '' -std=gnu11
4377do
4378  CC="$ac_save_CC $ac_arg"
4379  if ac_fn_c_try_compile "$LINENO"
4380then :
4381  ac_cv_prog_cc_c11=$ac_arg
4382fi
4383rm -f core conftest.err conftest.$ac_objext conftest.beam
4384  test "x$ac_cv_prog_cc_c11" != "xno" && break
4385done
4386rm -f conftest.$ac_ext
4387CC=$ac_save_CC
4388fi
4389
4390if test "x$ac_cv_prog_cc_c11" = 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_c11" = 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_c11" >&5
4401printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4402     CC="$CC $ac_cv_prog_cc_c11"
4403fi
4404  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4405  ac_prog_cc_stdc=c11
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 C99 features" >&5
4411printf %s "checking for $CC option to enable C99 features... " >&6; }
4412if test ${ac_cv_prog_cc_c99+y}
4413then :
4414  printf %s "(cached) " >&6
4415else $as_nop
4416  ac_cv_prog_cc_c99=no
4417ac_save_CC=$CC
4418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419/* end confdefs.h.  */
4420$ac_c_conftest_c99_program
4421_ACEOF
4422for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4423do
4424  CC="$ac_save_CC $ac_arg"
4425  if ac_fn_c_try_compile "$LINENO"
4426then :
4427  ac_cv_prog_cc_c99=$ac_arg
4428fi
4429rm -f core conftest.err conftest.$ac_objext conftest.beam
4430  test "x$ac_cv_prog_cc_c99" != "xno" && break
4431done
4432rm -f conftest.$ac_ext
4433CC=$ac_save_CC
4434fi
4435
4436if test "x$ac_cv_prog_cc_c99" = 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_c99" = 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_c99" >&5
4447printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4448     CC="$CC $ac_cv_prog_cc_c99"
4449fi
4450  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4451  ac_prog_cc_stdc=c99
4452fi
4453fi
4454if test x$ac_prog_cc_stdc = xno
4455then :
4456  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4457printf %s "checking for $CC option to enable C89 features... " >&6; }
4458if test ${ac_cv_prog_cc_c89+y}
4459then :
4460  printf %s "(cached) " >&6
4461else $as_nop
4462  ac_cv_prog_cc_c89=no
4463ac_save_CC=$CC
4464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465/* end confdefs.h.  */
4466$ac_c_conftest_c89_program
4467_ACEOF
4468for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4469do
4470  CC="$ac_save_CC $ac_arg"
4471  if ac_fn_c_try_compile "$LINENO"
4472then :
4473  ac_cv_prog_cc_c89=$ac_arg
4474fi
4475rm -f core conftest.err conftest.$ac_objext conftest.beam
4476  test "x$ac_cv_prog_cc_c89" != "xno" && break
4477done
4478rm -f conftest.$ac_ext
4479CC=$ac_save_CC
4480fi
4481
4482if test "x$ac_cv_prog_cc_c89" = xno
4483then :
4484  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4485printf "%s\n" "unsupported" >&6; }
4486else $as_nop
4487  if test "x$ac_cv_prog_cc_c89" = x
4488then :
4489  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4490printf "%s\n" "none needed" >&6; }
4491else $as_nop
4492  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4493printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4494     CC="$CC $ac_cv_prog_cc_c89"
4495fi
4496  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4497  ac_prog_cc_stdc=c89
4498fi
4499fi
4500
4501ac_ext=c
4502ac_cpp='$CPP $CPPFLAGS'
4503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4505ac_compiler_gnu=$ac_cv_c_compiler_gnu
4506
4507
4508  ac_ext=c
4509ac_cpp='$CPP $CPPFLAGS'
4510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4512ac_compiler_gnu=$ac_cv_c_compiler_gnu
4513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4514printf %s "checking whether $CC understands -c and -o together... " >&6; }
4515if test ${am_cv_prog_cc_c_o+y}
4516then :
4517  printf %s "(cached) " >&6
4518else $as_nop
4519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520/* end confdefs.h.  */
4521
4522int
4523main (void)
4524{
4525
4526  ;
4527  return 0;
4528}
4529_ACEOF
4530  # Make sure it works both with $CC and with simple cc.
4531  # Following AC_PROG_CC_C_O, we do the test twice because some
4532  # compilers refuse to overwrite an existing .o file with -o,
4533  # though they will create one.
4534  am_cv_prog_cc_c_o=yes
4535  for am_i in 1 2; do
4536    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4537   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4538   ac_status=$?
4539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540   (exit $ac_status); } \
4541         && test -f conftest2.$ac_objext; then
4542      : OK
4543    else
4544      am_cv_prog_cc_c_o=no
4545      break
4546    fi
4547  done
4548  rm -f core conftest*
4549  unset am_i
4550fi
4551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4552printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4553if test "$am_cv_prog_cc_c_o" != yes; then
4554   # Losing compiler, so override with the script.
4555   # FIXME: It is wrong to rewrite CC.
4556   # But if we don't then we get into trouble of one sort or another.
4557   # A longer-term fix would be to have automake use am__CC in this case,
4558   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4559   CC="$am_aux_dir/compile $CC"
4560fi
4561ac_ext=c
4562ac_cpp='$CPP $CPPFLAGS'
4563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4565ac_compiler_gnu=$ac_cv_c_compiler_gnu
4566
4567
4568depcc="$CC"   am_compiler_list=
4569
4570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4571printf %s "checking dependency style of $depcc... " >&6; }
4572if test ${am_cv_CC_dependencies_compiler_type+y}
4573then :
4574  printf %s "(cached) " >&6
4575else $as_nop
4576  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4577  # We make a subdir and do the tests there.  Otherwise we can end up
4578  # making bogus files that we don't know about and never remove.  For
4579  # instance it was reported that on HP-UX the gcc test will end up
4580  # making a dummy file named 'D' -- because '-MD' means "put the output
4581  # in D".
4582  rm -rf conftest.dir
4583  mkdir conftest.dir
4584  # Copy depcomp to subdir because otherwise we won't find it if we're
4585  # using a relative directory.
4586  cp "$am_depcomp" conftest.dir
4587  cd conftest.dir
4588  # We will build objects and dependencies in a subdirectory because
4589  # it helps to detect inapplicable dependency modes.  For instance
4590  # both Tru64's cc and ICC support -MD to output dependencies as a
4591  # side effect of compilation, but ICC will put the dependencies in
4592  # the current directory while Tru64 will put them in the object
4593  # directory.
4594  mkdir sub
4595
4596  am_cv_CC_dependencies_compiler_type=none
4597  if test "$am_compiler_list" = ""; then
4598     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4599  fi
4600  am__universal=false
4601  case " $depcc " in #(
4602     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4603     esac
4604
4605  for depmode in $am_compiler_list; do
4606    # Setup a source with many dependencies, because some compilers
4607    # like to wrap large dependency lists on column 80 (with \), and
4608    # we should not choose a depcomp mode which is confused by this.
4609    #
4610    # We need to recreate these files for each test, as the compiler may
4611    # overwrite some of them when testing with obscure command lines.
4612    # This happens at least with the AIX C compiler.
4613    : > sub/conftest.c
4614    for i in 1 2 3 4 5 6; do
4615      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4616      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4617      # Solaris 10 /bin/sh.
4618      echo '/* dummy */' > sub/conftst$i.h
4619    done
4620    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4621
4622    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4623    # mode.  It turns out that the SunPro C++ compiler does not properly
4624    # handle '-M -o', and we need to detect this.  Also, some Intel
4625    # versions had trouble with output in subdirs.
4626    am__obj=sub/conftest.${OBJEXT-o}
4627    am__minus_obj="-o $am__obj"
4628    case $depmode in
4629    gcc)
4630      # This depmode causes a compiler race in universal mode.
4631      test "$am__universal" = false || continue
4632      ;;
4633    nosideeffect)
4634      # After this tag, mechanisms are not by side-effect, so they'll
4635      # only be used when explicitly requested.
4636      if test "x$enable_dependency_tracking" = xyes; then
4637	continue
4638      else
4639	break
4640      fi
4641      ;;
4642    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4643      # This compiler won't grok '-c -o', but also, the minuso test has
4644      # not run yet.  These depmodes are late enough in the game, and
4645      # so weak that their functioning should not be impacted.
4646      am__obj=conftest.${OBJEXT-o}
4647      am__minus_obj=
4648      ;;
4649    none) break ;;
4650    esac
4651    if depmode=$depmode \
4652       source=sub/conftest.c object=$am__obj \
4653       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4654       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4655         >/dev/null 2>conftest.err &&
4656       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4657       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4658       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4659       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4660      # icc doesn't choke on unknown options, it will just issue warnings
4661      # or remarks (even with -Werror).  So we grep stderr for any message
4662      # that says an option was ignored or not supported.
4663      # When given -MP, icc 7.0 and 7.1 complain thusly:
4664      #   icc: Command line warning: ignoring option '-M'; no argument required
4665      # The diagnosis changed in icc 8.0:
4666      #   icc: Command line remark: option '-MP' not supported
4667      if (grep 'ignoring option' conftest.err ||
4668          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4669        am_cv_CC_dependencies_compiler_type=$depmode
4670        break
4671      fi
4672    fi
4673  done
4674
4675  cd ..
4676  rm -rf conftest.dir
4677else
4678  am_cv_CC_dependencies_compiler_type=none
4679fi
4680
4681fi
4682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4683printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4684CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4685
4686 if
4687  test "x$enable_dependency_tracking" != xno \
4688  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4689  am__fastdepCC_TRUE=
4690  am__fastdepCC_FALSE='#'
4691else
4692  am__fastdepCC_TRUE='#'
4693  am__fastdepCC_FALSE=
4694fi
4695
4696
4697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4698printf %s "checking for a sed that does not truncate output... " >&6; }
4699if test ${ac_cv_path_SED+y}
4700then :
4701  printf %s "(cached) " >&6
4702else $as_nop
4703            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4704     for ac_i in 1 2 3 4 5 6 7; do
4705       ac_script="$ac_script$as_nl$ac_script"
4706     done
4707     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4708     { ac_script=; unset ac_script;}
4709     if test -z "$SED"; then
4710  ac_path_SED_found=false
4711  # Loop through the user's path and test for each of PROGNAME-LIST
4712  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713for as_dir in $PATH
4714do
4715  IFS=$as_save_IFS
4716  case $as_dir in #(((
4717    '') as_dir=./ ;;
4718    */) ;;
4719    *) as_dir=$as_dir/ ;;
4720  esac
4721    for ac_prog in sed gsed
4722   do
4723    for ac_exec_ext in '' $ac_executable_extensions; do
4724      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4725      as_fn_executable_p "$ac_path_SED" || continue
4726# Check for GNU ac_path_SED and select it if it is found.
4727  # Check for GNU $ac_path_SED
4728case `"$ac_path_SED" --version 2>&1` in
4729*GNU*)
4730  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4731*)
4732  ac_count=0
4733  printf %s 0123456789 >"conftest.in"
4734  while :
4735  do
4736    cat "conftest.in" "conftest.in" >"conftest.tmp"
4737    mv "conftest.tmp" "conftest.in"
4738    cp "conftest.in" "conftest.nl"
4739    printf "%s\n" '' >> "conftest.nl"
4740    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4741    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4742    as_fn_arith $ac_count + 1 && ac_count=$as_val
4743    if test $ac_count -gt ${ac_path_SED_max-0}; then
4744      # Best one so far, save it but keep looking for a better one
4745      ac_cv_path_SED="$ac_path_SED"
4746      ac_path_SED_max=$ac_count
4747    fi
4748    # 10*(2^10) chars as input seems more than enough
4749    test $ac_count -gt 10 && break
4750  done
4751  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4752esac
4753
4754      $ac_path_SED_found && break 3
4755    done
4756  done
4757  done
4758IFS=$as_save_IFS
4759  if test -z "$ac_cv_path_SED"; then
4760    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4761  fi
4762else
4763  ac_cv_path_SED=$SED
4764fi
4765
4766fi
4767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4768printf "%s\n" "$ac_cv_path_SED" >&6; }
4769 SED="$ac_cv_path_SED"
4770  rm -f conftest.sed
4771
4772test -z "$SED" && SED=sed
4773Xsed="$SED -e 1s/^X//"
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4786printf %s "checking for grep that handles long lines and -e... " >&6; }
4787if test ${ac_cv_path_GREP+y}
4788then :
4789  printf %s "(cached) " >&6
4790else $as_nop
4791  if test -z "$GREP"; then
4792  ac_path_GREP_found=false
4793  # Loop through the user's path and test for each of PROGNAME-LIST
4794  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4796do
4797  IFS=$as_save_IFS
4798  case $as_dir in #(((
4799    '') as_dir=./ ;;
4800    */) ;;
4801    *) as_dir=$as_dir/ ;;
4802  esac
4803    for ac_prog in grep ggrep
4804   do
4805    for ac_exec_ext in '' $ac_executable_extensions; do
4806      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4807      as_fn_executable_p "$ac_path_GREP" || continue
4808# Check for GNU ac_path_GREP and select it if it is found.
4809  # Check for GNU $ac_path_GREP
4810case `"$ac_path_GREP" --version 2>&1` in
4811*GNU*)
4812  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4813*)
4814  ac_count=0
4815  printf %s 0123456789 >"conftest.in"
4816  while :
4817  do
4818    cat "conftest.in" "conftest.in" >"conftest.tmp"
4819    mv "conftest.tmp" "conftest.in"
4820    cp "conftest.in" "conftest.nl"
4821    printf "%s\n" 'GREP' >> "conftest.nl"
4822    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4823    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4824    as_fn_arith $ac_count + 1 && ac_count=$as_val
4825    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4826      # Best one so far, save it but keep looking for a better one
4827      ac_cv_path_GREP="$ac_path_GREP"
4828      ac_path_GREP_max=$ac_count
4829    fi
4830    # 10*(2^10) chars as input seems more than enough
4831    test $ac_count -gt 10 && break
4832  done
4833  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4834esac
4835
4836      $ac_path_GREP_found && break 3
4837    done
4838  done
4839  done
4840IFS=$as_save_IFS
4841  if test -z "$ac_cv_path_GREP"; then
4842    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4843  fi
4844else
4845  ac_cv_path_GREP=$GREP
4846fi
4847
4848fi
4849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4850printf "%s\n" "$ac_cv_path_GREP" >&6; }
4851 GREP="$ac_cv_path_GREP"
4852
4853
4854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4855printf %s "checking for egrep... " >&6; }
4856if test ${ac_cv_path_EGREP+y}
4857then :
4858  printf %s "(cached) " >&6
4859else $as_nop
4860  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4861   then ac_cv_path_EGREP="$GREP -E"
4862   else
4863     if test -z "$EGREP"; then
4864  ac_path_EGREP_found=false
4865  # Loop through the user's path and test for each of PROGNAME-LIST
4866  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4868do
4869  IFS=$as_save_IFS
4870  case $as_dir in #(((
4871    '') as_dir=./ ;;
4872    */) ;;
4873    *) as_dir=$as_dir/ ;;
4874  esac
4875    for ac_prog in egrep
4876   do
4877    for ac_exec_ext in '' $ac_executable_extensions; do
4878      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4879      as_fn_executable_p "$ac_path_EGREP" || continue
4880# Check for GNU ac_path_EGREP and select it if it is found.
4881  # Check for GNU $ac_path_EGREP
4882case `"$ac_path_EGREP" --version 2>&1` in
4883*GNU*)
4884  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4885*)
4886  ac_count=0
4887  printf %s 0123456789 >"conftest.in"
4888  while :
4889  do
4890    cat "conftest.in" "conftest.in" >"conftest.tmp"
4891    mv "conftest.tmp" "conftest.in"
4892    cp "conftest.in" "conftest.nl"
4893    printf "%s\n" 'EGREP' >> "conftest.nl"
4894    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4895    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4896    as_fn_arith $ac_count + 1 && ac_count=$as_val
4897    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4898      # Best one so far, save it but keep looking for a better one
4899      ac_cv_path_EGREP="$ac_path_EGREP"
4900      ac_path_EGREP_max=$ac_count
4901    fi
4902    # 10*(2^10) chars as input seems more than enough
4903    test $ac_count -gt 10 && break
4904  done
4905  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4906esac
4907
4908      $ac_path_EGREP_found && break 3
4909    done
4910  done
4911  done
4912IFS=$as_save_IFS
4913  if test -z "$ac_cv_path_EGREP"; then
4914    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4915  fi
4916else
4917  ac_cv_path_EGREP=$EGREP
4918fi
4919
4920   fi
4921fi
4922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4923printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4924 EGREP="$ac_cv_path_EGREP"
4925
4926
4927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4928printf %s "checking for fgrep... " >&6; }
4929if test ${ac_cv_path_FGREP+y}
4930then :
4931  printf %s "(cached) " >&6
4932else $as_nop
4933  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4934   then ac_cv_path_FGREP="$GREP -F"
4935   else
4936     if test -z "$FGREP"; then
4937  ac_path_FGREP_found=false
4938  # Loop through the user's path and test for each of PROGNAME-LIST
4939  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4941do
4942  IFS=$as_save_IFS
4943  case $as_dir in #(((
4944    '') as_dir=./ ;;
4945    */) ;;
4946    *) as_dir=$as_dir/ ;;
4947  esac
4948    for ac_prog in fgrep
4949   do
4950    for ac_exec_ext in '' $ac_executable_extensions; do
4951      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4952      as_fn_executable_p "$ac_path_FGREP" || continue
4953# Check for GNU ac_path_FGREP and select it if it is found.
4954  # Check for GNU $ac_path_FGREP
4955case `"$ac_path_FGREP" --version 2>&1` in
4956*GNU*)
4957  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4958*)
4959  ac_count=0
4960  printf %s 0123456789 >"conftest.in"
4961  while :
4962  do
4963    cat "conftest.in" "conftest.in" >"conftest.tmp"
4964    mv "conftest.tmp" "conftest.in"
4965    cp "conftest.in" "conftest.nl"
4966    printf "%s\n" 'FGREP' >> "conftest.nl"
4967    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4968    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4969    as_fn_arith $ac_count + 1 && ac_count=$as_val
4970    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4971      # Best one so far, save it but keep looking for a better one
4972      ac_cv_path_FGREP="$ac_path_FGREP"
4973      ac_path_FGREP_max=$ac_count
4974    fi
4975    # 10*(2^10) chars as input seems more than enough
4976    test $ac_count -gt 10 && break
4977  done
4978  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4979esac
4980
4981      $ac_path_FGREP_found && break 3
4982    done
4983  done
4984  done
4985IFS=$as_save_IFS
4986  if test -z "$ac_cv_path_FGREP"; then
4987    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4988  fi
4989else
4990  ac_cv_path_FGREP=$FGREP
4991fi
4992
4993   fi
4994fi
4995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4996printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4997 FGREP="$ac_cv_path_FGREP"
4998
4999
5000test -z "$GREP" && GREP=grep
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020# Check whether --with-gnu-ld was given.
5021if test ${with_gnu_ld+y}
5022then :
5023  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5024else $as_nop
5025  with_gnu_ld=no
5026fi
5027
5028ac_prog=ld
5029if test yes = "$GCC"; then
5030  # Check if gcc -print-prog-name=ld gives a path.
5031  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5032printf %s "checking for ld used by $CC... " >&6; }
5033  case $host in
5034  *-*-mingw*)
5035    # gcc leaves a trailing carriage return, which upsets mingw
5036    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5037  *)
5038    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5039  esac
5040  case $ac_prog in
5041    # Accept absolute paths.
5042    [\\/]* | ?:[\\/]*)
5043      re_direlt='/[^/][^/]*/\.\./'
5044      # Canonicalize the pathname of ld
5045      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5046      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5047	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5048      done
5049      test -z "$LD" && LD=$ac_prog
5050      ;;
5051  "")
5052    # If it fails, then pretend we aren't using GCC.
5053    ac_prog=ld
5054    ;;
5055  *)
5056    # If it is relative, then search for the first ld in PATH.
5057    with_gnu_ld=unknown
5058    ;;
5059  esac
5060elif test yes = "$with_gnu_ld"; then
5061  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5062printf %s "checking for GNU ld... " >&6; }
5063else
5064  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5065printf %s "checking for non-GNU ld... " >&6; }
5066fi
5067if test ${lt_cv_path_LD+y}
5068then :
5069  printf %s "(cached) " >&6
5070else $as_nop
5071  if test -z "$LD"; then
5072  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5073  for ac_dir in $PATH; do
5074    IFS=$lt_save_ifs
5075    test -z "$ac_dir" && ac_dir=.
5076    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5077      lt_cv_path_LD=$ac_dir/$ac_prog
5078      # Check to see if the program is GNU ld.  I'd rather use --version,
5079      # but apparently some variants of GNU ld only accept -v.
5080      # Break only if it was the GNU/non-GNU ld that we prefer.
5081      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5082      *GNU* | *'with BFD'*)
5083	test no != "$with_gnu_ld" && break
5084	;;
5085      *)
5086	test yes != "$with_gnu_ld" && break
5087	;;
5088      esac
5089    fi
5090  done
5091  IFS=$lt_save_ifs
5092else
5093  lt_cv_path_LD=$LD # Let the user override the test with a path.
5094fi
5095fi
5096
5097LD=$lt_cv_path_LD
5098if test -n "$LD"; then
5099  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5100printf "%s\n" "$LD" >&6; }
5101else
5102  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103printf "%s\n" "no" >&6; }
5104fi
5105test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5107printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5108if test ${lt_cv_prog_gnu_ld+y}
5109then :
5110  printf %s "(cached) " >&6
5111else $as_nop
5112  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5113case `$LD -v 2>&1 </dev/null` in
5114*GNU* | *'with BFD'*)
5115  lt_cv_prog_gnu_ld=yes
5116  ;;
5117*)
5118  lt_cv_prog_gnu_ld=no
5119  ;;
5120esac
5121fi
5122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5123printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5124with_gnu_ld=$lt_cv_prog_gnu_ld
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5135printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5136if test ${lt_cv_path_NM+y}
5137then :
5138  printf %s "(cached) " >&6
5139else $as_nop
5140  if test -n "$NM"; then
5141  # Let the user override the test.
5142  lt_cv_path_NM=$NM
5143else
5144  lt_nm_to_check=${ac_tool_prefix}nm
5145  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5146    lt_nm_to_check="$lt_nm_to_check nm"
5147  fi
5148  for lt_tmp_nm in $lt_nm_to_check; do
5149    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5150    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5151      IFS=$lt_save_ifs
5152      test -z "$ac_dir" && ac_dir=.
5153      tmp_nm=$ac_dir/$lt_tmp_nm
5154      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5155	# Check to see if the nm accepts a BSD-compat flag.
5156	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5157	#   nm: unknown option "B" ignored
5158	# Tru64's nm complains that /dev/null is an invalid object file
5159	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5160	case $build_os in
5161	mingw*) lt_bad_file=conftest.nm/nofile ;;
5162	*) lt_bad_file=/dev/null ;;
5163	esac
5164	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5165	*$lt_bad_file* | *'Invalid file or object type'*)
5166	  lt_cv_path_NM="$tmp_nm -B"
5167	  break 2
5168	  ;;
5169	*)
5170	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5171	  */dev/null*)
5172	    lt_cv_path_NM="$tmp_nm -p"
5173	    break 2
5174	    ;;
5175	  *)
5176	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5177	    continue # so that we can try to find one that supports BSD flags
5178	    ;;
5179	  esac
5180	  ;;
5181	esac
5182      fi
5183    done
5184    IFS=$lt_save_ifs
5185  done
5186  : ${lt_cv_path_NM=no}
5187fi
5188fi
5189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5190printf "%s\n" "$lt_cv_path_NM" >&6; }
5191if test no != "$lt_cv_path_NM"; then
5192  NM=$lt_cv_path_NM
5193else
5194  # Didn't find any BSD compatible name lister, look for dumpbin.
5195  if test -n "$DUMPBIN"; then :
5196    # Let the user override the test.
5197  else
5198    if test -n "$ac_tool_prefix"; then
5199  for ac_prog in dumpbin "link -dump"
5200  do
5201    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5202set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5204printf %s "checking for $ac_word... " >&6; }
5205if test ${ac_cv_prog_DUMPBIN+y}
5206then :
5207  printf %s "(cached) " >&6
5208else $as_nop
5209  if test -n "$DUMPBIN"; then
5210  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5211else
5212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213for as_dir in $PATH
5214do
5215  IFS=$as_save_IFS
5216  case $as_dir in #(((
5217    '') as_dir=./ ;;
5218    */) ;;
5219    *) as_dir=$as_dir/ ;;
5220  esac
5221    for ac_exec_ext in '' $ac_executable_extensions; do
5222  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5223    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5224    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5225    break 2
5226  fi
5227done
5228  done
5229IFS=$as_save_IFS
5230
5231fi
5232fi
5233DUMPBIN=$ac_cv_prog_DUMPBIN
5234if test -n "$DUMPBIN"; then
5235  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5236printf "%s\n" "$DUMPBIN" >&6; }
5237else
5238  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239printf "%s\n" "no" >&6; }
5240fi
5241
5242
5243    test -n "$DUMPBIN" && break
5244  done
5245fi
5246if test -z "$DUMPBIN"; then
5247  ac_ct_DUMPBIN=$DUMPBIN
5248  for ac_prog in dumpbin "link -dump"
5249do
5250  # Extract the first word of "$ac_prog", so it can be a program name with args.
5251set dummy $ac_prog; ac_word=$2
5252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253printf %s "checking for $ac_word... " >&6; }
5254if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5255then :
5256  printf %s "(cached) " >&6
5257else $as_nop
5258  if test -n "$ac_ct_DUMPBIN"; then
5259  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5260else
5261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262for as_dir in $PATH
5263do
5264  IFS=$as_save_IFS
5265  case $as_dir in #(((
5266    '') as_dir=./ ;;
5267    */) ;;
5268    *) as_dir=$as_dir/ ;;
5269  esac
5270    for ac_exec_ext in '' $ac_executable_extensions; do
5271  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5272    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5273    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5274    break 2
5275  fi
5276done
5277  done
5278IFS=$as_save_IFS
5279
5280fi
5281fi
5282ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5283if test -n "$ac_ct_DUMPBIN"; then
5284  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5285printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5286else
5287  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288printf "%s\n" "no" >&6; }
5289fi
5290
5291
5292  test -n "$ac_ct_DUMPBIN" && break
5293done
5294
5295  if test "x$ac_ct_DUMPBIN" = x; then
5296    DUMPBIN=":"
5297  else
5298    case $cross_compiling:$ac_tool_warned in
5299yes:)
5300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5301printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5302ac_tool_warned=yes ;;
5303esac
5304    DUMPBIN=$ac_ct_DUMPBIN
5305  fi
5306fi
5307
5308    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5309    *COFF*)
5310      DUMPBIN="$DUMPBIN -symbols -headers"
5311      ;;
5312    *)
5313      DUMPBIN=:
5314      ;;
5315    esac
5316  fi
5317
5318  if test : != "$DUMPBIN"; then
5319    NM=$DUMPBIN
5320  fi
5321fi
5322test -z "$NM" && NM=nm
5323
5324
5325
5326
5327
5328
5329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5330printf %s "checking the name lister ($NM) interface... " >&6; }
5331if test ${lt_cv_nm_interface+y}
5332then :
5333  printf %s "(cached) " >&6
5334else $as_nop
5335  lt_cv_nm_interface="BSD nm"
5336  echo "int some_variable = 0;" > conftest.$ac_ext
5337  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5338  (eval "$ac_compile" 2>conftest.err)
5339  cat conftest.err >&5
5340  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5341  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5342  cat conftest.err >&5
5343  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5344  cat conftest.out >&5
5345  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5346    lt_cv_nm_interface="MS dumpbin"
5347  fi
5348  rm -f conftest*
5349fi
5350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5351printf "%s\n" "$lt_cv_nm_interface" >&6; }
5352
5353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5354printf %s "checking whether ln -s works... " >&6; }
5355LN_S=$as_ln_s
5356if test "$LN_S" = "ln -s"; then
5357  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5358printf "%s\n" "yes" >&6; }
5359else
5360  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5361printf "%s\n" "no, using $LN_S" >&6; }
5362fi
5363
5364# find the maximum length of command line arguments
5365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5366printf %s "checking the maximum length of command line arguments... " >&6; }
5367if test ${lt_cv_sys_max_cmd_len+y}
5368then :
5369  printf %s "(cached) " >&6
5370else $as_nop
5371    i=0
5372  teststring=ABCD
5373
5374  case $build_os in
5375  msdosdjgpp*)
5376    # On DJGPP, this test can blow up pretty badly due to problems in libc
5377    # (any single argument exceeding 2000 bytes causes a buffer overrun
5378    # during glob expansion).  Even if it were fixed, the result of this
5379    # check would be larger than it should be.
5380    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5381    ;;
5382
5383  gnu*)
5384    # Under GNU Hurd, this test is not required because there is
5385    # no limit to the length of command line arguments.
5386    # Libtool will interpret -1 as no limit whatsoever
5387    lt_cv_sys_max_cmd_len=-1;
5388    ;;
5389
5390  cygwin* | mingw* | cegcc*)
5391    # On Win9x/ME, this test blows up -- it succeeds, but takes
5392    # about 5 minutes as the teststring grows exponentially.
5393    # Worse, since 9x/ME are not pre-emptively multitasking,
5394    # you end up with a "frozen" computer, even though with patience
5395    # the test eventually succeeds (with a max line length of 256k).
5396    # Instead, let's just punt: use the minimum linelength reported by
5397    # all of the supported platforms: 8192 (on NT/2K/XP).
5398    lt_cv_sys_max_cmd_len=8192;
5399    ;;
5400
5401  mint*)
5402    # On MiNT this can take a long time and run out of memory.
5403    lt_cv_sys_max_cmd_len=8192;
5404    ;;
5405
5406  amigaos*)
5407    # On AmigaOS with pdksh, this test takes hours, literally.
5408    # So we just punt and use a minimum line length of 8192.
5409    lt_cv_sys_max_cmd_len=8192;
5410    ;;
5411
5412  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5413    # This has been around since 386BSD, at least.  Likely further.
5414    if test -x /sbin/sysctl; then
5415      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5416    elif test -x /usr/sbin/sysctl; then
5417      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5418    else
5419      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5420    fi
5421    # And add a safety zone
5422    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5423    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5424    ;;
5425
5426  interix*)
5427    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5428    lt_cv_sys_max_cmd_len=196608
5429    ;;
5430
5431  os2*)
5432    # The test takes a long time on OS/2.
5433    lt_cv_sys_max_cmd_len=8192
5434    ;;
5435
5436  osf*)
5437    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5438    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5439    # nice to cause kernel panics so lets avoid the loop below.
5440    # First set a reasonable default.
5441    lt_cv_sys_max_cmd_len=16384
5442    #
5443    if test -x /sbin/sysconfig; then
5444      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5445        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5446      esac
5447    fi
5448    ;;
5449  sco3.2v5*)
5450    lt_cv_sys_max_cmd_len=102400
5451    ;;
5452  sysv5* | sco5v6* | sysv4.2uw2*)
5453    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5454    if test -n "$kargmax"; then
5455      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
5456    else
5457      lt_cv_sys_max_cmd_len=32768
5458    fi
5459    ;;
5460  *)
5461    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5462    if test -n "$lt_cv_sys_max_cmd_len" && \
5463       test undefined != "$lt_cv_sys_max_cmd_len"; then
5464      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5465      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5466    else
5467      # Make teststring a little bigger before we do anything with it.
5468      # a 1K string should be a reasonable start.
5469      for i in 1 2 3 4 5 6 7 8; do
5470        teststring=$teststring$teststring
5471      done
5472      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5473      # If test is not a shell built-in, we'll probably end up computing a
5474      # maximum length that is only half of the actual maximum length, but
5475      # we can't tell.
5476      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5477	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5478	      test 17 != "$i" # 1/2 MB should be enough
5479      do
5480        i=`expr $i + 1`
5481        teststring=$teststring$teststring
5482      done
5483      # Only check the string length outside the loop.
5484      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5485      teststring=
5486      # Add a significant safety factor because C++ compilers can tack on
5487      # massive amounts of additional arguments before passing them to the
5488      # linker.  It appears as though 1/2 is a usable value.
5489      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5490    fi
5491    ;;
5492  esac
5493
5494fi
5495
5496if test -n "$lt_cv_sys_max_cmd_len"; then
5497  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5498printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5499else
5500  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5501printf "%s\n" "none" >&6; }
5502fi
5503max_cmd_len=$lt_cv_sys_max_cmd_len
5504
5505
5506
5507
5508
5509
5510: ${CP="cp -f"}
5511: ${MV="mv -f"}
5512: ${RM="rm -f"}
5513
5514if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5515  lt_unset=unset
5516else
5517  lt_unset=false
5518fi
5519
5520
5521
5522
5523
5524# test EBCDIC or ASCII
5525case `echo X|tr X '\101'` in
5526 A) # ASCII based system
5527    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5528  lt_SP2NL='tr \040 \012'
5529  lt_NL2SP='tr \015\012 \040\040'
5530  ;;
5531 *) # EBCDIC based system
5532  lt_SP2NL='tr \100 \n'
5533  lt_NL2SP='tr \r\n \100\100'
5534  ;;
5535esac
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5546printf %s "checking how to convert $build file names to $host format... " >&6; }
5547if test ${lt_cv_to_host_file_cmd+y}
5548then :
5549  printf %s "(cached) " >&6
5550else $as_nop
5551  case $host in
5552  *-*-mingw* )
5553    case $build in
5554      *-*-mingw* ) # actually msys
5555        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5556        ;;
5557      *-*-cygwin* )
5558        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5559        ;;
5560      * ) # otherwise, assume *nix
5561        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5562        ;;
5563    esac
5564    ;;
5565  *-*-cygwin* )
5566    case $build in
5567      *-*-mingw* ) # actually msys
5568        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5569        ;;
5570      *-*-cygwin* )
5571        lt_cv_to_host_file_cmd=func_convert_file_noop
5572        ;;
5573      * ) # otherwise, assume *nix
5574        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5575        ;;
5576    esac
5577    ;;
5578  * ) # unhandled hosts (and "normal" native builds)
5579    lt_cv_to_host_file_cmd=func_convert_file_noop
5580    ;;
5581esac
5582
5583fi
5584
5585to_host_file_cmd=$lt_cv_to_host_file_cmd
5586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5587printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5588
5589
5590
5591
5592
5593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5594printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5595if test ${lt_cv_to_tool_file_cmd+y}
5596then :
5597  printf %s "(cached) " >&6
5598else $as_nop
5599  #assume ordinary cross tools, or native build.
5600lt_cv_to_tool_file_cmd=func_convert_file_noop
5601case $host in
5602  *-*-mingw* )
5603    case $build in
5604      *-*-mingw* ) # actually msys
5605        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5606        ;;
5607    esac
5608    ;;
5609esac
5610
5611fi
5612
5613to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5615printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5616
5617
5618
5619
5620
5621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5622printf %s "checking for $LD option to reload object files... " >&6; }
5623if test ${lt_cv_ld_reload_flag+y}
5624then :
5625  printf %s "(cached) " >&6
5626else $as_nop
5627  lt_cv_ld_reload_flag='-r'
5628fi
5629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5630printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5631reload_flag=$lt_cv_ld_reload_flag
5632case $reload_flag in
5633"" | " "*) ;;
5634*) reload_flag=" $reload_flag" ;;
5635esac
5636reload_cmds='$LD$reload_flag -o $output$reload_objs'
5637case $host_os in
5638  cygwin* | mingw* | pw32* | cegcc*)
5639    if test yes != "$GCC"; then
5640      reload_cmds=false
5641    fi
5642    ;;
5643  darwin*)
5644    if test yes = "$GCC"; then
5645      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5646    else
5647      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5648    fi
5649    ;;
5650esac
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660if test -n "$ac_tool_prefix"; then
5661  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5662set dummy ${ac_tool_prefix}file; ac_word=$2
5663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5664printf %s "checking for $ac_word... " >&6; }
5665if test ${ac_cv_prog_FILECMD+y}
5666then :
5667  printf %s "(cached) " >&6
5668else $as_nop
5669  if test -n "$FILECMD"; then
5670  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5671else
5672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673for as_dir in $PATH
5674do
5675  IFS=$as_save_IFS
5676  case $as_dir in #(((
5677    '') as_dir=./ ;;
5678    */) ;;
5679    *) as_dir=$as_dir/ ;;
5680  esac
5681    for ac_exec_ext in '' $ac_executable_extensions; do
5682  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5683    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5684    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5685    break 2
5686  fi
5687done
5688  done
5689IFS=$as_save_IFS
5690
5691fi
5692fi
5693FILECMD=$ac_cv_prog_FILECMD
5694if test -n "$FILECMD"; then
5695  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5696printf "%s\n" "$FILECMD" >&6; }
5697else
5698  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699printf "%s\n" "no" >&6; }
5700fi
5701
5702
5703fi
5704if test -z "$ac_cv_prog_FILECMD"; then
5705  ac_ct_FILECMD=$FILECMD
5706  # Extract the first word of "file", so it can be a program name with args.
5707set dummy file; ac_word=$2
5708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5709printf %s "checking for $ac_word... " >&6; }
5710if test ${ac_cv_prog_ac_ct_FILECMD+y}
5711then :
5712  printf %s "(cached) " >&6
5713else $as_nop
5714  if test -n "$ac_ct_FILECMD"; then
5715  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5716else
5717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718for as_dir in $PATH
5719do
5720  IFS=$as_save_IFS
5721  case $as_dir in #(((
5722    '') as_dir=./ ;;
5723    */) ;;
5724    *) as_dir=$as_dir/ ;;
5725  esac
5726    for ac_exec_ext in '' $ac_executable_extensions; do
5727  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5728    ac_cv_prog_ac_ct_FILECMD="file"
5729    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5730    break 2
5731  fi
5732done
5733  done
5734IFS=$as_save_IFS
5735
5736fi
5737fi
5738ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5739if test -n "$ac_ct_FILECMD"; then
5740  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5741printf "%s\n" "$ac_ct_FILECMD" >&6; }
5742else
5743  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744printf "%s\n" "no" >&6; }
5745fi
5746
5747  if test "x$ac_ct_FILECMD" = x; then
5748    FILECMD=":"
5749  else
5750    case $cross_compiling:$ac_tool_warned in
5751yes:)
5752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5753printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5754ac_tool_warned=yes ;;
5755esac
5756    FILECMD=$ac_ct_FILECMD
5757  fi
5758else
5759  FILECMD="$ac_cv_prog_FILECMD"
5760fi
5761
5762
5763
5764
5765
5766
5767
5768if test -n "$ac_tool_prefix"; then
5769  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5770set dummy ${ac_tool_prefix}objdump; ac_word=$2
5771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5772printf %s "checking for $ac_word... " >&6; }
5773if test ${ac_cv_prog_OBJDUMP+y}
5774then :
5775  printf %s "(cached) " >&6
5776else $as_nop
5777  if test -n "$OBJDUMP"; then
5778  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5779else
5780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781for as_dir in $PATH
5782do
5783  IFS=$as_save_IFS
5784  case $as_dir in #(((
5785    '') as_dir=./ ;;
5786    */) ;;
5787    *) as_dir=$as_dir/ ;;
5788  esac
5789    for ac_exec_ext in '' $ac_executable_extensions; do
5790  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5791    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5792    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5793    break 2
5794  fi
5795done
5796  done
5797IFS=$as_save_IFS
5798
5799fi
5800fi
5801OBJDUMP=$ac_cv_prog_OBJDUMP
5802if test -n "$OBJDUMP"; then
5803  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5804printf "%s\n" "$OBJDUMP" >&6; }
5805else
5806  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807printf "%s\n" "no" >&6; }
5808fi
5809
5810
5811fi
5812if test -z "$ac_cv_prog_OBJDUMP"; then
5813  ac_ct_OBJDUMP=$OBJDUMP
5814  # Extract the first word of "objdump", so it can be a program name with args.
5815set dummy objdump; ac_word=$2
5816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5817printf %s "checking for $ac_word... " >&6; }
5818if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5819then :
5820  printf %s "(cached) " >&6
5821else $as_nop
5822  if test -n "$ac_ct_OBJDUMP"; then
5823  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5824else
5825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826for as_dir in $PATH
5827do
5828  IFS=$as_save_IFS
5829  case $as_dir in #(((
5830    '') as_dir=./ ;;
5831    */) ;;
5832    *) as_dir=$as_dir/ ;;
5833  esac
5834    for ac_exec_ext in '' $ac_executable_extensions; do
5835  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5836    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5837    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5838    break 2
5839  fi
5840done
5841  done
5842IFS=$as_save_IFS
5843
5844fi
5845fi
5846ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5847if test -n "$ac_ct_OBJDUMP"; then
5848  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5849printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5850else
5851  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852printf "%s\n" "no" >&6; }
5853fi
5854
5855  if test "x$ac_ct_OBJDUMP" = x; then
5856    OBJDUMP="false"
5857  else
5858    case $cross_compiling:$ac_tool_warned in
5859yes:)
5860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5861printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5862ac_tool_warned=yes ;;
5863esac
5864    OBJDUMP=$ac_ct_OBJDUMP
5865  fi
5866else
5867  OBJDUMP="$ac_cv_prog_OBJDUMP"
5868fi
5869
5870test -z "$OBJDUMP" && OBJDUMP=objdump
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5881printf %s "checking how to recognize dependent libraries... " >&6; }
5882if test ${lt_cv_deplibs_check_method+y}
5883then :
5884  printf %s "(cached) " >&6
5885else $as_nop
5886  lt_cv_file_magic_cmd='$MAGIC_CMD'
5887lt_cv_file_magic_test_file=
5888lt_cv_deplibs_check_method='unknown'
5889# Need to set the preceding variable on all platforms that support
5890# interlibrary dependencies.
5891# 'none' -- dependencies not supported.
5892# 'unknown' -- same as none, but documents that we really don't know.
5893# 'pass_all' -- all dependencies passed with no checks.
5894# 'test_compile' -- check by making test program.
5895# 'file_magic [[regex]]' -- check by looking for files in library path
5896# that responds to the $file_magic_cmd with a given extended regex.
5897# If you have 'file' or equivalent on your system and you're not sure
5898# whether 'pass_all' will *always* work, you probably want this one.
5899
5900case $host_os in
5901aix[4-9]*)
5902  lt_cv_deplibs_check_method=pass_all
5903  ;;
5904
5905beos*)
5906  lt_cv_deplibs_check_method=pass_all
5907  ;;
5908
5909bsdi[45]*)
5910  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5911  lt_cv_file_magic_cmd='$FILECMD -L'
5912  lt_cv_file_magic_test_file=/shlib/libc.so
5913  ;;
5914
5915cygwin*)
5916  # func_win32_libid is a shell function defined in ltmain.sh
5917  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5918  lt_cv_file_magic_cmd='func_win32_libid'
5919  ;;
5920
5921mingw* | pw32*)
5922  # Base MSYS/MinGW do not provide the 'file' command needed by
5923  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5924  # unless we find 'file', for example because we are cross-compiling.
5925  if ( file / ) >/dev/null 2>&1; then
5926    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5927    lt_cv_file_magic_cmd='func_win32_libid'
5928  else
5929    # Keep this pattern in sync with the one in func_win32_libid.
5930    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5931    lt_cv_file_magic_cmd='$OBJDUMP -f'
5932  fi
5933  ;;
5934
5935cegcc*)
5936  # use the weaker test based on 'objdump'. See mingw*.
5937  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5938  lt_cv_file_magic_cmd='$OBJDUMP -f'
5939  ;;
5940
5941darwin* | rhapsody*)
5942  lt_cv_deplibs_check_method=pass_all
5943  ;;
5944
5945freebsd* | dragonfly* | midnightbsd*)
5946  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5947    case $host_cpu in
5948    i*86 )
5949      # Not sure whether the presence of OpenBSD here was a mistake.
5950      # Let's accept both of them until this is cleared up.
5951      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5952      lt_cv_file_magic_cmd=$FILECMD
5953      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5954      ;;
5955    esac
5956  else
5957    lt_cv_deplibs_check_method=pass_all
5958  fi
5959  ;;
5960
5961haiku*)
5962  lt_cv_deplibs_check_method=pass_all
5963  ;;
5964
5965hpux10.20* | hpux11*)
5966  lt_cv_file_magic_cmd=$FILECMD
5967  case $host_cpu in
5968  ia64*)
5969    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5970    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5971    ;;
5972  hppa*64*)
5973    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]'
5974    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5975    ;;
5976  *)
5977    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5978    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5979    ;;
5980  esac
5981  ;;
5982
5983interix[3-9]*)
5984  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5985  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5986  ;;
5987
5988irix5* | irix6* | nonstopux*)
5989  case $LD in
5990  *-32|*"-32 ") libmagic=32-bit;;
5991  *-n32|*"-n32 ") libmagic=N32;;
5992  *-64|*"-64 ") libmagic=64-bit;;
5993  *) libmagic=never-match;;
5994  esac
5995  lt_cv_deplibs_check_method=pass_all
5996  ;;
5997
5998# This must be glibc/ELF.
5999linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6000  lt_cv_deplibs_check_method=pass_all
6001  ;;
6002
6003netbsd*)
6004  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6005    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6006  else
6007    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6008  fi
6009  ;;
6010
6011newos6*)
6012  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6013  lt_cv_file_magic_cmd=$FILECMD
6014  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6015  ;;
6016
6017*nto* | *qnx*)
6018  lt_cv_deplibs_check_method=pass_all
6019  ;;
6020
6021openbsd* | bitrig*)
6022  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6023    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6024  else
6025    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6026  fi
6027  ;;
6028
6029osf3* | osf4* | osf5*)
6030  lt_cv_deplibs_check_method=pass_all
6031  ;;
6032
6033rdos*)
6034  lt_cv_deplibs_check_method=pass_all
6035  ;;
6036
6037solaris*)
6038  lt_cv_deplibs_check_method=pass_all
6039  ;;
6040
6041sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6042  lt_cv_deplibs_check_method=pass_all
6043  ;;
6044
6045sysv4 | sysv4.3*)
6046  case $host_vendor in
6047  motorola)
6048    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]'
6049    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6050    ;;
6051  ncr)
6052    lt_cv_deplibs_check_method=pass_all
6053    ;;
6054  sequent)
6055    lt_cv_file_magic_cmd='/bin/file'
6056    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6057    ;;
6058  sni)
6059    lt_cv_file_magic_cmd='/bin/file'
6060    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6061    lt_cv_file_magic_test_file=/lib/libc.so
6062    ;;
6063  siemens)
6064    lt_cv_deplibs_check_method=pass_all
6065    ;;
6066  pc)
6067    lt_cv_deplibs_check_method=pass_all
6068    ;;
6069  esac
6070  ;;
6071
6072tpf*)
6073  lt_cv_deplibs_check_method=pass_all
6074  ;;
6075os2*)
6076  lt_cv_deplibs_check_method=pass_all
6077  ;;
6078esac
6079
6080fi
6081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6082printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6083
6084file_magic_glob=
6085want_nocaseglob=no
6086if test "$build" = "$host"; then
6087  case $host_os in
6088  mingw* | pw32*)
6089    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6090      want_nocaseglob=yes
6091    else
6092      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6093    fi
6094    ;;
6095  esac
6096fi
6097
6098file_magic_cmd=$lt_cv_file_magic_cmd
6099deplibs_check_method=$lt_cv_deplibs_check_method
6100test -z "$deplibs_check_method" && deplibs_check_method=unknown
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123if test -n "$ac_tool_prefix"; then
6124  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6125set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127printf %s "checking for $ac_word... " >&6; }
6128if test ${ac_cv_prog_DLLTOOL+y}
6129then :
6130  printf %s "(cached) " >&6
6131else $as_nop
6132  if test -n "$DLLTOOL"; then
6133  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6134else
6135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136for as_dir in $PATH
6137do
6138  IFS=$as_save_IFS
6139  case $as_dir in #(((
6140    '') as_dir=./ ;;
6141    */) ;;
6142    *) as_dir=$as_dir/ ;;
6143  esac
6144    for ac_exec_ext in '' $ac_executable_extensions; do
6145  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6146    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6147    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6148    break 2
6149  fi
6150done
6151  done
6152IFS=$as_save_IFS
6153
6154fi
6155fi
6156DLLTOOL=$ac_cv_prog_DLLTOOL
6157if test -n "$DLLTOOL"; then
6158  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6159printf "%s\n" "$DLLTOOL" >&6; }
6160else
6161  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6162printf "%s\n" "no" >&6; }
6163fi
6164
6165
6166fi
6167if test -z "$ac_cv_prog_DLLTOOL"; then
6168  ac_ct_DLLTOOL=$DLLTOOL
6169  # Extract the first word of "dlltool", so it can be a program name with args.
6170set dummy dlltool; ac_word=$2
6171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6172printf %s "checking for $ac_word... " >&6; }
6173if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6174then :
6175  printf %s "(cached) " >&6
6176else $as_nop
6177  if test -n "$ac_ct_DLLTOOL"; then
6178  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6179else
6180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181for as_dir in $PATH
6182do
6183  IFS=$as_save_IFS
6184  case $as_dir in #(((
6185    '') as_dir=./ ;;
6186    */) ;;
6187    *) as_dir=$as_dir/ ;;
6188  esac
6189    for ac_exec_ext in '' $ac_executable_extensions; do
6190  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6191    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6192    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6193    break 2
6194  fi
6195done
6196  done
6197IFS=$as_save_IFS
6198
6199fi
6200fi
6201ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6202if test -n "$ac_ct_DLLTOOL"; then
6203  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6204printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6205else
6206  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6207printf "%s\n" "no" >&6; }
6208fi
6209
6210  if test "x$ac_ct_DLLTOOL" = x; then
6211    DLLTOOL="false"
6212  else
6213    case $cross_compiling:$ac_tool_warned in
6214yes:)
6215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6216printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6217ac_tool_warned=yes ;;
6218esac
6219    DLLTOOL=$ac_ct_DLLTOOL
6220  fi
6221else
6222  DLLTOOL="$ac_cv_prog_DLLTOOL"
6223fi
6224
6225test -z "$DLLTOOL" && DLLTOOL=dlltool
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6237printf %s "checking how to associate runtime and link libraries... " >&6; }
6238if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6239then :
6240  printf %s "(cached) " >&6
6241else $as_nop
6242  lt_cv_sharedlib_from_linklib_cmd='unknown'
6243
6244case $host_os in
6245cygwin* | mingw* | pw32* | cegcc*)
6246  # two different shell functions defined in ltmain.sh;
6247  # decide which one to use based on capabilities of $DLLTOOL
6248  case `$DLLTOOL --help 2>&1` in
6249  *--identify-strict*)
6250    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6251    ;;
6252  *)
6253    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6254    ;;
6255  esac
6256  ;;
6257*)
6258  # fallback: assume linklib IS sharedlib
6259  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6260  ;;
6261esac
6262
6263fi
6264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6265printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6266sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6267test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6268
6269
6270
6271
6272
6273
6274
6275
6276if test -n "$ac_tool_prefix"; then
6277  for ac_prog in ar
6278  do
6279    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6280set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6282printf %s "checking for $ac_word... " >&6; }
6283if test ${ac_cv_prog_AR+y}
6284then :
6285  printf %s "(cached) " >&6
6286else $as_nop
6287  if test -n "$AR"; then
6288  ac_cv_prog_AR="$AR" # Let the user override the test.
6289else
6290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291for as_dir in $PATH
6292do
6293  IFS=$as_save_IFS
6294  case $as_dir in #(((
6295    '') as_dir=./ ;;
6296    */) ;;
6297    *) as_dir=$as_dir/ ;;
6298  esac
6299    for ac_exec_ext in '' $ac_executable_extensions; do
6300  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6301    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6302    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6303    break 2
6304  fi
6305done
6306  done
6307IFS=$as_save_IFS
6308
6309fi
6310fi
6311AR=$ac_cv_prog_AR
6312if test -n "$AR"; then
6313  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6314printf "%s\n" "$AR" >&6; }
6315else
6316  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317printf "%s\n" "no" >&6; }
6318fi
6319
6320
6321    test -n "$AR" && break
6322  done
6323fi
6324if test -z "$AR"; then
6325  ac_ct_AR=$AR
6326  for ac_prog in ar
6327do
6328  # Extract the first word of "$ac_prog", so it can be a program name with args.
6329set dummy $ac_prog; ac_word=$2
6330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6331printf %s "checking for $ac_word... " >&6; }
6332if test ${ac_cv_prog_ac_ct_AR+y}
6333then :
6334  printf %s "(cached) " >&6
6335else $as_nop
6336  if test -n "$ac_ct_AR"; then
6337  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6338else
6339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340for as_dir in $PATH
6341do
6342  IFS=$as_save_IFS
6343  case $as_dir in #(((
6344    '') as_dir=./ ;;
6345    */) ;;
6346    *) as_dir=$as_dir/ ;;
6347  esac
6348    for ac_exec_ext in '' $ac_executable_extensions; do
6349  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6350    ac_cv_prog_ac_ct_AR="$ac_prog"
6351    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6352    break 2
6353  fi
6354done
6355  done
6356IFS=$as_save_IFS
6357
6358fi
6359fi
6360ac_ct_AR=$ac_cv_prog_ac_ct_AR
6361if test -n "$ac_ct_AR"; then
6362  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6363printf "%s\n" "$ac_ct_AR" >&6; }
6364else
6365  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6366printf "%s\n" "no" >&6; }
6367fi
6368
6369
6370  test -n "$ac_ct_AR" && break
6371done
6372
6373  if test "x$ac_ct_AR" = x; then
6374    AR="false"
6375  else
6376    case $cross_compiling:$ac_tool_warned in
6377yes:)
6378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6379printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6380ac_tool_warned=yes ;;
6381esac
6382    AR=$ac_ct_AR
6383  fi
6384fi
6385
6386: ${AR=ar}
6387
6388
6389
6390
6391
6392
6393# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6394# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6395# higher priority because thats what people were doing historically (setting
6396# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6397# variable obsoleted/removed.
6398
6399test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6400lt_ar_flags=$AR_FLAGS
6401
6402
6403
6404
6405
6406
6407# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6408# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6409
6410
6411
6412
6413
6414
6415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6416printf %s "checking for archiver @FILE support... " >&6; }
6417if test ${lt_cv_ar_at_file+y}
6418then :
6419  printf %s "(cached) " >&6
6420else $as_nop
6421  lt_cv_ar_at_file=no
6422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423/* end confdefs.h.  */
6424
6425int
6426main (void)
6427{
6428
6429  ;
6430  return 0;
6431}
6432_ACEOF
6433if ac_fn_c_try_compile "$LINENO"
6434then :
6435  echo conftest.$ac_objext > conftest.lst
6436      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6437      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6438  (eval $lt_ar_try) 2>&5
6439  ac_status=$?
6440  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6441  test $ac_status = 0; }
6442      if test 0 -eq "$ac_status"; then
6443	# Ensure the archiver fails upon bogus file names.
6444	rm -f conftest.$ac_objext libconftest.a
6445	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6446  (eval $lt_ar_try) 2>&5
6447  ac_status=$?
6448  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6449  test $ac_status = 0; }
6450	if test 0 -ne "$ac_status"; then
6451          lt_cv_ar_at_file=@
6452        fi
6453      fi
6454      rm -f conftest.* libconftest.a
6455
6456fi
6457rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6458
6459fi
6460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6461printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6462
6463if test no = "$lt_cv_ar_at_file"; then
6464  archiver_list_spec=
6465else
6466  archiver_list_spec=$lt_cv_ar_at_file
6467fi
6468
6469
6470
6471
6472
6473
6474
6475if test -n "$ac_tool_prefix"; then
6476  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6477set dummy ${ac_tool_prefix}strip; ac_word=$2
6478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6479printf %s "checking for $ac_word... " >&6; }
6480if test ${ac_cv_prog_STRIP+y}
6481then :
6482  printf %s "(cached) " >&6
6483else $as_nop
6484  if test -n "$STRIP"; then
6485  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6486else
6487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488for as_dir in $PATH
6489do
6490  IFS=$as_save_IFS
6491  case $as_dir in #(((
6492    '') as_dir=./ ;;
6493    */) ;;
6494    *) as_dir=$as_dir/ ;;
6495  esac
6496    for ac_exec_ext in '' $ac_executable_extensions; do
6497  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6498    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6499    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6500    break 2
6501  fi
6502done
6503  done
6504IFS=$as_save_IFS
6505
6506fi
6507fi
6508STRIP=$ac_cv_prog_STRIP
6509if test -n "$STRIP"; then
6510  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6511printf "%s\n" "$STRIP" >&6; }
6512else
6513  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514printf "%s\n" "no" >&6; }
6515fi
6516
6517
6518fi
6519if test -z "$ac_cv_prog_STRIP"; then
6520  ac_ct_STRIP=$STRIP
6521  # Extract the first word of "strip", so it can be a program name with args.
6522set dummy strip; ac_word=$2
6523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6524printf %s "checking for $ac_word... " >&6; }
6525if test ${ac_cv_prog_ac_ct_STRIP+y}
6526then :
6527  printf %s "(cached) " >&6
6528else $as_nop
6529  if test -n "$ac_ct_STRIP"; then
6530  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6531else
6532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533for as_dir in $PATH
6534do
6535  IFS=$as_save_IFS
6536  case $as_dir in #(((
6537    '') as_dir=./ ;;
6538    */) ;;
6539    *) as_dir=$as_dir/ ;;
6540  esac
6541    for ac_exec_ext in '' $ac_executable_extensions; do
6542  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6543    ac_cv_prog_ac_ct_STRIP="strip"
6544    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6545    break 2
6546  fi
6547done
6548  done
6549IFS=$as_save_IFS
6550
6551fi
6552fi
6553ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6554if test -n "$ac_ct_STRIP"; then
6555  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6556printf "%s\n" "$ac_ct_STRIP" >&6; }
6557else
6558  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559printf "%s\n" "no" >&6; }
6560fi
6561
6562  if test "x$ac_ct_STRIP" = x; then
6563    STRIP=":"
6564  else
6565    case $cross_compiling:$ac_tool_warned in
6566yes:)
6567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6568printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6569ac_tool_warned=yes ;;
6570esac
6571    STRIP=$ac_ct_STRIP
6572  fi
6573else
6574  STRIP="$ac_cv_prog_STRIP"
6575fi
6576
6577test -z "$STRIP" && STRIP=:
6578
6579
6580
6581
6582
6583
6584if test -n "$ac_tool_prefix"; then
6585  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6586set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6588printf %s "checking for $ac_word... " >&6; }
6589if test ${ac_cv_prog_RANLIB+y}
6590then :
6591  printf %s "(cached) " >&6
6592else $as_nop
6593  if test -n "$RANLIB"; then
6594  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6595else
6596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597for as_dir in $PATH
6598do
6599  IFS=$as_save_IFS
6600  case $as_dir in #(((
6601    '') as_dir=./ ;;
6602    */) ;;
6603    *) as_dir=$as_dir/ ;;
6604  esac
6605    for ac_exec_ext in '' $ac_executable_extensions; do
6606  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6607    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6608    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6609    break 2
6610  fi
6611done
6612  done
6613IFS=$as_save_IFS
6614
6615fi
6616fi
6617RANLIB=$ac_cv_prog_RANLIB
6618if test -n "$RANLIB"; then
6619  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6620printf "%s\n" "$RANLIB" >&6; }
6621else
6622  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623printf "%s\n" "no" >&6; }
6624fi
6625
6626
6627fi
6628if test -z "$ac_cv_prog_RANLIB"; then
6629  ac_ct_RANLIB=$RANLIB
6630  # Extract the first word of "ranlib", so it can be a program name with args.
6631set dummy ranlib; ac_word=$2
6632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6633printf %s "checking for $ac_word... " >&6; }
6634if test ${ac_cv_prog_ac_ct_RANLIB+y}
6635then :
6636  printf %s "(cached) " >&6
6637else $as_nop
6638  if test -n "$ac_ct_RANLIB"; then
6639  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6640else
6641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642for as_dir in $PATH
6643do
6644  IFS=$as_save_IFS
6645  case $as_dir in #(((
6646    '') as_dir=./ ;;
6647    */) ;;
6648    *) as_dir=$as_dir/ ;;
6649  esac
6650    for ac_exec_ext in '' $ac_executable_extensions; do
6651  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6652    ac_cv_prog_ac_ct_RANLIB="ranlib"
6653    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6654    break 2
6655  fi
6656done
6657  done
6658IFS=$as_save_IFS
6659
6660fi
6661fi
6662ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6663if test -n "$ac_ct_RANLIB"; then
6664  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6665printf "%s\n" "$ac_ct_RANLIB" >&6; }
6666else
6667  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6668printf "%s\n" "no" >&6; }
6669fi
6670
6671  if test "x$ac_ct_RANLIB" = x; then
6672    RANLIB=":"
6673  else
6674    case $cross_compiling:$ac_tool_warned in
6675yes:)
6676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6677printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6678ac_tool_warned=yes ;;
6679esac
6680    RANLIB=$ac_ct_RANLIB
6681  fi
6682else
6683  RANLIB="$ac_cv_prog_RANLIB"
6684fi
6685
6686test -z "$RANLIB" && RANLIB=:
6687
6688
6689
6690
6691
6692
6693# Determine commands to create old-style static archives.
6694old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6695old_postinstall_cmds='chmod 644 $oldlib'
6696old_postuninstall_cmds=
6697
6698if test -n "$RANLIB"; then
6699  case $host_os in
6700  bitrig* | openbsd*)
6701    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6702    ;;
6703  *)
6704    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6705    ;;
6706  esac
6707  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6708fi
6709
6710case $host_os in
6711  darwin*)
6712    lock_old_archive_extraction=yes ;;
6713  *)
6714    lock_old_archive_extraction=no ;;
6715esac
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755# If no C compiler was specified, use CC.
6756LTCC=${LTCC-"$CC"}
6757
6758# If no C compiler flags were specified, use CFLAGS.
6759LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6760
6761# Allow CC to be a program name with arguments.
6762compiler=$CC
6763
6764
6765# Check for command to grab the raw symbol name followed by C symbol from nm.
6766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6767printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6768if test ${lt_cv_sys_global_symbol_pipe+y}
6769then :
6770  printf %s "(cached) " >&6
6771else $as_nop
6772
6773# These are sane defaults that work on at least a few old systems.
6774# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6775
6776# Character class describing NM global symbol codes.
6777symcode='[BCDEGRST]'
6778
6779# Regexp to match symbols that can be accessed directly from C.
6780sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6781
6782# Define system-specific variables.
6783case $host_os in
6784aix*)
6785  symcode='[BCDT]'
6786  ;;
6787cygwin* | mingw* | pw32* | cegcc*)
6788  symcode='[ABCDGISTW]'
6789  ;;
6790hpux*)
6791  if test ia64 = "$host_cpu"; then
6792    symcode='[ABCDEGRST]'
6793  fi
6794  ;;
6795irix* | nonstopux*)
6796  symcode='[BCDEGRST]'
6797  ;;
6798osf*)
6799  symcode='[BCDEGQRST]'
6800  ;;
6801solaris*)
6802  symcode='[BDRT]'
6803  ;;
6804sco3.2v5*)
6805  symcode='[DT]'
6806  ;;
6807sysv4.2uw2*)
6808  symcode='[DT]'
6809  ;;
6810sysv5* | sco5v6* | unixware* | OpenUNIX*)
6811  symcode='[ABDT]'
6812  ;;
6813sysv4)
6814  symcode='[DFNSTU]'
6815  ;;
6816esac
6817
6818# If we're using GNU nm, then use its standard symbol codes.
6819case `$NM -V 2>&1` in
6820*GNU* | *'with BFD'*)
6821  symcode='[ABCDGIRSTW]' ;;
6822esac
6823
6824if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6825  # Gets list of data symbols to import.
6826  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6827  # Adjust the below global symbol transforms to fixup imported variables.
6828  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6829  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6830  lt_c_name_lib_hook="\
6831  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6832  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6833else
6834  # Disable hooks by default.
6835  lt_cv_sys_global_symbol_to_import=
6836  lt_cdecl_hook=
6837  lt_c_name_hook=
6838  lt_c_name_lib_hook=
6839fi
6840
6841# Transform an extracted symbol line into a proper C declaration.
6842# Some systems (esp. on ia64) link data and code symbols differently,
6843# so use this general approach.
6844lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6845$lt_cdecl_hook\
6846" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6847" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6848
6849# Transform an extracted symbol line into symbol name and symbol address
6850lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6851$lt_c_name_hook\
6852" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6853" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6854
6855# Transform an extracted symbol line into symbol name with lib prefix and
6856# symbol address.
6857lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6858$lt_c_name_lib_hook\
6859" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6860" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6861" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6862
6863# Handle CRLF in mingw tool chain
6864opt_cr=
6865case $build_os in
6866mingw*)
6867  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6868  ;;
6869esac
6870
6871# Try without a prefix underscore, then with it.
6872for ac_symprfx in "" "_"; do
6873
6874  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6875  symxfrm="\\1 $ac_symprfx\\2 \\2"
6876
6877  # Write the raw and C identifiers.
6878  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6879    # Fake it for dumpbin and say T for any non-static function,
6880    # D for any global variable and I for any imported variable.
6881    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6882    # which start with @ or ?.
6883    lt_cv_sys_global_symbol_pipe="$AWK '"\
6884"     {last_section=section; section=\$ 3};"\
6885"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6886"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6887"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6888"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6889"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6890"     \$ 0!~/External *\|/{next};"\
6891"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6892"     {if(hide[section]) next};"\
6893"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6894"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6895"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6896"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6897"     ' prfx=^$ac_symprfx"
6898  else
6899    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6900  fi
6901  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6902
6903  # Check to see that the pipe works correctly.
6904  pipe_works=no
6905
6906  rm -f conftest*
6907  cat > conftest.$ac_ext <<_LT_EOF
6908#ifdef __cplusplus
6909extern "C" {
6910#endif
6911char nm_test_var;
6912void nm_test_func(void);
6913void nm_test_func(void){}
6914#ifdef __cplusplus
6915}
6916#endif
6917int main(){nm_test_var='a';nm_test_func();return(0);}
6918_LT_EOF
6919
6920  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6921  (eval $ac_compile) 2>&5
6922  ac_status=$?
6923  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6924  test $ac_status = 0; }; then
6925    # Now try to grab the symbols.
6926    nlist=conftest.nm
6927    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6928  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6929  ac_status=$?
6930  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6931  test $ac_status = 0; } && test -s "$nlist"; then
6932      # Try sorting and uniquifying the output.
6933      if sort "$nlist" | uniq > "$nlist"T; then
6934	mv -f "$nlist"T "$nlist"
6935      else
6936	rm -f "$nlist"T
6937      fi
6938
6939      # Make sure that we snagged all the symbols we need.
6940      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6941	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6942	  cat <<_LT_EOF > conftest.$ac_ext
6943/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6944#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6945/* DATA imports from DLLs on WIN32 can't be const, because runtime
6946   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6947# define LT_DLSYM_CONST
6948#elif defined __osf__
6949/* This system does not cope well with relocations in const data.  */
6950# define LT_DLSYM_CONST
6951#else
6952# define LT_DLSYM_CONST const
6953#endif
6954
6955#ifdef __cplusplus
6956extern "C" {
6957#endif
6958
6959_LT_EOF
6960	  # Now generate the symbol file.
6961	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6962
6963	  cat <<_LT_EOF >> conftest.$ac_ext
6964
6965/* The mapping between symbol names and symbols.  */
6966LT_DLSYM_CONST struct {
6967  const char *name;
6968  void       *address;
6969}
6970lt__PROGRAM__LTX_preloaded_symbols[] =
6971{
6972  { "@PROGRAM@", (void *) 0 },
6973_LT_EOF
6974	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6975	  cat <<\_LT_EOF >> conftest.$ac_ext
6976  {0, (void *) 0}
6977};
6978
6979/* This works around a problem in FreeBSD linker */
6980#ifdef FREEBSD_WORKAROUND
6981static const void *lt_preloaded_setup() {
6982  return lt__PROGRAM__LTX_preloaded_symbols;
6983}
6984#endif
6985
6986#ifdef __cplusplus
6987}
6988#endif
6989_LT_EOF
6990	  # Now try linking the two files.
6991	  mv conftest.$ac_objext conftstm.$ac_objext
6992	  lt_globsym_save_LIBS=$LIBS
6993	  lt_globsym_save_CFLAGS=$CFLAGS
6994	  LIBS=conftstm.$ac_objext
6995	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6996	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6997  (eval $ac_link) 2>&5
6998  ac_status=$?
6999  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7000  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7001	    pipe_works=yes
7002	  fi
7003	  LIBS=$lt_globsym_save_LIBS
7004	  CFLAGS=$lt_globsym_save_CFLAGS
7005	else
7006	  echo "cannot find nm_test_func in $nlist" >&5
7007	fi
7008      else
7009	echo "cannot find nm_test_var in $nlist" >&5
7010      fi
7011    else
7012      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7013    fi
7014  else
7015    echo "$progname: failed program was:" >&5
7016    cat conftest.$ac_ext >&5
7017  fi
7018  rm -rf conftest* conftst*
7019
7020  # Do not use the global_symbol_pipe unless it works.
7021  if test yes = "$pipe_works"; then
7022    break
7023  else
7024    lt_cv_sys_global_symbol_pipe=
7025  fi
7026done
7027
7028fi
7029
7030if test -z "$lt_cv_sys_global_symbol_pipe"; then
7031  lt_cv_sys_global_symbol_to_cdecl=
7032fi
7033if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7034  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7035printf "%s\n" "failed" >&6; }
7036else
7037  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7038printf "%s\n" "ok" >&6; }
7039fi
7040
7041# Response file support.
7042if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7043  nm_file_list_spec='@'
7044elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7045  nm_file_list_spec='@'
7046fi
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7085printf %s "checking for sysroot... " >&6; }
7086
7087# Check whether --with-sysroot was given.
7088if test ${with_sysroot+y}
7089then :
7090  withval=$with_sysroot;
7091else $as_nop
7092  with_sysroot=no
7093fi
7094
7095
7096lt_sysroot=
7097case $with_sysroot in #(
7098 yes)
7099   if test yes = "$GCC"; then
7100     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7101   fi
7102   ;; #(
7103 /*)
7104   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7105   ;; #(
7106 no|'')
7107   ;; #(
7108 *)
7109   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7110printf "%s\n" "$with_sysroot" >&6; }
7111   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7112   ;;
7113esac
7114
7115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7116printf "%s\n" "${lt_sysroot:-no}" >&6; }
7117
7118
7119
7120
7121
7122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7123printf %s "checking for a working dd... " >&6; }
7124if test ${ac_cv_path_lt_DD+y}
7125then :
7126  printf %s "(cached) " >&6
7127else $as_nop
7128  printf 0123456789abcdef0123456789abcdef >conftest.i
7129cat conftest.i conftest.i >conftest2.i
7130: ${lt_DD:=$DD}
7131if test -z "$lt_DD"; then
7132  ac_path_lt_DD_found=false
7133  # Loop through the user's path and test for each of PROGNAME-LIST
7134  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135for as_dir in $PATH
7136do
7137  IFS=$as_save_IFS
7138  case $as_dir in #(((
7139    '') as_dir=./ ;;
7140    */) ;;
7141    *) as_dir=$as_dir/ ;;
7142  esac
7143    for ac_prog in dd
7144   do
7145    for ac_exec_ext in '' $ac_executable_extensions; do
7146      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7147      as_fn_executable_p "$ac_path_lt_DD" || continue
7148if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7149  cmp -s conftest.i conftest.out \
7150  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7151fi
7152      $ac_path_lt_DD_found && break 3
7153    done
7154  done
7155  done
7156IFS=$as_save_IFS
7157  if test -z "$ac_cv_path_lt_DD"; then
7158    :
7159  fi
7160else
7161  ac_cv_path_lt_DD=$lt_DD
7162fi
7163
7164rm -f conftest.i conftest2.i conftest.out
7165fi
7166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7167printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7168
7169
7170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7171printf %s "checking how to truncate binary pipes... " >&6; }
7172if test ${lt_cv_truncate_bin+y}
7173then :
7174  printf %s "(cached) " >&6
7175else $as_nop
7176  printf 0123456789abcdef0123456789abcdef >conftest.i
7177cat conftest.i conftest.i >conftest2.i
7178lt_cv_truncate_bin=
7179if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7180  cmp -s conftest.i conftest.out \
7181  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7182fi
7183rm -f conftest.i conftest2.i conftest.out
7184test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7185fi
7186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7187printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7188
7189
7190
7191
7192
7193
7194
7195# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7196func_cc_basename ()
7197{
7198    for cc_temp in $*""; do
7199      case $cc_temp in
7200        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7201        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7202        \-*) ;;
7203        *) break;;
7204      esac
7205    done
7206    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7207}
7208
7209# Check whether --enable-libtool-lock was given.
7210if test ${enable_libtool_lock+y}
7211then :
7212  enableval=$enable_libtool_lock;
7213fi
7214
7215test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7216
7217# Some flags need to be propagated to the compiler or linker for good
7218# libtool support.
7219case $host in
7220ia64-*-hpux*)
7221  # Find out what ABI is being produced by ac_compile, and set mode
7222  # options accordingly.
7223  echo 'int i;' > conftest.$ac_ext
7224  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7225  (eval $ac_compile) 2>&5
7226  ac_status=$?
7227  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7228  test $ac_status = 0; }; then
7229    case `$FILECMD conftest.$ac_objext` in
7230      *ELF-32*)
7231	HPUX_IA64_MODE=32
7232	;;
7233      *ELF-64*)
7234	HPUX_IA64_MODE=64
7235	;;
7236    esac
7237  fi
7238  rm -rf conftest*
7239  ;;
7240*-*-irix6*)
7241  # Find out what ABI is being produced by ac_compile, and set linker
7242  # options accordingly.
7243  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7244  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7245  (eval $ac_compile) 2>&5
7246  ac_status=$?
7247  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7248  test $ac_status = 0; }; then
7249    if test yes = "$lt_cv_prog_gnu_ld"; then
7250      case `$FILECMD conftest.$ac_objext` in
7251	*32-bit*)
7252	  LD="${LD-ld} -melf32bsmip"
7253	  ;;
7254	*N32*)
7255	  LD="${LD-ld} -melf32bmipn32"
7256	  ;;
7257	*64-bit*)
7258	  LD="${LD-ld} -melf64bmip"
7259	;;
7260      esac
7261    else
7262      case `$FILECMD conftest.$ac_objext` in
7263	*32-bit*)
7264	  LD="${LD-ld} -32"
7265	  ;;
7266	*N32*)
7267	  LD="${LD-ld} -n32"
7268	  ;;
7269	*64-bit*)
7270	  LD="${LD-ld} -64"
7271	  ;;
7272      esac
7273    fi
7274  fi
7275  rm -rf conftest*
7276  ;;
7277
7278mips64*-*linux*)
7279  # Find out what ABI is being produced by ac_compile, and set linker
7280  # options accordingly.
7281  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7282  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7283  (eval $ac_compile) 2>&5
7284  ac_status=$?
7285  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7286  test $ac_status = 0; }; then
7287    emul=elf
7288    case `$FILECMD conftest.$ac_objext` in
7289      *32-bit*)
7290	emul="${emul}32"
7291	;;
7292      *64-bit*)
7293	emul="${emul}64"
7294	;;
7295    esac
7296    case `$FILECMD conftest.$ac_objext` in
7297      *MSB*)
7298	emul="${emul}btsmip"
7299	;;
7300      *LSB*)
7301	emul="${emul}ltsmip"
7302	;;
7303    esac
7304    case `$FILECMD conftest.$ac_objext` in
7305      *N32*)
7306	emul="${emul}n32"
7307	;;
7308    esac
7309    LD="${LD-ld} -m $emul"
7310  fi
7311  rm -rf conftest*
7312  ;;
7313
7314x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7315s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7316  # Find out what ABI is being produced by ac_compile, and set linker
7317  # options accordingly.  Note that the listed cases only cover the
7318  # situations where additional linker options are needed (such as when
7319  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7320  # vice versa); the common cases where no linker options are needed do
7321  # not appear in the list.
7322  echo 'int i;' > conftest.$ac_ext
7323  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7324  (eval $ac_compile) 2>&5
7325  ac_status=$?
7326  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7327  test $ac_status = 0; }; then
7328    case `$FILECMD conftest.o` in
7329      *32-bit*)
7330	case $host in
7331	  x86_64-*kfreebsd*-gnu)
7332	    LD="${LD-ld} -m elf_i386_fbsd"
7333	    ;;
7334	  x86_64-*linux*)
7335	    case `$FILECMD conftest.o` in
7336	      *x86-64*)
7337		LD="${LD-ld} -m elf32_x86_64"
7338		;;
7339	      *)
7340		LD="${LD-ld} -m elf_i386"
7341		;;
7342	    esac
7343	    ;;
7344	  powerpc64le-*linux*)
7345	    LD="${LD-ld} -m elf32lppclinux"
7346	    ;;
7347	  powerpc64-*linux*)
7348	    LD="${LD-ld} -m elf32ppclinux"
7349	    ;;
7350	  s390x-*linux*)
7351	    LD="${LD-ld} -m elf_s390"
7352	    ;;
7353	  sparc64-*linux*)
7354	    LD="${LD-ld} -m elf32_sparc"
7355	    ;;
7356	esac
7357	;;
7358      *64-bit*)
7359	case $host in
7360	  x86_64-*kfreebsd*-gnu)
7361	    LD="${LD-ld} -m elf_x86_64_fbsd"
7362	    ;;
7363	  x86_64-*linux*)
7364	    LD="${LD-ld} -m elf_x86_64"
7365	    ;;
7366	  powerpcle-*linux*)
7367	    LD="${LD-ld} -m elf64lppc"
7368	    ;;
7369	  powerpc-*linux*)
7370	    LD="${LD-ld} -m elf64ppc"
7371	    ;;
7372	  s390*-*linux*|s390*-*tpf*)
7373	    LD="${LD-ld} -m elf64_s390"
7374	    ;;
7375	  sparc*-*linux*)
7376	    LD="${LD-ld} -m elf64_sparc"
7377	    ;;
7378	esac
7379	;;
7380    esac
7381  fi
7382  rm -rf conftest*
7383  ;;
7384
7385*-*-sco3.2v5*)
7386  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7387  SAVE_CFLAGS=$CFLAGS
7388  CFLAGS="$CFLAGS -belf"
7389  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7390printf %s "checking whether the C compiler needs -belf... " >&6; }
7391if test ${lt_cv_cc_needs_belf+y}
7392then :
7393  printf %s "(cached) " >&6
7394else $as_nop
7395  ac_ext=c
7396ac_cpp='$CPP $CPPFLAGS'
7397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7399ac_compiler_gnu=$ac_cv_c_compiler_gnu
7400
7401     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402/* end confdefs.h.  */
7403
7404int
7405main (void)
7406{
7407
7408  ;
7409  return 0;
7410}
7411_ACEOF
7412if ac_fn_c_try_link "$LINENO"
7413then :
7414  lt_cv_cc_needs_belf=yes
7415else $as_nop
7416  lt_cv_cc_needs_belf=no
7417fi
7418rm -f core conftest.err conftest.$ac_objext conftest.beam \
7419    conftest$ac_exeext conftest.$ac_ext
7420     ac_ext=c
7421ac_cpp='$CPP $CPPFLAGS'
7422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7424ac_compiler_gnu=$ac_cv_c_compiler_gnu
7425
7426fi
7427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7428printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7429  if test yes != "$lt_cv_cc_needs_belf"; then
7430    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7431    CFLAGS=$SAVE_CFLAGS
7432  fi
7433  ;;
7434*-*solaris*)
7435  # Find out what ABI is being produced by ac_compile, and set linker
7436  # options accordingly.
7437  echo 'int i;' > conftest.$ac_ext
7438  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7439  (eval $ac_compile) 2>&5
7440  ac_status=$?
7441  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7442  test $ac_status = 0; }; then
7443    case `$FILECMD conftest.o` in
7444    *64-bit*)
7445      case $lt_cv_prog_gnu_ld in
7446      yes*)
7447        case $host in
7448        i?86-*-solaris*|x86_64-*-solaris*)
7449          LD="${LD-ld} -m elf_x86_64"
7450          ;;
7451        sparc*-*-solaris*)
7452          LD="${LD-ld} -m elf64_sparc"
7453          ;;
7454        esac
7455        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7456        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7457          LD=${LD-ld}_sol2
7458        fi
7459        ;;
7460      *)
7461	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7462	  LD="${LD-ld} -64"
7463	fi
7464	;;
7465      esac
7466      ;;
7467    esac
7468  fi
7469  rm -rf conftest*
7470  ;;
7471esac
7472
7473need_locks=$enable_libtool_lock
7474
7475if test -n "$ac_tool_prefix"; then
7476  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7477set dummy ${ac_tool_prefix}mt; ac_word=$2
7478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7479printf %s "checking for $ac_word... " >&6; }
7480if test ${ac_cv_prog_MANIFEST_TOOL+y}
7481then :
7482  printf %s "(cached) " >&6
7483else $as_nop
7484  if test -n "$MANIFEST_TOOL"; then
7485  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7486else
7487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488for as_dir in $PATH
7489do
7490  IFS=$as_save_IFS
7491  case $as_dir in #(((
7492    '') as_dir=./ ;;
7493    */) ;;
7494    *) as_dir=$as_dir/ ;;
7495  esac
7496    for ac_exec_ext in '' $ac_executable_extensions; do
7497  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7498    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7499    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7500    break 2
7501  fi
7502done
7503  done
7504IFS=$as_save_IFS
7505
7506fi
7507fi
7508MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7509if test -n "$MANIFEST_TOOL"; then
7510  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7511printf "%s\n" "$MANIFEST_TOOL" >&6; }
7512else
7513  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514printf "%s\n" "no" >&6; }
7515fi
7516
7517
7518fi
7519if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7520  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7521  # Extract the first word of "mt", so it can be a program name with args.
7522set dummy mt; ac_word=$2
7523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7524printf %s "checking for $ac_word... " >&6; }
7525if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7526then :
7527  printf %s "(cached) " >&6
7528else $as_nop
7529  if test -n "$ac_ct_MANIFEST_TOOL"; then
7530  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7531else
7532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533for as_dir in $PATH
7534do
7535  IFS=$as_save_IFS
7536  case $as_dir in #(((
7537    '') as_dir=./ ;;
7538    */) ;;
7539    *) as_dir=$as_dir/ ;;
7540  esac
7541    for ac_exec_ext in '' $ac_executable_extensions; do
7542  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7543    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7544    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7545    break 2
7546  fi
7547done
7548  done
7549IFS=$as_save_IFS
7550
7551fi
7552fi
7553ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7554if test -n "$ac_ct_MANIFEST_TOOL"; then
7555  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7556printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7557else
7558  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7559printf "%s\n" "no" >&6; }
7560fi
7561
7562  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7563    MANIFEST_TOOL=":"
7564  else
7565    case $cross_compiling:$ac_tool_warned in
7566yes:)
7567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7568printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7569ac_tool_warned=yes ;;
7570esac
7571    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7572  fi
7573else
7574  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7575fi
7576
7577test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7579printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7580if test ${lt_cv_path_mainfest_tool+y}
7581then :
7582  printf %s "(cached) " >&6
7583else $as_nop
7584  lt_cv_path_mainfest_tool=no
7585  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7586  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7587  cat conftest.err >&5
7588  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7589    lt_cv_path_mainfest_tool=yes
7590  fi
7591  rm -f conftest*
7592fi
7593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7594printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7595if test yes != "$lt_cv_path_mainfest_tool"; then
7596  MANIFEST_TOOL=:
7597fi
7598
7599
7600
7601
7602
7603
7604  case $host_os in
7605    rhapsody* | darwin*)
7606    if test -n "$ac_tool_prefix"; then
7607  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7608set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7610printf %s "checking for $ac_word... " >&6; }
7611if test ${ac_cv_prog_DSYMUTIL+y}
7612then :
7613  printf %s "(cached) " >&6
7614else $as_nop
7615  if test -n "$DSYMUTIL"; then
7616  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7617else
7618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619for as_dir in $PATH
7620do
7621  IFS=$as_save_IFS
7622  case $as_dir in #(((
7623    '') as_dir=./ ;;
7624    */) ;;
7625    *) as_dir=$as_dir/ ;;
7626  esac
7627    for ac_exec_ext in '' $ac_executable_extensions; do
7628  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7629    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7630    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7631    break 2
7632  fi
7633done
7634  done
7635IFS=$as_save_IFS
7636
7637fi
7638fi
7639DSYMUTIL=$ac_cv_prog_DSYMUTIL
7640if test -n "$DSYMUTIL"; then
7641  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7642printf "%s\n" "$DSYMUTIL" >&6; }
7643else
7644  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645printf "%s\n" "no" >&6; }
7646fi
7647
7648
7649fi
7650if test -z "$ac_cv_prog_DSYMUTIL"; then
7651  ac_ct_DSYMUTIL=$DSYMUTIL
7652  # Extract the first word of "dsymutil", so it can be a program name with args.
7653set dummy dsymutil; ac_word=$2
7654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7655printf %s "checking for $ac_word... " >&6; }
7656if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7657then :
7658  printf %s "(cached) " >&6
7659else $as_nop
7660  if test -n "$ac_ct_DSYMUTIL"; then
7661  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7662else
7663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664for as_dir in $PATH
7665do
7666  IFS=$as_save_IFS
7667  case $as_dir in #(((
7668    '') as_dir=./ ;;
7669    */) ;;
7670    *) as_dir=$as_dir/ ;;
7671  esac
7672    for ac_exec_ext in '' $ac_executable_extensions; do
7673  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7674    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7675    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7676    break 2
7677  fi
7678done
7679  done
7680IFS=$as_save_IFS
7681
7682fi
7683fi
7684ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7685if test -n "$ac_ct_DSYMUTIL"; then
7686  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7687printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7688else
7689  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690printf "%s\n" "no" >&6; }
7691fi
7692
7693  if test "x$ac_ct_DSYMUTIL" = x; then
7694    DSYMUTIL=":"
7695  else
7696    case $cross_compiling:$ac_tool_warned in
7697yes:)
7698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7699printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7700ac_tool_warned=yes ;;
7701esac
7702    DSYMUTIL=$ac_ct_DSYMUTIL
7703  fi
7704else
7705  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7706fi
7707
7708    if test -n "$ac_tool_prefix"; then
7709  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7710set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712printf %s "checking for $ac_word... " >&6; }
7713if test ${ac_cv_prog_NMEDIT+y}
7714then :
7715  printf %s "(cached) " >&6
7716else $as_nop
7717  if test -n "$NMEDIT"; then
7718  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7719else
7720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721for as_dir in $PATH
7722do
7723  IFS=$as_save_IFS
7724  case $as_dir in #(((
7725    '') as_dir=./ ;;
7726    */) ;;
7727    *) as_dir=$as_dir/ ;;
7728  esac
7729    for ac_exec_ext in '' $ac_executable_extensions; do
7730  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7731    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7732    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7733    break 2
7734  fi
7735done
7736  done
7737IFS=$as_save_IFS
7738
7739fi
7740fi
7741NMEDIT=$ac_cv_prog_NMEDIT
7742if test -n "$NMEDIT"; then
7743  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7744printf "%s\n" "$NMEDIT" >&6; }
7745else
7746  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747printf "%s\n" "no" >&6; }
7748fi
7749
7750
7751fi
7752if test -z "$ac_cv_prog_NMEDIT"; then
7753  ac_ct_NMEDIT=$NMEDIT
7754  # Extract the first word of "nmedit", so it can be a program name with args.
7755set dummy nmedit; ac_word=$2
7756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7757printf %s "checking for $ac_word... " >&6; }
7758if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7759then :
7760  printf %s "(cached) " >&6
7761else $as_nop
7762  if test -n "$ac_ct_NMEDIT"; then
7763  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7764else
7765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766for as_dir in $PATH
7767do
7768  IFS=$as_save_IFS
7769  case $as_dir in #(((
7770    '') as_dir=./ ;;
7771    */) ;;
7772    *) as_dir=$as_dir/ ;;
7773  esac
7774    for ac_exec_ext in '' $ac_executable_extensions; do
7775  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7776    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7777    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7778    break 2
7779  fi
7780done
7781  done
7782IFS=$as_save_IFS
7783
7784fi
7785fi
7786ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7787if test -n "$ac_ct_NMEDIT"; then
7788  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7789printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7790else
7791  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792printf "%s\n" "no" >&6; }
7793fi
7794
7795  if test "x$ac_ct_NMEDIT" = x; then
7796    NMEDIT=":"
7797  else
7798    case $cross_compiling:$ac_tool_warned in
7799yes:)
7800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7801printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7802ac_tool_warned=yes ;;
7803esac
7804    NMEDIT=$ac_ct_NMEDIT
7805  fi
7806else
7807  NMEDIT="$ac_cv_prog_NMEDIT"
7808fi
7809
7810    if test -n "$ac_tool_prefix"; then
7811  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7812set dummy ${ac_tool_prefix}lipo; ac_word=$2
7813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814printf %s "checking for $ac_word... " >&6; }
7815if test ${ac_cv_prog_LIPO+y}
7816then :
7817  printf %s "(cached) " >&6
7818else $as_nop
7819  if test -n "$LIPO"; then
7820  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7821else
7822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823for as_dir in $PATH
7824do
7825  IFS=$as_save_IFS
7826  case $as_dir in #(((
7827    '') as_dir=./ ;;
7828    */) ;;
7829    *) as_dir=$as_dir/ ;;
7830  esac
7831    for ac_exec_ext in '' $ac_executable_extensions; do
7832  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7833    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7834    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7835    break 2
7836  fi
7837done
7838  done
7839IFS=$as_save_IFS
7840
7841fi
7842fi
7843LIPO=$ac_cv_prog_LIPO
7844if test -n "$LIPO"; then
7845  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7846printf "%s\n" "$LIPO" >&6; }
7847else
7848  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849printf "%s\n" "no" >&6; }
7850fi
7851
7852
7853fi
7854if test -z "$ac_cv_prog_LIPO"; then
7855  ac_ct_LIPO=$LIPO
7856  # Extract the first word of "lipo", so it can be a program name with args.
7857set dummy lipo; ac_word=$2
7858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7859printf %s "checking for $ac_word... " >&6; }
7860if test ${ac_cv_prog_ac_ct_LIPO+y}
7861then :
7862  printf %s "(cached) " >&6
7863else $as_nop
7864  if test -n "$ac_ct_LIPO"; then
7865  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7866else
7867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868for as_dir in $PATH
7869do
7870  IFS=$as_save_IFS
7871  case $as_dir in #(((
7872    '') as_dir=./ ;;
7873    */) ;;
7874    *) as_dir=$as_dir/ ;;
7875  esac
7876    for ac_exec_ext in '' $ac_executable_extensions; do
7877  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7878    ac_cv_prog_ac_ct_LIPO="lipo"
7879    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7880    break 2
7881  fi
7882done
7883  done
7884IFS=$as_save_IFS
7885
7886fi
7887fi
7888ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7889if test -n "$ac_ct_LIPO"; then
7890  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7891printf "%s\n" "$ac_ct_LIPO" >&6; }
7892else
7893  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7894printf "%s\n" "no" >&6; }
7895fi
7896
7897  if test "x$ac_ct_LIPO" = x; then
7898    LIPO=":"
7899  else
7900    case $cross_compiling:$ac_tool_warned in
7901yes:)
7902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7903printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7904ac_tool_warned=yes ;;
7905esac
7906    LIPO=$ac_ct_LIPO
7907  fi
7908else
7909  LIPO="$ac_cv_prog_LIPO"
7910fi
7911
7912    if test -n "$ac_tool_prefix"; then
7913  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7914set dummy ${ac_tool_prefix}otool; ac_word=$2
7915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7916printf %s "checking for $ac_word... " >&6; }
7917if test ${ac_cv_prog_OTOOL+y}
7918then :
7919  printf %s "(cached) " >&6
7920else $as_nop
7921  if test -n "$OTOOL"; then
7922  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7923else
7924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925for as_dir in $PATH
7926do
7927  IFS=$as_save_IFS
7928  case $as_dir in #(((
7929    '') as_dir=./ ;;
7930    */) ;;
7931    *) as_dir=$as_dir/ ;;
7932  esac
7933    for ac_exec_ext in '' $ac_executable_extensions; do
7934  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7935    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7936    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7937    break 2
7938  fi
7939done
7940  done
7941IFS=$as_save_IFS
7942
7943fi
7944fi
7945OTOOL=$ac_cv_prog_OTOOL
7946if test -n "$OTOOL"; then
7947  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7948printf "%s\n" "$OTOOL" >&6; }
7949else
7950  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7951printf "%s\n" "no" >&6; }
7952fi
7953
7954
7955fi
7956if test -z "$ac_cv_prog_OTOOL"; then
7957  ac_ct_OTOOL=$OTOOL
7958  # Extract the first word of "otool", so it can be a program name with args.
7959set dummy otool; ac_word=$2
7960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7961printf %s "checking for $ac_word... " >&6; }
7962if test ${ac_cv_prog_ac_ct_OTOOL+y}
7963then :
7964  printf %s "(cached) " >&6
7965else $as_nop
7966  if test -n "$ac_ct_OTOOL"; then
7967  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7968else
7969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7970for as_dir in $PATH
7971do
7972  IFS=$as_save_IFS
7973  case $as_dir in #(((
7974    '') as_dir=./ ;;
7975    */) ;;
7976    *) as_dir=$as_dir/ ;;
7977  esac
7978    for ac_exec_ext in '' $ac_executable_extensions; do
7979  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7980    ac_cv_prog_ac_ct_OTOOL="otool"
7981    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7982    break 2
7983  fi
7984done
7985  done
7986IFS=$as_save_IFS
7987
7988fi
7989fi
7990ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7991if test -n "$ac_ct_OTOOL"; then
7992  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7993printf "%s\n" "$ac_ct_OTOOL" >&6; }
7994else
7995  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996printf "%s\n" "no" >&6; }
7997fi
7998
7999  if test "x$ac_ct_OTOOL" = x; then
8000    OTOOL=":"
8001  else
8002    case $cross_compiling:$ac_tool_warned in
8003yes:)
8004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8005printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8006ac_tool_warned=yes ;;
8007esac
8008    OTOOL=$ac_ct_OTOOL
8009  fi
8010else
8011  OTOOL="$ac_cv_prog_OTOOL"
8012fi
8013
8014    if test -n "$ac_tool_prefix"; then
8015  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8016set dummy ${ac_tool_prefix}otool64; ac_word=$2
8017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018printf %s "checking for $ac_word... " >&6; }
8019if test ${ac_cv_prog_OTOOL64+y}
8020then :
8021  printf %s "(cached) " >&6
8022else $as_nop
8023  if test -n "$OTOOL64"; then
8024  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8025else
8026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027for as_dir in $PATH
8028do
8029  IFS=$as_save_IFS
8030  case $as_dir in #(((
8031    '') as_dir=./ ;;
8032    */) ;;
8033    *) as_dir=$as_dir/ ;;
8034  esac
8035    for ac_exec_ext in '' $ac_executable_extensions; do
8036  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8037    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8038    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8039    break 2
8040  fi
8041done
8042  done
8043IFS=$as_save_IFS
8044
8045fi
8046fi
8047OTOOL64=$ac_cv_prog_OTOOL64
8048if test -n "$OTOOL64"; then
8049  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8050printf "%s\n" "$OTOOL64" >&6; }
8051else
8052  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053printf "%s\n" "no" >&6; }
8054fi
8055
8056
8057fi
8058if test -z "$ac_cv_prog_OTOOL64"; then
8059  ac_ct_OTOOL64=$OTOOL64
8060  # Extract the first word of "otool64", so it can be a program name with args.
8061set dummy otool64; ac_word=$2
8062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8063printf %s "checking for $ac_word... " >&6; }
8064if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8065then :
8066  printf %s "(cached) " >&6
8067else $as_nop
8068  if test -n "$ac_ct_OTOOL64"; then
8069  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8070else
8071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8072for as_dir in $PATH
8073do
8074  IFS=$as_save_IFS
8075  case $as_dir in #(((
8076    '') as_dir=./ ;;
8077    */) ;;
8078    *) as_dir=$as_dir/ ;;
8079  esac
8080    for ac_exec_ext in '' $ac_executable_extensions; do
8081  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8082    ac_cv_prog_ac_ct_OTOOL64="otool64"
8083    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8084    break 2
8085  fi
8086done
8087  done
8088IFS=$as_save_IFS
8089
8090fi
8091fi
8092ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8093if test -n "$ac_ct_OTOOL64"; then
8094  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8095printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8096else
8097  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098printf "%s\n" "no" >&6; }
8099fi
8100
8101  if test "x$ac_ct_OTOOL64" = x; then
8102    OTOOL64=":"
8103  else
8104    case $cross_compiling:$ac_tool_warned in
8105yes:)
8106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8107printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8108ac_tool_warned=yes ;;
8109esac
8110    OTOOL64=$ac_ct_OTOOL64
8111  fi
8112else
8113  OTOOL64="$ac_cv_prog_OTOOL64"
8114fi
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8143printf %s "checking for -single_module linker flag... " >&6; }
8144if test ${lt_cv_apple_cc_single_mod+y}
8145then :
8146  printf %s "(cached) " >&6
8147else $as_nop
8148  lt_cv_apple_cc_single_mod=no
8149      if test -z "$LT_MULTI_MODULE"; then
8150	# By default we will add the -single_module flag. You can override
8151	# by either setting the environment variable LT_MULTI_MODULE
8152	# non-empty at configure time, or by adding -multi_module to the
8153	# link flags.
8154	rm -rf libconftest.dylib*
8155	echo "int foo(void){return 1;}" > conftest.c
8156	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8157-dynamiclib -Wl,-single_module conftest.c" >&5
8158	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8159	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8160        _lt_result=$?
8161	# If there is a non-empty error log, and "single_module"
8162	# appears in it, assume the flag caused a linker warning
8163        if test -s conftest.err && $GREP single_module conftest.err; then
8164	  cat conftest.err >&5
8165	# Otherwise, if the output was created with a 0 exit code from
8166	# the compiler, it worked.
8167	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8168	  lt_cv_apple_cc_single_mod=yes
8169	else
8170	  cat conftest.err >&5
8171	fi
8172	rm -rf libconftest.dylib*
8173	rm -f conftest.*
8174      fi
8175fi
8176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8177printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8178
8179    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8180printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8181if test ${lt_cv_ld_exported_symbols_list+y}
8182then :
8183  printf %s "(cached) " >&6
8184else $as_nop
8185  lt_cv_ld_exported_symbols_list=no
8186      save_LDFLAGS=$LDFLAGS
8187      echo "_main" > conftest.sym
8188      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8189      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190/* end confdefs.h.  */
8191
8192int
8193main (void)
8194{
8195
8196  ;
8197  return 0;
8198}
8199_ACEOF
8200if ac_fn_c_try_link "$LINENO"
8201then :
8202  lt_cv_ld_exported_symbols_list=yes
8203else $as_nop
8204  lt_cv_ld_exported_symbols_list=no
8205fi
8206rm -f core conftest.err conftest.$ac_objext conftest.beam \
8207    conftest$ac_exeext conftest.$ac_ext
8208	LDFLAGS=$save_LDFLAGS
8209
8210fi
8211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8212printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8213
8214    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8215printf %s "checking for -force_load linker flag... " >&6; }
8216if test ${lt_cv_ld_force_load+y}
8217then :
8218  printf %s "(cached) " >&6
8219else $as_nop
8220  lt_cv_ld_force_load=no
8221      cat > conftest.c << _LT_EOF
8222int forced_loaded() { return 2;}
8223_LT_EOF
8224      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8225      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8226      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8227      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8228      echo "$RANLIB libconftest.a" >&5
8229      $RANLIB libconftest.a 2>&5
8230      cat > conftest.c << _LT_EOF
8231int main() { return 0;}
8232_LT_EOF
8233      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8234      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8235      _lt_result=$?
8236      if test -s conftest.err && $GREP force_load conftest.err; then
8237	cat conftest.err >&5
8238      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8239	lt_cv_ld_force_load=yes
8240      else
8241	cat conftest.err >&5
8242      fi
8243        rm -f conftest.err libconftest.a conftest conftest.c
8244        rm -rf conftest.dSYM
8245
8246fi
8247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8248printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8249    case $host_os in
8250    rhapsody* | darwin1.[012])
8251      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8252    darwin1.*)
8253      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8254    darwin*)
8255      case $MACOSX_DEPLOYMENT_TARGET,$host in
8256        10.[012],*|,*powerpc*-darwin[5-8]*)
8257          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8258        *)
8259          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8260      esac
8261    ;;
8262  esac
8263    if test yes = "$lt_cv_apple_cc_single_mod"; then
8264      _lt_dar_single_mod='$single_module'
8265    fi
8266    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8267      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8268    else
8269      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8270    fi
8271    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8272      _lt_dsymutil='~$DSYMUTIL $lib || :'
8273    else
8274      _lt_dsymutil=
8275    fi
8276    ;;
8277  esac
8278
8279# func_munge_path_list VARIABLE PATH
8280# -----------------------------------
8281# VARIABLE is name of variable containing _space_ separated list of
8282# directories to be munged by the contents of PATH, which is string
8283# having a format:
8284# "DIR[:DIR]:"
8285#       string "DIR[ DIR]" will be prepended to VARIABLE
8286# ":DIR[:DIR]"
8287#       string "DIR[ DIR]" will be appended to VARIABLE
8288# "DIRP[:DIRP]::[DIRA:]DIRA"
8289#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8290#       "DIRA[ DIRA]" will be appended to VARIABLE
8291# "DIR[:DIR]"
8292#       VARIABLE will be replaced by "DIR[ DIR]"
8293func_munge_path_list ()
8294{
8295    case x$2 in
8296    x)
8297        ;;
8298    *:)
8299        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8300        ;;
8301    x:*)
8302        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8303        ;;
8304    *::*)
8305        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8306        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8307        ;;
8308    *)
8309        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8310        ;;
8311    esac
8312}
8313
8314ac_header= ac_cache=
8315for ac_item in $ac_header_c_list
8316do
8317  if test $ac_cache; then
8318    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8319    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8320      printf "%s\n" "#define $ac_item 1" >> confdefs.h
8321    fi
8322    ac_header= ac_cache=
8323  elif test $ac_header; then
8324    ac_cache=$ac_item
8325  else
8326    ac_header=$ac_item
8327  fi
8328done
8329
8330
8331
8332
8333
8334
8335
8336
8337if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8338then :
8339
8340printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8341
8342fi
8343ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8344"
8345if test "x$ac_cv_header_dlfcn_h" = xyes
8346then :
8347  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8348
8349fi
8350
8351
8352
8353
8354
8355# Set options
8356
8357
8358
8359        enable_dlopen=no
8360
8361
8362  enable_win32_dll=no
8363
8364
8365            # Check whether --enable-shared was given.
8366if test ${enable_shared+y}
8367then :
8368  enableval=$enable_shared; p=${PACKAGE-default}
8369    case $enableval in
8370    yes) enable_shared=yes ;;
8371    no) enable_shared=no ;;
8372    *)
8373      enable_shared=no
8374      # Look at the argument we got.  We use all the common list separators.
8375      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8376      for pkg in $enableval; do
8377	IFS=$lt_save_ifs
8378	if test "X$pkg" = "X$p"; then
8379	  enable_shared=yes
8380	fi
8381      done
8382      IFS=$lt_save_ifs
8383      ;;
8384    esac
8385else $as_nop
8386  enable_shared=yes
8387fi
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397  # Check whether --enable-static was given.
8398if test ${enable_static+y}
8399then :
8400  enableval=$enable_static; p=${PACKAGE-default}
8401    case $enableval in
8402    yes) enable_static=yes ;;
8403    no) enable_static=no ;;
8404    *)
8405     enable_static=no
8406      # Look at the argument we got.  We use all the common list separators.
8407      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8408      for pkg in $enableval; do
8409	IFS=$lt_save_ifs
8410	if test "X$pkg" = "X$p"; then
8411	  enable_static=yes
8412	fi
8413      done
8414      IFS=$lt_save_ifs
8415      ;;
8416    esac
8417else $as_nop
8418  enable_static=yes
8419fi
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430# Check whether --with-pic was given.
8431if test ${with_pic+y}
8432then :
8433  withval=$with_pic; lt_p=${PACKAGE-default}
8434    case $withval in
8435    yes|no) pic_mode=$withval ;;
8436    *)
8437      pic_mode=default
8438      # Look at the argument we got.  We use all the common list separators.
8439      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8440      for lt_pkg in $withval; do
8441	IFS=$lt_save_ifs
8442	if test "X$lt_pkg" = "X$lt_p"; then
8443	  pic_mode=yes
8444	fi
8445      done
8446      IFS=$lt_save_ifs
8447      ;;
8448    esac
8449else $as_nop
8450  pic_mode=default
8451fi
8452
8453
8454
8455
8456
8457
8458
8459
8460  # Check whether --enable-fast-install was given.
8461if test ${enable_fast_install+y}
8462then :
8463  enableval=$enable_fast_install; p=${PACKAGE-default}
8464    case $enableval in
8465    yes) enable_fast_install=yes ;;
8466    no) enable_fast_install=no ;;
8467    *)
8468      enable_fast_install=no
8469      # Look at the argument we got.  We use all the common list separators.
8470      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8471      for pkg in $enableval; do
8472	IFS=$lt_save_ifs
8473	if test "X$pkg" = "X$p"; then
8474	  enable_fast_install=yes
8475	fi
8476      done
8477      IFS=$lt_save_ifs
8478      ;;
8479    esac
8480else $as_nop
8481  enable_fast_install=yes
8482fi
8483
8484
8485
8486
8487
8488
8489
8490
8491  shared_archive_member_spec=
8492case $host,$enable_shared in
8493power*-*-aix[5-9]*,yes)
8494  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8495printf %s "checking which variant of shared library versioning to provide... " >&6; }
8496
8497# Check whether --with-aix-soname was given.
8498if test ${with_aix_soname+y}
8499then :
8500  withval=$with_aix_soname; case $withval in
8501    aix|svr4|both)
8502      ;;
8503    *)
8504      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8505      ;;
8506    esac
8507    lt_cv_with_aix_soname=$with_aix_soname
8508else $as_nop
8509  if test ${lt_cv_with_aix_soname+y}
8510then :
8511  printf %s "(cached) " >&6
8512else $as_nop
8513  lt_cv_with_aix_soname=aix
8514fi
8515
8516    with_aix_soname=$lt_cv_with_aix_soname
8517fi
8518
8519  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8520printf "%s\n" "$with_aix_soname" >&6; }
8521  if test aix != "$with_aix_soname"; then
8522    # For the AIX way of multilib, we name the shared archive member
8523    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8524    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8525    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8526    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8527    if test 64 = "${OBJECT_MODE-32}"; then
8528      shared_archive_member_spec=shr_64
8529    else
8530      shared_archive_member_spec=shr
8531    fi
8532  fi
8533  ;;
8534*)
8535  with_aix_soname=aix
8536  ;;
8537esac
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548# This can be used to rebuild libtool when needed
8549LIBTOOL_DEPS=$ltmain
8550
8551# Always use our own libtool.
8552LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583test -z "$LN_S" && LN_S="ln -s"
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598if test -n "${ZSH_VERSION+set}"; then
8599   setopt NO_GLOB_SUBST
8600fi
8601
8602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8603printf %s "checking for objdir... " >&6; }
8604if test ${lt_cv_objdir+y}
8605then :
8606  printf %s "(cached) " >&6
8607else $as_nop
8608  rm -f .libs 2>/dev/null
8609mkdir .libs 2>/dev/null
8610if test -d .libs; then
8611  lt_cv_objdir=.libs
8612else
8613  # MS-DOS does not allow filenames that begin with a dot.
8614  lt_cv_objdir=_libs
8615fi
8616rmdir .libs 2>/dev/null
8617fi
8618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8619printf "%s\n" "$lt_cv_objdir" >&6; }
8620objdir=$lt_cv_objdir
8621
8622
8623
8624
8625
8626printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8627
8628
8629
8630
8631case $host_os in
8632aix3*)
8633  # AIX sometimes has problems with the GCC collect2 program.  For some
8634  # reason, if we set the COLLECT_NAMES environment variable, the problems
8635  # vanish in a puff of smoke.
8636  if test set != "${COLLECT_NAMES+set}"; then
8637    COLLECT_NAMES=
8638    export COLLECT_NAMES
8639  fi
8640  ;;
8641esac
8642
8643# Global variables:
8644ofile=libtool
8645can_build_shared=yes
8646
8647# All known linkers require a '.a' archive for static linking (except MSVC and
8648# ICC, which need '.lib').
8649libext=a
8650
8651with_gnu_ld=$lt_cv_prog_gnu_ld
8652
8653old_CC=$CC
8654old_CFLAGS=$CFLAGS
8655
8656# Set sane defaults for various variables
8657test -z "$CC" && CC=cc
8658test -z "$LTCC" && LTCC=$CC
8659test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8660test -z "$LD" && LD=ld
8661test -z "$ac_objext" && ac_objext=o
8662
8663func_cc_basename $compiler
8664cc_basename=$func_cc_basename_result
8665
8666
8667# Only perform the check for file, if the check method requires it
8668test -z "$MAGIC_CMD" && MAGIC_CMD=file
8669case $deplibs_check_method in
8670file_magic*)
8671  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8672    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8673printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8674if test ${lt_cv_path_MAGIC_CMD+y}
8675then :
8676  printf %s "(cached) " >&6
8677else $as_nop
8678  case $MAGIC_CMD in
8679[\\/*] |  ?:[\\/]*)
8680  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8681  ;;
8682*)
8683  lt_save_MAGIC_CMD=$MAGIC_CMD
8684  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8685  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8686  for ac_dir in $ac_dummy; do
8687    IFS=$lt_save_ifs
8688    test -z "$ac_dir" && ac_dir=.
8689    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8690      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8691      if test -n "$file_magic_test_file"; then
8692	case $deplibs_check_method in
8693	"file_magic "*)
8694	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8695	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8696	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8697	    $EGREP "$file_magic_regex" > /dev/null; then
8698	    :
8699	  else
8700	    cat <<_LT_EOF 1>&2
8701
8702*** Warning: the command libtool uses to detect shared libraries,
8703*** $file_magic_cmd, produces output that libtool cannot recognize.
8704*** The result is that libtool may fail to recognize shared libraries
8705*** as such.  This will affect the creation of libtool libraries that
8706*** depend on shared libraries, but programs linked with such libtool
8707*** libraries will work regardless of this problem.  Nevertheless, you
8708*** may want to report the problem to your system manager and/or to
8709*** bug-libtool@gnu.org
8710
8711_LT_EOF
8712	  fi ;;
8713	esac
8714      fi
8715      break
8716    fi
8717  done
8718  IFS=$lt_save_ifs
8719  MAGIC_CMD=$lt_save_MAGIC_CMD
8720  ;;
8721esac
8722fi
8723
8724MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8725if test -n "$MAGIC_CMD"; then
8726  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8727printf "%s\n" "$MAGIC_CMD" >&6; }
8728else
8729  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8730printf "%s\n" "no" >&6; }
8731fi
8732
8733
8734
8735
8736
8737if test -z "$lt_cv_path_MAGIC_CMD"; then
8738  if test -n "$ac_tool_prefix"; then
8739    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8740printf %s "checking for file... " >&6; }
8741if test ${lt_cv_path_MAGIC_CMD+y}
8742then :
8743  printf %s "(cached) " >&6
8744else $as_nop
8745  case $MAGIC_CMD in
8746[\\/*] |  ?:[\\/]*)
8747  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8748  ;;
8749*)
8750  lt_save_MAGIC_CMD=$MAGIC_CMD
8751  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8752  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8753  for ac_dir in $ac_dummy; do
8754    IFS=$lt_save_ifs
8755    test -z "$ac_dir" && ac_dir=.
8756    if test -f "$ac_dir/file"; then
8757      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8758      if test -n "$file_magic_test_file"; then
8759	case $deplibs_check_method in
8760	"file_magic "*)
8761	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8762	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8763	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8764	    $EGREP "$file_magic_regex" > /dev/null; then
8765	    :
8766	  else
8767	    cat <<_LT_EOF 1>&2
8768
8769*** Warning: the command libtool uses to detect shared libraries,
8770*** $file_magic_cmd, produces output that libtool cannot recognize.
8771*** The result is that libtool may fail to recognize shared libraries
8772*** as such.  This will affect the creation of libtool libraries that
8773*** depend on shared libraries, but programs linked with such libtool
8774*** libraries will work regardless of this problem.  Nevertheless, you
8775*** may want to report the problem to your system manager and/or to
8776*** bug-libtool@gnu.org
8777
8778_LT_EOF
8779	  fi ;;
8780	esac
8781      fi
8782      break
8783    fi
8784  done
8785  IFS=$lt_save_ifs
8786  MAGIC_CMD=$lt_save_MAGIC_CMD
8787  ;;
8788esac
8789fi
8790
8791MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8792if test -n "$MAGIC_CMD"; then
8793  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8794printf "%s\n" "$MAGIC_CMD" >&6; }
8795else
8796  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8797printf "%s\n" "no" >&6; }
8798fi
8799
8800
8801  else
8802    MAGIC_CMD=:
8803  fi
8804fi
8805
8806  fi
8807  ;;
8808esac
8809
8810# Use C for the default configuration in the libtool script
8811
8812lt_save_CC=$CC
8813ac_ext=c
8814ac_cpp='$CPP $CPPFLAGS'
8815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8817ac_compiler_gnu=$ac_cv_c_compiler_gnu
8818
8819
8820# Source file extension for C test sources.
8821ac_ext=c
8822
8823# Object file extension for compiled C test sources.
8824objext=o
8825objext=$objext
8826
8827# Code to be used in simple compile tests
8828lt_simple_compile_test_code="int some_variable = 0;"
8829
8830# Code to be used in simple link tests
8831lt_simple_link_test_code='int main(){return(0);}'
8832
8833
8834
8835
8836
8837
8838
8839# If no C compiler was specified, use CC.
8840LTCC=${LTCC-"$CC"}
8841
8842# If no C compiler flags were specified, use CFLAGS.
8843LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8844
8845# Allow CC to be a program name with arguments.
8846compiler=$CC
8847
8848# Save the default compiler, since it gets overwritten when the other
8849# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8850compiler_DEFAULT=$CC
8851
8852# save warnings/boilerplate of simple test code
8853ac_outfile=conftest.$ac_objext
8854echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8855eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8856_lt_compiler_boilerplate=`cat conftest.err`
8857$RM conftest*
8858
8859ac_outfile=conftest.$ac_objext
8860echo "$lt_simple_link_test_code" >conftest.$ac_ext
8861eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8862_lt_linker_boilerplate=`cat conftest.err`
8863$RM -r conftest*
8864
8865
8866if test -n "$compiler"; then
8867
8868lt_prog_compiler_no_builtin_flag=
8869
8870if test yes = "$GCC"; then
8871  case $cc_basename in
8872  nvcc*)
8873    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8874  *)
8875    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8876  esac
8877
8878  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8879printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8880if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8881then :
8882  printf %s "(cached) " >&6
8883else $as_nop
8884  lt_cv_prog_compiler_rtti_exceptions=no
8885   ac_outfile=conftest.$ac_objext
8886   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8887   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8888   # Insert the option either (1) after the last *FLAGS variable, or
8889   # (2) before a word containing "conftest.", or (3) at the end.
8890   # Note that $ac_compile itself does not contain backslashes and begins
8891   # with a dollar sign (not a hyphen), so the echo should work correctly.
8892   # The option is referenced via a variable to avoid confusing sed.
8893   lt_compile=`echo "$ac_compile" | $SED \
8894   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8895   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8896   -e 's:$: $lt_compiler_flag:'`
8897   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8898   (eval "$lt_compile" 2>conftest.err)
8899   ac_status=$?
8900   cat conftest.err >&5
8901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902   if (exit $ac_status) && test -s "$ac_outfile"; then
8903     # The compiler can only warn and ignore the option if not recognized
8904     # So say no if there are warnings other than the usual output.
8905     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8906     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8907     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8908       lt_cv_prog_compiler_rtti_exceptions=yes
8909     fi
8910   fi
8911   $RM conftest*
8912
8913fi
8914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8915printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8916
8917if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8918    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8919else
8920    :
8921fi
8922
8923fi
8924
8925
8926
8927
8928
8929
8930  lt_prog_compiler_wl=
8931lt_prog_compiler_pic=
8932lt_prog_compiler_static=
8933
8934
8935  if test yes = "$GCC"; then
8936    lt_prog_compiler_wl='-Wl,'
8937    lt_prog_compiler_static='-static'
8938
8939    case $host_os in
8940      aix*)
8941      # All AIX code is PIC.
8942      if test ia64 = "$host_cpu"; then
8943	# AIX 5 now supports IA64 processor
8944	lt_prog_compiler_static='-Bstatic'
8945      fi
8946      lt_prog_compiler_pic='-fPIC'
8947      ;;
8948
8949    amigaos*)
8950      case $host_cpu in
8951      powerpc)
8952            # see comment about AmigaOS4 .so support
8953            lt_prog_compiler_pic='-fPIC'
8954        ;;
8955      m68k)
8956            # FIXME: we need at least 68020 code to build shared libraries, but
8957            # adding the '-m68020' flag to GCC prevents building anything better,
8958            # like '-m68040'.
8959            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8960        ;;
8961      esac
8962      ;;
8963
8964    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8965      # PIC is the default for these OSes.
8966      ;;
8967
8968    mingw* | cygwin* | pw32* | os2* | cegcc*)
8969      # This hack is so that the source file can tell whether it is being
8970      # built for inclusion in a dll (and should export symbols for example).
8971      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8972      # (--disable-auto-import) libraries
8973      lt_prog_compiler_pic='-DDLL_EXPORT'
8974      case $host_os in
8975      os2*)
8976	lt_prog_compiler_static='$wl-static'
8977	;;
8978      esac
8979      ;;
8980
8981    darwin* | rhapsody*)
8982      # PIC is the default on this platform
8983      # Common symbols not allowed in MH_DYLIB files
8984      lt_prog_compiler_pic='-fno-common'
8985      ;;
8986
8987    haiku*)
8988      # PIC is the default for Haiku.
8989      # The "-static" flag exists, but is broken.
8990      lt_prog_compiler_static=
8991      ;;
8992
8993    hpux*)
8994      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8995      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8996      # sets the default TLS model and affects inlining.
8997      case $host_cpu in
8998      hppa*64*)
8999	# +Z the default
9000	;;
9001      *)
9002	lt_prog_compiler_pic='-fPIC'
9003	;;
9004      esac
9005      ;;
9006
9007    interix[3-9]*)
9008      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9009      # Instead, we relocate shared libraries at runtime.
9010      ;;
9011
9012    msdosdjgpp*)
9013      # Just because we use GCC doesn't mean we suddenly get shared libraries
9014      # on systems that don't support them.
9015      lt_prog_compiler_can_build_shared=no
9016      enable_shared=no
9017      ;;
9018
9019    *nto* | *qnx*)
9020      # QNX uses GNU C++, but need to define -shared option too, otherwise
9021      # it will coredump.
9022      lt_prog_compiler_pic='-fPIC -shared'
9023      ;;
9024
9025    sysv4*MP*)
9026      if test -d /usr/nec; then
9027	lt_prog_compiler_pic=-Kconform_pic
9028      fi
9029      ;;
9030
9031    *)
9032      lt_prog_compiler_pic='-fPIC'
9033      ;;
9034    esac
9035
9036    case $cc_basename in
9037    nvcc*) # Cuda Compiler Driver 2.2
9038      lt_prog_compiler_wl='-Xlinker '
9039      if test -n "$lt_prog_compiler_pic"; then
9040        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9041      fi
9042      ;;
9043    esac
9044  else
9045    # PORTME Check for flag to pass linker flags through the system compiler.
9046    case $host_os in
9047    aix*)
9048      lt_prog_compiler_wl='-Wl,'
9049      if test ia64 = "$host_cpu"; then
9050	# AIX 5 now supports IA64 processor
9051	lt_prog_compiler_static='-Bstatic'
9052      else
9053	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9054      fi
9055      ;;
9056
9057    darwin* | rhapsody*)
9058      # PIC is the default on this platform
9059      # Common symbols not allowed in MH_DYLIB files
9060      lt_prog_compiler_pic='-fno-common'
9061      case $cc_basename in
9062      nagfor*)
9063        # NAG Fortran compiler
9064        lt_prog_compiler_wl='-Wl,-Wl,,'
9065        lt_prog_compiler_pic='-PIC'
9066        lt_prog_compiler_static='-Bstatic'
9067        ;;
9068      esac
9069      ;;
9070
9071    mingw* | cygwin* | pw32* | os2* | cegcc*)
9072      # This hack is so that the source file can tell whether it is being
9073      # built for inclusion in a dll (and should export symbols for example).
9074      lt_prog_compiler_pic='-DDLL_EXPORT'
9075      case $host_os in
9076      os2*)
9077	lt_prog_compiler_static='$wl-static'
9078	;;
9079      esac
9080      ;;
9081
9082    hpux9* | hpux10* | hpux11*)
9083      lt_prog_compiler_wl='-Wl,'
9084      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9085      # not for PA HP-UX.
9086      case $host_cpu in
9087      hppa*64*|ia64*)
9088	# +Z the default
9089	;;
9090      *)
9091	lt_prog_compiler_pic='+Z'
9092	;;
9093      esac
9094      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9095      lt_prog_compiler_static='$wl-a ${wl}archive'
9096      ;;
9097
9098    irix5* | irix6* | nonstopux*)
9099      lt_prog_compiler_wl='-Wl,'
9100      # PIC (with -KPIC) is the default.
9101      lt_prog_compiler_static='-non_shared'
9102      ;;
9103
9104    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9105      case $cc_basename in
9106      # old Intel for x86_64, which still supported -KPIC.
9107      ecc*)
9108	lt_prog_compiler_wl='-Wl,'
9109	lt_prog_compiler_pic='-KPIC'
9110	lt_prog_compiler_static='-static'
9111        ;;
9112      # icc used to be incompatible with GCC.
9113      # ICC 10 doesn't accept -KPIC any more.
9114      icc* | ifort*)
9115	lt_prog_compiler_wl='-Wl,'
9116	lt_prog_compiler_pic='-fPIC'
9117	lt_prog_compiler_static='-static'
9118        ;;
9119      # Lahey Fortran 8.1.
9120      lf95*)
9121	lt_prog_compiler_wl='-Wl,'
9122	lt_prog_compiler_pic='--shared'
9123	lt_prog_compiler_static='--static'
9124	;;
9125      nagfor*)
9126	# NAG Fortran compiler
9127	lt_prog_compiler_wl='-Wl,-Wl,,'
9128	lt_prog_compiler_pic='-PIC'
9129	lt_prog_compiler_static='-Bstatic'
9130	;;
9131      tcc*)
9132	# Fabrice Bellard et al's Tiny C Compiler
9133	lt_prog_compiler_wl='-Wl,'
9134	lt_prog_compiler_pic='-fPIC'
9135	lt_prog_compiler_static='-static'
9136	;;
9137      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9138        # Portland Group compilers (*not* the Pentium gcc compiler,
9139	# which looks to be a dead project)
9140	lt_prog_compiler_wl='-Wl,'
9141	lt_prog_compiler_pic='-fpic'
9142	lt_prog_compiler_static='-Bstatic'
9143        ;;
9144      ccc*)
9145        lt_prog_compiler_wl='-Wl,'
9146        # All Alpha code is PIC.
9147        lt_prog_compiler_static='-non_shared'
9148        ;;
9149      xl* | bgxl* | bgf* | mpixl*)
9150	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9151	lt_prog_compiler_wl='-Wl,'
9152	lt_prog_compiler_pic='-qpic'
9153	lt_prog_compiler_static='-qstaticlink'
9154	;;
9155      *)
9156	case `$CC -V 2>&1 | $SED 5q` in
9157	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9158	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9159	  lt_prog_compiler_pic='-KPIC'
9160	  lt_prog_compiler_static='-Bstatic'
9161	  lt_prog_compiler_wl=''
9162	  ;;
9163	*Sun\ F* | *Sun*Fortran*)
9164	  lt_prog_compiler_pic='-KPIC'
9165	  lt_prog_compiler_static='-Bstatic'
9166	  lt_prog_compiler_wl='-Qoption ld '
9167	  ;;
9168	*Sun\ C*)
9169	  # Sun C 5.9
9170	  lt_prog_compiler_pic='-KPIC'
9171	  lt_prog_compiler_static='-Bstatic'
9172	  lt_prog_compiler_wl='-Wl,'
9173	  ;;
9174        *Intel*\ [CF]*Compiler*)
9175	  lt_prog_compiler_wl='-Wl,'
9176	  lt_prog_compiler_pic='-fPIC'
9177	  lt_prog_compiler_static='-static'
9178	  ;;
9179	*Portland\ Group*)
9180	  lt_prog_compiler_wl='-Wl,'
9181	  lt_prog_compiler_pic='-fpic'
9182	  lt_prog_compiler_static='-Bstatic'
9183	  ;;
9184	esac
9185	;;
9186      esac
9187      ;;
9188
9189    newsos6)
9190      lt_prog_compiler_pic='-KPIC'
9191      lt_prog_compiler_static='-Bstatic'
9192      ;;
9193
9194    *nto* | *qnx*)
9195      # QNX uses GNU C++, but need to define -shared option too, otherwise
9196      # it will coredump.
9197      lt_prog_compiler_pic='-fPIC -shared'
9198      ;;
9199
9200    osf3* | osf4* | osf5*)
9201      lt_prog_compiler_wl='-Wl,'
9202      # All OSF/1 code is PIC.
9203      lt_prog_compiler_static='-non_shared'
9204      ;;
9205
9206    rdos*)
9207      lt_prog_compiler_static='-non_shared'
9208      ;;
9209
9210    solaris*)
9211      lt_prog_compiler_pic='-KPIC'
9212      lt_prog_compiler_static='-Bstatic'
9213      case $cc_basename in
9214      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9215	lt_prog_compiler_wl='-Qoption ld ';;
9216      *)
9217	lt_prog_compiler_wl='-Wl,';;
9218      esac
9219      ;;
9220
9221    sunos4*)
9222      lt_prog_compiler_wl='-Qoption ld '
9223      lt_prog_compiler_pic='-PIC'
9224      lt_prog_compiler_static='-Bstatic'
9225      ;;
9226
9227    sysv4 | sysv4.2uw2* | sysv4.3*)
9228      lt_prog_compiler_wl='-Wl,'
9229      lt_prog_compiler_pic='-KPIC'
9230      lt_prog_compiler_static='-Bstatic'
9231      ;;
9232
9233    sysv4*MP*)
9234      if test -d /usr/nec; then
9235	lt_prog_compiler_pic='-Kconform_pic'
9236	lt_prog_compiler_static='-Bstatic'
9237      fi
9238      ;;
9239
9240    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9241      lt_prog_compiler_wl='-Wl,'
9242      lt_prog_compiler_pic='-KPIC'
9243      lt_prog_compiler_static='-Bstatic'
9244      ;;
9245
9246    unicos*)
9247      lt_prog_compiler_wl='-Wl,'
9248      lt_prog_compiler_can_build_shared=no
9249      ;;
9250
9251    uts4*)
9252      lt_prog_compiler_pic='-pic'
9253      lt_prog_compiler_static='-Bstatic'
9254      ;;
9255
9256    *)
9257      lt_prog_compiler_can_build_shared=no
9258      ;;
9259    esac
9260  fi
9261
9262case $host_os in
9263  # For platforms that do not support PIC, -DPIC is meaningless:
9264  *djgpp*)
9265    lt_prog_compiler_pic=
9266    ;;
9267  *)
9268    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9269    ;;
9270esac
9271
9272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9273printf %s "checking for $compiler option to produce PIC... " >&6; }
9274if test ${lt_cv_prog_compiler_pic+y}
9275then :
9276  printf %s "(cached) " >&6
9277else $as_nop
9278  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9279fi
9280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9281printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9282lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9283
9284#
9285# Check to make sure the PIC flag actually works.
9286#
9287if test -n "$lt_prog_compiler_pic"; then
9288  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9289printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9290if test ${lt_cv_prog_compiler_pic_works+y}
9291then :
9292  printf %s "(cached) " >&6
9293else $as_nop
9294  lt_cv_prog_compiler_pic_works=no
9295   ac_outfile=conftest.$ac_objext
9296   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9297   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9298   # Insert the option either (1) after the last *FLAGS variable, or
9299   # (2) before a word containing "conftest.", or (3) at the end.
9300   # Note that $ac_compile itself does not contain backslashes and begins
9301   # with a dollar sign (not a hyphen), so the echo should work correctly.
9302   # The option is referenced via a variable to avoid confusing sed.
9303   lt_compile=`echo "$ac_compile" | $SED \
9304   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9305   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9306   -e 's:$: $lt_compiler_flag:'`
9307   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9308   (eval "$lt_compile" 2>conftest.err)
9309   ac_status=$?
9310   cat conftest.err >&5
9311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312   if (exit $ac_status) && test -s "$ac_outfile"; then
9313     # The compiler can only warn and ignore the option if not recognized
9314     # So say no if there are warnings other than the usual output.
9315     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9316     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9317     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9318       lt_cv_prog_compiler_pic_works=yes
9319     fi
9320   fi
9321   $RM conftest*
9322
9323fi
9324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9325printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9326
9327if test yes = "$lt_cv_prog_compiler_pic_works"; then
9328    case $lt_prog_compiler_pic in
9329     "" | " "*) ;;
9330     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9331     esac
9332else
9333    lt_prog_compiler_pic=
9334     lt_prog_compiler_can_build_shared=no
9335fi
9336
9337fi
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349#
9350# Check to make sure the static flag actually works.
9351#
9352wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9354printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9355if test ${lt_cv_prog_compiler_static_works+y}
9356then :
9357  printf %s "(cached) " >&6
9358else $as_nop
9359  lt_cv_prog_compiler_static_works=no
9360   save_LDFLAGS=$LDFLAGS
9361   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9362   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9363   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9364     # The linker can only warn and ignore the option if not recognized
9365     # So say no if there are warnings
9366     if test -s conftest.err; then
9367       # Append any errors to the config.log.
9368       cat conftest.err 1>&5
9369       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9370       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9371       if diff conftest.exp conftest.er2 >/dev/null; then
9372         lt_cv_prog_compiler_static_works=yes
9373       fi
9374     else
9375       lt_cv_prog_compiler_static_works=yes
9376     fi
9377   fi
9378   $RM -r conftest*
9379   LDFLAGS=$save_LDFLAGS
9380
9381fi
9382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9383printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9384
9385if test yes = "$lt_cv_prog_compiler_static_works"; then
9386    :
9387else
9388    lt_prog_compiler_static=
9389fi
9390
9391
9392
9393
9394
9395
9396
9397  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9398printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9399if test ${lt_cv_prog_compiler_c_o+y}
9400then :
9401  printf %s "(cached) " >&6
9402else $as_nop
9403  lt_cv_prog_compiler_c_o=no
9404   $RM -r conftest 2>/dev/null
9405   mkdir conftest
9406   cd conftest
9407   mkdir out
9408   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9409
9410   lt_compiler_flag="-o out/conftest2.$ac_objext"
9411   # Insert the option either (1) after the last *FLAGS variable, or
9412   # (2) before a word containing "conftest.", or (3) at the end.
9413   # Note that $ac_compile itself does not contain backslashes and begins
9414   # with a dollar sign (not a hyphen), so the echo should work correctly.
9415   lt_compile=`echo "$ac_compile" | $SED \
9416   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9417   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9418   -e 's:$: $lt_compiler_flag:'`
9419   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9420   (eval "$lt_compile" 2>out/conftest.err)
9421   ac_status=$?
9422   cat out/conftest.err >&5
9423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9425   then
9426     # The compiler can only warn and ignore the option if not recognized
9427     # So say no if there are warnings
9428     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9429     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9430     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9431       lt_cv_prog_compiler_c_o=yes
9432     fi
9433   fi
9434   chmod u+w . 2>&5
9435   $RM conftest*
9436   # SGI C++ compiler will create directory out/ii_files/ for
9437   # template instantiation
9438   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9439   $RM out/* && rmdir out
9440   cd ..
9441   $RM -r conftest
9442   $RM conftest*
9443
9444fi
9445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9446printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9447
9448
9449
9450
9451
9452
9453  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9454printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9455if test ${lt_cv_prog_compiler_c_o+y}
9456then :
9457  printf %s "(cached) " >&6
9458else $as_nop
9459  lt_cv_prog_compiler_c_o=no
9460   $RM -r conftest 2>/dev/null
9461   mkdir conftest
9462   cd conftest
9463   mkdir out
9464   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9465
9466   lt_compiler_flag="-o out/conftest2.$ac_objext"
9467   # Insert the option either (1) after the last *FLAGS variable, or
9468   # (2) before a word containing "conftest.", or (3) at the end.
9469   # Note that $ac_compile itself does not contain backslashes and begins
9470   # with a dollar sign (not a hyphen), so the echo should work correctly.
9471   lt_compile=`echo "$ac_compile" | $SED \
9472   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9473   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9474   -e 's:$: $lt_compiler_flag:'`
9475   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9476   (eval "$lt_compile" 2>out/conftest.err)
9477   ac_status=$?
9478   cat out/conftest.err >&5
9479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9481   then
9482     # The compiler can only warn and ignore the option if not recognized
9483     # So say no if there are warnings
9484     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9485     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9486     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9487       lt_cv_prog_compiler_c_o=yes
9488     fi
9489   fi
9490   chmod u+w . 2>&5
9491   $RM conftest*
9492   # SGI C++ compiler will create directory out/ii_files/ for
9493   # template instantiation
9494   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9495   $RM out/* && rmdir out
9496   cd ..
9497   $RM -r conftest
9498   $RM conftest*
9499
9500fi
9501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9502printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9503
9504
9505
9506
9507hard_links=nottested
9508if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9509  # do not overwrite the value of need_locks provided by the user
9510  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9511printf %s "checking if we can lock with hard links... " >&6; }
9512  hard_links=yes
9513  $RM conftest*
9514  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9515  touch conftest.a
9516  ln conftest.a conftest.b 2>&5 || hard_links=no
9517  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9518  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9519printf "%s\n" "$hard_links" >&6; }
9520  if test no = "$hard_links"; then
9521    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9522printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9523    need_locks=warn
9524  fi
9525else
9526  need_locks=no
9527fi
9528
9529
9530
9531
9532
9533
9534  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9535printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9536
9537  runpath_var=
9538  allow_undefined_flag=
9539  always_export_symbols=no
9540  archive_cmds=
9541  archive_expsym_cmds=
9542  compiler_needs_object=no
9543  enable_shared_with_static_runtimes=no
9544  export_dynamic_flag_spec=
9545  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9546  hardcode_automatic=no
9547  hardcode_direct=no
9548  hardcode_direct_absolute=no
9549  hardcode_libdir_flag_spec=
9550  hardcode_libdir_separator=
9551  hardcode_minus_L=no
9552  hardcode_shlibpath_var=unsupported
9553  inherit_rpath=no
9554  link_all_deplibs=unknown
9555  module_cmds=
9556  module_expsym_cmds=
9557  old_archive_from_new_cmds=
9558  old_archive_from_expsyms_cmds=
9559  thread_safe_flag_spec=
9560  whole_archive_flag_spec=
9561  # include_expsyms should be a list of space-separated symbols to be *always*
9562  # included in the symbol list
9563  include_expsyms=
9564  # exclude_expsyms can be an extended regexp of symbols to exclude
9565  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9566  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9567  # as well as any symbol that contains 'd'.
9568  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9569  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9570  # platforms (ab)use it in PIC code, but their linkers get confused if
9571  # the symbol is explicitly referenced.  Since portable code cannot
9572  # rely on this symbol name, it's probably fine to never include it in
9573  # preloaded symbol tables.
9574  # Exclude shared library initialization/finalization symbols.
9575  extract_expsyms_cmds=
9576
9577  case $host_os in
9578  cygwin* | mingw* | pw32* | cegcc*)
9579    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9580    # When not using gcc, we currently assume that we are using
9581    # Microsoft Visual C++ or Intel C++ Compiler.
9582    if test yes != "$GCC"; then
9583      with_gnu_ld=no
9584    fi
9585    ;;
9586  interix*)
9587    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9588    with_gnu_ld=yes
9589    ;;
9590  openbsd* | bitrig*)
9591    with_gnu_ld=no
9592    ;;
9593  esac
9594
9595  ld_shlibs=yes
9596
9597  # On some targets, GNU ld is compatible enough with the native linker
9598  # that we're better off using the native interface for both.
9599  lt_use_gnu_ld_interface=no
9600  if test yes = "$with_gnu_ld"; then
9601    case $host_os in
9602      aix*)
9603	# The AIX port of GNU ld has always aspired to compatibility
9604	# with the native linker.  However, as the warning in the GNU ld
9605	# block says, versions before 2.19.5* couldn't really create working
9606	# shared libraries, regardless of the interface used.
9607	case `$LD -v 2>&1` in
9608	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9609	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9610	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9611	  *)
9612	    lt_use_gnu_ld_interface=yes
9613	    ;;
9614	esac
9615	;;
9616      *)
9617	lt_use_gnu_ld_interface=yes
9618	;;
9619    esac
9620  fi
9621
9622  if test yes = "$lt_use_gnu_ld_interface"; then
9623    # If archive_cmds runs LD, not CC, wlarc should be empty
9624    wlarc='$wl'
9625
9626    # Set some defaults for GNU ld with shared library support. These
9627    # are reset later if shared libraries are not supported. Putting them
9628    # here allows them to be overridden if necessary.
9629    runpath_var=LD_RUN_PATH
9630    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9631    export_dynamic_flag_spec='$wl--export-dynamic'
9632    # ancient GNU ld didn't support --whole-archive et. al.
9633    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9634      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9635    else
9636      whole_archive_flag_spec=
9637    fi
9638    supports_anon_versioning=no
9639    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9640      *GNU\ gold*) supports_anon_versioning=yes ;;
9641      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9642      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9643      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9644      *\ 2.11.*) ;; # other 2.11 versions
9645      *) supports_anon_versioning=yes ;;
9646    esac
9647
9648    # See if GNU ld supports shared libraries.
9649    case $host_os in
9650    aix[3-9]*)
9651      # On AIX/PPC, the GNU linker is very broken
9652      if test ia64 != "$host_cpu"; then
9653	ld_shlibs=no
9654	cat <<_LT_EOF 1>&2
9655
9656*** Warning: the GNU linker, at least up to release 2.19, is reported
9657*** to be unable to reliably create shared libraries on AIX.
9658*** Therefore, libtool is disabling shared libraries support.  If you
9659*** really care for shared libraries, you may want to install binutils
9660*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9661*** You will then need to restart the configuration process.
9662
9663_LT_EOF
9664      fi
9665      ;;
9666
9667    amigaos*)
9668      case $host_cpu in
9669      powerpc)
9670            # see comment about AmigaOS4 .so support
9671            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9672            archive_expsym_cmds=''
9673        ;;
9674      m68k)
9675            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)'
9676            hardcode_libdir_flag_spec='-L$libdir'
9677            hardcode_minus_L=yes
9678        ;;
9679      esac
9680      ;;
9681
9682    beos*)
9683      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9684	allow_undefined_flag=unsupported
9685	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9686	# support --undefined.  This deserves some investigation.  FIXME
9687	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9688      else
9689	ld_shlibs=no
9690      fi
9691      ;;
9692
9693    cygwin* | mingw* | pw32* | cegcc*)
9694      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9695      # as there is no search path for DLLs.
9696      hardcode_libdir_flag_spec='-L$libdir'
9697      export_dynamic_flag_spec='$wl--export-all-symbols'
9698      allow_undefined_flag=unsupported
9699      always_export_symbols=no
9700      enable_shared_with_static_runtimes=yes
9701      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'
9702      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9703
9704      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9705        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9706	# If the export-symbols file already is a .def file, use it as
9707	# is; otherwise, prepend EXPORTS...
9708	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9709          cp $export_symbols $output_objdir/$soname.def;
9710        else
9711          echo EXPORTS > $output_objdir/$soname.def;
9712          cat $export_symbols >> $output_objdir/$soname.def;
9713        fi~
9714        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9715      else
9716	ld_shlibs=no
9717      fi
9718      ;;
9719
9720    haiku*)
9721      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9722      link_all_deplibs=yes
9723      ;;
9724
9725    os2*)
9726      hardcode_libdir_flag_spec='-L$libdir'
9727      hardcode_minus_L=yes
9728      allow_undefined_flag=unsupported
9729      shrext_cmds=.dll
9730      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9731	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9732	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9733	$ECHO EXPORTS >> $output_objdir/$libname.def~
9734	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9735	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9736	emximp -o $lib $output_objdir/$libname.def'
9737      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9738	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9739	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9740	$ECHO EXPORTS >> $output_objdir/$libname.def~
9741	prefix_cmds="$SED"~
9742	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9743	  prefix_cmds="$prefix_cmds -e 1d";
9744	fi~
9745	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9746	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9747	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9748	emximp -o $lib $output_objdir/$libname.def'
9749      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9750      enable_shared_with_static_runtimes=yes
9751      file_list_spec='@'
9752      ;;
9753
9754    interix[3-9]*)
9755      hardcode_direct=no
9756      hardcode_shlibpath_var=no
9757      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9758      export_dynamic_flag_spec='$wl-E'
9759      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9760      # Instead, shared libraries are loaded at an image base (0x10000000 by
9761      # default) and relocated if they conflict, which is a slow very memory
9762      # consuming and fragmenting process.  To avoid this, we pick a random,
9763      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9764      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9765      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9766      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'
9767      ;;
9768
9769    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9770      tmp_diet=no
9771      if test linux-dietlibc = "$host_os"; then
9772	case $cc_basename in
9773	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9774	esac
9775      fi
9776      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9777	 && test no = "$tmp_diet"
9778      then
9779	tmp_addflag=' $pic_flag'
9780	tmp_sharedflag='-shared'
9781	case $cc_basename,$host_cpu in
9782        pgcc*)				# Portland Group C compiler
9783	  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'
9784	  tmp_addflag=' $pic_flag'
9785	  ;;
9786	pgf77* | pgf90* | pgf95* | pgfortran*)
9787					# Portland Group f77 and f90 compilers
9788	  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'
9789	  tmp_addflag=' $pic_flag -Mnomain' ;;
9790	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9791	  tmp_addflag=' -i_dynamic' ;;
9792	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9793	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9794	ifc* | ifort*)			# Intel Fortran compiler
9795	  tmp_addflag=' -nofor_main' ;;
9796	lf95*)				# Lahey Fortran 8.1
9797	  whole_archive_flag_spec=
9798	  tmp_sharedflag='--shared' ;;
9799        nagfor*)                        # NAGFOR 5.3
9800          tmp_sharedflag='-Wl,-shared' ;;
9801	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9802	  tmp_sharedflag='-qmkshrobj'
9803	  tmp_addflag= ;;
9804	nvcc*)	# Cuda Compiler Driver 2.2
9805	  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'
9806	  compiler_needs_object=yes
9807	  ;;
9808	esac
9809	case `$CC -V 2>&1 | $SED 5q` in
9810	*Sun\ C*)			# Sun C 5.9
9811	  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'
9812	  compiler_needs_object=yes
9813	  tmp_sharedflag='-G' ;;
9814	*Sun\ F*)			# Sun Fortran 8.3
9815	  tmp_sharedflag='-G' ;;
9816	esac
9817	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9818
9819        if test yes = "$supports_anon_versioning"; then
9820          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9821            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9822            echo "local: *; };" >> $output_objdir/$libname.ver~
9823            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9824        fi
9825
9826	case $cc_basename in
9827	tcc*)
9828	  export_dynamic_flag_spec='-rdynamic'
9829	  ;;
9830	xlf* | bgf* | bgxlf* | mpixlf*)
9831	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9832	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9833	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9834	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9835	  if test yes = "$supports_anon_versioning"; then
9836	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9837              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9838              echo "local: *; };" >> $output_objdir/$libname.ver~
9839              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9840	  fi
9841	  ;;
9842	esac
9843      else
9844        ld_shlibs=no
9845      fi
9846      ;;
9847
9848    netbsd*)
9849      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9850	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9851	wlarc=
9852      else
9853	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9854	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9855      fi
9856      ;;
9857
9858    solaris*)
9859      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9860	ld_shlibs=no
9861	cat <<_LT_EOF 1>&2
9862
9863*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9864*** create shared libraries on Solaris systems.  Therefore, libtool
9865*** is disabling shared libraries support.  We urge you to upgrade GNU
9866*** binutils to release 2.9.1 or newer.  Another option is to modify
9867*** your PATH or compiler configuration so that the native linker is
9868*** used, and then restart.
9869
9870_LT_EOF
9871      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9872	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9873	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9874      else
9875	ld_shlibs=no
9876      fi
9877      ;;
9878
9879    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9880      case `$LD -v 2>&1` in
9881        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9882	ld_shlibs=no
9883	cat <<_LT_EOF 1>&2
9884
9885*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9886*** reliably create shared libraries on SCO systems.  Therefore, libtool
9887*** is disabling shared libraries support.  We urge you to upgrade GNU
9888*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9889*** your PATH or compiler configuration so that the native linker is
9890*** used, and then restart.
9891
9892_LT_EOF
9893	;;
9894	*)
9895	  # For security reasons, it is highly recommended that you always
9896	  # use absolute paths for naming shared libraries, and exclude the
9897	  # DT_RUNPATH tag from executables and libraries.  But doing so
9898	  # requires that you compile everything twice, which is a pain.
9899	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9900	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9901	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9902	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9903	  else
9904	    ld_shlibs=no
9905	  fi
9906	;;
9907      esac
9908      ;;
9909
9910    sunos4*)
9911      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9912      wlarc=
9913      hardcode_direct=yes
9914      hardcode_shlibpath_var=no
9915      ;;
9916
9917    *)
9918      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9919	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9920	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9921      else
9922	ld_shlibs=no
9923      fi
9924      ;;
9925    esac
9926
9927    if test no = "$ld_shlibs"; then
9928      runpath_var=
9929      hardcode_libdir_flag_spec=
9930      export_dynamic_flag_spec=
9931      whole_archive_flag_spec=
9932    fi
9933  else
9934    # PORTME fill in a description of your system's linker (not GNU ld)
9935    case $host_os in
9936    aix3*)
9937      allow_undefined_flag=unsupported
9938      always_export_symbols=yes
9939      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'
9940      # Note: this linker hardcodes the directories in LIBPATH if there
9941      # are no directories specified by -L.
9942      hardcode_minus_L=yes
9943      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9944	# Neither direct hardcoding nor static linking is supported with a
9945	# broken collect2.
9946	hardcode_direct=unsupported
9947      fi
9948      ;;
9949
9950    aix[4-9]*)
9951      if test ia64 = "$host_cpu"; then
9952	# On IA64, the linker does run time linking by default, so we don't
9953	# have to do anything special.
9954	aix_use_runtimelinking=no
9955	exp_sym_flag='-Bexport'
9956	no_entry_flag=
9957      else
9958	# If we're using GNU nm, then we don't want the "-C" option.
9959	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9960	# Without the "-l" option, or with the "-B" option, AIX nm treats
9961	# weak defined symbols like other global defined symbols, whereas
9962	# GNU nm marks them as "W".
9963	# While the 'weak' keyword is ignored in the Export File, we need
9964	# it in the Import File for the 'aix-soname' feature, so we have
9965	# to replace the "-B" option with "-P" for AIX nm.
9966	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9967	  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'
9968	else
9969	  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'
9970	fi
9971	aix_use_runtimelinking=no
9972
9973	# Test if we are trying to use run time linking or normal
9974	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9975	# have runtime linking enabled, and use it for executables.
9976	# For shared libraries, we enable/disable runtime linking
9977	# depending on the kind of the shared library created -
9978	# when "with_aix_soname,aix_use_runtimelinking" is:
9979	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9980	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9981	#            lib.a           static archive
9982	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9983	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9984	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9985	#            lib.a(lib.so.V) shared, rtl:no
9986	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9987	#            lib.a           static archive
9988	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9989	  for ld_flag in $LDFLAGS; do
9990	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9991	    aix_use_runtimelinking=yes
9992	    break
9993	  fi
9994	  done
9995	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9996	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9997	    # so we don't have lib.a shared libs to link our executables.
9998	    # We have to force runtime linking in this case.
9999	    aix_use_runtimelinking=yes
10000	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10001	  fi
10002	  ;;
10003	esac
10004
10005	exp_sym_flag='-bexport'
10006	no_entry_flag='-bnoentry'
10007      fi
10008
10009      # When large executables or shared objects are built, AIX ld can
10010      # have problems creating the table of contents.  If linking a library
10011      # or program results in "error TOC overflow" add -mminimal-toc to
10012      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10013      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10014
10015      archive_cmds=''
10016      hardcode_direct=yes
10017      hardcode_direct_absolute=yes
10018      hardcode_libdir_separator=':'
10019      link_all_deplibs=yes
10020      file_list_spec='$wl-f,'
10021      case $with_aix_soname,$aix_use_runtimelinking in
10022      aix,*) ;; # traditional, no import file
10023      svr4,* | *,yes) # use import file
10024	# The Import File defines what to hardcode.
10025	hardcode_direct=no
10026	hardcode_direct_absolute=no
10027	;;
10028      esac
10029
10030      if test yes = "$GCC"; then
10031	case $host_os in aix4.[012]|aix4.[012].*)
10032	# We only want to do this on AIX 4.2 and lower, the check
10033	# below for broken collect2 doesn't work under 4.3+
10034	  collect2name=`$CC -print-prog-name=collect2`
10035	  if test -f "$collect2name" &&
10036	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10037	  then
10038	  # We have reworked collect2
10039	  :
10040	  else
10041	  # We have old collect2
10042	  hardcode_direct=unsupported
10043	  # It fails to find uninstalled libraries when the uninstalled
10044	  # path is not listed in the libpath.  Setting hardcode_minus_L
10045	  # to unsupported forces relinking
10046	  hardcode_minus_L=yes
10047	  hardcode_libdir_flag_spec='-L$libdir'
10048	  hardcode_libdir_separator=
10049	  fi
10050	  ;;
10051	esac
10052	shared_flag='-shared'
10053	if test yes = "$aix_use_runtimelinking"; then
10054	  shared_flag="$shared_flag "'$wl-G'
10055	fi
10056	# Need to ensure runtime linking is disabled for the traditional
10057	# shared library, or the linker may eventually find shared libraries
10058	# /with/ Import File - we do not want to mix them.
10059	shared_flag_aix='-shared'
10060	shared_flag_svr4='-shared $wl-G'
10061      else
10062	# not using gcc
10063	if test ia64 = "$host_cpu"; then
10064	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10065	# chokes on -Wl,-G. The following line is correct:
10066	  shared_flag='-G'
10067	else
10068	  if test yes = "$aix_use_runtimelinking"; then
10069	    shared_flag='$wl-G'
10070	  else
10071	    shared_flag='$wl-bM:SRE'
10072	  fi
10073	  shared_flag_aix='$wl-bM:SRE'
10074	  shared_flag_svr4='$wl-G'
10075	fi
10076      fi
10077
10078      export_dynamic_flag_spec='$wl-bexpall'
10079      # It seems that -bexpall does not export symbols beginning with
10080      # underscore (_), so it is better to generate a list of symbols to export.
10081      always_export_symbols=yes
10082      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10083	# Warning - without using the other runtime loading flags (-brtl),
10084	# -berok will link without error, but may produce a broken library.
10085	allow_undefined_flag='-berok'
10086        # Determine the default libpath from the value encoded in an
10087        # empty executable.
10088        if test set = "${lt_cv_aix_libpath+set}"; then
10089  aix_libpath=$lt_cv_aix_libpath
10090else
10091  if test ${lt_cv_aix_libpath_+y}
10092then :
10093  printf %s "(cached) " >&6
10094else $as_nop
10095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10096/* end confdefs.h.  */
10097
10098int
10099main (void)
10100{
10101
10102  ;
10103  return 0;
10104}
10105_ACEOF
10106if ac_fn_c_try_link "$LINENO"
10107then :
10108
10109  lt_aix_libpath_sed='
10110      /Import File Strings/,/^$/ {
10111	  /^0/ {
10112	      s/^0  *\([^ ]*\) *$/\1/
10113	      p
10114	  }
10115      }'
10116  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10117  # Check for a 64-bit object if we didn't find anything.
10118  if test -z "$lt_cv_aix_libpath_"; then
10119    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10120  fi
10121fi
10122rm -f core conftest.err conftest.$ac_objext conftest.beam \
10123    conftest$ac_exeext conftest.$ac_ext
10124  if test -z "$lt_cv_aix_libpath_"; then
10125    lt_cv_aix_libpath_=/usr/lib:/lib
10126  fi
10127
10128fi
10129
10130  aix_libpath=$lt_cv_aix_libpath_
10131fi
10132
10133        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10134        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
10135      else
10136	if test ia64 = "$host_cpu"; then
10137	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10138	  allow_undefined_flag="-z nodefs"
10139	  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"
10140	else
10141	 # Determine the default libpath from the value encoded in an
10142	 # empty executable.
10143	 if test set = "${lt_cv_aix_libpath+set}"; then
10144  aix_libpath=$lt_cv_aix_libpath
10145else
10146  if test ${lt_cv_aix_libpath_+y}
10147then :
10148  printf %s "(cached) " >&6
10149else $as_nop
10150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10151/* end confdefs.h.  */
10152
10153int
10154main (void)
10155{
10156
10157  ;
10158  return 0;
10159}
10160_ACEOF
10161if ac_fn_c_try_link "$LINENO"
10162then :
10163
10164  lt_aix_libpath_sed='
10165      /Import File Strings/,/^$/ {
10166	  /^0/ {
10167	      s/^0  *\([^ ]*\) *$/\1/
10168	      p
10169	  }
10170      }'
10171  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10172  # Check for a 64-bit object if we didn't find anything.
10173  if test -z "$lt_cv_aix_libpath_"; then
10174    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10175  fi
10176fi
10177rm -f core conftest.err conftest.$ac_objext conftest.beam \
10178    conftest$ac_exeext conftest.$ac_ext
10179  if test -z "$lt_cv_aix_libpath_"; then
10180    lt_cv_aix_libpath_=/usr/lib:/lib
10181  fi
10182
10183fi
10184
10185  aix_libpath=$lt_cv_aix_libpath_
10186fi
10187
10188	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10189	  # Warning - without using the other run time loading flags,
10190	  # -berok will link without error, but may produce a broken library.
10191	  no_undefined_flag=' $wl-bernotok'
10192	  allow_undefined_flag=' $wl-berok'
10193	  if test yes = "$with_gnu_ld"; then
10194	    # We only use this code for GNU lds that support --whole-archive.
10195	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10196	  else
10197	    # Exported symbols can be pulled into shared objects from archives
10198	    whole_archive_flag_spec='$convenience'
10199	  fi
10200	  archive_cmds_need_lc=yes
10201	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10202	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10203	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10204	  if test svr4 != "$with_aix_soname"; then
10205	    # This is similar to how AIX traditionally builds its shared libraries.
10206	    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'
10207	  fi
10208	  if test aix != "$with_aix_soname"; then
10209	    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'
10210	  else
10211	    # used by -dlpreopen to get the symbols
10212	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10213	  fi
10214	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10215	fi
10216      fi
10217      ;;
10218
10219    amigaos*)
10220      case $host_cpu in
10221      powerpc)
10222            # see comment about AmigaOS4 .so support
10223            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10224            archive_expsym_cmds=''
10225        ;;
10226      m68k)
10227            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)'
10228            hardcode_libdir_flag_spec='-L$libdir'
10229            hardcode_minus_L=yes
10230        ;;
10231      esac
10232      ;;
10233
10234    bsdi[45]*)
10235      export_dynamic_flag_spec=-rdynamic
10236      ;;
10237
10238    cygwin* | mingw* | pw32* | cegcc*)
10239      # When not using gcc, we currently assume that we are using
10240      # Microsoft Visual C++ or Intel C++ Compiler.
10241      # hardcode_libdir_flag_spec is actually meaningless, as there is
10242      # no search path for DLLs.
10243      case $cc_basename in
10244      cl* | icl*)
10245	# Native MSVC or ICC
10246	hardcode_libdir_flag_spec=' '
10247	allow_undefined_flag=unsupported
10248	always_export_symbols=yes
10249	file_list_spec='@'
10250	# Tell ltmain to make .lib files, not .a files.
10251	libext=lib
10252	# Tell ltmain to make .dll files, not .so files.
10253	shrext_cmds=.dll
10254	# FIXME: Setting linknames here is a bad hack.
10255	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10256	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10257            cp "$export_symbols" "$output_objdir/$soname.def";
10258            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10259          else
10260            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10261          fi~
10262          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10263          linknames='
10264	# The linker will not automatically build a static lib if we build a DLL.
10265	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10266	enable_shared_with_static_runtimes=yes
10267	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10268	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10269	# Don't use ranlib
10270	old_postinstall_cmds='chmod 644 $oldlib'
10271	postlink_cmds='lt_outputfile="@OUTPUT@"~
10272          lt_tool_outputfile="@TOOL_OUTPUT@"~
10273          case $lt_outputfile in
10274            *.exe|*.EXE) ;;
10275            *)
10276              lt_outputfile=$lt_outputfile.exe
10277              lt_tool_outputfile=$lt_tool_outputfile.exe
10278              ;;
10279          esac~
10280          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10281            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10282            $RM "$lt_outputfile.manifest";
10283          fi'
10284	;;
10285      *)
10286	# Assume MSVC and ICC wrapper
10287	hardcode_libdir_flag_spec=' '
10288	allow_undefined_flag=unsupported
10289	# Tell ltmain to make .lib files, not .a files.
10290	libext=lib
10291	# Tell ltmain to make .dll files, not .so files.
10292	shrext_cmds=.dll
10293	# FIXME: Setting linknames here is a bad hack.
10294	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10295	# The linker will automatically build a .lib file if we build a DLL.
10296	old_archive_from_new_cmds='true'
10297	# FIXME: Should let the user specify the lib program.
10298	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10299	enable_shared_with_static_runtimes=yes
10300	;;
10301      esac
10302      ;;
10303
10304    darwin* | rhapsody*)
10305
10306
10307  archive_cmds_need_lc=no
10308  hardcode_direct=no
10309  hardcode_automatic=yes
10310  hardcode_shlibpath_var=unsupported
10311  if test yes = "$lt_cv_ld_force_load"; then
10312    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\"`'
10313
10314  else
10315    whole_archive_flag_spec=''
10316  fi
10317  link_all_deplibs=yes
10318  allow_undefined_flag=$_lt_dar_allow_undefined
10319  case $cc_basename in
10320     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10321     *) _lt_dar_can_shared=$GCC ;;
10322  esac
10323  if test yes = "$_lt_dar_can_shared"; then
10324    output_verbose_link_cmd=func_echo_all
10325    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10326    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10327    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"
10328    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"
10329
10330  else
10331  ld_shlibs=no
10332  fi
10333
10334      ;;
10335
10336    dgux*)
10337      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10338      hardcode_libdir_flag_spec='-L$libdir'
10339      hardcode_shlibpath_var=no
10340      ;;
10341
10342    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10343    # support.  Future versions do this automatically, but an explicit c++rt0.o
10344    # does not break anything, and helps significantly (at the cost of a little
10345    # extra space).
10346    freebsd2.2*)
10347      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10348      hardcode_libdir_flag_spec='-R$libdir'
10349      hardcode_direct=yes
10350      hardcode_shlibpath_var=no
10351      ;;
10352
10353    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10354    freebsd2.*)
10355      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10356      hardcode_direct=yes
10357      hardcode_minus_L=yes
10358      hardcode_shlibpath_var=no
10359      ;;
10360
10361    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10362    freebsd* | dragonfly* | midnightbsd*)
10363      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10364      hardcode_libdir_flag_spec='-R$libdir'
10365      hardcode_direct=yes
10366      hardcode_shlibpath_var=no
10367      ;;
10368
10369    hpux9*)
10370      if test yes = "$GCC"; then
10371	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'
10372      else
10373	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'
10374      fi
10375      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10376      hardcode_libdir_separator=:
10377      hardcode_direct=yes
10378
10379      # hardcode_minus_L: Not really in the search PATH,
10380      # but as the default location of the library.
10381      hardcode_minus_L=yes
10382      export_dynamic_flag_spec='$wl-E'
10383      ;;
10384
10385    hpux10*)
10386      if test yes,no = "$GCC,$with_gnu_ld"; then
10387	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10388      else
10389	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10390      fi
10391      if test no = "$with_gnu_ld"; then
10392	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10393	hardcode_libdir_separator=:
10394	hardcode_direct=yes
10395	hardcode_direct_absolute=yes
10396	export_dynamic_flag_spec='$wl-E'
10397	# hardcode_minus_L: Not really in the search PATH,
10398	# but as the default location of the library.
10399	hardcode_minus_L=yes
10400      fi
10401      ;;
10402
10403    hpux11*)
10404      if test yes,no = "$GCC,$with_gnu_ld"; then
10405	case $host_cpu in
10406	hppa*64*)
10407	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10408	  ;;
10409	ia64*)
10410	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10411	  ;;
10412	*)
10413	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10414	  ;;
10415	esac
10416      else
10417	case $host_cpu in
10418	hppa*64*)
10419	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10420	  ;;
10421	ia64*)
10422	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10423	  ;;
10424	*)
10425
10426	  # Older versions of the 11.00 compiler do not understand -b yet
10427	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10428	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10429printf %s "checking if $CC understands -b... " >&6; }
10430if test ${lt_cv_prog_compiler__b+y}
10431then :
10432  printf %s "(cached) " >&6
10433else $as_nop
10434  lt_cv_prog_compiler__b=no
10435   save_LDFLAGS=$LDFLAGS
10436   LDFLAGS="$LDFLAGS -b"
10437   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10438   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10439     # The linker can only warn and ignore the option if not recognized
10440     # So say no if there are warnings
10441     if test -s conftest.err; then
10442       # Append any errors to the config.log.
10443       cat conftest.err 1>&5
10444       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10445       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10446       if diff conftest.exp conftest.er2 >/dev/null; then
10447         lt_cv_prog_compiler__b=yes
10448       fi
10449     else
10450       lt_cv_prog_compiler__b=yes
10451     fi
10452   fi
10453   $RM -r conftest*
10454   LDFLAGS=$save_LDFLAGS
10455
10456fi
10457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10458printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10459
10460if test yes = "$lt_cv_prog_compiler__b"; then
10461    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10462else
10463    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10464fi
10465
10466	  ;;
10467	esac
10468      fi
10469      if test no = "$with_gnu_ld"; then
10470	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10471	hardcode_libdir_separator=:
10472
10473	case $host_cpu in
10474	hppa*64*|ia64*)
10475	  hardcode_direct=no
10476	  hardcode_shlibpath_var=no
10477	  ;;
10478	*)
10479	  hardcode_direct=yes
10480	  hardcode_direct_absolute=yes
10481	  export_dynamic_flag_spec='$wl-E'
10482
10483	  # hardcode_minus_L: Not really in the search PATH,
10484	  # but as the default location of the library.
10485	  hardcode_minus_L=yes
10486	  ;;
10487	esac
10488      fi
10489      ;;
10490
10491    irix5* | irix6* | nonstopux*)
10492      if test yes = "$GCC"; then
10493	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'
10494	# Try to use the -exported_symbol ld option, if it does not
10495	# work, assume that -exports_file does not work either and
10496	# implicitly export all symbols.
10497	# This should be the same for all languages, so no per-tag cache variable.
10498	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10499printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10500if test ${lt_cv_irix_exported_symbol+y}
10501then :
10502  printf %s "(cached) " >&6
10503else $as_nop
10504  save_LDFLAGS=$LDFLAGS
10505	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10506	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10507/* end confdefs.h.  */
10508int foo (void) { return 0; }
10509_ACEOF
10510if ac_fn_c_try_link "$LINENO"
10511then :
10512  lt_cv_irix_exported_symbol=yes
10513else $as_nop
10514  lt_cv_irix_exported_symbol=no
10515fi
10516rm -f core conftest.err conftest.$ac_objext conftest.beam \
10517    conftest$ac_exeext conftest.$ac_ext
10518           LDFLAGS=$save_LDFLAGS
10519fi
10520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10521printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10522	if test yes = "$lt_cv_irix_exported_symbol"; then
10523          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'
10524	fi
10525      else
10526	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'
10527	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'
10528      fi
10529      archive_cmds_need_lc='no'
10530      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10531      hardcode_libdir_separator=:
10532      inherit_rpath=yes
10533      link_all_deplibs=yes
10534      ;;
10535
10536    linux*)
10537      case $cc_basename in
10538      tcc*)
10539	# Fabrice Bellard et al's Tiny C Compiler
10540	ld_shlibs=yes
10541	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10542	;;
10543      esac
10544      ;;
10545
10546    netbsd*)
10547      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10548	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10549      else
10550	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10551      fi
10552      hardcode_libdir_flag_spec='-R$libdir'
10553      hardcode_direct=yes
10554      hardcode_shlibpath_var=no
10555      ;;
10556
10557    newsos6)
10558      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10559      hardcode_direct=yes
10560      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10561      hardcode_libdir_separator=:
10562      hardcode_shlibpath_var=no
10563      ;;
10564
10565    *nto* | *qnx*)
10566      ;;
10567
10568    openbsd* | bitrig*)
10569      if test -f /usr/libexec/ld.so; then
10570	hardcode_direct=yes
10571	hardcode_shlibpath_var=no
10572	hardcode_direct_absolute=yes
10573	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10574	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10575	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10576	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10577	  export_dynamic_flag_spec='$wl-E'
10578	else
10579	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10580	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10581	fi
10582      else
10583	ld_shlibs=no
10584      fi
10585      ;;
10586
10587    os2*)
10588      hardcode_libdir_flag_spec='-L$libdir'
10589      hardcode_minus_L=yes
10590      allow_undefined_flag=unsupported
10591      shrext_cmds=.dll
10592      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10593	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10594	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10595	$ECHO EXPORTS >> $output_objdir/$libname.def~
10596	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10597	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10598	emximp -o $lib $output_objdir/$libname.def'
10599      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10600	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10601	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10602	$ECHO EXPORTS >> $output_objdir/$libname.def~
10603	prefix_cmds="$SED"~
10604	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10605	  prefix_cmds="$prefix_cmds -e 1d";
10606	fi~
10607	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10608	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10609	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10610	emximp -o $lib $output_objdir/$libname.def'
10611      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10612      enable_shared_with_static_runtimes=yes
10613      file_list_spec='@'
10614      ;;
10615
10616    osf3*)
10617      if test yes = "$GCC"; then
10618	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10619	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'
10620      else
10621	allow_undefined_flag=' -expect_unresolved \*'
10622	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'
10623      fi
10624      archive_cmds_need_lc='no'
10625      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10626      hardcode_libdir_separator=:
10627      ;;
10628
10629    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10630      if test yes = "$GCC"; then
10631	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10632	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'
10633	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10634      else
10635	allow_undefined_flag=' -expect_unresolved \*'
10636	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'
10637	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~
10638          $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'
10639
10640	# Both c and cxx compiler support -rpath directly
10641	hardcode_libdir_flag_spec='-rpath $libdir'
10642      fi
10643      archive_cmds_need_lc='no'
10644      hardcode_libdir_separator=:
10645      ;;
10646
10647    solaris*)
10648      no_undefined_flag=' -z defs'
10649      if test yes = "$GCC"; then
10650	wlarc='$wl'
10651	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10652	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10653          $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'
10654      else
10655	case `$CC -V 2>&1` in
10656	*"Compilers 5.0"*)
10657	  wlarc=''
10658	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10659	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10660            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10661	  ;;
10662	*)
10663	  wlarc='$wl'
10664	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10665	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10666            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10667	  ;;
10668	esac
10669      fi
10670      hardcode_libdir_flag_spec='-R$libdir'
10671      hardcode_shlibpath_var=no
10672      case $host_os in
10673      solaris2.[0-5] | solaris2.[0-5].*) ;;
10674      *)
10675	# The compiler driver will combine and reorder linker options,
10676	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10677	# but is careful enough not to reorder.
10678	# Supported since Solaris 2.6 (maybe 2.5.1?)
10679	if test yes = "$GCC"; then
10680	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10681	else
10682	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10683	fi
10684	;;
10685      esac
10686      link_all_deplibs=yes
10687      ;;
10688
10689    sunos4*)
10690      if test sequent = "$host_vendor"; then
10691	# Use $CC to link under sequent, because it throws in some extra .o
10692	# files that make .init and .fini sections work.
10693	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10694      else
10695	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10696      fi
10697      hardcode_libdir_flag_spec='-L$libdir'
10698      hardcode_direct=yes
10699      hardcode_minus_L=yes
10700      hardcode_shlibpath_var=no
10701      ;;
10702
10703    sysv4)
10704      case $host_vendor in
10705	sni)
10706	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10707	  hardcode_direct=yes # is this really true???
10708	;;
10709	siemens)
10710	  ## LD is ld it makes a PLAMLIB
10711	  ## CC just makes a GrossModule.
10712	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10713	  reload_cmds='$CC -r -o $output$reload_objs'
10714	  hardcode_direct=no
10715        ;;
10716	motorola)
10717	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10718	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10719	;;
10720      esac
10721      runpath_var='LD_RUN_PATH'
10722      hardcode_shlibpath_var=no
10723      ;;
10724
10725    sysv4.3*)
10726      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10727      hardcode_shlibpath_var=no
10728      export_dynamic_flag_spec='-Bexport'
10729      ;;
10730
10731    sysv4*MP*)
10732      if test -d /usr/nec; then
10733	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10734	hardcode_shlibpath_var=no
10735	runpath_var=LD_RUN_PATH
10736	hardcode_runpath_var=yes
10737	ld_shlibs=yes
10738      fi
10739      ;;
10740
10741    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10742      no_undefined_flag='$wl-z,text'
10743      archive_cmds_need_lc=no
10744      hardcode_shlibpath_var=no
10745      runpath_var='LD_RUN_PATH'
10746
10747      if test yes = "$GCC"; then
10748	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10749	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10750      else
10751	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10752	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10753      fi
10754      ;;
10755
10756    sysv5* | sco3.2v5* | sco5v6*)
10757      # Note: We CANNOT use -z defs as we might desire, because we do not
10758      # link with -lc, and that would cause any symbols used from libc to
10759      # always be unresolved, which means just about no library would
10760      # ever link correctly.  If we're not using GNU ld we use -z text
10761      # though, which does catch some bad symbols but isn't as heavy-handed
10762      # as -z defs.
10763      no_undefined_flag='$wl-z,text'
10764      allow_undefined_flag='$wl-z,nodefs'
10765      archive_cmds_need_lc=no
10766      hardcode_shlibpath_var=no
10767      hardcode_libdir_flag_spec='$wl-R,$libdir'
10768      hardcode_libdir_separator=':'
10769      link_all_deplibs=yes
10770      export_dynamic_flag_spec='$wl-Bexport'
10771      runpath_var='LD_RUN_PATH'
10772
10773      if test yes = "$GCC"; then
10774	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10775	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10776      else
10777	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10778	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10779      fi
10780      ;;
10781
10782    uts4*)
10783      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10784      hardcode_libdir_flag_spec='-L$libdir'
10785      hardcode_shlibpath_var=no
10786      ;;
10787
10788    *)
10789      ld_shlibs=no
10790      ;;
10791    esac
10792
10793    if test sni = "$host_vendor"; then
10794      case $host in
10795      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10796	export_dynamic_flag_spec='$wl-Blargedynsym'
10797	;;
10798      esac
10799    fi
10800  fi
10801
10802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10803printf "%s\n" "$ld_shlibs" >&6; }
10804test no = "$ld_shlibs" && can_build_shared=no
10805
10806with_gnu_ld=$with_gnu_ld
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822#
10823# Do we need to explicitly link libc?
10824#
10825case "x$archive_cmds_need_lc" in
10826x|xyes)
10827  # Assume -lc should be added
10828  archive_cmds_need_lc=yes
10829
10830  if test yes,yes = "$GCC,$enable_shared"; then
10831    case $archive_cmds in
10832    *'~'*)
10833      # FIXME: we may have to deal with multi-command sequences.
10834      ;;
10835    '$CC '*)
10836      # Test whether the compiler implicitly links with -lc since on some
10837      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10838      # to ld, don't add -lc before -lgcc.
10839      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10840printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10841if test ${lt_cv_archive_cmds_need_lc+y}
10842then :
10843  printf %s "(cached) " >&6
10844else $as_nop
10845  $RM conftest*
10846	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10847
10848	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10849  (eval $ac_compile) 2>&5
10850  ac_status=$?
10851  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10852  test $ac_status = 0; } 2>conftest.err; then
10853	  soname=conftest
10854	  lib=conftest
10855	  libobjs=conftest.$ac_objext
10856	  deplibs=
10857	  wl=$lt_prog_compiler_wl
10858	  pic_flag=$lt_prog_compiler_pic
10859	  compiler_flags=-v
10860	  linker_flags=-v
10861	  verstring=
10862	  output_objdir=.
10863	  libname=conftest
10864	  lt_save_allow_undefined_flag=$allow_undefined_flag
10865	  allow_undefined_flag=
10866	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10867  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10868  ac_status=$?
10869  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10870  test $ac_status = 0; }
10871	  then
10872	    lt_cv_archive_cmds_need_lc=no
10873	  else
10874	    lt_cv_archive_cmds_need_lc=yes
10875	  fi
10876	  allow_undefined_flag=$lt_save_allow_undefined_flag
10877	else
10878	  cat conftest.err 1>&5
10879	fi
10880	$RM conftest*
10881
10882fi
10883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10884printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10885      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10886      ;;
10887    esac
10888  fi
10889  ;;
10890esac
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11044printf %s "checking dynamic linker characteristics... " >&6; }
11045
11046if test yes = "$GCC"; then
11047  case $host_os in
11048    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11049    *) lt_awk_arg='/^libraries:/' ;;
11050  esac
11051  case $host_os in
11052    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11053    *) lt_sed_strip_eq='s|=/|/|g' ;;
11054  esac
11055  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11056  case $lt_search_path_spec in
11057  *\;*)
11058    # if the path contains ";" then we assume it to be the separator
11059    # otherwise default to the standard path separator (i.e. ":") - it is
11060    # assumed that no part of a normal pathname contains ";" but that should
11061    # okay in the real world where ";" in dirpaths is itself problematic.
11062    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11063    ;;
11064  *)
11065    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11066    ;;
11067  esac
11068  # Ok, now we have the path, separated by spaces, we can step through it
11069  # and add multilib dir if necessary...
11070  lt_tmp_lt_search_path_spec=
11071  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11072  # ...but if some path component already ends with the multilib dir we assume
11073  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11074  case "$lt_multi_os_dir; $lt_search_path_spec " in
11075  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11076    lt_multi_os_dir=
11077    ;;
11078  esac
11079  for lt_sys_path in $lt_search_path_spec; do
11080    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11081      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11082    elif test -n "$lt_multi_os_dir"; then
11083      test -d "$lt_sys_path" && \
11084	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11085    fi
11086  done
11087  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11088BEGIN {RS = " "; FS = "/|\n";} {
11089  lt_foo = "";
11090  lt_count = 0;
11091  for (lt_i = NF; lt_i > 0; lt_i--) {
11092    if ($lt_i != "" && $lt_i != ".") {
11093      if ($lt_i == "..") {
11094        lt_count++;
11095      } else {
11096        if (lt_count == 0) {
11097          lt_foo = "/" $lt_i lt_foo;
11098        } else {
11099          lt_count--;
11100        }
11101      }
11102    }
11103  }
11104  if (lt_foo != "") { lt_freq[lt_foo]++; }
11105  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11106}'`
11107  # AWK program above erroneously prepends '/' to C:/dos/paths
11108  # for these hosts.
11109  case $host_os in
11110    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11111      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11112  esac
11113  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11114else
11115  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11116fi
11117library_names_spec=
11118libname_spec='lib$name'
11119soname_spec=
11120shrext_cmds=.so
11121postinstall_cmds=
11122postuninstall_cmds=
11123finish_cmds=
11124finish_eval=
11125shlibpath_var=
11126shlibpath_overrides_runpath=unknown
11127version_type=none
11128dynamic_linker="$host_os ld.so"
11129sys_lib_dlsearch_path_spec="/lib /usr/lib"
11130need_lib_prefix=unknown
11131hardcode_into_libs=no
11132
11133# when you set need_version to no, make sure it does not cause -set_version
11134# flags to be left without arguments
11135need_version=unknown
11136
11137
11138
11139case $host_os in
11140aix3*)
11141  version_type=linux # correct to gnu/linux during the next big refactor
11142  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11143  shlibpath_var=LIBPATH
11144
11145  # AIX 3 has no versioning support, so we append a major version to the name.
11146  soname_spec='$libname$release$shared_ext$major'
11147  ;;
11148
11149aix[4-9]*)
11150  version_type=linux # correct to gnu/linux during the next big refactor
11151  need_lib_prefix=no
11152  need_version=no
11153  hardcode_into_libs=yes
11154  if test ia64 = "$host_cpu"; then
11155    # AIX 5 supports IA64
11156    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11157    shlibpath_var=LD_LIBRARY_PATH
11158  else
11159    # With GCC up to 2.95.x, collect2 would create an import file
11160    # for dependence libraries.  The import file would start with
11161    # the line '#! .'.  This would cause the generated library to
11162    # depend on '.', always an invalid library.  This was fixed in
11163    # development snapshots of GCC prior to 3.0.
11164    case $host_os in
11165      aix4 | aix4.[01] | aix4.[01].*)
11166      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11167	   echo ' yes '
11168	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11169	:
11170      else
11171	can_build_shared=no
11172      fi
11173      ;;
11174    esac
11175    # Using Import Files as archive members, it is possible to support
11176    # filename-based versioning of shared library archives on AIX. While
11177    # this would work for both with and without runtime linking, it will
11178    # prevent static linking of such archives. So we do filename-based
11179    # shared library versioning with .so extension only, which is used
11180    # when both runtime linking and shared linking is enabled.
11181    # Unfortunately, runtime linking may impact performance, so we do
11182    # not want this to be the default eventually. Also, we use the
11183    # versioned .so libs for executables only if there is the -brtl
11184    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11185    # To allow for filename-based versioning support, we need to create
11186    # libNAME.so.V as an archive file, containing:
11187    # *) an Import File, referring to the versioned filename of the
11188    #    archive as well as the shared archive member, telling the
11189    #    bitwidth (32 or 64) of that shared object, and providing the
11190    #    list of exported symbols of that shared object, eventually
11191    #    decorated with the 'weak' keyword
11192    # *) the shared object with the F_LOADONLY flag set, to really avoid
11193    #    it being seen by the linker.
11194    # At run time we better use the real file rather than another symlink,
11195    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11196
11197    case $with_aix_soname,$aix_use_runtimelinking in
11198    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11199    # soname into executable. Probably we can add versioning support to
11200    # collect2, so additional links can be useful in future.
11201    aix,yes) # traditional libtool
11202      dynamic_linker='AIX unversionable lib.so'
11203      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11204      # instead of lib<name>.a to let people know that these are not
11205      # typical AIX shared libraries.
11206      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11207      ;;
11208    aix,no) # traditional AIX only
11209      dynamic_linker='AIX lib.a(lib.so.V)'
11210      # We preserve .a as extension for shared libraries through AIX4.2
11211      # and later when we are not doing run time linking.
11212      library_names_spec='$libname$release.a $libname.a'
11213      soname_spec='$libname$release$shared_ext$major'
11214      ;;
11215    svr4,*) # full svr4 only
11216      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11217      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11218      # We do not specify a path in Import Files, so LIBPATH fires.
11219      shlibpath_overrides_runpath=yes
11220      ;;
11221    *,yes) # both, prefer svr4
11222      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11223      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11224      # unpreferred sharedlib libNAME.a needs extra handling
11225      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"'
11226      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"'
11227      # We do not specify a path in Import Files, so LIBPATH fires.
11228      shlibpath_overrides_runpath=yes
11229      ;;
11230    *,no) # both, prefer aix
11231      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11232      library_names_spec='$libname$release.a $libname.a'
11233      soname_spec='$libname$release$shared_ext$major'
11234      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11235      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)'
11236      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"'
11237      ;;
11238    esac
11239    shlibpath_var=LIBPATH
11240  fi
11241  ;;
11242
11243amigaos*)
11244  case $host_cpu in
11245  powerpc)
11246    # Since July 2007 AmigaOS4 officially supports .so libraries.
11247    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11248    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11249    ;;
11250  m68k)
11251    library_names_spec='$libname.ixlibrary $libname.a'
11252    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11253    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'
11254    ;;
11255  esac
11256  ;;
11257
11258beos*)
11259  library_names_spec='$libname$shared_ext'
11260  dynamic_linker="$host_os ld.so"
11261  shlibpath_var=LIBRARY_PATH
11262  ;;
11263
11264bsdi[45]*)
11265  version_type=linux # correct to gnu/linux during the next big refactor
11266  need_version=no
11267  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11268  soname_spec='$libname$release$shared_ext$major'
11269  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11270  shlibpath_var=LD_LIBRARY_PATH
11271  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11272  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11273  # the default ld.so.conf also contains /usr/contrib/lib and
11274  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11275  # libtool to hard-code these into programs
11276  ;;
11277
11278cygwin* | mingw* | pw32* | cegcc*)
11279  version_type=windows
11280  shrext_cmds=.dll
11281  need_version=no
11282  need_lib_prefix=no
11283
11284  case $GCC,$cc_basename in
11285  yes,*)
11286    # gcc
11287    library_names_spec='$libname.dll.a'
11288    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11289    postinstall_cmds='base_file=`basename \$file`~
11290      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11291      dldir=$destdir/`dirname \$dlpath`~
11292      test -d \$dldir || mkdir -p \$dldir~
11293      $install_prog $dir/$dlname \$dldir/$dlname~
11294      chmod a+x \$dldir/$dlname~
11295      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11296        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11297      fi'
11298    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11299      dlpath=$dir/\$dldll~
11300       $RM \$dlpath'
11301    shlibpath_overrides_runpath=yes
11302
11303    case $host_os in
11304    cygwin*)
11305      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11306      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11307
11308      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11309      ;;
11310    mingw* | cegcc*)
11311      # MinGW DLLs use traditional 'lib' prefix
11312      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11313      ;;
11314    pw32*)
11315      # pw32 DLLs use 'pw' prefix rather than 'lib'
11316      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11317      ;;
11318    esac
11319    dynamic_linker='Win32 ld.exe'
11320    ;;
11321
11322  *,cl* | *,icl*)
11323    # Native MSVC or ICC
11324    libname_spec='$name'
11325    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11326    library_names_spec='$libname.dll.lib'
11327
11328    case $build_os in
11329    mingw*)
11330      sys_lib_search_path_spec=
11331      lt_save_ifs=$IFS
11332      IFS=';'
11333      for lt_path in $LIB
11334      do
11335        IFS=$lt_save_ifs
11336        # Let DOS variable expansion print the short 8.3 style file name.
11337        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11338        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11339      done
11340      IFS=$lt_save_ifs
11341      # Convert to MSYS style.
11342      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11343      ;;
11344    cygwin*)
11345      # Convert to unix form, then to dos form, then back to unix form
11346      # but this time dos style (no spaces!) so that the unix form looks
11347      # like /cygdrive/c/PROGRA~1:/cygdr...
11348      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11349      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11350      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11351      ;;
11352    *)
11353      sys_lib_search_path_spec=$LIB
11354      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11355        # It is most probably a Windows format PATH.
11356        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11357      else
11358        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11359      fi
11360      # FIXME: find the short name or the path components, as spaces are
11361      # common. (e.g. "Program Files" -> "PROGRA~1")
11362      ;;
11363    esac
11364
11365    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11366    postinstall_cmds='base_file=`basename \$file`~
11367      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11368      dldir=$destdir/`dirname \$dlpath`~
11369      test -d \$dldir || mkdir -p \$dldir~
11370      $install_prog $dir/$dlname \$dldir/$dlname'
11371    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11372      dlpath=$dir/\$dldll~
11373       $RM \$dlpath'
11374    shlibpath_overrides_runpath=yes
11375    dynamic_linker='Win32 link.exe'
11376    ;;
11377
11378  *)
11379    # Assume MSVC and ICC wrapper
11380    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11381    dynamic_linker='Win32 ld.exe'
11382    ;;
11383  esac
11384  # FIXME: first we should search . and the directory the executable is in
11385  shlibpath_var=PATH
11386  ;;
11387
11388darwin* | rhapsody*)
11389  dynamic_linker="$host_os dyld"
11390  version_type=darwin
11391  need_lib_prefix=no
11392  need_version=no
11393  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11394  soname_spec='$libname$release$major$shared_ext'
11395  shlibpath_overrides_runpath=yes
11396  shlibpath_var=DYLD_LIBRARY_PATH
11397  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11398
11399  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11400  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11401  ;;
11402
11403dgux*)
11404  version_type=linux # correct to gnu/linux during the next big refactor
11405  need_lib_prefix=no
11406  need_version=no
11407  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11408  soname_spec='$libname$release$shared_ext$major'
11409  shlibpath_var=LD_LIBRARY_PATH
11410  ;;
11411
11412freebsd* | dragonfly* | midnightbsd*)
11413  # DragonFly does not have aout.  When/if they implement a new
11414  # versioning mechanism, adjust this.
11415  if test -x /usr/bin/objformat; then
11416    objformat=`/usr/bin/objformat`
11417  else
11418    case $host_os in
11419    freebsd[23].*) objformat=aout ;;
11420    *) objformat=elf ;;
11421    esac
11422  fi
11423  version_type=freebsd-$objformat
11424  case $version_type in
11425    freebsd-elf*)
11426      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11427      soname_spec='$libname$release$shared_ext$major'
11428      need_version=no
11429      need_lib_prefix=no
11430      ;;
11431    freebsd-*)
11432      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11433      need_version=yes
11434      ;;
11435  esac
11436  shlibpath_var=LD_LIBRARY_PATH
11437  case $host_os in
11438  freebsd2.*)
11439    shlibpath_overrides_runpath=yes
11440    ;;
11441  freebsd3.[01]* | freebsdelf3.[01]*)
11442    shlibpath_overrides_runpath=yes
11443    hardcode_into_libs=yes
11444    ;;
11445  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11446  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11447    shlibpath_overrides_runpath=no
11448    hardcode_into_libs=yes
11449    ;;
11450  *) # from 4.6 on, and DragonFly
11451    shlibpath_overrides_runpath=yes
11452    hardcode_into_libs=yes
11453    ;;
11454  esac
11455  ;;
11456
11457haiku*)
11458  version_type=linux # correct to gnu/linux during the next big refactor
11459  need_lib_prefix=no
11460  need_version=no
11461  dynamic_linker="$host_os runtime_loader"
11462  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11463  soname_spec='$libname$release$shared_ext$major'
11464  shlibpath_var=LIBRARY_PATH
11465  shlibpath_overrides_runpath=no
11466  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11467  hardcode_into_libs=yes
11468  ;;
11469
11470hpux9* | hpux10* | hpux11*)
11471  # Give a soname corresponding to the major version so that dld.sl refuses to
11472  # link against other versions.
11473  version_type=sunos
11474  need_lib_prefix=no
11475  need_version=no
11476  case $host_cpu in
11477  ia64*)
11478    shrext_cmds='.so'
11479    hardcode_into_libs=yes
11480    dynamic_linker="$host_os dld.so"
11481    shlibpath_var=LD_LIBRARY_PATH
11482    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11483    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11484    soname_spec='$libname$release$shared_ext$major'
11485    if test 32 = "$HPUX_IA64_MODE"; then
11486      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11487      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11488    else
11489      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11490      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11491    fi
11492    ;;
11493  hppa*64*)
11494    shrext_cmds='.sl'
11495    hardcode_into_libs=yes
11496    dynamic_linker="$host_os dld.sl"
11497    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11498    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11499    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11500    soname_spec='$libname$release$shared_ext$major'
11501    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11502    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11503    ;;
11504  *)
11505    shrext_cmds='.sl'
11506    dynamic_linker="$host_os dld.sl"
11507    shlibpath_var=SHLIB_PATH
11508    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11509    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11510    soname_spec='$libname$release$shared_ext$major'
11511    ;;
11512  esac
11513  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11514  postinstall_cmds='chmod 555 $lib'
11515  # or fails outright, so override atomically:
11516  install_override_mode=555
11517  ;;
11518
11519interix[3-9]*)
11520  version_type=linux # correct to gnu/linux during the next big refactor
11521  need_lib_prefix=no
11522  need_version=no
11523  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11524  soname_spec='$libname$release$shared_ext$major'
11525  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11526  shlibpath_var=LD_LIBRARY_PATH
11527  shlibpath_overrides_runpath=no
11528  hardcode_into_libs=yes
11529  ;;
11530
11531irix5* | irix6* | nonstopux*)
11532  case $host_os in
11533    nonstopux*) version_type=nonstopux ;;
11534    *)
11535	if test yes = "$lt_cv_prog_gnu_ld"; then
11536		version_type=linux # correct to gnu/linux during the next big refactor
11537	else
11538		version_type=irix
11539	fi ;;
11540  esac
11541  need_lib_prefix=no
11542  need_version=no
11543  soname_spec='$libname$release$shared_ext$major'
11544  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11545  case $host_os in
11546  irix5* | nonstopux*)
11547    libsuff= shlibsuff=
11548    ;;
11549  *)
11550    case $LD in # libtool.m4 will add one of these switches to LD
11551    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11552      libsuff= shlibsuff= libmagic=32-bit;;
11553    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11554      libsuff=32 shlibsuff=N32 libmagic=N32;;
11555    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11556      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11557    *) libsuff= shlibsuff= libmagic=never-match;;
11558    esac
11559    ;;
11560  esac
11561  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11562  shlibpath_overrides_runpath=no
11563  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11564  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11565  hardcode_into_libs=yes
11566  ;;
11567
11568# No shared lib support for Linux oldld, aout, or coff.
11569linux*oldld* | linux*aout* | linux*coff*)
11570  dynamic_linker=no
11571  ;;
11572
11573linux*android*)
11574  version_type=none # Android doesn't support versioned libraries.
11575  need_lib_prefix=no
11576  need_version=no
11577  library_names_spec='$libname$release$shared_ext'
11578  soname_spec='$libname$release$shared_ext'
11579  finish_cmds=
11580  shlibpath_var=LD_LIBRARY_PATH
11581  shlibpath_overrides_runpath=yes
11582
11583  # This implies no fast_install, which is unacceptable.
11584  # Some rework will be needed to allow for fast_install
11585  # before this can be enabled.
11586  hardcode_into_libs=yes
11587
11588  dynamic_linker='Android linker'
11589  # Don't embed -rpath directories since the linker doesn't support them.
11590  hardcode_libdir_flag_spec='-L$libdir'
11591  ;;
11592
11593# This must be glibc/ELF.
11594linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11595  version_type=linux # correct to gnu/linux during the next big refactor
11596  need_lib_prefix=no
11597  need_version=no
11598  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11599  soname_spec='$libname$release$shared_ext$major'
11600  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11601  shlibpath_var=LD_LIBRARY_PATH
11602  shlibpath_overrides_runpath=no
11603
11604  # Some binutils ld are patched to set DT_RUNPATH
11605  if test ${lt_cv_shlibpath_overrides_runpath+y}
11606then :
11607  printf %s "(cached) " >&6
11608else $as_nop
11609  lt_cv_shlibpath_overrides_runpath=no
11610    save_LDFLAGS=$LDFLAGS
11611    save_libdir=$libdir
11612    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11613	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11614    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11615/* end confdefs.h.  */
11616
11617int
11618main (void)
11619{
11620
11621  ;
11622  return 0;
11623}
11624_ACEOF
11625if ac_fn_c_try_link "$LINENO"
11626then :
11627  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11628then :
11629  lt_cv_shlibpath_overrides_runpath=yes
11630fi
11631fi
11632rm -f core conftest.err conftest.$ac_objext conftest.beam \
11633    conftest$ac_exeext conftest.$ac_ext
11634    LDFLAGS=$save_LDFLAGS
11635    libdir=$save_libdir
11636
11637fi
11638
11639  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11640
11641  # This implies no fast_install, which is unacceptable.
11642  # Some rework will be needed to allow for fast_install
11643  # before this can be enabled.
11644  hardcode_into_libs=yes
11645
11646  # Ideally, we could use ldconfig to report *all* directores which are
11647  # searched for libraries, however this is still not possible.  Aside from not
11648  # being certain /sbin/ldconfig is available, command
11649  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11650  # even though it is searched at run-time.  Try to do the best guess by
11651  # appending ld.so.conf contents (and includes) to the search path.
11652  if test -f /etc/ld.so.conf; then
11653    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' ' '`
11654    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11655  fi
11656
11657  # We used to test for /lib/ld.so.1 and disable shared libraries on
11658  # powerpc, because MkLinux only supported shared libraries with the
11659  # GNU dynamic linker.  Since this was broken with cross compilers,
11660  # most powerpc-linux boxes support dynamic linking these days and
11661  # people can always --disable-shared, the test was removed, and we
11662  # assume the GNU/Linux dynamic linker is in use.
11663  dynamic_linker='GNU/Linux ld.so'
11664  ;;
11665
11666netbsd*)
11667  version_type=sunos
11668  need_lib_prefix=no
11669  need_version=no
11670  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11671    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11672    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11673    dynamic_linker='NetBSD (a.out) ld.so'
11674  else
11675    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11676    soname_spec='$libname$release$shared_ext$major'
11677    dynamic_linker='NetBSD ld.elf_so'
11678  fi
11679  shlibpath_var=LD_LIBRARY_PATH
11680  shlibpath_overrides_runpath=yes
11681  hardcode_into_libs=yes
11682  ;;
11683
11684newsos6)
11685  version_type=linux # correct to gnu/linux during the next big refactor
11686  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11687  shlibpath_var=LD_LIBRARY_PATH
11688  shlibpath_overrides_runpath=yes
11689  ;;
11690
11691*nto* | *qnx*)
11692  version_type=qnx
11693  need_lib_prefix=no
11694  need_version=no
11695  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11696  soname_spec='$libname$release$shared_ext$major'
11697  shlibpath_var=LD_LIBRARY_PATH
11698  shlibpath_overrides_runpath=no
11699  hardcode_into_libs=yes
11700  dynamic_linker='ldqnx.so'
11701  ;;
11702
11703openbsd* | bitrig*)
11704  version_type=sunos
11705  sys_lib_dlsearch_path_spec=/usr/lib
11706  need_lib_prefix=no
11707  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11708    need_version=no
11709  else
11710    need_version=yes
11711  fi
11712  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11713  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11714  shlibpath_var=LD_LIBRARY_PATH
11715  shlibpath_overrides_runpath=yes
11716  ;;
11717
11718os2*)
11719  libname_spec='$name'
11720  version_type=windows
11721  shrext_cmds=.dll
11722  need_version=no
11723  need_lib_prefix=no
11724  # OS/2 can only load a DLL with a base name of 8 characters or less.
11725  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11726    v=$($ECHO $release$versuffix | tr -d .-);
11727    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11728    $ECHO $n$v`$shared_ext'
11729  library_names_spec='${libname}_dll.$libext'
11730  dynamic_linker='OS/2 ld.exe'
11731  shlibpath_var=BEGINLIBPATH
11732  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11733  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11734  postinstall_cmds='base_file=`basename \$file`~
11735    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11736    dldir=$destdir/`dirname \$dlpath`~
11737    test -d \$dldir || mkdir -p \$dldir~
11738    $install_prog $dir/$dlname \$dldir/$dlname~
11739    chmod a+x \$dldir/$dlname~
11740    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11741      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11742    fi'
11743  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11744    dlpath=$dir/\$dldll~
11745    $RM \$dlpath'
11746  ;;
11747
11748osf3* | osf4* | osf5*)
11749  version_type=osf
11750  need_lib_prefix=no
11751  need_version=no
11752  soname_spec='$libname$release$shared_ext$major'
11753  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11754  shlibpath_var=LD_LIBRARY_PATH
11755  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11756  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11757  ;;
11758
11759rdos*)
11760  dynamic_linker=no
11761  ;;
11762
11763solaris*)
11764  version_type=linux # correct to gnu/linux during the next big refactor
11765  need_lib_prefix=no
11766  need_version=no
11767  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11768  soname_spec='$libname$release$shared_ext$major'
11769  shlibpath_var=LD_LIBRARY_PATH
11770  shlibpath_overrides_runpath=yes
11771  hardcode_into_libs=yes
11772  # ldd complains unless libraries are executable
11773  postinstall_cmds='chmod +x $lib'
11774  ;;
11775
11776sunos4*)
11777  version_type=sunos
11778  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11779  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11780  shlibpath_var=LD_LIBRARY_PATH
11781  shlibpath_overrides_runpath=yes
11782  if test yes = "$with_gnu_ld"; then
11783    need_lib_prefix=no
11784  fi
11785  need_version=yes
11786  ;;
11787
11788sysv4 | sysv4.3*)
11789  version_type=linux # correct to gnu/linux during the next big refactor
11790  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11791  soname_spec='$libname$release$shared_ext$major'
11792  shlibpath_var=LD_LIBRARY_PATH
11793  case $host_vendor in
11794    sni)
11795      shlibpath_overrides_runpath=no
11796      need_lib_prefix=no
11797      runpath_var=LD_RUN_PATH
11798      ;;
11799    siemens)
11800      need_lib_prefix=no
11801      ;;
11802    motorola)
11803      need_lib_prefix=no
11804      need_version=no
11805      shlibpath_overrides_runpath=no
11806      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11807      ;;
11808  esac
11809  ;;
11810
11811sysv4*MP*)
11812  if test -d /usr/nec; then
11813    version_type=linux # correct to gnu/linux during the next big refactor
11814    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11815    soname_spec='$libname$shared_ext.$major'
11816    shlibpath_var=LD_LIBRARY_PATH
11817  fi
11818  ;;
11819
11820sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11821  version_type=sco
11822  need_lib_prefix=no
11823  need_version=no
11824  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11825  soname_spec='$libname$release$shared_ext$major'
11826  shlibpath_var=LD_LIBRARY_PATH
11827  shlibpath_overrides_runpath=yes
11828  hardcode_into_libs=yes
11829  if test yes = "$with_gnu_ld"; then
11830    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11831  else
11832    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11833    case $host_os in
11834      sco3.2v5*)
11835        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11836	;;
11837    esac
11838  fi
11839  sys_lib_dlsearch_path_spec='/usr/lib'
11840  ;;
11841
11842tpf*)
11843  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11844  version_type=linux # correct to gnu/linux during the next big refactor
11845  need_lib_prefix=no
11846  need_version=no
11847  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11848  shlibpath_var=LD_LIBRARY_PATH
11849  shlibpath_overrides_runpath=no
11850  hardcode_into_libs=yes
11851  ;;
11852
11853uts4*)
11854  version_type=linux # correct to gnu/linux during the next big refactor
11855  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11856  soname_spec='$libname$release$shared_ext$major'
11857  shlibpath_var=LD_LIBRARY_PATH
11858  ;;
11859
11860*)
11861  dynamic_linker=no
11862  ;;
11863esac
11864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11865printf "%s\n" "$dynamic_linker" >&6; }
11866test no = "$dynamic_linker" && can_build_shared=no
11867
11868variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11869if test yes = "$GCC"; then
11870  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11871fi
11872
11873if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11874  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11875fi
11876
11877if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11878  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11879fi
11880
11881# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11882configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11883
11884# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11885func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11886
11887# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11888configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11987printf %s "checking how to hardcode library paths into programs... " >&6; }
11988hardcode_action=
11989if test -n "$hardcode_libdir_flag_spec" ||
11990   test -n "$runpath_var" ||
11991   test yes = "$hardcode_automatic"; then
11992
11993  # We can hardcode non-existent directories.
11994  if test no != "$hardcode_direct" &&
11995     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11996     # have to relink, otherwise we might link with an installed library
11997     # when we should be linking with a yet-to-be-installed one
11998     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11999     test no != "$hardcode_minus_L"; then
12000    # Linking always hardcodes the temporary library directory.
12001    hardcode_action=relink
12002  else
12003    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12004    hardcode_action=immediate
12005  fi
12006else
12007  # We cannot hardcode anything, or else we can only hardcode existing
12008  # directories.
12009  hardcode_action=unsupported
12010fi
12011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12012printf "%s\n" "$hardcode_action" >&6; }
12013
12014if test relink = "$hardcode_action" ||
12015   test yes = "$inherit_rpath"; then
12016  # Fast installation is not supported
12017  enable_fast_install=no
12018elif test yes = "$shlibpath_overrides_runpath" ||
12019     test no = "$enable_shared"; then
12020  # Fast installation is not necessary
12021  enable_fast_install=needless
12022fi
12023
12024
12025
12026
12027
12028
12029  if test yes != "$enable_dlopen"; then
12030  enable_dlopen=unknown
12031  enable_dlopen_self=unknown
12032  enable_dlopen_self_static=unknown
12033else
12034  lt_cv_dlopen=no
12035  lt_cv_dlopen_libs=
12036
12037  case $host_os in
12038  beos*)
12039    lt_cv_dlopen=load_add_on
12040    lt_cv_dlopen_libs=
12041    lt_cv_dlopen_self=yes
12042    ;;
12043
12044  mingw* | pw32* | cegcc*)
12045    lt_cv_dlopen=LoadLibrary
12046    lt_cv_dlopen_libs=
12047    ;;
12048
12049  cygwin*)
12050    lt_cv_dlopen=dlopen
12051    lt_cv_dlopen_libs=
12052    ;;
12053
12054  darwin*)
12055    # if libdl is installed we need to link against it
12056    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12057printf %s "checking for dlopen in -ldl... " >&6; }
12058if test ${ac_cv_lib_dl_dlopen+y}
12059then :
12060  printf %s "(cached) " >&6
12061else $as_nop
12062  ac_check_lib_save_LIBS=$LIBS
12063LIBS="-ldl  $LIBS"
12064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12065/* end confdefs.h.  */
12066
12067/* Override any GCC internal prototype to avoid an error.
12068   Use char because int might match the return type of a GCC
12069   builtin and then its argument prototype would still apply.  */
12070char dlopen ();
12071int
12072main (void)
12073{
12074return dlopen ();
12075  ;
12076  return 0;
12077}
12078_ACEOF
12079if ac_fn_c_try_link "$LINENO"
12080then :
12081  ac_cv_lib_dl_dlopen=yes
12082else $as_nop
12083  ac_cv_lib_dl_dlopen=no
12084fi
12085rm -f core conftest.err conftest.$ac_objext conftest.beam \
12086    conftest$ac_exeext conftest.$ac_ext
12087LIBS=$ac_check_lib_save_LIBS
12088fi
12089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12090printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12091if test "x$ac_cv_lib_dl_dlopen" = xyes
12092then :
12093  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12094else $as_nop
12095
12096    lt_cv_dlopen=dyld
12097    lt_cv_dlopen_libs=
12098    lt_cv_dlopen_self=yes
12099
12100fi
12101
12102    ;;
12103
12104  tpf*)
12105    # Don't try to run any link tests for TPF.  We know it's impossible
12106    # because TPF is a cross-compiler, and we know how we open DSOs.
12107    lt_cv_dlopen=dlopen
12108    lt_cv_dlopen_libs=
12109    lt_cv_dlopen_self=no
12110    ;;
12111
12112  *)
12113    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12114if test "x$ac_cv_func_shl_load" = xyes
12115then :
12116  lt_cv_dlopen=shl_load
12117else $as_nop
12118  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12119printf %s "checking for shl_load in -ldld... " >&6; }
12120if test ${ac_cv_lib_dld_shl_load+y}
12121then :
12122  printf %s "(cached) " >&6
12123else $as_nop
12124  ac_check_lib_save_LIBS=$LIBS
12125LIBS="-ldld  $LIBS"
12126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12127/* end confdefs.h.  */
12128
12129/* Override any GCC internal prototype to avoid an error.
12130   Use char because int might match the return type of a GCC
12131   builtin and then its argument prototype would still apply.  */
12132char shl_load ();
12133int
12134main (void)
12135{
12136return shl_load ();
12137  ;
12138  return 0;
12139}
12140_ACEOF
12141if ac_fn_c_try_link "$LINENO"
12142then :
12143  ac_cv_lib_dld_shl_load=yes
12144else $as_nop
12145  ac_cv_lib_dld_shl_load=no
12146fi
12147rm -f core conftest.err conftest.$ac_objext conftest.beam \
12148    conftest$ac_exeext conftest.$ac_ext
12149LIBS=$ac_check_lib_save_LIBS
12150fi
12151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12152printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12153if test "x$ac_cv_lib_dld_shl_load" = xyes
12154then :
12155  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12156else $as_nop
12157  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12158if test "x$ac_cv_func_dlopen" = xyes
12159then :
12160  lt_cv_dlopen=dlopen
12161else $as_nop
12162  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12163printf %s "checking for dlopen in -ldl... " >&6; }
12164if test ${ac_cv_lib_dl_dlopen+y}
12165then :
12166  printf %s "(cached) " >&6
12167else $as_nop
12168  ac_check_lib_save_LIBS=$LIBS
12169LIBS="-ldl  $LIBS"
12170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12171/* end confdefs.h.  */
12172
12173/* Override any GCC internal prototype to avoid an error.
12174   Use char because int might match the return type of a GCC
12175   builtin and then its argument prototype would still apply.  */
12176char dlopen ();
12177int
12178main (void)
12179{
12180return dlopen ();
12181  ;
12182  return 0;
12183}
12184_ACEOF
12185if ac_fn_c_try_link "$LINENO"
12186then :
12187  ac_cv_lib_dl_dlopen=yes
12188else $as_nop
12189  ac_cv_lib_dl_dlopen=no
12190fi
12191rm -f core conftest.err conftest.$ac_objext conftest.beam \
12192    conftest$ac_exeext conftest.$ac_ext
12193LIBS=$ac_check_lib_save_LIBS
12194fi
12195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12196printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12197if test "x$ac_cv_lib_dl_dlopen" = xyes
12198then :
12199  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12200else $as_nop
12201  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12202printf %s "checking for dlopen in -lsvld... " >&6; }
12203if test ${ac_cv_lib_svld_dlopen+y}
12204then :
12205  printf %s "(cached) " >&6
12206else $as_nop
12207  ac_check_lib_save_LIBS=$LIBS
12208LIBS="-lsvld  $LIBS"
12209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12210/* end confdefs.h.  */
12211
12212/* Override any GCC internal prototype to avoid an error.
12213   Use char because int might match the return type of a GCC
12214   builtin and then its argument prototype would still apply.  */
12215char dlopen ();
12216int
12217main (void)
12218{
12219return dlopen ();
12220  ;
12221  return 0;
12222}
12223_ACEOF
12224if ac_fn_c_try_link "$LINENO"
12225then :
12226  ac_cv_lib_svld_dlopen=yes
12227else $as_nop
12228  ac_cv_lib_svld_dlopen=no
12229fi
12230rm -f core conftest.err conftest.$ac_objext conftest.beam \
12231    conftest$ac_exeext conftest.$ac_ext
12232LIBS=$ac_check_lib_save_LIBS
12233fi
12234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12235printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12236if test "x$ac_cv_lib_svld_dlopen" = xyes
12237then :
12238  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12239else $as_nop
12240  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12241printf %s "checking for dld_link in -ldld... " >&6; }
12242if test ${ac_cv_lib_dld_dld_link+y}
12243then :
12244  printf %s "(cached) " >&6
12245else $as_nop
12246  ac_check_lib_save_LIBS=$LIBS
12247LIBS="-ldld  $LIBS"
12248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12249/* end confdefs.h.  */
12250
12251/* Override any GCC internal prototype to avoid an error.
12252   Use char because int might match the return type of a GCC
12253   builtin and then its argument prototype would still apply.  */
12254char dld_link ();
12255int
12256main (void)
12257{
12258return dld_link ();
12259  ;
12260  return 0;
12261}
12262_ACEOF
12263if ac_fn_c_try_link "$LINENO"
12264then :
12265  ac_cv_lib_dld_dld_link=yes
12266else $as_nop
12267  ac_cv_lib_dld_dld_link=no
12268fi
12269rm -f core conftest.err conftest.$ac_objext conftest.beam \
12270    conftest$ac_exeext conftest.$ac_ext
12271LIBS=$ac_check_lib_save_LIBS
12272fi
12273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12274printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12275if test "x$ac_cv_lib_dld_dld_link" = xyes
12276then :
12277  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12278fi
12279
12280
12281fi
12282
12283
12284fi
12285
12286
12287fi
12288
12289
12290fi
12291
12292
12293fi
12294
12295    ;;
12296  esac
12297
12298  if test no = "$lt_cv_dlopen"; then
12299    enable_dlopen=no
12300  else
12301    enable_dlopen=yes
12302  fi
12303
12304  case $lt_cv_dlopen in
12305  dlopen)
12306    save_CPPFLAGS=$CPPFLAGS
12307    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12308
12309    save_LDFLAGS=$LDFLAGS
12310    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12311
12312    save_LIBS=$LIBS
12313    LIBS="$lt_cv_dlopen_libs $LIBS"
12314
12315    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12316printf %s "checking whether a program can dlopen itself... " >&6; }
12317if test ${lt_cv_dlopen_self+y}
12318then :
12319  printf %s "(cached) " >&6
12320else $as_nop
12321  	  if test yes = "$cross_compiling"; then :
12322  lt_cv_dlopen_self=cross
12323else
12324  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12325  lt_status=$lt_dlunknown
12326  cat > conftest.$ac_ext <<_LT_EOF
12327#line $LINENO "configure"
12328#include "confdefs.h"
12329
12330#if HAVE_DLFCN_H
12331#include <dlfcn.h>
12332#endif
12333
12334#include <stdio.h>
12335
12336#ifdef RTLD_GLOBAL
12337#  define LT_DLGLOBAL		RTLD_GLOBAL
12338#else
12339#  ifdef DL_GLOBAL
12340#    define LT_DLGLOBAL		DL_GLOBAL
12341#  else
12342#    define LT_DLGLOBAL		0
12343#  endif
12344#endif
12345
12346/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12347   find out it does not work in some platform. */
12348#ifndef LT_DLLAZY_OR_NOW
12349#  ifdef RTLD_LAZY
12350#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12351#  else
12352#    ifdef DL_LAZY
12353#      define LT_DLLAZY_OR_NOW		DL_LAZY
12354#    else
12355#      ifdef RTLD_NOW
12356#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12357#      else
12358#        ifdef DL_NOW
12359#          define LT_DLLAZY_OR_NOW	DL_NOW
12360#        else
12361#          define LT_DLLAZY_OR_NOW	0
12362#        endif
12363#      endif
12364#    endif
12365#  endif
12366#endif
12367
12368/* When -fvisibility=hidden is used, assume the code has been annotated
12369   correspondingly for the symbols needed.  */
12370#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12371int fnord () __attribute__((visibility("default")));
12372#endif
12373
12374int fnord () { return 42; }
12375int main ()
12376{
12377  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12378  int status = $lt_dlunknown;
12379
12380  if (self)
12381    {
12382      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12383      else
12384        {
12385	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12386          else puts (dlerror ());
12387	}
12388      /* dlclose (self); */
12389    }
12390  else
12391    puts (dlerror ());
12392
12393  return status;
12394}
12395_LT_EOF
12396  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12397  (eval $ac_link) 2>&5
12398  ac_status=$?
12399  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12400  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12401    (./conftest; exit; ) >&5 2>/dev/null
12402    lt_status=$?
12403    case x$lt_status in
12404      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12405      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12406      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12407    esac
12408  else :
12409    # compilation failed
12410    lt_cv_dlopen_self=no
12411  fi
12412fi
12413rm -fr conftest*
12414
12415
12416fi
12417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12418printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12419
12420    if test yes = "$lt_cv_dlopen_self"; then
12421      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12422      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12423printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12424if test ${lt_cv_dlopen_self_static+y}
12425then :
12426  printf %s "(cached) " >&6
12427else $as_nop
12428  	  if test yes = "$cross_compiling"; then :
12429  lt_cv_dlopen_self_static=cross
12430else
12431  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12432  lt_status=$lt_dlunknown
12433  cat > conftest.$ac_ext <<_LT_EOF
12434#line $LINENO "configure"
12435#include "confdefs.h"
12436
12437#if HAVE_DLFCN_H
12438#include <dlfcn.h>
12439#endif
12440
12441#include <stdio.h>
12442
12443#ifdef RTLD_GLOBAL
12444#  define LT_DLGLOBAL		RTLD_GLOBAL
12445#else
12446#  ifdef DL_GLOBAL
12447#    define LT_DLGLOBAL		DL_GLOBAL
12448#  else
12449#    define LT_DLGLOBAL		0
12450#  endif
12451#endif
12452
12453/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12454   find out it does not work in some platform. */
12455#ifndef LT_DLLAZY_OR_NOW
12456#  ifdef RTLD_LAZY
12457#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12458#  else
12459#    ifdef DL_LAZY
12460#      define LT_DLLAZY_OR_NOW		DL_LAZY
12461#    else
12462#      ifdef RTLD_NOW
12463#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12464#      else
12465#        ifdef DL_NOW
12466#          define LT_DLLAZY_OR_NOW	DL_NOW
12467#        else
12468#          define LT_DLLAZY_OR_NOW	0
12469#        endif
12470#      endif
12471#    endif
12472#  endif
12473#endif
12474
12475/* When -fvisibility=hidden is used, assume the code has been annotated
12476   correspondingly for the symbols needed.  */
12477#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12478int fnord () __attribute__((visibility("default")));
12479#endif
12480
12481int fnord () { return 42; }
12482int main ()
12483{
12484  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12485  int status = $lt_dlunknown;
12486
12487  if (self)
12488    {
12489      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12490      else
12491        {
12492	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12493          else puts (dlerror ());
12494	}
12495      /* dlclose (self); */
12496    }
12497  else
12498    puts (dlerror ());
12499
12500  return status;
12501}
12502_LT_EOF
12503  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12504  (eval $ac_link) 2>&5
12505  ac_status=$?
12506  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12507  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12508    (./conftest; exit; ) >&5 2>/dev/null
12509    lt_status=$?
12510    case x$lt_status in
12511      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12512      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12513      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12514    esac
12515  else :
12516    # compilation failed
12517    lt_cv_dlopen_self_static=no
12518  fi
12519fi
12520rm -fr conftest*
12521
12522
12523fi
12524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12525printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12526    fi
12527
12528    CPPFLAGS=$save_CPPFLAGS
12529    LDFLAGS=$save_LDFLAGS
12530    LIBS=$save_LIBS
12531    ;;
12532  esac
12533
12534  case $lt_cv_dlopen_self in
12535  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12536  *) enable_dlopen_self=unknown ;;
12537  esac
12538
12539  case $lt_cv_dlopen_self_static in
12540  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12541  *) enable_dlopen_self_static=unknown ;;
12542  esac
12543fi
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561striplib=
12562old_striplib=
12563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12564printf %s "checking whether stripping libraries is possible... " >&6; }
12565if test -z "$STRIP"; then
12566  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12567printf "%s\n" "no" >&6; }
12568else
12569  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12570    old_striplib="$STRIP --strip-debug"
12571    striplib="$STRIP --strip-unneeded"
12572    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12573printf "%s\n" "yes" >&6; }
12574  else
12575    case $host_os in
12576    darwin*)
12577      # FIXME - insert some real tests, host_os isn't really good enough
12578      striplib="$STRIP -x"
12579      old_striplib="$STRIP -S"
12580      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12581printf "%s\n" "yes" >&6; }
12582      ;;
12583    freebsd*)
12584      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12585        old_striplib="$STRIP --strip-debug"
12586        striplib="$STRIP --strip-unneeded"
12587        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12588printf "%s\n" "yes" >&6; }
12589      else
12590        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12591printf "%s\n" "no" >&6; }
12592      fi
12593      ;;
12594    *)
12595      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12596printf "%s\n" "no" >&6; }
12597      ;;
12598    esac
12599  fi
12600fi
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613  # Report what library types will actually be built
12614  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12615printf %s "checking if libtool supports shared libraries... " >&6; }
12616  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12617printf "%s\n" "$can_build_shared" >&6; }
12618
12619  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12620printf %s "checking whether to build shared libraries... " >&6; }
12621  test no = "$can_build_shared" && enable_shared=no
12622
12623  # On AIX, shared libraries and static libraries use the same namespace, and
12624  # are all built from PIC.
12625  case $host_os in
12626  aix3*)
12627    test yes = "$enable_shared" && enable_static=no
12628    if test -n "$RANLIB"; then
12629      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12630      postinstall_cmds='$RANLIB $lib'
12631    fi
12632    ;;
12633
12634  aix[4-9]*)
12635    if test ia64 != "$host_cpu"; then
12636      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12637      yes,aix,yes) ;;			# shared object as lib.so file only
12638      yes,svr4,*) ;;			# shared object as lib.so archive member only
12639      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12640      esac
12641    fi
12642    ;;
12643  esac
12644  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12645printf "%s\n" "$enable_shared" >&6; }
12646
12647  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12648printf %s "checking whether to build static libraries... " >&6; }
12649  # Make sure either enable_shared or enable_static is yes.
12650  test yes = "$enable_shared" || enable_static=yes
12651  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12652printf "%s\n" "$enable_static" >&6; }
12653
12654
12655
12656
12657fi
12658ac_ext=c
12659ac_cpp='$CPP $CPPFLAGS'
12660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12662ac_compiler_gnu=$ac_cv_c_compiler_gnu
12663
12664CC=$lt_save_CC
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680        ac_config_commands="$ac_config_commands libtool"
12681
12682
12683
12684
12685# Only expand once:
12686
12687
12688
12689# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12703printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12704if test ${ac_cv_c_undeclared_builtin_options+y}
12705then :
12706  printf %s "(cached) " >&6
12707else $as_nop
12708  ac_save_CFLAGS=$CFLAGS
12709   ac_cv_c_undeclared_builtin_options='cannot detect'
12710   for ac_arg in '' -fno-builtin; do
12711     CFLAGS="$ac_save_CFLAGS $ac_arg"
12712     # This test program should *not* compile successfully.
12713     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12714/* end confdefs.h.  */
12715
12716int
12717main (void)
12718{
12719(void) strchr;
12720  ;
12721  return 0;
12722}
12723_ACEOF
12724if ac_fn_c_try_compile "$LINENO"
12725then :
12726
12727else $as_nop
12728  # This test program should compile successfully.
12729        # No library function is consistently available on
12730        # freestanding implementations, so test against a dummy
12731        # declaration.  Include always-available headers on the
12732        # off chance that they somehow elicit warnings.
12733        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12734/* end confdefs.h.  */
12735#include <float.h>
12736#include <limits.h>
12737#include <stdarg.h>
12738#include <stddef.h>
12739extern void ac_decl (int, char *);
12740
12741int
12742main (void)
12743{
12744(void) ac_decl (0, (char *) 0);
12745  (void) ac_decl;
12746
12747  ;
12748  return 0;
12749}
12750_ACEOF
12751if ac_fn_c_try_compile "$LINENO"
12752then :
12753  if test x"$ac_arg" = x
12754then :
12755  ac_cv_c_undeclared_builtin_options='none needed'
12756else $as_nop
12757  ac_cv_c_undeclared_builtin_options=$ac_arg
12758fi
12759          break
12760fi
12761rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12762fi
12763rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12764    done
12765    CFLAGS=$ac_save_CFLAGS
12766
12767fi
12768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12769printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12770  case $ac_cv_c_undeclared_builtin_options in #(
12771  'cannot detect') :
12772    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12773printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12774as_fn_error $? "cannot make $CC report undeclared builtins
12775See \`config.log' for more details" "$LINENO" 5; } ;; #(
12776  'none needed') :
12777    ac_c_undeclared_builtin_options='' ;; #(
12778  *) :
12779    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12780esac
12781
12782
12783
12784
12785
12786ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12787if test "x$ac_cv_have_decl___clang__" = xyes
12788then :
12789  CLANGCC="yes"
12790else $as_nop
12791  CLANGCC="no"
12792fi
12793ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12794if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
12795then :
12796  INTELCC="yes"
12797else $as_nop
12798  INTELCC="no"
12799fi
12800ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12801if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
12802then :
12803  SUNCC="yes"
12804else $as_nop
12805  SUNCC="no"
12806fi
12807
12808
12809
12810
12811
12812
12813
12814
12815if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12816	if test -n "$ac_tool_prefix"; then
12817  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12818set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12820printf %s "checking for $ac_word... " >&6; }
12821if test ${ac_cv_path_PKG_CONFIG+y}
12822then :
12823  printf %s "(cached) " >&6
12824else $as_nop
12825  case $PKG_CONFIG in
12826  [\\/]* | ?:[\\/]*)
12827  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12828  ;;
12829  *)
12830  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12831for as_dir in $PATH
12832do
12833  IFS=$as_save_IFS
12834  case $as_dir in #(((
12835    '') as_dir=./ ;;
12836    */) ;;
12837    *) as_dir=$as_dir/ ;;
12838  esac
12839    for ac_exec_ext in '' $ac_executable_extensions; do
12840  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12841    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12842    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12843    break 2
12844  fi
12845done
12846  done
12847IFS=$as_save_IFS
12848
12849  ;;
12850esac
12851fi
12852PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12853if test -n "$PKG_CONFIG"; then
12854  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12855printf "%s\n" "$PKG_CONFIG" >&6; }
12856else
12857  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12858printf "%s\n" "no" >&6; }
12859fi
12860
12861
12862fi
12863if test -z "$ac_cv_path_PKG_CONFIG"; then
12864  ac_pt_PKG_CONFIG=$PKG_CONFIG
12865  # Extract the first word of "pkg-config", so it can be a program name with args.
12866set dummy pkg-config; ac_word=$2
12867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12868printf %s "checking for $ac_word... " >&6; }
12869if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12870then :
12871  printf %s "(cached) " >&6
12872else $as_nop
12873  case $ac_pt_PKG_CONFIG in
12874  [\\/]* | ?:[\\/]*)
12875  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12876  ;;
12877  *)
12878  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12879for as_dir in $PATH
12880do
12881  IFS=$as_save_IFS
12882  case $as_dir in #(((
12883    '') as_dir=./ ;;
12884    */) ;;
12885    *) as_dir=$as_dir/ ;;
12886  esac
12887    for ac_exec_ext in '' $ac_executable_extensions; do
12888  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12889    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12890    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12891    break 2
12892  fi
12893done
12894  done
12895IFS=$as_save_IFS
12896
12897  ;;
12898esac
12899fi
12900ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12901if test -n "$ac_pt_PKG_CONFIG"; then
12902  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12903printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
12904else
12905  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12906printf "%s\n" "no" >&6; }
12907fi
12908
12909  if test "x$ac_pt_PKG_CONFIG" = x; then
12910    PKG_CONFIG=""
12911  else
12912    case $cross_compiling:$ac_tool_warned in
12913yes:)
12914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12915printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12916ac_tool_warned=yes ;;
12917esac
12918    PKG_CONFIG=$ac_pt_PKG_CONFIG
12919  fi
12920else
12921  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12922fi
12923
12924fi
12925if test -n "$PKG_CONFIG"; then
12926	_pkg_min_version=0.9.0
12927	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12928printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12929	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12930		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12931printf "%s\n" "yes" >&6; }
12932	else
12933		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12934printf "%s\n" "no" >&6; }
12935		PKG_CONFIG=""
12936	fi
12937fi
12938
12939
12940
12941
12942
12943# Check whether --enable-selective-werror was given.
12944if test ${enable_selective_werror+y}
12945then :
12946  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12947else $as_nop
12948  SELECTIVE_WERROR=yes
12949fi
12950
12951
12952
12953
12954
12955# -v is too short to test reliably with XORG_TESTSET_CFLAG
12956if test "x$SUNCC" = "xyes"; then
12957    BASE_CFLAGS="-v"
12958else
12959    BASE_CFLAGS=""
12960fi
12961
12962# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976xorg_testset_save_CFLAGS="$CFLAGS"
12977
12978if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12979	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12980	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12981printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12982if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12983then :
12984  printf %s "(cached) " >&6
12985else $as_nop
12986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12987/* end confdefs.h.  */
12988int i;
12989_ACEOF
12990if ac_fn_c_try_compile "$LINENO"
12991then :
12992  xorg_cv_cc_flag_unknown_warning_option=yes
12993else $as_nop
12994  xorg_cv_cc_flag_unknown_warning_option=no
12995fi
12996rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12997fi
12998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12999printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13000	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13001	CFLAGS="$xorg_testset_save_CFLAGS"
13002fi
13003
13004if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13005	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13006		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13007	fi
13008	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13009	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13010printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13011if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13012then :
13013  printf %s "(cached) " >&6
13014else $as_nop
13015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13016/* end confdefs.h.  */
13017int i;
13018_ACEOF
13019if ac_fn_c_try_compile "$LINENO"
13020then :
13021  xorg_cv_cc_flag_unused_command_line_argument=yes
13022else $as_nop
13023  xorg_cv_cc_flag_unused_command_line_argument=no
13024fi
13025rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13026fi
13027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13028printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13029	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13030	CFLAGS="$xorg_testset_save_CFLAGS"
13031fi
13032
13033found="no"
13034
13035	if test $found = "no" ; then
13036		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13037			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13038		fi
13039
13040		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13041			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13042		fi
13043
13044		CFLAGS="$CFLAGS -Wall"
13045
13046		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13047printf %s "checking if $CC supports -Wall... " >&6; }
13048		cacheid=xorg_cv_cc_flag__Wall
13049		if eval test \${$cacheid+y}
13050then :
13051  printf %s "(cached) " >&6
13052else $as_nop
13053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13054/* end confdefs.h.  */
13055int i;
13056int
13057main (void)
13058{
13059
13060  ;
13061  return 0;
13062}
13063_ACEOF
13064if ac_fn_c_try_link "$LINENO"
13065then :
13066  eval $cacheid=yes
13067else $as_nop
13068  eval $cacheid=no
13069fi
13070rm -f core conftest.err conftest.$ac_objext conftest.beam \
13071    conftest$ac_exeext conftest.$ac_ext
13072fi
13073
13074
13075		CFLAGS="$xorg_testset_save_CFLAGS"
13076
13077		eval supported=\$$cacheid
13078		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13079printf "%s\n" "$supported" >&6; }
13080		if test "$supported" = "yes" ; then
13081			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13082			found="yes"
13083		fi
13084	fi
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100xorg_testset_save_CFLAGS="$CFLAGS"
13101
13102if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13103	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13104	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13105printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13106if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13107then :
13108  printf %s "(cached) " >&6
13109else $as_nop
13110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13111/* end confdefs.h.  */
13112int i;
13113_ACEOF
13114if ac_fn_c_try_compile "$LINENO"
13115then :
13116  xorg_cv_cc_flag_unknown_warning_option=yes
13117else $as_nop
13118  xorg_cv_cc_flag_unknown_warning_option=no
13119fi
13120rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13121fi
13122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13123printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13124	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13125	CFLAGS="$xorg_testset_save_CFLAGS"
13126fi
13127
13128if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13129	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13130		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13131	fi
13132	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13133	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13134printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13135if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13136then :
13137  printf %s "(cached) " >&6
13138else $as_nop
13139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13140/* end confdefs.h.  */
13141int i;
13142_ACEOF
13143if ac_fn_c_try_compile "$LINENO"
13144then :
13145  xorg_cv_cc_flag_unused_command_line_argument=yes
13146else $as_nop
13147  xorg_cv_cc_flag_unused_command_line_argument=no
13148fi
13149rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13150fi
13151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13152printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13153	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13154	CFLAGS="$xorg_testset_save_CFLAGS"
13155fi
13156
13157found="no"
13158
13159	if test $found = "no" ; then
13160		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13161			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13162		fi
13163
13164		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13165			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13166		fi
13167
13168		CFLAGS="$CFLAGS -Wpointer-arith"
13169
13170		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13171printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13172		cacheid=xorg_cv_cc_flag__Wpointer_arith
13173		if eval test \${$cacheid+y}
13174then :
13175  printf %s "(cached) " >&6
13176else $as_nop
13177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13178/* end confdefs.h.  */
13179int i;
13180int
13181main (void)
13182{
13183
13184  ;
13185  return 0;
13186}
13187_ACEOF
13188if ac_fn_c_try_link "$LINENO"
13189then :
13190  eval $cacheid=yes
13191else $as_nop
13192  eval $cacheid=no
13193fi
13194rm -f core conftest.err conftest.$ac_objext conftest.beam \
13195    conftest$ac_exeext conftest.$ac_ext
13196fi
13197
13198
13199		CFLAGS="$xorg_testset_save_CFLAGS"
13200
13201		eval supported=\$$cacheid
13202		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13203printf "%s\n" "$supported" >&6; }
13204		if test "$supported" = "yes" ; then
13205			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13206			found="yes"
13207		fi
13208	fi
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224xorg_testset_save_CFLAGS="$CFLAGS"
13225
13226if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13227	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13228	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13229printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13230if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13231then :
13232  printf %s "(cached) " >&6
13233else $as_nop
13234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13235/* end confdefs.h.  */
13236int i;
13237_ACEOF
13238if ac_fn_c_try_compile "$LINENO"
13239then :
13240  xorg_cv_cc_flag_unknown_warning_option=yes
13241else $as_nop
13242  xorg_cv_cc_flag_unknown_warning_option=no
13243fi
13244rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13245fi
13246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13247printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13248	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13249	CFLAGS="$xorg_testset_save_CFLAGS"
13250fi
13251
13252if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13253	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13254		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13255	fi
13256	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13257	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13258printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13259if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13260then :
13261  printf %s "(cached) " >&6
13262else $as_nop
13263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13264/* end confdefs.h.  */
13265int i;
13266_ACEOF
13267if ac_fn_c_try_compile "$LINENO"
13268then :
13269  xorg_cv_cc_flag_unused_command_line_argument=yes
13270else $as_nop
13271  xorg_cv_cc_flag_unused_command_line_argument=no
13272fi
13273rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13274fi
13275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13276printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13277	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13278	CFLAGS="$xorg_testset_save_CFLAGS"
13279fi
13280
13281found="no"
13282
13283	if test $found = "no" ; then
13284		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13285			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13286		fi
13287
13288		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13289			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13290		fi
13291
13292		CFLAGS="$CFLAGS -Wmissing-declarations"
13293
13294		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13295printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13296		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13297		if eval test \${$cacheid+y}
13298then :
13299  printf %s "(cached) " >&6
13300else $as_nop
13301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302/* end confdefs.h.  */
13303int i;
13304int
13305main (void)
13306{
13307
13308  ;
13309  return 0;
13310}
13311_ACEOF
13312if ac_fn_c_try_link "$LINENO"
13313then :
13314  eval $cacheid=yes
13315else $as_nop
13316  eval $cacheid=no
13317fi
13318rm -f core conftest.err conftest.$ac_objext conftest.beam \
13319    conftest$ac_exeext conftest.$ac_ext
13320fi
13321
13322
13323		CFLAGS="$xorg_testset_save_CFLAGS"
13324
13325		eval supported=\$$cacheid
13326		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13327printf "%s\n" "$supported" >&6; }
13328		if test "$supported" = "yes" ; then
13329			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13330			found="yes"
13331		fi
13332	fi
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348xorg_testset_save_CFLAGS="$CFLAGS"
13349
13350if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13351	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13352	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13353printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13354if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13355then :
13356  printf %s "(cached) " >&6
13357else $as_nop
13358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13359/* end confdefs.h.  */
13360int i;
13361_ACEOF
13362if ac_fn_c_try_compile "$LINENO"
13363then :
13364  xorg_cv_cc_flag_unknown_warning_option=yes
13365else $as_nop
13366  xorg_cv_cc_flag_unknown_warning_option=no
13367fi
13368rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13369fi
13370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13371printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13372	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13373	CFLAGS="$xorg_testset_save_CFLAGS"
13374fi
13375
13376if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13377	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13378		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13379	fi
13380	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13381	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13382printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13383if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13384then :
13385  printf %s "(cached) " >&6
13386else $as_nop
13387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13388/* end confdefs.h.  */
13389int i;
13390_ACEOF
13391if ac_fn_c_try_compile "$LINENO"
13392then :
13393  xorg_cv_cc_flag_unused_command_line_argument=yes
13394else $as_nop
13395  xorg_cv_cc_flag_unused_command_line_argument=no
13396fi
13397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13398fi
13399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13400printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13401	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13402	CFLAGS="$xorg_testset_save_CFLAGS"
13403fi
13404
13405found="no"
13406
13407	if test $found = "no" ; then
13408		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13409			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13410		fi
13411
13412		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13413			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13414		fi
13415
13416		CFLAGS="$CFLAGS -Wformat=2"
13417
13418		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13419printf %s "checking if $CC supports -Wformat=2... " >&6; }
13420		cacheid=xorg_cv_cc_flag__Wformat_2
13421		if eval test \${$cacheid+y}
13422then :
13423  printf %s "(cached) " >&6
13424else $as_nop
13425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13426/* end confdefs.h.  */
13427int i;
13428int
13429main (void)
13430{
13431
13432  ;
13433  return 0;
13434}
13435_ACEOF
13436if ac_fn_c_try_link "$LINENO"
13437then :
13438  eval $cacheid=yes
13439else $as_nop
13440  eval $cacheid=no
13441fi
13442rm -f core conftest.err conftest.$ac_objext conftest.beam \
13443    conftest$ac_exeext conftest.$ac_ext
13444fi
13445
13446
13447		CFLAGS="$xorg_testset_save_CFLAGS"
13448
13449		eval supported=\$$cacheid
13450		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13451printf "%s\n" "$supported" >&6; }
13452		if test "$supported" = "yes" ; then
13453			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13454			found="yes"
13455		fi
13456	fi
13457
13458	if test $found = "no" ; then
13459		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13460			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13461		fi
13462
13463		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13464			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13465		fi
13466
13467		CFLAGS="$CFLAGS -Wformat"
13468
13469		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13470printf %s "checking if $CC supports -Wformat... " >&6; }
13471		cacheid=xorg_cv_cc_flag__Wformat
13472		if eval test \${$cacheid+y}
13473then :
13474  printf %s "(cached) " >&6
13475else $as_nop
13476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13477/* end confdefs.h.  */
13478int i;
13479int
13480main (void)
13481{
13482
13483  ;
13484  return 0;
13485}
13486_ACEOF
13487if ac_fn_c_try_link "$LINENO"
13488then :
13489  eval $cacheid=yes
13490else $as_nop
13491  eval $cacheid=no
13492fi
13493rm -f core conftest.err conftest.$ac_objext conftest.beam \
13494    conftest$ac_exeext conftest.$ac_ext
13495fi
13496
13497
13498		CFLAGS="$xorg_testset_save_CFLAGS"
13499
13500		eval supported=\$$cacheid
13501		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13502printf "%s\n" "$supported" >&6; }
13503		if test "$supported" = "yes" ; then
13504			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13505			found="yes"
13506		fi
13507	fi
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525xorg_testset_save_CFLAGS="$CFLAGS"
13526
13527if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13528	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13529	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13530printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13531if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13532then :
13533  printf %s "(cached) " >&6
13534else $as_nop
13535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13536/* end confdefs.h.  */
13537int i;
13538_ACEOF
13539if ac_fn_c_try_compile "$LINENO"
13540then :
13541  xorg_cv_cc_flag_unknown_warning_option=yes
13542else $as_nop
13543  xorg_cv_cc_flag_unknown_warning_option=no
13544fi
13545rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13546fi
13547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13548printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13549	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13550	CFLAGS="$xorg_testset_save_CFLAGS"
13551fi
13552
13553if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13554	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13555		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13556	fi
13557	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13558	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13559printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13560if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13561then :
13562  printf %s "(cached) " >&6
13563else $as_nop
13564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13565/* end confdefs.h.  */
13566int i;
13567_ACEOF
13568if ac_fn_c_try_compile "$LINENO"
13569then :
13570  xorg_cv_cc_flag_unused_command_line_argument=yes
13571else $as_nop
13572  xorg_cv_cc_flag_unused_command_line_argument=no
13573fi
13574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13575fi
13576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13577printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13578	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13579	CFLAGS="$xorg_testset_save_CFLAGS"
13580fi
13581
13582found="no"
13583
13584	if test $found = "no" ; then
13585		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13586			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13587		fi
13588
13589		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13590			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13591		fi
13592
13593		CFLAGS="$CFLAGS -Wstrict-prototypes"
13594
13595		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13596printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13597		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13598		if eval test \${$cacheid+y}
13599then :
13600  printf %s "(cached) " >&6
13601else $as_nop
13602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13603/* end confdefs.h.  */
13604int i;
13605int
13606main (void)
13607{
13608
13609  ;
13610  return 0;
13611}
13612_ACEOF
13613if ac_fn_c_try_link "$LINENO"
13614then :
13615  eval $cacheid=yes
13616else $as_nop
13617  eval $cacheid=no
13618fi
13619rm -f core conftest.err conftest.$ac_objext conftest.beam \
13620    conftest$ac_exeext conftest.$ac_ext
13621fi
13622
13623
13624		CFLAGS="$xorg_testset_save_CFLAGS"
13625
13626		eval supported=\$$cacheid
13627		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13628printf "%s\n" "$supported" >&6; }
13629		if test "$supported" = "yes" ; then
13630			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13631			found="yes"
13632		fi
13633	fi
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649xorg_testset_save_CFLAGS="$CFLAGS"
13650
13651if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13652	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13653	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13654printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13655if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13656then :
13657  printf %s "(cached) " >&6
13658else $as_nop
13659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13660/* end confdefs.h.  */
13661int i;
13662_ACEOF
13663if ac_fn_c_try_compile "$LINENO"
13664then :
13665  xorg_cv_cc_flag_unknown_warning_option=yes
13666else $as_nop
13667  xorg_cv_cc_flag_unknown_warning_option=no
13668fi
13669rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13670fi
13671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13672printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13673	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13674	CFLAGS="$xorg_testset_save_CFLAGS"
13675fi
13676
13677if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13678	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13679		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13680	fi
13681	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13682	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13683printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13684if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13685then :
13686  printf %s "(cached) " >&6
13687else $as_nop
13688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13689/* end confdefs.h.  */
13690int i;
13691_ACEOF
13692if ac_fn_c_try_compile "$LINENO"
13693then :
13694  xorg_cv_cc_flag_unused_command_line_argument=yes
13695else $as_nop
13696  xorg_cv_cc_flag_unused_command_line_argument=no
13697fi
13698rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13699fi
13700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13701printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13702	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13703	CFLAGS="$xorg_testset_save_CFLAGS"
13704fi
13705
13706found="no"
13707
13708	if test $found = "no" ; then
13709		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13710			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13711		fi
13712
13713		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13714			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13715		fi
13716
13717		CFLAGS="$CFLAGS -Wmissing-prototypes"
13718
13719		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13720printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13721		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13722		if eval test \${$cacheid+y}
13723then :
13724  printf %s "(cached) " >&6
13725else $as_nop
13726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13727/* end confdefs.h.  */
13728int i;
13729int
13730main (void)
13731{
13732
13733  ;
13734  return 0;
13735}
13736_ACEOF
13737if ac_fn_c_try_link "$LINENO"
13738then :
13739  eval $cacheid=yes
13740else $as_nop
13741  eval $cacheid=no
13742fi
13743rm -f core conftest.err conftest.$ac_objext conftest.beam \
13744    conftest$ac_exeext conftest.$ac_ext
13745fi
13746
13747
13748		CFLAGS="$xorg_testset_save_CFLAGS"
13749
13750		eval supported=\$$cacheid
13751		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13752printf "%s\n" "$supported" >&6; }
13753		if test "$supported" = "yes" ; then
13754			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13755			found="yes"
13756		fi
13757	fi
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773xorg_testset_save_CFLAGS="$CFLAGS"
13774
13775if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13776	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13777	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13778printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13779if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13780then :
13781  printf %s "(cached) " >&6
13782else $as_nop
13783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784/* end confdefs.h.  */
13785int i;
13786_ACEOF
13787if ac_fn_c_try_compile "$LINENO"
13788then :
13789  xorg_cv_cc_flag_unknown_warning_option=yes
13790else $as_nop
13791  xorg_cv_cc_flag_unknown_warning_option=no
13792fi
13793rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13794fi
13795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13796printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13797	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13798	CFLAGS="$xorg_testset_save_CFLAGS"
13799fi
13800
13801if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13802	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13803		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13804	fi
13805	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13806	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13807printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13808if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13809then :
13810  printf %s "(cached) " >&6
13811else $as_nop
13812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13813/* end confdefs.h.  */
13814int i;
13815_ACEOF
13816if ac_fn_c_try_compile "$LINENO"
13817then :
13818  xorg_cv_cc_flag_unused_command_line_argument=yes
13819else $as_nop
13820  xorg_cv_cc_flag_unused_command_line_argument=no
13821fi
13822rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13823fi
13824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13825printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13826	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13827	CFLAGS="$xorg_testset_save_CFLAGS"
13828fi
13829
13830found="no"
13831
13832	if test $found = "no" ; then
13833		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13834			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13835		fi
13836
13837		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13838			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13839		fi
13840
13841		CFLAGS="$CFLAGS -Wnested-externs"
13842
13843		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13844printf %s "checking if $CC supports -Wnested-externs... " >&6; }
13845		cacheid=xorg_cv_cc_flag__Wnested_externs
13846		if eval test \${$cacheid+y}
13847then :
13848  printf %s "(cached) " >&6
13849else $as_nop
13850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13851/* end confdefs.h.  */
13852int i;
13853int
13854main (void)
13855{
13856
13857  ;
13858  return 0;
13859}
13860_ACEOF
13861if ac_fn_c_try_link "$LINENO"
13862then :
13863  eval $cacheid=yes
13864else $as_nop
13865  eval $cacheid=no
13866fi
13867rm -f core conftest.err conftest.$ac_objext conftest.beam \
13868    conftest$ac_exeext conftest.$ac_ext
13869fi
13870
13871
13872		CFLAGS="$xorg_testset_save_CFLAGS"
13873
13874		eval supported=\$$cacheid
13875		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13876printf "%s\n" "$supported" >&6; }
13877		if test "$supported" = "yes" ; then
13878			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13879			found="yes"
13880		fi
13881	fi
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897xorg_testset_save_CFLAGS="$CFLAGS"
13898
13899if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13900	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13901	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13902printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13903if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13904then :
13905  printf %s "(cached) " >&6
13906else $as_nop
13907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13908/* end confdefs.h.  */
13909int i;
13910_ACEOF
13911if ac_fn_c_try_compile "$LINENO"
13912then :
13913  xorg_cv_cc_flag_unknown_warning_option=yes
13914else $as_nop
13915  xorg_cv_cc_flag_unknown_warning_option=no
13916fi
13917rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13918fi
13919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13920printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13921	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13922	CFLAGS="$xorg_testset_save_CFLAGS"
13923fi
13924
13925if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13926	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13927		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13928	fi
13929	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13930	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13931printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13932if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13933then :
13934  printf %s "(cached) " >&6
13935else $as_nop
13936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937/* end confdefs.h.  */
13938int i;
13939_ACEOF
13940if ac_fn_c_try_compile "$LINENO"
13941then :
13942  xorg_cv_cc_flag_unused_command_line_argument=yes
13943else $as_nop
13944  xorg_cv_cc_flag_unused_command_line_argument=no
13945fi
13946rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13947fi
13948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13949printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13950	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13951	CFLAGS="$xorg_testset_save_CFLAGS"
13952fi
13953
13954found="no"
13955
13956	if test $found = "no" ; then
13957		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13958			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13959		fi
13960
13961		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13962			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13963		fi
13964
13965		CFLAGS="$CFLAGS -Wbad-function-cast"
13966
13967		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13968printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
13969		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13970		if eval test \${$cacheid+y}
13971then :
13972  printf %s "(cached) " >&6
13973else $as_nop
13974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13975/* end confdefs.h.  */
13976int i;
13977int
13978main (void)
13979{
13980
13981  ;
13982  return 0;
13983}
13984_ACEOF
13985if ac_fn_c_try_link "$LINENO"
13986then :
13987  eval $cacheid=yes
13988else $as_nop
13989  eval $cacheid=no
13990fi
13991rm -f core conftest.err conftest.$ac_objext conftest.beam \
13992    conftest$ac_exeext conftest.$ac_ext
13993fi
13994
13995
13996		CFLAGS="$xorg_testset_save_CFLAGS"
13997
13998		eval supported=\$$cacheid
13999		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14000printf "%s\n" "$supported" >&6; }
14001		if test "$supported" = "yes" ; then
14002			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14003			found="yes"
14004		fi
14005	fi
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021xorg_testset_save_CFLAGS="$CFLAGS"
14022
14023if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14024	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14025	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14026printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14027if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14028then :
14029  printf %s "(cached) " >&6
14030else $as_nop
14031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14032/* end confdefs.h.  */
14033int i;
14034_ACEOF
14035if ac_fn_c_try_compile "$LINENO"
14036then :
14037  xorg_cv_cc_flag_unknown_warning_option=yes
14038else $as_nop
14039  xorg_cv_cc_flag_unknown_warning_option=no
14040fi
14041rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14042fi
14043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14044printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14045	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14046	CFLAGS="$xorg_testset_save_CFLAGS"
14047fi
14048
14049if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14050	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14051		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14052	fi
14053	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14054	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14055printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14056if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14057then :
14058  printf %s "(cached) " >&6
14059else $as_nop
14060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14061/* end confdefs.h.  */
14062int i;
14063_ACEOF
14064if ac_fn_c_try_compile "$LINENO"
14065then :
14066  xorg_cv_cc_flag_unused_command_line_argument=yes
14067else $as_nop
14068  xorg_cv_cc_flag_unused_command_line_argument=no
14069fi
14070rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14071fi
14072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14073printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14074	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14075	CFLAGS="$xorg_testset_save_CFLAGS"
14076fi
14077
14078found="no"
14079
14080	if test $found = "no" ; then
14081		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14082			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14083		fi
14084
14085		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14086			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14087		fi
14088
14089		CFLAGS="$CFLAGS -Wold-style-definition"
14090
14091		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14092printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14093		cacheid=xorg_cv_cc_flag__Wold_style_definition
14094		if eval test \${$cacheid+y}
14095then :
14096  printf %s "(cached) " >&6
14097else $as_nop
14098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14099/* end confdefs.h.  */
14100int i;
14101int
14102main (void)
14103{
14104
14105  ;
14106  return 0;
14107}
14108_ACEOF
14109if ac_fn_c_try_link "$LINENO"
14110then :
14111  eval $cacheid=yes
14112else $as_nop
14113  eval $cacheid=no
14114fi
14115rm -f core conftest.err conftest.$ac_objext conftest.beam \
14116    conftest$ac_exeext conftest.$ac_ext
14117fi
14118
14119
14120		CFLAGS="$xorg_testset_save_CFLAGS"
14121
14122		eval supported=\$$cacheid
14123		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14124printf "%s\n" "$supported" >&6; }
14125		if test "$supported" = "yes" ; then
14126			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14127			found="yes"
14128		fi
14129	fi
14130
14131	if test $found = "no" ; then
14132		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14133			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14134		fi
14135
14136		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14137			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14138		fi
14139
14140		CFLAGS="$CFLAGS -fd"
14141
14142		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14143printf %s "checking if $CC supports -fd... " >&6; }
14144		cacheid=xorg_cv_cc_flag__fd
14145		if eval test \${$cacheid+y}
14146then :
14147  printf %s "(cached) " >&6
14148else $as_nop
14149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14150/* end confdefs.h.  */
14151int i;
14152int
14153main (void)
14154{
14155
14156  ;
14157  return 0;
14158}
14159_ACEOF
14160if ac_fn_c_try_link "$LINENO"
14161then :
14162  eval $cacheid=yes
14163else $as_nop
14164  eval $cacheid=no
14165fi
14166rm -f core conftest.err conftest.$ac_objext conftest.beam \
14167    conftest$ac_exeext conftest.$ac_ext
14168fi
14169
14170
14171		CFLAGS="$xorg_testset_save_CFLAGS"
14172
14173		eval supported=\$$cacheid
14174		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14175printf "%s\n" "$supported" >&6; }
14176		if test "$supported" = "yes" ; then
14177			BASE_CFLAGS="$BASE_CFLAGS -fd"
14178			found="yes"
14179		fi
14180	fi
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196xorg_testset_save_CFLAGS="$CFLAGS"
14197
14198if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14199	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14200	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14201printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14202if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14203then :
14204  printf %s "(cached) " >&6
14205else $as_nop
14206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14207/* end confdefs.h.  */
14208int i;
14209_ACEOF
14210if ac_fn_c_try_compile "$LINENO"
14211then :
14212  xorg_cv_cc_flag_unknown_warning_option=yes
14213else $as_nop
14214  xorg_cv_cc_flag_unknown_warning_option=no
14215fi
14216rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14217fi
14218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14219printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14220	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14221	CFLAGS="$xorg_testset_save_CFLAGS"
14222fi
14223
14224if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14225	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14226		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14227	fi
14228	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14229	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14230printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14231if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14232then :
14233  printf %s "(cached) " >&6
14234else $as_nop
14235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14236/* end confdefs.h.  */
14237int i;
14238_ACEOF
14239if ac_fn_c_try_compile "$LINENO"
14240then :
14241  xorg_cv_cc_flag_unused_command_line_argument=yes
14242else $as_nop
14243  xorg_cv_cc_flag_unused_command_line_argument=no
14244fi
14245rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14246fi
14247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14248printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14249	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14250	CFLAGS="$xorg_testset_save_CFLAGS"
14251fi
14252
14253found="no"
14254
14255	if test $found = "no" ; then
14256		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14257			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14258		fi
14259
14260		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14261			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14262		fi
14263
14264		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14265
14266		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14267printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14268		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14269		if eval test \${$cacheid+y}
14270then :
14271  printf %s "(cached) " >&6
14272else $as_nop
14273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14274/* end confdefs.h.  */
14275int i;
14276int
14277main (void)
14278{
14279
14280  ;
14281  return 0;
14282}
14283_ACEOF
14284if ac_fn_c_try_link "$LINENO"
14285then :
14286  eval $cacheid=yes
14287else $as_nop
14288  eval $cacheid=no
14289fi
14290rm -f core conftest.err conftest.$ac_objext conftest.beam \
14291    conftest$ac_exeext conftest.$ac_ext
14292fi
14293
14294
14295		CFLAGS="$xorg_testset_save_CFLAGS"
14296
14297		eval supported=\$$cacheid
14298		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14299printf "%s\n" "$supported" >&6; }
14300		if test "$supported" = "yes" ; then
14301			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14302			found="yes"
14303		fi
14304	fi
14305
14306
14307
14308
14309
14310# This chunk adds additional warnings that could catch undesired effects.
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324xorg_testset_save_CFLAGS="$CFLAGS"
14325
14326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14327	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14328	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14329printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14330if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14331then :
14332  printf %s "(cached) " >&6
14333else $as_nop
14334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14335/* end confdefs.h.  */
14336int i;
14337_ACEOF
14338if ac_fn_c_try_compile "$LINENO"
14339then :
14340  xorg_cv_cc_flag_unknown_warning_option=yes
14341else $as_nop
14342  xorg_cv_cc_flag_unknown_warning_option=no
14343fi
14344rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14345fi
14346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14347printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14348	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14349	CFLAGS="$xorg_testset_save_CFLAGS"
14350fi
14351
14352if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14353	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14354		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14355	fi
14356	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14357	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14358printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14359if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14360then :
14361  printf %s "(cached) " >&6
14362else $as_nop
14363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14364/* end confdefs.h.  */
14365int i;
14366_ACEOF
14367if ac_fn_c_try_compile "$LINENO"
14368then :
14369  xorg_cv_cc_flag_unused_command_line_argument=yes
14370else $as_nop
14371  xorg_cv_cc_flag_unused_command_line_argument=no
14372fi
14373rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14374fi
14375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14376printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14377	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14378	CFLAGS="$xorg_testset_save_CFLAGS"
14379fi
14380
14381found="no"
14382
14383	if test $found = "no" ; then
14384		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14385			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14386		fi
14387
14388		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14389			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14390		fi
14391
14392		CFLAGS="$CFLAGS -Wunused"
14393
14394		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14395printf %s "checking if $CC supports -Wunused... " >&6; }
14396		cacheid=xorg_cv_cc_flag__Wunused
14397		if eval test \${$cacheid+y}
14398then :
14399  printf %s "(cached) " >&6
14400else $as_nop
14401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14402/* end confdefs.h.  */
14403int i;
14404int
14405main (void)
14406{
14407
14408  ;
14409  return 0;
14410}
14411_ACEOF
14412if ac_fn_c_try_link "$LINENO"
14413then :
14414  eval $cacheid=yes
14415else $as_nop
14416  eval $cacheid=no
14417fi
14418rm -f core conftest.err conftest.$ac_objext conftest.beam \
14419    conftest$ac_exeext conftest.$ac_ext
14420fi
14421
14422
14423		CFLAGS="$xorg_testset_save_CFLAGS"
14424
14425		eval supported=\$$cacheid
14426		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14427printf "%s\n" "$supported" >&6; }
14428		if test "$supported" = "yes" ; then
14429			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14430			found="yes"
14431		fi
14432	fi
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448xorg_testset_save_CFLAGS="$CFLAGS"
14449
14450if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14451	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14452	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14453printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14454if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14455then :
14456  printf %s "(cached) " >&6
14457else $as_nop
14458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14459/* end confdefs.h.  */
14460int i;
14461_ACEOF
14462if ac_fn_c_try_compile "$LINENO"
14463then :
14464  xorg_cv_cc_flag_unknown_warning_option=yes
14465else $as_nop
14466  xorg_cv_cc_flag_unknown_warning_option=no
14467fi
14468rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14469fi
14470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14471printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14472	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14473	CFLAGS="$xorg_testset_save_CFLAGS"
14474fi
14475
14476if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14477	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14478		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14479	fi
14480	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14481	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14482printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14483if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14484then :
14485  printf %s "(cached) " >&6
14486else $as_nop
14487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14488/* end confdefs.h.  */
14489int i;
14490_ACEOF
14491if ac_fn_c_try_compile "$LINENO"
14492then :
14493  xorg_cv_cc_flag_unused_command_line_argument=yes
14494else $as_nop
14495  xorg_cv_cc_flag_unused_command_line_argument=no
14496fi
14497rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14498fi
14499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14500printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14501	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14502	CFLAGS="$xorg_testset_save_CFLAGS"
14503fi
14504
14505found="no"
14506
14507	if test $found = "no" ; then
14508		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14509			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14510		fi
14511
14512		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14513			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14514		fi
14515
14516		CFLAGS="$CFLAGS -Wuninitialized"
14517
14518		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14519printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14520		cacheid=xorg_cv_cc_flag__Wuninitialized
14521		if eval test \${$cacheid+y}
14522then :
14523  printf %s "(cached) " >&6
14524else $as_nop
14525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14526/* end confdefs.h.  */
14527int i;
14528int
14529main (void)
14530{
14531
14532  ;
14533  return 0;
14534}
14535_ACEOF
14536if ac_fn_c_try_link "$LINENO"
14537then :
14538  eval $cacheid=yes
14539else $as_nop
14540  eval $cacheid=no
14541fi
14542rm -f core conftest.err conftest.$ac_objext conftest.beam \
14543    conftest$ac_exeext conftest.$ac_ext
14544fi
14545
14546
14547		CFLAGS="$xorg_testset_save_CFLAGS"
14548
14549		eval supported=\$$cacheid
14550		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14551printf "%s\n" "$supported" >&6; }
14552		if test "$supported" = "yes" ; then
14553			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14554			found="yes"
14555		fi
14556	fi
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572xorg_testset_save_CFLAGS="$CFLAGS"
14573
14574if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14575	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14576	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14577printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14578if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14579then :
14580  printf %s "(cached) " >&6
14581else $as_nop
14582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14583/* end confdefs.h.  */
14584int i;
14585_ACEOF
14586if ac_fn_c_try_compile "$LINENO"
14587then :
14588  xorg_cv_cc_flag_unknown_warning_option=yes
14589else $as_nop
14590  xorg_cv_cc_flag_unknown_warning_option=no
14591fi
14592rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14593fi
14594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14595printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14596	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14597	CFLAGS="$xorg_testset_save_CFLAGS"
14598fi
14599
14600if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14601	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14602		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14603	fi
14604	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14605	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14606printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14607if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14608then :
14609  printf %s "(cached) " >&6
14610else $as_nop
14611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14612/* end confdefs.h.  */
14613int i;
14614_ACEOF
14615if ac_fn_c_try_compile "$LINENO"
14616then :
14617  xorg_cv_cc_flag_unused_command_line_argument=yes
14618else $as_nop
14619  xorg_cv_cc_flag_unused_command_line_argument=no
14620fi
14621rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14622fi
14623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14624printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14625	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14626	CFLAGS="$xorg_testset_save_CFLAGS"
14627fi
14628
14629found="no"
14630
14631	if test $found = "no" ; then
14632		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14633			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14634		fi
14635
14636		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14637			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14638		fi
14639
14640		CFLAGS="$CFLAGS -Wshadow"
14641
14642		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14643printf %s "checking if $CC supports -Wshadow... " >&6; }
14644		cacheid=xorg_cv_cc_flag__Wshadow
14645		if eval test \${$cacheid+y}
14646then :
14647  printf %s "(cached) " >&6
14648else $as_nop
14649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14650/* end confdefs.h.  */
14651int i;
14652int
14653main (void)
14654{
14655
14656  ;
14657  return 0;
14658}
14659_ACEOF
14660if ac_fn_c_try_link "$LINENO"
14661then :
14662  eval $cacheid=yes
14663else $as_nop
14664  eval $cacheid=no
14665fi
14666rm -f core conftest.err conftest.$ac_objext conftest.beam \
14667    conftest$ac_exeext conftest.$ac_ext
14668fi
14669
14670
14671		CFLAGS="$xorg_testset_save_CFLAGS"
14672
14673		eval supported=\$$cacheid
14674		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14675printf "%s\n" "$supported" >&6; }
14676		if test "$supported" = "yes" ; then
14677			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14678			found="yes"
14679		fi
14680	fi
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696xorg_testset_save_CFLAGS="$CFLAGS"
14697
14698if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14699	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14700	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14701printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14702if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14703then :
14704  printf %s "(cached) " >&6
14705else $as_nop
14706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14707/* end confdefs.h.  */
14708int i;
14709_ACEOF
14710if ac_fn_c_try_compile "$LINENO"
14711then :
14712  xorg_cv_cc_flag_unknown_warning_option=yes
14713else $as_nop
14714  xorg_cv_cc_flag_unknown_warning_option=no
14715fi
14716rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14717fi
14718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14719printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14720	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14721	CFLAGS="$xorg_testset_save_CFLAGS"
14722fi
14723
14724if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14725	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14726		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14727	fi
14728	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14729	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14730printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14731if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14732then :
14733  printf %s "(cached) " >&6
14734else $as_nop
14735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14736/* end confdefs.h.  */
14737int i;
14738_ACEOF
14739if ac_fn_c_try_compile "$LINENO"
14740then :
14741  xorg_cv_cc_flag_unused_command_line_argument=yes
14742else $as_nop
14743  xorg_cv_cc_flag_unused_command_line_argument=no
14744fi
14745rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14746fi
14747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14748printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14749	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14750	CFLAGS="$xorg_testset_save_CFLAGS"
14751fi
14752
14753found="no"
14754
14755	if test $found = "no" ; then
14756		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14757			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14758		fi
14759
14760		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14761			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14762		fi
14763
14764		CFLAGS="$CFLAGS -Wmissing-noreturn"
14765
14766		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14767printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14768		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14769		if eval test \${$cacheid+y}
14770then :
14771  printf %s "(cached) " >&6
14772else $as_nop
14773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14774/* end confdefs.h.  */
14775int i;
14776int
14777main (void)
14778{
14779
14780  ;
14781  return 0;
14782}
14783_ACEOF
14784if ac_fn_c_try_link "$LINENO"
14785then :
14786  eval $cacheid=yes
14787else $as_nop
14788  eval $cacheid=no
14789fi
14790rm -f core conftest.err conftest.$ac_objext conftest.beam \
14791    conftest$ac_exeext conftest.$ac_ext
14792fi
14793
14794
14795		CFLAGS="$xorg_testset_save_CFLAGS"
14796
14797		eval supported=\$$cacheid
14798		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14799printf "%s\n" "$supported" >&6; }
14800		if test "$supported" = "yes" ; then
14801			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14802			found="yes"
14803		fi
14804	fi
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820xorg_testset_save_CFLAGS="$CFLAGS"
14821
14822if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14823	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14824	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14825printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14826if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14827then :
14828  printf %s "(cached) " >&6
14829else $as_nop
14830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14831/* end confdefs.h.  */
14832int i;
14833_ACEOF
14834if ac_fn_c_try_compile "$LINENO"
14835then :
14836  xorg_cv_cc_flag_unknown_warning_option=yes
14837else $as_nop
14838  xorg_cv_cc_flag_unknown_warning_option=no
14839fi
14840rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14841fi
14842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14843printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14844	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14845	CFLAGS="$xorg_testset_save_CFLAGS"
14846fi
14847
14848if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14849	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14850		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14851	fi
14852	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14853	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14854printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14855if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14856then :
14857  printf %s "(cached) " >&6
14858else $as_nop
14859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14860/* end confdefs.h.  */
14861int i;
14862_ACEOF
14863if ac_fn_c_try_compile "$LINENO"
14864then :
14865  xorg_cv_cc_flag_unused_command_line_argument=yes
14866else $as_nop
14867  xorg_cv_cc_flag_unused_command_line_argument=no
14868fi
14869rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14870fi
14871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14872printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14873	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14874	CFLAGS="$xorg_testset_save_CFLAGS"
14875fi
14876
14877found="no"
14878
14879	if test $found = "no" ; then
14880		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14881			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14882		fi
14883
14884		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14885			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14886		fi
14887
14888		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14889
14890		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14891printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14892		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14893		if eval test \${$cacheid+y}
14894then :
14895  printf %s "(cached) " >&6
14896else $as_nop
14897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14898/* end confdefs.h.  */
14899int i;
14900int
14901main (void)
14902{
14903
14904  ;
14905  return 0;
14906}
14907_ACEOF
14908if ac_fn_c_try_link "$LINENO"
14909then :
14910  eval $cacheid=yes
14911else $as_nop
14912  eval $cacheid=no
14913fi
14914rm -f core conftest.err conftest.$ac_objext conftest.beam \
14915    conftest$ac_exeext conftest.$ac_ext
14916fi
14917
14918
14919		CFLAGS="$xorg_testset_save_CFLAGS"
14920
14921		eval supported=\$$cacheid
14922		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14923printf "%s\n" "$supported" >&6; }
14924		if test "$supported" = "yes" ; then
14925			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14926			found="yes"
14927		fi
14928	fi
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944xorg_testset_save_CFLAGS="$CFLAGS"
14945
14946if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14947	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14948	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14949printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14950if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14951then :
14952  printf %s "(cached) " >&6
14953else $as_nop
14954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14955/* end confdefs.h.  */
14956int i;
14957_ACEOF
14958if ac_fn_c_try_compile "$LINENO"
14959then :
14960  xorg_cv_cc_flag_unknown_warning_option=yes
14961else $as_nop
14962  xorg_cv_cc_flag_unknown_warning_option=no
14963fi
14964rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14965fi
14966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14967printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14968	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14969	CFLAGS="$xorg_testset_save_CFLAGS"
14970fi
14971
14972if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14973	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14974		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14975	fi
14976	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14977	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14978printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14979if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14980then :
14981  printf %s "(cached) " >&6
14982else $as_nop
14983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14984/* end confdefs.h.  */
14985int i;
14986_ACEOF
14987if ac_fn_c_try_compile "$LINENO"
14988then :
14989  xorg_cv_cc_flag_unused_command_line_argument=yes
14990else $as_nop
14991  xorg_cv_cc_flag_unused_command_line_argument=no
14992fi
14993rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14994fi
14995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14996printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14997	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14998	CFLAGS="$xorg_testset_save_CFLAGS"
14999fi
15000
15001found="no"
15002
15003	if test $found = "no" ; then
15004		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15005			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15006		fi
15007
15008		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15009			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15010		fi
15011
15012		CFLAGS="$CFLAGS -Wredundant-decls"
15013
15014		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15015printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15016		cacheid=xorg_cv_cc_flag__Wredundant_decls
15017		if eval test \${$cacheid+y}
15018then :
15019  printf %s "(cached) " >&6
15020else $as_nop
15021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15022/* end confdefs.h.  */
15023int i;
15024int
15025main (void)
15026{
15027
15028  ;
15029  return 0;
15030}
15031_ACEOF
15032if ac_fn_c_try_link "$LINENO"
15033then :
15034  eval $cacheid=yes
15035else $as_nop
15036  eval $cacheid=no
15037fi
15038rm -f core conftest.err conftest.$ac_objext conftest.beam \
15039    conftest$ac_exeext conftest.$ac_ext
15040fi
15041
15042
15043		CFLAGS="$xorg_testset_save_CFLAGS"
15044
15045		eval supported=\$$cacheid
15046		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15047printf "%s\n" "$supported" >&6; }
15048		if test "$supported" = "yes" ; then
15049			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15050			found="yes"
15051		fi
15052	fi
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068xorg_testset_save_CFLAGS="$CFLAGS"
15069
15070if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15071	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15072	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15073printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15074if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15075then :
15076  printf %s "(cached) " >&6
15077else $as_nop
15078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15079/* end confdefs.h.  */
15080int i;
15081_ACEOF
15082if ac_fn_c_try_compile "$LINENO"
15083then :
15084  xorg_cv_cc_flag_unknown_warning_option=yes
15085else $as_nop
15086  xorg_cv_cc_flag_unknown_warning_option=no
15087fi
15088rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15089fi
15090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15091printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15092	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15093	CFLAGS="$xorg_testset_save_CFLAGS"
15094fi
15095
15096if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15097	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15098		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15099	fi
15100	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15101	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15102printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15103if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15104then :
15105  printf %s "(cached) " >&6
15106else $as_nop
15107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15108/* end confdefs.h.  */
15109int i;
15110_ACEOF
15111if ac_fn_c_try_compile "$LINENO"
15112then :
15113  xorg_cv_cc_flag_unused_command_line_argument=yes
15114else $as_nop
15115  xorg_cv_cc_flag_unused_command_line_argument=no
15116fi
15117rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15118fi
15119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15120printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15121	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15122	CFLAGS="$xorg_testset_save_CFLAGS"
15123fi
15124
15125found="no"
15126
15127	if test $found = "no" ; then
15128		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15129			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15130		fi
15131
15132		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15133			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15134		fi
15135
15136		CFLAGS="$CFLAGS -Wlogical-op"
15137
15138		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15139printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15140		cacheid=xorg_cv_cc_flag__Wlogical_op
15141		if eval test \${$cacheid+y}
15142then :
15143  printf %s "(cached) " >&6
15144else $as_nop
15145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15146/* end confdefs.h.  */
15147int i;
15148int
15149main (void)
15150{
15151
15152  ;
15153  return 0;
15154}
15155_ACEOF
15156if ac_fn_c_try_link "$LINENO"
15157then :
15158  eval $cacheid=yes
15159else $as_nop
15160  eval $cacheid=no
15161fi
15162rm -f core conftest.err conftest.$ac_objext conftest.beam \
15163    conftest$ac_exeext conftest.$ac_ext
15164fi
15165
15166
15167		CFLAGS="$xorg_testset_save_CFLAGS"
15168
15169		eval supported=\$$cacheid
15170		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15171printf "%s\n" "$supported" >&6; }
15172		if test "$supported" = "yes" ; then
15173			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15174			found="yes"
15175		fi
15176	fi
15177
15178
15179
15180# These are currently disabled because they are noisy.  They will be enabled
15181# in the future once the codebase is sufficiently modernized to silence
15182# them.  For now, I don't want them to drown out the other warnings.
15183# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15184# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15185# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15186
15187# Turn some warnings into errors, so we don't accidently get successful builds
15188# when there are problems that should be fixed.
15189
15190if test "x$SELECTIVE_WERROR" = "xyes" ; then
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204xorg_testset_save_CFLAGS="$CFLAGS"
15205
15206if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15207	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15208	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15209printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15210if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15211then :
15212  printf %s "(cached) " >&6
15213else $as_nop
15214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15215/* end confdefs.h.  */
15216int i;
15217_ACEOF
15218if ac_fn_c_try_compile "$LINENO"
15219then :
15220  xorg_cv_cc_flag_unknown_warning_option=yes
15221else $as_nop
15222  xorg_cv_cc_flag_unknown_warning_option=no
15223fi
15224rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15225fi
15226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15227printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15228	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15229	CFLAGS="$xorg_testset_save_CFLAGS"
15230fi
15231
15232if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15233	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15234		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15235	fi
15236	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15237	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15238printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15239if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15240then :
15241  printf %s "(cached) " >&6
15242else $as_nop
15243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15244/* end confdefs.h.  */
15245int i;
15246_ACEOF
15247if ac_fn_c_try_compile "$LINENO"
15248then :
15249  xorg_cv_cc_flag_unused_command_line_argument=yes
15250else $as_nop
15251  xorg_cv_cc_flag_unused_command_line_argument=no
15252fi
15253rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15254fi
15255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15256printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15257	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15258	CFLAGS="$xorg_testset_save_CFLAGS"
15259fi
15260
15261found="no"
15262
15263	if test $found = "no" ; then
15264		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15265			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15266		fi
15267
15268		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15269			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15270		fi
15271
15272		CFLAGS="$CFLAGS -Werror=implicit"
15273
15274		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15275printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15276		cacheid=xorg_cv_cc_flag__Werror_implicit
15277		if eval test \${$cacheid+y}
15278then :
15279  printf %s "(cached) " >&6
15280else $as_nop
15281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15282/* end confdefs.h.  */
15283int i;
15284int
15285main (void)
15286{
15287
15288  ;
15289  return 0;
15290}
15291_ACEOF
15292if ac_fn_c_try_link "$LINENO"
15293then :
15294  eval $cacheid=yes
15295else $as_nop
15296  eval $cacheid=no
15297fi
15298rm -f core conftest.err conftest.$ac_objext conftest.beam \
15299    conftest$ac_exeext conftest.$ac_ext
15300fi
15301
15302
15303		CFLAGS="$xorg_testset_save_CFLAGS"
15304
15305		eval supported=\$$cacheid
15306		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15307printf "%s\n" "$supported" >&6; }
15308		if test "$supported" = "yes" ; then
15309			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15310			found="yes"
15311		fi
15312	fi
15313
15314	if test $found = "no" ; then
15315		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15316			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15317		fi
15318
15319		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15320			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15321		fi
15322
15323		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15324
15325		{ 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
15326printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15327		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15328		if eval test \${$cacheid+y}
15329then :
15330  printf %s "(cached) " >&6
15331else $as_nop
15332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15333/* end confdefs.h.  */
15334int i;
15335int
15336main (void)
15337{
15338
15339  ;
15340  return 0;
15341}
15342_ACEOF
15343if ac_fn_c_try_link "$LINENO"
15344then :
15345  eval $cacheid=yes
15346else $as_nop
15347  eval $cacheid=no
15348fi
15349rm -f core conftest.err conftest.$ac_objext conftest.beam \
15350    conftest$ac_exeext conftest.$ac_ext
15351fi
15352
15353
15354		CFLAGS="$xorg_testset_save_CFLAGS"
15355
15356		eval supported=\$$cacheid
15357		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15358printf "%s\n" "$supported" >&6; }
15359		if test "$supported" = "yes" ; then
15360			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15361			found="yes"
15362		fi
15363	fi
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379xorg_testset_save_CFLAGS="$CFLAGS"
15380
15381if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15382	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15383	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15384printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15385if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15386then :
15387  printf %s "(cached) " >&6
15388else $as_nop
15389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15390/* end confdefs.h.  */
15391int i;
15392_ACEOF
15393if ac_fn_c_try_compile "$LINENO"
15394then :
15395  xorg_cv_cc_flag_unknown_warning_option=yes
15396else $as_nop
15397  xorg_cv_cc_flag_unknown_warning_option=no
15398fi
15399rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15400fi
15401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15402printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15403	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15404	CFLAGS="$xorg_testset_save_CFLAGS"
15405fi
15406
15407if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15408	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15409		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15410	fi
15411	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15412	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15413printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15414if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15415then :
15416  printf %s "(cached) " >&6
15417else $as_nop
15418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15419/* end confdefs.h.  */
15420int i;
15421_ACEOF
15422if ac_fn_c_try_compile "$LINENO"
15423then :
15424  xorg_cv_cc_flag_unused_command_line_argument=yes
15425else $as_nop
15426  xorg_cv_cc_flag_unused_command_line_argument=no
15427fi
15428rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15429fi
15430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15431printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15432	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15433	CFLAGS="$xorg_testset_save_CFLAGS"
15434fi
15435
15436found="no"
15437
15438	if test $found = "no" ; then
15439		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15440			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15441		fi
15442
15443		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15444			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15445		fi
15446
15447		CFLAGS="$CFLAGS -Werror=nonnull"
15448
15449		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15450printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15451		cacheid=xorg_cv_cc_flag__Werror_nonnull
15452		if eval test \${$cacheid+y}
15453then :
15454  printf %s "(cached) " >&6
15455else $as_nop
15456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15457/* end confdefs.h.  */
15458int i;
15459int
15460main (void)
15461{
15462
15463  ;
15464  return 0;
15465}
15466_ACEOF
15467if ac_fn_c_try_link "$LINENO"
15468then :
15469  eval $cacheid=yes
15470else $as_nop
15471  eval $cacheid=no
15472fi
15473rm -f core conftest.err conftest.$ac_objext conftest.beam \
15474    conftest$ac_exeext conftest.$ac_ext
15475fi
15476
15477
15478		CFLAGS="$xorg_testset_save_CFLAGS"
15479
15480		eval supported=\$$cacheid
15481		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15482printf "%s\n" "$supported" >&6; }
15483		if test "$supported" = "yes" ; then
15484			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15485			found="yes"
15486		fi
15487	fi
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503xorg_testset_save_CFLAGS="$CFLAGS"
15504
15505if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15506	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15507	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15508printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15509if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15510then :
15511  printf %s "(cached) " >&6
15512else $as_nop
15513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15514/* end confdefs.h.  */
15515int i;
15516_ACEOF
15517if ac_fn_c_try_compile "$LINENO"
15518then :
15519  xorg_cv_cc_flag_unknown_warning_option=yes
15520else $as_nop
15521  xorg_cv_cc_flag_unknown_warning_option=no
15522fi
15523rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15524fi
15525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15526printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15527	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15528	CFLAGS="$xorg_testset_save_CFLAGS"
15529fi
15530
15531if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15532	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15533		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15534	fi
15535	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15536	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15537printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15538if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15539then :
15540  printf %s "(cached) " >&6
15541else $as_nop
15542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15543/* end confdefs.h.  */
15544int i;
15545_ACEOF
15546if ac_fn_c_try_compile "$LINENO"
15547then :
15548  xorg_cv_cc_flag_unused_command_line_argument=yes
15549else $as_nop
15550  xorg_cv_cc_flag_unused_command_line_argument=no
15551fi
15552rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15553fi
15554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15555printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15556	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15557	CFLAGS="$xorg_testset_save_CFLAGS"
15558fi
15559
15560found="no"
15561
15562	if test $found = "no" ; then
15563		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15564			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15565		fi
15566
15567		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15568			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15569		fi
15570
15571		CFLAGS="$CFLAGS -Werror=init-self"
15572
15573		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15574printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15575		cacheid=xorg_cv_cc_flag__Werror_init_self
15576		if eval test \${$cacheid+y}
15577then :
15578  printf %s "(cached) " >&6
15579else $as_nop
15580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15581/* end confdefs.h.  */
15582int i;
15583int
15584main (void)
15585{
15586
15587  ;
15588  return 0;
15589}
15590_ACEOF
15591if ac_fn_c_try_link "$LINENO"
15592then :
15593  eval $cacheid=yes
15594else $as_nop
15595  eval $cacheid=no
15596fi
15597rm -f core conftest.err conftest.$ac_objext conftest.beam \
15598    conftest$ac_exeext conftest.$ac_ext
15599fi
15600
15601
15602		CFLAGS="$xorg_testset_save_CFLAGS"
15603
15604		eval supported=\$$cacheid
15605		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15606printf "%s\n" "$supported" >&6; }
15607		if test "$supported" = "yes" ; then
15608			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15609			found="yes"
15610		fi
15611	fi
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627xorg_testset_save_CFLAGS="$CFLAGS"
15628
15629if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15630	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15631	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15632printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15633if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15634then :
15635  printf %s "(cached) " >&6
15636else $as_nop
15637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15638/* end confdefs.h.  */
15639int i;
15640_ACEOF
15641if ac_fn_c_try_compile "$LINENO"
15642then :
15643  xorg_cv_cc_flag_unknown_warning_option=yes
15644else $as_nop
15645  xorg_cv_cc_flag_unknown_warning_option=no
15646fi
15647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15648fi
15649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15650printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15651	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15652	CFLAGS="$xorg_testset_save_CFLAGS"
15653fi
15654
15655if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15656	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15657		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15658	fi
15659	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15660	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15661printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15662if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15663then :
15664  printf %s "(cached) " >&6
15665else $as_nop
15666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15667/* end confdefs.h.  */
15668int i;
15669_ACEOF
15670if ac_fn_c_try_compile "$LINENO"
15671then :
15672  xorg_cv_cc_flag_unused_command_line_argument=yes
15673else $as_nop
15674  xorg_cv_cc_flag_unused_command_line_argument=no
15675fi
15676rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15677fi
15678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15679printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15680	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15681	CFLAGS="$xorg_testset_save_CFLAGS"
15682fi
15683
15684found="no"
15685
15686	if test $found = "no" ; then
15687		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15688			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15689		fi
15690
15691		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15692			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15693		fi
15694
15695		CFLAGS="$CFLAGS -Werror=main"
15696
15697		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15698printf %s "checking if $CC supports -Werror=main... " >&6; }
15699		cacheid=xorg_cv_cc_flag__Werror_main
15700		if eval test \${$cacheid+y}
15701then :
15702  printf %s "(cached) " >&6
15703else $as_nop
15704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15705/* end confdefs.h.  */
15706int i;
15707int
15708main (void)
15709{
15710
15711  ;
15712  return 0;
15713}
15714_ACEOF
15715if ac_fn_c_try_link "$LINENO"
15716then :
15717  eval $cacheid=yes
15718else $as_nop
15719  eval $cacheid=no
15720fi
15721rm -f core conftest.err conftest.$ac_objext conftest.beam \
15722    conftest$ac_exeext conftest.$ac_ext
15723fi
15724
15725
15726		CFLAGS="$xorg_testset_save_CFLAGS"
15727
15728		eval supported=\$$cacheid
15729		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15730printf "%s\n" "$supported" >&6; }
15731		if test "$supported" = "yes" ; then
15732			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15733			found="yes"
15734		fi
15735	fi
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751xorg_testset_save_CFLAGS="$CFLAGS"
15752
15753if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15754	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15755	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15756printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15757if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15758then :
15759  printf %s "(cached) " >&6
15760else $as_nop
15761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15762/* end confdefs.h.  */
15763int i;
15764_ACEOF
15765if ac_fn_c_try_compile "$LINENO"
15766then :
15767  xorg_cv_cc_flag_unknown_warning_option=yes
15768else $as_nop
15769  xorg_cv_cc_flag_unknown_warning_option=no
15770fi
15771rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15772fi
15773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15774printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15775	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15776	CFLAGS="$xorg_testset_save_CFLAGS"
15777fi
15778
15779if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15780	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15781		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15782	fi
15783	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15784	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15785printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15786if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15787then :
15788  printf %s "(cached) " >&6
15789else $as_nop
15790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15791/* end confdefs.h.  */
15792int i;
15793_ACEOF
15794if ac_fn_c_try_compile "$LINENO"
15795then :
15796  xorg_cv_cc_flag_unused_command_line_argument=yes
15797else $as_nop
15798  xorg_cv_cc_flag_unused_command_line_argument=no
15799fi
15800rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15801fi
15802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15803printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15804	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15805	CFLAGS="$xorg_testset_save_CFLAGS"
15806fi
15807
15808found="no"
15809
15810	if test $found = "no" ; then
15811		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15812			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15813		fi
15814
15815		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15816			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15817		fi
15818
15819		CFLAGS="$CFLAGS -Werror=missing-braces"
15820
15821		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15822printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
15823		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15824		if eval test \${$cacheid+y}
15825then :
15826  printf %s "(cached) " >&6
15827else $as_nop
15828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15829/* end confdefs.h.  */
15830int i;
15831int
15832main (void)
15833{
15834
15835  ;
15836  return 0;
15837}
15838_ACEOF
15839if ac_fn_c_try_link "$LINENO"
15840then :
15841  eval $cacheid=yes
15842else $as_nop
15843  eval $cacheid=no
15844fi
15845rm -f core conftest.err conftest.$ac_objext conftest.beam \
15846    conftest$ac_exeext conftest.$ac_ext
15847fi
15848
15849
15850		CFLAGS="$xorg_testset_save_CFLAGS"
15851
15852		eval supported=\$$cacheid
15853		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15854printf "%s\n" "$supported" >&6; }
15855		if test "$supported" = "yes" ; then
15856			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15857			found="yes"
15858		fi
15859	fi
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875xorg_testset_save_CFLAGS="$CFLAGS"
15876
15877if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15878	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15879	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15880printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15881if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15882then :
15883  printf %s "(cached) " >&6
15884else $as_nop
15885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15886/* end confdefs.h.  */
15887int i;
15888_ACEOF
15889if ac_fn_c_try_compile "$LINENO"
15890then :
15891  xorg_cv_cc_flag_unknown_warning_option=yes
15892else $as_nop
15893  xorg_cv_cc_flag_unknown_warning_option=no
15894fi
15895rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15896fi
15897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15898printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15899	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15900	CFLAGS="$xorg_testset_save_CFLAGS"
15901fi
15902
15903if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15904	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15905		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15906	fi
15907	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15908	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15909printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15910if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15911then :
15912  printf %s "(cached) " >&6
15913else $as_nop
15914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15915/* end confdefs.h.  */
15916int i;
15917_ACEOF
15918if ac_fn_c_try_compile "$LINENO"
15919then :
15920  xorg_cv_cc_flag_unused_command_line_argument=yes
15921else $as_nop
15922  xorg_cv_cc_flag_unused_command_line_argument=no
15923fi
15924rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15925fi
15926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15927printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15928	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15929	CFLAGS="$xorg_testset_save_CFLAGS"
15930fi
15931
15932found="no"
15933
15934	if test $found = "no" ; then
15935		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15936			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15937		fi
15938
15939		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15940			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15941		fi
15942
15943		CFLAGS="$CFLAGS -Werror=sequence-point"
15944
15945		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15946printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
15947		cacheid=xorg_cv_cc_flag__Werror_sequence_point
15948		if eval test \${$cacheid+y}
15949then :
15950  printf %s "(cached) " >&6
15951else $as_nop
15952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15953/* end confdefs.h.  */
15954int i;
15955int
15956main (void)
15957{
15958
15959  ;
15960  return 0;
15961}
15962_ACEOF
15963if ac_fn_c_try_link "$LINENO"
15964then :
15965  eval $cacheid=yes
15966else $as_nop
15967  eval $cacheid=no
15968fi
15969rm -f core conftest.err conftest.$ac_objext conftest.beam \
15970    conftest$ac_exeext conftest.$ac_ext
15971fi
15972
15973
15974		CFLAGS="$xorg_testset_save_CFLAGS"
15975
15976		eval supported=\$$cacheid
15977		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15978printf "%s\n" "$supported" >&6; }
15979		if test "$supported" = "yes" ; then
15980			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15981			found="yes"
15982		fi
15983	fi
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999xorg_testset_save_CFLAGS="$CFLAGS"
16000
16001if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16002	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16003	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16004printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16005if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16006then :
16007  printf %s "(cached) " >&6
16008else $as_nop
16009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16010/* end confdefs.h.  */
16011int i;
16012_ACEOF
16013if ac_fn_c_try_compile "$LINENO"
16014then :
16015  xorg_cv_cc_flag_unknown_warning_option=yes
16016else $as_nop
16017  xorg_cv_cc_flag_unknown_warning_option=no
16018fi
16019rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16020fi
16021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16022printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16023	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16024	CFLAGS="$xorg_testset_save_CFLAGS"
16025fi
16026
16027if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16028	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16029		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16030	fi
16031	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16032	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16033printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16034if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16035then :
16036  printf %s "(cached) " >&6
16037else $as_nop
16038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16039/* end confdefs.h.  */
16040int i;
16041_ACEOF
16042if ac_fn_c_try_compile "$LINENO"
16043then :
16044  xorg_cv_cc_flag_unused_command_line_argument=yes
16045else $as_nop
16046  xorg_cv_cc_flag_unused_command_line_argument=no
16047fi
16048rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16049fi
16050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16051printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16052	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16053	CFLAGS="$xorg_testset_save_CFLAGS"
16054fi
16055
16056found="no"
16057
16058	if test $found = "no" ; then
16059		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16060			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16061		fi
16062
16063		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16064			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16065		fi
16066
16067		CFLAGS="$CFLAGS -Werror=return-type"
16068
16069		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16070printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16071		cacheid=xorg_cv_cc_flag__Werror_return_type
16072		if eval test \${$cacheid+y}
16073then :
16074  printf %s "(cached) " >&6
16075else $as_nop
16076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16077/* end confdefs.h.  */
16078int i;
16079int
16080main (void)
16081{
16082
16083  ;
16084  return 0;
16085}
16086_ACEOF
16087if ac_fn_c_try_link "$LINENO"
16088then :
16089  eval $cacheid=yes
16090else $as_nop
16091  eval $cacheid=no
16092fi
16093rm -f core conftest.err conftest.$ac_objext conftest.beam \
16094    conftest$ac_exeext conftest.$ac_ext
16095fi
16096
16097
16098		CFLAGS="$xorg_testset_save_CFLAGS"
16099
16100		eval supported=\$$cacheid
16101		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16102printf "%s\n" "$supported" >&6; }
16103		if test "$supported" = "yes" ; then
16104			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16105			found="yes"
16106		fi
16107	fi
16108
16109	if test $found = "no" ; then
16110		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16111			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16112		fi
16113
16114		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16115			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16116		fi
16117
16118		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16119
16120		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16121printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16122		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16123		if eval test \${$cacheid+y}
16124then :
16125  printf %s "(cached) " >&6
16126else $as_nop
16127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16128/* end confdefs.h.  */
16129int i;
16130int
16131main (void)
16132{
16133
16134  ;
16135  return 0;
16136}
16137_ACEOF
16138if ac_fn_c_try_link "$LINENO"
16139then :
16140  eval $cacheid=yes
16141else $as_nop
16142  eval $cacheid=no
16143fi
16144rm -f core conftest.err conftest.$ac_objext conftest.beam \
16145    conftest$ac_exeext conftest.$ac_ext
16146fi
16147
16148
16149		CFLAGS="$xorg_testset_save_CFLAGS"
16150
16151		eval supported=\$$cacheid
16152		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16153printf "%s\n" "$supported" >&6; }
16154		if test "$supported" = "yes" ; then
16155			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16156			found="yes"
16157		fi
16158	fi
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174xorg_testset_save_CFLAGS="$CFLAGS"
16175
16176if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16177	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16178	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16179printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16180if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16181then :
16182  printf %s "(cached) " >&6
16183else $as_nop
16184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16185/* end confdefs.h.  */
16186int i;
16187_ACEOF
16188if ac_fn_c_try_compile "$LINENO"
16189then :
16190  xorg_cv_cc_flag_unknown_warning_option=yes
16191else $as_nop
16192  xorg_cv_cc_flag_unknown_warning_option=no
16193fi
16194rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16195fi
16196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16197printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16198	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16199	CFLAGS="$xorg_testset_save_CFLAGS"
16200fi
16201
16202if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16203	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16204		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16205	fi
16206	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16207	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16208printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16209if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16210then :
16211  printf %s "(cached) " >&6
16212else $as_nop
16213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16214/* end confdefs.h.  */
16215int i;
16216_ACEOF
16217if ac_fn_c_try_compile "$LINENO"
16218then :
16219  xorg_cv_cc_flag_unused_command_line_argument=yes
16220else $as_nop
16221  xorg_cv_cc_flag_unused_command_line_argument=no
16222fi
16223rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16224fi
16225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16226printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16227	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16228	CFLAGS="$xorg_testset_save_CFLAGS"
16229fi
16230
16231found="no"
16232
16233	if test $found = "no" ; then
16234		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16235			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16236		fi
16237
16238		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16239			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16240		fi
16241
16242		CFLAGS="$CFLAGS -Werror=trigraphs"
16243
16244		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16245printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16246		cacheid=xorg_cv_cc_flag__Werror_trigraphs
16247		if eval test \${$cacheid+y}
16248then :
16249  printf %s "(cached) " >&6
16250else $as_nop
16251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16252/* end confdefs.h.  */
16253int i;
16254int
16255main (void)
16256{
16257
16258  ;
16259  return 0;
16260}
16261_ACEOF
16262if ac_fn_c_try_link "$LINENO"
16263then :
16264  eval $cacheid=yes
16265else $as_nop
16266  eval $cacheid=no
16267fi
16268rm -f core conftest.err conftest.$ac_objext conftest.beam \
16269    conftest$ac_exeext conftest.$ac_ext
16270fi
16271
16272
16273		CFLAGS="$xorg_testset_save_CFLAGS"
16274
16275		eval supported=\$$cacheid
16276		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16277printf "%s\n" "$supported" >&6; }
16278		if test "$supported" = "yes" ; then
16279			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16280			found="yes"
16281		fi
16282	fi
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298xorg_testset_save_CFLAGS="$CFLAGS"
16299
16300if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16301	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16302	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16303printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16304if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16305then :
16306  printf %s "(cached) " >&6
16307else $as_nop
16308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16309/* end confdefs.h.  */
16310int i;
16311_ACEOF
16312if ac_fn_c_try_compile "$LINENO"
16313then :
16314  xorg_cv_cc_flag_unknown_warning_option=yes
16315else $as_nop
16316  xorg_cv_cc_flag_unknown_warning_option=no
16317fi
16318rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16319fi
16320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16321printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16322	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16323	CFLAGS="$xorg_testset_save_CFLAGS"
16324fi
16325
16326if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16327	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16328		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16329	fi
16330	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16331	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16332printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16333if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16334then :
16335  printf %s "(cached) " >&6
16336else $as_nop
16337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16338/* end confdefs.h.  */
16339int i;
16340_ACEOF
16341if ac_fn_c_try_compile "$LINENO"
16342then :
16343  xorg_cv_cc_flag_unused_command_line_argument=yes
16344else $as_nop
16345  xorg_cv_cc_flag_unused_command_line_argument=no
16346fi
16347rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16348fi
16349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16350printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16351	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16352	CFLAGS="$xorg_testset_save_CFLAGS"
16353fi
16354
16355found="no"
16356
16357	if test $found = "no" ; then
16358		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16359			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16360		fi
16361
16362		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16363			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16364		fi
16365
16366		CFLAGS="$CFLAGS -Werror=array-bounds"
16367
16368		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16369printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16370		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16371		if eval test \${$cacheid+y}
16372then :
16373  printf %s "(cached) " >&6
16374else $as_nop
16375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16376/* end confdefs.h.  */
16377int i;
16378int
16379main (void)
16380{
16381
16382  ;
16383  return 0;
16384}
16385_ACEOF
16386if ac_fn_c_try_link "$LINENO"
16387then :
16388  eval $cacheid=yes
16389else $as_nop
16390  eval $cacheid=no
16391fi
16392rm -f core conftest.err conftest.$ac_objext conftest.beam \
16393    conftest$ac_exeext conftest.$ac_ext
16394fi
16395
16396
16397		CFLAGS="$xorg_testset_save_CFLAGS"
16398
16399		eval supported=\$$cacheid
16400		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16401printf "%s\n" "$supported" >&6; }
16402		if test "$supported" = "yes" ; then
16403			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16404			found="yes"
16405		fi
16406	fi
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422xorg_testset_save_CFLAGS="$CFLAGS"
16423
16424if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16425	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16426	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16427printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16428if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16429then :
16430  printf %s "(cached) " >&6
16431else $as_nop
16432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16433/* end confdefs.h.  */
16434int i;
16435_ACEOF
16436if ac_fn_c_try_compile "$LINENO"
16437then :
16438  xorg_cv_cc_flag_unknown_warning_option=yes
16439else $as_nop
16440  xorg_cv_cc_flag_unknown_warning_option=no
16441fi
16442rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16443fi
16444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16445printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16446	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16447	CFLAGS="$xorg_testset_save_CFLAGS"
16448fi
16449
16450if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16451	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16452		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16453	fi
16454	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16455	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16456printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16457if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16458then :
16459  printf %s "(cached) " >&6
16460else $as_nop
16461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16462/* end confdefs.h.  */
16463int i;
16464_ACEOF
16465if ac_fn_c_try_compile "$LINENO"
16466then :
16467  xorg_cv_cc_flag_unused_command_line_argument=yes
16468else $as_nop
16469  xorg_cv_cc_flag_unused_command_line_argument=no
16470fi
16471rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16472fi
16473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16474printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16475	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16476	CFLAGS="$xorg_testset_save_CFLAGS"
16477fi
16478
16479found="no"
16480
16481	if test $found = "no" ; then
16482		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16483			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16484		fi
16485
16486		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16487			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16488		fi
16489
16490		CFLAGS="$CFLAGS -Werror=write-strings"
16491
16492		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16493printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16494		cacheid=xorg_cv_cc_flag__Werror_write_strings
16495		if eval test \${$cacheid+y}
16496then :
16497  printf %s "(cached) " >&6
16498else $as_nop
16499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16500/* end confdefs.h.  */
16501int i;
16502int
16503main (void)
16504{
16505
16506  ;
16507  return 0;
16508}
16509_ACEOF
16510if ac_fn_c_try_link "$LINENO"
16511then :
16512  eval $cacheid=yes
16513else $as_nop
16514  eval $cacheid=no
16515fi
16516rm -f core conftest.err conftest.$ac_objext conftest.beam \
16517    conftest$ac_exeext conftest.$ac_ext
16518fi
16519
16520
16521		CFLAGS="$xorg_testset_save_CFLAGS"
16522
16523		eval supported=\$$cacheid
16524		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16525printf "%s\n" "$supported" >&6; }
16526		if test "$supported" = "yes" ; then
16527			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16528			found="yes"
16529		fi
16530	fi
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546xorg_testset_save_CFLAGS="$CFLAGS"
16547
16548if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16549	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16550	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16551printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16552if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16553then :
16554  printf %s "(cached) " >&6
16555else $as_nop
16556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16557/* end confdefs.h.  */
16558int i;
16559_ACEOF
16560if ac_fn_c_try_compile "$LINENO"
16561then :
16562  xorg_cv_cc_flag_unknown_warning_option=yes
16563else $as_nop
16564  xorg_cv_cc_flag_unknown_warning_option=no
16565fi
16566rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16567fi
16568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16569printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16570	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16571	CFLAGS="$xorg_testset_save_CFLAGS"
16572fi
16573
16574if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16575	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16576		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16577	fi
16578	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16579	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16580printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16581if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16582then :
16583  printf %s "(cached) " >&6
16584else $as_nop
16585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16586/* end confdefs.h.  */
16587int i;
16588_ACEOF
16589if ac_fn_c_try_compile "$LINENO"
16590then :
16591  xorg_cv_cc_flag_unused_command_line_argument=yes
16592else $as_nop
16593  xorg_cv_cc_flag_unused_command_line_argument=no
16594fi
16595rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16596fi
16597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16598printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16599	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16600	CFLAGS="$xorg_testset_save_CFLAGS"
16601fi
16602
16603found="no"
16604
16605	if test $found = "no" ; then
16606		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16607			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16608		fi
16609
16610		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16611			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16612		fi
16613
16614		CFLAGS="$CFLAGS -Werror=address"
16615
16616		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16617printf %s "checking if $CC supports -Werror=address... " >&6; }
16618		cacheid=xorg_cv_cc_flag__Werror_address
16619		if eval test \${$cacheid+y}
16620then :
16621  printf %s "(cached) " >&6
16622else $as_nop
16623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16624/* end confdefs.h.  */
16625int i;
16626int
16627main (void)
16628{
16629
16630  ;
16631  return 0;
16632}
16633_ACEOF
16634if ac_fn_c_try_link "$LINENO"
16635then :
16636  eval $cacheid=yes
16637else $as_nop
16638  eval $cacheid=no
16639fi
16640rm -f core conftest.err conftest.$ac_objext conftest.beam \
16641    conftest$ac_exeext conftest.$ac_ext
16642fi
16643
16644
16645		CFLAGS="$xorg_testset_save_CFLAGS"
16646
16647		eval supported=\$$cacheid
16648		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16649printf "%s\n" "$supported" >&6; }
16650		if test "$supported" = "yes" ; then
16651			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16652			found="yes"
16653		fi
16654	fi
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670xorg_testset_save_CFLAGS="$CFLAGS"
16671
16672if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16673	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16674	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16675printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16676if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16677then :
16678  printf %s "(cached) " >&6
16679else $as_nop
16680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16681/* end confdefs.h.  */
16682int i;
16683_ACEOF
16684if ac_fn_c_try_compile "$LINENO"
16685then :
16686  xorg_cv_cc_flag_unknown_warning_option=yes
16687else $as_nop
16688  xorg_cv_cc_flag_unknown_warning_option=no
16689fi
16690rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16691fi
16692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16693printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16694	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16695	CFLAGS="$xorg_testset_save_CFLAGS"
16696fi
16697
16698if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16699	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16700		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16701	fi
16702	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16703	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16704printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16705if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16706then :
16707  printf %s "(cached) " >&6
16708else $as_nop
16709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16710/* end confdefs.h.  */
16711int i;
16712_ACEOF
16713if ac_fn_c_try_compile "$LINENO"
16714then :
16715  xorg_cv_cc_flag_unused_command_line_argument=yes
16716else $as_nop
16717  xorg_cv_cc_flag_unused_command_line_argument=no
16718fi
16719rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16720fi
16721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16722printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16723	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16724	CFLAGS="$xorg_testset_save_CFLAGS"
16725fi
16726
16727found="no"
16728
16729	if test $found = "no" ; then
16730		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16731			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16732		fi
16733
16734		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16735			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16736		fi
16737
16738		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16739
16740		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16741printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16742		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16743		if eval test \${$cacheid+y}
16744then :
16745  printf %s "(cached) " >&6
16746else $as_nop
16747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16748/* end confdefs.h.  */
16749int i;
16750int
16751main (void)
16752{
16753
16754  ;
16755  return 0;
16756}
16757_ACEOF
16758if ac_fn_c_try_link "$LINENO"
16759then :
16760  eval $cacheid=yes
16761else $as_nop
16762  eval $cacheid=no
16763fi
16764rm -f core conftest.err conftest.$ac_objext conftest.beam \
16765    conftest$ac_exeext conftest.$ac_ext
16766fi
16767
16768
16769		CFLAGS="$xorg_testset_save_CFLAGS"
16770
16771		eval supported=\$$cacheid
16772		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16773printf "%s\n" "$supported" >&6; }
16774		if test "$supported" = "yes" ; then
16775			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16776			found="yes"
16777		fi
16778	fi
16779
16780	if test $found = "no" ; then
16781		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16782			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16783		fi
16784
16785		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16786			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16787		fi
16788
16789		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16790
16791		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16792printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16793		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16794		if eval test \${$cacheid+y}
16795then :
16796  printf %s "(cached) " >&6
16797else $as_nop
16798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16799/* end confdefs.h.  */
16800int i;
16801int
16802main (void)
16803{
16804
16805  ;
16806  return 0;
16807}
16808_ACEOF
16809if ac_fn_c_try_link "$LINENO"
16810then :
16811  eval $cacheid=yes
16812else $as_nop
16813  eval $cacheid=no
16814fi
16815rm -f core conftest.err conftest.$ac_objext conftest.beam \
16816    conftest$ac_exeext conftest.$ac_ext
16817fi
16818
16819
16820		CFLAGS="$xorg_testset_save_CFLAGS"
16821
16822		eval supported=\$$cacheid
16823		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16824printf "%s\n" "$supported" >&6; }
16825		if test "$supported" = "yes" ; then
16826			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16827			found="yes"
16828		fi
16829	fi
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845xorg_testset_save_CFLAGS="$CFLAGS"
16846
16847if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16848	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16849	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16850printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16851if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16852then :
16853  printf %s "(cached) " >&6
16854else $as_nop
16855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16856/* end confdefs.h.  */
16857int i;
16858_ACEOF
16859if ac_fn_c_try_compile "$LINENO"
16860then :
16861  xorg_cv_cc_flag_unknown_warning_option=yes
16862else $as_nop
16863  xorg_cv_cc_flag_unknown_warning_option=no
16864fi
16865rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16866fi
16867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16868printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16869	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16870	CFLAGS="$xorg_testset_save_CFLAGS"
16871fi
16872
16873if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16874	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16875		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16876	fi
16877	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16878	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16879printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16880if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16881then :
16882  printf %s "(cached) " >&6
16883else $as_nop
16884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16885/* end confdefs.h.  */
16886int i;
16887_ACEOF
16888if ac_fn_c_try_compile "$LINENO"
16889then :
16890  xorg_cv_cc_flag_unused_command_line_argument=yes
16891else $as_nop
16892  xorg_cv_cc_flag_unused_command_line_argument=no
16893fi
16894rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16895fi
16896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16897printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16898	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16899	CFLAGS="$xorg_testset_save_CFLAGS"
16900fi
16901
16902found="no"
16903
16904	if test $found = "no" ; then
16905		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16906			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16907		fi
16908
16909		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16910			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16911		fi
16912
16913		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16914
16915		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16916printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16917		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16918		if eval test \${$cacheid+y}
16919then :
16920  printf %s "(cached) " >&6
16921else $as_nop
16922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16923/* end confdefs.h.  */
16924int i;
16925int
16926main (void)
16927{
16928
16929  ;
16930  return 0;
16931}
16932_ACEOF
16933if ac_fn_c_try_link "$LINENO"
16934then :
16935  eval $cacheid=yes
16936else $as_nop
16937  eval $cacheid=no
16938fi
16939rm -f core conftest.err conftest.$ac_objext conftest.beam \
16940    conftest$ac_exeext conftest.$ac_ext
16941fi
16942
16943
16944		CFLAGS="$xorg_testset_save_CFLAGS"
16945
16946		eval supported=\$$cacheid
16947		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16948printf "%s\n" "$supported" >&6; }
16949		if test "$supported" = "yes" ; then
16950			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16951			found="yes"
16952		fi
16953	fi
16954
16955 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16956else
16957{ 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
16958printf "%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;}
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972xorg_testset_save_CFLAGS="$CFLAGS"
16973
16974if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16975	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16976	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16977printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16978if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16979then :
16980  printf %s "(cached) " >&6
16981else $as_nop
16982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16983/* end confdefs.h.  */
16984int i;
16985_ACEOF
16986if ac_fn_c_try_compile "$LINENO"
16987then :
16988  xorg_cv_cc_flag_unknown_warning_option=yes
16989else $as_nop
16990  xorg_cv_cc_flag_unknown_warning_option=no
16991fi
16992rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16993fi
16994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16995printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16996	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16997	CFLAGS="$xorg_testset_save_CFLAGS"
16998fi
16999
17000if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17001	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17002		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17003	fi
17004	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17005	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17006printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17007if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17008then :
17009  printf %s "(cached) " >&6
17010else $as_nop
17011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17012/* end confdefs.h.  */
17013int i;
17014_ACEOF
17015if ac_fn_c_try_compile "$LINENO"
17016then :
17017  xorg_cv_cc_flag_unused_command_line_argument=yes
17018else $as_nop
17019  xorg_cv_cc_flag_unused_command_line_argument=no
17020fi
17021rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17022fi
17023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17024printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17025	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17026	CFLAGS="$xorg_testset_save_CFLAGS"
17027fi
17028
17029found="no"
17030
17031	if test $found = "no" ; then
17032		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17033			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17034		fi
17035
17036		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17037			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17038		fi
17039
17040		CFLAGS="$CFLAGS -Wimplicit"
17041
17042		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17043printf %s "checking if $CC supports -Wimplicit... " >&6; }
17044		cacheid=xorg_cv_cc_flag__Wimplicit
17045		if eval test \${$cacheid+y}
17046then :
17047  printf %s "(cached) " >&6
17048else $as_nop
17049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17050/* end confdefs.h.  */
17051int i;
17052int
17053main (void)
17054{
17055
17056  ;
17057  return 0;
17058}
17059_ACEOF
17060if ac_fn_c_try_link "$LINENO"
17061then :
17062  eval $cacheid=yes
17063else $as_nop
17064  eval $cacheid=no
17065fi
17066rm -f core conftest.err conftest.$ac_objext conftest.beam \
17067    conftest$ac_exeext conftest.$ac_ext
17068fi
17069
17070
17071		CFLAGS="$xorg_testset_save_CFLAGS"
17072
17073		eval supported=\$$cacheid
17074		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17075printf "%s\n" "$supported" >&6; }
17076		if test "$supported" = "yes" ; then
17077			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17078			found="yes"
17079		fi
17080	fi
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096xorg_testset_save_CFLAGS="$CFLAGS"
17097
17098if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17099	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17100	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17101printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17102if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17103then :
17104  printf %s "(cached) " >&6
17105else $as_nop
17106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17107/* end confdefs.h.  */
17108int i;
17109_ACEOF
17110if ac_fn_c_try_compile "$LINENO"
17111then :
17112  xorg_cv_cc_flag_unknown_warning_option=yes
17113else $as_nop
17114  xorg_cv_cc_flag_unknown_warning_option=no
17115fi
17116rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17117fi
17118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17119printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17120	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17121	CFLAGS="$xorg_testset_save_CFLAGS"
17122fi
17123
17124if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17125	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17126		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17127	fi
17128	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17129	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17130printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17131if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17132then :
17133  printf %s "(cached) " >&6
17134else $as_nop
17135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17136/* end confdefs.h.  */
17137int i;
17138_ACEOF
17139if ac_fn_c_try_compile "$LINENO"
17140then :
17141  xorg_cv_cc_flag_unused_command_line_argument=yes
17142else $as_nop
17143  xorg_cv_cc_flag_unused_command_line_argument=no
17144fi
17145rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17146fi
17147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17148printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17149	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17150	CFLAGS="$xorg_testset_save_CFLAGS"
17151fi
17152
17153found="no"
17154
17155	if test $found = "no" ; then
17156		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17157			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17158		fi
17159
17160		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17161			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17162		fi
17163
17164		CFLAGS="$CFLAGS -Wnonnull"
17165
17166		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17167printf %s "checking if $CC supports -Wnonnull... " >&6; }
17168		cacheid=xorg_cv_cc_flag__Wnonnull
17169		if eval test \${$cacheid+y}
17170then :
17171  printf %s "(cached) " >&6
17172else $as_nop
17173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17174/* end confdefs.h.  */
17175int i;
17176int
17177main (void)
17178{
17179
17180  ;
17181  return 0;
17182}
17183_ACEOF
17184if ac_fn_c_try_link "$LINENO"
17185then :
17186  eval $cacheid=yes
17187else $as_nop
17188  eval $cacheid=no
17189fi
17190rm -f core conftest.err conftest.$ac_objext conftest.beam \
17191    conftest$ac_exeext conftest.$ac_ext
17192fi
17193
17194
17195		CFLAGS="$xorg_testset_save_CFLAGS"
17196
17197		eval supported=\$$cacheid
17198		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17199printf "%s\n" "$supported" >&6; }
17200		if test "$supported" = "yes" ; then
17201			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17202			found="yes"
17203		fi
17204	fi
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220xorg_testset_save_CFLAGS="$CFLAGS"
17221
17222if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17223	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17224	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17225printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17226if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17227then :
17228  printf %s "(cached) " >&6
17229else $as_nop
17230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17231/* end confdefs.h.  */
17232int i;
17233_ACEOF
17234if ac_fn_c_try_compile "$LINENO"
17235then :
17236  xorg_cv_cc_flag_unknown_warning_option=yes
17237else $as_nop
17238  xorg_cv_cc_flag_unknown_warning_option=no
17239fi
17240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17241fi
17242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17243printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17244	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17245	CFLAGS="$xorg_testset_save_CFLAGS"
17246fi
17247
17248if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17249	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17250		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17251	fi
17252	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17253	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17254printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17255if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17256then :
17257  printf %s "(cached) " >&6
17258else $as_nop
17259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17260/* end confdefs.h.  */
17261int i;
17262_ACEOF
17263if ac_fn_c_try_compile "$LINENO"
17264then :
17265  xorg_cv_cc_flag_unused_command_line_argument=yes
17266else $as_nop
17267  xorg_cv_cc_flag_unused_command_line_argument=no
17268fi
17269rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17270fi
17271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17272printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17273	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17274	CFLAGS="$xorg_testset_save_CFLAGS"
17275fi
17276
17277found="no"
17278
17279	if test $found = "no" ; then
17280		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17281			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17282		fi
17283
17284		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17285			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17286		fi
17287
17288		CFLAGS="$CFLAGS -Winit-self"
17289
17290		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17291printf %s "checking if $CC supports -Winit-self... " >&6; }
17292		cacheid=xorg_cv_cc_flag__Winit_self
17293		if eval test \${$cacheid+y}
17294then :
17295  printf %s "(cached) " >&6
17296else $as_nop
17297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17298/* end confdefs.h.  */
17299int i;
17300int
17301main (void)
17302{
17303
17304  ;
17305  return 0;
17306}
17307_ACEOF
17308if ac_fn_c_try_link "$LINENO"
17309then :
17310  eval $cacheid=yes
17311else $as_nop
17312  eval $cacheid=no
17313fi
17314rm -f core conftest.err conftest.$ac_objext conftest.beam \
17315    conftest$ac_exeext conftest.$ac_ext
17316fi
17317
17318
17319		CFLAGS="$xorg_testset_save_CFLAGS"
17320
17321		eval supported=\$$cacheid
17322		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17323printf "%s\n" "$supported" >&6; }
17324		if test "$supported" = "yes" ; then
17325			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17326			found="yes"
17327		fi
17328	fi
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344xorg_testset_save_CFLAGS="$CFLAGS"
17345
17346if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17347	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17348	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17349printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17350if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17351then :
17352  printf %s "(cached) " >&6
17353else $as_nop
17354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17355/* end confdefs.h.  */
17356int i;
17357_ACEOF
17358if ac_fn_c_try_compile "$LINENO"
17359then :
17360  xorg_cv_cc_flag_unknown_warning_option=yes
17361else $as_nop
17362  xorg_cv_cc_flag_unknown_warning_option=no
17363fi
17364rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17365fi
17366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17367printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17368	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17369	CFLAGS="$xorg_testset_save_CFLAGS"
17370fi
17371
17372if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17373	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17374		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17375	fi
17376	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17377	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17378printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17379if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17380then :
17381  printf %s "(cached) " >&6
17382else $as_nop
17383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17384/* end confdefs.h.  */
17385int i;
17386_ACEOF
17387if ac_fn_c_try_compile "$LINENO"
17388then :
17389  xorg_cv_cc_flag_unused_command_line_argument=yes
17390else $as_nop
17391  xorg_cv_cc_flag_unused_command_line_argument=no
17392fi
17393rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17394fi
17395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17396printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17397	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17398	CFLAGS="$xorg_testset_save_CFLAGS"
17399fi
17400
17401found="no"
17402
17403	if test $found = "no" ; then
17404		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17405			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17406		fi
17407
17408		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17409			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17410		fi
17411
17412		CFLAGS="$CFLAGS -Wmain"
17413
17414		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17415printf %s "checking if $CC supports -Wmain... " >&6; }
17416		cacheid=xorg_cv_cc_flag__Wmain
17417		if eval test \${$cacheid+y}
17418then :
17419  printf %s "(cached) " >&6
17420else $as_nop
17421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17422/* end confdefs.h.  */
17423int i;
17424int
17425main (void)
17426{
17427
17428  ;
17429  return 0;
17430}
17431_ACEOF
17432if ac_fn_c_try_link "$LINENO"
17433then :
17434  eval $cacheid=yes
17435else $as_nop
17436  eval $cacheid=no
17437fi
17438rm -f core conftest.err conftest.$ac_objext conftest.beam \
17439    conftest$ac_exeext conftest.$ac_ext
17440fi
17441
17442
17443		CFLAGS="$xorg_testset_save_CFLAGS"
17444
17445		eval supported=\$$cacheid
17446		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17447printf "%s\n" "$supported" >&6; }
17448		if test "$supported" = "yes" ; then
17449			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17450			found="yes"
17451		fi
17452	fi
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468xorg_testset_save_CFLAGS="$CFLAGS"
17469
17470if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17471	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17472	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17473printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17474if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17475then :
17476  printf %s "(cached) " >&6
17477else $as_nop
17478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17479/* end confdefs.h.  */
17480int i;
17481_ACEOF
17482if ac_fn_c_try_compile "$LINENO"
17483then :
17484  xorg_cv_cc_flag_unknown_warning_option=yes
17485else $as_nop
17486  xorg_cv_cc_flag_unknown_warning_option=no
17487fi
17488rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17489fi
17490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17491printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17492	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17493	CFLAGS="$xorg_testset_save_CFLAGS"
17494fi
17495
17496if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17497	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17498		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17499	fi
17500	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17501	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17502printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17503if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17504then :
17505  printf %s "(cached) " >&6
17506else $as_nop
17507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17508/* end confdefs.h.  */
17509int i;
17510_ACEOF
17511if ac_fn_c_try_compile "$LINENO"
17512then :
17513  xorg_cv_cc_flag_unused_command_line_argument=yes
17514else $as_nop
17515  xorg_cv_cc_flag_unused_command_line_argument=no
17516fi
17517rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17518fi
17519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17520printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17521	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17522	CFLAGS="$xorg_testset_save_CFLAGS"
17523fi
17524
17525found="no"
17526
17527	if test $found = "no" ; then
17528		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17529			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17530		fi
17531
17532		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17533			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17534		fi
17535
17536		CFLAGS="$CFLAGS -Wmissing-braces"
17537
17538		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17539printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17540		cacheid=xorg_cv_cc_flag__Wmissing_braces
17541		if eval test \${$cacheid+y}
17542then :
17543  printf %s "(cached) " >&6
17544else $as_nop
17545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17546/* end confdefs.h.  */
17547int i;
17548int
17549main (void)
17550{
17551
17552  ;
17553  return 0;
17554}
17555_ACEOF
17556if ac_fn_c_try_link "$LINENO"
17557then :
17558  eval $cacheid=yes
17559else $as_nop
17560  eval $cacheid=no
17561fi
17562rm -f core conftest.err conftest.$ac_objext conftest.beam \
17563    conftest$ac_exeext conftest.$ac_ext
17564fi
17565
17566
17567		CFLAGS="$xorg_testset_save_CFLAGS"
17568
17569		eval supported=\$$cacheid
17570		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17571printf "%s\n" "$supported" >&6; }
17572		if test "$supported" = "yes" ; then
17573			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17574			found="yes"
17575		fi
17576	fi
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592xorg_testset_save_CFLAGS="$CFLAGS"
17593
17594if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17595	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17596	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17597printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17598if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17599then :
17600  printf %s "(cached) " >&6
17601else $as_nop
17602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17603/* end confdefs.h.  */
17604int i;
17605_ACEOF
17606if ac_fn_c_try_compile "$LINENO"
17607then :
17608  xorg_cv_cc_flag_unknown_warning_option=yes
17609else $as_nop
17610  xorg_cv_cc_flag_unknown_warning_option=no
17611fi
17612rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17613fi
17614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17615printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17616	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17617	CFLAGS="$xorg_testset_save_CFLAGS"
17618fi
17619
17620if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17621	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17622		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17623	fi
17624	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17625	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17626printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17627if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17628then :
17629  printf %s "(cached) " >&6
17630else $as_nop
17631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17632/* end confdefs.h.  */
17633int i;
17634_ACEOF
17635if ac_fn_c_try_compile "$LINENO"
17636then :
17637  xorg_cv_cc_flag_unused_command_line_argument=yes
17638else $as_nop
17639  xorg_cv_cc_flag_unused_command_line_argument=no
17640fi
17641rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17642fi
17643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17644printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17645	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17646	CFLAGS="$xorg_testset_save_CFLAGS"
17647fi
17648
17649found="no"
17650
17651	if test $found = "no" ; then
17652		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17653			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17654		fi
17655
17656		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17657			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17658		fi
17659
17660		CFLAGS="$CFLAGS -Wsequence-point"
17661
17662		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17663printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17664		cacheid=xorg_cv_cc_flag__Wsequence_point
17665		if eval test \${$cacheid+y}
17666then :
17667  printf %s "(cached) " >&6
17668else $as_nop
17669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17670/* end confdefs.h.  */
17671int i;
17672int
17673main (void)
17674{
17675
17676  ;
17677  return 0;
17678}
17679_ACEOF
17680if ac_fn_c_try_link "$LINENO"
17681then :
17682  eval $cacheid=yes
17683else $as_nop
17684  eval $cacheid=no
17685fi
17686rm -f core conftest.err conftest.$ac_objext conftest.beam \
17687    conftest$ac_exeext conftest.$ac_ext
17688fi
17689
17690
17691		CFLAGS="$xorg_testset_save_CFLAGS"
17692
17693		eval supported=\$$cacheid
17694		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17695printf "%s\n" "$supported" >&6; }
17696		if test "$supported" = "yes" ; then
17697			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17698			found="yes"
17699		fi
17700	fi
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716xorg_testset_save_CFLAGS="$CFLAGS"
17717
17718if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17719	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17720	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17721printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17722if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17723then :
17724  printf %s "(cached) " >&6
17725else $as_nop
17726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17727/* end confdefs.h.  */
17728int i;
17729_ACEOF
17730if ac_fn_c_try_compile "$LINENO"
17731then :
17732  xorg_cv_cc_flag_unknown_warning_option=yes
17733else $as_nop
17734  xorg_cv_cc_flag_unknown_warning_option=no
17735fi
17736rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17737fi
17738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17739printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17740	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17741	CFLAGS="$xorg_testset_save_CFLAGS"
17742fi
17743
17744if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17745	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17746		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17747	fi
17748	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17749	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17750printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17751if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17752then :
17753  printf %s "(cached) " >&6
17754else $as_nop
17755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17756/* end confdefs.h.  */
17757int i;
17758_ACEOF
17759if ac_fn_c_try_compile "$LINENO"
17760then :
17761  xorg_cv_cc_flag_unused_command_line_argument=yes
17762else $as_nop
17763  xorg_cv_cc_flag_unused_command_line_argument=no
17764fi
17765rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17766fi
17767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17768printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17769	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17770	CFLAGS="$xorg_testset_save_CFLAGS"
17771fi
17772
17773found="no"
17774
17775	if test $found = "no" ; then
17776		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17777			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17778		fi
17779
17780		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17781			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17782		fi
17783
17784		CFLAGS="$CFLAGS -Wreturn-type"
17785
17786		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17787printf %s "checking if $CC supports -Wreturn-type... " >&6; }
17788		cacheid=xorg_cv_cc_flag__Wreturn_type
17789		if eval test \${$cacheid+y}
17790then :
17791  printf %s "(cached) " >&6
17792else $as_nop
17793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17794/* end confdefs.h.  */
17795int i;
17796int
17797main (void)
17798{
17799
17800  ;
17801  return 0;
17802}
17803_ACEOF
17804if ac_fn_c_try_link "$LINENO"
17805then :
17806  eval $cacheid=yes
17807else $as_nop
17808  eval $cacheid=no
17809fi
17810rm -f core conftest.err conftest.$ac_objext conftest.beam \
17811    conftest$ac_exeext conftest.$ac_ext
17812fi
17813
17814
17815		CFLAGS="$xorg_testset_save_CFLAGS"
17816
17817		eval supported=\$$cacheid
17818		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17819printf "%s\n" "$supported" >&6; }
17820		if test "$supported" = "yes" ; then
17821			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17822			found="yes"
17823		fi
17824	fi
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840xorg_testset_save_CFLAGS="$CFLAGS"
17841
17842if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17843	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17844	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17845printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17846if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17847then :
17848  printf %s "(cached) " >&6
17849else $as_nop
17850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17851/* end confdefs.h.  */
17852int i;
17853_ACEOF
17854if ac_fn_c_try_compile "$LINENO"
17855then :
17856  xorg_cv_cc_flag_unknown_warning_option=yes
17857else $as_nop
17858  xorg_cv_cc_flag_unknown_warning_option=no
17859fi
17860rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17861fi
17862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17863printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17864	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17865	CFLAGS="$xorg_testset_save_CFLAGS"
17866fi
17867
17868if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17869	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17870		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17871	fi
17872	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17873	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17874printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17875if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17876then :
17877  printf %s "(cached) " >&6
17878else $as_nop
17879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17880/* end confdefs.h.  */
17881int i;
17882_ACEOF
17883if ac_fn_c_try_compile "$LINENO"
17884then :
17885  xorg_cv_cc_flag_unused_command_line_argument=yes
17886else $as_nop
17887  xorg_cv_cc_flag_unused_command_line_argument=no
17888fi
17889rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17890fi
17891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17892printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17893	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17894	CFLAGS="$xorg_testset_save_CFLAGS"
17895fi
17896
17897found="no"
17898
17899	if test $found = "no" ; then
17900		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17901			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17902		fi
17903
17904		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17905			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17906		fi
17907
17908		CFLAGS="$CFLAGS -Wtrigraphs"
17909
17910		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17911printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
17912		cacheid=xorg_cv_cc_flag__Wtrigraphs
17913		if eval test \${$cacheid+y}
17914then :
17915  printf %s "(cached) " >&6
17916else $as_nop
17917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17918/* end confdefs.h.  */
17919int i;
17920int
17921main (void)
17922{
17923
17924  ;
17925  return 0;
17926}
17927_ACEOF
17928if ac_fn_c_try_link "$LINENO"
17929then :
17930  eval $cacheid=yes
17931else $as_nop
17932  eval $cacheid=no
17933fi
17934rm -f core conftest.err conftest.$ac_objext conftest.beam \
17935    conftest$ac_exeext conftest.$ac_ext
17936fi
17937
17938
17939		CFLAGS="$xorg_testset_save_CFLAGS"
17940
17941		eval supported=\$$cacheid
17942		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17943printf "%s\n" "$supported" >&6; }
17944		if test "$supported" = "yes" ; then
17945			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17946			found="yes"
17947		fi
17948	fi
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964xorg_testset_save_CFLAGS="$CFLAGS"
17965
17966if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17967	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17968	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17969printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17970if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17971then :
17972  printf %s "(cached) " >&6
17973else $as_nop
17974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17975/* end confdefs.h.  */
17976int i;
17977_ACEOF
17978if ac_fn_c_try_compile "$LINENO"
17979then :
17980  xorg_cv_cc_flag_unknown_warning_option=yes
17981else $as_nop
17982  xorg_cv_cc_flag_unknown_warning_option=no
17983fi
17984rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17985fi
17986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17987printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17988	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17989	CFLAGS="$xorg_testset_save_CFLAGS"
17990fi
17991
17992if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17993	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17994		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17995	fi
17996	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17997	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17998printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17999if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18000then :
18001  printf %s "(cached) " >&6
18002else $as_nop
18003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18004/* end confdefs.h.  */
18005int i;
18006_ACEOF
18007if ac_fn_c_try_compile "$LINENO"
18008then :
18009  xorg_cv_cc_flag_unused_command_line_argument=yes
18010else $as_nop
18011  xorg_cv_cc_flag_unused_command_line_argument=no
18012fi
18013rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18014fi
18015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18016printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18017	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18018	CFLAGS="$xorg_testset_save_CFLAGS"
18019fi
18020
18021found="no"
18022
18023	if test $found = "no" ; then
18024		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18025			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18026		fi
18027
18028		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18029			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18030		fi
18031
18032		CFLAGS="$CFLAGS -Warray-bounds"
18033
18034		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18035printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18036		cacheid=xorg_cv_cc_flag__Warray_bounds
18037		if eval test \${$cacheid+y}
18038then :
18039  printf %s "(cached) " >&6
18040else $as_nop
18041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18042/* end confdefs.h.  */
18043int i;
18044int
18045main (void)
18046{
18047
18048  ;
18049  return 0;
18050}
18051_ACEOF
18052if ac_fn_c_try_link "$LINENO"
18053then :
18054  eval $cacheid=yes
18055else $as_nop
18056  eval $cacheid=no
18057fi
18058rm -f core conftest.err conftest.$ac_objext conftest.beam \
18059    conftest$ac_exeext conftest.$ac_ext
18060fi
18061
18062
18063		CFLAGS="$xorg_testset_save_CFLAGS"
18064
18065		eval supported=\$$cacheid
18066		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18067printf "%s\n" "$supported" >&6; }
18068		if test "$supported" = "yes" ; then
18069			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18070			found="yes"
18071		fi
18072	fi
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088xorg_testset_save_CFLAGS="$CFLAGS"
18089
18090if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18091	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18092	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18093printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18094if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18095then :
18096  printf %s "(cached) " >&6
18097else $as_nop
18098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18099/* end confdefs.h.  */
18100int i;
18101_ACEOF
18102if ac_fn_c_try_compile "$LINENO"
18103then :
18104  xorg_cv_cc_flag_unknown_warning_option=yes
18105else $as_nop
18106  xorg_cv_cc_flag_unknown_warning_option=no
18107fi
18108rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18109fi
18110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18111printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18112	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18113	CFLAGS="$xorg_testset_save_CFLAGS"
18114fi
18115
18116if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18117	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18118		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18119	fi
18120	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18121	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18122printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18123if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18124then :
18125  printf %s "(cached) " >&6
18126else $as_nop
18127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18128/* end confdefs.h.  */
18129int i;
18130_ACEOF
18131if ac_fn_c_try_compile "$LINENO"
18132then :
18133  xorg_cv_cc_flag_unused_command_line_argument=yes
18134else $as_nop
18135  xorg_cv_cc_flag_unused_command_line_argument=no
18136fi
18137rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18138fi
18139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18140printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18141	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18142	CFLAGS="$xorg_testset_save_CFLAGS"
18143fi
18144
18145found="no"
18146
18147	if test $found = "no" ; then
18148		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18149			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18150		fi
18151
18152		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18153			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18154		fi
18155
18156		CFLAGS="$CFLAGS -Wwrite-strings"
18157
18158		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18159printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18160		cacheid=xorg_cv_cc_flag__Wwrite_strings
18161		if eval test \${$cacheid+y}
18162then :
18163  printf %s "(cached) " >&6
18164else $as_nop
18165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18166/* end confdefs.h.  */
18167int i;
18168int
18169main (void)
18170{
18171
18172  ;
18173  return 0;
18174}
18175_ACEOF
18176if ac_fn_c_try_link "$LINENO"
18177then :
18178  eval $cacheid=yes
18179else $as_nop
18180  eval $cacheid=no
18181fi
18182rm -f core conftest.err conftest.$ac_objext conftest.beam \
18183    conftest$ac_exeext conftest.$ac_ext
18184fi
18185
18186
18187		CFLAGS="$xorg_testset_save_CFLAGS"
18188
18189		eval supported=\$$cacheid
18190		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18191printf "%s\n" "$supported" >&6; }
18192		if test "$supported" = "yes" ; then
18193			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18194			found="yes"
18195		fi
18196	fi
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212xorg_testset_save_CFLAGS="$CFLAGS"
18213
18214if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18215	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18216	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18217printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18218if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18219then :
18220  printf %s "(cached) " >&6
18221else $as_nop
18222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18223/* end confdefs.h.  */
18224int i;
18225_ACEOF
18226if ac_fn_c_try_compile "$LINENO"
18227then :
18228  xorg_cv_cc_flag_unknown_warning_option=yes
18229else $as_nop
18230  xorg_cv_cc_flag_unknown_warning_option=no
18231fi
18232rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18233fi
18234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18235printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18236	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18237	CFLAGS="$xorg_testset_save_CFLAGS"
18238fi
18239
18240if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18241	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18242		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18243	fi
18244	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18245	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18246printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18247if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18248then :
18249  printf %s "(cached) " >&6
18250else $as_nop
18251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18252/* end confdefs.h.  */
18253int i;
18254_ACEOF
18255if ac_fn_c_try_compile "$LINENO"
18256then :
18257  xorg_cv_cc_flag_unused_command_line_argument=yes
18258else $as_nop
18259  xorg_cv_cc_flag_unused_command_line_argument=no
18260fi
18261rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18262fi
18263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18264printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18265	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18266	CFLAGS="$xorg_testset_save_CFLAGS"
18267fi
18268
18269found="no"
18270
18271	if test $found = "no" ; then
18272		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18273			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18274		fi
18275
18276		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18277			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18278		fi
18279
18280		CFLAGS="$CFLAGS -Waddress"
18281
18282		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18283printf %s "checking if $CC supports -Waddress... " >&6; }
18284		cacheid=xorg_cv_cc_flag__Waddress
18285		if eval test \${$cacheid+y}
18286then :
18287  printf %s "(cached) " >&6
18288else $as_nop
18289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18290/* end confdefs.h.  */
18291int i;
18292int
18293main (void)
18294{
18295
18296  ;
18297  return 0;
18298}
18299_ACEOF
18300if ac_fn_c_try_link "$LINENO"
18301then :
18302  eval $cacheid=yes
18303else $as_nop
18304  eval $cacheid=no
18305fi
18306rm -f core conftest.err conftest.$ac_objext conftest.beam \
18307    conftest$ac_exeext conftest.$ac_ext
18308fi
18309
18310
18311		CFLAGS="$xorg_testset_save_CFLAGS"
18312
18313		eval supported=\$$cacheid
18314		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18315printf "%s\n" "$supported" >&6; }
18316		if test "$supported" = "yes" ; then
18317			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18318			found="yes"
18319		fi
18320	fi
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336xorg_testset_save_CFLAGS="$CFLAGS"
18337
18338if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18339	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18340	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18341printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18342if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18343then :
18344  printf %s "(cached) " >&6
18345else $as_nop
18346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18347/* end confdefs.h.  */
18348int i;
18349_ACEOF
18350if ac_fn_c_try_compile "$LINENO"
18351then :
18352  xorg_cv_cc_flag_unknown_warning_option=yes
18353else $as_nop
18354  xorg_cv_cc_flag_unknown_warning_option=no
18355fi
18356rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18357fi
18358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18359printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18360	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18361	CFLAGS="$xorg_testset_save_CFLAGS"
18362fi
18363
18364if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18365	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18366		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18367	fi
18368	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18369	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18370printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18371if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18372then :
18373  printf %s "(cached) " >&6
18374else $as_nop
18375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18376/* end confdefs.h.  */
18377int i;
18378_ACEOF
18379if ac_fn_c_try_compile "$LINENO"
18380then :
18381  xorg_cv_cc_flag_unused_command_line_argument=yes
18382else $as_nop
18383  xorg_cv_cc_flag_unused_command_line_argument=no
18384fi
18385rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18386fi
18387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18388printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18389	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18390	CFLAGS="$xorg_testset_save_CFLAGS"
18391fi
18392
18393found="no"
18394
18395	if test $found = "no" ; then
18396		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18397			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18398		fi
18399
18400		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18401			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18402		fi
18403
18404		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18405
18406		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18407printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18408		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18409		if eval test \${$cacheid+y}
18410then :
18411  printf %s "(cached) " >&6
18412else $as_nop
18413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18414/* end confdefs.h.  */
18415int i;
18416int
18417main (void)
18418{
18419
18420  ;
18421  return 0;
18422}
18423_ACEOF
18424if ac_fn_c_try_link "$LINENO"
18425then :
18426  eval $cacheid=yes
18427else $as_nop
18428  eval $cacheid=no
18429fi
18430rm -f core conftest.err conftest.$ac_objext conftest.beam \
18431    conftest$ac_exeext conftest.$ac_ext
18432fi
18433
18434
18435		CFLAGS="$xorg_testset_save_CFLAGS"
18436
18437		eval supported=\$$cacheid
18438		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18439printf "%s\n" "$supported" >&6; }
18440		if test "$supported" = "yes" ; then
18441			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18442			found="yes"
18443		fi
18444	fi
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460xorg_testset_save_CFLAGS="$CFLAGS"
18461
18462if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18463	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18464	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18465printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18466if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18467then :
18468  printf %s "(cached) " >&6
18469else $as_nop
18470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18471/* end confdefs.h.  */
18472int i;
18473_ACEOF
18474if ac_fn_c_try_compile "$LINENO"
18475then :
18476  xorg_cv_cc_flag_unknown_warning_option=yes
18477else $as_nop
18478  xorg_cv_cc_flag_unknown_warning_option=no
18479fi
18480rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18481fi
18482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18483printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18484	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18485	CFLAGS="$xorg_testset_save_CFLAGS"
18486fi
18487
18488if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18489	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18490		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18491	fi
18492	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18493	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18494printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18495if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18496then :
18497  printf %s "(cached) " >&6
18498else $as_nop
18499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18500/* end confdefs.h.  */
18501int i;
18502_ACEOF
18503if ac_fn_c_try_compile "$LINENO"
18504then :
18505  xorg_cv_cc_flag_unused_command_line_argument=yes
18506else $as_nop
18507  xorg_cv_cc_flag_unused_command_line_argument=no
18508fi
18509rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18510fi
18511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18512printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18513	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18514	CFLAGS="$xorg_testset_save_CFLAGS"
18515fi
18516
18517found="no"
18518
18519	if test $found = "no" ; then
18520		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18521			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18522		fi
18523
18524		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18525			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18526		fi
18527
18528		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18529
18530		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18531printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18532		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18533		if eval test \${$cacheid+y}
18534then :
18535  printf %s "(cached) " >&6
18536else $as_nop
18537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18538/* end confdefs.h.  */
18539int i;
18540int
18541main (void)
18542{
18543
18544  ;
18545  return 0;
18546}
18547_ACEOF
18548if ac_fn_c_try_link "$LINENO"
18549then :
18550  eval $cacheid=yes
18551else $as_nop
18552  eval $cacheid=no
18553fi
18554rm -f core conftest.err conftest.$ac_objext conftest.beam \
18555    conftest$ac_exeext conftest.$ac_ext
18556fi
18557
18558
18559		CFLAGS="$xorg_testset_save_CFLAGS"
18560
18561		eval supported=\$$cacheid
18562		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18563printf "%s\n" "$supported" >&6; }
18564		if test "$supported" = "yes" ; then
18565			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18566			found="yes"
18567		fi
18568	fi
18569
18570
18571fi
18572
18573
18574
18575
18576
18577
18578
18579		CWARNFLAGS="$BASE_CFLAGS"
18580		if  test "x$GCC" = xyes ; then
18581		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18582		fi
18583
18584
18585
18586
18587
18588
18589
18590
18591# Check whether --enable-strict-compilation was given.
18592if test ${enable_strict_compilation+y}
18593then :
18594  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18595else $as_nop
18596  STRICT_COMPILE=no
18597fi
18598
18599
18600
18601
18602
18603
18604STRICT_CFLAGS=""
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618xorg_testset_save_CFLAGS="$CFLAGS"
18619
18620if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18621	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18622	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18623printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18624if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18625then :
18626  printf %s "(cached) " >&6
18627else $as_nop
18628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18629/* end confdefs.h.  */
18630int i;
18631_ACEOF
18632if ac_fn_c_try_compile "$LINENO"
18633then :
18634  xorg_cv_cc_flag_unknown_warning_option=yes
18635else $as_nop
18636  xorg_cv_cc_flag_unknown_warning_option=no
18637fi
18638rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18639fi
18640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18641printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18642	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18643	CFLAGS="$xorg_testset_save_CFLAGS"
18644fi
18645
18646if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18647	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18648		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18649	fi
18650	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18651	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18652printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18653if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18654then :
18655  printf %s "(cached) " >&6
18656else $as_nop
18657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18658/* end confdefs.h.  */
18659int i;
18660_ACEOF
18661if ac_fn_c_try_compile "$LINENO"
18662then :
18663  xorg_cv_cc_flag_unused_command_line_argument=yes
18664else $as_nop
18665  xorg_cv_cc_flag_unused_command_line_argument=no
18666fi
18667rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18668fi
18669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18670printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18671	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18672	CFLAGS="$xorg_testset_save_CFLAGS"
18673fi
18674
18675found="no"
18676
18677	if test $found = "no" ; then
18678		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18679			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18680		fi
18681
18682		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18683			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18684		fi
18685
18686		CFLAGS="$CFLAGS -pedantic"
18687
18688		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18689printf %s "checking if $CC supports -pedantic... " >&6; }
18690		cacheid=xorg_cv_cc_flag__pedantic
18691		if eval test \${$cacheid+y}
18692then :
18693  printf %s "(cached) " >&6
18694else $as_nop
18695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18696/* end confdefs.h.  */
18697int i;
18698int
18699main (void)
18700{
18701
18702  ;
18703  return 0;
18704}
18705_ACEOF
18706if ac_fn_c_try_link "$LINENO"
18707then :
18708  eval $cacheid=yes
18709else $as_nop
18710  eval $cacheid=no
18711fi
18712rm -f core conftest.err conftest.$ac_objext conftest.beam \
18713    conftest$ac_exeext conftest.$ac_ext
18714fi
18715
18716
18717		CFLAGS="$xorg_testset_save_CFLAGS"
18718
18719		eval supported=\$$cacheid
18720		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18721printf "%s\n" "$supported" >&6; }
18722		if test "$supported" = "yes" ; then
18723			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18724			found="yes"
18725		fi
18726	fi
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742xorg_testset_save_CFLAGS="$CFLAGS"
18743
18744if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18745	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18746	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18747printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18748if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18749then :
18750  printf %s "(cached) " >&6
18751else $as_nop
18752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18753/* end confdefs.h.  */
18754int i;
18755_ACEOF
18756if ac_fn_c_try_compile "$LINENO"
18757then :
18758  xorg_cv_cc_flag_unknown_warning_option=yes
18759else $as_nop
18760  xorg_cv_cc_flag_unknown_warning_option=no
18761fi
18762rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18763fi
18764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18765printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18766	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18767	CFLAGS="$xorg_testset_save_CFLAGS"
18768fi
18769
18770if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18771	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18772		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18773	fi
18774	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18775	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18776printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18777if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18778then :
18779  printf %s "(cached) " >&6
18780else $as_nop
18781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18782/* end confdefs.h.  */
18783int i;
18784_ACEOF
18785if ac_fn_c_try_compile "$LINENO"
18786then :
18787  xorg_cv_cc_flag_unused_command_line_argument=yes
18788else $as_nop
18789  xorg_cv_cc_flag_unused_command_line_argument=no
18790fi
18791rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18792fi
18793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18794printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18795	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18796	CFLAGS="$xorg_testset_save_CFLAGS"
18797fi
18798
18799found="no"
18800
18801	if test $found = "no" ; then
18802		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18803			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18804		fi
18805
18806		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18807			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18808		fi
18809
18810		CFLAGS="$CFLAGS -Werror"
18811
18812		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18813printf %s "checking if $CC supports -Werror... " >&6; }
18814		cacheid=xorg_cv_cc_flag__Werror
18815		if eval test \${$cacheid+y}
18816then :
18817  printf %s "(cached) " >&6
18818else $as_nop
18819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18820/* end confdefs.h.  */
18821int i;
18822int
18823main (void)
18824{
18825
18826  ;
18827  return 0;
18828}
18829_ACEOF
18830if ac_fn_c_try_link "$LINENO"
18831then :
18832  eval $cacheid=yes
18833else $as_nop
18834  eval $cacheid=no
18835fi
18836rm -f core conftest.err conftest.$ac_objext conftest.beam \
18837    conftest$ac_exeext conftest.$ac_ext
18838fi
18839
18840
18841		CFLAGS="$xorg_testset_save_CFLAGS"
18842
18843		eval supported=\$$cacheid
18844		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18845printf "%s\n" "$supported" >&6; }
18846		if test "$supported" = "yes" ; then
18847			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18848			found="yes"
18849		fi
18850	fi
18851
18852	if test $found = "no" ; then
18853		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18854			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18855		fi
18856
18857		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18858			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18859		fi
18860
18861		CFLAGS="$CFLAGS -errwarn"
18862
18863		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18864printf %s "checking if $CC supports -errwarn... " >&6; }
18865		cacheid=xorg_cv_cc_flag__errwarn
18866		if eval test \${$cacheid+y}
18867then :
18868  printf %s "(cached) " >&6
18869else $as_nop
18870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18871/* end confdefs.h.  */
18872int i;
18873int
18874main (void)
18875{
18876
18877  ;
18878  return 0;
18879}
18880_ACEOF
18881if ac_fn_c_try_link "$LINENO"
18882then :
18883  eval $cacheid=yes
18884else $as_nop
18885  eval $cacheid=no
18886fi
18887rm -f core conftest.err conftest.$ac_objext conftest.beam \
18888    conftest$ac_exeext conftest.$ac_ext
18889fi
18890
18891
18892		CFLAGS="$xorg_testset_save_CFLAGS"
18893
18894		eval supported=\$$cacheid
18895		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18896printf "%s\n" "$supported" >&6; }
18897		if test "$supported" = "yes" ; then
18898			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18899			found="yes"
18900		fi
18901	fi
18902
18903
18904
18905# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18906# activate it with -Werror, so we add it here explicitly.
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920xorg_testset_save_CFLAGS="$CFLAGS"
18921
18922if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18923	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18924	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18925printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18926if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18927then :
18928  printf %s "(cached) " >&6
18929else $as_nop
18930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18931/* end confdefs.h.  */
18932int i;
18933_ACEOF
18934if ac_fn_c_try_compile "$LINENO"
18935then :
18936  xorg_cv_cc_flag_unknown_warning_option=yes
18937else $as_nop
18938  xorg_cv_cc_flag_unknown_warning_option=no
18939fi
18940rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18941fi
18942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18943printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18944	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18945	CFLAGS="$xorg_testset_save_CFLAGS"
18946fi
18947
18948if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18949	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18950		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18951	fi
18952	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18953	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18954printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18955if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18956then :
18957  printf %s "(cached) " >&6
18958else $as_nop
18959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18960/* end confdefs.h.  */
18961int i;
18962_ACEOF
18963if ac_fn_c_try_compile "$LINENO"
18964then :
18965  xorg_cv_cc_flag_unused_command_line_argument=yes
18966else $as_nop
18967  xorg_cv_cc_flag_unused_command_line_argument=no
18968fi
18969rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18970fi
18971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18972printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18973	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18974	CFLAGS="$xorg_testset_save_CFLAGS"
18975fi
18976
18977found="no"
18978
18979	if test $found = "no" ; then
18980		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18981			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18982		fi
18983
18984		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18985			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18986		fi
18987
18988		CFLAGS="$CFLAGS -Werror=attributes"
18989
18990		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18991printf %s "checking if $CC supports -Werror=attributes... " >&6; }
18992		cacheid=xorg_cv_cc_flag__Werror_attributes
18993		if eval test \${$cacheid+y}
18994then :
18995  printf %s "(cached) " >&6
18996else $as_nop
18997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18998/* end confdefs.h.  */
18999int i;
19000int
19001main (void)
19002{
19003
19004  ;
19005  return 0;
19006}
19007_ACEOF
19008if ac_fn_c_try_link "$LINENO"
19009then :
19010  eval $cacheid=yes
19011else $as_nop
19012  eval $cacheid=no
19013fi
19014rm -f core conftest.err conftest.$ac_objext conftest.beam \
19015    conftest$ac_exeext conftest.$ac_ext
19016fi
19017
19018
19019		CFLAGS="$xorg_testset_save_CFLAGS"
19020
19021		eval supported=\$$cacheid
19022		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19023printf "%s\n" "$supported" >&6; }
19024		if test "$supported" = "yes" ; then
19025			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19026			found="yes"
19027		fi
19028	fi
19029
19030
19031
19032if test "x$STRICT_COMPILE" = "xyes"; then
19033    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19034    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19035fi
19036
19037
19038
19039
19040
19041
19042cat >>confdefs.h <<_ACEOF
19043#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19044_ACEOF
19045
19046	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19047	if test "x$PVM" = "x"; then
19048		PVM="0"
19049	fi
19050
19051printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19052
19053	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19054	if test "x$PVP" = "x"; then
19055		PVP="0"
19056	fi
19057
19058printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19059
19060
19061
19062CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19063mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19064|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19065touch \$(top_srcdir)/ChangeLog; \
19066echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19067
19068
19069
19070
19071macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19072INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19073mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19074|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19075touch \$(top_srcdir)/INSTALL; \
19076echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19077
19078
19079
19080
19081
19082
19083case $host_os in
19084    solaris*)
19085        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19086        # check for a man page file found in later versions that use
19087        # traditional section numbers instead
19088        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19089printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19090if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19091then :
19092  printf %s "(cached) " >&6
19093else $as_nop
19094  test "$cross_compiling" = yes &&
19095  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19096if test -r "/usr/share/man/man7/attributes.7"; then
19097  ac_cv_file__usr_share_man_man7_attributes_7=yes
19098else
19099  ac_cv_file__usr_share_man_man7_attributes_7=no
19100fi
19101fi
19102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19103printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19104if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19105then :
19106  SYSV_MAN_SECTIONS=false
19107else $as_nop
19108  SYSV_MAN_SECTIONS=true
19109fi
19110
19111        ;;
19112    *) SYSV_MAN_SECTIONS=false ;;
19113esac
19114
19115if test x$APP_MAN_SUFFIX = x    ; then
19116    APP_MAN_SUFFIX=1
19117fi
19118if test x$APP_MAN_DIR = x    ; then
19119    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19120fi
19121
19122if test x$LIB_MAN_SUFFIX = x    ; then
19123    LIB_MAN_SUFFIX=3
19124fi
19125if test x$LIB_MAN_DIR = x    ; then
19126    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19127fi
19128
19129if test x$FILE_MAN_SUFFIX = x    ; then
19130    case $SYSV_MAN_SECTIONS in
19131	true)				FILE_MAN_SUFFIX=4  ;;
19132	*)				FILE_MAN_SUFFIX=5  ;;
19133    esac
19134fi
19135if test x$FILE_MAN_DIR = x    ; then
19136    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19137fi
19138
19139if test x$MISC_MAN_SUFFIX = x    ; then
19140    case $SYSV_MAN_SECTIONS in
19141	true)				MISC_MAN_SUFFIX=5  ;;
19142	*)				MISC_MAN_SUFFIX=7  ;;
19143    esac
19144fi
19145if test x$MISC_MAN_DIR = x    ; then
19146    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19147fi
19148
19149if test x$DRIVER_MAN_SUFFIX = x    ; then
19150    case $SYSV_MAN_SECTIONS in
19151	true)				DRIVER_MAN_SUFFIX=7  ;;
19152	*)				DRIVER_MAN_SUFFIX=4  ;;
19153    esac
19154fi
19155if test x$DRIVER_MAN_DIR = x    ; then
19156    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19157fi
19158
19159if test x$ADMIN_MAN_SUFFIX = x    ; then
19160    case $SYSV_MAN_SECTIONS in
19161	true)				ADMIN_MAN_SUFFIX=1m ;;
19162	*)				ADMIN_MAN_SUFFIX=8  ;;
19163    esac
19164fi
19165if test x$ADMIN_MAN_DIR = x    ; then
19166    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19167fi
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183XORG_MAN_PAGE="X Version 11"
19184
19185MAN_SUBSTS="\
19186	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19187	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19188	-e 's|__xservername__|Xorg|g' \
19189	-e 's|__xconfigfile__|xorg.conf|g' \
19190	-e 's|__projectroot__|\$(prefix)|g' \
19191	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
19192	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19193	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19194	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19195	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19196	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19197	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19198
19199
19200
19201# Check whether --enable-silent-rules was given.
19202if test ${enable_silent_rules+y}
19203then :
19204  enableval=$enable_silent_rules;
19205fi
19206
19207case $enable_silent_rules in # (((
19208  yes) AM_DEFAULT_VERBOSITY=0;;
19209   no) AM_DEFAULT_VERBOSITY=1;;
19210    *) AM_DEFAULT_VERBOSITY=0;;
19211esac
19212am_make=${MAKE-make}
19213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19214printf %s "checking whether $am_make supports nested variables... " >&6; }
19215if test ${am_cv_make_support_nested_variables+y}
19216then :
19217  printf %s "(cached) " >&6
19218else $as_nop
19219  if printf "%s\n" 'TRUE=$(BAR$(V))
19220BAR0=false
19221BAR1=true
19222V=1
19223am__doit:
19224	@$(TRUE)
19225.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19226  am_cv_make_support_nested_variables=yes
19227else
19228  am_cv_make_support_nested_variables=no
19229fi
19230fi
19231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19232printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19233if test $am_cv_make_support_nested_variables = yes; then
19234    AM_V='$(V)'
19235  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19236else
19237  AM_V=$AM_DEFAULT_VERBOSITY
19238  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19239fi
19240AM_BACKSLASH='\'
19241
19242
19243
19244# Check whether --enable-malloc0returnsnull was given.
19245if test ${enable_malloc0returnsnull+y}
19246then :
19247  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
19248else $as_nop
19249  MALLOC_ZERO_RETURNS_NULL=auto
19250fi
19251
19252
19253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
19254printf %s "checking whether malloc(0) returns NULL... " >&6; }
19255if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
19256if test ${xorg_cv_malloc0_returns_null+y}
19257then :
19258  printf %s "(cached) " >&6
19259else $as_nop
19260  if test "$cross_compiling" = yes
19261then :
19262  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19263printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19264as_fn_error $? "cannot run test program while cross compiling
19265See \`config.log' for more details" "$LINENO" 5; }
19266else $as_nop
19267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19268/* end confdefs.h.  */
19269
19270#include <stdlib.h>
19271
19272int
19273main (void)
19274{
19275
19276    char *m0, *r0, *c0, *p;
19277    m0 = malloc(0);
19278    p = malloc(10);
19279    r0 = realloc(p,0);
19280    c0 = calloc(0,10);
19281    exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
19282
19283  ;
19284  return 0;
19285}
19286_ACEOF
19287if ac_fn_c_try_run "$LINENO"
19288then :
19289  xorg_cv_malloc0_returns_null=yes
19290else $as_nop
19291  xorg_cv_malloc0_returns_null=no
19292fi
19293rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19294  conftest.$ac_objext conftest.beam conftest.$ac_ext
19295fi
19296
19297fi
19298
19299MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
19300fi
19301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
19302printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; }
19303
19304if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
19305	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
19306	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
19307	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
19308else
19309	MALLOC_ZERO_CFLAGS=""
19310	XMALLOC_ZERO_CFLAGS=""
19311	XTMALLOC_ZERO_CFLAGS=""
19312fi
19313
19314
19315
19316
19317
19318
19319# Obtain compiler/linker options for dependencies
19320
19321pkg_failed=no
19322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRES" >&5
19323printf %s "checking for XRES... " >&6; }
19324
19325if test -n "$XRES_CFLAGS"; then
19326    pkg_cv_XRES_CFLAGS="$XRES_CFLAGS"
19327 elif test -n "$PKG_CONFIG"; then
19328    if test -n "$PKG_CONFIG" && \
19329    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xextproto resourceproto >= 1.2.0\""; } >&5
19330  ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xextproto resourceproto >= 1.2.0") 2>&5
19331  ac_status=$?
19332  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19333  test $ac_status = 0; }; then
19334  pkg_cv_XRES_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.6 xext xextproto resourceproto >= 1.2.0" 2>/dev/null`
19335		      test "x$?" != "x0" && pkg_failed=yes
19336else
19337  pkg_failed=yes
19338fi
19339 else
19340    pkg_failed=untried
19341fi
19342if test -n "$XRES_LIBS"; then
19343    pkg_cv_XRES_LIBS="$XRES_LIBS"
19344 elif test -n "$PKG_CONFIG"; then
19345    if test -n "$PKG_CONFIG" && \
19346    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xextproto resourceproto >= 1.2.0\""; } >&5
19347  ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xextproto resourceproto >= 1.2.0") 2>&5
19348  ac_status=$?
19349  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19350  test $ac_status = 0; }; then
19351  pkg_cv_XRES_LIBS=`$PKG_CONFIG --libs "x11 >= 1.6 xext xextproto resourceproto >= 1.2.0" 2>/dev/null`
19352		      test "x$?" != "x0" && pkg_failed=yes
19353else
19354  pkg_failed=yes
19355fi
19356 else
19357    pkg_failed=untried
19358fi
19359
19360
19361
19362if test $pkg_failed = yes; then
19363   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19364printf "%s\n" "no" >&6; }
19365
19366if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19367        _pkg_short_errors_supported=yes
19368else
19369        _pkg_short_errors_supported=no
19370fi
19371        if test $_pkg_short_errors_supported = yes; then
19372	        XRES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.6 xext xextproto resourceproto >= 1.2.0" 2>&1`
19373        else
19374	        XRES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.6 xext xextproto resourceproto >= 1.2.0" 2>&1`
19375        fi
19376	# Put the nasty error message in config.log where it belongs
19377	echo "$XRES_PKG_ERRORS" >&5
19378
19379	as_fn_error $? "Package requirements (x11 >= 1.6 xext xextproto resourceproto >= 1.2.0) were not met:
19380
19381$XRES_PKG_ERRORS
19382
19383Consider adjusting the PKG_CONFIG_PATH environment variable if you
19384installed software in a non-standard prefix.
19385
19386Alternatively, you may set the environment variables XRES_CFLAGS
19387and XRES_LIBS to avoid the need to call pkg-config.
19388See the pkg-config man page for more details." "$LINENO" 5
19389elif test $pkg_failed = untried; then
19390     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19391printf "%s\n" "no" >&6; }
19392	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19393printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19394as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19395is in your PATH or set the PKG_CONFIG environment variable to the full
19396path to pkg-config.
19397
19398Alternatively, you may set the environment variables XRES_CFLAGS
19399and XRES_LIBS to avoid the need to call pkg-config.
19400See the pkg-config man page for more details.
19401
19402To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19403See \`config.log' for more details" "$LINENO" 5; }
19404else
19405	XRES_CFLAGS=$pkg_cv_XRES_CFLAGS
19406	XRES_LIBS=$pkg_cv_XRES_LIBS
19407        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19408printf "%s\n" "yes" >&6; }
19409
19410fi
19411
19412ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xres.pc"
19413
19414cat >confcache <<\_ACEOF
19415# This file is a shell script that caches the results of configure
19416# tests run on this system so they can be shared between configure
19417# scripts and configure runs, see configure's option --config-cache.
19418# It is not useful on other systems.  If it contains results you don't
19419# want to keep, you may remove or edit it.
19420#
19421# config.status only pays attention to the cache file if you give it
19422# the --recheck option to rerun configure.
19423#
19424# `ac_cv_env_foo' variables (set or unset) will be overridden when
19425# loading this file, other *unset* `ac_cv_foo' will be assigned the
19426# following values.
19427
19428_ACEOF
19429
19430# The following way of writing the cache mishandles newlines in values,
19431# but we know of no workaround that is simple, portable, and efficient.
19432# So, we kill variables containing newlines.
19433# Ultrix sh set writes to stderr and can't be redirected directly,
19434# and sets the high bit in the cache file unless we assign to the vars.
19435(
19436  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19437    eval ac_val=\$$ac_var
19438    case $ac_val in #(
19439    *${as_nl}*)
19440      case $ac_var in #(
19441      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19442printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19443      esac
19444      case $ac_var in #(
19445      _ | IFS | as_nl) ;; #(
19446      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19447      *) { eval $ac_var=; unset $ac_var;} ;;
19448      esac ;;
19449    esac
19450  done
19451
19452  (set) 2>&1 |
19453    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19454    *${as_nl}ac_space=\ *)
19455      # `set' does not quote correctly, so add quotes: double-quote
19456      # substitution turns \\\\ into \\, and sed turns \\ into \.
19457      sed -n \
19458	"s/'/'\\\\''/g;
19459	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19460      ;; #(
19461    *)
19462      # `set' quotes correctly as required by POSIX, so do not add quotes.
19463      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19464      ;;
19465    esac |
19466    sort
19467) |
19468  sed '
19469     /^ac_cv_env_/b end
19470     t clear
19471     :clear
19472     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19473     t end
19474     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19475     :end' >>confcache
19476if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19477  if test -w "$cache_file"; then
19478    if test "x$cache_file" != "x/dev/null"; then
19479      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19480printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19481      if test ! -f "$cache_file" || test -h "$cache_file"; then
19482	cat confcache >"$cache_file"
19483      else
19484        case $cache_file in #(
19485        */* | ?:*)
19486	  mv -f confcache "$cache_file"$$ &&
19487	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19488        *)
19489	  mv -f confcache "$cache_file" ;;
19490	esac
19491      fi
19492    fi
19493  else
19494    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19495printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19496  fi
19497fi
19498rm -f confcache
19499
19500test "x$prefix" = xNONE && prefix=$ac_default_prefix
19501# Let make expand exec_prefix.
19502test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19503
19504DEFS=-DHAVE_CONFIG_H
19505
19506ac_libobjs=
19507ac_ltlibobjs=
19508U=
19509for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19510  # 1. Remove the extension, and $U if already installed.
19511  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19512  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19513  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19514  #    will be set to the directory where LIBOBJS objects are built.
19515  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19516  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19517done
19518LIBOBJS=$ac_libobjs
19519
19520LTLIBOBJS=$ac_ltlibobjs
19521
19522
19523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19524printf %s "checking that generated files are newer than configure... " >&6; }
19525   if test -n "$am_sleep_pid"; then
19526     # Hide warnings about reused PIDs.
19527     wait $am_sleep_pid 2>/dev/null
19528   fi
19529   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19530printf "%s\n" "done" >&6; }
19531 if test -n "$EXEEXT"; then
19532  am__EXEEXT_TRUE=
19533  am__EXEEXT_FALSE='#'
19534else
19535  am__EXEEXT_TRUE='#'
19536  am__EXEEXT_FALSE=
19537fi
19538
19539if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19540  as_fn_error $? "conditional \"AMDEP\" was never defined.
19541Usually this means the macro was only invoked conditionally." "$LINENO" 5
19542fi
19543if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19544  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19545Usually this means the macro was only invoked conditionally." "$LINENO" 5
19546fi
19547
19548: "${CONFIG_STATUS=./config.status}"
19549ac_write_fail=0
19550ac_clean_files_save=$ac_clean_files
19551ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19553printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19554as_write_fail=0
19555cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19556#! $SHELL
19557# Generated by $as_me.
19558# Run this file to recreate the current configuration.
19559# Compiler output produced by configure, useful for debugging
19560# configure, is in config.log if it exists.
19561
19562debug=false
19563ac_cs_recheck=false
19564ac_cs_silent=false
19565
19566SHELL=\${CONFIG_SHELL-$SHELL}
19567export SHELL
19568_ASEOF
19569cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19570## -------------------- ##
19571## M4sh Initialization. ##
19572## -------------------- ##
19573
19574# Be more Bourne compatible
19575DUALCASE=1; export DUALCASE # for MKS sh
19576as_nop=:
19577if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19578then :
19579  emulate sh
19580  NULLCMD=:
19581  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19582  # is contrary to our usage.  Disable this feature.
19583  alias -g '${1+"$@"}'='"$@"'
19584  setopt NO_GLOB_SUBST
19585else $as_nop
19586  case `(set -o) 2>/dev/null` in #(
19587  *posix*) :
19588    set -o posix ;; #(
19589  *) :
19590     ;;
19591esac
19592fi
19593
19594
19595
19596# Reset variables that may have inherited troublesome values from
19597# the environment.
19598
19599# IFS needs to be set, to space, tab, and newline, in precisely that order.
19600# (If _AS_PATH_WALK were called with IFS unset, it would have the
19601# side effect of setting IFS to empty, thus disabling word splitting.)
19602# Quoting is to prevent editors from complaining about space-tab.
19603as_nl='
19604'
19605export as_nl
19606IFS=" ""	$as_nl"
19607
19608PS1='$ '
19609PS2='> '
19610PS4='+ '
19611
19612# Ensure predictable behavior from utilities with locale-dependent output.
19613LC_ALL=C
19614export LC_ALL
19615LANGUAGE=C
19616export LANGUAGE
19617
19618# We cannot yet rely on "unset" to work, but we need these variables
19619# to be unset--not just set to an empty or harmless value--now, to
19620# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
19621# also avoids known problems related to "unset" and subshell syntax
19622# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19623for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19624do eval test \${$as_var+y} \
19625  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19626done
19627
19628# Ensure that fds 0, 1, and 2 are open.
19629if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19630if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19631if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
19632
19633# The user is always right.
19634if ${PATH_SEPARATOR+false} :; then
19635  PATH_SEPARATOR=:
19636  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19637    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19638      PATH_SEPARATOR=';'
19639  }
19640fi
19641
19642
19643# Find who we are.  Look in the path if we contain no directory separator.
19644as_myself=
19645case $0 in #((
19646  *[\\/]* ) as_myself=$0 ;;
19647  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19648for as_dir in $PATH
19649do
19650  IFS=$as_save_IFS
19651  case $as_dir in #(((
19652    '') as_dir=./ ;;
19653    */) ;;
19654    *) as_dir=$as_dir/ ;;
19655  esac
19656    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19657  done
19658IFS=$as_save_IFS
19659
19660     ;;
19661esac
19662# We did not find ourselves, most probably we were run as `sh COMMAND'
19663# in which case we are not to be found in the path.
19664if test "x$as_myself" = x; then
19665  as_myself=$0
19666fi
19667if test ! -f "$as_myself"; then
19668  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19669  exit 1
19670fi
19671
19672
19673
19674# as_fn_error STATUS ERROR [LINENO LOG_FD]
19675# ----------------------------------------
19676# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19677# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19678# script with STATUS, using 1 if that was 0.
19679as_fn_error ()
19680{
19681  as_status=$1; test $as_status -eq 0 && as_status=1
19682  if test "$4"; then
19683    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19684    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19685  fi
19686  printf "%s\n" "$as_me: error: $2" >&2
19687  as_fn_exit $as_status
19688} # as_fn_error
19689
19690
19691
19692# as_fn_set_status STATUS
19693# -----------------------
19694# Set $? to STATUS, without forking.
19695as_fn_set_status ()
19696{
19697  return $1
19698} # as_fn_set_status
19699
19700# as_fn_exit STATUS
19701# -----------------
19702# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19703as_fn_exit ()
19704{
19705  set +e
19706  as_fn_set_status $1
19707  exit $1
19708} # as_fn_exit
19709
19710# as_fn_unset VAR
19711# ---------------
19712# Portably unset VAR.
19713as_fn_unset ()
19714{
19715  { eval $1=; unset $1;}
19716}
19717as_unset=as_fn_unset
19718
19719# as_fn_append VAR VALUE
19720# ----------------------
19721# Append the text in VALUE to the end of the definition contained in VAR. Take
19722# advantage of any shell optimizations that allow amortized linear growth over
19723# repeated appends, instead of the typical quadratic growth present in naive
19724# implementations.
19725if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19726then :
19727  eval 'as_fn_append ()
19728  {
19729    eval $1+=\$2
19730  }'
19731else $as_nop
19732  as_fn_append ()
19733  {
19734    eval $1=\$$1\$2
19735  }
19736fi # as_fn_append
19737
19738# as_fn_arith ARG...
19739# ------------------
19740# Perform arithmetic evaluation on the ARGs, and store the result in the
19741# global $as_val. Take advantage of shells that can avoid forks. The arguments
19742# must be portable across $(()) and expr.
19743if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19744then :
19745  eval 'as_fn_arith ()
19746  {
19747    as_val=$(( $* ))
19748  }'
19749else $as_nop
19750  as_fn_arith ()
19751  {
19752    as_val=`expr "$@" || test $? -eq 1`
19753  }
19754fi # as_fn_arith
19755
19756
19757if expr a : '\(a\)' >/dev/null 2>&1 &&
19758   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19759  as_expr=expr
19760else
19761  as_expr=false
19762fi
19763
19764if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19765  as_basename=basename
19766else
19767  as_basename=false
19768fi
19769
19770if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19771  as_dirname=dirname
19772else
19773  as_dirname=false
19774fi
19775
19776as_me=`$as_basename -- "$0" ||
19777$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19778	 X"$0" : 'X\(//\)$' \| \
19779	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19780printf "%s\n" X/"$0" |
19781    sed '/^.*\/\([^/][^/]*\)\/*$/{
19782	    s//\1/
19783	    q
19784	  }
19785	  /^X\/\(\/\/\)$/{
19786	    s//\1/
19787	    q
19788	  }
19789	  /^X\/\(\/\).*/{
19790	    s//\1/
19791	    q
19792	  }
19793	  s/.*/./; q'`
19794
19795# Avoid depending upon Character Ranges.
19796as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19797as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19798as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19799as_cr_digits='0123456789'
19800as_cr_alnum=$as_cr_Letters$as_cr_digits
19801
19802
19803# Determine whether it's possible to make 'echo' print without a newline.
19804# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19805# for compatibility with existing Makefiles.
19806ECHO_C= ECHO_N= ECHO_T=
19807case `echo -n x` in #(((((
19808-n*)
19809  case `echo 'xy\c'` in
19810  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19811  xy)  ECHO_C='\c';;
19812  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19813       ECHO_T='	';;
19814  esac;;
19815*)
19816  ECHO_N='-n';;
19817esac
19818
19819# For backward compatibility with old third-party macros, we provide
19820# the shell variables $as_echo and $as_echo_n.  New code should use
19821# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19822as_echo='printf %s\n'
19823as_echo_n='printf %s'
19824
19825rm -f conf$$ conf$$.exe conf$$.file
19826if test -d conf$$.dir; then
19827  rm -f conf$$.dir/conf$$.file
19828else
19829  rm -f conf$$.dir
19830  mkdir conf$$.dir 2>/dev/null
19831fi
19832if (echo >conf$$.file) 2>/dev/null; then
19833  if ln -s conf$$.file conf$$ 2>/dev/null; then
19834    as_ln_s='ln -s'
19835    # ... but there are two gotchas:
19836    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19837    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19838    # In both cases, we have to default to `cp -pR'.
19839    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19840      as_ln_s='cp -pR'
19841  elif ln conf$$.file conf$$ 2>/dev/null; then
19842    as_ln_s=ln
19843  else
19844    as_ln_s='cp -pR'
19845  fi
19846else
19847  as_ln_s='cp -pR'
19848fi
19849rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19850rmdir conf$$.dir 2>/dev/null
19851
19852
19853# as_fn_mkdir_p
19854# -------------
19855# Create "$as_dir" as a directory, including parents if necessary.
19856as_fn_mkdir_p ()
19857{
19858
19859  case $as_dir in #(
19860  -*) as_dir=./$as_dir;;
19861  esac
19862  test -d "$as_dir" || eval $as_mkdir_p || {
19863    as_dirs=
19864    while :; do
19865      case $as_dir in #(
19866      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19867      *) as_qdir=$as_dir;;
19868      esac
19869      as_dirs="'$as_qdir' $as_dirs"
19870      as_dir=`$as_dirname -- "$as_dir" ||
19871$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19872	 X"$as_dir" : 'X\(//\)[^/]' \| \
19873	 X"$as_dir" : 'X\(//\)$' \| \
19874	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19875printf "%s\n" X"$as_dir" |
19876    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19877	    s//\1/
19878	    q
19879	  }
19880	  /^X\(\/\/\)[^/].*/{
19881	    s//\1/
19882	    q
19883	  }
19884	  /^X\(\/\/\)$/{
19885	    s//\1/
19886	    q
19887	  }
19888	  /^X\(\/\).*/{
19889	    s//\1/
19890	    q
19891	  }
19892	  s/.*/./; q'`
19893      test -d "$as_dir" && break
19894    done
19895    test -z "$as_dirs" || eval "mkdir $as_dirs"
19896  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19897
19898
19899} # as_fn_mkdir_p
19900if mkdir -p . 2>/dev/null; then
19901  as_mkdir_p='mkdir -p "$as_dir"'
19902else
19903  test -d ./-p && rmdir ./-p
19904  as_mkdir_p=false
19905fi
19906
19907
19908# as_fn_executable_p FILE
19909# -----------------------
19910# Test if FILE is an executable regular file.
19911as_fn_executable_p ()
19912{
19913  test -f "$1" && test -x "$1"
19914} # as_fn_executable_p
19915as_test_x='test -x'
19916as_executable_p=as_fn_executable_p
19917
19918# Sed expression to map a string onto a valid CPP name.
19919as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19920
19921# Sed expression to map a string onto a valid variable name.
19922as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19923
19924
19925exec 6>&1
19926## ----------------------------------- ##
19927## Main body of $CONFIG_STATUS script. ##
19928## ----------------------------------- ##
19929_ASEOF
19930test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19931
19932cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19933# Save the log message, to keep $0 and so on meaningful, and to
19934# report actual input values of CONFIG_FILES etc. instead of their
19935# values after options handling.
19936ac_log="
19937This file was extended by libXres $as_me 1.2.2, which was
19938generated by GNU Autoconf 2.71.  Invocation command line was
19939
19940  CONFIG_FILES    = $CONFIG_FILES
19941  CONFIG_HEADERS  = $CONFIG_HEADERS
19942  CONFIG_LINKS    = $CONFIG_LINKS
19943  CONFIG_COMMANDS = $CONFIG_COMMANDS
19944  $ $0 $@
19945
19946on `(hostname || uname -n) 2>/dev/null | sed 1q`
19947"
19948
19949_ACEOF
19950
19951case $ac_config_files in *"
19952"*) set x $ac_config_files; shift; ac_config_files=$*;;
19953esac
19954
19955case $ac_config_headers in *"
19956"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19957esac
19958
19959
19960cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19961# Files that config.status was made for.
19962config_files="$ac_config_files"
19963config_headers="$ac_config_headers"
19964config_commands="$ac_config_commands"
19965
19966_ACEOF
19967
19968cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19969ac_cs_usage="\
19970\`$as_me' instantiates files and other configuration actions
19971from templates according to the current configuration.  Unless the files
19972and actions are specified as TAGs, all are instantiated by default.
19973
19974Usage: $0 [OPTION]... [TAG]...
19975
19976  -h, --help       print this help, then exit
19977  -V, --version    print version number and configuration settings, then exit
19978      --config     print configuration, then exit
19979  -q, --quiet, --silent
19980                   do not print progress messages
19981  -d, --debug      don't remove temporary files
19982      --recheck    update $as_me by reconfiguring in the same conditions
19983      --file=FILE[:TEMPLATE]
19984                   instantiate the configuration file FILE
19985      --header=FILE[:TEMPLATE]
19986                   instantiate the configuration header FILE
19987
19988Configuration files:
19989$config_files
19990
19991Configuration headers:
19992$config_headers
19993
19994Configuration commands:
19995$config_commands
19996
19997Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxres/-/issues>."
19998
19999_ACEOF
20000ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20001ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20002cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20003ac_cs_config='$ac_cs_config_escaped'
20004ac_cs_version="\\
20005libXres config.status 1.2.2
20006configured by $0, generated by GNU Autoconf 2.71,
20007  with options \\"\$ac_cs_config\\"
20008
20009Copyright (C) 2021 Free Software Foundation, Inc.
20010This config.status script is free software; the Free Software Foundation
20011gives unlimited permission to copy, distribute and modify it."
20012
20013ac_pwd='$ac_pwd'
20014srcdir='$srcdir'
20015INSTALL='$INSTALL'
20016MKDIR_P='$MKDIR_P'
20017AWK='$AWK'
20018test -n "\$AWK" || AWK=awk
20019_ACEOF
20020
20021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20022# The default lists apply if the user does not specify any file.
20023ac_need_defaults=:
20024while test $# != 0
20025do
20026  case $1 in
20027  --*=?*)
20028    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20029    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20030    ac_shift=:
20031    ;;
20032  --*=)
20033    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20034    ac_optarg=
20035    ac_shift=:
20036    ;;
20037  *)
20038    ac_option=$1
20039    ac_optarg=$2
20040    ac_shift=shift
20041    ;;
20042  esac
20043
20044  case $ac_option in
20045  # Handling of the options.
20046  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20047    ac_cs_recheck=: ;;
20048  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20049    printf "%s\n" "$ac_cs_version"; exit ;;
20050  --config | --confi | --conf | --con | --co | --c )
20051    printf "%s\n" "$ac_cs_config"; exit ;;
20052  --debug | --debu | --deb | --de | --d | -d )
20053    debug=: ;;
20054  --file | --fil | --fi | --f )
20055    $ac_shift
20056    case $ac_optarg in
20057    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20058    '') as_fn_error $? "missing file argument" ;;
20059    esac
20060    as_fn_append CONFIG_FILES " '$ac_optarg'"
20061    ac_need_defaults=false;;
20062  --header | --heade | --head | --hea )
20063    $ac_shift
20064    case $ac_optarg in
20065    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20066    esac
20067    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20068    ac_need_defaults=false;;
20069  --he | --h)
20070    # Conflict between --help and --header
20071    as_fn_error $? "ambiguous option: \`$1'
20072Try \`$0 --help' for more information.";;
20073  --help | --hel | -h )
20074    printf "%s\n" "$ac_cs_usage"; exit ;;
20075  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20076  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20077    ac_cs_silent=: ;;
20078
20079  # This is an error.
20080  -*) as_fn_error $? "unrecognized option: \`$1'
20081Try \`$0 --help' for more information." ;;
20082
20083  *) as_fn_append ac_config_targets " $1"
20084     ac_need_defaults=false ;;
20085
20086  esac
20087  shift
20088done
20089
20090ac_configure_extra_args=
20091
20092if $ac_cs_silent; then
20093  exec 6>/dev/null
20094  ac_configure_extra_args="$ac_configure_extra_args --silent"
20095fi
20096
20097_ACEOF
20098cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20099if \$ac_cs_recheck; then
20100  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20101  shift
20102  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20103  CONFIG_SHELL='$SHELL'
20104  export CONFIG_SHELL
20105  exec "\$@"
20106fi
20107
20108_ACEOF
20109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20110exec 5>>config.log
20111{
20112  echo
20113  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20114## Running $as_me. ##
20115_ASBOX
20116  printf "%s\n" "$ac_log"
20117} >&5
20118
20119_ACEOF
20120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20121#
20122# INIT-COMMANDS
20123#
20124AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20125
20126
20127# The HP-UX ksh and POSIX shell print the target directory to stdout
20128# if CDPATH is set.
20129(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20130
20131sed_quote_subst='$sed_quote_subst'
20132double_quote_subst='$double_quote_subst'
20133delay_variable_subst='$delay_variable_subst'
20134macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20135macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20136enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20137enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20138pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20139enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20140shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20141SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20142ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20143PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20144host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20145host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20146host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20147build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20148build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20149build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20150SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20151Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20152GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20153EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20154FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20155LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20156NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20157LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20158max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20159ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20160exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20161lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20162lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20163lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20164lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20165lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20166reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20167reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20168FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20169OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20170deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20171file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20172file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20173want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20174DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20175sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20176AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20177lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20178AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20179archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20180STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20181RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20182old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20183old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20184old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20185lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20186CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20187CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20188compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20189GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20190lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20191lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20192lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20193lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20194lt_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"`'
20195lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20196nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20197lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20198lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20199objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20200MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20201lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20202lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20203lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20204lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20205lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20206need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20207MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20208DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20209NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20210LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20211OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20212OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20213libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20214shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20215extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20216archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20217enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20218export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20219whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20220compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20221old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20222old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20223archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20224archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20225module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20226module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20227with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20228allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20229no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20230hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20231hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20232hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20233hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20234hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20235hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20236hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20237inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20238link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20239always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20240export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20241exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20242include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20243prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20244postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20245file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20246variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20247need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20248need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20249version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20250runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20251shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20252shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20253libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20254library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20255soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20256install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20257postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20258postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20259finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20260finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20261hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20262sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20263configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20264configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20265hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20266enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20267enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20268enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20269old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20270striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20271
20272LTCC='$LTCC'
20273LTCFLAGS='$LTCFLAGS'
20274compiler='$compiler_DEFAULT'
20275
20276# A function that is used when there is no print builtin or printf.
20277func_fallback_echo ()
20278{
20279  eval 'cat <<_LTECHO_EOF
20280\$1
20281_LTECHO_EOF'
20282}
20283
20284# Quote evaled strings.
20285for var in SHELL \
20286ECHO \
20287PATH_SEPARATOR \
20288SED \
20289GREP \
20290EGREP \
20291FGREP \
20292LD \
20293NM \
20294LN_S \
20295lt_SP2NL \
20296lt_NL2SP \
20297reload_flag \
20298FILECMD \
20299OBJDUMP \
20300deplibs_check_method \
20301file_magic_cmd \
20302file_magic_glob \
20303want_nocaseglob \
20304DLLTOOL \
20305sharedlib_from_linklib_cmd \
20306AR \
20307archiver_list_spec \
20308STRIP \
20309RANLIB \
20310CC \
20311CFLAGS \
20312compiler \
20313lt_cv_sys_global_symbol_pipe \
20314lt_cv_sys_global_symbol_to_cdecl \
20315lt_cv_sys_global_symbol_to_import \
20316lt_cv_sys_global_symbol_to_c_name_address \
20317lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20318lt_cv_nm_interface \
20319nm_file_list_spec \
20320lt_cv_truncate_bin \
20321lt_prog_compiler_no_builtin_flag \
20322lt_prog_compiler_pic \
20323lt_prog_compiler_wl \
20324lt_prog_compiler_static \
20325lt_cv_prog_compiler_c_o \
20326need_locks \
20327MANIFEST_TOOL \
20328DSYMUTIL \
20329NMEDIT \
20330LIPO \
20331OTOOL \
20332OTOOL64 \
20333shrext_cmds \
20334export_dynamic_flag_spec \
20335whole_archive_flag_spec \
20336compiler_needs_object \
20337with_gnu_ld \
20338allow_undefined_flag \
20339no_undefined_flag \
20340hardcode_libdir_flag_spec \
20341hardcode_libdir_separator \
20342exclude_expsyms \
20343include_expsyms \
20344file_list_spec \
20345variables_saved_for_relink \
20346libname_spec \
20347library_names_spec \
20348soname_spec \
20349install_override_mode \
20350finish_eval \
20351old_striplib \
20352striplib; do
20353    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20354    *[\\\\\\\`\\"\\\$]*)
20355      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20356      ;;
20357    *)
20358      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20359      ;;
20360    esac
20361done
20362
20363# Double-quote double-evaled strings.
20364for var in reload_cmds \
20365old_postinstall_cmds \
20366old_postuninstall_cmds \
20367old_archive_cmds \
20368extract_expsyms_cmds \
20369old_archive_from_new_cmds \
20370old_archive_from_expsyms_cmds \
20371archive_cmds \
20372archive_expsym_cmds \
20373module_cmds \
20374module_expsym_cmds \
20375export_symbols_cmds \
20376prelink_cmds \
20377postlink_cmds \
20378postinstall_cmds \
20379postuninstall_cmds \
20380finish_cmds \
20381sys_lib_search_path_spec \
20382configure_time_dlsearch_path \
20383configure_time_lt_sys_library_path; do
20384    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20385    *[\\\\\\\`\\"\\\$]*)
20386      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20387      ;;
20388    *)
20389      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20390      ;;
20391    esac
20392done
20393
20394ac_aux_dir='$ac_aux_dir'
20395
20396# See if we are running on zsh, and set the options that allow our
20397# commands through without removal of \ escapes INIT.
20398if test -n "\${ZSH_VERSION+set}"; then
20399   setopt NO_GLOB_SUBST
20400fi
20401
20402
20403    PACKAGE='$PACKAGE'
20404    VERSION='$VERSION'
20405    RM='$RM'
20406    ofile='$ofile'
20407
20408
20409
20410
20411_ACEOF
20412
20413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20414
20415# Handling of arguments.
20416for ac_config_target in $ac_config_targets
20417do
20418  case $ac_config_target in
20419    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20420    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20421    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20422    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20423    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20424    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20425    "xres.pc") CONFIG_FILES="$CONFIG_FILES xres.pc" ;;
20426
20427  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20428  esac
20429done
20430
20431
20432# If the user did not use the arguments to specify the items to instantiate,
20433# then the envvar interface is used.  Set only those that are not.
20434# We use the long form for the default assignment because of an extremely
20435# bizarre bug on SunOS 4.1.3.
20436if $ac_need_defaults; then
20437  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20438  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20439  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20440fi
20441
20442# Have a temporary directory for convenience.  Make it in the build tree
20443# simply because there is no reason against having it here, and in addition,
20444# creating and moving files from /tmp can sometimes cause problems.
20445# Hook for its removal unless debugging.
20446# Note that there is a small window in which the directory will not be cleaned:
20447# after its creation but before its name has been assigned to `$tmp'.
20448$debug ||
20449{
20450  tmp= ac_tmp=
20451  trap 'exit_status=$?
20452  : "${ac_tmp:=$tmp}"
20453  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20454' 0
20455  trap 'as_fn_exit 1' 1 2 13 15
20456}
20457# Create a (secure) tmp directory for tmp files.
20458
20459{
20460  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20461  test -d "$tmp"
20462}  ||
20463{
20464  tmp=./conf$$-$RANDOM
20465  (umask 077 && mkdir "$tmp")
20466} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20467ac_tmp=$tmp
20468
20469# Set up the scripts for CONFIG_FILES section.
20470# No need to generate them if there are no CONFIG_FILES.
20471# This happens for instance with `./config.status config.h'.
20472if test -n "$CONFIG_FILES"; then
20473
20474
20475ac_cr=`echo X | tr X '\015'`
20476# On cygwin, bash can eat \r inside `` if the user requested igncr.
20477# But we know of no other shell where ac_cr would be empty at this
20478# point, so we can use a bashism as a fallback.
20479if test "x$ac_cr" = x; then
20480  eval ac_cr=\$\'\\r\'
20481fi
20482ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20483if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20484  ac_cs_awk_cr='\\r'
20485else
20486  ac_cs_awk_cr=$ac_cr
20487fi
20488
20489echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20490_ACEOF
20491
20492
20493{
20494  echo "cat >conf$$subs.awk <<_ACEOF" &&
20495  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20496  echo "_ACEOF"
20497} >conf$$subs.sh ||
20498  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20499ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20500ac_delim='%!_!# '
20501for ac_last_try in false false false false false :; do
20502  . ./conf$$subs.sh ||
20503    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20504
20505  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20506  if test $ac_delim_n = $ac_delim_num; then
20507    break
20508  elif $ac_last_try; then
20509    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20510  else
20511    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20512  fi
20513done
20514rm -f conf$$subs.sh
20515
20516cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20517cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20518_ACEOF
20519sed -n '
20520h
20521s/^/S["/; s/!.*/"]=/
20522p
20523g
20524s/^[^!]*!//
20525:repl
20526t repl
20527s/'"$ac_delim"'$//
20528t delim
20529:nl
20530h
20531s/\(.\{148\}\)..*/\1/
20532t more1
20533s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20534p
20535n
20536b repl
20537:more1
20538s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20539p
20540g
20541s/.\{148\}//
20542t nl
20543:delim
20544h
20545s/\(.\{148\}\)..*/\1/
20546t more2
20547s/["\\]/\\&/g; s/^/"/; s/$/"/
20548p
20549b
20550:more2
20551s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20552p
20553g
20554s/.\{148\}//
20555t delim
20556' <conf$$subs.awk | sed '
20557/^[^""]/{
20558  N
20559  s/\n//
20560}
20561' >>$CONFIG_STATUS || ac_write_fail=1
20562rm -f conf$$subs.awk
20563cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20564_ACAWK
20565cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20566  for (key in S) S_is_set[key] = 1
20567  FS = ""
20568
20569}
20570{
20571  line = $ 0
20572  nfields = split(line, field, "@")
20573  substed = 0
20574  len = length(field[1])
20575  for (i = 2; i < nfields; i++) {
20576    key = field[i]
20577    keylen = length(key)
20578    if (S_is_set[key]) {
20579      value = S[key]
20580      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20581      len += length(value) + length(field[++i])
20582      substed = 1
20583    } else
20584      len += 1 + keylen
20585  }
20586
20587  print line
20588}
20589
20590_ACAWK
20591_ACEOF
20592cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20593if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20594  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20595else
20596  cat
20597fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20598  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20599_ACEOF
20600
20601# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20602# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20603# trailing colons and then remove the whole line if VPATH becomes empty
20604# (actually we leave an empty line to preserve line numbers).
20605if test "x$srcdir" = x.; then
20606  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20607h
20608s///
20609s/^/:/
20610s/[	 ]*$/:/
20611s/:\$(srcdir):/:/g
20612s/:\${srcdir}:/:/g
20613s/:@srcdir@:/:/g
20614s/^:*//
20615s/:*$//
20616x
20617s/\(=[	 ]*\).*/\1/
20618G
20619s/\n//
20620s/^[^=]*=[	 ]*$//
20621}'
20622fi
20623
20624cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20625fi # test -n "$CONFIG_FILES"
20626
20627# Set up the scripts for CONFIG_HEADERS section.
20628# No need to generate them if there are no CONFIG_HEADERS.
20629# This happens for instance with `./config.status Makefile'.
20630if test -n "$CONFIG_HEADERS"; then
20631cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20632BEGIN {
20633_ACEOF
20634
20635# Transform confdefs.h into an awk script `defines.awk', embedded as
20636# here-document in config.status, that substitutes the proper values into
20637# config.h.in to produce config.h.
20638
20639# Create a delimiter string that does not exist in confdefs.h, to ease
20640# handling of long lines.
20641ac_delim='%!_!# '
20642for ac_last_try in false false :; do
20643  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20644  if test -z "$ac_tt"; then
20645    break
20646  elif $ac_last_try; then
20647    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20648  else
20649    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20650  fi
20651done
20652
20653# For the awk script, D is an array of macro values keyed by name,
20654# likewise P contains macro parameters if any.  Preserve backslash
20655# newline sequences.
20656
20657ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20658sed -n '
20659s/.\{148\}/&'"$ac_delim"'/g
20660t rset
20661:rset
20662s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20663t def
20664d
20665:def
20666s/\\$//
20667t bsnl
20668s/["\\]/\\&/g
20669s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20670D["\1"]=" \3"/p
20671s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20672d
20673:bsnl
20674s/["\\]/\\&/g
20675s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20676D["\1"]=" \3\\\\\\n"\\/p
20677t cont
20678s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20679t cont
20680d
20681:cont
20682n
20683s/.\{148\}/&'"$ac_delim"'/g
20684t clear
20685:clear
20686s/\\$//
20687t bsnlc
20688s/["\\]/\\&/g; s/^/"/; s/$/"/p
20689d
20690:bsnlc
20691s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20692b cont
20693' <confdefs.h | sed '
20694s/'"$ac_delim"'/"\\\
20695"/g' >>$CONFIG_STATUS || ac_write_fail=1
20696
20697cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20698  for (key in D) D_is_set[key] = 1
20699  FS = ""
20700}
20701/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20702  line = \$ 0
20703  split(line, arg, " ")
20704  if (arg[1] == "#") {
20705    defundef = arg[2]
20706    mac1 = arg[3]
20707  } else {
20708    defundef = substr(arg[1], 2)
20709    mac1 = arg[2]
20710  }
20711  split(mac1, mac2, "(") #)
20712  macro = mac2[1]
20713  prefix = substr(line, 1, index(line, defundef) - 1)
20714  if (D_is_set[macro]) {
20715    # Preserve the white space surrounding the "#".
20716    print prefix "define", macro P[macro] D[macro]
20717    next
20718  } else {
20719    # Replace #undef with comments.  This is necessary, for example,
20720    # in the case of _POSIX_SOURCE, which is predefined and required
20721    # on some systems where configure will not decide to define it.
20722    if (defundef == "undef") {
20723      print "/*", prefix defundef, macro, "*/"
20724      next
20725    }
20726  }
20727}
20728{ print }
20729_ACAWK
20730_ACEOF
20731cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20732  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20733fi # test -n "$CONFIG_HEADERS"
20734
20735
20736eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20737shift
20738for ac_tag
20739do
20740  case $ac_tag in
20741  :[FHLC]) ac_mode=$ac_tag; continue;;
20742  esac
20743  case $ac_mode$ac_tag in
20744  :[FHL]*:*);;
20745  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20746  :[FH]-) ac_tag=-:-;;
20747  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20748  esac
20749  ac_save_IFS=$IFS
20750  IFS=:
20751  set x $ac_tag
20752  IFS=$ac_save_IFS
20753  shift
20754  ac_file=$1
20755  shift
20756
20757  case $ac_mode in
20758  :L) ac_source=$1;;
20759  :[FH])
20760    ac_file_inputs=
20761    for ac_f
20762    do
20763      case $ac_f in
20764      -) ac_f="$ac_tmp/stdin";;
20765      *) # Look for the file first in the build tree, then in the source tree
20766	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20767	 # because $ac_f cannot contain `:'.
20768	 test -f "$ac_f" ||
20769	   case $ac_f in
20770	   [\\/$]*) false;;
20771	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20772	   esac ||
20773	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20774      esac
20775      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20776      as_fn_append ac_file_inputs " '$ac_f'"
20777    done
20778
20779    # Let's still pretend it is `configure' which instantiates (i.e., don't
20780    # use $as_me), people would be surprised to read:
20781    #    /* config.h.  Generated by config.status.  */
20782    configure_input='Generated from '`
20783	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20784	`' by configure.'
20785    if test x"$ac_file" != x-; then
20786      configure_input="$ac_file.  $configure_input"
20787      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20788printf "%s\n" "$as_me: creating $ac_file" >&6;}
20789    fi
20790    # Neutralize special characters interpreted by sed in replacement strings.
20791    case $configure_input in #(
20792    *\&* | *\|* | *\\* )
20793       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20794       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20795    *) ac_sed_conf_input=$configure_input;;
20796    esac
20797
20798    case $ac_tag in
20799    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20800      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20801    esac
20802    ;;
20803  esac
20804
20805  ac_dir=`$as_dirname -- "$ac_file" ||
20806$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20807	 X"$ac_file" : 'X\(//\)[^/]' \| \
20808	 X"$ac_file" : 'X\(//\)$' \| \
20809	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20810printf "%s\n" X"$ac_file" |
20811    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20812	    s//\1/
20813	    q
20814	  }
20815	  /^X\(\/\/\)[^/].*/{
20816	    s//\1/
20817	    q
20818	  }
20819	  /^X\(\/\/\)$/{
20820	    s//\1/
20821	    q
20822	  }
20823	  /^X\(\/\).*/{
20824	    s//\1/
20825	    q
20826	  }
20827	  s/.*/./; q'`
20828  as_dir="$ac_dir"; as_fn_mkdir_p
20829  ac_builddir=.
20830
20831case "$ac_dir" in
20832.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20833*)
20834  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
20835  # A ".." for each directory in $ac_dir_suffix.
20836  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20837  case $ac_top_builddir_sub in
20838  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20839  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20840  esac ;;
20841esac
20842ac_abs_top_builddir=$ac_pwd
20843ac_abs_builddir=$ac_pwd$ac_dir_suffix
20844# for backward compatibility:
20845ac_top_builddir=$ac_top_build_prefix
20846
20847case $srcdir in
20848  .)  # We are building in place.
20849    ac_srcdir=.
20850    ac_top_srcdir=$ac_top_builddir_sub
20851    ac_abs_top_srcdir=$ac_pwd ;;
20852  [\\/]* | ?:[\\/]* )  # Absolute name.
20853    ac_srcdir=$srcdir$ac_dir_suffix;
20854    ac_top_srcdir=$srcdir
20855    ac_abs_top_srcdir=$srcdir ;;
20856  *) # Relative name.
20857    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20858    ac_top_srcdir=$ac_top_build_prefix$srcdir
20859    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20860esac
20861ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20862
20863
20864  case $ac_mode in
20865  :F)
20866  #
20867  # CONFIG_FILE
20868  #
20869
20870  case $INSTALL in
20871  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20872  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20873  esac
20874  ac_MKDIR_P=$MKDIR_P
20875  case $MKDIR_P in
20876  [\\/$]* | ?:[\\/]* ) ;;
20877  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20878  esac
20879_ACEOF
20880
20881cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20882# If the template does not know about datarootdir, expand it.
20883# FIXME: This hack should be removed a few years after 2.60.
20884ac_datarootdir_hack=; ac_datarootdir_seen=
20885ac_sed_dataroot='
20886/datarootdir/ {
20887  p
20888  q
20889}
20890/@datadir@/p
20891/@docdir@/p
20892/@infodir@/p
20893/@localedir@/p
20894/@mandir@/p'
20895case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20896*datarootdir*) ac_datarootdir_seen=yes;;
20897*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20898  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20899printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20900_ACEOF
20901cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20902  ac_datarootdir_hack='
20903  s&@datadir@&$datadir&g
20904  s&@docdir@&$docdir&g
20905  s&@infodir@&$infodir&g
20906  s&@localedir@&$localedir&g
20907  s&@mandir@&$mandir&g
20908  s&\\\${datarootdir}&$datarootdir&g' ;;
20909esac
20910_ACEOF
20911
20912# Neutralize VPATH when `$srcdir' = `.'.
20913# Shell code in configure.ac might set extrasub.
20914# FIXME: do we really want to maintain this feature?
20915cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20916ac_sed_extra="$ac_vpsub
20917$extrasub
20918_ACEOF
20919cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20920:t
20921/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20922s|@configure_input@|$ac_sed_conf_input|;t t
20923s&@top_builddir@&$ac_top_builddir_sub&;t t
20924s&@top_build_prefix@&$ac_top_build_prefix&;t t
20925s&@srcdir@&$ac_srcdir&;t t
20926s&@abs_srcdir@&$ac_abs_srcdir&;t t
20927s&@top_srcdir@&$ac_top_srcdir&;t t
20928s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20929s&@builddir@&$ac_builddir&;t t
20930s&@abs_builddir@&$ac_abs_builddir&;t t
20931s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20932s&@INSTALL@&$ac_INSTALL&;t t
20933s&@MKDIR_P@&$ac_MKDIR_P&;t t
20934$ac_datarootdir_hack
20935"
20936eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20937  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20938
20939test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20940  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20941  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20942      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20943  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20944which seems to be undefined.  Please make sure it is defined" >&5
20945printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20946which seems to be undefined.  Please make sure it is defined" >&2;}
20947
20948  rm -f "$ac_tmp/stdin"
20949  case $ac_file in
20950  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20951  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20952  esac \
20953  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20954 ;;
20955  :H)
20956  #
20957  # CONFIG_HEADER
20958  #
20959  if test x"$ac_file" != x-; then
20960    {
20961      printf "%s\n" "/* $configure_input  */" >&1 \
20962      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20963    } >"$ac_tmp/config.h" \
20964      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20965    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20966      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20967printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
20968    else
20969      rm -f "$ac_file"
20970      mv "$ac_tmp/config.h" "$ac_file" \
20971	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20972    fi
20973  else
20974    printf "%s\n" "/* $configure_input  */" >&1 \
20975      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20976      || as_fn_error $? "could not create -" "$LINENO" 5
20977  fi
20978# Compute "$ac_file"'s index in $config_headers.
20979_am_arg="$ac_file"
20980_am_stamp_count=1
20981for _am_header in $config_headers :; do
20982  case $_am_header in
20983    $_am_arg | $_am_arg:* )
20984      break ;;
20985    * )
20986      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20987  esac
20988done
20989echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20990$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20991	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20992	 X"$_am_arg" : 'X\(//\)$' \| \
20993	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20994printf "%s\n" X"$_am_arg" |
20995    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20996	    s//\1/
20997	    q
20998	  }
20999	  /^X\(\/\/\)[^/].*/{
21000	    s//\1/
21001	    q
21002	  }
21003	  /^X\(\/\/\)$/{
21004	    s//\1/
21005	    q
21006	  }
21007	  /^X\(\/\).*/{
21008	    s//\1/
21009	    q
21010	  }
21011	  s/.*/./; q'`/stamp-h$_am_stamp_count
21012 ;;
21013
21014  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21015printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21016 ;;
21017  esac
21018
21019
21020  case $ac_file$ac_mode in
21021    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21022  # Older Autoconf quotes --file arguments for eval, but not when files
21023  # are listed without --file.  Let's play safe and only enable the eval
21024  # if we detect the quoting.
21025  # TODO: see whether this extra hack can be removed once we start
21026  # requiring Autoconf 2.70 or later.
21027  case $CONFIG_FILES in #(
21028  *\'*) :
21029    eval set x "$CONFIG_FILES" ;; #(
21030  *) :
21031    set x $CONFIG_FILES ;; #(
21032  *) :
21033     ;;
21034esac
21035  shift
21036  # Used to flag and report bootstrapping failures.
21037  am_rc=0
21038  for am_mf
21039  do
21040    # Strip MF so we end up with the name of the file.
21041    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21042    # Check whether this is an Automake generated Makefile which includes
21043    # dependency-tracking related rules and includes.
21044    # Grep'ing the whole file directly is not great: AIX grep has a line
21045    # limit of 2048, but all sed's we know have understand at least 4000.
21046    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21047      || continue
21048    am_dirpart=`$as_dirname -- "$am_mf" ||
21049$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21050	 X"$am_mf" : 'X\(//\)[^/]' \| \
21051	 X"$am_mf" : 'X\(//\)$' \| \
21052	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21053printf "%s\n" X"$am_mf" |
21054    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21055	    s//\1/
21056	    q
21057	  }
21058	  /^X\(\/\/\)[^/].*/{
21059	    s//\1/
21060	    q
21061	  }
21062	  /^X\(\/\/\)$/{
21063	    s//\1/
21064	    q
21065	  }
21066	  /^X\(\/\).*/{
21067	    s//\1/
21068	    q
21069	  }
21070	  s/.*/./; q'`
21071    am_filepart=`$as_basename -- "$am_mf" ||
21072$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21073	 X"$am_mf" : 'X\(//\)$' \| \
21074	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21075printf "%s\n" X/"$am_mf" |
21076    sed '/^.*\/\([^/][^/]*\)\/*$/{
21077	    s//\1/
21078	    q
21079	  }
21080	  /^X\/\(\/\/\)$/{
21081	    s//\1/
21082	    q
21083	  }
21084	  /^X\/\(\/\).*/{
21085	    s//\1/
21086	    q
21087	  }
21088	  s/.*/./; q'`
21089    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21090      && sed -e '/# am--include-marker/d' "$am_filepart" \
21091        | $MAKE -f - am--depfiles" >&5
21092   (cd "$am_dirpart" \
21093      && sed -e '/# am--include-marker/d' "$am_filepart" \
21094        | $MAKE -f - am--depfiles) >&5 2>&5
21095   ac_status=$?
21096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097   (exit $ac_status); } || am_rc=$?
21098  done
21099  if test $am_rc -ne 0; then
21100    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21101printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21102as_fn_error $? "Something went wrong bootstrapping makefile fragments
21103    for automatic dependency tracking.  If GNU make was not used, consider
21104    re-running the configure script with MAKE=\"gmake\" (or whatever is
21105    necessary).  You can also try re-running configure with the
21106    '--disable-dependency-tracking' option to at least be able to build
21107    the package (albeit without support for automatic dependency tracking).
21108See \`config.log' for more details" "$LINENO" 5; }
21109  fi
21110  { am_dirpart=; unset am_dirpart;}
21111  { am_filepart=; unset am_filepart;}
21112  { am_mf=; unset am_mf;}
21113  { am_rc=; unset am_rc;}
21114  rm -f conftest-deps.mk
21115}
21116 ;;
21117    "libtool":C)
21118
21119    # See if we are running on zsh, and set the options that allow our
21120    # commands through without removal of \ escapes.
21121    if test -n "${ZSH_VERSION+set}"; then
21122      setopt NO_GLOB_SUBST
21123    fi
21124
21125    cfgfile=${ofile}T
21126    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21127    $RM "$cfgfile"
21128
21129    cat <<_LT_EOF >> "$cfgfile"
21130#! $SHELL
21131# Generated automatically by $as_me ($PACKAGE) $VERSION
21132# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21133# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21134
21135# Provide generalized library-building support services.
21136# Written by Gordon Matzigkeit, 1996
21137
21138# Copyright (C) 2014 Free Software Foundation, Inc.
21139# This is free software; see the source for copying conditions.  There is NO
21140# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21141
21142# GNU Libtool is free software; you can redistribute it and/or modify
21143# it under the terms of the GNU General Public License as published by
21144# the Free Software Foundation; either version 2 of of the License, or
21145# (at your option) any later version.
21146#
21147# As a special exception to the GNU General Public License, if you
21148# distribute this file as part of a program or library that is built
21149# using GNU Libtool, you may include this file under the  same
21150# distribution terms that you use for the rest of that program.
21151#
21152# GNU Libtool is distributed in the hope that it will be useful, but
21153# WITHOUT ANY WARRANTY; without even the implied warranty of
21154# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21155# GNU General Public License for more details.
21156#
21157# You should have received a copy of the GNU General Public License
21158# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21159
21160
21161# The names of the tagged configurations supported by this script.
21162available_tags=''
21163
21164# Configured defaults for sys_lib_dlsearch_path munging.
21165: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21166
21167# ### BEGIN LIBTOOL CONFIG
21168
21169# Which release of libtool.m4 was used?
21170macro_version=$macro_version
21171macro_revision=$macro_revision
21172
21173# Whether or not to build shared libraries.
21174build_libtool_libs=$enable_shared
21175
21176# Whether or not to build static libraries.
21177build_old_libs=$enable_static
21178
21179# What type of objects to build.
21180pic_mode=$pic_mode
21181
21182# Whether or not to optimize for fast installation.
21183fast_install=$enable_fast_install
21184
21185# Shared archive member basename,for filename based shared library versioning on AIX.
21186shared_archive_member_spec=$shared_archive_member_spec
21187
21188# Shell to use when invoking shell scripts.
21189SHELL=$lt_SHELL
21190
21191# An echo program that protects backslashes.
21192ECHO=$lt_ECHO
21193
21194# The PATH separator for the build system.
21195PATH_SEPARATOR=$lt_PATH_SEPARATOR
21196
21197# The host system.
21198host_alias=$host_alias
21199host=$host
21200host_os=$host_os
21201
21202# The build system.
21203build_alias=$build_alias
21204build=$build
21205build_os=$build_os
21206
21207# A sed program that does not truncate output.
21208SED=$lt_SED
21209
21210# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21211Xsed="\$SED -e 1s/^X//"
21212
21213# A grep program that handles long lines.
21214GREP=$lt_GREP
21215
21216# An ERE matcher.
21217EGREP=$lt_EGREP
21218
21219# A literal string matcher.
21220FGREP=$lt_FGREP
21221
21222# A BSD- or MS-compatible name lister.
21223NM=$lt_NM
21224
21225# Whether we need soft or hard links.
21226LN_S=$lt_LN_S
21227
21228# What is the maximum length of a command?
21229max_cmd_len=$max_cmd_len
21230
21231# Object file suffix (normally "o").
21232objext=$ac_objext
21233
21234# Executable file suffix (normally "").
21235exeext=$exeext
21236
21237# whether the shell understands "unset".
21238lt_unset=$lt_unset
21239
21240# turn spaces into newlines.
21241SP2NL=$lt_lt_SP2NL
21242
21243# turn newlines into spaces.
21244NL2SP=$lt_lt_NL2SP
21245
21246# convert \$build file names to \$host format.
21247to_host_file_cmd=$lt_cv_to_host_file_cmd
21248
21249# convert \$build files to toolchain format.
21250to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21251
21252# A file(cmd) program that detects file types.
21253FILECMD=$lt_FILECMD
21254
21255# An object symbol dumper.
21256OBJDUMP=$lt_OBJDUMP
21257
21258# Method to check whether dependent libraries are shared objects.
21259deplibs_check_method=$lt_deplibs_check_method
21260
21261# Command to use when deplibs_check_method = "file_magic".
21262file_magic_cmd=$lt_file_magic_cmd
21263
21264# How to find potential files when deplibs_check_method = "file_magic".
21265file_magic_glob=$lt_file_magic_glob
21266
21267# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21268want_nocaseglob=$lt_want_nocaseglob
21269
21270# DLL creation program.
21271DLLTOOL=$lt_DLLTOOL
21272
21273# Command to associate shared and link libraries.
21274sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21275
21276# The archiver.
21277AR=$lt_AR
21278
21279# Flags to create an archive (by configure).
21280lt_ar_flags=$lt_ar_flags
21281
21282# Flags to create an archive.
21283AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21284
21285# How to feed a file listing to the archiver.
21286archiver_list_spec=$lt_archiver_list_spec
21287
21288# A symbol stripping program.
21289STRIP=$lt_STRIP
21290
21291# Commands used to install an old-style archive.
21292RANLIB=$lt_RANLIB
21293old_postinstall_cmds=$lt_old_postinstall_cmds
21294old_postuninstall_cmds=$lt_old_postuninstall_cmds
21295
21296# Whether to use a lock for old archive extraction.
21297lock_old_archive_extraction=$lock_old_archive_extraction
21298
21299# A C compiler.
21300LTCC=$lt_CC
21301
21302# LTCC compiler flags.
21303LTCFLAGS=$lt_CFLAGS
21304
21305# Take the output of nm and produce a listing of raw symbols and C names.
21306global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21307
21308# Transform the output of nm in a proper C declaration.
21309global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21310
21311# Transform the output of nm into a list of symbols to manually relocate.
21312global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21313
21314# Transform the output of nm in a C name address pair.
21315global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21316
21317# Transform the output of nm in a C name address pair when lib prefix is needed.
21318global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21319
21320# The name lister interface.
21321nm_interface=$lt_lt_cv_nm_interface
21322
21323# Specify filename containing input files for \$NM.
21324nm_file_list_spec=$lt_nm_file_list_spec
21325
21326# The root where to search for dependent libraries,and where our libraries should be installed.
21327lt_sysroot=$lt_sysroot
21328
21329# Command to truncate a binary pipe.
21330lt_truncate_bin=$lt_lt_cv_truncate_bin
21331
21332# The name of the directory that contains temporary libtool files.
21333objdir=$objdir
21334
21335# Used to examine libraries when file_magic_cmd begins with "file".
21336MAGIC_CMD=$MAGIC_CMD
21337
21338# Must we lock files when doing compilation?
21339need_locks=$lt_need_locks
21340
21341# Manifest tool.
21342MANIFEST_TOOL=$lt_MANIFEST_TOOL
21343
21344# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21345DSYMUTIL=$lt_DSYMUTIL
21346
21347# Tool to change global to local symbols on Mac OS X.
21348NMEDIT=$lt_NMEDIT
21349
21350# Tool to manipulate fat objects and archives on Mac OS X.
21351LIPO=$lt_LIPO
21352
21353# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21354OTOOL=$lt_OTOOL
21355
21356# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21357OTOOL64=$lt_OTOOL64
21358
21359# Old archive suffix (normally "a").
21360libext=$libext
21361
21362# Shared library suffix (normally ".so").
21363shrext_cmds=$lt_shrext_cmds
21364
21365# The commands to extract the exported symbol list from a shared archive.
21366extract_expsyms_cmds=$lt_extract_expsyms_cmds
21367
21368# Variables whose values should be saved in libtool wrapper scripts and
21369# restored at link time.
21370variables_saved_for_relink=$lt_variables_saved_for_relink
21371
21372# Do we need the "lib" prefix for modules?
21373need_lib_prefix=$need_lib_prefix
21374
21375# Do we need a version for libraries?
21376need_version=$need_version
21377
21378# Library versioning type.
21379version_type=$version_type
21380
21381# Shared library runtime path variable.
21382runpath_var=$runpath_var
21383
21384# Shared library path variable.
21385shlibpath_var=$shlibpath_var
21386
21387# Is shlibpath searched before the hard-coded library search path?
21388shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21389
21390# Format of library name prefix.
21391libname_spec=$lt_libname_spec
21392
21393# List of archive names.  First name is the real one, the rest are links.
21394# The last name is the one that the linker finds with -lNAME
21395library_names_spec=$lt_library_names_spec
21396
21397# The coded name of the library, if different from the real name.
21398soname_spec=$lt_soname_spec
21399
21400# Permission mode override for installation of shared libraries.
21401install_override_mode=$lt_install_override_mode
21402
21403# Command to use after installation of a shared archive.
21404postinstall_cmds=$lt_postinstall_cmds
21405
21406# Command to use after uninstallation of a shared archive.
21407postuninstall_cmds=$lt_postuninstall_cmds
21408
21409# Commands used to finish a libtool library installation in a directory.
21410finish_cmds=$lt_finish_cmds
21411
21412# As "finish_cmds", except a single script fragment to be evaled but
21413# not shown.
21414finish_eval=$lt_finish_eval
21415
21416# Whether we should hardcode library paths into libraries.
21417hardcode_into_libs=$hardcode_into_libs
21418
21419# Compile-time system search path for libraries.
21420sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21421
21422# Detected run-time system search path for libraries.
21423sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21424
21425# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21426configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21427
21428# Whether dlopen is supported.
21429dlopen_support=$enable_dlopen
21430
21431# Whether dlopen of programs is supported.
21432dlopen_self=$enable_dlopen_self
21433
21434# Whether dlopen of statically linked programs is supported.
21435dlopen_self_static=$enable_dlopen_self_static
21436
21437# Commands to strip libraries.
21438old_striplib=$lt_old_striplib
21439striplib=$lt_striplib
21440
21441
21442# The linker used to build libraries.
21443LD=$lt_LD
21444
21445# How to create reloadable object files.
21446reload_flag=$lt_reload_flag
21447reload_cmds=$lt_reload_cmds
21448
21449# Commands used to build an old-style archive.
21450old_archive_cmds=$lt_old_archive_cmds
21451
21452# A language specific compiler.
21453CC=$lt_compiler
21454
21455# Is the compiler the GNU compiler?
21456with_gcc=$GCC
21457
21458# Compiler flag to turn off builtin functions.
21459no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21460
21461# Additional compiler flags for building library objects.
21462pic_flag=$lt_lt_prog_compiler_pic
21463
21464# How to pass a linker flag through the compiler.
21465wl=$lt_lt_prog_compiler_wl
21466
21467# Compiler flag to prevent dynamic linking.
21468link_static_flag=$lt_lt_prog_compiler_static
21469
21470# Does compiler simultaneously support -c and -o options?
21471compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21472
21473# Whether or not to add -lc for building shared libraries.
21474build_libtool_need_lc=$archive_cmds_need_lc
21475
21476# Whether or not to disallow shared libs when runtime libs are static.
21477allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21478
21479# Compiler flag to allow reflexive dlopens.
21480export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21481
21482# Compiler flag to generate shared objects directly from archives.
21483whole_archive_flag_spec=$lt_whole_archive_flag_spec
21484
21485# Whether the compiler copes with passing no objects directly.
21486compiler_needs_object=$lt_compiler_needs_object
21487
21488# Create an old-style archive from a shared archive.
21489old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21490
21491# Create a temporary old-style archive to link instead of a shared archive.
21492old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21493
21494# Commands used to build a shared archive.
21495archive_cmds=$lt_archive_cmds
21496archive_expsym_cmds=$lt_archive_expsym_cmds
21497
21498# Commands used to build a loadable module if different from building
21499# a shared archive.
21500module_cmds=$lt_module_cmds
21501module_expsym_cmds=$lt_module_expsym_cmds
21502
21503# Whether we are building with GNU ld or not.
21504with_gnu_ld=$lt_with_gnu_ld
21505
21506# Flag that allows shared libraries with undefined symbols to be built.
21507allow_undefined_flag=$lt_allow_undefined_flag
21508
21509# Flag that enforces no undefined symbols.
21510no_undefined_flag=$lt_no_undefined_flag
21511
21512# Flag to hardcode \$libdir into a binary during linking.
21513# This must work even if \$libdir does not exist
21514hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21515
21516# Whether we need a single "-rpath" flag with a separated argument.
21517hardcode_libdir_separator=$lt_hardcode_libdir_separator
21518
21519# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21520# DIR into the resulting binary.
21521hardcode_direct=$hardcode_direct
21522
21523# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21524# DIR into the resulting binary and the resulting library dependency is
21525# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21526# library is relocated.
21527hardcode_direct_absolute=$hardcode_direct_absolute
21528
21529# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21530# into the resulting binary.
21531hardcode_minus_L=$hardcode_minus_L
21532
21533# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21534# into the resulting binary.
21535hardcode_shlibpath_var=$hardcode_shlibpath_var
21536
21537# Set to "yes" if building a shared library automatically hardcodes DIR
21538# into the library and all subsequent libraries and executables linked
21539# against it.
21540hardcode_automatic=$hardcode_automatic
21541
21542# Set to yes if linker adds runtime paths of dependent libraries
21543# to runtime path list.
21544inherit_rpath=$inherit_rpath
21545
21546# Whether libtool must link a program against all its dependency libraries.
21547link_all_deplibs=$link_all_deplibs
21548
21549# Set to "yes" if exported symbols are required.
21550always_export_symbols=$always_export_symbols
21551
21552# The commands to list exported symbols.
21553export_symbols_cmds=$lt_export_symbols_cmds
21554
21555# Symbols that should not be listed in the preloaded symbols.
21556exclude_expsyms=$lt_exclude_expsyms
21557
21558# Symbols that must always be exported.
21559include_expsyms=$lt_include_expsyms
21560
21561# Commands necessary for linking programs (against libraries) with templates.
21562prelink_cmds=$lt_prelink_cmds
21563
21564# Commands necessary for finishing linking programs.
21565postlink_cmds=$lt_postlink_cmds
21566
21567# Specify filename containing input files.
21568file_list_spec=$lt_file_list_spec
21569
21570# How to hardcode a shared library path into an executable.
21571hardcode_action=$hardcode_action
21572
21573# ### END LIBTOOL CONFIG
21574
21575_LT_EOF
21576
21577    cat <<'_LT_EOF' >> "$cfgfile"
21578
21579# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21580
21581# func_munge_path_list VARIABLE PATH
21582# -----------------------------------
21583# VARIABLE is name of variable containing _space_ separated list of
21584# directories to be munged by the contents of PATH, which is string
21585# having a format:
21586# "DIR[:DIR]:"
21587#       string "DIR[ DIR]" will be prepended to VARIABLE
21588# ":DIR[:DIR]"
21589#       string "DIR[ DIR]" will be appended to VARIABLE
21590# "DIRP[:DIRP]::[DIRA:]DIRA"
21591#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21592#       "DIRA[ DIRA]" will be appended to VARIABLE
21593# "DIR[:DIR]"
21594#       VARIABLE will be replaced by "DIR[ DIR]"
21595func_munge_path_list ()
21596{
21597    case x$2 in
21598    x)
21599        ;;
21600    *:)
21601        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21602        ;;
21603    x:*)
21604        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21605        ;;
21606    *::*)
21607        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21608        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21609        ;;
21610    *)
21611        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21612        ;;
21613    esac
21614}
21615
21616
21617# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21618func_cc_basename ()
21619{
21620    for cc_temp in $*""; do
21621      case $cc_temp in
21622        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21623        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21624        \-*) ;;
21625        *) break;;
21626      esac
21627    done
21628    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21629}
21630
21631
21632# ### END FUNCTIONS SHARED WITH CONFIGURE
21633
21634_LT_EOF
21635
21636  case $host_os in
21637  aix3*)
21638    cat <<\_LT_EOF >> "$cfgfile"
21639# AIX sometimes has problems with the GCC collect2 program.  For some
21640# reason, if we set the COLLECT_NAMES environment variable, the problems
21641# vanish in a puff of smoke.
21642if test set != "${COLLECT_NAMES+set}"; then
21643  COLLECT_NAMES=
21644  export COLLECT_NAMES
21645fi
21646_LT_EOF
21647    ;;
21648  esac
21649
21650
21651
21652ltmain=$ac_aux_dir/ltmain.sh
21653
21654
21655  # We use sed instead of cat because bash on DJGPP gets confused if
21656  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21657  # text mode, it properly converts lines to CR/LF.  This bash problem
21658  # is reportedly fixed, but why not run on old versions too?
21659  $SED '$q' "$ltmain" >> "$cfgfile" \
21660     || (rm -f "$cfgfile"; exit 1)
21661
21662   mv -f "$cfgfile" "$ofile" ||
21663    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21664  chmod +x "$ofile"
21665
21666 ;;
21667
21668  esac
21669done # for ac_tag
21670
21671
21672as_fn_exit 0
21673_ACEOF
21674ac_clean_files=$ac_clean_files_save
21675
21676test $ac_write_fail = 0 ||
21677  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21678
21679
21680# configure is writing to config.log, and then calls config.status.
21681# config.status does its own redirection, appending to config.log.
21682# Unfortunately, on DOS this fails, as config.log is still kept open
21683# by configure, so config.status won't be able to write to it; its
21684# output is simply discarded.  So we exec the FD to /dev/null,
21685# effectively closing config.log, so it can be properly (re)opened and
21686# appended to by config.status.  When coming back to configure, we
21687# need to make the FD available again.
21688if test "$no_create" != yes; then
21689  ac_cs_success=:
21690  ac_config_status_args=
21691  test "$silent" = yes &&
21692    ac_config_status_args="$ac_config_status_args --quiet"
21693  exec 5>/dev/null
21694  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21695  exec 5>>config.log
21696  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21697  # would make configure fail if this is the last instruction.
21698  $ac_cs_success || as_fn_exit 1
21699fi
21700if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21701  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21702printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21703fi
21704
21705
21706