configure revision d21ab8bc
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for libXrender 0.9.11.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxrender/-/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/libxrender/-/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='libXrender'
624PACKAGE_TARNAME='libXrender'
625PACKAGE_VERSION='0.9.11'
626PACKAGE_STRING='libXrender 0.9.11'
627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxrender/-/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
667RENDER_LIBS
668RENDER_CFLAGS
669RENDER_VERSION
670XTMALLOC_ZERO_CFLAGS
671XMALLOC_ZERO_CFLAGS
672MALLOC_ZERO_CFLAGS
673MAN_SUBSTS
674XORG_MAN_PAGE
675ADMIN_MAN_DIR
676DRIVER_MAN_DIR
677MISC_MAN_DIR
678FILE_MAN_DIR
679LIB_MAN_DIR
680APP_MAN_DIR
681ADMIN_MAN_SUFFIX
682DRIVER_MAN_SUFFIX
683MISC_MAN_SUFFIX
684FILE_MAN_SUFFIX
685LIB_MAN_SUFFIX
686APP_MAN_SUFFIX
687INSTALL_CMD
688PKG_CONFIG_LIBDIR
689PKG_CONFIG_PATH
690PKG_CONFIG
691CHANGELOG_CMD
692STRICT_CFLAGS
693CWARNFLAGS
694BASE_CFLAGS
695LT_SYS_LIBRARY_PATH
696OTOOL64
697OTOOL
698LIPO
699NMEDIT
700DSYMUTIL
701MANIFEST_TOOL
702RANLIB
703ac_ct_AR
704AR
705DLLTOOL
706OBJDUMP
707FILECMD
708LN_S
709NM
710ac_ct_DUMPBIN
711DUMPBIN
712LD
713FGREP
714EGREP
715GREP
716SED
717am__fastdepCC_FALSE
718am__fastdepCC_TRUE
719CCDEPMODE
720am__nodep
721AMDEPBACKSLASH
722AMDEP_FALSE
723AMDEP_TRUE
724am__include
725DEPDIR
726OBJEXT
727EXEEXT
728ac_ct_CC
729CPPFLAGS
730LDFLAGS
731CFLAGS
732CC
733host_os
734host_vendor
735host_cpu
736host
737build_os
738build_vendor
739build_cpu
740build
741LIBTOOL
742AM_BACKSLASH
743AM_DEFAULT_VERBOSITY
744AM_DEFAULT_V
745AM_V
746CSCOPE
747ETAGS
748CTAGS
749am__untar
750am__tar
751AMTAR
752am__leading_dot
753SET_MAKE
754AWK
755mkdir_p
756MKDIR_P
757INSTALL_STRIP_PROGRAM
758STRIP
759install_sh
760MAKEINFO
761AUTOHEADER
762AUTOMAKE
763AUTOCONF
764ACLOCAL
765VERSION
766PACKAGE
767CYGPATH_W
768am__isrc
769INSTALL_DATA
770INSTALL_SCRIPT
771INSTALL_PROGRAM
772PACKAGE_BRIEF
773target_alias
774host_alias
775build_alias
776LIBS
777ECHO_T
778ECHO_N
779ECHO_C
780DEFS
781mandir
782localedir
783libdir
784psdir
785pdfdir
786dvidir
787htmldir
788infodir
789docdir
790oldincludedir
791includedir
792runstatedir
793localstatedir
794sharedstatedir
795sysconfdir
796datadir
797datarootdir
798libexecdir
799sbindir
800bindir
801program_transform_name
802prefix
803exec_prefix
804PACKAGE_URL
805PACKAGE_BUGREPORT
806PACKAGE_STRING
807PACKAGE_VERSION
808PACKAGE_TARNAME
809PACKAGE_NAME
810PATH_SEPARATOR
811SHELL
812am__quote'
813ac_subst_files=''
814ac_user_opts='
815enable_option_checking
816enable_silent_rules
817enable_shared
818enable_static
819with_pic
820enable_fast_install
821with_aix_soname
822enable_dependency_tracking
823with_gnu_ld
824with_sysroot
825enable_libtool_lock
826enable_selective_werror
827enable_strict_compilation
828enable_malloc0returnsnull
829'
830      ac_precious_vars='build_alias
831host_alias
832target_alias
833CC
834CFLAGS
835LDFLAGS
836LIBS
837CPPFLAGS
838LT_SYS_LIBRARY_PATH
839PKG_CONFIG
840PKG_CONFIG_PATH
841PKG_CONFIG_LIBDIR
842RENDER_CFLAGS
843RENDER_LIBS'
844
845
846# Initialize some variables set by options.
847ac_init_help=
848ac_init_version=false
849ac_unrecognized_opts=
850ac_unrecognized_sep=
851# The variables have the same names as the options, with
852# dashes changed to underlines.
853cache_file=/dev/null
854exec_prefix=NONE
855no_create=
856no_recursion=
857prefix=NONE
858program_prefix=NONE
859program_suffix=NONE
860program_transform_name=s,x,x,
861silent=
862site=
863srcdir=
864verbose=
865x_includes=NONE
866x_libraries=NONE
867
868# Installation directory options.
869# These are left unexpanded so users can "make install exec_prefix=/foo"
870# and all the variables that are supposed to be based on exec_prefix
871# by default will actually change.
872# Use braces instead of parens because sh, perl, etc. also accept them.
873# (The list follows the same order as the GNU Coding Standards.)
874bindir='${exec_prefix}/bin'
875sbindir='${exec_prefix}/sbin'
876libexecdir='${exec_prefix}/libexec'
877datarootdir='${prefix}/share'
878datadir='${datarootdir}'
879sysconfdir='${prefix}/etc'
880sharedstatedir='${prefix}/com'
881localstatedir='${prefix}/var'
882runstatedir='${localstatedir}/run'
883includedir='${prefix}/include'
884oldincludedir='/usr/include'
885docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
886infodir='${datarootdir}/info'
887htmldir='${docdir}'
888dvidir='${docdir}'
889pdfdir='${docdir}'
890psdir='${docdir}'
891libdir='${exec_prefix}/lib'
892localedir='${datarootdir}/locale'
893mandir='${datarootdir}/man'
894
895ac_prev=
896ac_dashdash=
897for ac_option
898do
899  # If the previous option needs an argument, assign it.
900  if test -n "$ac_prev"; then
901    eval $ac_prev=\$ac_option
902    ac_prev=
903    continue
904  fi
905
906  case $ac_option in
907  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908  *=)   ac_optarg= ;;
909  *)    ac_optarg=yes ;;
910  esac
911
912  case $ac_dashdash$ac_option in
913  --)
914    ac_dashdash=yes ;;
915
916  -bindir | --bindir | --bindi | --bind | --bin | --bi)
917    ac_prev=bindir ;;
918  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
919    bindir=$ac_optarg ;;
920
921  -build | --build | --buil | --bui | --bu)
922    ac_prev=build_alias ;;
923  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
924    build_alias=$ac_optarg ;;
925
926  -cache-file | --cache-file | --cache-fil | --cache-fi \
927  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
928    ac_prev=cache_file ;;
929  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
930  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
931    cache_file=$ac_optarg ;;
932
933  --config-cache | -C)
934    cache_file=config.cache ;;
935
936  -datadir | --datadir | --datadi | --datad)
937    ac_prev=datadir ;;
938  -datadir=* | --datadir=* | --datadi=* | --datad=*)
939    datadir=$ac_optarg ;;
940
941  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
942  | --dataroo | --dataro | --datar)
943    ac_prev=datarootdir ;;
944  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
945  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
946    datarootdir=$ac_optarg ;;
947
948  -disable-* | --disable-*)
949    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
950    # Reject names that are not valid shell variable names.
951    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952      as_fn_error $? "invalid feature name: \`$ac_useropt'"
953    ac_useropt_orig=$ac_useropt
954    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
955    case $ac_user_opts in
956      *"
957"enable_$ac_useropt"
958"*) ;;
959      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
960	 ac_unrecognized_sep=', ';;
961    esac
962    eval enable_$ac_useropt=no ;;
963
964  -docdir | --docdir | --docdi | --doc | --do)
965    ac_prev=docdir ;;
966  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
967    docdir=$ac_optarg ;;
968
969  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
970    ac_prev=dvidir ;;
971  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
972    dvidir=$ac_optarg ;;
973
974  -enable-* | --enable-*)
975    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
976    # Reject names that are not valid shell variable names.
977    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978      as_fn_error $? "invalid feature name: \`$ac_useropt'"
979    ac_useropt_orig=$ac_useropt
980    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
981    case $ac_user_opts in
982      *"
983"enable_$ac_useropt"
984"*) ;;
985      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
986	 ac_unrecognized_sep=', ';;
987    esac
988    eval enable_$ac_useropt=\$ac_optarg ;;
989
990  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
991  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
992  | --exec | --exe | --ex)
993    ac_prev=exec_prefix ;;
994  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
995  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
996  | --exec=* | --exe=* | --ex=*)
997    exec_prefix=$ac_optarg ;;
998
999  -gas | --gas | --ga | --g)
1000    # Obsolete; use --with-gas.
1001    with_gas=yes ;;
1002
1003  -help | --help | --hel | --he | -h)
1004    ac_init_help=long ;;
1005  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1006    ac_init_help=recursive ;;
1007  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1008    ac_init_help=short ;;
1009
1010  -host | --host | --hos | --ho)
1011    ac_prev=host_alias ;;
1012  -host=* | --host=* | --hos=* | --ho=*)
1013    host_alias=$ac_optarg ;;
1014
1015  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1016    ac_prev=htmldir ;;
1017  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1018  | --ht=*)
1019    htmldir=$ac_optarg ;;
1020
1021  -includedir | --includedir | --includedi | --included | --include \
1022  | --includ | --inclu | --incl | --inc)
1023    ac_prev=includedir ;;
1024  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1025  | --includ=* | --inclu=* | --incl=* | --inc=*)
1026    includedir=$ac_optarg ;;
1027
1028  -infodir | --infodir | --infodi | --infod | --info | --inf)
1029    ac_prev=infodir ;;
1030  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1031    infodir=$ac_optarg ;;
1032
1033  -libdir | --libdir | --libdi | --libd)
1034    ac_prev=libdir ;;
1035  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1036    libdir=$ac_optarg ;;
1037
1038  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1039  | --libexe | --libex | --libe)
1040    ac_prev=libexecdir ;;
1041  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1042  | --libexe=* | --libex=* | --libe=*)
1043    libexecdir=$ac_optarg ;;
1044
1045  -localedir | --localedir | --localedi | --localed | --locale)
1046    ac_prev=localedir ;;
1047  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1048    localedir=$ac_optarg ;;
1049
1050  -localstatedir | --localstatedir | --localstatedi | --localstated \
1051  | --localstate | --localstat | --localsta | --localst | --locals)
1052    ac_prev=localstatedir ;;
1053  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1054  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1055    localstatedir=$ac_optarg ;;
1056
1057  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1058    ac_prev=mandir ;;
1059  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1060    mandir=$ac_optarg ;;
1061
1062  -nfp | --nfp | --nf)
1063    # Obsolete; use --without-fp.
1064    with_fp=no ;;
1065
1066  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1067  | --no-cr | --no-c | -n)
1068    no_create=yes ;;
1069
1070  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1071  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1072    no_recursion=yes ;;
1073
1074  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1075  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1076  | --oldin | --oldi | --old | --ol | --o)
1077    ac_prev=oldincludedir ;;
1078  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1079  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1080  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1081    oldincludedir=$ac_optarg ;;
1082
1083  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1084    ac_prev=prefix ;;
1085  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1086    prefix=$ac_optarg ;;
1087
1088  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1089  | --program-pre | --program-pr | --program-p)
1090    ac_prev=program_prefix ;;
1091  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1092  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1093    program_prefix=$ac_optarg ;;
1094
1095  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1096  | --program-suf | --program-su | --program-s)
1097    ac_prev=program_suffix ;;
1098  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1099  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1100    program_suffix=$ac_optarg ;;
1101
1102  -program-transform-name | --program-transform-name \
1103  | --program-transform-nam | --program-transform-na \
1104  | --program-transform-n | --program-transform- \
1105  | --program-transform | --program-transfor \
1106  | --program-transfo | --program-transf \
1107  | --program-trans | --program-tran \
1108  | --progr-tra | --program-tr | --program-t)
1109    ac_prev=program_transform_name ;;
1110  -program-transform-name=* | --program-transform-name=* \
1111  | --program-transform-nam=* | --program-transform-na=* \
1112  | --program-transform-n=* | --program-transform-=* \
1113  | --program-transform=* | --program-transfor=* \
1114  | --program-transfo=* | --program-transf=* \
1115  | --program-trans=* | --program-tran=* \
1116  | --progr-tra=* | --program-tr=* | --program-t=*)
1117    program_transform_name=$ac_optarg ;;
1118
1119  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1120    ac_prev=pdfdir ;;
1121  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1122    pdfdir=$ac_optarg ;;
1123
1124  -psdir | --psdir | --psdi | --psd | --ps)
1125    ac_prev=psdir ;;
1126  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1127    psdir=$ac_optarg ;;
1128
1129  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1130  | -silent | --silent | --silen | --sile | --sil)
1131    silent=yes ;;
1132
1133  -runstatedir | --runstatedir | --runstatedi | --runstated \
1134  | --runstate | --runstat | --runsta | --runst | --runs \
1135  | --run | --ru | --r)
1136    ac_prev=runstatedir ;;
1137  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1138  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1139  | --run=* | --ru=* | --r=*)
1140    runstatedir=$ac_optarg ;;
1141
1142  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1143    ac_prev=sbindir ;;
1144  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1145  | --sbi=* | --sb=*)
1146    sbindir=$ac_optarg ;;
1147
1148  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1149  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1150  | --sharedst | --shareds | --shared | --share | --shar \
1151  | --sha | --sh)
1152    ac_prev=sharedstatedir ;;
1153  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1154  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1155  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1156  | --sha=* | --sh=*)
1157    sharedstatedir=$ac_optarg ;;
1158
1159  -site | --site | --sit)
1160    ac_prev=site ;;
1161  -site=* | --site=* | --sit=*)
1162    site=$ac_optarg ;;
1163
1164  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1165    ac_prev=srcdir ;;
1166  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1167    srcdir=$ac_optarg ;;
1168
1169  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1170  | --syscon | --sysco | --sysc | --sys | --sy)
1171    ac_prev=sysconfdir ;;
1172  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1173  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1174    sysconfdir=$ac_optarg ;;
1175
1176  -target | --target | --targe | --targ | --tar | --ta | --t)
1177    ac_prev=target_alias ;;
1178  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1179    target_alias=$ac_optarg ;;
1180
1181  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1182    verbose=yes ;;
1183
1184  -version | --version | --versio | --versi | --vers | -V)
1185    ac_init_version=: ;;
1186
1187  -with-* | --with-*)
1188    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1189    # Reject names that are not valid shell variable names.
1190    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191      as_fn_error $? "invalid package name: \`$ac_useropt'"
1192    ac_useropt_orig=$ac_useropt
1193    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1194    case $ac_user_opts in
1195      *"
1196"with_$ac_useropt"
1197"*) ;;
1198      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1199	 ac_unrecognized_sep=', ';;
1200    esac
1201    eval with_$ac_useropt=\$ac_optarg ;;
1202
1203  -without-* | --without-*)
1204    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205    # Reject names that are not valid shell variable names.
1206    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207      as_fn_error $? "invalid package name: \`$ac_useropt'"
1208    ac_useropt_orig=$ac_useropt
1209    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1210    case $ac_user_opts in
1211      *"
1212"with_$ac_useropt"
1213"*) ;;
1214      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1215	 ac_unrecognized_sep=', ';;
1216    esac
1217    eval with_$ac_useropt=no ;;
1218
1219  --x)
1220    # Obsolete; use --with-x.
1221    with_x=yes ;;
1222
1223  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1224  | --x-incl | --x-inc | --x-in | --x-i)
1225    ac_prev=x_includes ;;
1226  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1227  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1228    x_includes=$ac_optarg ;;
1229
1230  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1231  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1232    ac_prev=x_libraries ;;
1233  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1234  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1235    x_libraries=$ac_optarg ;;
1236
1237  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1238Try \`$0 --help' for more information"
1239    ;;
1240
1241  *=*)
1242    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1243    # Reject names that are not valid shell variable names.
1244    case $ac_envvar in #(
1245      '' | [0-9]* | *[!_$as_cr_alnum]* )
1246      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1247    esac
1248    eval $ac_envvar=\$ac_optarg
1249    export $ac_envvar ;;
1250
1251  *)
1252    # FIXME: should be removed in autoconf 3.0.
1253    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1254    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1255      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1256    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1257    ;;
1258
1259  esac
1260done
1261
1262if test -n "$ac_prev"; then
1263  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1264  as_fn_error $? "missing argument to $ac_option"
1265fi
1266
1267if test -n "$ac_unrecognized_opts"; then
1268  case $enable_option_checking in
1269    no) ;;
1270    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1271    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1272  esac
1273fi
1274
1275# Check all directory arguments for consistency.
1276for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1277		datadir sysconfdir sharedstatedir localstatedir includedir \
1278		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1279		libdir localedir mandir runstatedir
1280do
1281  eval ac_val=\$$ac_var
1282  # Remove trailing slashes.
1283  case $ac_val in
1284    */ )
1285      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1286      eval $ac_var=\$ac_val;;
1287  esac
1288  # Be sure to have absolute directory names.
1289  case $ac_val in
1290    [\\/$]* | ?:[\\/]* )  continue;;
1291    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1292  esac
1293  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1294done
1295
1296# There might be people who depend on the old broken behavior: `$host'
1297# used to hold the argument of --host etc.
1298# FIXME: To remove some day.
1299build=$build_alias
1300host=$host_alias
1301target=$target_alias
1302
1303# FIXME: To remove some day.
1304if test "x$host_alias" != x; then
1305  if test "x$build_alias" = x; then
1306    cross_compiling=maybe
1307  elif test "x$build_alias" != "x$host_alias"; then
1308    cross_compiling=yes
1309  fi
1310fi
1311
1312ac_tool_prefix=
1313test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314
1315test "$silent" = yes && exec 6>/dev/null
1316
1317
1318ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319ac_ls_di=`ls -di .` &&
1320ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321  as_fn_error $? "working directory cannot be determined"
1322test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323  as_fn_error $? "pwd does not report name of working directory"
1324
1325
1326# Find the source files, if location was not specified.
1327if test -z "$srcdir"; then
1328  ac_srcdir_defaulted=yes
1329  # Try the directory containing this script, then the parent directory.
1330  ac_confdir=`$as_dirname -- "$as_myself" ||
1331$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332	 X"$as_myself" : 'X\(//\)[^/]' \| \
1333	 X"$as_myself" : 'X\(//\)$' \| \
1334	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1335printf "%s\n" X"$as_myself" |
1336    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1337	    s//\1/
1338	    q
1339	  }
1340	  /^X\(\/\/\)[^/].*/{
1341	    s//\1/
1342	    q
1343	  }
1344	  /^X\(\/\/\)$/{
1345	    s//\1/
1346	    q
1347	  }
1348	  /^X\(\/\).*/{
1349	    s//\1/
1350	    q
1351	  }
1352	  s/.*/./; q'`
1353  srcdir=$ac_confdir
1354  if test ! -r "$srcdir/$ac_unique_file"; then
1355    srcdir=..
1356  fi
1357else
1358  ac_srcdir_defaulted=no
1359fi
1360if test ! -r "$srcdir/$ac_unique_file"; then
1361  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1362  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1363fi
1364ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1365ac_abs_confdir=`(
1366	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1367	pwd)`
1368# When building in place, set srcdir=.
1369if test "$ac_abs_confdir" = "$ac_pwd"; then
1370  srcdir=.
1371fi
1372# Remove unnecessary trailing slashes from srcdir.
1373# Double slashes in file names in object file debugging info
1374# mess up M-x gdb in Emacs.
1375case $srcdir in
1376*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377esac
1378for ac_var in $ac_precious_vars; do
1379  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380  eval ac_env_${ac_var}_value=\$${ac_var}
1381  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383done
1384
1385#
1386# Report the --help message.
1387#
1388if test "$ac_init_help" = "long"; then
1389  # Omit some internal or obsolete options to make the list less imposing.
1390  # This message is too long to be a string in the A/UX 3.1 sh.
1391  cat <<_ACEOF
1392\`configure' configures libXrender 0.9.11 to adapt to many kinds of systems.
1393
1394Usage: $0 [OPTION]... [VAR=VALUE]...
1395
1396To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397VAR=VALUE.  See below for descriptions of some of the useful variables.
1398
1399Defaults for the options are specified in brackets.
1400
1401Configuration:
1402  -h, --help              display this help and exit
1403      --help=short        display options specific to this package
1404      --help=recursive    display the short help of all the included packages
1405  -V, --version           display version information and exit
1406  -q, --quiet, --silent   do not print \`checking ...' messages
1407      --cache-file=FILE   cache test results in FILE [disabled]
1408  -C, --config-cache      alias for \`--cache-file=config.cache'
1409  -n, --no-create         do not create output files
1410      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1411
1412Installation directories:
1413  --prefix=PREFIX         install architecture-independent files in PREFIX
1414                          [$ac_default_prefix]
1415  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1416                          [PREFIX]
1417
1418By default, \`make install' will install all the files in
1419\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1420an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421for instance \`--prefix=\$HOME'.
1422
1423For better control, use the options below.
1424
1425Fine tuning of the installation directories:
1426  --bindir=DIR            user executables [EPREFIX/bin]
1427  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1428  --libexecdir=DIR        program executables [EPREFIX/libexec]
1429  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1430  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1431  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1432  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1433  --libdir=DIR            object code libraries [EPREFIX/lib]
1434  --includedir=DIR        C header files [PREFIX/include]
1435  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1436  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1437  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1438  --infodir=DIR           info documentation [DATAROOTDIR/info]
1439  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1440  --mandir=DIR            man documentation [DATAROOTDIR/man]
1441  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXrender]
1442  --htmldir=DIR           html documentation [DOCDIR]
1443  --dvidir=DIR            dvi documentation [DOCDIR]
1444  --pdfdir=DIR            pdf documentation [DOCDIR]
1445  --psdir=DIR             ps documentation [DOCDIR]
1446_ACEOF
1447
1448  cat <<\_ACEOF
1449
1450Program names:
1451  --program-prefix=PREFIX            prepend PREFIX to installed program names
1452  --program-suffix=SUFFIX            append SUFFIX to installed program names
1453  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1454
1455System types:
1456  --build=BUILD     configure for building on BUILD [guessed]
1457  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1458_ACEOF
1459fi
1460
1461if test -n "$ac_init_help"; then
1462  case $ac_init_help in
1463     short | recursive ) echo "Configuration of libXrender 0.9.11:";;
1464   esac
1465  cat <<\_ACEOF
1466
1467Optional Features:
1468  --disable-option-checking  ignore unrecognized --enable/--with options
1469  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1470  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1471  --enable-silent-rules   less verbose build output (undo: "make V=1")
1472  --disable-silent-rules  verbose build output (undo: "make V=0")
1473  --enable-shared[=PKGS]  build shared libraries [default=yes]
1474  --enable-static[=PKGS]  build static libraries [default=yes]
1475  --enable-fast-install[=PKGS]
1476                          optimize for fast installation [default=yes]
1477  --enable-dependency-tracking
1478                          do not reject slow dependency extractors
1479  --disable-dependency-tracking
1480                          speeds up one-time build
1481  --disable-libtool-lock  avoid locking (might break parallel builds)
1482  --disable-selective-werror
1483                          Turn off selective compiler errors. (default:
1484                          enabled)
1485  --enable-strict-compilation
1486                          Enable all warnings from compiler and make them
1487                          errors (default: disabled)
1488  --enable-malloc0returnsnull
1489                          malloc(0) returns NULL (default: auto)
1490
1491Optional Packages:
1492  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1493  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1494  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1495                          both]
1496  --with-aix-soname=aix|svr4|both
1497                          shared library versioning (aka "SONAME") variant to
1498                          provide on AIX, [default=aix].
1499  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1500  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1501                          compiler's sysroot if not specified).
1502
1503Some influential environment variables:
1504  CC          C compiler command
1505  CFLAGS      C compiler flags
1506  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1507              nonstandard directory <lib dir>
1508  LIBS        libraries to pass to the linker, e.g. -l<library>
1509  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1510              you have headers in a nonstandard directory <include dir>
1511  LT_SYS_LIBRARY_PATH
1512              User-defined run-time library search path.
1513  PKG_CONFIG  path to pkg-config utility
1514  PKG_CONFIG_PATH
1515              directories to add to pkg-config's search path
1516  PKG_CONFIG_LIBDIR
1517              path overriding pkg-config's built-in search path
1518  RENDER_CFLAGS
1519              C compiler flags for RENDER, overriding pkg-config
1520  RENDER_LIBS linker flags for RENDER, overriding pkg-config
1521
1522Use these variables to override the choices made by `configure' or to help
1523it to find libraries and programs with nonstandard names/locations.
1524
1525Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxrender/-/issues>.
1526_ACEOF
1527ac_status=$?
1528fi
1529
1530if test "$ac_init_help" = "recursive"; then
1531  # If there are subdirs, report their specific --help.
1532  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1533    test -d "$ac_dir" ||
1534      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1535      continue
1536    ac_builddir=.
1537
1538case "$ac_dir" in
1539.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540*)
1541  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1542  # A ".." for each directory in $ac_dir_suffix.
1543  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1544  case $ac_top_builddir_sub in
1545  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1547  esac ;;
1548esac
1549ac_abs_top_builddir=$ac_pwd
1550ac_abs_builddir=$ac_pwd$ac_dir_suffix
1551# for backward compatibility:
1552ac_top_builddir=$ac_top_build_prefix
1553
1554case $srcdir in
1555  .)  # We are building in place.
1556    ac_srcdir=.
1557    ac_top_srcdir=$ac_top_builddir_sub
1558    ac_abs_top_srcdir=$ac_pwd ;;
1559  [\\/]* | ?:[\\/]* )  # Absolute name.
1560    ac_srcdir=$srcdir$ac_dir_suffix;
1561    ac_top_srcdir=$srcdir
1562    ac_abs_top_srcdir=$srcdir ;;
1563  *) # Relative name.
1564    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1565    ac_top_srcdir=$ac_top_build_prefix$srcdir
1566    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1567esac
1568ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1569
1570    cd "$ac_dir" || { ac_status=$?; continue; }
1571    # Check for configure.gnu first; this name is used for a wrapper for
1572    # Metaconfig's "Configure" on case-insensitive file systems.
1573    if test -f "$ac_srcdir/configure.gnu"; then
1574      echo &&
1575      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1576    elif test -f "$ac_srcdir/configure"; then
1577      echo &&
1578      $SHELL "$ac_srcdir/configure" --help=recursive
1579    else
1580      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1581    fi || ac_status=$?
1582    cd "$ac_pwd" || { ac_status=$?; break; }
1583  done
1584fi
1585
1586test -n "$ac_init_help" && exit $ac_status
1587if $ac_init_version; then
1588  cat <<\_ACEOF
1589libXrender configure 0.9.11
1590generated by GNU Autoconf 2.71
1591
1592Copyright (C) 2021 Free Software Foundation, Inc.
1593This configure script is free software; the Free Software Foundation
1594gives unlimited permission to copy, distribute and modify it.
1595_ACEOF
1596  exit
1597fi
1598
1599## ------------------------ ##
1600## Autoconf initialization. ##
1601## ------------------------ ##
1602
1603# ac_fn_c_try_compile LINENO
1604# --------------------------
1605# Try to compile conftest.$ac_ext, and return whether this succeeded.
1606ac_fn_c_try_compile ()
1607{
1608  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609  rm -f conftest.$ac_objext conftest.beam
1610  if { { ac_try="$ac_compile"
1611case "(($ac_try" in
1612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613  *) ac_try_echo=$ac_try;;
1614esac
1615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616printf "%s\n" "$ac_try_echo"; } >&5
1617  (eval "$ac_compile") 2>conftest.err
1618  ac_status=$?
1619  if test -s conftest.err; then
1620    grep -v '^ *+' conftest.err >conftest.er1
1621    cat conftest.er1 >&5
1622    mv -f conftest.er1 conftest.err
1623  fi
1624  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625  test $ac_status = 0; } && {
1626	 test -z "$ac_c_werror_flag" ||
1627	 test ! -s conftest.err
1628       } && test -s conftest.$ac_objext
1629then :
1630  ac_retval=0
1631else $as_nop
1632  printf "%s\n" "$as_me: failed program was:" >&5
1633sed 's/^/| /' conftest.$ac_ext >&5
1634
1635	ac_retval=1
1636fi
1637  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638  as_fn_set_status $ac_retval
1639
1640} # ac_fn_c_try_compile
1641
1642# ac_fn_c_try_link LINENO
1643# -----------------------
1644# Try to link conftest.$ac_ext, and return whether this succeeded.
1645ac_fn_c_try_link ()
1646{
1647  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1649  if { { ac_try="$ac_link"
1650case "(($ac_try" in
1651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652  *) ac_try_echo=$ac_try;;
1653esac
1654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655printf "%s\n" "$ac_try_echo"; } >&5
1656  (eval "$ac_link") 2>conftest.err
1657  ac_status=$?
1658  if test -s conftest.err; then
1659    grep -v '^ *+' conftest.err >conftest.er1
1660    cat conftest.er1 >&5
1661    mv -f conftest.er1 conftest.err
1662  fi
1663  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664  test $ac_status = 0; } && {
1665	 test -z "$ac_c_werror_flag" ||
1666	 test ! -s conftest.err
1667       } && test -s conftest$ac_exeext && {
1668	 test "$cross_compiling" = yes ||
1669	 test -x conftest$ac_exeext
1670       }
1671then :
1672  ac_retval=0
1673else $as_nop
1674  printf "%s\n" "$as_me: failed program was:" >&5
1675sed 's/^/| /' conftest.$ac_ext >&5
1676
1677	ac_retval=1
1678fi
1679  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1680  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1681  # interfere with the next link command; also delete a directory that is
1682  # left behind by Apple's compiler.  We do this before executing the actions.
1683  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1684  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685  as_fn_set_status $ac_retval
1686
1687} # ac_fn_c_try_link
1688
1689# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1690# -------------------------------------------------------
1691# Tests whether HEADER exists and can be compiled using the include files in
1692# INCLUDES, setting the cache variable VAR accordingly.
1693ac_fn_c_check_header_compile ()
1694{
1695  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1697printf %s "checking for $2... " >&6; }
1698if eval test \${$3+y}
1699then :
1700  printf %s "(cached) " >&6
1701else $as_nop
1702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703/* end confdefs.h.  */
1704$4
1705#include <$2>
1706_ACEOF
1707if ac_fn_c_try_compile "$LINENO"
1708then :
1709  eval "$3=yes"
1710else $as_nop
1711  eval "$3=no"
1712fi
1713rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1714fi
1715eval ac_res=\$$3
1716	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717printf "%s\n" "$ac_res" >&6; }
1718  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719
1720} # ac_fn_c_check_header_compile
1721
1722# ac_fn_c_check_func LINENO FUNC VAR
1723# ----------------------------------
1724# Tests whether FUNC exists, setting the cache variable VAR accordingly
1725ac_fn_c_check_func ()
1726{
1727  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729printf %s "checking for $2... " >&6; }
1730if eval test \${$3+y}
1731then :
1732  printf %s "(cached) " >&6
1733else $as_nop
1734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735/* end confdefs.h.  */
1736/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1737   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1738#define $2 innocuous_$2
1739
1740/* System header to define __stub macros and hopefully few prototypes,
1741   which can conflict with char $2 (); below.  */
1742
1743#include <limits.h>
1744#undef $2
1745
1746/* Override any GCC internal prototype to avoid an error.
1747   Use char because int might match the return type of a GCC
1748   builtin and then its argument prototype would still apply.  */
1749#ifdef __cplusplus
1750extern "C"
1751#endif
1752char $2 ();
1753/* The GNU C library defines this for functions which it implements
1754    to always fail with ENOSYS.  Some functions are actually named
1755    something starting with __ and the normal name is an alias.  */
1756#if defined __stub_$2 || defined __stub___$2
1757choke me
1758#endif
1759
1760int
1761main (void)
1762{
1763return $2 ();
1764  ;
1765  return 0;
1766}
1767_ACEOF
1768if ac_fn_c_try_link "$LINENO"
1769then :
1770  eval "$3=yes"
1771else $as_nop
1772  eval "$3=no"
1773fi
1774rm -f core conftest.err conftest.$ac_objext conftest.beam \
1775    conftest$ac_exeext conftest.$ac_ext
1776fi
1777eval ac_res=\$$3
1778	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779printf "%s\n" "$ac_res" >&6; }
1780  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781
1782} # ac_fn_c_check_func
1783
1784# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1785# ------------------------------------------------------------------
1786# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1787# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1788ac_fn_check_decl ()
1789{
1790  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791  as_decl_name=`echo $2|sed 's/ *(.*//'`
1792  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1793printf %s "checking whether $as_decl_name is declared... " >&6; }
1794if eval test \${$3+y}
1795then :
1796  printf %s "(cached) " >&6
1797else $as_nop
1798  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1799  eval ac_save_FLAGS=\$$6
1800  as_fn_append $6 " $5"
1801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802/* end confdefs.h.  */
1803$4
1804int
1805main (void)
1806{
1807#ifndef $as_decl_name
1808#ifdef __cplusplus
1809  (void) $as_decl_use;
1810#else
1811  (void) $as_decl_name;
1812#endif
1813#endif
1814
1815  ;
1816  return 0;
1817}
1818_ACEOF
1819if ac_fn_c_try_compile "$LINENO"
1820then :
1821  eval "$3=yes"
1822else $as_nop
1823  eval "$3=no"
1824fi
1825rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1826  eval $6=\$ac_save_FLAGS
1827
1828fi
1829eval ac_res=\$$3
1830	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831printf "%s\n" "$ac_res" >&6; }
1832  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833
1834} # ac_fn_check_decl
1835
1836# ac_fn_c_try_run LINENO
1837# ----------------------
1838# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1839# executables *can* be run.
1840ac_fn_c_try_run ()
1841{
1842  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843  if { { ac_try="$ac_link"
1844case "(($ac_try" in
1845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846  *) ac_try_echo=$ac_try;;
1847esac
1848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849printf "%s\n" "$ac_try_echo"; } >&5
1850  (eval "$ac_link") 2>&5
1851  ac_status=$?
1852  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1854  { { case "(($ac_try" in
1855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856  *) ac_try_echo=$ac_try;;
1857esac
1858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859printf "%s\n" "$ac_try_echo"; } >&5
1860  (eval "$ac_try") 2>&5
1861  ac_status=$?
1862  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863  test $ac_status = 0; }; }
1864then :
1865  ac_retval=0
1866else $as_nop
1867  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1868       printf "%s\n" "$as_me: failed program was:" >&5
1869sed 's/^/| /' conftest.$ac_ext >&5
1870
1871       ac_retval=$ac_status
1872fi
1873  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875  as_fn_set_status $ac_retval
1876
1877} # ac_fn_c_try_run
1878ac_configure_args_raw=
1879for ac_arg
1880do
1881  case $ac_arg in
1882  *\'*)
1883    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1884  esac
1885  as_fn_append ac_configure_args_raw " '$ac_arg'"
1886done
1887
1888case $ac_configure_args_raw in
1889  *$as_nl*)
1890    ac_safe_unquote= ;;
1891  *)
1892    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1893    ac_unsafe_a="$ac_unsafe_z#~"
1894    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1895    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1896esac
1897
1898cat >config.log <<_ACEOF
1899This file contains any messages produced by compilers while
1900running configure, to aid debugging if configure makes a mistake.
1901
1902It was created by libXrender $as_me 0.9.11, which was
1903generated by GNU Autoconf 2.71.  Invocation command line was
1904
1905  $ $0$ac_configure_args_raw
1906
1907_ACEOF
1908exec 5>>config.log
1909{
1910cat <<_ASUNAME
1911## --------- ##
1912## Platform. ##
1913## --------- ##
1914
1915hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1916uname -m = `(uname -m) 2>/dev/null || echo unknown`
1917uname -r = `(uname -r) 2>/dev/null || echo unknown`
1918uname -s = `(uname -s) 2>/dev/null || echo unknown`
1919uname -v = `(uname -v) 2>/dev/null || echo unknown`
1920
1921/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1922/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1923
1924/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1925/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1926/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1927/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1928/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1929/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1930/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1931
1932_ASUNAME
1933
1934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1935for as_dir in $PATH
1936do
1937  IFS=$as_save_IFS
1938  case $as_dir in #(((
1939    '') as_dir=./ ;;
1940    */) ;;
1941    *) as_dir=$as_dir/ ;;
1942  esac
1943    printf "%s\n" "PATH: $as_dir"
1944  done
1945IFS=$as_save_IFS
1946
1947} >&5
1948
1949cat >&5 <<_ACEOF
1950
1951
1952## ----------- ##
1953## Core tests. ##
1954## ----------- ##
1955
1956_ACEOF
1957
1958
1959# Keep a trace of the command line.
1960# Strip out --no-create and --no-recursion so they do not pile up.
1961# Strip out --silent because we don't want to record it for future runs.
1962# Also quote any args containing shell meta-characters.
1963# Make two passes to allow for proper duplicate-argument suppression.
1964ac_configure_args=
1965ac_configure_args0=
1966ac_configure_args1=
1967ac_must_keep_next=false
1968for ac_pass in 1 2
1969do
1970  for ac_arg
1971  do
1972    case $ac_arg in
1973    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1974    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1975    | -silent | --silent | --silen | --sile | --sil)
1976      continue ;;
1977    *\'*)
1978      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1979    esac
1980    case $ac_pass in
1981    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1982    2)
1983      as_fn_append ac_configure_args1 " '$ac_arg'"
1984      if test $ac_must_keep_next = true; then
1985	ac_must_keep_next=false # Got value, back to normal.
1986      else
1987	case $ac_arg in
1988	  *=* | --config-cache | -C | -disable-* | --disable-* \
1989	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1990	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1991	  | -with-* | --with-* | -without-* | --without-* | --x)
1992	    case "$ac_configure_args0 " in
1993	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1994	    esac
1995	    ;;
1996	  -* ) ac_must_keep_next=true ;;
1997	esac
1998      fi
1999      as_fn_append ac_configure_args " '$ac_arg'"
2000      ;;
2001    esac
2002  done
2003done
2004{ ac_configure_args0=; unset ac_configure_args0;}
2005{ ac_configure_args1=; unset ac_configure_args1;}
2006
2007# When interrupted or exit'd, cleanup temporary files, and complete
2008# config.log.  We remove comments because anyway the quotes in there
2009# would cause problems or look ugly.
2010# WARNING: Use '\'' to represent an apostrophe within the trap.
2011# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2012trap 'exit_status=$?
2013  # Sanitize IFS.
2014  IFS=" ""	$as_nl"
2015  # Save into config.log some information that might help in debugging.
2016  {
2017    echo
2018
2019    printf "%s\n" "## ---------------- ##
2020## Cache variables. ##
2021## ---------------- ##"
2022    echo
2023    # The following way of writing the cache mishandles newlines in values,
2024(
2025  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2026    eval ac_val=\$$ac_var
2027    case $ac_val in #(
2028    *${as_nl}*)
2029      case $ac_var in #(
2030      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2031printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2032      esac
2033      case $ac_var in #(
2034      _ | IFS | as_nl) ;; #(
2035      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2036      *) { eval $ac_var=; unset $ac_var;} ;;
2037      esac ;;
2038    esac
2039  done
2040  (set) 2>&1 |
2041    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2042    *${as_nl}ac_space=\ *)
2043      sed -n \
2044	"s/'\''/'\''\\\\'\'''\''/g;
2045	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2046      ;; #(
2047    *)
2048      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2049      ;;
2050    esac |
2051    sort
2052)
2053    echo
2054
2055    printf "%s\n" "## ----------------- ##
2056## Output variables. ##
2057## ----------------- ##"
2058    echo
2059    for ac_var in $ac_subst_vars
2060    do
2061      eval ac_val=\$$ac_var
2062      case $ac_val in
2063      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2064      esac
2065      printf "%s\n" "$ac_var='\''$ac_val'\''"
2066    done | sort
2067    echo
2068
2069    if test -n "$ac_subst_files"; then
2070      printf "%s\n" "## ------------------- ##
2071## File substitutions. ##
2072## ------------------- ##"
2073      echo
2074      for ac_var in $ac_subst_files
2075      do
2076	eval ac_val=\$$ac_var
2077	case $ac_val in
2078	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2079	esac
2080	printf "%s\n" "$ac_var='\''$ac_val'\''"
2081      done | sort
2082      echo
2083    fi
2084
2085    if test -s confdefs.h; then
2086      printf "%s\n" "## ----------- ##
2087## confdefs.h. ##
2088## ----------- ##"
2089      echo
2090      cat confdefs.h
2091      echo
2092    fi
2093    test "$ac_signal" != 0 &&
2094      printf "%s\n" "$as_me: caught signal $ac_signal"
2095    printf "%s\n" "$as_me: exit $exit_status"
2096  } >&5
2097  rm -f core *.core core.conftest.* &&
2098    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2099    exit $exit_status
2100' 0
2101for ac_signal in 1 2 13 15; do
2102  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2103done
2104ac_signal=0
2105
2106# confdefs.h avoids OS command line length limits that DEFS can exceed.
2107rm -f -r conftest* confdefs.h
2108
2109printf "%s\n" "/* confdefs.h */" > confdefs.h
2110
2111# Predefined preprocessor variables.
2112
2113printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2114
2115printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2116
2117printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2118
2119printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2120
2121printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2122
2123printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2124
2125
2126# Let the site file select an alternate cache file if it wants to.
2127# Prefer an explicitly selected file to automatically selected ones.
2128if test -n "$CONFIG_SITE"; then
2129  ac_site_files="$CONFIG_SITE"
2130elif test "x$prefix" != xNONE; then
2131  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2132else
2133  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2134fi
2135
2136for ac_site_file in $ac_site_files
2137do
2138  case $ac_site_file in #(
2139  */*) :
2140     ;; #(
2141  *) :
2142    ac_site_file=./$ac_site_file ;;
2143esac
2144  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2145    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2146printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2147    sed 's/^/| /' "$ac_site_file" >&5
2148    . "$ac_site_file" \
2149      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2150printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2151as_fn_error $? "failed to load site script $ac_site_file
2152See \`config.log' for more details" "$LINENO" 5; }
2153  fi
2154done
2155
2156if test -r "$cache_file"; then
2157  # Some versions of bash will fail to source /dev/null (special files
2158  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2159  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2160    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2161printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2162    case $cache_file in
2163      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2164      *)                      . "./$cache_file";;
2165    esac
2166  fi
2167else
2168  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2169printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2170  >$cache_file
2171fi
2172
2173# Test code for whether the C compiler supports C89 (global declarations)
2174ac_c_conftest_c89_globals='
2175/* Does the compiler advertise C89 conformance?
2176   Do not test the value of __STDC__, because some compilers set it to 0
2177   while being otherwise adequately conformant. */
2178#if !defined __STDC__
2179# error "Compiler does not advertise C89 conformance"
2180#endif
2181
2182#include <stddef.h>
2183#include <stdarg.h>
2184struct stat;
2185/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2186struct buf { int x; };
2187struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2188static char *e (p, i)
2189     char **p;
2190     int i;
2191{
2192  return p[i];
2193}
2194static char *f (char * (*g) (char **, int), char **p, ...)
2195{
2196  char *s;
2197  va_list v;
2198  va_start (v,p);
2199  s = g (p, va_arg (v,int));
2200  va_end (v);
2201  return s;
2202}
2203
2204/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2205   function prototypes and stuff, but not \xHH hex character constants.
2206   These do not provoke an error unfortunately, instead are silently treated
2207   as an "x".  The following induces an error, until -std is added to get
2208   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2209   array size at least.  It is necessary to write \x00 == 0 to get something
2210   that is true only with -std.  */
2211int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2212
2213/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2214   inside strings and character constants.  */
2215#define FOO(x) '\''x'\''
2216int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2217
2218int test (int i, double x);
2219struct s1 {int (*f) (int a);};
2220struct s2 {int (*f) (double a);};
2221int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2222               int, int);'
2223
2224# Test code for whether the C compiler supports C89 (body of main).
2225ac_c_conftest_c89_main='
2226ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2227'
2228
2229# Test code for whether the C compiler supports C99 (global declarations)
2230ac_c_conftest_c99_globals='
2231// Does the compiler advertise C99 conformance?
2232#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2233# error "Compiler does not advertise C99 conformance"
2234#endif
2235
2236#include <stdbool.h>
2237extern int puts (const char *);
2238extern int printf (const char *, ...);
2239extern int dprintf (int, const char *, ...);
2240extern void *malloc (size_t);
2241
2242// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2243// dprintf is used instead of fprintf to avoid needing to declare
2244// FILE and stderr.
2245#define debug(...) dprintf (2, __VA_ARGS__)
2246#define showlist(...) puts (#__VA_ARGS__)
2247#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2248static void
2249test_varargs_macros (void)
2250{
2251  int x = 1234;
2252  int y = 5678;
2253  debug ("Flag");
2254  debug ("X = %d\n", x);
2255  showlist (The first, second, and third items.);
2256  report (x>y, "x is %d but y is %d", x, y);
2257}
2258
2259// Check long long types.
2260#define BIG64 18446744073709551615ull
2261#define BIG32 4294967295ul
2262#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2263#if !BIG_OK
2264  #error "your preprocessor is broken"
2265#endif
2266#if BIG_OK
2267#else
2268  #error "your preprocessor is broken"
2269#endif
2270static long long int bignum = -9223372036854775807LL;
2271static unsigned long long int ubignum = BIG64;
2272
2273struct incomplete_array
2274{
2275  int datasize;
2276  double data[];
2277};
2278
2279struct named_init {
2280  int number;
2281  const wchar_t *name;
2282  double average;
2283};
2284
2285typedef const char *ccp;
2286
2287static inline int
2288test_restrict (ccp restrict text)
2289{
2290  // See if C++-style comments work.
2291  // Iterate through items via the restricted pointer.
2292  // Also check for declarations in for loops.
2293  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2294    continue;
2295  return 0;
2296}
2297
2298// Check varargs and va_copy.
2299static bool
2300test_varargs (const char *format, ...)
2301{
2302  va_list args;
2303  va_start (args, format);
2304  va_list args_copy;
2305  va_copy (args_copy, args);
2306
2307  const char *str = "";
2308  int number = 0;
2309  float fnumber = 0;
2310
2311  while (*format)
2312    {
2313      switch (*format++)
2314	{
2315	case '\''s'\'': // string
2316	  str = va_arg (args_copy, const char *);
2317	  break;
2318	case '\''d'\'': // int
2319	  number = va_arg (args_copy, int);
2320	  break;
2321	case '\''f'\'': // float
2322	  fnumber = va_arg (args_copy, double);
2323	  break;
2324	default:
2325	  break;
2326	}
2327    }
2328  va_end (args_copy);
2329  va_end (args);
2330
2331  return *str && number && fnumber;
2332}
2333'
2334
2335# Test code for whether the C compiler supports C99 (body of main).
2336ac_c_conftest_c99_main='
2337  // Check bool.
2338  _Bool success = false;
2339  success |= (argc != 0);
2340
2341  // Check restrict.
2342  if (test_restrict ("String literal") == 0)
2343    success = true;
2344  char *restrict newvar = "Another string";
2345
2346  // Check varargs.
2347  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2348  test_varargs_macros ();
2349
2350  // Check flexible array members.
2351  struct incomplete_array *ia =
2352    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2353  ia->datasize = 10;
2354  for (int i = 0; i < ia->datasize; ++i)
2355    ia->data[i] = i * 1.234;
2356
2357  // Check named initializers.
2358  struct named_init ni = {
2359    .number = 34,
2360    .name = L"Test wide string",
2361    .average = 543.34343,
2362  };
2363
2364  ni.number = 58;
2365
2366  int dynamic_array[ni.number];
2367  dynamic_array[0] = argv[0][0];
2368  dynamic_array[ni.number - 1] = 543;
2369
2370  // work around unused variable warnings
2371  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2372	 || dynamic_array[ni.number - 1] != 543);
2373'
2374
2375# Test code for whether the C compiler supports C11 (global declarations)
2376ac_c_conftest_c11_globals='
2377// Does the compiler advertise C11 conformance?
2378#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2379# error "Compiler does not advertise C11 conformance"
2380#endif
2381
2382// Check _Alignas.
2383char _Alignas (double) aligned_as_double;
2384char _Alignas (0) no_special_alignment;
2385extern char aligned_as_int;
2386char _Alignas (0) _Alignas (int) aligned_as_int;
2387
2388// Check _Alignof.
2389enum
2390{
2391  int_alignment = _Alignof (int),
2392  int_array_alignment = _Alignof (int[100]),
2393  char_alignment = _Alignof (char)
2394};
2395_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2396
2397// Check _Noreturn.
2398int _Noreturn does_not_return (void) { for (;;) continue; }
2399
2400// Check _Static_assert.
2401struct test_static_assert
2402{
2403  int x;
2404  _Static_assert (sizeof (int) <= sizeof (long int),
2405                  "_Static_assert does not work in struct");
2406  long int y;
2407};
2408
2409// Check UTF-8 literals.
2410#define u8 syntax error!
2411char const utf8_literal[] = u8"happens to be ASCII" "another string";
2412
2413// Check duplicate typedefs.
2414typedef long *long_ptr;
2415typedef long int *long_ptr;
2416typedef long_ptr long_ptr;
2417
2418// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2419struct anonymous
2420{
2421  union {
2422    struct { int i; int j; };
2423    struct { int k; long int l; } w;
2424  };
2425  int m;
2426} v1;
2427'
2428
2429# Test code for whether the C compiler supports C11 (body of main).
2430ac_c_conftest_c11_main='
2431  _Static_assert ((offsetof (struct anonymous, i)
2432		   == offsetof (struct anonymous, w.k)),
2433		  "Anonymous union alignment botch");
2434  v1.i = 2;
2435  v1.w.k = 5;
2436  ok |= v1.i != 5;
2437'
2438
2439# Test code for whether the C compiler supports C11 (complete).
2440ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2441${ac_c_conftest_c99_globals}
2442${ac_c_conftest_c11_globals}
2443
2444int
2445main (int argc, char **argv)
2446{
2447  int ok = 0;
2448  ${ac_c_conftest_c89_main}
2449  ${ac_c_conftest_c99_main}
2450  ${ac_c_conftest_c11_main}
2451  return ok;
2452}
2453"
2454
2455# Test code for whether the C compiler supports C99 (complete).
2456ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2457${ac_c_conftest_c99_globals}
2458
2459int
2460main (int argc, char **argv)
2461{
2462  int ok = 0;
2463  ${ac_c_conftest_c89_main}
2464  ${ac_c_conftest_c99_main}
2465  return ok;
2466}
2467"
2468
2469# Test code for whether the C compiler supports C89 (complete).
2470ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2471
2472int
2473main (int argc, char **argv)
2474{
2475  int ok = 0;
2476  ${ac_c_conftest_c89_main}
2477  return ok;
2478}
2479"
2480
2481as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2482as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2483as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2484as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2485as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2486as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2487as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2488as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2489as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2490
2491# Auxiliary files required by this configure script.
2492ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2493
2494# Locations in which to look for auxiliary files.
2495ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2496
2497# Search for a directory containing all of the required auxiliary files,
2498# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2499# If we don't find one directory that contains all the files we need,
2500# we report the set of missing files from the *first* directory in
2501# $ac_aux_dir_candidates and give up.
2502ac_missing_aux_files=""
2503ac_first_candidate=:
2504printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506as_found=false
2507for as_dir in $ac_aux_dir_candidates
2508do
2509  IFS=$as_save_IFS
2510  case $as_dir in #(((
2511    '') as_dir=./ ;;
2512    */) ;;
2513    *) as_dir=$as_dir/ ;;
2514  esac
2515  as_found=:
2516
2517  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2518  ac_aux_dir_found=yes
2519  ac_install_sh=
2520  for ac_aux in $ac_aux_files
2521  do
2522    # As a special case, if "install-sh" is required, that requirement
2523    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2524    # and $ac_install_sh is set appropriately for whichever one is found.
2525    if test x"$ac_aux" = x"install-sh"
2526    then
2527      if 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}install.sh"; then
2531        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2532        ac_install_sh="${as_dir}install.sh -c"
2533      elif test -f "${as_dir}shtool"; then
2534        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2535        ac_install_sh="${as_dir}shtool install -c"
2536      else
2537        ac_aux_dir_found=no
2538        if $ac_first_candidate; then
2539          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2540        else
2541          break
2542        fi
2543      fi
2544    else
2545      if test -f "${as_dir}${ac_aux}"; then
2546        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2547      else
2548        ac_aux_dir_found=no
2549        if $ac_first_candidate; then
2550          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2551        else
2552          break
2553        fi
2554      fi
2555    fi
2556  done
2557  if test "$ac_aux_dir_found" = yes; then
2558    ac_aux_dir="$as_dir"
2559    break
2560  fi
2561  ac_first_candidate=false
2562
2563  as_found=false
2564done
2565IFS=$as_save_IFS
2566if $as_found
2567then :
2568
2569else $as_nop
2570  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2571fi
2572
2573
2574# These three variables are undocumented and unsupported,
2575# and are intended to be withdrawn in a future Autoconf release.
2576# They can cause serious problems if a builder's source tree is in a directory
2577# whose full name contains unusual characters.
2578if test -f "${ac_aux_dir}config.guess"; then
2579  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2580fi
2581if test -f "${ac_aux_dir}config.sub"; then
2582  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2583fi
2584if test -f "$ac_aux_dir/configure"; then
2585  ac_configure="$SHELL ${ac_aux_dir}configure"
2586fi
2587
2588# Check that the precious variables saved in the cache have kept the same
2589# value.
2590ac_cache_corrupted=false
2591for ac_var in $ac_precious_vars; do
2592  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2593  eval ac_new_set=\$ac_env_${ac_var}_set
2594  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2595  eval ac_new_val=\$ac_env_${ac_var}_value
2596  case $ac_old_set,$ac_new_set in
2597    set,)
2598      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2599printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2600      ac_cache_corrupted=: ;;
2601    ,set)
2602      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2603printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2604      ac_cache_corrupted=: ;;
2605    ,);;
2606    *)
2607      if test "x$ac_old_val" != "x$ac_new_val"; then
2608	# differences in whitespace do not lead to failure.
2609	ac_old_val_w=`echo x $ac_old_val`
2610	ac_new_val_w=`echo x $ac_new_val`
2611	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2612	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2613printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2614	  ac_cache_corrupted=:
2615	else
2616	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2617printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2618	  eval $ac_var=\$ac_old_val
2619	fi
2620	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2621printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2622	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2623printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2624      fi;;
2625  esac
2626  # Pass precious variables to config.status.
2627  if test "$ac_new_set" = set; then
2628    case $ac_new_val in
2629    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2630    *) ac_arg=$ac_var=$ac_new_val ;;
2631    esac
2632    case " $ac_configure_args " in
2633      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2634      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2635    esac
2636  fi
2637done
2638if $ac_cache_corrupted; then
2639  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2640printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2641  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2642printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2643  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2644	    and start over" "$LINENO" 5
2645fi
2646## -------------------- ##
2647## Main body of script. ##
2648## -------------------- ##
2649
2650ac_ext=c
2651ac_cpp='$CPP $CPPFLAGS'
2652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654ac_compiler_gnu=$ac_cv_c_compiler_gnu
2655
2656
2657
2658ac_config_headers="$ac_config_headers config.h"
2659
2660
2661PACKAGE_BRIEF="Library for the Render Extension to the X11 protocol"
2662
2663
2664# Initialize Automake
2665am__api_version='1.16'
2666
2667
2668
2669  # Find a good install program.  We prefer a C program (faster),
2670# so one script is as good as another.  But avoid the broken or
2671# incompatible versions:
2672# SysV /etc/install, /usr/sbin/install
2673# SunOS /usr/etc/install
2674# IRIX /sbin/install
2675# AIX /bin/install
2676# AmigaOS /C/install, which installs bootblocks on floppy discs
2677# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2678# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2679# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2680# OS/2's system install, which has a completely different semantic
2681# ./install, which can be erroneously created by make from ./install.sh.
2682# Reject install programs that cannot install multiple files.
2683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2684printf %s "checking for a BSD-compatible install... " >&6; }
2685if test -z "$INSTALL"; then
2686if test ${ac_cv_path_install+y}
2687then :
2688  printf %s "(cached) " >&6
2689else $as_nop
2690  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691for as_dir in $PATH
2692do
2693  IFS=$as_save_IFS
2694  case $as_dir in #(((
2695    '') as_dir=./ ;;
2696    */) ;;
2697    *) as_dir=$as_dir/ ;;
2698  esac
2699    # Account for fact that we put trailing slashes in our PATH walk.
2700case $as_dir in #((
2701  ./ | /[cC]/* | \
2702  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2703  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2704  /usr/ucb/* ) ;;
2705  *)
2706    # OSF1 and SCO ODT 3.0 have their own names for install.
2707    # Don't use installbsd from OSF since it installs stuff as root
2708    # by default.
2709    for ac_prog in ginstall scoinst install; do
2710      for ac_exec_ext in '' $ac_executable_extensions; do
2711	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2712	  if test $ac_prog = install &&
2713	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2714	    # AIX install.  It has an incompatible calling convention.
2715	    :
2716	  elif test $ac_prog = install &&
2717	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2718	    # program-specific install script used by HP pwplus--don't use.
2719	    :
2720	  else
2721	    rm -rf conftest.one conftest.two conftest.dir
2722	    echo one > conftest.one
2723	    echo two > conftest.two
2724	    mkdir conftest.dir
2725	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2726	      test -s conftest.one && test -s conftest.two &&
2727	      test -s conftest.dir/conftest.one &&
2728	      test -s conftest.dir/conftest.two
2729	    then
2730	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2731	      break 3
2732	    fi
2733	  fi
2734	fi
2735      done
2736    done
2737    ;;
2738esac
2739
2740  done
2741IFS=$as_save_IFS
2742
2743rm -rf conftest.one conftest.two conftest.dir
2744
2745fi
2746  if test ${ac_cv_path_install+y}; then
2747    INSTALL=$ac_cv_path_install
2748  else
2749    # As a last resort, use the slow shell script.  Don't cache a
2750    # value for INSTALL within a source directory, because that will
2751    # break other packages using the cache if that directory is
2752    # removed, or if the value is a relative name.
2753    INSTALL=$ac_install_sh
2754  fi
2755fi
2756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2757printf "%s\n" "$INSTALL" >&6; }
2758
2759# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2760# It thinks the first close brace ends the variable substitution.
2761test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2762
2763test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2764
2765test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2766
2767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2768printf %s "checking whether build environment is sane... " >&6; }
2769# Reject unsafe characters in $srcdir or the absolute working directory
2770# name.  Accept space and tab only in the latter.
2771am_lf='
2772'
2773case `pwd` in
2774  *[\\\"\#\$\&\'\`$am_lf]*)
2775    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2776esac
2777case $srcdir in
2778  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2779    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2780esac
2781
2782# Do 'set' in a subshell so we don't clobber the current shell's
2783# arguments.  Must try -L first in case configure is actually a
2784# symlink; some systems play weird games with the mod time of symlinks
2785# (eg FreeBSD returns the mod time of the symlink's containing
2786# directory).
2787if (
2788   am_has_slept=no
2789   for am_try in 1 2; do
2790     echo "timestamp, slept: $am_has_slept" > conftest.file
2791     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2792     if test "$*" = "X"; then
2793	# -L didn't work.
2794	set X `ls -t "$srcdir/configure" conftest.file`
2795     fi
2796     if test "$*" != "X $srcdir/configure conftest.file" \
2797	&& test "$*" != "X conftest.file $srcdir/configure"; then
2798
2799	# If neither matched, then we have a broken ls.  This can happen
2800	# if, for instance, CONFIG_SHELL is bash and it inherits a
2801	# broken ls alias from the environment.  This has actually
2802	# happened.  Such a system could not be considered "sane".
2803	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2804  alias in your environment" "$LINENO" 5
2805     fi
2806     if test "$2" = conftest.file || test $am_try -eq 2; then
2807       break
2808     fi
2809     # Just in case.
2810     sleep 1
2811     am_has_slept=yes
2812   done
2813   test "$2" = conftest.file
2814   )
2815then
2816   # Ok.
2817   :
2818else
2819   as_fn_error $? "newly created file is older than distributed files!
2820Check your system clock" "$LINENO" 5
2821fi
2822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2823printf "%s\n" "yes" >&6; }
2824# If we didn't sleep, we still need to ensure time stamps of config.status and
2825# generated files are strictly newer.
2826am_sleep_pid=
2827if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2828  ( sleep 1 ) &
2829  am_sleep_pid=$!
2830fi
2831
2832rm -f conftest.file
2833
2834test "$program_prefix" != NONE &&
2835  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2836# Use a double $ so make ignores it.
2837test "$program_suffix" != NONE &&
2838  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2839# Double any \ or $.
2840# By default was `s,x,x', remove it if useless.
2841ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2842program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2843
2844
2845# Expand $ac_aux_dir to an absolute path.
2846am_aux_dir=`cd "$ac_aux_dir" && pwd`
2847
2848
2849  if test x"${MISSING+set}" != xset; then
2850  MISSING="\${SHELL} '$am_aux_dir/missing'"
2851fi
2852# Use eval to expand $SHELL
2853if eval "$MISSING --is-lightweight"; then
2854  am_missing_run="$MISSING "
2855else
2856  am_missing_run=
2857  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2858printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2859fi
2860
2861if test x"${install_sh+set}" != xset; then
2862  case $am_aux_dir in
2863  *\ * | *\	*)
2864    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2865  *)
2866    install_sh="\${SHELL} $am_aux_dir/install-sh"
2867  esac
2868fi
2869
2870# Installed binaries are usually stripped using 'strip' when the user
2871# run "make install-strip".  However 'strip' might not be the right
2872# tool to use in cross-compilation environments, therefore Automake
2873# will honor the 'STRIP' environment variable to overrule this program.
2874if test "$cross_compiling" != no; then
2875  if test -n "$ac_tool_prefix"; then
2876  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2877set dummy ${ac_tool_prefix}strip; ac_word=$2
2878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879printf %s "checking for $ac_word... " >&6; }
2880if test ${ac_cv_prog_STRIP+y}
2881then :
2882  printf %s "(cached) " >&6
2883else $as_nop
2884  if test -n "$STRIP"; then
2885  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2886else
2887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888for as_dir in $PATH
2889do
2890  IFS=$as_save_IFS
2891  case $as_dir in #(((
2892    '') as_dir=./ ;;
2893    */) ;;
2894    *) as_dir=$as_dir/ ;;
2895  esac
2896    for ac_exec_ext in '' $ac_executable_extensions; do
2897  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2898    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2899    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2900    break 2
2901  fi
2902done
2903  done
2904IFS=$as_save_IFS
2905
2906fi
2907fi
2908STRIP=$ac_cv_prog_STRIP
2909if test -n "$STRIP"; then
2910  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2911printf "%s\n" "$STRIP" >&6; }
2912else
2913  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914printf "%s\n" "no" >&6; }
2915fi
2916
2917
2918fi
2919if test -z "$ac_cv_prog_STRIP"; then
2920  ac_ct_STRIP=$STRIP
2921  # Extract the first word of "strip", so it can be a program name with args.
2922set dummy strip; ac_word=$2
2923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2924printf %s "checking for $ac_word... " >&6; }
2925if test ${ac_cv_prog_ac_ct_STRIP+y}
2926then :
2927  printf %s "(cached) " >&6
2928else $as_nop
2929  if test -n "$ac_ct_STRIP"; then
2930  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2931else
2932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933for as_dir in $PATH
2934do
2935  IFS=$as_save_IFS
2936  case $as_dir in #(((
2937    '') as_dir=./ ;;
2938    */) ;;
2939    *) as_dir=$as_dir/ ;;
2940  esac
2941    for ac_exec_ext in '' $ac_executable_extensions; do
2942  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2943    ac_cv_prog_ac_ct_STRIP="strip"
2944    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2945    break 2
2946  fi
2947done
2948  done
2949IFS=$as_save_IFS
2950
2951fi
2952fi
2953ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2954if test -n "$ac_ct_STRIP"; then
2955  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2956printf "%s\n" "$ac_ct_STRIP" >&6; }
2957else
2958  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959printf "%s\n" "no" >&6; }
2960fi
2961
2962  if test "x$ac_ct_STRIP" = x; then
2963    STRIP=":"
2964  else
2965    case $cross_compiling:$ac_tool_warned in
2966yes:)
2967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2968printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2969ac_tool_warned=yes ;;
2970esac
2971    STRIP=$ac_ct_STRIP
2972  fi
2973else
2974  STRIP="$ac_cv_prog_STRIP"
2975fi
2976
2977fi
2978INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2979
2980
2981  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2982printf %s "checking for a race-free mkdir -p... " >&6; }
2983if test -z "$MKDIR_P"; then
2984  if test ${ac_cv_path_mkdir+y}
2985then :
2986  printf %s "(cached) " >&6
2987else $as_nop
2988  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2990do
2991  IFS=$as_save_IFS
2992  case $as_dir in #(((
2993    '') as_dir=./ ;;
2994    */) ;;
2995    *) as_dir=$as_dir/ ;;
2996  esac
2997    for ac_prog in mkdir gmkdir; do
2998	 for ac_exec_ext in '' $ac_executable_extensions; do
2999	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3000	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3001	     'mkdir ('*'coreutils) '* | \
3002	     'BusyBox '* | \
3003	     'mkdir (fileutils) '4.1*)
3004	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3005	       break 3;;
3006	   esac
3007	 done
3008       done
3009  done
3010IFS=$as_save_IFS
3011
3012fi
3013
3014  test -d ./--version && rmdir ./--version
3015  if test ${ac_cv_path_mkdir+y}; then
3016    MKDIR_P="$ac_cv_path_mkdir -p"
3017  else
3018    # As a last resort, use the slow shell script.  Don't cache a
3019    # value for MKDIR_P within a source directory, because that will
3020    # break other packages using the cache if that directory is
3021    # removed, or if the value is a relative name.
3022    MKDIR_P="$ac_install_sh -d"
3023  fi
3024fi
3025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3026printf "%s\n" "$MKDIR_P" >&6; }
3027
3028for ac_prog in gawk mawk nawk awk
3029do
3030  # Extract the first word of "$ac_prog", so it can be a program name with args.
3031set dummy $ac_prog; ac_word=$2
3032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033printf %s "checking for $ac_word... " >&6; }
3034if test ${ac_cv_prog_AWK+y}
3035then :
3036  printf %s "(cached) " >&6
3037else $as_nop
3038  if test -n "$AWK"; then
3039  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3040else
3041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042for as_dir in $PATH
3043do
3044  IFS=$as_save_IFS
3045  case $as_dir in #(((
3046    '') as_dir=./ ;;
3047    */) ;;
3048    *) as_dir=$as_dir/ ;;
3049  esac
3050    for ac_exec_ext in '' $ac_executable_extensions; do
3051  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3052    ac_cv_prog_AWK="$ac_prog"
3053    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3054    break 2
3055  fi
3056done
3057  done
3058IFS=$as_save_IFS
3059
3060fi
3061fi
3062AWK=$ac_cv_prog_AWK
3063if test -n "$AWK"; then
3064  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3065printf "%s\n" "$AWK" >&6; }
3066else
3067  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068printf "%s\n" "no" >&6; }
3069fi
3070
3071
3072  test -n "$AWK" && break
3073done
3074
3075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3076printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3077set x ${MAKE-make}
3078ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3079if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3080then :
3081  printf %s "(cached) " >&6
3082else $as_nop
3083  cat >conftest.make <<\_ACEOF
3084SHELL = /bin/sh
3085all:
3086	@echo '@@@%%%=$(MAKE)=@@@%%%'
3087_ACEOF
3088# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3089case `${MAKE-make} -f conftest.make 2>/dev/null` in
3090  *@@@%%%=?*=@@@%%%*)
3091    eval ac_cv_prog_make_${ac_make}_set=yes;;
3092  *)
3093    eval ac_cv_prog_make_${ac_make}_set=no;;
3094esac
3095rm -f conftest.make
3096fi
3097if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3098  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3099printf "%s\n" "yes" >&6; }
3100  SET_MAKE=
3101else
3102  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103printf "%s\n" "no" >&6; }
3104  SET_MAKE="MAKE=${MAKE-make}"
3105fi
3106
3107rm -rf .tst 2>/dev/null
3108mkdir .tst 2>/dev/null
3109if test -d .tst; then
3110  am__leading_dot=.
3111else
3112  am__leading_dot=_
3113fi
3114rmdir .tst 2>/dev/null
3115
3116# Check whether --enable-silent-rules was given.
3117if test ${enable_silent_rules+y}
3118then :
3119  enableval=$enable_silent_rules;
3120fi
3121
3122case $enable_silent_rules in # (((
3123  yes) AM_DEFAULT_VERBOSITY=0;;
3124   no) AM_DEFAULT_VERBOSITY=1;;
3125    *) AM_DEFAULT_VERBOSITY=1;;
3126esac
3127am_make=${MAKE-make}
3128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3129printf %s "checking whether $am_make supports nested variables... " >&6; }
3130if test ${am_cv_make_support_nested_variables+y}
3131then :
3132  printf %s "(cached) " >&6
3133else $as_nop
3134  if printf "%s\n" 'TRUE=$(BAR$(V))
3135BAR0=false
3136BAR1=true
3137V=1
3138am__doit:
3139	@$(TRUE)
3140.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3141  am_cv_make_support_nested_variables=yes
3142else
3143  am_cv_make_support_nested_variables=no
3144fi
3145fi
3146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3147printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3148if test $am_cv_make_support_nested_variables = yes; then
3149    AM_V='$(V)'
3150  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3151else
3152  AM_V=$AM_DEFAULT_VERBOSITY
3153  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3154fi
3155AM_BACKSLASH='\'
3156
3157if test "`cd $srcdir && pwd`" != "`pwd`"; then
3158  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3159  # is not polluted with repeated "-I."
3160  am__isrc=' -I$(srcdir)'
3161  # test to see if srcdir already configured
3162  if test -f $srcdir/config.status; then
3163    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3164  fi
3165fi
3166
3167# test whether we have cygpath
3168if test -z "$CYGPATH_W"; then
3169  if (cygpath --version) >/dev/null 2>/dev/null; then
3170    CYGPATH_W='cygpath -w'
3171  else
3172    CYGPATH_W=echo
3173  fi
3174fi
3175
3176
3177# Define the identity of the package.
3178 PACKAGE='libXrender'
3179 VERSION='0.9.11'
3180
3181
3182printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3183
3184
3185printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3186
3187# Some tools Automake needs.
3188
3189ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3190
3191
3192AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3193
3194
3195AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3196
3197
3198AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3199
3200
3201MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3202
3203# For better backward compatibility.  To be removed once Automake 1.9.x
3204# dies out for good.  For more background, see:
3205# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3206# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3207mkdir_p='$(MKDIR_P)'
3208
3209# We need awk for the "check" target (and possibly the TAP driver).  The
3210# system "awk" is bad on some platforms.
3211# Always define AMTAR for backward compatibility.  Yes, it's still used
3212# in the wild :-(  We should find a proper way to deprecate it ...
3213AMTAR='$${TAR-tar}'
3214
3215
3216# We'll loop over all known methods to create a tar archive until one works.
3217_am_tools='gnutar  pax cpio none'
3218
3219am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3220
3221
3222
3223
3224
3225# Variables for tags utilities; see am/tags.am
3226if test -z "$CTAGS"; then
3227  CTAGS=ctags
3228fi
3229
3230if test -z "$ETAGS"; then
3231  ETAGS=etags
3232fi
3233
3234if test -z "$CSCOPE"; then
3235  CSCOPE=cscope
3236fi
3237
3238
3239
3240# POSIX will say in a future version that running "rm -f" with no argument
3241# is OK; and we want to be able to make that assumption in our Makefile
3242# recipes.  So use an aggressive probe to check that the usage we want is
3243# actually supported "in the wild" to an acceptable degree.
3244# See automake bug#10828.
3245# To make any issue more visible, cause the running configure to be aborted
3246# by default if the 'rm' program in use doesn't match our expectations; the
3247# user can still override this though.
3248if rm -f && rm -fr && rm -rf; then : OK; else
3249  cat >&2 <<'END'
3250Oops!
3251
3252Your 'rm' program seems unable to run without file operands specified
3253on the command line, even when the '-f' option is present.  This is contrary
3254to the behaviour of most rm programs out there, and not conforming with
3255the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3256
3257Please tell bug-automake@gnu.org about your system, including the value
3258of your $PATH and any error possibly output before this message.  This
3259can help us improve future automake versions.
3260
3261END
3262  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3263    echo 'Configuration will proceed anyway, since you have set the' >&2
3264    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3265    echo >&2
3266  else
3267    cat >&2 <<'END'
3268Aborting the configuration process, to ensure you take notice of the issue.
3269
3270You can download and install GNU coreutils to get an 'rm' implementation
3271that behaves properly: <https://www.gnu.org/software/coreutils/>.
3272
3273If you want to complete the configuration process using your problematic
3274'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3275to "yes", and re-run configure.
3276
3277END
3278    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3279  fi
3280fi
3281
3282
3283# Initialize libtool
3284case `pwd` in
3285  *\ * | *\	*)
3286    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3287printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3288esac
3289
3290
3291
3292macro_version='2.4.7'
3293macro_revision='2.4.7'
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308ltmain=$ac_aux_dir/ltmain.sh
3309
3310
3311
3312  # Make sure we can run config.sub.
3313$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3314  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3315
3316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3317printf %s "checking build system type... " >&6; }
3318if test ${ac_cv_build+y}
3319then :
3320  printf %s "(cached) " >&6
3321else $as_nop
3322  ac_build_alias=$build_alias
3323test "x$ac_build_alias" = x &&
3324  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3325test "x$ac_build_alias" = x &&
3326  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3327ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3328  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3329
3330fi
3331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3332printf "%s\n" "$ac_cv_build" >&6; }
3333case $ac_cv_build in
3334*-*-*) ;;
3335*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3336esac
3337build=$ac_cv_build
3338ac_save_IFS=$IFS; IFS='-'
3339set x $ac_cv_build
3340shift
3341build_cpu=$1
3342build_vendor=$2
3343shift; shift
3344# Remember, the first character of IFS is used to create $*,
3345# except with old shells:
3346build_os=$*
3347IFS=$ac_save_IFS
3348case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3349
3350
3351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3352printf %s "checking host system type... " >&6; }
3353if test ${ac_cv_host+y}
3354then :
3355  printf %s "(cached) " >&6
3356else $as_nop
3357  if test "x$host_alias" = x; then
3358  ac_cv_host=$ac_cv_build
3359else
3360  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3361    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3362fi
3363
3364fi
3365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3366printf "%s\n" "$ac_cv_host" >&6; }
3367case $ac_cv_host in
3368*-*-*) ;;
3369*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3370esac
3371host=$ac_cv_host
3372ac_save_IFS=$IFS; IFS='-'
3373set x $ac_cv_host
3374shift
3375host_cpu=$1
3376host_vendor=$2
3377shift; shift
3378# Remember, the first character of IFS is used to create $*,
3379# except with old shells:
3380host_os=$*
3381IFS=$ac_save_IFS
3382case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3383
3384
3385# Backslashify metacharacters that are still active within
3386# double-quoted strings.
3387sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3388
3389# Same as above, but do not quote variable references.
3390double_quote_subst='s/\(["`\\]\)/\\\1/g'
3391
3392# Sed substitution to delay expansion of an escaped shell variable in a
3393# double_quote_subst'ed string.
3394delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3395
3396# Sed substitution to delay expansion of an escaped single quote.
3397delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3398
3399# Sed substitution to avoid accidental globbing in evaled expressions
3400no_glob_subst='s/\*/\\\*/g'
3401
3402ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3403ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3404ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3405
3406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3407printf %s "checking how to print strings... " >&6; }
3408# Test print first, because it will be a builtin if present.
3409if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3410   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3411  ECHO='print -r --'
3412elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3413  ECHO='printf %s\n'
3414else
3415  # Use this function as a fallback that always works.
3416  func_fallback_echo ()
3417  {
3418    eval 'cat <<_LTECHO_EOF
3419$1
3420_LTECHO_EOF'
3421  }
3422  ECHO='func_fallback_echo'
3423fi
3424
3425# func_echo_all arg...
3426# Invoke $ECHO with all args, space-separated.
3427func_echo_all ()
3428{
3429    $ECHO ""
3430}
3431
3432case $ECHO in
3433  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3434printf "%s\n" "printf" >&6; } ;;
3435  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3436printf "%s\n" "print -r" >&6; } ;;
3437  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3438printf "%s\n" "cat" >&6; } ;;
3439esac
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463DEPDIR="${am__leading_dot}deps"
3464
3465ac_config_commands="$ac_config_commands depfiles"
3466
3467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3468printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3469cat > confinc.mk << 'END'
3470am__doit:
3471	@echo this is the am__doit target >confinc.out
3472.PHONY: am__doit
3473END
3474am__include="#"
3475am__quote=
3476# BSD make does it like this.
3477echo '.include "confinc.mk" # ignored' > confmf.BSD
3478# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3479echo 'include confinc.mk # ignored' > confmf.GNU
3480_am_result=no
3481for s in GNU BSD; do
3482  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3483   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3484   ac_status=$?
3485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486   (exit $ac_status); }
3487  case $?:`cat confinc.out 2>/dev/null` in #(
3488  '0:this is the am__doit target') :
3489    case $s in #(
3490  BSD) :
3491    am__include='.include' am__quote='"' ;; #(
3492  *) :
3493    am__include='include' am__quote='' ;;
3494esac ;; #(
3495  *) :
3496     ;;
3497esac
3498  if test "$am__include" != "#"; then
3499    _am_result="yes ($s style)"
3500    break
3501  fi
3502done
3503rm -f confinc.* confmf.*
3504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3505printf "%s\n" "${_am_result}" >&6; }
3506
3507# Check whether --enable-dependency-tracking was given.
3508if test ${enable_dependency_tracking+y}
3509then :
3510  enableval=$enable_dependency_tracking;
3511fi
3512
3513if test "x$enable_dependency_tracking" != xno; then
3514  am_depcomp="$ac_aux_dir/depcomp"
3515  AMDEPBACKSLASH='\'
3516  am__nodep='_no'
3517fi
3518 if test "x$enable_dependency_tracking" != xno; then
3519  AMDEP_TRUE=
3520  AMDEP_FALSE='#'
3521else
3522  AMDEP_TRUE='#'
3523  AMDEP_FALSE=
3524fi
3525
3526
3527ac_ext=c
3528ac_cpp='$CPP $CPPFLAGS'
3529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531ac_compiler_gnu=$ac_cv_c_compiler_gnu
3532if test -n "$ac_tool_prefix"; then
3533  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3534set dummy ${ac_tool_prefix}gcc; ac_word=$2
3535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536printf %s "checking for $ac_word... " >&6; }
3537if test ${ac_cv_prog_CC+y}
3538then :
3539  printf %s "(cached) " >&6
3540else $as_nop
3541  if test -n "$CC"; then
3542  ac_cv_prog_CC="$CC" # Let the user override the test.
3543else
3544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545for as_dir in $PATH
3546do
3547  IFS=$as_save_IFS
3548  case $as_dir in #(((
3549    '') as_dir=./ ;;
3550    */) ;;
3551    *) as_dir=$as_dir/ ;;
3552  esac
3553    for ac_exec_ext in '' $ac_executable_extensions; do
3554  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3555    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3556    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3557    break 2
3558  fi
3559done
3560  done
3561IFS=$as_save_IFS
3562
3563fi
3564fi
3565CC=$ac_cv_prog_CC
3566if test -n "$CC"; then
3567  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3568printf "%s\n" "$CC" >&6; }
3569else
3570  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3571printf "%s\n" "no" >&6; }
3572fi
3573
3574
3575fi
3576if test -z "$ac_cv_prog_CC"; then
3577  ac_ct_CC=$CC
3578  # Extract the first word of "gcc", so it can be a program name with args.
3579set dummy gcc; ac_word=$2
3580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3581printf %s "checking for $ac_word... " >&6; }
3582if test ${ac_cv_prog_ac_ct_CC+y}
3583then :
3584  printf %s "(cached) " >&6
3585else $as_nop
3586  if test -n "$ac_ct_CC"; then
3587  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3588else
3589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590for as_dir in $PATH
3591do
3592  IFS=$as_save_IFS
3593  case $as_dir in #(((
3594    '') as_dir=./ ;;
3595    */) ;;
3596    *) as_dir=$as_dir/ ;;
3597  esac
3598    for ac_exec_ext in '' $ac_executable_extensions; do
3599  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3600    ac_cv_prog_ac_ct_CC="gcc"
3601    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3602    break 2
3603  fi
3604done
3605  done
3606IFS=$as_save_IFS
3607
3608fi
3609fi
3610ac_ct_CC=$ac_cv_prog_ac_ct_CC
3611if test -n "$ac_ct_CC"; then
3612  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3613printf "%s\n" "$ac_ct_CC" >&6; }
3614else
3615  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616printf "%s\n" "no" >&6; }
3617fi
3618
3619  if test "x$ac_ct_CC" = x; then
3620    CC=""
3621  else
3622    case $cross_compiling:$ac_tool_warned in
3623yes:)
3624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3625printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3626ac_tool_warned=yes ;;
3627esac
3628    CC=$ac_ct_CC
3629  fi
3630else
3631  CC="$ac_cv_prog_CC"
3632fi
3633
3634if test -z "$CC"; then
3635          if test -n "$ac_tool_prefix"; then
3636    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3637set dummy ${ac_tool_prefix}cc; ac_word=$2
3638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3639printf %s "checking for $ac_word... " >&6; }
3640if test ${ac_cv_prog_CC+y}
3641then :
3642  printf %s "(cached) " >&6
3643else $as_nop
3644  if test -n "$CC"; then
3645  ac_cv_prog_CC="$CC" # Let the user override the test.
3646else
3647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648for as_dir in $PATH
3649do
3650  IFS=$as_save_IFS
3651  case $as_dir in #(((
3652    '') as_dir=./ ;;
3653    */) ;;
3654    *) as_dir=$as_dir/ ;;
3655  esac
3656    for ac_exec_ext in '' $ac_executable_extensions; do
3657  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3658    ac_cv_prog_CC="${ac_tool_prefix}cc"
3659    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3660    break 2
3661  fi
3662done
3663  done
3664IFS=$as_save_IFS
3665
3666fi
3667fi
3668CC=$ac_cv_prog_CC
3669if test -n "$CC"; then
3670  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3671printf "%s\n" "$CC" >&6; }
3672else
3673  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674printf "%s\n" "no" >&6; }
3675fi
3676
3677
3678  fi
3679fi
3680if test -z "$CC"; then
3681  # Extract the first word of "cc", so it can be a program name with args.
3682set dummy cc; ac_word=$2
3683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3684printf %s "checking for $ac_word... " >&6; }
3685if test ${ac_cv_prog_CC+y}
3686then :
3687  printf %s "(cached) " >&6
3688else $as_nop
3689  if test -n "$CC"; then
3690  ac_cv_prog_CC="$CC" # Let the user override the test.
3691else
3692  ac_prog_rejected=no
3693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694for as_dir in $PATH
3695do
3696  IFS=$as_save_IFS
3697  case $as_dir in #(((
3698    '') as_dir=./ ;;
3699    */) ;;
3700    *) as_dir=$as_dir/ ;;
3701  esac
3702    for ac_exec_ext in '' $ac_executable_extensions; do
3703  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3704    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3705       ac_prog_rejected=yes
3706       continue
3707     fi
3708    ac_cv_prog_CC="cc"
3709    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3710    break 2
3711  fi
3712done
3713  done
3714IFS=$as_save_IFS
3715
3716if test $ac_prog_rejected = yes; then
3717  # We found a bogon in the path, so make sure we never use it.
3718  set dummy $ac_cv_prog_CC
3719  shift
3720  if test $# != 0; then
3721    # We chose a different compiler from the bogus one.
3722    # However, it has the same basename, so the bogon will be chosen
3723    # first if we set CC to just the basename; use the full file name.
3724    shift
3725    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3726  fi
3727fi
3728fi
3729fi
3730CC=$ac_cv_prog_CC
3731if test -n "$CC"; then
3732  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3733printf "%s\n" "$CC" >&6; }
3734else
3735  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736printf "%s\n" "no" >&6; }
3737fi
3738
3739
3740fi
3741if test -z "$CC"; then
3742  if test -n "$ac_tool_prefix"; then
3743  for ac_prog in cl.exe
3744  do
3745    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3746set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3748printf %s "checking for $ac_word... " >&6; }
3749if test ${ac_cv_prog_CC+y}
3750then :
3751  printf %s "(cached) " >&6
3752else $as_nop
3753  if test -n "$CC"; then
3754  ac_cv_prog_CC="$CC" # Let the user override the test.
3755else
3756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757for as_dir in $PATH
3758do
3759  IFS=$as_save_IFS
3760  case $as_dir in #(((
3761    '') as_dir=./ ;;
3762    */) ;;
3763    *) as_dir=$as_dir/ ;;
3764  esac
3765    for ac_exec_ext in '' $ac_executable_extensions; do
3766  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3767    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3768    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3769    break 2
3770  fi
3771done
3772  done
3773IFS=$as_save_IFS
3774
3775fi
3776fi
3777CC=$ac_cv_prog_CC
3778if test -n "$CC"; then
3779  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3780printf "%s\n" "$CC" >&6; }
3781else
3782  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783printf "%s\n" "no" >&6; }
3784fi
3785
3786
3787    test -n "$CC" && break
3788  done
3789fi
3790if test -z "$CC"; then
3791  ac_ct_CC=$CC
3792  for ac_prog in cl.exe
3793do
3794  # Extract the first word of "$ac_prog", so it can be a program name with args.
3795set dummy $ac_prog; ac_word=$2
3796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797printf %s "checking for $ac_word... " >&6; }
3798if test ${ac_cv_prog_ac_ct_CC+y}
3799then :
3800  printf %s "(cached) " >&6
3801else $as_nop
3802  if test -n "$ac_ct_CC"; then
3803  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3804else
3805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806for as_dir in $PATH
3807do
3808  IFS=$as_save_IFS
3809  case $as_dir in #(((
3810    '') as_dir=./ ;;
3811    */) ;;
3812    *) as_dir=$as_dir/ ;;
3813  esac
3814    for ac_exec_ext in '' $ac_executable_extensions; do
3815  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3816    ac_cv_prog_ac_ct_CC="$ac_prog"
3817    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3818    break 2
3819  fi
3820done
3821  done
3822IFS=$as_save_IFS
3823
3824fi
3825fi
3826ac_ct_CC=$ac_cv_prog_ac_ct_CC
3827if test -n "$ac_ct_CC"; then
3828  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3829printf "%s\n" "$ac_ct_CC" >&6; }
3830else
3831  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3832printf "%s\n" "no" >&6; }
3833fi
3834
3835
3836  test -n "$ac_ct_CC" && break
3837done
3838
3839  if test "x$ac_ct_CC" = x; then
3840    CC=""
3841  else
3842    case $cross_compiling:$ac_tool_warned in
3843yes:)
3844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3845printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3846ac_tool_warned=yes ;;
3847esac
3848    CC=$ac_ct_CC
3849  fi
3850fi
3851
3852fi
3853if test -z "$CC"; then
3854  if test -n "$ac_tool_prefix"; then
3855  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3856set dummy ${ac_tool_prefix}clang; ac_word=$2
3857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3858printf %s "checking for $ac_word... " >&6; }
3859if test ${ac_cv_prog_CC+y}
3860then :
3861  printf %s "(cached) " >&6
3862else $as_nop
3863  if test -n "$CC"; then
3864  ac_cv_prog_CC="$CC" # Let the user override the test.
3865else
3866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867for as_dir in $PATH
3868do
3869  IFS=$as_save_IFS
3870  case $as_dir in #(((
3871    '') as_dir=./ ;;
3872    */) ;;
3873    *) as_dir=$as_dir/ ;;
3874  esac
3875    for ac_exec_ext in '' $ac_executable_extensions; do
3876  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3877    ac_cv_prog_CC="${ac_tool_prefix}clang"
3878    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3879    break 2
3880  fi
3881done
3882  done
3883IFS=$as_save_IFS
3884
3885fi
3886fi
3887CC=$ac_cv_prog_CC
3888if test -n "$CC"; then
3889  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3890printf "%s\n" "$CC" >&6; }
3891else
3892  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893printf "%s\n" "no" >&6; }
3894fi
3895
3896
3897fi
3898if test -z "$ac_cv_prog_CC"; then
3899  ac_ct_CC=$CC
3900  # Extract the first word of "clang", so it can be a program name with args.
3901set dummy clang; ac_word=$2
3902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3903printf %s "checking for $ac_word... " >&6; }
3904if test ${ac_cv_prog_ac_ct_CC+y}
3905then :
3906  printf %s "(cached) " >&6
3907else $as_nop
3908  if test -n "$ac_ct_CC"; then
3909  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3910else
3911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912for as_dir in $PATH
3913do
3914  IFS=$as_save_IFS
3915  case $as_dir in #(((
3916    '') as_dir=./ ;;
3917    */) ;;
3918    *) as_dir=$as_dir/ ;;
3919  esac
3920    for ac_exec_ext in '' $ac_executable_extensions; do
3921  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3922    ac_cv_prog_ac_ct_CC="clang"
3923    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3924    break 2
3925  fi
3926done
3927  done
3928IFS=$as_save_IFS
3929
3930fi
3931fi
3932ac_ct_CC=$ac_cv_prog_ac_ct_CC
3933if test -n "$ac_ct_CC"; then
3934  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3935printf "%s\n" "$ac_ct_CC" >&6; }
3936else
3937  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938printf "%s\n" "no" >&6; }
3939fi
3940
3941  if test "x$ac_ct_CC" = x; then
3942    CC=""
3943  else
3944    case $cross_compiling:$ac_tool_warned in
3945yes:)
3946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3947printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3948ac_tool_warned=yes ;;
3949esac
3950    CC=$ac_ct_CC
3951  fi
3952else
3953  CC="$ac_cv_prog_CC"
3954fi
3955
3956fi
3957
3958
3959test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3960printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3961as_fn_error $? "no acceptable C compiler found in \$PATH
3962See \`config.log' for more details" "$LINENO" 5; }
3963
3964# Provide some information about the compiler.
3965printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3966set X $ac_compile
3967ac_compiler=$2
3968for ac_option in --version -v -V -qversion -version; do
3969  { { ac_try="$ac_compiler $ac_option >&5"
3970case "(($ac_try" in
3971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972  *) ac_try_echo=$ac_try;;
3973esac
3974eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3975printf "%s\n" "$ac_try_echo"; } >&5
3976  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3977  ac_status=$?
3978  if test -s conftest.err; then
3979    sed '10a\
3980... rest of stderr output deleted ...
3981         10q' conftest.err >conftest.er1
3982    cat conftest.er1 >&5
3983  fi
3984  rm -f conftest.er1 conftest.err
3985  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3986  test $ac_status = 0; }
3987done
3988
3989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990/* end confdefs.h.  */
3991
3992int
3993main (void)
3994{
3995
3996  ;
3997  return 0;
3998}
3999_ACEOF
4000ac_clean_files_save=$ac_clean_files
4001ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4002# Try to create an executable without -o first, disregard a.out.
4003# It will help us diagnose broken compilers, and finding out an intuition
4004# of exeext.
4005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4006printf %s "checking whether the C compiler works... " >&6; }
4007ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4008
4009# The possible output files:
4010ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4011
4012ac_rmfiles=
4013for ac_file in $ac_files
4014do
4015  case $ac_file in
4016    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4017    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4018  esac
4019done
4020rm -f $ac_rmfiles
4021
4022if { { ac_try="$ac_link_default"
4023case "(($ac_try" in
4024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025  *) ac_try_echo=$ac_try;;
4026esac
4027eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4028printf "%s\n" "$ac_try_echo"; } >&5
4029  (eval "$ac_link_default") 2>&5
4030  ac_status=$?
4031  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4032  test $ac_status = 0; }
4033then :
4034  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4035# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4036# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4037# so that the user can short-circuit this test for compilers unknown to
4038# Autoconf.
4039for ac_file in $ac_files ''
4040do
4041  test -f "$ac_file" || continue
4042  case $ac_file in
4043    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4044	;;
4045    [ab].out )
4046	# We found the default executable, but exeext='' is most
4047	# certainly right.
4048	break;;
4049    *.* )
4050	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4051	then :; else
4052	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4053	fi
4054	# We set ac_cv_exeext here because the later test for it is not
4055	# safe: cross compilers may not add the suffix if given an `-o'
4056	# argument, so we may need to know it at that point already.
4057	# Even if this section looks crufty: it has the advantage of
4058	# actually working.
4059	break;;
4060    * )
4061	break;;
4062  esac
4063done
4064test "$ac_cv_exeext" = no && ac_cv_exeext=
4065
4066else $as_nop
4067  ac_file=''
4068fi
4069if test -z "$ac_file"
4070then :
4071  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4072printf "%s\n" "no" >&6; }
4073printf "%s\n" "$as_me: failed program was:" >&5
4074sed 's/^/| /' conftest.$ac_ext >&5
4075
4076{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4077printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4078as_fn_error 77 "C compiler cannot create executables
4079See \`config.log' for more details" "$LINENO" 5; }
4080else $as_nop
4081  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4082printf "%s\n" "yes" >&6; }
4083fi
4084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4085printf %s "checking for C compiler default output file name... " >&6; }
4086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4087printf "%s\n" "$ac_file" >&6; }
4088ac_exeext=$ac_cv_exeext
4089
4090rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4091ac_clean_files=$ac_clean_files_save
4092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4093printf %s "checking for suffix of executables... " >&6; }
4094if { { ac_try="$ac_link"
4095case "(($ac_try" in
4096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097  *) ac_try_echo=$ac_try;;
4098esac
4099eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4100printf "%s\n" "$ac_try_echo"; } >&5
4101  (eval "$ac_link") 2>&5
4102  ac_status=$?
4103  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4104  test $ac_status = 0; }
4105then :
4106  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4107# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4108# work properly (i.e., refer to `conftest.exe'), while it won't with
4109# `rm'.
4110for ac_file in conftest.exe conftest conftest.*; do
4111  test -f "$ac_file" || continue
4112  case $ac_file in
4113    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4114    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4115	  break;;
4116    * ) break;;
4117  esac
4118done
4119else $as_nop
4120  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4121printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4122as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4123See \`config.log' for more details" "$LINENO" 5; }
4124fi
4125rm -f conftest conftest$ac_cv_exeext
4126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4127printf "%s\n" "$ac_cv_exeext" >&6; }
4128
4129rm -f conftest.$ac_ext
4130EXEEXT=$ac_cv_exeext
4131ac_exeext=$EXEEXT
4132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133/* end confdefs.h.  */
4134#include <stdio.h>
4135int
4136main (void)
4137{
4138FILE *f = fopen ("conftest.out", "w");
4139 return ferror (f) || fclose (f) != 0;
4140
4141  ;
4142  return 0;
4143}
4144_ACEOF
4145ac_clean_files="$ac_clean_files conftest.out"
4146# Check that the compiler produces executables we can run.  If not, either
4147# the compiler is broken, or we cross compile.
4148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4149printf %s "checking whether we are cross compiling... " >&6; }
4150if test "$cross_compiling" != yes; then
4151  { { ac_try="$ac_link"
4152case "(($ac_try" in
4153  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154  *) ac_try_echo=$ac_try;;
4155esac
4156eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4157printf "%s\n" "$ac_try_echo"; } >&5
4158  (eval "$ac_link") 2>&5
4159  ac_status=$?
4160  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4161  test $ac_status = 0; }
4162  if { ac_try='./conftest$ac_cv_exeext'
4163  { { case "(($ac_try" in
4164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165  *) ac_try_echo=$ac_try;;
4166esac
4167eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4168printf "%s\n" "$ac_try_echo"; } >&5
4169  (eval "$ac_try") 2>&5
4170  ac_status=$?
4171  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4172  test $ac_status = 0; }; }; then
4173    cross_compiling=no
4174  else
4175    if test "$cross_compiling" = maybe; then
4176	cross_compiling=yes
4177    else
4178	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4179printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4180as_fn_error 77 "cannot run C compiled programs.
4181If you meant to cross compile, use \`--host'.
4182See \`config.log' for more details" "$LINENO" 5; }
4183    fi
4184  fi
4185fi
4186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4187printf "%s\n" "$cross_compiling" >&6; }
4188
4189rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4190ac_clean_files=$ac_clean_files_save
4191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4192printf %s "checking for suffix of object files... " >&6; }
4193if test ${ac_cv_objext+y}
4194then :
4195  printf %s "(cached) " >&6
4196else $as_nop
4197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198/* end confdefs.h.  */
4199
4200int
4201main (void)
4202{
4203
4204  ;
4205  return 0;
4206}
4207_ACEOF
4208rm -f conftest.o conftest.obj
4209if { { ac_try="$ac_compile"
4210case "(($ac_try" in
4211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212  *) ac_try_echo=$ac_try;;
4213esac
4214eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4215printf "%s\n" "$ac_try_echo"; } >&5
4216  (eval "$ac_compile") 2>&5
4217  ac_status=$?
4218  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4219  test $ac_status = 0; }
4220then :
4221  for ac_file in conftest.o conftest.obj conftest.*; do
4222  test -f "$ac_file" || continue;
4223  case $ac_file in
4224    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4225    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4226       break;;
4227  esac
4228done
4229else $as_nop
4230  printf "%s\n" "$as_me: failed program was:" >&5
4231sed 's/^/| /' conftest.$ac_ext >&5
4232
4233{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4234printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4235as_fn_error $? "cannot compute suffix of object files: cannot compile
4236See \`config.log' for more details" "$LINENO" 5; }
4237fi
4238rm -f conftest.$ac_cv_objext conftest.$ac_ext
4239fi
4240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4241printf "%s\n" "$ac_cv_objext" >&6; }
4242OBJEXT=$ac_cv_objext
4243ac_objext=$OBJEXT
4244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4245printf %s "checking whether the compiler supports GNU C... " >&6; }
4246if test ${ac_cv_c_compiler_gnu+y}
4247then :
4248  printf %s "(cached) " >&6
4249else $as_nop
4250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251/* end confdefs.h.  */
4252
4253int
4254main (void)
4255{
4256#ifndef __GNUC__
4257       choke me
4258#endif
4259
4260  ;
4261  return 0;
4262}
4263_ACEOF
4264if ac_fn_c_try_compile "$LINENO"
4265then :
4266  ac_compiler_gnu=yes
4267else $as_nop
4268  ac_compiler_gnu=no
4269fi
4270rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4271ac_cv_c_compiler_gnu=$ac_compiler_gnu
4272
4273fi
4274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4275printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4276ac_compiler_gnu=$ac_cv_c_compiler_gnu
4277
4278if test $ac_compiler_gnu = yes; then
4279  GCC=yes
4280else
4281  GCC=
4282fi
4283ac_test_CFLAGS=${CFLAGS+y}
4284ac_save_CFLAGS=$CFLAGS
4285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4286printf %s "checking whether $CC accepts -g... " >&6; }
4287if test ${ac_cv_prog_cc_g+y}
4288then :
4289  printf %s "(cached) " >&6
4290else $as_nop
4291  ac_save_c_werror_flag=$ac_c_werror_flag
4292   ac_c_werror_flag=yes
4293   ac_cv_prog_cc_g=no
4294   CFLAGS="-g"
4295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296/* end confdefs.h.  */
4297
4298int
4299main (void)
4300{
4301
4302  ;
4303  return 0;
4304}
4305_ACEOF
4306if ac_fn_c_try_compile "$LINENO"
4307then :
4308  ac_cv_prog_cc_g=yes
4309else $as_nop
4310  CFLAGS=""
4311      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312/* end confdefs.h.  */
4313
4314int
4315main (void)
4316{
4317
4318  ;
4319  return 0;
4320}
4321_ACEOF
4322if ac_fn_c_try_compile "$LINENO"
4323then :
4324
4325else $as_nop
4326  ac_c_werror_flag=$ac_save_c_werror_flag
4327	 CFLAGS="-g"
4328	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329/* end confdefs.h.  */
4330
4331int
4332main (void)
4333{
4334
4335  ;
4336  return 0;
4337}
4338_ACEOF
4339if ac_fn_c_try_compile "$LINENO"
4340then :
4341  ac_cv_prog_cc_g=yes
4342fi
4343rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4344fi
4345rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4346fi
4347rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4348   ac_c_werror_flag=$ac_save_c_werror_flag
4349fi
4350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4351printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4352if test $ac_test_CFLAGS; then
4353  CFLAGS=$ac_save_CFLAGS
4354elif test $ac_cv_prog_cc_g = yes; then
4355  if test "$GCC" = yes; then
4356    CFLAGS="-g -O2"
4357  else
4358    CFLAGS="-g"
4359  fi
4360else
4361  if test "$GCC" = yes; then
4362    CFLAGS="-O2"
4363  else
4364    CFLAGS=
4365  fi
4366fi
4367ac_prog_cc_stdc=no
4368if test x$ac_prog_cc_stdc = xno
4369then :
4370  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4371printf %s "checking for $CC option to enable C11 features... " >&6; }
4372if test ${ac_cv_prog_cc_c11+y}
4373then :
4374  printf %s "(cached) " >&6
4375else $as_nop
4376  ac_cv_prog_cc_c11=no
4377ac_save_CC=$CC
4378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379/* end confdefs.h.  */
4380$ac_c_conftest_c11_program
4381_ACEOF
4382for ac_arg in '' -std=gnu11
4383do
4384  CC="$ac_save_CC $ac_arg"
4385  if ac_fn_c_try_compile "$LINENO"
4386then :
4387  ac_cv_prog_cc_c11=$ac_arg
4388fi
4389rm -f core conftest.err conftest.$ac_objext conftest.beam
4390  test "x$ac_cv_prog_cc_c11" != "xno" && break
4391done
4392rm -f conftest.$ac_ext
4393CC=$ac_save_CC
4394fi
4395
4396if test "x$ac_cv_prog_cc_c11" = xno
4397then :
4398  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4399printf "%s\n" "unsupported" >&6; }
4400else $as_nop
4401  if test "x$ac_cv_prog_cc_c11" = x
4402then :
4403  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4404printf "%s\n" "none needed" >&6; }
4405else $as_nop
4406  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4407printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4408     CC="$CC $ac_cv_prog_cc_c11"
4409fi
4410  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4411  ac_prog_cc_stdc=c11
4412fi
4413fi
4414if test x$ac_prog_cc_stdc = xno
4415then :
4416  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4417printf %s "checking for $CC option to enable C99 features... " >&6; }
4418if test ${ac_cv_prog_cc_c99+y}
4419then :
4420  printf %s "(cached) " >&6
4421else $as_nop
4422  ac_cv_prog_cc_c99=no
4423ac_save_CC=$CC
4424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425/* end confdefs.h.  */
4426$ac_c_conftest_c99_program
4427_ACEOF
4428for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4429do
4430  CC="$ac_save_CC $ac_arg"
4431  if ac_fn_c_try_compile "$LINENO"
4432then :
4433  ac_cv_prog_cc_c99=$ac_arg
4434fi
4435rm -f core conftest.err conftest.$ac_objext conftest.beam
4436  test "x$ac_cv_prog_cc_c99" != "xno" && break
4437done
4438rm -f conftest.$ac_ext
4439CC=$ac_save_CC
4440fi
4441
4442if test "x$ac_cv_prog_cc_c99" = xno
4443then :
4444  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4445printf "%s\n" "unsupported" >&6; }
4446else $as_nop
4447  if test "x$ac_cv_prog_cc_c99" = x
4448then :
4449  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4450printf "%s\n" "none needed" >&6; }
4451else $as_nop
4452  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4453printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4454     CC="$CC $ac_cv_prog_cc_c99"
4455fi
4456  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4457  ac_prog_cc_stdc=c99
4458fi
4459fi
4460if test x$ac_prog_cc_stdc = xno
4461then :
4462  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4463printf %s "checking for $CC option to enable C89 features... " >&6; }
4464if test ${ac_cv_prog_cc_c89+y}
4465then :
4466  printf %s "(cached) " >&6
4467else $as_nop
4468  ac_cv_prog_cc_c89=no
4469ac_save_CC=$CC
4470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471/* end confdefs.h.  */
4472$ac_c_conftest_c89_program
4473_ACEOF
4474for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4475do
4476  CC="$ac_save_CC $ac_arg"
4477  if ac_fn_c_try_compile "$LINENO"
4478then :
4479  ac_cv_prog_cc_c89=$ac_arg
4480fi
4481rm -f core conftest.err conftest.$ac_objext conftest.beam
4482  test "x$ac_cv_prog_cc_c89" != "xno" && break
4483done
4484rm -f conftest.$ac_ext
4485CC=$ac_save_CC
4486fi
4487
4488if test "x$ac_cv_prog_cc_c89" = xno
4489then :
4490  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4491printf "%s\n" "unsupported" >&6; }
4492else $as_nop
4493  if test "x$ac_cv_prog_cc_c89" = x
4494then :
4495  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4496printf "%s\n" "none needed" >&6; }
4497else $as_nop
4498  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4499printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4500     CC="$CC $ac_cv_prog_cc_c89"
4501fi
4502  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4503  ac_prog_cc_stdc=c89
4504fi
4505fi
4506
4507ac_ext=c
4508ac_cpp='$CPP $CPPFLAGS'
4509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4511ac_compiler_gnu=$ac_cv_c_compiler_gnu
4512
4513
4514  ac_ext=c
4515ac_cpp='$CPP $CPPFLAGS'
4516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518ac_compiler_gnu=$ac_cv_c_compiler_gnu
4519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4520printf %s "checking whether $CC understands -c and -o together... " >&6; }
4521if test ${am_cv_prog_cc_c_o+y}
4522then :
4523  printf %s "(cached) " >&6
4524else $as_nop
4525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526/* end confdefs.h.  */
4527
4528int
4529main (void)
4530{
4531
4532  ;
4533  return 0;
4534}
4535_ACEOF
4536  # Make sure it works both with $CC and with simple cc.
4537  # Following AC_PROG_CC_C_O, we do the test twice because some
4538  # compilers refuse to overwrite an existing .o file with -o,
4539  # though they will create one.
4540  am_cv_prog_cc_c_o=yes
4541  for am_i in 1 2; do
4542    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4543   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4544   ac_status=$?
4545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546   (exit $ac_status); } \
4547         && test -f conftest2.$ac_objext; then
4548      : OK
4549    else
4550      am_cv_prog_cc_c_o=no
4551      break
4552    fi
4553  done
4554  rm -f core conftest*
4555  unset am_i
4556fi
4557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4558printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4559if test "$am_cv_prog_cc_c_o" != yes; then
4560   # Losing compiler, so override with the script.
4561   # FIXME: It is wrong to rewrite CC.
4562   # But if we don't then we get into trouble of one sort or another.
4563   # A longer-term fix would be to have automake use am__CC in this case,
4564   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4565   CC="$am_aux_dir/compile $CC"
4566fi
4567ac_ext=c
4568ac_cpp='$CPP $CPPFLAGS'
4569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4571ac_compiler_gnu=$ac_cv_c_compiler_gnu
4572
4573
4574depcc="$CC"   am_compiler_list=
4575
4576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4577printf %s "checking dependency style of $depcc... " >&6; }
4578if test ${am_cv_CC_dependencies_compiler_type+y}
4579then :
4580  printf %s "(cached) " >&6
4581else $as_nop
4582  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4583  # We make a subdir and do the tests there.  Otherwise we can end up
4584  # making bogus files that we don't know about and never remove.  For
4585  # instance it was reported that on HP-UX the gcc test will end up
4586  # making a dummy file named 'D' -- because '-MD' means "put the output
4587  # in D".
4588  rm -rf conftest.dir
4589  mkdir conftest.dir
4590  # Copy depcomp to subdir because otherwise we won't find it if we're
4591  # using a relative directory.
4592  cp "$am_depcomp" conftest.dir
4593  cd conftest.dir
4594  # We will build objects and dependencies in a subdirectory because
4595  # it helps to detect inapplicable dependency modes.  For instance
4596  # both Tru64's cc and ICC support -MD to output dependencies as a
4597  # side effect of compilation, but ICC will put the dependencies in
4598  # the current directory while Tru64 will put them in the object
4599  # directory.
4600  mkdir sub
4601
4602  am_cv_CC_dependencies_compiler_type=none
4603  if test "$am_compiler_list" = ""; then
4604     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4605  fi
4606  am__universal=false
4607  case " $depcc " in #(
4608     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4609     esac
4610
4611  for depmode in $am_compiler_list; do
4612    # Setup a source with many dependencies, because some compilers
4613    # like to wrap large dependency lists on column 80 (with \), and
4614    # we should not choose a depcomp mode which is confused by this.
4615    #
4616    # We need to recreate these files for each test, as the compiler may
4617    # overwrite some of them when testing with obscure command lines.
4618    # This happens at least with the AIX C compiler.
4619    : > sub/conftest.c
4620    for i in 1 2 3 4 5 6; do
4621      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4622      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4623      # Solaris 10 /bin/sh.
4624      echo '/* dummy */' > sub/conftst$i.h
4625    done
4626    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4627
4628    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4629    # mode.  It turns out that the SunPro C++ compiler does not properly
4630    # handle '-M -o', and we need to detect this.  Also, some Intel
4631    # versions had trouble with output in subdirs.
4632    am__obj=sub/conftest.${OBJEXT-o}
4633    am__minus_obj="-o $am__obj"
4634    case $depmode in
4635    gcc)
4636      # This depmode causes a compiler race in universal mode.
4637      test "$am__universal" = false || continue
4638      ;;
4639    nosideeffect)
4640      # After this tag, mechanisms are not by side-effect, so they'll
4641      # only be used when explicitly requested.
4642      if test "x$enable_dependency_tracking" = xyes; then
4643	continue
4644      else
4645	break
4646      fi
4647      ;;
4648    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4649      # This compiler won't grok '-c -o', but also, the minuso test has
4650      # not run yet.  These depmodes are late enough in the game, and
4651      # so weak that their functioning should not be impacted.
4652      am__obj=conftest.${OBJEXT-o}
4653      am__minus_obj=
4654      ;;
4655    none) break ;;
4656    esac
4657    if depmode=$depmode \
4658       source=sub/conftest.c object=$am__obj \
4659       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4660       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4661         >/dev/null 2>conftest.err &&
4662       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4663       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4664       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4665       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4666      # icc doesn't choke on unknown options, it will just issue warnings
4667      # or remarks (even with -Werror).  So we grep stderr for any message
4668      # that says an option was ignored or not supported.
4669      # When given -MP, icc 7.0 and 7.1 complain thusly:
4670      #   icc: Command line warning: ignoring option '-M'; no argument required
4671      # The diagnosis changed in icc 8.0:
4672      #   icc: Command line remark: option '-MP' not supported
4673      if (grep 'ignoring option' conftest.err ||
4674          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4675        am_cv_CC_dependencies_compiler_type=$depmode
4676        break
4677      fi
4678    fi
4679  done
4680
4681  cd ..
4682  rm -rf conftest.dir
4683else
4684  am_cv_CC_dependencies_compiler_type=none
4685fi
4686
4687fi
4688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4689printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4690CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4691
4692 if
4693  test "x$enable_dependency_tracking" != xno \
4694  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4695  am__fastdepCC_TRUE=
4696  am__fastdepCC_FALSE='#'
4697else
4698  am__fastdepCC_TRUE='#'
4699  am__fastdepCC_FALSE=
4700fi
4701
4702
4703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4704printf %s "checking for a sed that does not truncate output... " >&6; }
4705if test ${ac_cv_path_SED+y}
4706then :
4707  printf %s "(cached) " >&6
4708else $as_nop
4709            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4710     for ac_i in 1 2 3 4 5 6 7; do
4711       ac_script="$ac_script$as_nl$ac_script"
4712     done
4713     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4714     { ac_script=; unset ac_script;}
4715     if test -z "$SED"; then
4716  ac_path_SED_found=false
4717  # Loop through the user's path and test for each of PROGNAME-LIST
4718  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719for as_dir in $PATH
4720do
4721  IFS=$as_save_IFS
4722  case $as_dir in #(((
4723    '') as_dir=./ ;;
4724    */) ;;
4725    *) as_dir=$as_dir/ ;;
4726  esac
4727    for ac_prog in sed gsed
4728   do
4729    for ac_exec_ext in '' $ac_executable_extensions; do
4730      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4731      as_fn_executable_p "$ac_path_SED" || continue
4732# Check for GNU ac_path_SED and select it if it is found.
4733  # Check for GNU $ac_path_SED
4734case `"$ac_path_SED" --version 2>&1` in
4735*GNU*)
4736  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4737*)
4738  ac_count=0
4739  printf %s 0123456789 >"conftest.in"
4740  while :
4741  do
4742    cat "conftest.in" "conftest.in" >"conftest.tmp"
4743    mv "conftest.tmp" "conftest.in"
4744    cp "conftest.in" "conftest.nl"
4745    printf "%s\n" '' >> "conftest.nl"
4746    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4747    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4748    as_fn_arith $ac_count + 1 && ac_count=$as_val
4749    if test $ac_count -gt ${ac_path_SED_max-0}; then
4750      # Best one so far, save it but keep looking for a better one
4751      ac_cv_path_SED="$ac_path_SED"
4752      ac_path_SED_max=$ac_count
4753    fi
4754    # 10*(2^10) chars as input seems more than enough
4755    test $ac_count -gt 10 && break
4756  done
4757  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4758esac
4759
4760      $ac_path_SED_found && break 3
4761    done
4762  done
4763  done
4764IFS=$as_save_IFS
4765  if test -z "$ac_cv_path_SED"; then
4766    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4767  fi
4768else
4769  ac_cv_path_SED=$SED
4770fi
4771
4772fi
4773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4774printf "%s\n" "$ac_cv_path_SED" >&6; }
4775 SED="$ac_cv_path_SED"
4776  rm -f conftest.sed
4777
4778test -z "$SED" && SED=sed
4779Xsed="$SED -e 1s/^X//"
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4792printf %s "checking for grep that handles long lines and -e... " >&6; }
4793if test ${ac_cv_path_GREP+y}
4794then :
4795  printf %s "(cached) " >&6
4796else $as_nop
4797  if test -z "$GREP"; then
4798  ac_path_GREP_found=false
4799  # Loop through the user's path and test for each of PROGNAME-LIST
4800  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4802do
4803  IFS=$as_save_IFS
4804  case $as_dir in #(((
4805    '') as_dir=./ ;;
4806    */) ;;
4807    *) as_dir=$as_dir/ ;;
4808  esac
4809    for ac_prog in grep ggrep
4810   do
4811    for ac_exec_ext in '' $ac_executable_extensions; do
4812      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4813      as_fn_executable_p "$ac_path_GREP" || continue
4814# Check for GNU ac_path_GREP and select it if it is found.
4815  # Check for GNU $ac_path_GREP
4816case `"$ac_path_GREP" --version 2>&1` in
4817*GNU*)
4818  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4819*)
4820  ac_count=0
4821  printf %s 0123456789 >"conftest.in"
4822  while :
4823  do
4824    cat "conftest.in" "conftest.in" >"conftest.tmp"
4825    mv "conftest.tmp" "conftest.in"
4826    cp "conftest.in" "conftest.nl"
4827    printf "%s\n" 'GREP' >> "conftest.nl"
4828    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4829    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4830    as_fn_arith $ac_count + 1 && ac_count=$as_val
4831    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4832      # Best one so far, save it but keep looking for a better one
4833      ac_cv_path_GREP="$ac_path_GREP"
4834      ac_path_GREP_max=$ac_count
4835    fi
4836    # 10*(2^10) chars as input seems more than enough
4837    test $ac_count -gt 10 && break
4838  done
4839  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4840esac
4841
4842      $ac_path_GREP_found && break 3
4843    done
4844  done
4845  done
4846IFS=$as_save_IFS
4847  if test -z "$ac_cv_path_GREP"; then
4848    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4849  fi
4850else
4851  ac_cv_path_GREP=$GREP
4852fi
4853
4854fi
4855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4856printf "%s\n" "$ac_cv_path_GREP" >&6; }
4857 GREP="$ac_cv_path_GREP"
4858
4859
4860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4861printf %s "checking for egrep... " >&6; }
4862if test ${ac_cv_path_EGREP+y}
4863then :
4864  printf %s "(cached) " >&6
4865else $as_nop
4866  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4867   then ac_cv_path_EGREP="$GREP -E"
4868   else
4869     if test -z "$EGREP"; then
4870  ac_path_EGREP_found=false
4871  # Loop through the user's path and test for each of PROGNAME-LIST
4872  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4874do
4875  IFS=$as_save_IFS
4876  case $as_dir in #(((
4877    '') as_dir=./ ;;
4878    */) ;;
4879    *) as_dir=$as_dir/ ;;
4880  esac
4881    for ac_prog in egrep
4882   do
4883    for ac_exec_ext in '' $ac_executable_extensions; do
4884      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4885      as_fn_executable_p "$ac_path_EGREP" || continue
4886# Check for GNU ac_path_EGREP and select it if it is found.
4887  # Check for GNU $ac_path_EGREP
4888case `"$ac_path_EGREP" --version 2>&1` in
4889*GNU*)
4890  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4891*)
4892  ac_count=0
4893  printf %s 0123456789 >"conftest.in"
4894  while :
4895  do
4896    cat "conftest.in" "conftest.in" >"conftest.tmp"
4897    mv "conftest.tmp" "conftest.in"
4898    cp "conftest.in" "conftest.nl"
4899    printf "%s\n" 'EGREP' >> "conftest.nl"
4900    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4901    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4902    as_fn_arith $ac_count + 1 && ac_count=$as_val
4903    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4904      # Best one so far, save it but keep looking for a better one
4905      ac_cv_path_EGREP="$ac_path_EGREP"
4906      ac_path_EGREP_max=$ac_count
4907    fi
4908    # 10*(2^10) chars as input seems more than enough
4909    test $ac_count -gt 10 && break
4910  done
4911  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4912esac
4913
4914      $ac_path_EGREP_found && break 3
4915    done
4916  done
4917  done
4918IFS=$as_save_IFS
4919  if test -z "$ac_cv_path_EGREP"; then
4920    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4921  fi
4922else
4923  ac_cv_path_EGREP=$EGREP
4924fi
4925
4926   fi
4927fi
4928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4929printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4930 EGREP="$ac_cv_path_EGREP"
4931
4932
4933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4934printf %s "checking for fgrep... " >&6; }
4935if test ${ac_cv_path_FGREP+y}
4936then :
4937  printf %s "(cached) " >&6
4938else $as_nop
4939  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4940   then ac_cv_path_FGREP="$GREP -F"
4941   else
4942     if test -z "$FGREP"; then
4943  ac_path_FGREP_found=false
4944  # Loop through the user's path and test for each of PROGNAME-LIST
4945  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4947do
4948  IFS=$as_save_IFS
4949  case $as_dir in #(((
4950    '') as_dir=./ ;;
4951    */) ;;
4952    *) as_dir=$as_dir/ ;;
4953  esac
4954    for ac_prog in fgrep
4955   do
4956    for ac_exec_ext in '' $ac_executable_extensions; do
4957      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4958      as_fn_executable_p "$ac_path_FGREP" || continue
4959# Check for GNU ac_path_FGREP and select it if it is found.
4960  # Check for GNU $ac_path_FGREP
4961case `"$ac_path_FGREP" --version 2>&1` in
4962*GNU*)
4963  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4964*)
4965  ac_count=0
4966  printf %s 0123456789 >"conftest.in"
4967  while :
4968  do
4969    cat "conftest.in" "conftest.in" >"conftest.tmp"
4970    mv "conftest.tmp" "conftest.in"
4971    cp "conftest.in" "conftest.nl"
4972    printf "%s\n" 'FGREP' >> "conftest.nl"
4973    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4974    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4975    as_fn_arith $ac_count + 1 && ac_count=$as_val
4976    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4977      # Best one so far, save it but keep looking for a better one
4978      ac_cv_path_FGREP="$ac_path_FGREP"
4979      ac_path_FGREP_max=$ac_count
4980    fi
4981    # 10*(2^10) chars as input seems more than enough
4982    test $ac_count -gt 10 && break
4983  done
4984  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4985esac
4986
4987      $ac_path_FGREP_found && break 3
4988    done
4989  done
4990  done
4991IFS=$as_save_IFS
4992  if test -z "$ac_cv_path_FGREP"; then
4993    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4994  fi
4995else
4996  ac_cv_path_FGREP=$FGREP
4997fi
4998
4999   fi
5000fi
5001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5002printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5003 FGREP="$ac_cv_path_FGREP"
5004
5005
5006test -z "$GREP" && GREP=grep
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026# Check whether --with-gnu-ld was given.
5027if test ${with_gnu_ld+y}
5028then :
5029  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5030else $as_nop
5031  with_gnu_ld=no
5032fi
5033
5034ac_prog=ld
5035if test yes = "$GCC"; then
5036  # Check if gcc -print-prog-name=ld gives a path.
5037  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5038printf %s "checking for ld used by $CC... " >&6; }
5039  case $host in
5040  *-*-mingw*)
5041    # gcc leaves a trailing carriage return, which upsets mingw
5042    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5043  *)
5044    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5045  esac
5046  case $ac_prog in
5047    # Accept absolute paths.
5048    [\\/]* | ?:[\\/]*)
5049      re_direlt='/[^/][^/]*/\.\./'
5050      # Canonicalize the pathname of ld
5051      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5052      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5053	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5054      done
5055      test -z "$LD" && LD=$ac_prog
5056      ;;
5057  "")
5058    # If it fails, then pretend we aren't using GCC.
5059    ac_prog=ld
5060    ;;
5061  *)
5062    # If it is relative, then search for the first ld in PATH.
5063    with_gnu_ld=unknown
5064    ;;
5065  esac
5066elif test yes = "$with_gnu_ld"; then
5067  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5068printf %s "checking for GNU ld... " >&6; }
5069else
5070  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5071printf %s "checking for non-GNU ld... " >&6; }
5072fi
5073if test ${lt_cv_path_LD+y}
5074then :
5075  printf %s "(cached) " >&6
5076else $as_nop
5077  if test -z "$LD"; then
5078  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5079  for ac_dir in $PATH; do
5080    IFS=$lt_save_ifs
5081    test -z "$ac_dir" && ac_dir=.
5082    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5083      lt_cv_path_LD=$ac_dir/$ac_prog
5084      # Check to see if the program is GNU ld.  I'd rather use --version,
5085      # but apparently some variants of GNU ld only accept -v.
5086      # Break only if it was the GNU/non-GNU ld that we prefer.
5087      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5088      *GNU* | *'with BFD'*)
5089	test no != "$with_gnu_ld" && break
5090	;;
5091      *)
5092	test yes != "$with_gnu_ld" && break
5093	;;
5094      esac
5095    fi
5096  done
5097  IFS=$lt_save_ifs
5098else
5099  lt_cv_path_LD=$LD # Let the user override the test with a path.
5100fi
5101fi
5102
5103LD=$lt_cv_path_LD
5104if test -n "$LD"; then
5105  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5106printf "%s\n" "$LD" >&6; }
5107else
5108  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109printf "%s\n" "no" >&6; }
5110fi
5111test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5113printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5114if test ${lt_cv_prog_gnu_ld+y}
5115then :
5116  printf %s "(cached) " >&6
5117else $as_nop
5118  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5119case `$LD -v 2>&1 </dev/null` in
5120*GNU* | *'with BFD'*)
5121  lt_cv_prog_gnu_ld=yes
5122  ;;
5123*)
5124  lt_cv_prog_gnu_ld=no
5125  ;;
5126esac
5127fi
5128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5129printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5130with_gnu_ld=$lt_cv_prog_gnu_ld
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5141printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5142if test ${lt_cv_path_NM+y}
5143then :
5144  printf %s "(cached) " >&6
5145else $as_nop
5146  if test -n "$NM"; then
5147  # Let the user override the test.
5148  lt_cv_path_NM=$NM
5149else
5150  lt_nm_to_check=${ac_tool_prefix}nm
5151  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5152    lt_nm_to_check="$lt_nm_to_check nm"
5153  fi
5154  for lt_tmp_nm in $lt_nm_to_check; do
5155    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5156    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5157      IFS=$lt_save_ifs
5158      test -z "$ac_dir" && ac_dir=.
5159      tmp_nm=$ac_dir/$lt_tmp_nm
5160      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5161	# Check to see if the nm accepts a BSD-compat flag.
5162	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5163	#   nm: unknown option "B" ignored
5164	# Tru64's nm complains that /dev/null is an invalid object file
5165	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5166	case $build_os in
5167	mingw*) lt_bad_file=conftest.nm/nofile ;;
5168	*) lt_bad_file=/dev/null ;;
5169	esac
5170	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5171	*$lt_bad_file* | *'Invalid file or object type'*)
5172	  lt_cv_path_NM="$tmp_nm -B"
5173	  break 2
5174	  ;;
5175	*)
5176	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5177	  */dev/null*)
5178	    lt_cv_path_NM="$tmp_nm -p"
5179	    break 2
5180	    ;;
5181	  *)
5182	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5183	    continue # so that we can try to find one that supports BSD flags
5184	    ;;
5185	  esac
5186	  ;;
5187	esac
5188      fi
5189    done
5190    IFS=$lt_save_ifs
5191  done
5192  : ${lt_cv_path_NM=no}
5193fi
5194fi
5195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5196printf "%s\n" "$lt_cv_path_NM" >&6; }
5197if test no != "$lt_cv_path_NM"; then
5198  NM=$lt_cv_path_NM
5199else
5200  # Didn't find any BSD compatible name lister, look for dumpbin.
5201  if test -n "$DUMPBIN"; then :
5202    # Let the user override the test.
5203  else
5204    if test -n "$ac_tool_prefix"; then
5205  for ac_prog in dumpbin "link -dump"
5206  do
5207    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5208set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5210printf %s "checking for $ac_word... " >&6; }
5211if test ${ac_cv_prog_DUMPBIN+y}
5212then :
5213  printf %s "(cached) " >&6
5214else $as_nop
5215  if test -n "$DUMPBIN"; then
5216  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5217else
5218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219for as_dir in $PATH
5220do
5221  IFS=$as_save_IFS
5222  case $as_dir in #(((
5223    '') as_dir=./ ;;
5224    */) ;;
5225    *) as_dir=$as_dir/ ;;
5226  esac
5227    for ac_exec_ext in '' $ac_executable_extensions; do
5228  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5229    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5230    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5231    break 2
5232  fi
5233done
5234  done
5235IFS=$as_save_IFS
5236
5237fi
5238fi
5239DUMPBIN=$ac_cv_prog_DUMPBIN
5240if test -n "$DUMPBIN"; then
5241  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5242printf "%s\n" "$DUMPBIN" >&6; }
5243else
5244  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245printf "%s\n" "no" >&6; }
5246fi
5247
5248
5249    test -n "$DUMPBIN" && break
5250  done
5251fi
5252if test -z "$DUMPBIN"; then
5253  ac_ct_DUMPBIN=$DUMPBIN
5254  for ac_prog in dumpbin "link -dump"
5255do
5256  # Extract the first word of "$ac_prog", so it can be a program name with args.
5257set dummy $ac_prog; ac_word=$2
5258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259printf %s "checking for $ac_word... " >&6; }
5260if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5261then :
5262  printf %s "(cached) " >&6
5263else $as_nop
5264  if test -n "$ac_ct_DUMPBIN"; then
5265  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5266else
5267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268for as_dir in $PATH
5269do
5270  IFS=$as_save_IFS
5271  case $as_dir in #(((
5272    '') as_dir=./ ;;
5273    */) ;;
5274    *) as_dir=$as_dir/ ;;
5275  esac
5276    for ac_exec_ext in '' $ac_executable_extensions; do
5277  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5278    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5279    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5280    break 2
5281  fi
5282done
5283  done
5284IFS=$as_save_IFS
5285
5286fi
5287fi
5288ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5289if test -n "$ac_ct_DUMPBIN"; then
5290  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5291printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5292else
5293  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294printf "%s\n" "no" >&6; }
5295fi
5296
5297
5298  test -n "$ac_ct_DUMPBIN" && break
5299done
5300
5301  if test "x$ac_ct_DUMPBIN" = x; then
5302    DUMPBIN=":"
5303  else
5304    case $cross_compiling:$ac_tool_warned in
5305yes:)
5306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5307printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5308ac_tool_warned=yes ;;
5309esac
5310    DUMPBIN=$ac_ct_DUMPBIN
5311  fi
5312fi
5313
5314    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5315    *COFF*)
5316      DUMPBIN="$DUMPBIN -symbols -headers"
5317      ;;
5318    *)
5319      DUMPBIN=:
5320      ;;
5321    esac
5322  fi
5323
5324  if test : != "$DUMPBIN"; then
5325    NM=$DUMPBIN
5326  fi
5327fi
5328test -z "$NM" && NM=nm
5329
5330
5331
5332
5333
5334
5335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5336printf %s "checking the name lister ($NM) interface... " >&6; }
5337if test ${lt_cv_nm_interface+y}
5338then :
5339  printf %s "(cached) " >&6
5340else $as_nop
5341  lt_cv_nm_interface="BSD nm"
5342  echo "int some_variable = 0;" > conftest.$ac_ext
5343  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5344  (eval "$ac_compile" 2>conftest.err)
5345  cat conftest.err >&5
5346  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5347  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5348  cat conftest.err >&5
5349  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5350  cat conftest.out >&5
5351  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5352    lt_cv_nm_interface="MS dumpbin"
5353  fi
5354  rm -f conftest*
5355fi
5356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5357printf "%s\n" "$lt_cv_nm_interface" >&6; }
5358
5359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5360printf %s "checking whether ln -s works... " >&6; }
5361LN_S=$as_ln_s
5362if test "$LN_S" = "ln -s"; then
5363  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5364printf "%s\n" "yes" >&6; }
5365else
5366  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5367printf "%s\n" "no, using $LN_S" >&6; }
5368fi
5369
5370# find the maximum length of command line arguments
5371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5372printf %s "checking the maximum length of command line arguments... " >&6; }
5373if test ${lt_cv_sys_max_cmd_len+y}
5374then :
5375  printf %s "(cached) " >&6
5376else $as_nop
5377    i=0
5378  teststring=ABCD
5379
5380  case $build_os in
5381  msdosdjgpp*)
5382    # On DJGPP, this test can blow up pretty badly due to problems in libc
5383    # (any single argument exceeding 2000 bytes causes a buffer overrun
5384    # during glob expansion).  Even if it were fixed, the result of this
5385    # check would be larger than it should be.
5386    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5387    ;;
5388
5389  gnu*)
5390    # Under GNU Hurd, this test is not required because there is
5391    # no limit to the length of command line arguments.
5392    # Libtool will interpret -1 as no limit whatsoever
5393    lt_cv_sys_max_cmd_len=-1;
5394    ;;
5395
5396  cygwin* | mingw* | cegcc*)
5397    # On Win9x/ME, this test blows up -- it succeeds, but takes
5398    # about 5 minutes as the teststring grows exponentially.
5399    # Worse, since 9x/ME are not pre-emptively multitasking,
5400    # you end up with a "frozen" computer, even though with patience
5401    # the test eventually succeeds (with a max line length of 256k).
5402    # Instead, let's just punt: use the minimum linelength reported by
5403    # all of the supported platforms: 8192 (on NT/2K/XP).
5404    lt_cv_sys_max_cmd_len=8192;
5405    ;;
5406
5407  mint*)
5408    # On MiNT this can take a long time and run out of memory.
5409    lt_cv_sys_max_cmd_len=8192;
5410    ;;
5411
5412  amigaos*)
5413    # On AmigaOS with pdksh, this test takes hours, literally.
5414    # So we just punt and use a minimum line length of 8192.
5415    lt_cv_sys_max_cmd_len=8192;
5416    ;;
5417
5418  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5419    # This has been around since 386BSD, at least.  Likely further.
5420    if test -x /sbin/sysctl; then
5421      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5422    elif test -x /usr/sbin/sysctl; then
5423      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5424    else
5425      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5426    fi
5427    # And add a safety zone
5428    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5429    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5430    ;;
5431
5432  interix*)
5433    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5434    lt_cv_sys_max_cmd_len=196608
5435    ;;
5436
5437  os2*)
5438    # The test takes a long time on OS/2.
5439    lt_cv_sys_max_cmd_len=8192
5440    ;;
5441
5442  osf*)
5443    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5444    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5445    # nice to cause kernel panics so lets avoid the loop below.
5446    # First set a reasonable default.
5447    lt_cv_sys_max_cmd_len=16384
5448    #
5449    if test -x /sbin/sysconfig; then
5450      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5451        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5452      esac
5453    fi
5454    ;;
5455  sco3.2v5*)
5456    lt_cv_sys_max_cmd_len=102400
5457    ;;
5458  sysv5* | sco5v6* | sysv4.2uw2*)
5459    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5460    if test -n "$kargmax"; then
5461      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
5462    else
5463      lt_cv_sys_max_cmd_len=32768
5464    fi
5465    ;;
5466  *)
5467    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5468    if test -n "$lt_cv_sys_max_cmd_len" && \
5469       test undefined != "$lt_cv_sys_max_cmd_len"; then
5470      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5471      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5472    else
5473      # Make teststring a little bigger before we do anything with it.
5474      # a 1K string should be a reasonable start.
5475      for i in 1 2 3 4 5 6 7 8; do
5476        teststring=$teststring$teststring
5477      done
5478      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5479      # If test is not a shell built-in, we'll probably end up computing a
5480      # maximum length that is only half of the actual maximum length, but
5481      # we can't tell.
5482      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5483	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5484	      test 17 != "$i" # 1/2 MB should be enough
5485      do
5486        i=`expr $i + 1`
5487        teststring=$teststring$teststring
5488      done
5489      # Only check the string length outside the loop.
5490      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5491      teststring=
5492      # Add a significant safety factor because C++ compilers can tack on
5493      # massive amounts of additional arguments before passing them to the
5494      # linker.  It appears as though 1/2 is a usable value.
5495      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5496    fi
5497    ;;
5498  esac
5499
5500fi
5501
5502if test -n "$lt_cv_sys_max_cmd_len"; then
5503  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5504printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5505else
5506  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5507printf "%s\n" "none" >&6; }
5508fi
5509max_cmd_len=$lt_cv_sys_max_cmd_len
5510
5511
5512
5513
5514
5515
5516: ${CP="cp -f"}
5517: ${MV="mv -f"}
5518: ${RM="rm -f"}
5519
5520if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5521  lt_unset=unset
5522else
5523  lt_unset=false
5524fi
5525
5526
5527
5528
5529
5530# test EBCDIC or ASCII
5531case `echo X|tr X '\101'` in
5532 A) # ASCII based system
5533    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5534  lt_SP2NL='tr \040 \012'
5535  lt_NL2SP='tr \015\012 \040\040'
5536  ;;
5537 *) # EBCDIC based system
5538  lt_SP2NL='tr \100 \n'
5539  lt_NL2SP='tr \r\n \100\100'
5540  ;;
5541esac
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5552printf %s "checking how to convert $build file names to $host format... " >&6; }
5553if test ${lt_cv_to_host_file_cmd+y}
5554then :
5555  printf %s "(cached) " >&6
5556else $as_nop
5557  case $host in
5558  *-*-mingw* )
5559    case $build in
5560      *-*-mingw* ) # actually msys
5561        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5562        ;;
5563      *-*-cygwin* )
5564        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5565        ;;
5566      * ) # otherwise, assume *nix
5567        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5568        ;;
5569    esac
5570    ;;
5571  *-*-cygwin* )
5572    case $build in
5573      *-*-mingw* ) # actually msys
5574        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5575        ;;
5576      *-*-cygwin* )
5577        lt_cv_to_host_file_cmd=func_convert_file_noop
5578        ;;
5579      * ) # otherwise, assume *nix
5580        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5581        ;;
5582    esac
5583    ;;
5584  * ) # unhandled hosts (and "normal" native builds)
5585    lt_cv_to_host_file_cmd=func_convert_file_noop
5586    ;;
5587esac
5588
5589fi
5590
5591to_host_file_cmd=$lt_cv_to_host_file_cmd
5592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5593printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5594
5595
5596
5597
5598
5599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5600printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5601if test ${lt_cv_to_tool_file_cmd+y}
5602then :
5603  printf %s "(cached) " >&6
5604else $as_nop
5605  #assume ordinary cross tools, or native build.
5606lt_cv_to_tool_file_cmd=func_convert_file_noop
5607case $host in
5608  *-*-mingw* )
5609    case $build in
5610      *-*-mingw* ) # actually msys
5611        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5612        ;;
5613    esac
5614    ;;
5615esac
5616
5617fi
5618
5619to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5621printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5622
5623
5624
5625
5626
5627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5628printf %s "checking for $LD option to reload object files... " >&6; }
5629if test ${lt_cv_ld_reload_flag+y}
5630then :
5631  printf %s "(cached) " >&6
5632else $as_nop
5633  lt_cv_ld_reload_flag='-r'
5634fi
5635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5636printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5637reload_flag=$lt_cv_ld_reload_flag
5638case $reload_flag in
5639"" | " "*) ;;
5640*) reload_flag=" $reload_flag" ;;
5641esac
5642reload_cmds='$LD$reload_flag -o $output$reload_objs'
5643case $host_os in
5644  cygwin* | mingw* | pw32* | cegcc*)
5645    if test yes != "$GCC"; then
5646      reload_cmds=false
5647    fi
5648    ;;
5649  darwin*)
5650    if test yes = "$GCC"; then
5651      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5652    else
5653      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5654    fi
5655    ;;
5656esac
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666if test -n "$ac_tool_prefix"; then
5667  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5668set dummy ${ac_tool_prefix}file; ac_word=$2
5669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5670printf %s "checking for $ac_word... " >&6; }
5671if test ${ac_cv_prog_FILECMD+y}
5672then :
5673  printf %s "(cached) " >&6
5674else $as_nop
5675  if test -n "$FILECMD"; then
5676  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5677else
5678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5679for as_dir in $PATH
5680do
5681  IFS=$as_save_IFS
5682  case $as_dir in #(((
5683    '') as_dir=./ ;;
5684    */) ;;
5685    *) as_dir=$as_dir/ ;;
5686  esac
5687    for ac_exec_ext in '' $ac_executable_extensions; do
5688  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5689    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5690    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5691    break 2
5692  fi
5693done
5694  done
5695IFS=$as_save_IFS
5696
5697fi
5698fi
5699FILECMD=$ac_cv_prog_FILECMD
5700if test -n "$FILECMD"; then
5701  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5702printf "%s\n" "$FILECMD" >&6; }
5703else
5704  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5705printf "%s\n" "no" >&6; }
5706fi
5707
5708
5709fi
5710if test -z "$ac_cv_prog_FILECMD"; then
5711  ac_ct_FILECMD=$FILECMD
5712  # Extract the first word of "file", so it can be a program name with args.
5713set dummy file; ac_word=$2
5714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5715printf %s "checking for $ac_word... " >&6; }
5716if test ${ac_cv_prog_ac_ct_FILECMD+y}
5717then :
5718  printf %s "(cached) " >&6
5719else $as_nop
5720  if test -n "$ac_ct_FILECMD"; then
5721  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5722else
5723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724for as_dir in $PATH
5725do
5726  IFS=$as_save_IFS
5727  case $as_dir in #(((
5728    '') as_dir=./ ;;
5729    */) ;;
5730    *) as_dir=$as_dir/ ;;
5731  esac
5732    for ac_exec_ext in '' $ac_executable_extensions; do
5733  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5734    ac_cv_prog_ac_ct_FILECMD="file"
5735    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5736    break 2
5737  fi
5738done
5739  done
5740IFS=$as_save_IFS
5741
5742fi
5743fi
5744ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5745if test -n "$ac_ct_FILECMD"; then
5746  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5747printf "%s\n" "$ac_ct_FILECMD" >&6; }
5748else
5749  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750printf "%s\n" "no" >&6; }
5751fi
5752
5753  if test "x$ac_ct_FILECMD" = x; then
5754    FILECMD=":"
5755  else
5756    case $cross_compiling:$ac_tool_warned in
5757yes:)
5758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5759printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5760ac_tool_warned=yes ;;
5761esac
5762    FILECMD=$ac_ct_FILECMD
5763  fi
5764else
5765  FILECMD="$ac_cv_prog_FILECMD"
5766fi
5767
5768
5769
5770
5771
5772
5773
5774if test -n "$ac_tool_prefix"; then
5775  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5776set dummy ${ac_tool_prefix}objdump; ac_word=$2
5777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5778printf %s "checking for $ac_word... " >&6; }
5779if test ${ac_cv_prog_OBJDUMP+y}
5780then :
5781  printf %s "(cached) " >&6
5782else $as_nop
5783  if test -n "$OBJDUMP"; then
5784  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5785else
5786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787for as_dir in $PATH
5788do
5789  IFS=$as_save_IFS
5790  case $as_dir in #(((
5791    '') as_dir=./ ;;
5792    */) ;;
5793    *) as_dir=$as_dir/ ;;
5794  esac
5795    for ac_exec_ext in '' $ac_executable_extensions; do
5796  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5797    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5798    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5799    break 2
5800  fi
5801done
5802  done
5803IFS=$as_save_IFS
5804
5805fi
5806fi
5807OBJDUMP=$ac_cv_prog_OBJDUMP
5808if test -n "$OBJDUMP"; then
5809  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5810printf "%s\n" "$OBJDUMP" >&6; }
5811else
5812  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5813printf "%s\n" "no" >&6; }
5814fi
5815
5816
5817fi
5818if test -z "$ac_cv_prog_OBJDUMP"; then
5819  ac_ct_OBJDUMP=$OBJDUMP
5820  # Extract the first word of "objdump", so it can be a program name with args.
5821set dummy objdump; ac_word=$2
5822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5823printf %s "checking for $ac_word... " >&6; }
5824if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5825then :
5826  printf %s "(cached) " >&6
5827else $as_nop
5828  if test -n "$ac_ct_OBJDUMP"; then
5829  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5830else
5831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832for as_dir in $PATH
5833do
5834  IFS=$as_save_IFS
5835  case $as_dir in #(((
5836    '') as_dir=./ ;;
5837    */) ;;
5838    *) as_dir=$as_dir/ ;;
5839  esac
5840    for ac_exec_ext in '' $ac_executable_extensions; do
5841  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5842    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5843    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5844    break 2
5845  fi
5846done
5847  done
5848IFS=$as_save_IFS
5849
5850fi
5851fi
5852ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5853if test -n "$ac_ct_OBJDUMP"; then
5854  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5855printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5856else
5857  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858printf "%s\n" "no" >&6; }
5859fi
5860
5861  if test "x$ac_ct_OBJDUMP" = x; then
5862    OBJDUMP="false"
5863  else
5864    case $cross_compiling:$ac_tool_warned in
5865yes:)
5866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5867printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5868ac_tool_warned=yes ;;
5869esac
5870    OBJDUMP=$ac_ct_OBJDUMP
5871  fi
5872else
5873  OBJDUMP="$ac_cv_prog_OBJDUMP"
5874fi
5875
5876test -z "$OBJDUMP" && OBJDUMP=objdump
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5887printf %s "checking how to recognize dependent libraries... " >&6; }
5888if test ${lt_cv_deplibs_check_method+y}
5889then :
5890  printf %s "(cached) " >&6
5891else $as_nop
5892  lt_cv_file_magic_cmd='$MAGIC_CMD'
5893lt_cv_file_magic_test_file=
5894lt_cv_deplibs_check_method='unknown'
5895# Need to set the preceding variable on all platforms that support
5896# interlibrary dependencies.
5897# 'none' -- dependencies not supported.
5898# 'unknown' -- same as none, but documents that we really don't know.
5899# 'pass_all' -- all dependencies passed with no checks.
5900# 'test_compile' -- check by making test program.
5901# 'file_magic [[regex]]' -- check by looking for files in library path
5902# that responds to the $file_magic_cmd with a given extended regex.
5903# If you have 'file' or equivalent on your system and you're not sure
5904# whether 'pass_all' will *always* work, you probably want this one.
5905
5906case $host_os in
5907aix[4-9]*)
5908  lt_cv_deplibs_check_method=pass_all
5909  ;;
5910
5911beos*)
5912  lt_cv_deplibs_check_method=pass_all
5913  ;;
5914
5915bsdi[45]*)
5916  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5917  lt_cv_file_magic_cmd='$FILECMD -L'
5918  lt_cv_file_magic_test_file=/shlib/libc.so
5919  ;;
5920
5921cygwin*)
5922  # func_win32_libid is a shell function defined in ltmain.sh
5923  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5924  lt_cv_file_magic_cmd='func_win32_libid'
5925  ;;
5926
5927mingw* | pw32*)
5928  # Base MSYS/MinGW do not provide the 'file' command needed by
5929  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5930  # unless we find 'file', for example because we are cross-compiling.
5931  if ( file / ) >/dev/null 2>&1; then
5932    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5933    lt_cv_file_magic_cmd='func_win32_libid'
5934  else
5935    # Keep this pattern in sync with the one in func_win32_libid.
5936    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5937    lt_cv_file_magic_cmd='$OBJDUMP -f'
5938  fi
5939  ;;
5940
5941cegcc*)
5942  # use the weaker test based on 'objdump'. See mingw*.
5943  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5944  lt_cv_file_magic_cmd='$OBJDUMP -f'
5945  ;;
5946
5947darwin* | rhapsody*)
5948  lt_cv_deplibs_check_method=pass_all
5949  ;;
5950
5951freebsd* | dragonfly* | midnightbsd*)
5952  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5953    case $host_cpu in
5954    i*86 )
5955      # Not sure whether the presence of OpenBSD here was a mistake.
5956      # Let's accept both of them until this is cleared up.
5957      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5958      lt_cv_file_magic_cmd=$FILECMD
5959      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5960      ;;
5961    esac
5962  else
5963    lt_cv_deplibs_check_method=pass_all
5964  fi
5965  ;;
5966
5967haiku*)
5968  lt_cv_deplibs_check_method=pass_all
5969  ;;
5970
5971hpux10.20* | hpux11*)
5972  lt_cv_file_magic_cmd=$FILECMD
5973  case $host_cpu in
5974  ia64*)
5975    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5976    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5977    ;;
5978  hppa*64*)
5979    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]'
5980    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5981    ;;
5982  *)
5983    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5984    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5985    ;;
5986  esac
5987  ;;
5988
5989interix[3-9]*)
5990  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5991  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5992  ;;
5993
5994irix5* | irix6* | nonstopux*)
5995  case $LD in
5996  *-32|*"-32 ") libmagic=32-bit;;
5997  *-n32|*"-n32 ") libmagic=N32;;
5998  *-64|*"-64 ") libmagic=64-bit;;
5999  *) libmagic=never-match;;
6000  esac
6001  lt_cv_deplibs_check_method=pass_all
6002  ;;
6003
6004# This must be glibc/ELF.
6005linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6006  lt_cv_deplibs_check_method=pass_all
6007  ;;
6008
6009netbsd*)
6010  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6011    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6012  else
6013    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6014  fi
6015  ;;
6016
6017newos6*)
6018  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6019  lt_cv_file_magic_cmd=$FILECMD
6020  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6021  ;;
6022
6023*nto* | *qnx*)
6024  lt_cv_deplibs_check_method=pass_all
6025  ;;
6026
6027openbsd* | bitrig*)
6028  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6029    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6030  else
6031    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6032  fi
6033  ;;
6034
6035osf3* | osf4* | osf5*)
6036  lt_cv_deplibs_check_method=pass_all
6037  ;;
6038
6039rdos*)
6040  lt_cv_deplibs_check_method=pass_all
6041  ;;
6042
6043solaris*)
6044  lt_cv_deplibs_check_method=pass_all
6045  ;;
6046
6047sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6048  lt_cv_deplibs_check_method=pass_all
6049  ;;
6050
6051sysv4 | sysv4.3*)
6052  case $host_vendor in
6053  motorola)
6054    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]'
6055    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6056    ;;
6057  ncr)
6058    lt_cv_deplibs_check_method=pass_all
6059    ;;
6060  sequent)
6061    lt_cv_file_magic_cmd='/bin/file'
6062    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6063    ;;
6064  sni)
6065    lt_cv_file_magic_cmd='/bin/file'
6066    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6067    lt_cv_file_magic_test_file=/lib/libc.so
6068    ;;
6069  siemens)
6070    lt_cv_deplibs_check_method=pass_all
6071    ;;
6072  pc)
6073    lt_cv_deplibs_check_method=pass_all
6074    ;;
6075  esac
6076  ;;
6077
6078tpf*)
6079  lt_cv_deplibs_check_method=pass_all
6080  ;;
6081os2*)
6082  lt_cv_deplibs_check_method=pass_all
6083  ;;
6084esac
6085
6086fi
6087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6088printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6089
6090file_magic_glob=
6091want_nocaseglob=no
6092if test "$build" = "$host"; then
6093  case $host_os in
6094  mingw* | pw32*)
6095    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6096      want_nocaseglob=yes
6097    else
6098      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6099    fi
6100    ;;
6101  esac
6102fi
6103
6104file_magic_cmd=$lt_cv_file_magic_cmd
6105deplibs_check_method=$lt_cv_deplibs_check_method
6106test -z "$deplibs_check_method" && deplibs_check_method=unknown
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129if test -n "$ac_tool_prefix"; then
6130  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6131set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133printf %s "checking for $ac_word... " >&6; }
6134if test ${ac_cv_prog_DLLTOOL+y}
6135then :
6136  printf %s "(cached) " >&6
6137else $as_nop
6138  if test -n "$DLLTOOL"; then
6139  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6140else
6141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142for as_dir in $PATH
6143do
6144  IFS=$as_save_IFS
6145  case $as_dir in #(((
6146    '') as_dir=./ ;;
6147    */) ;;
6148    *) as_dir=$as_dir/ ;;
6149  esac
6150    for ac_exec_ext in '' $ac_executable_extensions; do
6151  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6152    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6153    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6154    break 2
6155  fi
6156done
6157  done
6158IFS=$as_save_IFS
6159
6160fi
6161fi
6162DLLTOOL=$ac_cv_prog_DLLTOOL
6163if test -n "$DLLTOOL"; then
6164  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6165printf "%s\n" "$DLLTOOL" >&6; }
6166else
6167  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6168printf "%s\n" "no" >&6; }
6169fi
6170
6171
6172fi
6173if test -z "$ac_cv_prog_DLLTOOL"; then
6174  ac_ct_DLLTOOL=$DLLTOOL
6175  # Extract the first word of "dlltool", so it can be a program name with args.
6176set dummy dlltool; ac_word=$2
6177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6178printf %s "checking for $ac_word... " >&6; }
6179if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6180then :
6181  printf %s "(cached) " >&6
6182else $as_nop
6183  if test -n "$ac_ct_DLLTOOL"; then
6184  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6185else
6186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187for as_dir in $PATH
6188do
6189  IFS=$as_save_IFS
6190  case $as_dir in #(((
6191    '') as_dir=./ ;;
6192    */) ;;
6193    *) as_dir=$as_dir/ ;;
6194  esac
6195    for ac_exec_ext in '' $ac_executable_extensions; do
6196  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6197    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6198    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6199    break 2
6200  fi
6201done
6202  done
6203IFS=$as_save_IFS
6204
6205fi
6206fi
6207ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6208if test -n "$ac_ct_DLLTOOL"; then
6209  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6210printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6211else
6212  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6213printf "%s\n" "no" >&6; }
6214fi
6215
6216  if test "x$ac_ct_DLLTOOL" = x; then
6217    DLLTOOL="false"
6218  else
6219    case $cross_compiling:$ac_tool_warned in
6220yes:)
6221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6222printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6223ac_tool_warned=yes ;;
6224esac
6225    DLLTOOL=$ac_ct_DLLTOOL
6226  fi
6227else
6228  DLLTOOL="$ac_cv_prog_DLLTOOL"
6229fi
6230
6231test -z "$DLLTOOL" && DLLTOOL=dlltool
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6243printf %s "checking how to associate runtime and link libraries... " >&6; }
6244if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6245then :
6246  printf %s "(cached) " >&6
6247else $as_nop
6248  lt_cv_sharedlib_from_linklib_cmd='unknown'
6249
6250case $host_os in
6251cygwin* | mingw* | pw32* | cegcc*)
6252  # two different shell functions defined in ltmain.sh;
6253  # decide which one to use based on capabilities of $DLLTOOL
6254  case `$DLLTOOL --help 2>&1` in
6255  *--identify-strict*)
6256    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6257    ;;
6258  *)
6259    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6260    ;;
6261  esac
6262  ;;
6263*)
6264  # fallback: assume linklib IS sharedlib
6265  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6266  ;;
6267esac
6268
6269fi
6270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6271printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6272sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6273test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6274
6275
6276
6277
6278
6279
6280
6281
6282if test -n "$ac_tool_prefix"; then
6283  for ac_prog in ar
6284  do
6285    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6286set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6288printf %s "checking for $ac_word... " >&6; }
6289if test ${ac_cv_prog_AR+y}
6290then :
6291  printf %s "(cached) " >&6
6292else $as_nop
6293  if test -n "$AR"; then
6294  ac_cv_prog_AR="$AR" # Let the user override the test.
6295else
6296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297for as_dir in $PATH
6298do
6299  IFS=$as_save_IFS
6300  case $as_dir in #(((
6301    '') as_dir=./ ;;
6302    */) ;;
6303    *) as_dir=$as_dir/ ;;
6304  esac
6305    for ac_exec_ext in '' $ac_executable_extensions; do
6306  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6307    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6308    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6309    break 2
6310  fi
6311done
6312  done
6313IFS=$as_save_IFS
6314
6315fi
6316fi
6317AR=$ac_cv_prog_AR
6318if test -n "$AR"; then
6319  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6320printf "%s\n" "$AR" >&6; }
6321else
6322  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323printf "%s\n" "no" >&6; }
6324fi
6325
6326
6327    test -n "$AR" && break
6328  done
6329fi
6330if test -z "$AR"; then
6331  ac_ct_AR=$AR
6332  for ac_prog in ar
6333do
6334  # Extract the first word of "$ac_prog", so it can be a program name with args.
6335set dummy $ac_prog; ac_word=$2
6336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6337printf %s "checking for $ac_word... " >&6; }
6338if test ${ac_cv_prog_ac_ct_AR+y}
6339then :
6340  printf %s "(cached) " >&6
6341else $as_nop
6342  if test -n "$ac_ct_AR"; then
6343  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6344else
6345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346for as_dir in $PATH
6347do
6348  IFS=$as_save_IFS
6349  case $as_dir in #(((
6350    '') as_dir=./ ;;
6351    */) ;;
6352    *) as_dir=$as_dir/ ;;
6353  esac
6354    for ac_exec_ext in '' $ac_executable_extensions; do
6355  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6356    ac_cv_prog_ac_ct_AR="$ac_prog"
6357    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6358    break 2
6359  fi
6360done
6361  done
6362IFS=$as_save_IFS
6363
6364fi
6365fi
6366ac_ct_AR=$ac_cv_prog_ac_ct_AR
6367if test -n "$ac_ct_AR"; then
6368  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6369printf "%s\n" "$ac_ct_AR" >&6; }
6370else
6371  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372printf "%s\n" "no" >&6; }
6373fi
6374
6375
6376  test -n "$ac_ct_AR" && break
6377done
6378
6379  if test "x$ac_ct_AR" = x; then
6380    AR="false"
6381  else
6382    case $cross_compiling:$ac_tool_warned in
6383yes:)
6384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6385printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6386ac_tool_warned=yes ;;
6387esac
6388    AR=$ac_ct_AR
6389  fi
6390fi
6391
6392: ${AR=ar}
6393
6394
6395
6396
6397
6398
6399# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6400# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6401# higher priority because thats what people were doing historically (setting
6402# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6403# variable obsoleted/removed.
6404
6405test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6406lt_ar_flags=$AR_FLAGS
6407
6408
6409
6410
6411
6412
6413# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6414# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6415
6416
6417
6418
6419
6420
6421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6422printf %s "checking for archiver @FILE support... " >&6; }
6423if test ${lt_cv_ar_at_file+y}
6424then :
6425  printf %s "(cached) " >&6
6426else $as_nop
6427  lt_cv_ar_at_file=no
6428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429/* end confdefs.h.  */
6430
6431int
6432main (void)
6433{
6434
6435  ;
6436  return 0;
6437}
6438_ACEOF
6439if ac_fn_c_try_compile "$LINENO"
6440then :
6441  echo conftest.$ac_objext > conftest.lst
6442      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6443      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6444  (eval $lt_ar_try) 2>&5
6445  ac_status=$?
6446  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6447  test $ac_status = 0; }
6448      if test 0 -eq "$ac_status"; then
6449	# Ensure the archiver fails upon bogus file names.
6450	rm -f conftest.$ac_objext libconftest.a
6451	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6452  (eval $lt_ar_try) 2>&5
6453  ac_status=$?
6454  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6455  test $ac_status = 0; }
6456	if test 0 -ne "$ac_status"; then
6457          lt_cv_ar_at_file=@
6458        fi
6459      fi
6460      rm -f conftest.* libconftest.a
6461
6462fi
6463rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6464
6465fi
6466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6467printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6468
6469if test no = "$lt_cv_ar_at_file"; then
6470  archiver_list_spec=
6471else
6472  archiver_list_spec=$lt_cv_ar_at_file
6473fi
6474
6475
6476
6477
6478
6479
6480
6481if test -n "$ac_tool_prefix"; then
6482  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6483set dummy ${ac_tool_prefix}strip; ac_word=$2
6484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485printf %s "checking for $ac_word... " >&6; }
6486if test ${ac_cv_prog_STRIP+y}
6487then :
6488  printf %s "(cached) " >&6
6489else $as_nop
6490  if test -n "$STRIP"; then
6491  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6492else
6493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494for as_dir in $PATH
6495do
6496  IFS=$as_save_IFS
6497  case $as_dir in #(((
6498    '') as_dir=./ ;;
6499    */) ;;
6500    *) as_dir=$as_dir/ ;;
6501  esac
6502    for ac_exec_ext in '' $ac_executable_extensions; do
6503  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6504    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6505    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6506    break 2
6507  fi
6508done
6509  done
6510IFS=$as_save_IFS
6511
6512fi
6513fi
6514STRIP=$ac_cv_prog_STRIP
6515if test -n "$STRIP"; then
6516  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6517printf "%s\n" "$STRIP" >&6; }
6518else
6519  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6520printf "%s\n" "no" >&6; }
6521fi
6522
6523
6524fi
6525if test -z "$ac_cv_prog_STRIP"; then
6526  ac_ct_STRIP=$STRIP
6527  # Extract the first word of "strip", so it can be a program name with args.
6528set dummy strip; ac_word=$2
6529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6530printf %s "checking for $ac_word... " >&6; }
6531if test ${ac_cv_prog_ac_ct_STRIP+y}
6532then :
6533  printf %s "(cached) " >&6
6534else $as_nop
6535  if test -n "$ac_ct_STRIP"; then
6536  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6537else
6538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539for as_dir in $PATH
6540do
6541  IFS=$as_save_IFS
6542  case $as_dir in #(((
6543    '') as_dir=./ ;;
6544    */) ;;
6545    *) as_dir=$as_dir/ ;;
6546  esac
6547    for ac_exec_ext in '' $ac_executable_extensions; do
6548  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6549    ac_cv_prog_ac_ct_STRIP="strip"
6550    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6551    break 2
6552  fi
6553done
6554  done
6555IFS=$as_save_IFS
6556
6557fi
6558fi
6559ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6560if test -n "$ac_ct_STRIP"; then
6561  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6562printf "%s\n" "$ac_ct_STRIP" >&6; }
6563else
6564  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565printf "%s\n" "no" >&6; }
6566fi
6567
6568  if test "x$ac_ct_STRIP" = x; then
6569    STRIP=":"
6570  else
6571    case $cross_compiling:$ac_tool_warned in
6572yes:)
6573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6574printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6575ac_tool_warned=yes ;;
6576esac
6577    STRIP=$ac_ct_STRIP
6578  fi
6579else
6580  STRIP="$ac_cv_prog_STRIP"
6581fi
6582
6583test -z "$STRIP" && STRIP=:
6584
6585
6586
6587
6588
6589
6590if test -n "$ac_tool_prefix"; then
6591  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6592set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6594printf %s "checking for $ac_word... " >&6; }
6595if test ${ac_cv_prog_RANLIB+y}
6596then :
6597  printf %s "(cached) " >&6
6598else $as_nop
6599  if test -n "$RANLIB"; then
6600  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6601else
6602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603for as_dir in $PATH
6604do
6605  IFS=$as_save_IFS
6606  case $as_dir in #(((
6607    '') as_dir=./ ;;
6608    */) ;;
6609    *) as_dir=$as_dir/ ;;
6610  esac
6611    for ac_exec_ext in '' $ac_executable_extensions; do
6612  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6613    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6614    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6615    break 2
6616  fi
6617done
6618  done
6619IFS=$as_save_IFS
6620
6621fi
6622fi
6623RANLIB=$ac_cv_prog_RANLIB
6624if test -n "$RANLIB"; then
6625  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6626printf "%s\n" "$RANLIB" >&6; }
6627else
6628  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6629printf "%s\n" "no" >&6; }
6630fi
6631
6632
6633fi
6634if test -z "$ac_cv_prog_RANLIB"; then
6635  ac_ct_RANLIB=$RANLIB
6636  # Extract the first word of "ranlib", so it can be a program name with args.
6637set dummy ranlib; ac_word=$2
6638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639printf %s "checking for $ac_word... " >&6; }
6640if test ${ac_cv_prog_ac_ct_RANLIB+y}
6641then :
6642  printf %s "(cached) " >&6
6643else $as_nop
6644  if test -n "$ac_ct_RANLIB"; then
6645  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6646else
6647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648for as_dir in $PATH
6649do
6650  IFS=$as_save_IFS
6651  case $as_dir in #(((
6652    '') as_dir=./ ;;
6653    */) ;;
6654    *) as_dir=$as_dir/ ;;
6655  esac
6656    for ac_exec_ext in '' $ac_executable_extensions; do
6657  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6658    ac_cv_prog_ac_ct_RANLIB="ranlib"
6659    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6660    break 2
6661  fi
6662done
6663  done
6664IFS=$as_save_IFS
6665
6666fi
6667fi
6668ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6669if test -n "$ac_ct_RANLIB"; then
6670  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6671printf "%s\n" "$ac_ct_RANLIB" >&6; }
6672else
6673  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674printf "%s\n" "no" >&6; }
6675fi
6676
6677  if test "x$ac_ct_RANLIB" = x; then
6678    RANLIB=":"
6679  else
6680    case $cross_compiling:$ac_tool_warned in
6681yes:)
6682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6683printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6684ac_tool_warned=yes ;;
6685esac
6686    RANLIB=$ac_ct_RANLIB
6687  fi
6688else
6689  RANLIB="$ac_cv_prog_RANLIB"
6690fi
6691
6692test -z "$RANLIB" && RANLIB=:
6693
6694
6695
6696
6697
6698
6699# Determine commands to create old-style static archives.
6700old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6701old_postinstall_cmds='chmod 644 $oldlib'
6702old_postuninstall_cmds=
6703
6704if test -n "$RANLIB"; then
6705  case $host_os in
6706  bitrig* | openbsd*)
6707    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6708    ;;
6709  *)
6710    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6711    ;;
6712  esac
6713  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6714fi
6715
6716case $host_os in
6717  darwin*)
6718    lock_old_archive_extraction=yes ;;
6719  *)
6720    lock_old_archive_extraction=no ;;
6721esac
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
6756
6757
6758
6759
6760
6761# If no C compiler was specified, use CC.
6762LTCC=${LTCC-"$CC"}
6763
6764# If no C compiler flags were specified, use CFLAGS.
6765LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6766
6767# Allow CC to be a program name with arguments.
6768compiler=$CC
6769
6770
6771# Check for command to grab the raw symbol name followed by C symbol from nm.
6772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6773printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6774if test ${lt_cv_sys_global_symbol_pipe+y}
6775then :
6776  printf %s "(cached) " >&6
6777else $as_nop
6778
6779# These are sane defaults that work on at least a few old systems.
6780# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6781
6782# Character class describing NM global symbol codes.
6783symcode='[BCDEGRST]'
6784
6785# Regexp to match symbols that can be accessed directly from C.
6786sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6787
6788# Define system-specific variables.
6789case $host_os in
6790aix*)
6791  symcode='[BCDT]'
6792  ;;
6793cygwin* | mingw* | pw32* | cegcc*)
6794  symcode='[ABCDGISTW]'
6795  ;;
6796hpux*)
6797  if test ia64 = "$host_cpu"; then
6798    symcode='[ABCDEGRST]'
6799  fi
6800  ;;
6801irix* | nonstopux*)
6802  symcode='[BCDEGRST]'
6803  ;;
6804osf*)
6805  symcode='[BCDEGQRST]'
6806  ;;
6807solaris*)
6808  symcode='[BDRT]'
6809  ;;
6810sco3.2v5*)
6811  symcode='[DT]'
6812  ;;
6813sysv4.2uw2*)
6814  symcode='[DT]'
6815  ;;
6816sysv5* | sco5v6* | unixware* | OpenUNIX*)
6817  symcode='[ABDT]'
6818  ;;
6819sysv4)
6820  symcode='[DFNSTU]'
6821  ;;
6822esac
6823
6824# If we're using GNU nm, then use its standard symbol codes.
6825case `$NM -V 2>&1` in
6826*GNU* | *'with BFD'*)
6827  symcode='[ABCDGIRSTW]' ;;
6828esac
6829
6830if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6831  # Gets list of data symbols to import.
6832  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6833  # Adjust the below global symbol transforms to fixup imported variables.
6834  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6835  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6836  lt_c_name_lib_hook="\
6837  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6838  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6839else
6840  # Disable hooks by default.
6841  lt_cv_sys_global_symbol_to_import=
6842  lt_cdecl_hook=
6843  lt_c_name_hook=
6844  lt_c_name_lib_hook=
6845fi
6846
6847# Transform an extracted symbol line into a proper C declaration.
6848# Some systems (esp. on ia64) link data and code symbols differently,
6849# so use this general approach.
6850lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6851$lt_cdecl_hook\
6852" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6853" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6854
6855# Transform an extracted symbol line into symbol name and symbol address
6856lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6857$lt_c_name_hook\
6858" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6859" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6860
6861# Transform an extracted symbol line into symbol name with lib prefix and
6862# symbol address.
6863lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6864$lt_c_name_lib_hook\
6865" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6866" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6867" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6868
6869# Handle CRLF in mingw tool chain
6870opt_cr=
6871case $build_os in
6872mingw*)
6873  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6874  ;;
6875esac
6876
6877# Try without a prefix underscore, then with it.
6878for ac_symprfx in "" "_"; do
6879
6880  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6881  symxfrm="\\1 $ac_symprfx\\2 \\2"
6882
6883  # Write the raw and C identifiers.
6884  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6885    # Fake it for dumpbin and say T for any non-static function,
6886    # D for any global variable and I for any imported variable.
6887    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6888    # which start with @ or ?.
6889    lt_cv_sys_global_symbol_pipe="$AWK '"\
6890"     {last_section=section; section=\$ 3};"\
6891"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6892"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6893"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6894"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6895"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6896"     \$ 0!~/External *\|/{next};"\
6897"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6898"     {if(hide[section]) next};"\
6899"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6900"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6901"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6902"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6903"     ' prfx=^$ac_symprfx"
6904  else
6905    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6906  fi
6907  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6908
6909  # Check to see that the pipe works correctly.
6910  pipe_works=no
6911
6912  rm -f conftest*
6913  cat > conftest.$ac_ext <<_LT_EOF
6914#ifdef __cplusplus
6915extern "C" {
6916#endif
6917char nm_test_var;
6918void nm_test_func(void);
6919void nm_test_func(void){}
6920#ifdef __cplusplus
6921}
6922#endif
6923int main(){nm_test_var='a';nm_test_func();return(0);}
6924_LT_EOF
6925
6926  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6927  (eval $ac_compile) 2>&5
6928  ac_status=$?
6929  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6930  test $ac_status = 0; }; then
6931    # Now try to grab the symbols.
6932    nlist=conftest.nm
6933    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6934  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6935  ac_status=$?
6936  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6937  test $ac_status = 0; } && test -s "$nlist"; then
6938      # Try sorting and uniquifying the output.
6939      if sort "$nlist" | uniq > "$nlist"T; then
6940	mv -f "$nlist"T "$nlist"
6941      else
6942	rm -f "$nlist"T
6943      fi
6944
6945      # Make sure that we snagged all the symbols we need.
6946      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6947	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6948	  cat <<_LT_EOF > conftest.$ac_ext
6949/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6950#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6951/* DATA imports from DLLs on WIN32 can't be const, because runtime
6952   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6953# define LT_DLSYM_CONST
6954#elif defined __osf__
6955/* This system does not cope well with relocations in const data.  */
6956# define LT_DLSYM_CONST
6957#else
6958# define LT_DLSYM_CONST const
6959#endif
6960
6961#ifdef __cplusplus
6962extern "C" {
6963#endif
6964
6965_LT_EOF
6966	  # Now generate the symbol file.
6967	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6968
6969	  cat <<_LT_EOF >> conftest.$ac_ext
6970
6971/* The mapping between symbol names and symbols.  */
6972LT_DLSYM_CONST struct {
6973  const char *name;
6974  void       *address;
6975}
6976lt__PROGRAM__LTX_preloaded_symbols[] =
6977{
6978  { "@PROGRAM@", (void *) 0 },
6979_LT_EOF
6980	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6981	  cat <<\_LT_EOF >> conftest.$ac_ext
6982  {0, (void *) 0}
6983};
6984
6985/* This works around a problem in FreeBSD linker */
6986#ifdef FREEBSD_WORKAROUND
6987static const void *lt_preloaded_setup() {
6988  return lt__PROGRAM__LTX_preloaded_symbols;
6989}
6990#endif
6991
6992#ifdef __cplusplus
6993}
6994#endif
6995_LT_EOF
6996	  # Now try linking the two files.
6997	  mv conftest.$ac_objext conftstm.$ac_objext
6998	  lt_globsym_save_LIBS=$LIBS
6999	  lt_globsym_save_CFLAGS=$CFLAGS
7000	  LIBS=conftstm.$ac_objext
7001	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7002	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7003  (eval $ac_link) 2>&5
7004  ac_status=$?
7005  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7006  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7007	    pipe_works=yes
7008	  fi
7009	  LIBS=$lt_globsym_save_LIBS
7010	  CFLAGS=$lt_globsym_save_CFLAGS
7011	else
7012	  echo "cannot find nm_test_func in $nlist" >&5
7013	fi
7014      else
7015	echo "cannot find nm_test_var in $nlist" >&5
7016      fi
7017    else
7018      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7019    fi
7020  else
7021    echo "$progname: failed program was:" >&5
7022    cat conftest.$ac_ext >&5
7023  fi
7024  rm -rf conftest* conftst*
7025
7026  # Do not use the global_symbol_pipe unless it works.
7027  if test yes = "$pipe_works"; then
7028    break
7029  else
7030    lt_cv_sys_global_symbol_pipe=
7031  fi
7032done
7033
7034fi
7035
7036if test -z "$lt_cv_sys_global_symbol_pipe"; then
7037  lt_cv_sys_global_symbol_to_cdecl=
7038fi
7039if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7040  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7041printf "%s\n" "failed" >&6; }
7042else
7043  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7044printf "%s\n" "ok" >&6; }
7045fi
7046
7047# Response file support.
7048if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7049  nm_file_list_spec='@'
7050elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7051  nm_file_list_spec='@'
7052fi
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
7085
7086
7087
7088
7089
7090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7091printf %s "checking for sysroot... " >&6; }
7092
7093# Check whether --with-sysroot was given.
7094if test ${with_sysroot+y}
7095then :
7096  withval=$with_sysroot;
7097else $as_nop
7098  with_sysroot=no
7099fi
7100
7101
7102lt_sysroot=
7103case $with_sysroot in #(
7104 yes)
7105   if test yes = "$GCC"; then
7106     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7107   fi
7108   ;; #(
7109 /*)
7110   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7111   ;; #(
7112 no|'')
7113   ;; #(
7114 *)
7115   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7116printf "%s\n" "$with_sysroot" >&6; }
7117   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7118   ;;
7119esac
7120
7121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7122printf "%s\n" "${lt_sysroot:-no}" >&6; }
7123
7124
7125
7126
7127
7128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7129printf %s "checking for a working dd... " >&6; }
7130if test ${ac_cv_path_lt_DD+y}
7131then :
7132  printf %s "(cached) " >&6
7133else $as_nop
7134  printf 0123456789abcdef0123456789abcdef >conftest.i
7135cat conftest.i conftest.i >conftest2.i
7136: ${lt_DD:=$DD}
7137if test -z "$lt_DD"; then
7138  ac_path_lt_DD_found=false
7139  # Loop through the user's path and test for each of PROGNAME-LIST
7140  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141for as_dir in $PATH
7142do
7143  IFS=$as_save_IFS
7144  case $as_dir in #(((
7145    '') as_dir=./ ;;
7146    */) ;;
7147    *) as_dir=$as_dir/ ;;
7148  esac
7149    for ac_prog in dd
7150   do
7151    for ac_exec_ext in '' $ac_executable_extensions; do
7152      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7153      as_fn_executable_p "$ac_path_lt_DD" || continue
7154if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7155  cmp -s conftest.i conftest.out \
7156  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7157fi
7158      $ac_path_lt_DD_found && break 3
7159    done
7160  done
7161  done
7162IFS=$as_save_IFS
7163  if test -z "$ac_cv_path_lt_DD"; then
7164    :
7165  fi
7166else
7167  ac_cv_path_lt_DD=$lt_DD
7168fi
7169
7170rm -f conftest.i conftest2.i conftest.out
7171fi
7172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7173printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7174
7175
7176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7177printf %s "checking how to truncate binary pipes... " >&6; }
7178if test ${lt_cv_truncate_bin+y}
7179then :
7180  printf %s "(cached) " >&6
7181else $as_nop
7182  printf 0123456789abcdef0123456789abcdef >conftest.i
7183cat conftest.i conftest.i >conftest2.i
7184lt_cv_truncate_bin=
7185if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7186  cmp -s conftest.i conftest.out \
7187  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7188fi
7189rm -f conftest.i conftest2.i conftest.out
7190test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7191fi
7192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7193printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7194
7195
7196
7197
7198
7199
7200
7201# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7202func_cc_basename ()
7203{
7204    for cc_temp in $*""; do
7205      case $cc_temp in
7206        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7207        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7208        \-*) ;;
7209        *) break;;
7210      esac
7211    done
7212    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7213}
7214
7215# Check whether --enable-libtool-lock was given.
7216if test ${enable_libtool_lock+y}
7217then :
7218  enableval=$enable_libtool_lock;
7219fi
7220
7221test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7222
7223# Some flags need to be propagated to the compiler or linker for good
7224# libtool support.
7225case $host in
7226ia64-*-hpux*)
7227  # Find out what ABI is being produced by ac_compile, and set mode
7228  # options accordingly.
7229  echo 'int i;' > conftest.$ac_ext
7230  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7231  (eval $ac_compile) 2>&5
7232  ac_status=$?
7233  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7234  test $ac_status = 0; }; then
7235    case `$FILECMD conftest.$ac_objext` in
7236      *ELF-32*)
7237	HPUX_IA64_MODE=32
7238	;;
7239      *ELF-64*)
7240	HPUX_IA64_MODE=64
7241	;;
7242    esac
7243  fi
7244  rm -rf conftest*
7245  ;;
7246*-*-irix6*)
7247  # Find out what ABI is being produced by ac_compile, and set linker
7248  # options accordingly.
7249  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7250  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7251  (eval $ac_compile) 2>&5
7252  ac_status=$?
7253  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7254  test $ac_status = 0; }; then
7255    if test yes = "$lt_cv_prog_gnu_ld"; then
7256      case `$FILECMD conftest.$ac_objext` in
7257	*32-bit*)
7258	  LD="${LD-ld} -melf32bsmip"
7259	  ;;
7260	*N32*)
7261	  LD="${LD-ld} -melf32bmipn32"
7262	  ;;
7263	*64-bit*)
7264	  LD="${LD-ld} -melf64bmip"
7265	;;
7266      esac
7267    else
7268      case `$FILECMD conftest.$ac_objext` in
7269	*32-bit*)
7270	  LD="${LD-ld} -32"
7271	  ;;
7272	*N32*)
7273	  LD="${LD-ld} -n32"
7274	  ;;
7275	*64-bit*)
7276	  LD="${LD-ld} -64"
7277	  ;;
7278      esac
7279    fi
7280  fi
7281  rm -rf conftest*
7282  ;;
7283
7284mips64*-*linux*)
7285  # Find out what ABI is being produced by ac_compile, and set linker
7286  # options accordingly.
7287  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7288  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7289  (eval $ac_compile) 2>&5
7290  ac_status=$?
7291  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7292  test $ac_status = 0; }; then
7293    emul=elf
7294    case `$FILECMD conftest.$ac_objext` in
7295      *32-bit*)
7296	emul="${emul}32"
7297	;;
7298      *64-bit*)
7299	emul="${emul}64"
7300	;;
7301    esac
7302    case `$FILECMD conftest.$ac_objext` in
7303      *MSB*)
7304	emul="${emul}btsmip"
7305	;;
7306      *LSB*)
7307	emul="${emul}ltsmip"
7308	;;
7309    esac
7310    case `$FILECMD conftest.$ac_objext` in
7311      *N32*)
7312	emul="${emul}n32"
7313	;;
7314    esac
7315    LD="${LD-ld} -m $emul"
7316  fi
7317  rm -rf conftest*
7318  ;;
7319
7320x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7321s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7322  # Find out what ABI is being produced by ac_compile, and set linker
7323  # options accordingly.  Note that the listed cases only cover the
7324  # situations where additional linker options are needed (such as when
7325  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7326  # vice versa); the common cases where no linker options are needed do
7327  # not appear in the list.
7328  echo 'int i;' > conftest.$ac_ext
7329  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7330  (eval $ac_compile) 2>&5
7331  ac_status=$?
7332  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7333  test $ac_status = 0; }; then
7334    case `$FILECMD conftest.o` in
7335      *32-bit*)
7336	case $host in
7337	  x86_64-*kfreebsd*-gnu)
7338	    LD="${LD-ld} -m elf_i386_fbsd"
7339	    ;;
7340	  x86_64-*linux*)
7341	    case `$FILECMD conftest.o` in
7342	      *x86-64*)
7343		LD="${LD-ld} -m elf32_x86_64"
7344		;;
7345	      *)
7346		LD="${LD-ld} -m elf_i386"
7347		;;
7348	    esac
7349	    ;;
7350	  powerpc64le-*linux*)
7351	    LD="${LD-ld} -m elf32lppclinux"
7352	    ;;
7353	  powerpc64-*linux*)
7354	    LD="${LD-ld} -m elf32ppclinux"
7355	    ;;
7356	  s390x-*linux*)
7357	    LD="${LD-ld} -m elf_s390"
7358	    ;;
7359	  sparc64-*linux*)
7360	    LD="${LD-ld} -m elf32_sparc"
7361	    ;;
7362	esac
7363	;;
7364      *64-bit*)
7365	case $host in
7366	  x86_64-*kfreebsd*-gnu)
7367	    LD="${LD-ld} -m elf_x86_64_fbsd"
7368	    ;;
7369	  x86_64-*linux*)
7370	    LD="${LD-ld} -m elf_x86_64"
7371	    ;;
7372	  powerpcle-*linux*)
7373	    LD="${LD-ld} -m elf64lppc"
7374	    ;;
7375	  powerpc-*linux*)
7376	    LD="${LD-ld} -m elf64ppc"
7377	    ;;
7378	  s390*-*linux*|s390*-*tpf*)
7379	    LD="${LD-ld} -m elf64_s390"
7380	    ;;
7381	  sparc*-*linux*)
7382	    LD="${LD-ld} -m elf64_sparc"
7383	    ;;
7384	esac
7385	;;
7386    esac
7387  fi
7388  rm -rf conftest*
7389  ;;
7390
7391*-*-sco3.2v5*)
7392  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7393  SAVE_CFLAGS=$CFLAGS
7394  CFLAGS="$CFLAGS -belf"
7395  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7396printf %s "checking whether the C compiler needs -belf... " >&6; }
7397if test ${lt_cv_cc_needs_belf+y}
7398then :
7399  printf %s "(cached) " >&6
7400else $as_nop
7401  ac_ext=c
7402ac_cpp='$CPP $CPPFLAGS'
7403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7405ac_compiler_gnu=$ac_cv_c_compiler_gnu
7406
7407     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408/* end confdefs.h.  */
7409
7410int
7411main (void)
7412{
7413
7414  ;
7415  return 0;
7416}
7417_ACEOF
7418if ac_fn_c_try_link "$LINENO"
7419then :
7420  lt_cv_cc_needs_belf=yes
7421else $as_nop
7422  lt_cv_cc_needs_belf=no
7423fi
7424rm -f core conftest.err conftest.$ac_objext conftest.beam \
7425    conftest$ac_exeext conftest.$ac_ext
7426     ac_ext=c
7427ac_cpp='$CPP $CPPFLAGS'
7428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7430ac_compiler_gnu=$ac_cv_c_compiler_gnu
7431
7432fi
7433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7434printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7435  if test yes != "$lt_cv_cc_needs_belf"; then
7436    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7437    CFLAGS=$SAVE_CFLAGS
7438  fi
7439  ;;
7440*-*solaris*)
7441  # Find out what ABI is being produced by ac_compile, and set linker
7442  # options accordingly.
7443  echo 'int i;' > conftest.$ac_ext
7444  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7445  (eval $ac_compile) 2>&5
7446  ac_status=$?
7447  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7448  test $ac_status = 0; }; then
7449    case `$FILECMD conftest.o` in
7450    *64-bit*)
7451      case $lt_cv_prog_gnu_ld in
7452      yes*)
7453        case $host in
7454        i?86-*-solaris*|x86_64-*-solaris*)
7455          LD="${LD-ld} -m elf_x86_64"
7456          ;;
7457        sparc*-*-solaris*)
7458          LD="${LD-ld} -m elf64_sparc"
7459          ;;
7460        esac
7461        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7462        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7463          LD=${LD-ld}_sol2
7464        fi
7465        ;;
7466      *)
7467	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7468	  LD="${LD-ld} -64"
7469	fi
7470	;;
7471      esac
7472      ;;
7473    esac
7474  fi
7475  rm -rf conftest*
7476  ;;
7477esac
7478
7479need_locks=$enable_libtool_lock
7480
7481if test -n "$ac_tool_prefix"; then
7482  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7483set dummy ${ac_tool_prefix}mt; ac_word=$2
7484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7485printf %s "checking for $ac_word... " >&6; }
7486if test ${ac_cv_prog_MANIFEST_TOOL+y}
7487then :
7488  printf %s "(cached) " >&6
7489else $as_nop
7490  if test -n "$MANIFEST_TOOL"; then
7491  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7492else
7493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494for as_dir in $PATH
7495do
7496  IFS=$as_save_IFS
7497  case $as_dir in #(((
7498    '') as_dir=./ ;;
7499    */) ;;
7500    *) as_dir=$as_dir/ ;;
7501  esac
7502    for ac_exec_ext in '' $ac_executable_extensions; do
7503  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7504    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7505    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7506    break 2
7507  fi
7508done
7509  done
7510IFS=$as_save_IFS
7511
7512fi
7513fi
7514MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7515if test -n "$MANIFEST_TOOL"; then
7516  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7517printf "%s\n" "$MANIFEST_TOOL" >&6; }
7518else
7519  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520printf "%s\n" "no" >&6; }
7521fi
7522
7523
7524fi
7525if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7526  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7527  # Extract the first word of "mt", so it can be a program name with args.
7528set dummy mt; ac_word=$2
7529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7530printf %s "checking for $ac_word... " >&6; }
7531if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7532then :
7533  printf %s "(cached) " >&6
7534else $as_nop
7535  if test -n "$ac_ct_MANIFEST_TOOL"; then
7536  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7537else
7538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539for as_dir in $PATH
7540do
7541  IFS=$as_save_IFS
7542  case $as_dir in #(((
7543    '') as_dir=./ ;;
7544    */) ;;
7545    *) as_dir=$as_dir/ ;;
7546  esac
7547    for ac_exec_ext in '' $ac_executable_extensions; do
7548  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7549    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7550    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7551    break 2
7552  fi
7553done
7554  done
7555IFS=$as_save_IFS
7556
7557fi
7558fi
7559ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7560if test -n "$ac_ct_MANIFEST_TOOL"; then
7561  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7562printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7563else
7564  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7565printf "%s\n" "no" >&6; }
7566fi
7567
7568  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7569    MANIFEST_TOOL=":"
7570  else
7571    case $cross_compiling:$ac_tool_warned in
7572yes:)
7573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7574printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7575ac_tool_warned=yes ;;
7576esac
7577    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7578  fi
7579else
7580  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7581fi
7582
7583test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7585printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7586if test ${lt_cv_path_mainfest_tool+y}
7587then :
7588  printf %s "(cached) " >&6
7589else $as_nop
7590  lt_cv_path_mainfest_tool=no
7591  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7592  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7593  cat conftest.err >&5
7594  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7595    lt_cv_path_mainfest_tool=yes
7596  fi
7597  rm -f conftest*
7598fi
7599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7600printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7601if test yes != "$lt_cv_path_mainfest_tool"; then
7602  MANIFEST_TOOL=:
7603fi
7604
7605
7606
7607
7608
7609
7610  case $host_os in
7611    rhapsody* | darwin*)
7612    if test -n "$ac_tool_prefix"; then
7613  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7614set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616printf %s "checking for $ac_word... " >&6; }
7617if test ${ac_cv_prog_DSYMUTIL+y}
7618then :
7619  printf %s "(cached) " >&6
7620else $as_nop
7621  if test -n "$DSYMUTIL"; then
7622  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7623else
7624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625for as_dir in $PATH
7626do
7627  IFS=$as_save_IFS
7628  case $as_dir in #(((
7629    '') as_dir=./ ;;
7630    */) ;;
7631    *) as_dir=$as_dir/ ;;
7632  esac
7633    for ac_exec_ext in '' $ac_executable_extensions; do
7634  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7635    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7636    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7637    break 2
7638  fi
7639done
7640  done
7641IFS=$as_save_IFS
7642
7643fi
7644fi
7645DSYMUTIL=$ac_cv_prog_DSYMUTIL
7646if test -n "$DSYMUTIL"; then
7647  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7648printf "%s\n" "$DSYMUTIL" >&6; }
7649else
7650  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7651printf "%s\n" "no" >&6; }
7652fi
7653
7654
7655fi
7656if test -z "$ac_cv_prog_DSYMUTIL"; then
7657  ac_ct_DSYMUTIL=$DSYMUTIL
7658  # Extract the first word of "dsymutil", so it can be a program name with args.
7659set dummy dsymutil; ac_word=$2
7660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7661printf %s "checking for $ac_word... " >&6; }
7662if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7663then :
7664  printf %s "(cached) " >&6
7665else $as_nop
7666  if test -n "$ac_ct_DSYMUTIL"; then
7667  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7668else
7669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670for as_dir in $PATH
7671do
7672  IFS=$as_save_IFS
7673  case $as_dir in #(((
7674    '') as_dir=./ ;;
7675    */) ;;
7676    *) as_dir=$as_dir/ ;;
7677  esac
7678    for ac_exec_ext in '' $ac_executable_extensions; do
7679  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7680    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7681    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7682    break 2
7683  fi
7684done
7685  done
7686IFS=$as_save_IFS
7687
7688fi
7689fi
7690ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7691if test -n "$ac_ct_DSYMUTIL"; then
7692  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7693printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7694else
7695  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7696printf "%s\n" "no" >&6; }
7697fi
7698
7699  if test "x$ac_ct_DSYMUTIL" = x; then
7700    DSYMUTIL=":"
7701  else
7702    case $cross_compiling:$ac_tool_warned in
7703yes:)
7704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7705printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7706ac_tool_warned=yes ;;
7707esac
7708    DSYMUTIL=$ac_ct_DSYMUTIL
7709  fi
7710else
7711  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7712fi
7713
7714    if test -n "$ac_tool_prefix"; then
7715  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7716set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7718printf %s "checking for $ac_word... " >&6; }
7719if test ${ac_cv_prog_NMEDIT+y}
7720then :
7721  printf %s "(cached) " >&6
7722else $as_nop
7723  if test -n "$NMEDIT"; then
7724  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7725else
7726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727for as_dir in $PATH
7728do
7729  IFS=$as_save_IFS
7730  case $as_dir in #(((
7731    '') as_dir=./ ;;
7732    */) ;;
7733    *) as_dir=$as_dir/ ;;
7734  esac
7735    for ac_exec_ext in '' $ac_executable_extensions; do
7736  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7737    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7738    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7739    break 2
7740  fi
7741done
7742  done
7743IFS=$as_save_IFS
7744
7745fi
7746fi
7747NMEDIT=$ac_cv_prog_NMEDIT
7748if test -n "$NMEDIT"; then
7749  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7750printf "%s\n" "$NMEDIT" >&6; }
7751else
7752  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753printf "%s\n" "no" >&6; }
7754fi
7755
7756
7757fi
7758if test -z "$ac_cv_prog_NMEDIT"; then
7759  ac_ct_NMEDIT=$NMEDIT
7760  # Extract the first word of "nmedit", so it can be a program name with args.
7761set dummy nmedit; ac_word=$2
7762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7763printf %s "checking for $ac_word... " >&6; }
7764if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7765then :
7766  printf %s "(cached) " >&6
7767else $as_nop
7768  if test -n "$ac_ct_NMEDIT"; then
7769  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7770else
7771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772for as_dir in $PATH
7773do
7774  IFS=$as_save_IFS
7775  case $as_dir in #(((
7776    '') as_dir=./ ;;
7777    */) ;;
7778    *) as_dir=$as_dir/ ;;
7779  esac
7780    for ac_exec_ext in '' $ac_executable_extensions; do
7781  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7782    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7783    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7784    break 2
7785  fi
7786done
7787  done
7788IFS=$as_save_IFS
7789
7790fi
7791fi
7792ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7793if test -n "$ac_ct_NMEDIT"; then
7794  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7795printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7796else
7797  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798printf "%s\n" "no" >&6; }
7799fi
7800
7801  if test "x$ac_ct_NMEDIT" = x; then
7802    NMEDIT=":"
7803  else
7804    case $cross_compiling:$ac_tool_warned in
7805yes:)
7806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7807printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7808ac_tool_warned=yes ;;
7809esac
7810    NMEDIT=$ac_ct_NMEDIT
7811  fi
7812else
7813  NMEDIT="$ac_cv_prog_NMEDIT"
7814fi
7815
7816    if test -n "$ac_tool_prefix"; then
7817  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7818set dummy ${ac_tool_prefix}lipo; ac_word=$2
7819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820printf %s "checking for $ac_word... " >&6; }
7821if test ${ac_cv_prog_LIPO+y}
7822then :
7823  printf %s "(cached) " >&6
7824else $as_nop
7825  if test -n "$LIPO"; then
7826  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7827else
7828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7829for as_dir in $PATH
7830do
7831  IFS=$as_save_IFS
7832  case $as_dir in #(((
7833    '') as_dir=./ ;;
7834    */) ;;
7835    *) as_dir=$as_dir/ ;;
7836  esac
7837    for ac_exec_ext in '' $ac_executable_extensions; do
7838  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7839    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7840    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7841    break 2
7842  fi
7843done
7844  done
7845IFS=$as_save_IFS
7846
7847fi
7848fi
7849LIPO=$ac_cv_prog_LIPO
7850if test -n "$LIPO"; then
7851  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7852printf "%s\n" "$LIPO" >&6; }
7853else
7854  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7855printf "%s\n" "no" >&6; }
7856fi
7857
7858
7859fi
7860if test -z "$ac_cv_prog_LIPO"; then
7861  ac_ct_LIPO=$LIPO
7862  # Extract the first word of "lipo", so it can be a program name with args.
7863set dummy lipo; ac_word=$2
7864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7865printf %s "checking for $ac_word... " >&6; }
7866if test ${ac_cv_prog_ac_ct_LIPO+y}
7867then :
7868  printf %s "(cached) " >&6
7869else $as_nop
7870  if test -n "$ac_ct_LIPO"; then
7871  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7872else
7873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874for as_dir in $PATH
7875do
7876  IFS=$as_save_IFS
7877  case $as_dir in #(((
7878    '') as_dir=./ ;;
7879    */) ;;
7880    *) as_dir=$as_dir/ ;;
7881  esac
7882    for ac_exec_ext in '' $ac_executable_extensions; do
7883  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7884    ac_cv_prog_ac_ct_LIPO="lipo"
7885    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7886    break 2
7887  fi
7888done
7889  done
7890IFS=$as_save_IFS
7891
7892fi
7893fi
7894ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7895if test -n "$ac_ct_LIPO"; then
7896  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7897printf "%s\n" "$ac_ct_LIPO" >&6; }
7898else
7899  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7900printf "%s\n" "no" >&6; }
7901fi
7902
7903  if test "x$ac_ct_LIPO" = x; then
7904    LIPO=":"
7905  else
7906    case $cross_compiling:$ac_tool_warned in
7907yes:)
7908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7909printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7910ac_tool_warned=yes ;;
7911esac
7912    LIPO=$ac_ct_LIPO
7913  fi
7914else
7915  LIPO="$ac_cv_prog_LIPO"
7916fi
7917
7918    if test -n "$ac_tool_prefix"; then
7919  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7920set dummy ${ac_tool_prefix}otool; ac_word=$2
7921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7922printf %s "checking for $ac_word... " >&6; }
7923if test ${ac_cv_prog_OTOOL+y}
7924then :
7925  printf %s "(cached) " >&6
7926else $as_nop
7927  if test -n "$OTOOL"; then
7928  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7929else
7930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7931for as_dir in $PATH
7932do
7933  IFS=$as_save_IFS
7934  case $as_dir in #(((
7935    '') as_dir=./ ;;
7936    */) ;;
7937    *) as_dir=$as_dir/ ;;
7938  esac
7939    for ac_exec_ext in '' $ac_executable_extensions; do
7940  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7941    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7942    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7943    break 2
7944  fi
7945done
7946  done
7947IFS=$as_save_IFS
7948
7949fi
7950fi
7951OTOOL=$ac_cv_prog_OTOOL
7952if test -n "$OTOOL"; then
7953  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7954printf "%s\n" "$OTOOL" >&6; }
7955else
7956  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957printf "%s\n" "no" >&6; }
7958fi
7959
7960
7961fi
7962if test -z "$ac_cv_prog_OTOOL"; then
7963  ac_ct_OTOOL=$OTOOL
7964  # Extract the first word of "otool", so it can be a program name with args.
7965set dummy otool; ac_word=$2
7966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7967printf %s "checking for $ac_word... " >&6; }
7968if test ${ac_cv_prog_ac_ct_OTOOL+y}
7969then :
7970  printf %s "(cached) " >&6
7971else $as_nop
7972  if test -n "$ac_ct_OTOOL"; then
7973  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7974else
7975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7976for as_dir in $PATH
7977do
7978  IFS=$as_save_IFS
7979  case $as_dir in #(((
7980    '') as_dir=./ ;;
7981    */) ;;
7982    *) as_dir=$as_dir/ ;;
7983  esac
7984    for ac_exec_ext in '' $ac_executable_extensions; do
7985  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7986    ac_cv_prog_ac_ct_OTOOL="otool"
7987    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7988    break 2
7989  fi
7990done
7991  done
7992IFS=$as_save_IFS
7993
7994fi
7995fi
7996ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7997if test -n "$ac_ct_OTOOL"; then
7998  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7999printf "%s\n" "$ac_ct_OTOOL" >&6; }
8000else
8001  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002printf "%s\n" "no" >&6; }
8003fi
8004
8005  if test "x$ac_ct_OTOOL" = x; then
8006    OTOOL=":"
8007  else
8008    case $cross_compiling:$ac_tool_warned in
8009yes:)
8010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8011printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8012ac_tool_warned=yes ;;
8013esac
8014    OTOOL=$ac_ct_OTOOL
8015  fi
8016else
8017  OTOOL="$ac_cv_prog_OTOOL"
8018fi
8019
8020    if test -n "$ac_tool_prefix"; then
8021  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8022set dummy ${ac_tool_prefix}otool64; ac_word=$2
8023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8024printf %s "checking for $ac_word... " >&6; }
8025if test ${ac_cv_prog_OTOOL64+y}
8026then :
8027  printf %s "(cached) " >&6
8028else $as_nop
8029  if test -n "$OTOOL64"; then
8030  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8031else
8032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033for as_dir in $PATH
8034do
8035  IFS=$as_save_IFS
8036  case $as_dir in #(((
8037    '') as_dir=./ ;;
8038    */) ;;
8039    *) as_dir=$as_dir/ ;;
8040  esac
8041    for ac_exec_ext in '' $ac_executable_extensions; do
8042  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8043    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8044    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8045    break 2
8046  fi
8047done
8048  done
8049IFS=$as_save_IFS
8050
8051fi
8052fi
8053OTOOL64=$ac_cv_prog_OTOOL64
8054if test -n "$OTOOL64"; then
8055  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8056printf "%s\n" "$OTOOL64" >&6; }
8057else
8058  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8059printf "%s\n" "no" >&6; }
8060fi
8061
8062
8063fi
8064if test -z "$ac_cv_prog_OTOOL64"; then
8065  ac_ct_OTOOL64=$OTOOL64
8066  # Extract the first word of "otool64", so it can be a program name with args.
8067set dummy otool64; ac_word=$2
8068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8069printf %s "checking for $ac_word... " >&6; }
8070if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8071then :
8072  printf %s "(cached) " >&6
8073else $as_nop
8074  if test -n "$ac_ct_OTOOL64"; then
8075  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8076else
8077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078for as_dir in $PATH
8079do
8080  IFS=$as_save_IFS
8081  case $as_dir in #(((
8082    '') as_dir=./ ;;
8083    */) ;;
8084    *) as_dir=$as_dir/ ;;
8085  esac
8086    for ac_exec_ext in '' $ac_executable_extensions; do
8087  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8088    ac_cv_prog_ac_ct_OTOOL64="otool64"
8089    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8090    break 2
8091  fi
8092done
8093  done
8094IFS=$as_save_IFS
8095
8096fi
8097fi
8098ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8099if test -n "$ac_ct_OTOOL64"; then
8100  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8101printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8102else
8103  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104printf "%s\n" "no" >&6; }
8105fi
8106
8107  if test "x$ac_ct_OTOOL64" = x; then
8108    OTOOL64=":"
8109  else
8110    case $cross_compiling:$ac_tool_warned in
8111yes:)
8112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8113printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8114ac_tool_warned=yes ;;
8115esac
8116    OTOOL64=$ac_ct_OTOOL64
8117  fi
8118else
8119  OTOOL64="$ac_cv_prog_OTOOL64"
8120fi
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8149printf %s "checking for -single_module linker flag... " >&6; }
8150if test ${lt_cv_apple_cc_single_mod+y}
8151then :
8152  printf %s "(cached) " >&6
8153else $as_nop
8154  lt_cv_apple_cc_single_mod=no
8155      if test -z "$LT_MULTI_MODULE"; then
8156	# By default we will add the -single_module flag. You can override
8157	# by either setting the environment variable LT_MULTI_MODULE
8158	# non-empty at configure time, or by adding -multi_module to the
8159	# link flags.
8160	rm -rf libconftest.dylib*
8161	echo "int foo(void){return 1;}" > conftest.c
8162	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8163-dynamiclib -Wl,-single_module conftest.c" >&5
8164	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8165	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8166        _lt_result=$?
8167	# If there is a non-empty error log, and "single_module"
8168	# appears in it, assume the flag caused a linker warning
8169        if test -s conftest.err && $GREP single_module conftest.err; then
8170	  cat conftest.err >&5
8171	# Otherwise, if the output was created with a 0 exit code from
8172	# the compiler, it worked.
8173	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8174	  lt_cv_apple_cc_single_mod=yes
8175	else
8176	  cat conftest.err >&5
8177	fi
8178	rm -rf libconftest.dylib*
8179	rm -f conftest.*
8180      fi
8181fi
8182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8183printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8184
8185    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8186printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8187if test ${lt_cv_ld_exported_symbols_list+y}
8188then :
8189  printf %s "(cached) " >&6
8190else $as_nop
8191  lt_cv_ld_exported_symbols_list=no
8192      save_LDFLAGS=$LDFLAGS
8193      echo "_main" > conftest.sym
8194      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8195      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196/* end confdefs.h.  */
8197
8198int
8199main (void)
8200{
8201
8202  ;
8203  return 0;
8204}
8205_ACEOF
8206if ac_fn_c_try_link "$LINENO"
8207then :
8208  lt_cv_ld_exported_symbols_list=yes
8209else $as_nop
8210  lt_cv_ld_exported_symbols_list=no
8211fi
8212rm -f core conftest.err conftest.$ac_objext conftest.beam \
8213    conftest$ac_exeext conftest.$ac_ext
8214	LDFLAGS=$save_LDFLAGS
8215
8216fi
8217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8218printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8219
8220    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8221printf %s "checking for -force_load linker flag... " >&6; }
8222if test ${lt_cv_ld_force_load+y}
8223then :
8224  printf %s "(cached) " >&6
8225else $as_nop
8226  lt_cv_ld_force_load=no
8227      cat > conftest.c << _LT_EOF
8228int forced_loaded() { return 2;}
8229_LT_EOF
8230      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8231      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8232      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8233      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8234      echo "$RANLIB libconftest.a" >&5
8235      $RANLIB libconftest.a 2>&5
8236      cat > conftest.c << _LT_EOF
8237int main() { return 0;}
8238_LT_EOF
8239      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8240      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8241      _lt_result=$?
8242      if test -s conftest.err && $GREP force_load conftest.err; then
8243	cat conftest.err >&5
8244      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8245	lt_cv_ld_force_load=yes
8246      else
8247	cat conftest.err >&5
8248      fi
8249        rm -f conftest.err libconftest.a conftest conftest.c
8250        rm -rf conftest.dSYM
8251
8252fi
8253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8254printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8255    case $host_os in
8256    rhapsody* | darwin1.[012])
8257      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8258    darwin1.*)
8259      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8260    darwin*)
8261      case $MACOSX_DEPLOYMENT_TARGET,$host in
8262        10.[012],*|,*powerpc*-darwin[5-8]*)
8263          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8264        *)
8265          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8266      esac
8267    ;;
8268  esac
8269    if test yes = "$lt_cv_apple_cc_single_mod"; then
8270      _lt_dar_single_mod='$single_module'
8271    fi
8272    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8273      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8274    else
8275      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8276    fi
8277    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8278      _lt_dsymutil='~$DSYMUTIL $lib || :'
8279    else
8280      _lt_dsymutil=
8281    fi
8282    ;;
8283  esac
8284
8285# func_munge_path_list VARIABLE PATH
8286# -----------------------------------
8287# VARIABLE is name of variable containing _space_ separated list of
8288# directories to be munged by the contents of PATH, which is string
8289# having a format:
8290# "DIR[:DIR]:"
8291#       string "DIR[ DIR]" will be prepended to VARIABLE
8292# ":DIR[:DIR]"
8293#       string "DIR[ DIR]" will be appended to VARIABLE
8294# "DIRP[:DIRP]::[DIRA:]DIRA"
8295#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8296#       "DIRA[ DIRA]" will be appended to VARIABLE
8297# "DIR[:DIR]"
8298#       VARIABLE will be replaced by "DIR[ DIR]"
8299func_munge_path_list ()
8300{
8301    case x$2 in
8302    x)
8303        ;;
8304    *:)
8305        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8306        ;;
8307    x:*)
8308        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8309        ;;
8310    *::*)
8311        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8312        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8313        ;;
8314    *)
8315        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8316        ;;
8317    esac
8318}
8319
8320ac_header= ac_cache=
8321for ac_item in $ac_header_c_list
8322do
8323  if test $ac_cache; then
8324    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8325    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8326      printf "%s\n" "#define $ac_item 1" >> confdefs.h
8327    fi
8328    ac_header= ac_cache=
8329  elif test $ac_header; then
8330    ac_cache=$ac_item
8331  else
8332    ac_header=$ac_item
8333  fi
8334done
8335
8336
8337
8338
8339
8340
8341
8342
8343if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8344then :
8345
8346printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8347
8348fi
8349ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8350"
8351if test "x$ac_cv_header_dlfcn_h" = xyes
8352then :
8353  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8354
8355fi
8356
8357
8358
8359
8360
8361# Set options
8362
8363
8364
8365        enable_dlopen=no
8366
8367
8368  enable_win32_dll=no
8369
8370
8371            # Check whether --enable-shared was given.
8372if test ${enable_shared+y}
8373then :
8374  enableval=$enable_shared; p=${PACKAGE-default}
8375    case $enableval in
8376    yes) enable_shared=yes ;;
8377    no) enable_shared=no ;;
8378    *)
8379      enable_shared=no
8380      # Look at the argument we got.  We use all the common list separators.
8381      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8382      for pkg in $enableval; do
8383	IFS=$lt_save_ifs
8384	if test "X$pkg" = "X$p"; then
8385	  enable_shared=yes
8386	fi
8387      done
8388      IFS=$lt_save_ifs
8389      ;;
8390    esac
8391else $as_nop
8392  enable_shared=yes
8393fi
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403  # Check whether --enable-static was given.
8404if test ${enable_static+y}
8405then :
8406  enableval=$enable_static; p=${PACKAGE-default}
8407    case $enableval in
8408    yes) enable_static=yes ;;
8409    no) enable_static=no ;;
8410    *)
8411     enable_static=no
8412      # Look at the argument we got.  We use all the common list separators.
8413      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8414      for pkg in $enableval; do
8415	IFS=$lt_save_ifs
8416	if test "X$pkg" = "X$p"; then
8417	  enable_static=yes
8418	fi
8419      done
8420      IFS=$lt_save_ifs
8421      ;;
8422    esac
8423else $as_nop
8424  enable_static=yes
8425fi
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436# Check whether --with-pic was given.
8437if test ${with_pic+y}
8438then :
8439  withval=$with_pic; lt_p=${PACKAGE-default}
8440    case $withval in
8441    yes|no) pic_mode=$withval ;;
8442    *)
8443      pic_mode=default
8444      # Look at the argument we got.  We use all the common list separators.
8445      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8446      for lt_pkg in $withval; do
8447	IFS=$lt_save_ifs
8448	if test "X$lt_pkg" = "X$lt_p"; then
8449	  pic_mode=yes
8450	fi
8451      done
8452      IFS=$lt_save_ifs
8453      ;;
8454    esac
8455else $as_nop
8456  pic_mode=default
8457fi
8458
8459
8460
8461
8462
8463
8464
8465
8466  # Check whether --enable-fast-install was given.
8467if test ${enable_fast_install+y}
8468then :
8469  enableval=$enable_fast_install; p=${PACKAGE-default}
8470    case $enableval in
8471    yes) enable_fast_install=yes ;;
8472    no) enable_fast_install=no ;;
8473    *)
8474      enable_fast_install=no
8475      # Look at the argument we got.  We use all the common list separators.
8476      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8477      for pkg in $enableval; do
8478	IFS=$lt_save_ifs
8479	if test "X$pkg" = "X$p"; then
8480	  enable_fast_install=yes
8481	fi
8482      done
8483      IFS=$lt_save_ifs
8484      ;;
8485    esac
8486else $as_nop
8487  enable_fast_install=yes
8488fi
8489
8490
8491
8492
8493
8494
8495
8496
8497  shared_archive_member_spec=
8498case $host,$enable_shared in
8499power*-*-aix[5-9]*,yes)
8500  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8501printf %s "checking which variant of shared library versioning to provide... " >&6; }
8502
8503# Check whether --with-aix-soname was given.
8504if test ${with_aix_soname+y}
8505then :
8506  withval=$with_aix_soname; case $withval in
8507    aix|svr4|both)
8508      ;;
8509    *)
8510      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8511      ;;
8512    esac
8513    lt_cv_with_aix_soname=$with_aix_soname
8514else $as_nop
8515  if test ${lt_cv_with_aix_soname+y}
8516then :
8517  printf %s "(cached) " >&6
8518else $as_nop
8519  lt_cv_with_aix_soname=aix
8520fi
8521
8522    with_aix_soname=$lt_cv_with_aix_soname
8523fi
8524
8525  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8526printf "%s\n" "$with_aix_soname" >&6; }
8527  if test aix != "$with_aix_soname"; then
8528    # For the AIX way of multilib, we name the shared archive member
8529    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8530    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8531    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8532    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8533    if test 64 = "${OBJECT_MODE-32}"; then
8534      shared_archive_member_spec=shr_64
8535    else
8536      shared_archive_member_spec=shr
8537    fi
8538  fi
8539  ;;
8540*)
8541  with_aix_soname=aix
8542  ;;
8543esac
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554# This can be used to rebuild libtool when needed
8555LIBTOOL_DEPS=$ltmain
8556
8557# Always use our own libtool.
8558LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589test -z "$LN_S" && LN_S="ln -s"
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604if test -n "${ZSH_VERSION+set}"; then
8605   setopt NO_GLOB_SUBST
8606fi
8607
8608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8609printf %s "checking for objdir... " >&6; }
8610if test ${lt_cv_objdir+y}
8611then :
8612  printf %s "(cached) " >&6
8613else $as_nop
8614  rm -f .libs 2>/dev/null
8615mkdir .libs 2>/dev/null
8616if test -d .libs; then
8617  lt_cv_objdir=.libs
8618else
8619  # MS-DOS does not allow filenames that begin with a dot.
8620  lt_cv_objdir=_libs
8621fi
8622rmdir .libs 2>/dev/null
8623fi
8624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8625printf "%s\n" "$lt_cv_objdir" >&6; }
8626objdir=$lt_cv_objdir
8627
8628
8629
8630
8631
8632printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8633
8634
8635
8636
8637case $host_os in
8638aix3*)
8639  # AIX sometimes has problems with the GCC collect2 program.  For some
8640  # reason, if we set the COLLECT_NAMES environment variable, the problems
8641  # vanish in a puff of smoke.
8642  if test set != "${COLLECT_NAMES+set}"; then
8643    COLLECT_NAMES=
8644    export COLLECT_NAMES
8645  fi
8646  ;;
8647esac
8648
8649# Global variables:
8650ofile=libtool
8651can_build_shared=yes
8652
8653# All known linkers require a '.a' archive for static linking (except MSVC and
8654# ICC, which need '.lib').
8655libext=a
8656
8657with_gnu_ld=$lt_cv_prog_gnu_ld
8658
8659old_CC=$CC
8660old_CFLAGS=$CFLAGS
8661
8662# Set sane defaults for various variables
8663test -z "$CC" && CC=cc
8664test -z "$LTCC" && LTCC=$CC
8665test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8666test -z "$LD" && LD=ld
8667test -z "$ac_objext" && ac_objext=o
8668
8669func_cc_basename $compiler
8670cc_basename=$func_cc_basename_result
8671
8672
8673# Only perform the check for file, if the check method requires it
8674test -z "$MAGIC_CMD" && MAGIC_CMD=file
8675case $deplibs_check_method in
8676file_magic*)
8677  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8678    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8679printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8680if test ${lt_cv_path_MAGIC_CMD+y}
8681then :
8682  printf %s "(cached) " >&6
8683else $as_nop
8684  case $MAGIC_CMD in
8685[\\/*] |  ?:[\\/]*)
8686  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8687  ;;
8688*)
8689  lt_save_MAGIC_CMD=$MAGIC_CMD
8690  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8691  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8692  for ac_dir in $ac_dummy; do
8693    IFS=$lt_save_ifs
8694    test -z "$ac_dir" && ac_dir=.
8695    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8696      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8697      if test -n "$file_magic_test_file"; then
8698	case $deplibs_check_method in
8699	"file_magic "*)
8700	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8701	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8702	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8703	    $EGREP "$file_magic_regex" > /dev/null; then
8704	    :
8705	  else
8706	    cat <<_LT_EOF 1>&2
8707
8708*** Warning: the command libtool uses to detect shared libraries,
8709*** $file_magic_cmd, produces output that libtool cannot recognize.
8710*** The result is that libtool may fail to recognize shared libraries
8711*** as such.  This will affect the creation of libtool libraries that
8712*** depend on shared libraries, but programs linked with such libtool
8713*** libraries will work regardless of this problem.  Nevertheless, you
8714*** may want to report the problem to your system manager and/or to
8715*** bug-libtool@gnu.org
8716
8717_LT_EOF
8718	  fi ;;
8719	esac
8720      fi
8721      break
8722    fi
8723  done
8724  IFS=$lt_save_ifs
8725  MAGIC_CMD=$lt_save_MAGIC_CMD
8726  ;;
8727esac
8728fi
8729
8730MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8731if test -n "$MAGIC_CMD"; then
8732  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8733printf "%s\n" "$MAGIC_CMD" >&6; }
8734else
8735  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8736printf "%s\n" "no" >&6; }
8737fi
8738
8739
8740
8741
8742
8743if test -z "$lt_cv_path_MAGIC_CMD"; then
8744  if test -n "$ac_tool_prefix"; then
8745    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8746printf %s "checking for file... " >&6; }
8747if test ${lt_cv_path_MAGIC_CMD+y}
8748then :
8749  printf %s "(cached) " >&6
8750else $as_nop
8751  case $MAGIC_CMD in
8752[\\/*] |  ?:[\\/]*)
8753  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8754  ;;
8755*)
8756  lt_save_MAGIC_CMD=$MAGIC_CMD
8757  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8758  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8759  for ac_dir in $ac_dummy; do
8760    IFS=$lt_save_ifs
8761    test -z "$ac_dir" && ac_dir=.
8762    if test -f "$ac_dir/file"; then
8763      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8764      if test -n "$file_magic_test_file"; then
8765	case $deplibs_check_method in
8766	"file_magic "*)
8767	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8768	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8769	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8770	    $EGREP "$file_magic_regex" > /dev/null; then
8771	    :
8772	  else
8773	    cat <<_LT_EOF 1>&2
8774
8775*** Warning: the command libtool uses to detect shared libraries,
8776*** $file_magic_cmd, produces output that libtool cannot recognize.
8777*** The result is that libtool may fail to recognize shared libraries
8778*** as such.  This will affect the creation of libtool libraries that
8779*** depend on shared libraries, but programs linked with such libtool
8780*** libraries will work regardless of this problem.  Nevertheless, you
8781*** may want to report the problem to your system manager and/or to
8782*** bug-libtool@gnu.org
8783
8784_LT_EOF
8785	  fi ;;
8786	esac
8787      fi
8788      break
8789    fi
8790  done
8791  IFS=$lt_save_ifs
8792  MAGIC_CMD=$lt_save_MAGIC_CMD
8793  ;;
8794esac
8795fi
8796
8797MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8798if test -n "$MAGIC_CMD"; then
8799  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8800printf "%s\n" "$MAGIC_CMD" >&6; }
8801else
8802  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8803printf "%s\n" "no" >&6; }
8804fi
8805
8806
8807  else
8808    MAGIC_CMD=:
8809  fi
8810fi
8811
8812  fi
8813  ;;
8814esac
8815
8816# Use C for the default configuration in the libtool script
8817
8818lt_save_CC=$CC
8819ac_ext=c
8820ac_cpp='$CPP $CPPFLAGS'
8821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8823ac_compiler_gnu=$ac_cv_c_compiler_gnu
8824
8825
8826# Source file extension for C test sources.
8827ac_ext=c
8828
8829# Object file extension for compiled C test sources.
8830objext=o
8831objext=$objext
8832
8833# Code to be used in simple compile tests
8834lt_simple_compile_test_code="int some_variable = 0;"
8835
8836# Code to be used in simple link tests
8837lt_simple_link_test_code='int main(){return(0);}'
8838
8839
8840
8841
8842
8843
8844
8845# If no C compiler was specified, use CC.
8846LTCC=${LTCC-"$CC"}
8847
8848# If no C compiler flags were specified, use CFLAGS.
8849LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8850
8851# Allow CC to be a program name with arguments.
8852compiler=$CC
8853
8854# Save the default compiler, since it gets overwritten when the other
8855# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8856compiler_DEFAULT=$CC
8857
8858# save warnings/boilerplate of simple test code
8859ac_outfile=conftest.$ac_objext
8860echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8861eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8862_lt_compiler_boilerplate=`cat conftest.err`
8863$RM conftest*
8864
8865ac_outfile=conftest.$ac_objext
8866echo "$lt_simple_link_test_code" >conftest.$ac_ext
8867eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8868_lt_linker_boilerplate=`cat conftest.err`
8869$RM -r conftest*
8870
8871
8872if test -n "$compiler"; then
8873
8874lt_prog_compiler_no_builtin_flag=
8875
8876if test yes = "$GCC"; then
8877  case $cc_basename in
8878  nvcc*)
8879    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8880  *)
8881    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8882  esac
8883
8884  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8885printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8886if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8887then :
8888  printf %s "(cached) " >&6
8889else $as_nop
8890  lt_cv_prog_compiler_rtti_exceptions=no
8891   ac_outfile=conftest.$ac_objext
8892   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8893   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8894   # Insert the option either (1) after the last *FLAGS variable, or
8895   # (2) before a word containing "conftest.", or (3) at the end.
8896   # Note that $ac_compile itself does not contain backslashes and begins
8897   # with a dollar sign (not a hyphen), so the echo should work correctly.
8898   # The option is referenced via a variable to avoid confusing sed.
8899   lt_compile=`echo "$ac_compile" | $SED \
8900   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8901   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8902   -e 's:$: $lt_compiler_flag:'`
8903   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8904   (eval "$lt_compile" 2>conftest.err)
8905   ac_status=$?
8906   cat conftest.err >&5
8907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908   if (exit $ac_status) && test -s "$ac_outfile"; then
8909     # The compiler can only warn and ignore the option if not recognized
8910     # So say no if there are warnings other than the usual output.
8911     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8912     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8913     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8914       lt_cv_prog_compiler_rtti_exceptions=yes
8915     fi
8916   fi
8917   $RM conftest*
8918
8919fi
8920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8921printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8922
8923if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8924    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8925else
8926    :
8927fi
8928
8929fi
8930
8931
8932
8933
8934
8935
8936  lt_prog_compiler_wl=
8937lt_prog_compiler_pic=
8938lt_prog_compiler_static=
8939
8940
8941  if test yes = "$GCC"; then
8942    lt_prog_compiler_wl='-Wl,'
8943    lt_prog_compiler_static='-static'
8944
8945    case $host_os in
8946      aix*)
8947      # All AIX code is PIC.
8948      if test ia64 = "$host_cpu"; then
8949	# AIX 5 now supports IA64 processor
8950	lt_prog_compiler_static='-Bstatic'
8951      fi
8952      lt_prog_compiler_pic='-fPIC'
8953      ;;
8954
8955    amigaos*)
8956      case $host_cpu in
8957      powerpc)
8958            # see comment about AmigaOS4 .so support
8959            lt_prog_compiler_pic='-fPIC'
8960        ;;
8961      m68k)
8962            # FIXME: we need at least 68020 code to build shared libraries, but
8963            # adding the '-m68020' flag to GCC prevents building anything better,
8964            # like '-m68040'.
8965            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8966        ;;
8967      esac
8968      ;;
8969
8970    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8971      # PIC is the default for these OSes.
8972      ;;
8973
8974    mingw* | cygwin* | pw32* | os2* | cegcc*)
8975      # This hack is so that the source file can tell whether it is being
8976      # built for inclusion in a dll (and should export symbols for example).
8977      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8978      # (--disable-auto-import) libraries
8979      lt_prog_compiler_pic='-DDLL_EXPORT'
8980      case $host_os in
8981      os2*)
8982	lt_prog_compiler_static='$wl-static'
8983	;;
8984      esac
8985      ;;
8986
8987    darwin* | rhapsody*)
8988      # PIC is the default on this platform
8989      # Common symbols not allowed in MH_DYLIB files
8990      lt_prog_compiler_pic='-fno-common'
8991      ;;
8992
8993    haiku*)
8994      # PIC is the default for Haiku.
8995      # The "-static" flag exists, but is broken.
8996      lt_prog_compiler_static=
8997      ;;
8998
8999    hpux*)
9000      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9001      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9002      # sets the default TLS model and affects inlining.
9003      case $host_cpu in
9004      hppa*64*)
9005	# +Z the default
9006	;;
9007      *)
9008	lt_prog_compiler_pic='-fPIC'
9009	;;
9010      esac
9011      ;;
9012
9013    interix[3-9]*)
9014      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9015      # Instead, we relocate shared libraries at runtime.
9016      ;;
9017
9018    msdosdjgpp*)
9019      # Just because we use GCC doesn't mean we suddenly get shared libraries
9020      # on systems that don't support them.
9021      lt_prog_compiler_can_build_shared=no
9022      enable_shared=no
9023      ;;
9024
9025    *nto* | *qnx*)
9026      # QNX uses GNU C++, but need to define -shared option too, otherwise
9027      # it will coredump.
9028      lt_prog_compiler_pic='-fPIC -shared'
9029      ;;
9030
9031    sysv4*MP*)
9032      if test -d /usr/nec; then
9033	lt_prog_compiler_pic=-Kconform_pic
9034      fi
9035      ;;
9036
9037    *)
9038      lt_prog_compiler_pic='-fPIC'
9039      ;;
9040    esac
9041
9042    case $cc_basename in
9043    nvcc*) # Cuda Compiler Driver 2.2
9044      lt_prog_compiler_wl='-Xlinker '
9045      if test -n "$lt_prog_compiler_pic"; then
9046        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9047      fi
9048      ;;
9049    esac
9050  else
9051    # PORTME Check for flag to pass linker flags through the system compiler.
9052    case $host_os in
9053    aix*)
9054      lt_prog_compiler_wl='-Wl,'
9055      if test ia64 = "$host_cpu"; then
9056	# AIX 5 now supports IA64 processor
9057	lt_prog_compiler_static='-Bstatic'
9058      else
9059	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9060      fi
9061      ;;
9062
9063    darwin* | rhapsody*)
9064      # PIC is the default on this platform
9065      # Common symbols not allowed in MH_DYLIB files
9066      lt_prog_compiler_pic='-fno-common'
9067      case $cc_basename in
9068      nagfor*)
9069        # NAG Fortran compiler
9070        lt_prog_compiler_wl='-Wl,-Wl,,'
9071        lt_prog_compiler_pic='-PIC'
9072        lt_prog_compiler_static='-Bstatic'
9073        ;;
9074      esac
9075      ;;
9076
9077    mingw* | cygwin* | pw32* | os2* | cegcc*)
9078      # This hack is so that the source file can tell whether it is being
9079      # built for inclusion in a dll (and should export symbols for example).
9080      lt_prog_compiler_pic='-DDLL_EXPORT'
9081      case $host_os in
9082      os2*)
9083	lt_prog_compiler_static='$wl-static'
9084	;;
9085      esac
9086      ;;
9087
9088    hpux9* | hpux10* | hpux11*)
9089      lt_prog_compiler_wl='-Wl,'
9090      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9091      # not for PA HP-UX.
9092      case $host_cpu in
9093      hppa*64*|ia64*)
9094	# +Z the default
9095	;;
9096      *)
9097	lt_prog_compiler_pic='+Z'
9098	;;
9099      esac
9100      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9101      lt_prog_compiler_static='$wl-a ${wl}archive'
9102      ;;
9103
9104    irix5* | irix6* | nonstopux*)
9105      lt_prog_compiler_wl='-Wl,'
9106      # PIC (with -KPIC) is the default.
9107      lt_prog_compiler_static='-non_shared'
9108      ;;
9109
9110    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9111      case $cc_basename in
9112      # old Intel for x86_64, which still supported -KPIC.
9113      ecc*)
9114	lt_prog_compiler_wl='-Wl,'
9115	lt_prog_compiler_pic='-KPIC'
9116	lt_prog_compiler_static='-static'
9117        ;;
9118      # icc used to be incompatible with GCC.
9119      # ICC 10 doesn't accept -KPIC any more.
9120      icc* | ifort*)
9121	lt_prog_compiler_wl='-Wl,'
9122	lt_prog_compiler_pic='-fPIC'
9123	lt_prog_compiler_static='-static'
9124        ;;
9125      # Lahey Fortran 8.1.
9126      lf95*)
9127	lt_prog_compiler_wl='-Wl,'
9128	lt_prog_compiler_pic='--shared'
9129	lt_prog_compiler_static='--static'
9130	;;
9131      nagfor*)
9132	# NAG Fortran compiler
9133	lt_prog_compiler_wl='-Wl,-Wl,,'
9134	lt_prog_compiler_pic='-PIC'
9135	lt_prog_compiler_static='-Bstatic'
9136	;;
9137      tcc*)
9138	# Fabrice Bellard et al's Tiny C Compiler
9139	lt_prog_compiler_wl='-Wl,'
9140	lt_prog_compiler_pic='-fPIC'
9141	lt_prog_compiler_static='-static'
9142	;;
9143      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9144        # Portland Group compilers (*not* the Pentium gcc compiler,
9145	# which looks to be a dead project)
9146	lt_prog_compiler_wl='-Wl,'
9147	lt_prog_compiler_pic='-fpic'
9148	lt_prog_compiler_static='-Bstatic'
9149        ;;
9150      ccc*)
9151        lt_prog_compiler_wl='-Wl,'
9152        # All Alpha code is PIC.
9153        lt_prog_compiler_static='-non_shared'
9154        ;;
9155      xl* | bgxl* | bgf* | mpixl*)
9156	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9157	lt_prog_compiler_wl='-Wl,'
9158	lt_prog_compiler_pic='-qpic'
9159	lt_prog_compiler_static='-qstaticlink'
9160	;;
9161      *)
9162	case `$CC -V 2>&1 | $SED 5q` in
9163	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9164	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9165	  lt_prog_compiler_pic='-KPIC'
9166	  lt_prog_compiler_static='-Bstatic'
9167	  lt_prog_compiler_wl=''
9168	  ;;
9169	*Sun\ F* | *Sun*Fortran*)
9170	  lt_prog_compiler_pic='-KPIC'
9171	  lt_prog_compiler_static='-Bstatic'
9172	  lt_prog_compiler_wl='-Qoption ld '
9173	  ;;
9174	*Sun\ C*)
9175	  # Sun C 5.9
9176	  lt_prog_compiler_pic='-KPIC'
9177	  lt_prog_compiler_static='-Bstatic'
9178	  lt_prog_compiler_wl='-Wl,'
9179	  ;;
9180        *Intel*\ [CF]*Compiler*)
9181	  lt_prog_compiler_wl='-Wl,'
9182	  lt_prog_compiler_pic='-fPIC'
9183	  lt_prog_compiler_static='-static'
9184	  ;;
9185	*Portland\ Group*)
9186	  lt_prog_compiler_wl='-Wl,'
9187	  lt_prog_compiler_pic='-fpic'
9188	  lt_prog_compiler_static='-Bstatic'
9189	  ;;
9190	esac
9191	;;
9192      esac
9193      ;;
9194
9195    newsos6)
9196      lt_prog_compiler_pic='-KPIC'
9197      lt_prog_compiler_static='-Bstatic'
9198      ;;
9199
9200    *nto* | *qnx*)
9201      # QNX uses GNU C++, but need to define -shared option too, otherwise
9202      # it will coredump.
9203      lt_prog_compiler_pic='-fPIC -shared'
9204      ;;
9205
9206    osf3* | osf4* | osf5*)
9207      lt_prog_compiler_wl='-Wl,'
9208      # All OSF/1 code is PIC.
9209      lt_prog_compiler_static='-non_shared'
9210      ;;
9211
9212    rdos*)
9213      lt_prog_compiler_static='-non_shared'
9214      ;;
9215
9216    solaris*)
9217      lt_prog_compiler_pic='-KPIC'
9218      lt_prog_compiler_static='-Bstatic'
9219      case $cc_basename in
9220      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9221	lt_prog_compiler_wl='-Qoption ld ';;
9222      *)
9223	lt_prog_compiler_wl='-Wl,';;
9224      esac
9225      ;;
9226
9227    sunos4*)
9228      lt_prog_compiler_wl='-Qoption ld '
9229      lt_prog_compiler_pic='-PIC'
9230      lt_prog_compiler_static='-Bstatic'
9231      ;;
9232
9233    sysv4 | sysv4.2uw2* | sysv4.3*)
9234      lt_prog_compiler_wl='-Wl,'
9235      lt_prog_compiler_pic='-KPIC'
9236      lt_prog_compiler_static='-Bstatic'
9237      ;;
9238
9239    sysv4*MP*)
9240      if test -d /usr/nec; then
9241	lt_prog_compiler_pic='-Kconform_pic'
9242	lt_prog_compiler_static='-Bstatic'
9243      fi
9244      ;;
9245
9246    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9247      lt_prog_compiler_wl='-Wl,'
9248      lt_prog_compiler_pic='-KPIC'
9249      lt_prog_compiler_static='-Bstatic'
9250      ;;
9251
9252    unicos*)
9253      lt_prog_compiler_wl='-Wl,'
9254      lt_prog_compiler_can_build_shared=no
9255      ;;
9256
9257    uts4*)
9258      lt_prog_compiler_pic='-pic'
9259      lt_prog_compiler_static='-Bstatic'
9260      ;;
9261
9262    *)
9263      lt_prog_compiler_can_build_shared=no
9264      ;;
9265    esac
9266  fi
9267
9268case $host_os in
9269  # For platforms that do not support PIC, -DPIC is meaningless:
9270  *djgpp*)
9271    lt_prog_compiler_pic=
9272    ;;
9273  *)
9274    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9275    ;;
9276esac
9277
9278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9279printf %s "checking for $compiler option to produce PIC... " >&6; }
9280if test ${lt_cv_prog_compiler_pic+y}
9281then :
9282  printf %s "(cached) " >&6
9283else $as_nop
9284  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9285fi
9286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9287printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9288lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9289
9290#
9291# Check to make sure the PIC flag actually works.
9292#
9293if test -n "$lt_prog_compiler_pic"; then
9294  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9295printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9296if test ${lt_cv_prog_compiler_pic_works+y}
9297then :
9298  printf %s "(cached) " >&6
9299else $as_nop
9300  lt_cv_prog_compiler_pic_works=no
9301   ac_outfile=conftest.$ac_objext
9302   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9303   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9304   # Insert the option either (1) after the last *FLAGS variable, or
9305   # (2) before a word containing "conftest.", or (3) at the end.
9306   # Note that $ac_compile itself does not contain backslashes and begins
9307   # with a dollar sign (not a hyphen), so the echo should work correctly.
9308   # The option is referenced via a variable to avoid confusing sed.
9309   lt_compile=`echo "$ac_compile" | $SED \
9310   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9311   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9312   -e 's:$: $lt_compiler_flag:'`
9313   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9314   (eval "$lt_compile" 2>conftest.err)
9315   ac_status=$?
9316   cat conftest.err >&5
9317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318   if (exit $ac_status) && test -s "$ac_outfile"; then
9319     # The compiler can only warn and ignore the option if not recognized
9320     # So say no if there are warnings other than the usual output.
9321     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9322     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9323     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9324       lt_cv_prog_compiler_pic_works=yes
9325     fi
9326   fi
9327   $RM conftest*
9328
9329fi
9330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9331printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9332
9333if test yes = "$lt_cv_prog_compiler_pic_works"; then
9334    case $lt_prog_compiler_pic in
9335     "" | " "*) ;;
9336     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9337     esac
9338else
9339    lt_prog_compiler_pic=
9340     lt_prog_compiler_can_build_shared=no
9341fi
9342
9343fi
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355#
9356# Check to make sure the static flag actually works.
9357#
9358wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9360printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9361if test ${lt_cv_prog_compiler_static_works+y}
9362then :
9363  printf %s "(cached) " >&6
9364else $as_nop
9365  lt_cv_prog_compiler_static_works=no
9366   save_LDFLAGS=$LDFLAGS
9367   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9368   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9369   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9370     # The linker can only warn and ignore the option if not recognized
9371     # So say no if there are warnings
9372     if test -s conftest.err; then
9373       # Append any errors to the config.log.
9374       cat conftest.err 1>&5
9375       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9376       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9377       if diff conftest.exp conftest.er2 >/dev/null; then
9378         lt_cv_prog_compiler_static_works=yes
9379       fi
9380     else
9381       lt_cv_prog_compiler_static_works=yes
9382     fi
9383   fi
9384   $RM -r conftest*
9385   LDFLAGS=$save_LDFLAGS
9386
9387fi
9388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9389printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9390
9391if test yes = "$lt_cv_prog_compiler_static_works"; then
9392    :
9393else
9394    lt_prog_compiler_static=
9395fi
9396
9397
9398
9399
9400
9401
9402
9403  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9404printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9405if test ${lt_cv_prog_compiler_c_o+y}
9406then :
9407  printf %s "(cached) " >&6
9408else $as_nop
9409  lt_cv_prog_compiler_c_o=no
9410   $RM -r conftest 2>/dev/null
9411   mkdir conftest
9412   cd conftest
9413   mkdir out
9414   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9415
9416   lt_compiler_flag="-o out/conftest2.$ac_objext"
9417   # Insert the option either (1) after the last *FLAGS variable, or
9418   # (2) before a word containing "conftest.", or (3) at the end.
9419   # Note that $ac_compile itself does not contain backslashes and begins
9420   # with a dollar sign (not a hyphen), so the echo should work correctly.
9421   lt_compile=`echo "$ac_compile" | $SED \
9422   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9423   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9424   -e 's:$: $lt_compiler_flag:'`
9425   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9426   (eval "$lt_compile" 2>out/conftest.err)
9427   ac_status=$?
9428   cat out/conftest.err >&5
9429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9431   then
9432     # The compiler can only warn and ignore the option if not recognized
9433     # So say no if there are warnings
9434     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9435     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9436     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9437       lt_cv_prog_compiler_c_o=yes
9438     fi
9439   fi
9440   chmod u+w . 2>&5
9441   $RM conftest*
9442   # SGI C++ compiler will create directory out/ii_files/ for
9443   # template instantiation
9444   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9445   $RM out/* && rmdir out
9446   cd ..
9447   $RM -r conftest
9448   $RM conftest*
9449
9450fi
9451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9452printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9453
9454
9455
9456
9457
9458
9459  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9460printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9461if test ${lt_cv_prog_compiler_c_o+y}
9462then :
9463  printf %s "(cached) " >&6
9464else $as_nop
9465  lt_cv_prog_compiler_c_o=no
9466   $RM -r conftest 2>/dev/null
9467   mkdir conftest
9468   cd conftest
9469   mkdir out
9470   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9471
9472   lt_compiler_flag="-o out/conftest2.$ac_objext"
9473   # Insert the option either (1) after the last *FLAGS variable, or
9474   # (2) before a word containing "conftest.", or (3) at the end.
9475   # Note that $ac_compile itself does not contain backslashes and begins
9476   # with a dollar sign (not a hyphen), so the echo should work correctly.
9477   lt_compile=`echo "$ac_compile" | $SED \
9478   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9479   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9480   -e 's:$: $lt_compiler_flag:'`
9481   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9482   (eval "$lt_compile" 2>out/conftest.err)
9483   ac_status=$?
9484   cat out/conftest.err >&5
9485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9487   then
9488     # The compiler can only warn and ignore the option if not recognized
9489     # So say no if there are warnings
9490     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9491     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9492     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9493       lt_cv_prog_compiler_c_o=yes
9494     fi
9495   fi
9496   chmod u+w . 2>&5
9497   $RM conftest*
9498   # SGI C++ compiler will create directory out/ii_files/ for
9499   # template instantiation
9500   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9501   $RM out/* && rmdir out
9502   cd ..
9503   $RM -r conftest
9504   $RM conftest*
9505
9506fi
9507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9508printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9509
9510
9511
9512
9513hard_links=nottested
9514if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9515  # do not overwrite the value of need_locks provided by the user
9516  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9517printf %s "checking if we can lock with hard links... " >&6; }
9518  hard_links=yes
9519  $RM conftest*
9520  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9521  touch conftest.a
9522  ln conftest.a conftest.b 2>&5 || hard_links=no
9523  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9524  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9525printf "%s\n" "$hard_links" >&6; }
9526  if test no = "$hard_links"; then
9527    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9528printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9529    need_locks=warn
9530  fi
9531else
9532  need_locks=no
9533fi
9534
9535
9536
9537
9538
9539
9540  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9541printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9542
9543  runpath_var=
9544  allow_undefined_flag=
9545  always_export_symbols=no
9546  archive_cmds=
9547  archive_expsym_cmds=
9548  compiler_needs_object=no
9549  enable_shared_with_static_runtimes=no
9550  export_dynamic_flag_spec=
9551  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9552  hardcode_automatic=no
9553  hardcode_direct=no
9554  hardcode_direct_absolute=no
9555  hardcode_libdir_flag_spec=
9556  hardcode_libdir_separator=
9557  hardcode_minus_L=no
9558  hardcode_shlibpath_var=unsupported
9559  inherit_rpath=no
9560  link_all_deplibs=unknown
9561  module_cmds=
9562  module_expsym_cmds=
9563  old_archive_from_new_cmds=
9564  old_archive_from_expsyms_cmds=
9565  thread_safe_flag_spec=
9566  whole_archive_flag_spec=
9567  # include_expsyms should be a list of space-separated symbols to be *always*
9568  # included in the symbol list
9569  include_expsyms=
9570  # exclude_expsyms can be an extended regexp of symbols to exclude
9571  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9572  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9573  # as well as any symbol that contains 'd'.
9574  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9575  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9576  # platforms (ab)use it in PIC code, but their linkers get confused if
9577  # the symbol is explicitly referenced.  Since portable code cannot
9578  # rely on this symbol name, it's probably fine to never include it in
9579  # preloaded symbol tables.
9580  # Exclude shared library initialization/finalization symbols.
9581  extract_expsyms_cmds=
9582
9583  case $host_os in
9584  cygwin* | mingw* | pw32* | cegcc*)
9585    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9586    # When not using gcc, we currently assume that we are using
9587    # Microsoft Visual C++ or Intel C++ Compiler.
9588    if test yes != "$GCC"; then
9589      with_gnu_ld=no
9590    fi
9591    ;;
9592  interix*)
9593    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9594    with_gnu_ld=yes
9595    ;;
9596  openbsd* | bitrig*)
9597    with_gnu_ld=no
9598    ;;
9599  esac
9600
9601  ld_shlibs=yes
9602
9603  # On some targets, GNU ld is compatible enough with the native linker
9604  # that we're better off using the native interface for both.
9605  lt_use_gnu_ld_interface=no
9606  if test yes = "$with_gnu_ld"; then
9607    case $host_os in
9608      aix*)
9609	# The AIX port of GNU ld has always aspired to compatibility
9610	# with the native linker.  However, as the warning in the GNU ld
9611	# block says, versions before 2.19.5* couldn't really create working
9612	# shared libraries, regardless of the interface used.
9613	case `$LD -v 2>&1` in
9614	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9615	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9616	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9617	  *)
9618	    lt_use_gnu_ld_interface=yes
9619	    ;;
9620	esac
9621	;;
9622      *)
9623	lt_use_gnu_ld_interface=yes
9624	;;
9625    esac
9626  fi
9627
9628  if test yes = "$lt_use_gnu_ld_interface"; then
9629    # If archive_cmds runs LD, not CC, wlarc should be empty
9630    wlarc='$wl'
9631
9632    # Set some defaults for GNU ld with shared library support. These
9633    # are reset later if shared libraries are not supported. Putting them
9634    # here allows them to be overridden if necessary.
9635    runpath_var=LD_RUN_PATH
9636    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9637    export_dynamic_flag_spec='$wl--export-dynamic'
9638    # ancient GNU ld didn't support --whole-archive et. al.
9639    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9640      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9641    else
9642      whole_archive_flag_spec=
9643    fi
9644    supports_anon_versioning=no
9645    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9646      *GNU\ gold*) supports_anon_versioning=yes ;;
9647      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9648      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9649      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9650      *\ 2.11.*) ;; # other 2.11 versions
9651      *) supports_anon_versioning=yes ;;
9652    esac
9653
9654    # See if GNU ld supports shared libraries.
9655    case $host_os in
9656    aix[3-9]*)
9657      # On AIX/PPC, the GNU linker is very broken
9658      if test ia64 != "$host_cpu"; then
9659	ld_shlibs=no
9660	cat <<_LT_EOF 1>&2
9661
9662*** Warning: the GNU linker, at least up to release 2.19, is reported
9663*** to be unable to reliably create shared libraries on AIX.
9664*** Therefore, libtool is disabling shared libraries support.  If you
9665*** really care for shared libraries, you may want to install binutils
9666*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9667*** You will then need to restart the configuration process.
9668
9669_LT_EOF
9670      fi
9671      ;;
9672
9673    amigaos*)
9674      case $host_cpu in
9675      powerpc)
9676            # see comment about AmigaOS4 .so support
9677            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9678            archive_expsym_cmds=''
9679        ;;
9680      m68k)
9681            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)'
9682            hardcode_libdir_flag_spec='-L$libdir'
9683            hardcode_minus_L=yes
9684        ;;
9685      esac
9686      ;;
9687
9688    beos*)
9689      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9690	allow_undefined_flag=unsupported
9691	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9692	# support --undefined.  This deserves some investigation.  FIXME
9693	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9694      else
9695	ld_shlibs=no
9696      fi
9697      ;;
9698
9699    cygwin* | mingw* | pw32* | cegcc*)
9700      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9701      # as there is no search path for DLLs.
9702      hardcode_libdir_flag_spec='-L$libdir'
9703      export_dynamic_flag_spec='$wl--export-all-symbols'
9704      allow_undefined_flag=unsupported
9705      always_export_symbols=no
9706      enable_shared_with_static_runtimes=yes
9707      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'
9708      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9709
9710      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9711        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9712	# If the export-symbols file already is a .def file, use it as
9713	# is; otherwise, prepend EXPORTS...
9714	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9715          cp $export_symbols $output_objdir/$soname.def;
9716        else
9717          echo EXPORTS > $output_objdir/$soname.def;
9718          cat $export_symbols >> $output_objdir/$soname.def;
9719        fi~
9720        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9721      else
9722	ld_shlibs=no
9723      fi
9724      ;;
9725
9726    haiku*)
9727      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9728      link_all_deplibs=yes
9729      ;;
9730
9731    os2*)
9732      hardcode_libdir_flag_spec='-L$libdir'
9733      hardcode_minus_L=yes
9734      allow_undefined_flag=unsupported
9735      shrext_cmds=.dll
9736      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9737	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9738	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9739	$ECHO EXPORTS >> $output_objdir/$libname.def~
9740	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9741	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9742	emximp -o $lib $output_objdir/$libname.def'
9743      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9744	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9745	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9746	$ECHO EXPORTS >> $output_objdir/$libname.def~
9747	prefix_cmds="$SED"~
9748	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9749	  prefix_cmds="$prefix_cmds -e 1d";
9750	fi~
9751	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9752	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9753	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9754	emximp -o $lib $output_objdir/$libname.def'
9755      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9756      enable_shared_with_static_runtimes=yes
9757      file_list_spec='@'
9758      ;;
9759
9760    interix[3-9]*)
9761      hardcode_direct=no
9762      hardcode_shlibpath_var=no
9763      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9764      export_dynamic_flag_spec='$wl-E'
9765      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9766      # Instead, shared libraries are loaded at an image base (0x10000000 by
9767      # default) and relocated if they conflict, which is a slow very memory
9768      # consuming and fragmenting process.  To avoid this, we pick a random,
9769      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9770      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9771      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9772      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'
9773      ;;
9774
9775    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9776      tmp_diet=no
9777      if test linux-dietlibc = "$host_os"; then
9778	case $cc_basename in
9779	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9780	esac
9781      fi
9782      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9783	 && test no = "$tmp_diet"
9784      then
9785	tmp_addflag=' $pic_flag'
9786	tmp_sharedflag='-shared'
9787	case $cc_basename,$host_cpu in
9788        pgcc*)				# Portland Group C compiler
9789	  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'
9790	  tmp_addflag=' $pic_flag'
9791	  ;;
9792	pgf77* | pgf90* | pgf95* | pgfortran*)
9793					# Portland Group f77 and f90 compilers
9794	  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'
9795	  tmp_addflag=' $pic_flag -Mnomain' ;;
9796	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9797	  tmp_addflag=' -i_dynamic' ;;
9798	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9799	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9800	ifc* | ifort*)			# Intel Fortran compiler
9801	  tmp_addflag=' -nofor_main' ;;
9802	lf95*)				# Lahey Fortran 8.1
9803	  whole_archive_flag_spec=
9804	  tmp_sharedflag='--shared' ;;
9805        nagfor*)                        # NAGFOR 5.3
9806          tmp_sharedflag='-Wl,-shared' ;;
9807	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9808	  tmp_sharedflag='-qmkshrobj'
9809	  tmp_addflag= ;;
9810	nvcc*)	# Cuda Compiler Driver 2.2
9811	  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'
9812	  compiler_needs_object=yes
9813	  ;;
9814	esac
9815	case `$CC -V 2>&1 | $SED 5q` in
9816	*Sun\ C*)			# Sun C 5.9
9817	  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'
9818	  compiler_needs_object=yes
9819	  tmp_sharedflag='-G' ;;
9820	*Sun\ F*)			# Sun Fortran 8.3
9821	  tmp_sharedflag='-G' ;;
9822	esac
9823	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9824
9825        if test yes = "$supports_anon_versioning"; then
9826          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9827            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9828            echo "local: *; };" >> $output_objdir/$libname.ver~
9829            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9830        fi
9831
9832	case $cc_basename in
9833	tcc*)
9834	  export_dynamic_flag_spec='-rdynamic'
9835	  ;;
9836	xlf* | bgf* | bgxlf* | mpixlf*)
9837	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9838	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9839	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9840	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9841	  if test yes = "$supports_anon_versioning"; then
9842	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9843              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9844              echo "local: *; };" >> $output_objdir/$libname.ver~
9845              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9846	  fi
9847	  ;;
9848	esac
9849      else
9850        ld_shlibs=no
9851      fi
9852      ;;
9853
9854    netbsd*)
9855      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9856	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9857	wlarc=
9858      else
9859	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9860	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9861      fi
9862      ;;
9863
9864    solaris*)
9865      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9866	ld_shlibs=no
9867	cat <<_LT_EOF 1>&2
9868
9869*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9870*** create shared libraries on Solaris systems.  Therefore, libtool
9871*** is disabling shared libraries support.  We urge you to upgrade GNU
9872*** binutils to release 2.9.1 or newer.  Another option is to modify
9873*** your PATH or compiler configuration so that the native linker is
9874*** used, and then restart.
9875
9876_LT_EOF
9877      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9878	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9879	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9880      else
9881	ld_shlibs=no
9882      fi
9883      ;;
9884
9885    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9886      case `$LD -v 2>&1` in
9887        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9888	ld_shlibs=no
9889	cat <<_LT_EOF 1>&2
9890
9891*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9892*** reliably create shared libraries on SCO systems.  Therefore, libtool
9893*** is disabling shared libraries support.  We urge you to upgrade GNU
9894*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9895*** your PATH or compiler configuration so that the native linker is
9896*** used, and then restart.
9897
9898_LT_EOF
9899	;;
9900	*)
9901	  # For security reasons, it is highly recommended that you always
9902	  # use absolute paths for naming shared libraries, and exclude the
9903	  # DT_RUNPATH tag from executables and libraries.  But doing so
9904	  # requires that you compile everything twice, which is a pain.
9905	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9906	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9907	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9908	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9909	  else
9910	    ld_shlibs=no
9911	  fi
9912	;;
9913      esac
9914      ;;
9915
9916    sunos4*)
9917      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9918      wlarc=
9919      hardcode_direct=yes
9920      hardcode_shlibpath_var=no
9921      ;;
9922
9923    *)
9924      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9925	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9926	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9927      else
9928	ld_shlibs=no
9929      fi
9930      ;;
9931    esac
9932
9933    if test no = "$ld_shlibs"; then
9934      runpath_var=
9935      hardcode_libdir_flag_spec=
9936      export_dynamic_flag_spec=
9937      whole_archive_flag_spec=
9938    fi
9939  else
9940    # PORTME fill in a description of your system's linker (not GNU ld)
9941    case $host_os in
9942    aix3*)
9943      allow_undefined_flag=unsupported
9944      always_export_symbols=yes
9945      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'
9946      # Note: this linker hardcodes the directories in LIBPATH if there
9947      # are no directories specified by -L.
9948      hardcode_minus_L=yes
9949      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9950	# Neither direct hardcoding nor static linking is supported with a
9951	# broken collect2.
9952	hardcode_direct=unsupported
9953      fi
9954      ;;
9955
9956    aix[4-9]*)
9957      if test ia64 = "$host_cpu"; then
9958	# On IA64, the linker does run time linking by default, so we don't
9959	# have to do anything special.
9960	aix_use_runtimelinking=no
9961	exp_sym_flag='-Bexport'
9962	no_entry_flag=
9963      else
9964	# If we're using GNU nm, then we don't want the "-C" option.
9965	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9966	# Without the "-l" option, or with the "-B" option, AIX nm treats
9967	# weak defined symbols like other global defined symbols, whereas
9968	# GNU nm marks them as "W".
9969	# While the 'weak' keyword is ignored in the Export File, we need
9970	# it in the Import File for the 'aix-soname' feature, so we have
9971	# to replace the "-B" option with "-P" for AIX nm.
9972	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9973	  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'
9974	else
9975	  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'
9976	fi
9977	aix_use_runtimelinking=no
9978
9979	# Test if we are trying to use run time linking or normal
9980	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9981	# have runtime linking enabled, and use it for executables.
9982	# For shared libraries, we enable/disable runtime linking
9983	# depending on the kind of the shared library created -
9984	# when "with_aix_soname,aix_use_runtimelinking" is:
9985	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9986	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9987	#            lib.a           static archive
9988	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9989	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9990	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9991	#            lib.a(lib.so.V) shared, rtl:no
9992	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9993	#            lib.a           static archive
9994	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9995	  for ld_flag in $LDFLAGS; do
9996	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9997	    aix_use_runtimelinking=yes
9998	    break
9999	  fi
10000	  done
10001	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10002	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10003	    # so we don't have lib.a shared libs to link our executables.
10004	    # We have to force runtime linking in this case.
10005	    aix_use_runtimelinking=yes
10006	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10007	  fi
10008	  ;;
10009	esac
10010
10011	exp_sym_flag='-bexport'
10012	no_entry_flag='-bnoentry'
10013      fi
10014
10015      # When large executables or shared objects are built, AIX ld can
10016      # have problems creating the table of contents.  If linking a library
10017      # or program results in "error TOC overflow" add -mminimal-toc to
10018      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10019      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10020
10021      archive_cmds=''
10022      hardcode_direct=yes
10023      hardcode_direct_absolute=yes
10024      hardcode_libdir_separator=':'
10025      link_all_deplibs=yes
10026      file_list_spec='$wl-f,'
10027      case $with_aix_soname,$aix_use_runtimelinking in
10028      aix,*) ;; # traditional, no import file
10029      svr4,* | *,yes) # use import file
10030	# The Import File defines what to hardcode.
10031	hardcode_direct=no
10032	hardcode_direct_absolute=no
10033	;;
10034      esac
10035
10036      if test yes = "$GCC"; then
10037	case $host_os in aix4.[012]|aix4.[012].*)
10038	# We only want to do this on AIX 4.2 and lower, the check
10039	# below for broken collect2 doesn't work under 4.3+
10040	  collect2name=`$CC -print-prog-name=collect2`
10041	  if test -f "$collect2name" &&
10042	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10043	  then
10044	  # We have reworked collect2
10045	  :
10046	  else
10047	  # We have old collect2
10048	  hardcode_direct=unsupported
10049	  # It fails to find uninstalled libraries when the uninstalled
10050	  # path is not listed in the libpath.  Setting hardcode_minus_L
10051	  # to unsupported forces relinking
10052	  hardcode_minus_L=yes
10053	  hardcode_libdir_flag_spec='-L$libdir'
10054	  hardcode_libdir_separator=
10055	  fi
10056	  ;;
10057	esac
10058	shared_flag='-shared'
10059	if test yes = "$aix_use_runtimelinking"; then
10060	  shared_flag="$shared_flag "'$wl-G'
10061	fi
10062	# Need to ensure runtime linking is disabled for the traditional
10063	# shared library, or the linker may eventually find shared libraries
10064	# /with/ Import File - we do not want to mix them.
10065	shared_flag_aix='-shared'
10066	shared_flag_svr4='-shared $wl-G'
10067      else
10068	# not using gcc
10069	if test ia64 = "$host_cpu"; then
10070	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10071	# chokes on -Wl,-G. The following line is correct:
10072	  shared_flag='-G'
10073	else
10074	  if test yes = "$aix_use_runtimelinking"; then
10075	    shared_flag='$wl-G'
10076	  else
10077	    shared_flag='$wl-bM:SRE'
10078	  fi
10079	  shared_flag_aix='$wl-bM:SRE'
10080	  shared_flag_svr4='$wl-G'
10081	fi
10082      fi
10083
10084      export_dynamic_flag_spec='$wl-bexpall'
10085      # It seems that -bexpall does not export symbols beginning with
10086      # underscore (_), so it is better to generate a list of symbols to export.
10087      always_export_symbols=yes
10088      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10089	# Warning - without using the other runtime loading flags (-brtl),
10090	# -berok will link without error, but may produce a broken library.
10091	allow_undefined_flag='-berok'
10092        # Determine the default libpath from the value encoded in an
10093        # empty executable.
10094        if test set = "${lt_cv_aix_libpath+set}"; then
10095  aix_libpath=$lt_cv_aix_libpath
10096else
10097  if test ${lt_cv_aix_libpath_+y}
10098then :
10099  printf %s "(cached) " >&6
10100else $as_nop
10101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10102/* end confdefs.h.  */
10103
10104int
10105main (void)
10106{
10107
10108  ;
10109  return 0;
10110}
10111_ACEOF
10112if ac_fn_c_try_link "$LINENO"
10113then :
10114
10115  lt_aix_libpath_sed='
10116      /Import File Strings/,/^$/ {
10117	  /^0/ {
10118	      s/^0  *\([^ ]*\) *$/\1/
10119	      p
10120	  }
10121      }'
10122  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10123  # Check for a 64-bit object if we didn't find anything.
10124  if test -z "$lt_cv_aix_libpath_"; then
10125    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10126  fi
10127fi
10128rm -f core conftest.err conftest.$ac_objext conftest.beam \
10129    conftest$ac_exeext conftest.$ac_ext
10130  if test -z "$lt_cv_aix_libpath_"; then
10131    lt_cv_aix_libpath_=/usr/lib:/lib
10132  fi
10133
10134fi
10135
10136  aix_libpath=$lt_cv_aix_libpath_
10137fi
10138
10139        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10140        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
10141      else
10142	if test ia64 = "$host_cpu"; then
10143	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10144	  allow_undefined_flag="-z nodefs"
10145	  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"
10146	else
10147	 # Determine the default libpath from the value encoded in an
10148	 # empty executable.
10149	 if test set = "${lt_cv_aix_libpath+set}"; then
10150  aix_libpath=$lt_cv_aix_libpath
10151else
10152  if test ${lt_cv_aix_libpath_+y}
10153then :
10154  printf %s "(cached) " >&6
10155else $as_nop
10156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10157/* end confdefs.h.  */
10158
10159int
10160main (void)
10161{
10162
10163  ;
10164  return 0;
10165}
10166_ACEOF
10167if ac_fn_c_try_link "$LINENO"
10168then :
10169
10170  lt_aix_libpath_sed='
10171      /Import File Strings/,/^$/ {
10172	  /^0/ {
10173	      s/^0  *\([^ ]*\) *$/\1/
10174	      p
10175	  }
10176      }'
10177  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10178  # Check for a 64-bit object if we didn't find anything.
10179  if test -z "$lt_cv_aix_libpath_"; then
10180    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10181  fi
10182fi
10183rm -f core conftest.err conftest.$ac_objext conftest.beam \
10184    conftest$ac_exeext conftest.$ac_ext
10185  if test -z "$lt_cv_aix_libpath_"; then
10186    lt_cv_aix_libpath_=/usr/lib:/lib
10187  fi
10188
10189fi
10190
10191  aix_libpath=$lt_cv_aix_libpath_
10192fi
10193
10194	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10195	  # Warning - without using the other run time loading flags,
10196	  # -berok will link without error, but may produce a broken library.
10197	  no_undefined_flag=' $wl-bernotok'
10198	  allow_undefined_flag=' $wl-berok'
10199	  if test yes = "$with_gnu_ld"; then
10200	    # We only use this code for GNU lds that support --whole-archive.
10201	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10202	  else
10203	    # Exported symbols can be pulled into shared objects from archives
10204	    whole_archive_flag_spec='$convenience'
10205	  fi
10206	  archive_cmds_need_lc=yes
10207	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10208	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10209	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10210	  if test svr4 != "$with_aix_soname"; then
10211	    # This is similar to how AIX traditionally builds its shared libraries.
10212	    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'
10213	  fi
10214	  if test aix != "$with_aix_soname"; then
10215	    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'
10216	  else
10217	    # used by -dlpreopen to get the symbols
10218	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10219	  fi
10220	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10221	fi
10222      fi
10223      ;;
10224
10225    amigaos*)
10226      case $host_cpu in
10227      powerpc)
10228            # see comment about AmigaOS4 .so support
10229            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10230            archive_expsym_cmds=''
10231        ;;
10232      m68k)
10233            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)'
10234            hardcode_libdir_flag_spec='-L$libdir'
10235            hardcode_minus_L=yes
10236        ;;
10237      esac
10238      ;;
10239
10240    bsdi[45]*)
10241      export_dynamic_flag_spec=-rdynamic
10242      ;;
10243
10244    cygwin* | mingw* | pw32* | cegcc*)
10245      # When not using gcc, we currently assume that we are using
10246      # Microsoft Visual C++ or Intel C++ Compiler.
10247      # hardcode_libdir_flag_spec is actually meaningless, as there is
10248      # no search path for DLLs.
10249      case $cc_basename in
10250      cl* | icl*)
10251	# Native MSVC or ICC
10252	hardcode_libdir_flag_spec=' '
10253	allow_undefined_flag=unsupported
10254	always_export_symbols=yes
10255	file_list_spec='@'
10256	# Tell ltmain to make .lib files, not .a files.
10257	libext=lib
10258	# Tell ltmain to make .dll files, not .so files.
10259	shrext_cmds=.dll
10260	# FIXME: Setting linknames here is a bad hack.
10261	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10262	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10263            cp "$export_symbols" "$output_objdir/$soname.def";
10264            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10265          else
10266            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10267          fi~
10268          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10269          linknames='
10270	# The linker will not automatically build a static lib if we build a DLL.
10271	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10272	enable_shared_with_static_runtimes=yes
10273	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10274	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10275	# Don't use ranlib
10276	old_postinstall_cmds='chmod 644 $oldlib'
10277	postlink_cmds='lt_outputfile="@OUTPUT@"~
10278          lt_tool_outputfile="@TOOL_OUTPUT@"~
10279          case $lt_outputfile in
10280            *.exe|*.EXE) ;;
10281            *)
10282              lt_outputfile=$lt_outputfile.exe
10283              lt_tool_outputfile=$lt_tool_outputfile.exe
10284              ;;
10285          esac~
10286          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10287            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10288            $RM "$lt_outputfile.manifest";
10289          fi'
10290	;;
10291      *)
10292	# Assume MSVC and ICC wrapper
10293	hardcode_libdir_flag_spec=' '
10294	allow_undefined_flag=unsupported
10295	# Tell ltmain to make .lib files, not .a files.
10296	libext=lib
10297	# Tell ltmain to make .dll files, not .so files.
10298	shrext_cmds=.dll
10299	# FIXME: Setting linknames here is a bad hack.
10300	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10301	# The linker will automatically build a .lib file if we build a DLL.
10302	old_archive_from_new_cmds='true'
10303	# FIXME: Should let the user specify the lib program.
10304	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10305	enable_shared_with_static_runtimes=yes
10306	;;
10307      esac
10308      ;;
10309
10310    darwin* | rhapsody*)
10311
10312
10313  archive_cmds_need_lc=no
10314  hardcode_direct=no
10315  hardcode_automatic=yes
10316  hardcode_shlibpath_var=unsupported
10317  if test yes = "$lt_cv_ld_force_load"; then
10318    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\"`'
10319
10320  else
10321    whole_archive_flag_spec=''
10322  fi
10323  link_all_deplibs=yes
10324  allow_undefined_flag=$_lt_dar_allow_undefined
10325  case $cc_basename in
10326     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10327     *) _lt_dar_can_shared=$GCC ;;
10328  esac
10329  if test yes = "$_lt_dar_can_shared"; then
10330    output_verbose_link_cmd=func_echo_all
10331    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10332    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10333    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"
10334    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"
10335
10336  else
10337  ld_shlibs=no
10338  fi
10339
10340      ;;
10341
10342    dgux*)
10343      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10344      hardcode_libdir_flag_spec='-L$libdir'
10345      hardcode_shlibpath_var=no
10346      ;;
10347
10348    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10349    # support.  Future versions do this automatically, but an explicit c++rt0.o
10350    # does not break anything, and helps significantly (at the cost of a little
10351    # extra space).
10352    freebsd2.2*)
10353      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10354      hardcode_libdir_flag_spec='-R$libdir'
10355      hardcode_direct=yes
10356      hardcode_shlibpath_var=no
10357      ;;
10358
10359    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10360    freebsd2.*)
10361      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10362      hardcode_direct=yes
10363      hardcode_minus_L=yes
10364      hardcode_shlibpath_var=no
10365      ;;
10366
10367    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10368    freebsd* | dragonfly* | midnightbsd*)
10369      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10370      hardcode_libdir_flag_spec='-R$libdir'
10371      hardcode_direct=yes
10372      hardcode_shlibpath_var=no
10373      ;;
10374
10375    hpux9*)
10376      if test yes = "$GCC"; then
10377	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'
10378      else
10379	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'
10380      fi
10381      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10382      hardcode_libdir_separator=:
10383      hardcode_direct=yes
10384
10385      # hardcode_minus_L: Not really in the search PATH,
10386      # but as the default location of the library.
10387      hardcode_minus_L=yes
10388      export_dynamic_flag_spec='$wl-E'
10389      ;;
10390
10391    hpux10*)
10392      if test yes,no = "$GCC,$with_gnu_ld"; then
10393	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10394      else
10395	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10396      fi
10397      if test no = "$with_gnu_ld"; then
10398	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10399	hardcode_libdir_separator=:
10400	hardcode_direct=yes
10401	hardcode_direct_absolute=yes
10402	export_dynamic_flag_spec='$wl-E'
10403	# hardcode_minus_L: Not really in the search PATH,
10404	# but as the default location of the library.
10405	hardcode_minus_L=yes
10406      fi
10407      ;;
10408
10409    hpux11*)
10410      if test yes,no = "$GCC,$with_gnu_ld"; then
10411	case $host_cpu in
10412	hppa*64*)
10413	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10414	  ;;
10415	ia64*)
10416	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10417	  ;;
10418	*)
10419	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10420	  ;;
10421	esac
10422      else
10423	case $host_cpu in
10424	hppa*64*)
10425	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10426	  ;;
10427	ia64*)
10428	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10429	  ;;
10430	*)
10431
10432	  # Older versions of the 11.00 compiler do not understand -b yet
10433	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10434	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10435printf %s "checking if $CC understands -b... " >&6; }
10436if test ${lt_cv_prog_compiler__b+y}
10437then :
10438  printf %s "(cached) " >&6
10439else $as_nop
10440  lt_cv_prog_compiler__b=no
10441   save_LDFLAGS=$LDFLAGS
10442   LDFLAGS="$LDFLAGS -b"
10443   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10444   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10445     # The linker can only warn and ignore the option if not recognized
10446     # So say no if there are warnings
10447     if test -s conftest.err; then
10448       # Append any errors to the config.log.
10449       cat conftest.err 1>&5
10450       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10451       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10452       if diff conftest.exp conftest.er2 >/dev/null; then
10453         lt_cv_prog_compiler__b=yes
10454       fi
10455     else
10456       lt_cv_prog_compiler__b=yes
10457     fi
10458   fi
10459   $RM -r conftest*
10460   LDFLAGS=$save_LDFLAGS
10461
10462fi
10463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10464printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10465
10466if test yes = "$lt_cv_prog_compiler__b"; then
10467    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10468else
10469    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10470fi
10471
10472	  ;;
10473	esac
10474      fi
10475      if test no = "$with_gnu_ld"; then
10476	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10477	hardcode_libdir_separator=:
10478
10479	case $host_cpu in
10480	hppa*64*|ia64*)
10481	  hardcode_direct=no
10482	  hardcode_shlibpath_var=no
10483	  ;;
10484	*)
10485	  hardcode_direct=yes
10486	  hardcode_direct_absolute=yes
10487	  export_dynamic_flag_spec='$wl-E'
10488
10489	  # hardcode_minus_L: Not really in the search PATH,
10490	  # but as the default location of the library.
10491	  hardcode_minus_L=yes
10492	  ;;
10493	esac
10494      fi
10495      ;;
10496
10497    irix5* | irix6* | nonstopux*)
10498      if test yes = "$GCC"; then
10499	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'
10500	# Try to use the -exported_symbol ld option, if it does not
10501	# work, assume that -exports_file does not work either and
10502	# implicitly export all symbols.
10503	# This should be the same for all languages, so no per-tag cache variable.
10504	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10505printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10506if test ${lt_cv_irix_exported_symbol+y}
10507then :
10508  printf %s "(cached) " >&6
10509else $as_nop
10510  save_LDFLAGS=$LDFLAGS
10511	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10512	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10513/* end confdefs.h.  */
10514int foo (void) { return 0; }
10515_ACEOF
10516if ac_fn_c_try_link "$LINENO"
10517then :
10518  lt_cv_irix_exported_symbol=yes
10519else $as_nop
10520  lt_cv_irix_exported_symbol=no
10521fi
10522rm -f core conftest.err conftest.$ac_objext conftest.beam \
10523    conftest$ac_exeext conftest.$ac_ext
10524           LDFLAGS=$save_LDFLAGS
10525fi
10526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10527printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10528	if test yes = "$lt_cv_irix_exported_symbol"; then
10529          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'
10530	fi
10531      else
10532	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'
10533	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'
10534      fi
10535      archive_cmds_need_lc='no'
10536      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10537      hardcode_libdir_separator=:
10538      inherit_rpath=yes
10539      link_all_deplibs=yes
10540      ;;
10541
10542    linux*)
10543      case $cc_basename in
10544      tcc*)
10545	# Fabrice Bellard et al's Tiny C Compiler
10546	ld_shlibs=yes
10547	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10548	;;
10549      esac
10550      ;;
10551
10552    netbsd*)
10553      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10554	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10555      else
10556	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10557      fi
10558      hardcode_libdir_flag_spec='-R$libdir'
10559      hardcode_direct=yes
10560      hardcode_shlibpath_var=no
10561      ;;
10562
10563    newsos6)
10564      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10565      hardcode_direct=yes
10566      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10567      hardcode_libdir_separator=:
10568      hardcode_shlibpath_var=no
10569      ;;
10570
10571    *nto* | *qnx*)
10572      ;;
10573
10574    openbsd* | bitrig*)
10575      if test -f /usr/libexec/ld.so; then
10576	hardcode_direct=yes
10577	hardcode_shlibpath_var=no
10578	hardcode_direct_absolute=yes
10579	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10580	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10581	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10582	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10583	  export_dynamic_flag_spec='$wl-E'
10584	else
10585	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10586	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10587	fi
10588      else
10589	ld_shlibs=no
10590      fi
10591      ;;
10592
10593    os2*)
10594      hardcode_libdir_flag_spec='-L$libdir'
10595      hardcode_minus_L=yes
10596      allow_undefined_flag=unsupported
10597      shrext_cmds=.dll
10598      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10599	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10600	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10601	$ECHO EXPORTS >> $output_objdir/$libname.def~
10602	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10603	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10604	emximp -o $lib $output_objdir/$libname.def'
10605      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10606	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10607	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10608	$ECHO EXPORTS >> $output_objdir/$libname.def~
10609	prefix_cmds="$SED"~
10610	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10611	  prefix_cmds="$prefix_cmds -e 1d";
10612	fi~
10613	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10614	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10615	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10616	emximp -o $lib $output_objdir/$libname.def'
10617      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10618      enable_shared_with_static_runtimes=yes
10619      file_list_spec='@'
10620      ;;
10621
10622    osf3*)
10623      if test yes = "$GCC"; then
10624	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10625	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'
10626      else
10627	allow_undefined_flag=' -expect_unresolved \*'
10628	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'
10629      fi
10630      archive_cmds_need_lc='no'
10631      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10632      hardcode_libdir_separator=:
10633      ;;
10634
10635    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10636      if test yes = "$GCC"; then
10637	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10638	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'
10639	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10640      else
10641	allow_undefined_flag=' -expect_unresolved \*'
10642	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'
10643	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~
10644          $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'
10645
10646	# Both c and cxx compiler support -rpath directly
10647	hardcode_libdir_flag_spec='-rpath $libdir'
10648      fi
10649      archive_cmds_need_lc='no'
10650      hardcode_libdir_separator=:
10651      ;;
10652
10653    solaris*)
10654      no_undefined_flag=' -z defs'
10655      if test yes = "$GCC"; then
10656	wlarc='$wl'
10657	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10658	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10659          $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'
10660      else
10661	case `$CC -V 2>&1` in
10662	*"Compilers 5.0"*)
10663	  wlarc=''
10664	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10665	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10666            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10667	  ;;
10668	*)
10669	  wlarc='$wl'
10670	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10671	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10672            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10673	  ;;
10674	esac
10675      fi
10676      hardcode_libdir_flag_spec='-R$libdir'
10677      hardcode_shlibpath_var=no
10678      case $host_os in
10679      solaris2.[0-5] | solaris2.[0-5].*) ;;
10680      *)
10681	# The compiler driver will combine and reorder linker options,
10682	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10683	# but is careful enough not to reorder.
10684	# Supported since Solaris 2.6 (maybe 2.5.1?)
10685	if test yes = "$GCC"; then
10686	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10687	else
10688	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10689	fi
10690	;;
10691      esac
10692      link_all_deplibs=yes
10693      ;;
10694
10695    sunos4*)
10696      if test sequent = "$host_vendor"; then
10697	# Use $CC to link under sequent, because it throws in some extra .o
10698	# files that make .init and .fini sections work.
10699	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10700      else
10701	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10702      fi
10703      hardcode_libdir_flag_spec='-L$libdir'
10704      hardcode_direct=yes
10705      hardcode_minus_L=yes
10706      hardcode_shlibpath_var=no
10707      ;;
10708
10709    sysv4)
10710      case $host_vendor in
10711	sni)
10712	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10713	  hardcode_direct=yes # is this really true???
10714	;;
10715	siemens)
10716	  ## LD is ld it makes a PLAMLIB
10717	  ## CC just makes a GrossModule.
10718	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10719	  reload_cmds='$CC -r -o $output$reload_objs'
10720	  hardcode_direct=no
10721        ;;
10722	motorola)
10723	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10724	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10725	;;
10726      esac
10727      runpath_var='LD_RUN_PATH'
10728      hardcode_shlibpath_var=no
10729      ;;
10730
10731    sysv4.3*)
10732      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10733      hardcode_shlibpath_var=no
10734      export_dynamic_flag_spec='-Bexport'
10735      ;;
10736
10737    sysv4*MP*)
10738      if test -d /usr/nec; then
10739	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10740	hardcode_shlibpath_var=no
10741	runpath_var=LD_RUN_PATH
10742	hardcode_runpath_var=yes
10743	ld_shlibs=yes
10744      fi
10745      ;;
10746
10747    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10748      no_undefined_flag='$wl-z,text'
10749      archive_cmds_need_lc=no
10750      hardcode_shlibpath_var=no
10751      runpath_var='LD_RUN_PATH'
10752
10753      if test yes = "$GCC"; then
10754	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10755	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10756      else
10757	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10758	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10759      fi
10760      ;;
10761
10762    sysv5* | sco3.2v5* | sco5v6*)
10763      # Note: We CANNOT use -z defs as we might desire, because we do not
10764      # link with -lc, and that would cause any symbols used from libc to
10765      # always be unresolved, which means just about no library would
10766      # ever link correctly.  If we're not using GNU ld we use -z text
10767      # though, which does catch some bad symbols but isn't as heavy-handed
10768      # as -z defs.
10769      no_undefined_flag='$wl-z,text'
10770      allow_undefined_flag='$wl-z,nodefs'
10771      archive_cmds_need_lc=no
10772      hardcode_shlibpath_var=no
10773      hardcode_libdir_flag_spec='$wl-R,$libdir'
10774      hardcode_libdir_separator=':'
10775      link_all_deplibs=yes
10776      export_dynamic_flag_spec='$wl-Bexport'
10777      runpath_var='LD_RUN_PATH'
10778
10779      if test yes = "$GCC"; then
10780	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10781	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10782      else
10783	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10784	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10785      fi
10786      ;;
10787
10788    uts4*)
10789      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10790      hardcode_libdir_flag_spec='-L$libdir'
10791      hardcode_shlibpath_var=no
10792      ;;
10793
10794    *)
10795      ld_shlibs=no
10796      ;;
10797    esac
10798
10799    if test sni = "$host_vendor"; then
10800      case $host in
10801      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10802	export_dynamic_flag_spec='$wl-Blargedynsym'
10803	;;
10804      esac
10805    fi
10806  fi
10807
10808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10809printf "%s\n" "$ld_shlibs" >&6; }
10810test no = "$ld_shlibs" && can_build_shared=no
10811
10812with_gnu_ld=$with_gnu_ld
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828#
10829# Do we need to explicitly link libc?
10830#
10831case "x$archive_cmds_need_lc" in
10832x|xyes)
10833  # Assume -lc should be added
10834  archive_cmds_need_lc=yes
10835
10836  if test yes,yes = "$GCC,$enable_shared"; then
10837    case $archive_cmds in
10838    *'~'*)
10839      # FIXME: we may have to deal with multi-command sequences.
10840      ;;
10841    '$CC '*)
10842      # Test whether the compiler implicitly links with -lc since on some
10843      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10844      # to ld, don't add -lc before -lgcc.
10845      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10846printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10847if test ${lt_cv_archive_cmds_need_lc+y}
10848then :
10849  printf %s "(cached) " >&6
10850else $as_nop
10851  $RM conftest*
10852	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10853
10854	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10855  (eval $ac_compile) 2>&5
10856  ac_status=$?
10857  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10858  test $ac_status = 0; } 2>conftest.err; then
10859	  soname=conftest
10860	  lib=conftest
10861	  libobjs=conftest.$ac_objext
10862	  deplibs=
10863	  wl=$lt_prog_compiler_wl
10864	  pic_flag=$lt_prog_compiler_pic
10865	  compiler_flags=-v
10866	  linker_flags=-v
10867	  verstring=
10868	  output_objdir=.
10869	  libname=conftest
10870	  lt_save_allow_undefined_flag=$allow_undefined_flag
10871	  allow_undefined_flag=
10872	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10873  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10874  ac_status=$?
10875  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10876  test $ac_status = 0; }
10877	  then
10878	    lt_cv_archive_cmds_need_lc=no
10879	  else
10880	    lt_cv_archive_cmds_need_lc=yes
10881	  fi
10882	  allow_undefined_flag=$lt_save_allow_undefined_flag
10883	else
10884	  cat conftest.err 1>&5
10885	fi
10886	$RM conftest*
10887
10888fi
10889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10890printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10891      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10892      ;;
10893    esac
10894  fi
10895  ;;
10896esac
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
11044
11045
11046
11047
11048
11049  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11050printf %s "checking dynamic linker characteristics... " >&6; }
11051
11052if test yes = "$GCC"; then
11053  case $host_os in
11054    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11055    *) lt_awk_arg='/^libraries:/' ;;
11056  esac
11057  case $host_os in
11058    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11059    *) lt_sed_strip_eq='s|=/|/|g' ;;
11060  esac
11061  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11062  case $lt_search_path_spec in
11063  *\;*)
11064    # if the path contains ";" then we assume it to be the separator
11065    # otherwise default to the standard path separator (i.e. ":") - it is
11066    # assumed that no part of a normal pathname contains ";" but that should
11067    # okay in the real world where ";" in dirpaths is itself problematic.
11068    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11069    ;;
11070  *)
11071    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11072    ;;
11073  esac
11074  # Ok, now we have the path, separated by spaces, we can step through it
11075  # and add multilib dir if necessary...
11076  lt_tmp_lt_search_path_spec=
11077  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11078  # ...but if some path component already ends with the multilib dir we assume
11079  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11080  case "$lt_multi_os_dir; $lt_search_path_spec " in
11081  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11082    lt_multi_os_dir=
11083    ;;
11084  esac
11085  for lt_sys_path in $lt_search_path_spec; do
11086    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11087      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11088    elif test -n "$lt_multi_os_dir"; then
11089      test -d "$lt_sys_path" && \
11090	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11091    fi
11092  done
11093  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11094BEGIN {RS = " "; FS = "/|\n";} {
11095  lt_foo = "";
11096  lt_count = 0;
11097  for (lt_i = NF; lt_i > 0; lt_i--) {
11098    if ($lt_i != "" && $lt_i != ".") {
11099      if ($lt_i == "..") {
11100        lt_count++;
11101      } else {
11102        if (lt_count == 0) {
11103          lt_foo = "/" $lt_i lt_foo;
11104        } else {
11105          lt_count--;
11106        }
11107      }
11108    }
11109  }
11110  if (lt_foo != "") { lt_freq[lt_foo]++; }
11111  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11112}'`
11113  # AWK program above erroneously prepends '/' to C:/dos/paths
11114  # for these hosts.
11115  case $host_os in
11116    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11117      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11118  esac
11119  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11120else
11121  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11122fi
11123library_names_spec=
11124libname_spec='lib$name'
11125soname_spec=
11126shrext_cmds=.so
11127postinstall_cmds=
11128postuninstall_cmds=
11129finish_cmds=
11130finish_eval=
11131shlibpath_var=
11132shlibpath_overrides_runpath=unknown
11133version_type=none
11134dynamic_linker="$host_os ld.so"
11135sys_lib_dlsearch_path_spec="/lib /usr/lib"
11136need_lib_prefix=unknown
11137hardcode_into_libs=no
11138
11139# when you set need_version to no, make sure it does not cause -set_version
11140# flags to be left without arguments
11141need_version=unknown
11142
11143
11144
11145case $host_os in
11146aix3*)
11147  version_type=linux # correct to gnu/linux during the next big refactor
11148  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11149  shlibpath_var=LIBPATH
11150
11151  # AIX 3 has no versioning support, so we append a major version to the name.
11152  soname_spec='$libname$release$shared_ext$major'
11153  ;;
11154
11155aix[4-9]*)
11156  version_type=linux # correct to gnu/linux during the next big refactor
11157  need_lib_prefix=no
11158  need_version=no
11159  hardcode_into_libs=yes
11160  if test ia64 = "$host_cpu"; then
11161    # AIX 5 supports IA64
11162    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11163    shlibpath_var=LD_LIBRARY_PATH
11164  else
11165    # With GCC up to 2.95.x, collect2 would create an import file
11166    # for dependence libraries.  The import file would start with
11167    # the line '#! .'.  This would cause the generated library to
11168    # depend on '.', always an invalid library.  This was fixed in
11169    # development snapshots of GCC prior to 3.0.
11170    case $host_os in
11171      aix4 | aix4.[01] | aix4.[01].*)
11172      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11173	   echo ' yes '
11174	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11175	:
11176      else
11177	can_build_shared=no
11178      fi
11179      ;;
11180    esac
11181    # Using Import Files as archive members, it is possible to support
11182    # filename-based versioning of shared library archives on AIX. While
11183    # this would work for both with and without runtime linking, it will
11184    # prevent static linking of such archives. So we do filename-based
11185    # shared library versioning with .so extension only, which is used
11186    # when both runtime linking and shared linking is enabled.
11187    # Unfortunately, runtime linking may impact performance, so we do
11188    # not want this to be the default eventually. Also, we use the
11189    # versioned .so libs for executables only if there is the -brtl
11190    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11191    # To allow for filename-based versioning support, we need to create
11192    # libNAME.so.V as an archive file, containing:
11193    # *) an Import File, referring to the versioned filename of the
11194    #    archive as well as the shared archive member, telling the
11195    #    bitwidth (32 or 64) of that shared object, and providing the
11196    #    list of exported symbols of that shared object, eventually
11197    #    decorated with the 'weak' keyword
11198    # *) the shared object with the F_LOADONLY flag set, to really avoid
11199    #    it being seen by the linker.
11200    # At run time we better use the real file rather than another symlink,
11201    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11202
11203    case $with_aix_soname,$aix_use_runtimelinking in
11204    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11205    # soname into executable. Probably we can add versioning support to
11206    # collect2, so additional links can be useful in future.
11207    aix,yes) # traditional libtool
11208      dynamic_linker='AIX unversionable lib.so'
11209      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11210      # instead of lib<name>.a to let people know that these are not
11211      # typical AIX shared libraries.
11212      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11213      ;;
11214    aix,no) # traditional AIX only
11215      dynamic_linker='AIX lib.a(lib.so.V)'
11216      # We preserve .a as extension for shared libraries through AIX4.2
11217      # and later when we are not doing run time linking.
11218      library_names_spec='$libname$release.a $libname.a'
11219      soname_spec='$libname$release$shared_ext$major'
11220      ;;
11221    svr4,*) # full svr4 only
11222      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11223      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11224      # We do not specify a path in Import Files, so LIBPATH fires.
11225      shlibpath_overrides_runpath=yes
11226      ;;
11227    *,yes) # both, prefer svr4
11228      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11229      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11230      # unpreferred sharedlib libNAME.a needs extra handling
11231      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"'
11232      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"'
11233      # We do not specify a path in Import Files, so LIBPATH fires.
11234      shlibpath_overrides_runpath=yes
11235      ;;
11236    *,no) # both, prefer aix
11237      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11238      library_names_spec='$libname$release.a $libname.a'
11239      soname_spec='$libname$release$shared_ext$major'
11240      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11241      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)'
11242      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"'
11243      ;;
11244    esac
11245    shlibpath_var=LIBPATH
11246  fi
11247  ;;
11248
11249amigaos*)
11250  case $host_cpu in
11251  powerpc)
11252    # Since July 2007 AmigaOS4 officially supports .so libraries.
11253    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11254    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11255    ;;
11256  m68k)
11257    library_names_spec='$libname.ixlibrary $libname.a'
11258    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11259    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'
11260    ;;
11261  esac
11262  ;;
11263
11264beos*)
11265  library_names_spec='$libname$shared_ext'
11266  dynamic_linker="$host_os ld.so"
11267  shlibpath_var=LIBRARY_PATH
11268  ;;
11269
11270bsdi[45]*)
11271  version_type=linux # correct to gnu/linux during the next big refactor
11272  need_version=no
11273  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11274  soname_spec='$libname$release$shared_ext$major'
11275  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11276  shlibpath_var=LD_LIBRARY_PATH
11277  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11278  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11279  # the default ld.so.conf also contains /usr/contrib/lib and
11280  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11281  # libtool to hard-code these into programs
11282  ;;
11283
11284cygwin* | mingw* | pw32* | cegcc*)
11285  version_type=windows
11286  shrext_cmds=.dll
11287  need_version=no
11288  need_lib_prefix=no
11289
11290  case $GCC,$cc_basename in
11291  yes,*)
11292    # gcc
11293    library_names_spec='$libname.dll.a'
11294    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11295    postinstall_cmds='base_file=`basename \$file`~
11296      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11297      dldir=$destdir/`dirname \$dlpath`~
11298      test -d \$dldir || mkdir -p \$dldir~
11299      $install_prog $dir/$dlname \$dldir/$dlname~
11300      chmod a+x \$dldir/$dlname~
11301      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11302        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11303      fi'
11304    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11305      dlpath=$dir/\$dldll~
11306       $RM \$dlpath'
11307    shlibpath_overrides_runpath=yes
11308
11309    case $host_os in
11310    cygwin*)
11311      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11312      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11313
11314      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11315      ;;
11316    mingw* | cegcc*)
11317      # MinGW DLLs use traditional 'lib' prefix
11318      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11319      ;;
11320    pw32*)
11321      # pw32 DLLs use 'pw' prefix rather than 'lib'
11322      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11323      ;;
11324    esac
11325    dynamic_linker='Win32 ld.exe'
11326    ;;
11327
11328  *,cl* | *,icl*)
11329    # Native MSVC or ICC
11330    libname_spec='$name'
11331    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11332    library_names_spec='$libname.dll.lib'
11333
11334    case $build_os in
11335    mingw*)
11336      sys_lib_search_path_spec=
11337      lt_save_ifs=$IFS
11338      IFS=';'
11339      for lt_path in $LIB
11340      do
11341        IFS=$lt_save_ifs
11342        # Let DOS variable expansion print the short 8.3 style file name.
11343        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11344        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11345      done
11346      IFS=$lt_save_ifs
11347      # Convert to MSYS style.
11348      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11349      ;;
11350    cygwin*)
11351      # Convert to unix form, then to dos form, then back to unix form
11352      # but this time dos style (no spaces!) so that the unix form looks
11353      # like /cygdrive/c/PROGRA~1:/cygdr...
11354      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11355      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11356      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11357      ;;
11358    *)
11359      sys_lib_search_path_spec=$LIB
11360      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11361        # It is most probably a Windows format PATH.
11362        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11363      else
11364        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11365      fi
11366      # FIXME: find the short name or the path components, as spaces are
11367      # common. (e.g. "Program Files" -> "PROGRA~1")
11368      ;;
11369    esac
11370
11371    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11372    postinstall_cmds='base_file=`basename \$file`~
11373      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11374      dldir=$destdir/`dirname \$dlpath`~
11375      test -d \$dldir || mkdir -p \$dldir~
11376      $install_prog $dir/$dlname \$dldir/$dlname'
11377    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11378      dlpath=$dir/\$dldll~
11379       $RM \$dlpath'
11380    shlibpath_overrides_runpath=yes
11381    dynamic_linker='Win32 link.exe'
11382    ;;
11383
11384  *)
11385    # Assume MSVC and ICC wrapper
11386    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11387    dynamic_linker='Win32 ld.exe'
11388    ;;
11389  esac
11390  # FIXME: first we should search . and the directory the executable is in
11391  shlibpath_var=PATH
11392  ;;
11393
11394darwin* | rhapsody*)
11395  dynamic_linker="$host_os dyld"
11396  version_type=darwin
11397  need_lib_prefix=no
11398  need_version=no
11399  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11400  soname_spec='$libname$release$major$shared_ext'
11401  shlibpath_overrides_runpath=yes
11402  shlibpath_var=DYLD_LIBRARY_PATH
11403  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11404
11405  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11406  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11407  ;;
11408
11409dgux*)
11410  version_type=linux # correct to gnu/linux during the next big refactor
11411  need_lib_prefix=no
11412  need_version=no
11413  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11414  soname_spec='$libname$release$shared_ext$major'
11415  shlibpath_var=LD_LIBRARY_PATH
11416  ;;
11417
11418freebsd* | dragonfly* | midnightbsd*)
11419  # DragonFly does not have aout.  When/if they implement a new
11420  # versioning mechanism, adjust this.
11421  if test -x /usr/bin/objformat; then
11422    objformat=`/usr/bin/objformat`
11423  else
11424    case $host_os in
11425    freebsd[23].*) objformat=aout ;;
11426    *) objformat=elf ;;
11427    esac
11428  fi
11429  version_type=freebsd-$objformat
11430  case $version_type in
11431    freebsd-elf*)
11432      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11433      soname_spec='$libname$release$shared_ext$major'
11434      need_version=no
11435      need_lib_prefix=no
11436      ;;
11437    freebsd-*)
11438      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11439      need_version=yes
11440      ;;
11441  esac
11442  shlibpath_var=LD_LIBRARY_PATH
11443  case $host_os in
11444  freebsd2.*)
11445    shlibpath_overrides_runpath=yes
11446    ;;
11447  freebsd3.[01]* | freebsdelf3.[01]*)
11448    shlibpath_overrides_runpath=yes
11449    hardcode_into_libs=yes
11450    ;;
11451  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11452  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11453    shlibpath_overrides_runpath=no
11454    hardcode_into_libs=yes
11455    ;;
11456  *) # from 4.6 on, and DragonFly
11457    shlibpath_overrides_runpath=yes
11458    hardcode_into_libs=yes
11459    ;;
11460  esac
11461  ;;
11462
11463haiku*)
11464  version_type=linux # correct to gnu/linux during the next big refactor
11465  need_lib_prefix=no
11466  need_version=no
11467  dynamic_linker="$host_os runtime_loader"
11468  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11469  soname_spec='$libname$release$shared_ext$major'
11470  shlibpath_var=LIBRARY_PATH
11471  shlibpath_overrides_runpath=no
11472  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11473  hardcode_into_libs=yes
11474  ;;
11475
11476hpux9* | hpux10* | hpux11*)
11477  # Give a soname corresponding to the major version so that dld.sl refuses to
11478  # link against other versions.
11479  version_type=sunos
11480  need_lib_prefix=no
11481  need_version=no
11482  case $host_cpu in
11483  ia64*)
11484    shrext_cmds='.so'
11485    hardcode_into_libs=yes
11486    dynamic_linker="$host_os dld.so"
11487    shlibpath_var=LD_LIBRARY_PATH
11488    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11489    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11490    soname_spec='$libname$release$shared_ext$major'
11491    if test 32 = "$HPUX_IA64_MODE"; then
11492      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11493      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11494    else
11495      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11496      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11497    fi
11498    ;;
11499  hppa*64*)
11500    shrext_cmds='.sl'
11501    hardcode_into_libs=yes
11502    dynamic_linker="$host_os dld.sl"
11503    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11504    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11505    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11506    soname_spec='$libname$release$shared_ext$major'
11507    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11508    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11509    ;;
11510  *)
11511    shrext_cmds='.sl'
11512    dynamic_linker="$host_os dld.sl"
11513    shlibpath_var=SHLIB_PATH
11514    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11515    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11516    soname_spec='$libname$release$shared_ext$major'
11517    ;;
11518  esac
11519  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11520  postinstall_cmds='chmod 555 $lib'
11521  # or fails outright, so override atomically:
11522  install_override_mode=555
11523  ;;
11524
11525interix[3-9]*)
11526  version_type=linux # correct to gnu/linux during the next big refactor
11527  need_lib_prefix=no
11528  need_version=no
11529  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11530  soname_spec='$libname$release$shared_ext$major'
11531  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11532  shlibpath_var=LD_LIBRARY_PATH
11533  shlibpath_overrides_runpath=no
11534  hardcode_into_libs=yes
11535  ;;
11536
11537irix5* | irix6* | nonstopux*)
11538  case $host_os in
11539    nonstopux*) version_type=nonstopux ;;
11540    *)
11541	if test yes = "$lt_cv_prog_gnu_ld"; then
11542		version_type=linux # correct to gnu/linux during the next big refactor
11543	else
11544		version_type=irix
11545	fi ;;
11546  esac
11547  need_lib_prefix=no
11548  need_version=no
11549  soname_spec='$libname$release$shared_ext$major'
11550  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11551  case $host_os in
11552  irix5* | nonstopux*)
11553    libsuff= shlibsuff=
11554    ;;
11555  *)
11556    case $LD in # libtool.m4 will add one of these switches to LD
11557    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11558      libsuff= shlibsuff= libmagic=32-bit;;
11559    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11560      libsuff=32 shlibsuff=N32 libmagic=N32;;
11561    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11562      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11563    *) libsuff= shlibsuff= libmagic=never-match;;
11564    esac
11565    ;;
11566  esac
11567  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11568  shlibpath_overrides_runpath=no
11569  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11570  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11571  hardcode_into_libs=yes
11572  ;;
11573
11574# No shared lib support for Linux oldld, aout, or coff.
11575linux*oldld* | linux*aout* | linux*coff*)
11576  dynamic_linker=no
11577  ;;
11578
11579linux*android*)
11580  version_type=none # Android doesn't support versioned libraries.
11581  need_lib_prefix=no
11582  need_version=no
11583  library_names_spec='$libname$release$shared_ext'
11584  soname_spec='$libname$release$shared_ext'
11585  finish_cmds=
11586  shlibpath_var=LD_LIBRARY_PATH
11587  shlibpath_overrides_runpath=yes
11588
11589  # This implies no fast_install, which is unacceptable.
11590  # Some rework will be needed to allow for fast_install
11591  # before this can be enabled.
11592  hardcode_into_libs=yes
11593
11594  dynamic_linker='Android linker'
11595  # Don't embed -rpath directories since the linker doesn't support them.
11596  hardcode_libdir_flag_spec='-L$libdir'
11597  ;;
11598
11599# This must be glibc/ELF.
11600linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11601  version_type=linux # correct to gnu/linux during the next big refactor
11602  need_lib_prefix=no
11603  need_version=no
11604  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11605  soname_spec='$libname$release$shared_ext$major'
11606  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11607  shlibpath_var=LD_LIBRARY_PATH
11608  shlibpath_overrides_runpath=no
11609
11610  # Some binutils ld are patched to set DT_RUNPATH
11611  if test ${lt_cv_shlibpath_overrides_runpath+y}
11612then :
11613  printf %s "(cached) " >&6
11614else $as_nop
11615  lt_cv_shlibpath_overrides_runpath=no
11616    save_LDFLAGS=$LDFLAGS
11617    save_libdir=$libdir
11618    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11619	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11620    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11621/* end confdefs.h.  */
11622
11623int
11624main (void)
11625{
11626
11627  ;
11628  return 0;
11629}
11630_ACEOF
11631if ac_fn_c_try_link "$LINENO"
11632then :
11633  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11634then :
11635  lt_cv_shlibpath_overrides_runpath=yes
11636fi
11637fi
11638rm -f core conftest.err conftest.$ac_objext conftest.beam \
11639    conftest$ac_exeext conftest.$ac_ext
11640    LDFLAGS=$save_LDFLAGS
11641    libdir=$save_libdir
11642
11643fi
11644
11645  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11646
11647  # This implies no fast_install, which is unacceptable.
11648  # Some rework will be needed to allow for fast_install
11649  # before this can be enabled.
11650  hardcode_into_libs=yes
11651
11652  # Ideally, we could use ldconfig to report *all* directores which are
11653  # searched for libraries, however this is still not possible.  Aside from not
11654  # being certain /sbin/ldconfig is available, command
11655  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11656  # even though it is searched at run-time.  Try to do the best guess by
11657  # appending ld.so.conf contents (and includes) to the search path.
11658  if test -f /etc/ld.so.conf; then
11659    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' ' '`
11660    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11661  fi
11662
11663  # We used to test for /lib/ld.so.1 and disable shared libraries on
11664  # powerpc, because MkLinux only supported shared libraries with the
11665  # GNU dynamic linker.  Since this was broken with cross compilers,
11666  # most powerpc-linux boxes support dynamic linking these days and
11667  # people can always --disable-shared, the test was removed, and we
11668  # assume the GNU/Linux dynamic linker is in use.
11669  dynamic_linker='GNU/Linux ld.so'
11670  ;;
11671
11672netbsd*)
11673  version_type=sunos
11674  need_lib_prefix=no
11675  need_version=no
11676  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11677    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11678    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11679    dynamic_linker='NetBSD (a.out) ld.so'
11680  else
11681    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11682    soname_spec='$libname$release$shared_ext$major'
11683    dynamic_linker='NetBSD ld.elf_so'
11684  fi
11685  shlibpath_var=LD_LIBRARY_PATH
11686  shlibpath_overrides_runpath=yes
11687  hardcode_into_libs=yes
11688  ;;
11689
11690newsos6)
11691  version_type=linux # correct to gnu/linux during the next big refactor
11692  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11693  shlibpath_var=LD_LIBRARY_PATH
11694  shlibpath_overrides_runpath=yes
11695  ;;
11696
11697*nto* | *qnx*)
11698  version_type=qnx
11699  need_lib_prefix=no
11700  need_version=no
11701  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11702  soname_spec='$libname$release$shared_ext$major'
11703  shlibpath_var=LD_LIBRARY_PATH
11704  shlibpath_overrides_runpath=no
11705  hardcode_into_libs=yes
11706  dynamic_linker='ldqnx.so'
11707  ;;
11708
11709openbsd* | bitrig*)
11710  version_type=sunos
11711  sys_lib_dlsearch_path_spec=/usr/lib
11712  need_lib_prefix=no
11713  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11714    need_version=no
11715  else
11716    need_version=yes
11717  fi
11718  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11719  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11720  shlibpath_var=LD_LIBRARY_PATH
11721  shlibpath_overrides_runpath=yes
11722  ;;
11723
11724os2*)
11725  libname_spec='$name'
11726  version_type=windows
11727  shrext_cmds=.dll
11728  need_version=no
11729  need_lib_prefix=no
11730  # OS/2 can only load a DLL with a base name of 8 characters or less.
11731  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11732    v=$($ECHO $release$versuffix | tr -d .-);
11733    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11734    $ECHO $n$v`$shared_ext'
11735  library_names_spec='${libname}_dll.$libext'
11736  dynamic_linker='OS/2 ld.exe'
11737  shlibpath_var=BEGINLIBPATH
11738  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11739  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11740  postinstall_cmds='base_file=`basename \$file`~
11741    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11742    dldir=$destdir/`dirname \$dlpath`~
11743    test -d \$dldir || mkdir -p \$dldir~
11744    $install_prog $dir/$dlname \$dldir/$dlname~
11745    chmod a+x \$dldir/$dlname~
11746    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11747      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11748    fi'
11749  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11750    dlpath=$dir/\$dldll~
11751    $RM \$dlpath'
11752  ;;
11753
11754osf3* | osf4* | osf5*)
11755  version_type=osf
11756  need_lib_prefix=no
11757  need_version=no
11758  soname_spec='$libname$release$shared_ext$major'
11759  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11760  shlibpath_var=LD_LIBRARY_PATH
11761  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11762  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11763  ;;
11764
11765rdos*)
11766  dynamic_linker=no
11767  ;;
11768
11769solaris*)
11770  version_type=linux # correct to gnu/linux during the next big refactor
11771  need_lib_prefix=no
11772  need_version=no
11773  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11774  soname_spec='$libname$release$shared_ext$major'
11775  shlibpath_var=LD_LIBRARY_PATH
11776  shlibpath_overrides_runpath=yes
11777  hardcode_into_libs=yes
11778  # ldd complains unless libraries are executable
11779  postinstall_cmds='chmod +x $lib'
11780  ;;
11781
11782sunos4*)
11783  version_type=sunos
11784  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11785  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11786  shlibpath_var=LD_LIBRARY_PATH
11787  shlibpath_overrides_runpath=yes
11788  if test yes = "$with_gnu_ld"; then
11789    need_lib_prefix=no
11790  fi
11791  need_version=yes
11792  ;;
11793
11794sysv4 | sysv4.3*)
11795  version_type=linux # correct to gnu/linux during the next big refactor
11796  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11797  soname_spec='$libname$release$shared_ext$major'
11798  shlibpath_var=LD_LIBRARY_PATH
11799  case $host_vendor in
11800    sni)
11801      shlibpath_overrides_runpath=no
11802      need_lib_prefix=no
11803      runpath_var=LD_RUN_PATH
11804      ;;
11805    siemens)
11806      need_lib_prefix=no
11807      ;;
11808    motorola)
11809      need_lib_prefix=no
11810      need_version=no
11811      shlibpath_overrides_runpath=no
11812      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11813      ;;
11814  esac
11815  ;;
11816
11817sysv4*MP*)
11818  if test -d /usr/nec; then
11819    version_type=linux # correct to gnu/linux during the next big refactor
11820    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11821    soname_spec='$libname$shared_ext.$major'
11822    shlibpath_var=LD_LIBRARY_PATH
11823  fi
11824  ;;
11825
11826sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11827  version_type=sco
11828  need_lib_prefix=no
11829  need_version=no
11830  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11831  soname_spec='$libname$release$shared_ext$major'
11832  shlibpath_var=LD_LIBRARY_PATH
11833  shlibpath_overrides_runpath=yes
11834  hardcode_into_libs=yes
11835  if test yes = "$with_gnu_ld"; then
11836    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11837  else
11838    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11839    case $host_os in
11840      sco3.2v5*)
11841        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11842	;;
11843    esac
11844  fi
11845  sys_lib_dlsearch_path_spec='/usr/lib'
11846  ;;
11847
11848tpf*)
11849  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11850  version_type=linux # correct to gnu/linux during the next big refactor
11851  need_lib_prefix=no
11852  need_version=no
11853  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11854  shlibpath_var=LD_LIBRARY_PATH
11855  shlibpath_overrides_runpath=no
11856  hardcode_into_libs=yes
11857  ;;
11858
11859uts4*)
11860  version_type=linux # correct to gnu/linux during the next big refactor
11861  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11862  soname_spec='$libname$release$shared_ext$major'
11863  shlibpath_var=LD_LIBRARY_PATH
11864  ;;
11865
11866*)
11867  dynamic_linker=no
11868  ;;
11869esac
11870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11871printf "%s\n" "$dynamic_linker" >&6; }
11872test no = "$dynamic_linker" && can_build_shared=no
11873
11874variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11875if test yes = "$GCC"; then
11876  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11877fi
11878
11879if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11880  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11881fi
11882
11883if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11884  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11885fi
11886
11887# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11888configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11889
11890# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11891func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11892
11893# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11894configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
11987
11988
11989
11990
11991
11992  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11993printf %s "checking how to hardcode library paths into programs... " >&6; }
11994hardcode_action=
11995if test -n "$hardcode_libdir_flag_spec" ||
11996   test -n "$runpath_var" ||
11997   test yes = "$hardcode_automatic"; then
11998
11999  # We can hardcode non-existent directories.
12000  if test no != "$hardcode_direct" &&
12001     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12002     # have to relink, otherwise we might link with an installed library
12003     # when we should be linking with a yet-to-be-installed one
12004     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12005     test no != "$hardcode_minus_L"; then
12006    # Linking always hardcodes the temporary library directory.
12007    hardcode_action=relink
12008  else
12009    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12010    hardcode_action=immediate
12011  fi
12012else
12013  # We cannot hardcode anything, or else we can only hardcode existing
12014  # directories.
12015  hardcode_action=unsupported
12016fi
12017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12018printf "%s\n" "$hardcode_action" >&6; }
12019
12020if test relink = "$hardcode_action" ||
12021   test yes = "$inherit_rpath"; then
12022  # Fast installation is not supported
12023  enable_fast_install=no
12024elif test yes = "$shlibpath_overrides_runpath" ||
12025     test no = "$enable_shared"; then
12026  # Fast installation is not necessary
12027  enable_fast_install=needless
12028fi
12029
12030
12031
12032
12033
12034
12035  if test yes != "$enable_dlopen"; then
12036  enable_dlopen=unknown
12037  enable_dlopen_self=unknown
12038  enable_dlopen_self_static=unknown
12039else
12040  lt_cv_dlopen=no
12041  lt_cv_dlopen_libs=
12042
12043  case $host_os in
12044  beos*)
12045    lt_cv_dlopen=load_add_on
12046    lt_cv_dlopen_libs=
12047    lt_cv_dlopen_self=yes
12048    ;;
12049
12050  mingw* | pw32* | cegcc*)
12051    lt_cv_dlopen=LoadLibrary
12052    lt_cv_dlopen_libs=
12053    ;;
12054
12055  cygwin*)
12056    lt_cv_dlopen=dlopen
12057    lt_cv_dlopen_libs=
12058    ;;
12059
12060  darwin*)
12061    # if libdl is installed we need to link against it
12062    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12063printf %s "checking for dlopen in -ldl... " >&6; }
12064if test ${ac_cv_lib_dl_dlopen+y}
12065then :
12066  printf %s "(cached) " >&6
12067else $as_nop
12068  ac_check_lib_save_LIBS=$LIBS
12069LIBS="-ldl  $LIBS"
12070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12071/* end confdefs.h.  */
12072
12073/* Override any GCC internal prototype to avoid an error.
12074   Use char because int might match the return type of a GCC
12075   builtin and then its argument prototype would still apply.  */
12076char dlopen ();
12077int
12078main (void)
12079{
12080return dlopen ();
12081  ;
12082  return 0;
12083}
12084_ACEOF
12085if ac_fn_c_try_link "$LINENO"
12086then :
12087  ac_cv_lib_dl_dlopen=yes
12088else $as_nop
12089  ac_cv_lib_dl_dlopen=no
12090fi
12091rm -f core conftest.err conftest.$ac_objext conftest.beam \
12092    conftest$ac_exeext conftest.$ac_ext
12093LIBS=$ac_check_lib_save_LIBS
12094fi
12095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12096printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12097if test "x$ac_cv_lib_dl_dlopen" = xyes
12098then :
12099  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12100else $as_nop
12101
12102    lt_cv_dlopen=dyld
12103    lt_cv_dlopen_libs=
12104    lt_cv_dlopen_self=yes
12105
12106fi
12107
12108    ;;
12109
12110  tpf*)
12111    # Don't try to run any link tests for TPF.  We know it's impossible
12112    # because TPF is a cross-compiler, and we know how we open DSOs.
12113    lt_cv_dlopen=dlopen
12114    lt_cv_dlopen_libs=
12115    lt_cv_dlopen_self=no
12116    ;;
12117
12118  *)
12119    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12120if test "x$ac_cv_func_shl_load" = xyes
12121then :
12122  lt_cv_dlopen=shl_load
12123else $as_nop
12124  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12125printf %s "checking for shl_load in -ldld... " >&6; }
12126if test ${ac_cv_lib_dld_shl_load+y}
12127then :
12128  printf %s "(cached) " >&6
12129else $as_nop
12130  ac_check_lib_save_LIBS=$LIBS
12131LIBS="-ldld  $LIBS"
12132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12133/* end confdefs.h.  */
12134
12135/* Override any GCC internal prototype to avoid an error.
12136   Use char because int might match the return type of a GCC
12137   builtin and then its argument prototype would still apply.  */
12138char shl_load ();
12139int
12140main (void)
12141{
12142return shl_load ();
12143  ;
12144  return 0;
12145}
12146_ACEOF
12147if ac_fn_c_try_link "$LINENO"
12148then :
12149  ac_cv_lib_dld_shl_load=yes
12150else $as_nop
12151  ac_cv_lib_dld_shl_load=no
12152fi
12153rm -f core conftest.err conftest.$ac_objext conftest.beam \
12154    conftest$ac_exeext conftest.$ac_ext
12155LIBS=$ac_check_lib_save_LIBS
12156fi
12157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12158printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12159if test "x$ac_cv_lib_dld_shl_load" = xyes
12160then :
12161  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12162else $as_nop
12163  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12164if test "x$ac_cv_func_dlopen" = xyes
12165then :
12166  lt_cv_dlopen=dlopen
12167else $as_nop
12168  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12169printf %s "checking for dlopen in -ldl... " >&6; }
12170if test ${ac_cv_lib_dl_dlopen+y}
12171then :
12172  printf %s "(cached) " >&6
12173else $as_nop
12174  ac_check_lib_save_LIBS=$LIBS
12175LIBS="-ldl  $LIBS"
12176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12177/* end confdefs.h.  */
12178
12179/* Override any GCC internal prototype to avoid an error.
12180   Use char because int might match the return type of a GCC
12181   builtin and then its argument prototype would still apply.  */
12182char dlopen ();
12183int
12184main (void)
12185{
12186return dlopen ();
12187  ;
12188  return 0;
12189}
12190_ACEOF
12191if ac_fn_c_try_link "$LINENO"
12192then :
12193  ac_cv_lib_dl_dlopen=yes
12194else $as_nop
12195  ac_cv_lib_dl_dlopen=no
12196fi
12197rm -f core conftest.err conftest.$ac_objext conftest.beam \
12198    conftest$ac_exeext conftest.$ac_ext
12199LIBS=$ac_check_lib_save_LIBS
12200fi
12201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12202printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12203if test "x$ac_cv_lib_dl_dlopen" = xyes
12204then :
12205  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12206else $as_nop
12207  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12208printf %s "checking for dlopen in -lsvld... " >&6; }
12209if test ${ac_cv_lib_svld_dlopen+y}
12210then :
12211  printf %s "(cached) " >&6
12212else $as_nop
12213  ac_check_lib_save_LIBS=$LIBS
12214LIBS="-lsvld  $LIBS"
12215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12216/* end confdefs.h.  */
12217
12218/* Override any GCC internal prototype to avoid an error.
12219   Use char because int might match the return type of a GCC
12220   builtin and then its argument prototype would still apply.  */
12221char dlopen ();
12222int
12223main (void)
12224{
12225return dlopen ();
12226  ;
12227  return 0;
12228}
12229_ACEOF
12230if ac_fn_c_try_link "$LINENO"
12231then :
12232  ac_cv_lib_svld_dlopen=yes
12233else $as_nop
12234  ac_cv_lib_svld_dlopen=no
12235fi
12236rm -f core conftest.err conftest.$ac_objext conftest.beam \
12237    conftest$ac_exeext conftest.$ac_ext
12238LIBS=$ac_check_lib_save_LIBS
12239fi
12240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12241printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12242if test "x$ac_cv_lib_svld_dlopen" = xyes
12243then :
12244  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12245else $as_nop
12246  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12247printf %s "checking for dld_link in -ldld... " >&6; }
12248if test ${ac_cv_lib_dld_dld_link+y}
12249then :
12250  printf %s "(cached) " >&6
12251else $as_nop
12252  ac_check_lib_save_LIBS=$LIBS
12253LIBS="-ldld  $LIBS"
12254cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12255/* end confdefs.h.  */
12256
12257/* Override any GCC internal prototype to avoid an error.
12258   Use char because int might match the return type of a GCC
12259   builtin and then its argument prototype would still apply.  */
12260char dld_link ();
12261int
12262main (void)
12263{
12264return dld_link ();
12265  ;
12266  return 0;
12267}
12268_ACEOF
12269if ac_fn_c_try_link "$LINENO"
12270then :
12271  ac_cv_lib_dld_dld_link=yes
12272else $as_nop
12273  ac_cv_lib_dld_dld_link=no
12274fi
12275rm -f core conftest.err conftest.$ac_objext conftest.beam \
12276    conftest$ac_exeext conftest.$ac_ext
12277LIBS=$ac_check_lib_save_LIBS
12278fi
12279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12280printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12281if test "x$ac_cv_lib_dld_dld_link" = xyes
12282then :
12283  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12284fi
12285
12286
12287fi
12288
12289
12290fi
12291
12292
12293fi
12294
12295
12296fi
12297
12298
12299fi
12300
12301    ;;
12302  esac
12303
12304  if test no = "$lt_cv_dlopen"; then
12305    enable_dlopen=no
12306  else
12307    enable_dlopen=yes
12308  fi
12309
12310  case $lt_cv_dlopen in
12311  dlopen)
12312    save_CPPFLAGS=$CPPFLAGS
12313    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12314
12315    save_LDFLAGS=$LDFLAGS
12316    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12317
12318    save_LIBS=$LIBS
12319    LIBS="$lt_cv_dlopen_libs $LIBS"
12320
12321    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12322printf %s "checking whether a program can dlopen itself... " >&6; }
12323if test ${lt_cv_dlopen_self+y}
12324then :
12325  printf %s "(cached) " >&6
12326else $as_nop
12327  	  if test yes = "$cross_compiling"; then :
12328  lt_cv_dlopen_self=cross
12329else
12330  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12331  lt_status=$lt_dlunknown
12332  cat > conftest.$ac_ext <<_LT_EOF
12333#line $LINENO "configure"
12334#include "confdefs.h"
12335
12336#if HAVE_DLFCN_H
12337#include <dlfcn.h>
12338#endif
12339
12340#include <stdio.h>
12341
12342#ifdef RTLD_GLOBAL
12343#  define LT_DLGLOBAL		RTLD_GLOBAL
12344#else
12345#  ifdef DL_GLOBAL
12346#    define LT_DLGLOBAL		DL_GLOBAL
12347#  else
12348#    define LT_DLGLOBAL		0
12349#  endif
12350#endif
12351
12352/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12353   find out it does not work in some platform. */
12354#ifndef LT_DLLAZY_OR_NOW
12355#  ifdef RTLD_LAZY
12356#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12357#  else
12358#    ifdef DL_LAZY
12359#      define LT_DLLAZY_OR_NOW		DL_LAZY
12360#    else
12361#      ifdef RTLD_NOW
12362#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12363#      else
12364#        ifdef DL_NOW
12365#          define LT_DLLAZY_OR_NOW	DL_NOW
12366#        else
12367#          define LT_DLLAZY_OR_NOW	0
12368#        endif
12369#      endif
12370#    endif
12371#  endif
12372#endif
12373
12374/* When -fvisibility=hidden is used, assume the code has been annotated
12375   correspondingly for the symbols needed.  */
12376#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12377int fnord () __attribute__((visibility("default")));
12378#endif
12379
12380int fnord () { return 42; }
12381int main ()
12382{
12383  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12384  int status = $lt_dlunknown;
12385
12386  if (self)
12387    {
12388      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12389      else
12390        {
12391	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12392          else puts (dlerror ());
12393	}
12394      /* dlclose (self); */
12395    }
12396  else
12397    puts (dlerror ());
12398
12399  return status;
12400}
12401_LT_EOF
12402  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12403  (eval $ac_link) 2>&5
12404  ac_status=$?
12405  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12406  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12407    (./conftest; exit; ) >&5 2>/dev/null
12408    lt_status=$?
12409    case x$lt_status in
12410      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12411      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12412      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12413    esac
12414  else :
12415    # compilation failed
12416    lt_cv_dlopen_self=no
12417  fi
12418fi
12419rm -fr conftest*
12420
12421
12422fi
12423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12424printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12425
12426    if test yes = "$lt_cv_dlopen_self"; then
12427      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12428      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12429printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12430if test ${lt_cv_dlopen_self_static+y}
12431then :
12432  printf %s "(cached) " >&6
12433else $as_nop
12434  	  if test yes = "$cross_compiling"; then :
12435  lt_cv_dlopen_self_static=cross
12436else
12437  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12438  lt_status=$lt_dlunknown
12439  cat > conftest.$ac_ext <<_LT_EOF
12440#line $LINENO "configure"
12441#include "confdefs.h"
12442
12443#if HAVE_DLFCN_H
12444#include <dlfcn.h>
12445#endif
12446
12447#include <stdio.h>
12448
12449#ifdef RTLD_GLOBAL
12450#  define LT_DLGLOBAL		RTLD_GLOBAL
12451#else
12452#  ifdef DL_GLOBAL
12453#    define LT_DLGLOBAL		DL_GLOBAL
12454#  else
12455#    define LT_DLGLOBAL		0
12456#  endif
12457#endif
12458
12459/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12460   find out it does not work in some platform. */
12461#ifndef LT_DLLAZY_OR_NOW
12462#  ifdef RTLD_LAZY
12463#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12464#  else
12465#    ifdef DL_LAZY
12466#      define LT_DLLAZY_OR_NOW		DL_LAZY
12467#    else
12468#      ifdef RTLD_NOW
12469#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12470#      else
12471#        ifdef DL_NOW
12472#          define LT_DLLAZY_OR_NOW	DL_NOW
12473#        else
12474#          define LT_DLLAZY_OR_NOW	0
12475#        endif
12476#      endif
12477#    endif
12478#  endif
12479#endif
12480
12481/* When -fvisibility=hidden is used, assume the code has been annotated
12482   correspondingly for the symbols needed.  */
12483#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12484int fnord () __attribute__((visibility("default")));
12485#endif
12486
12487int fnord () { return 42; }
12488int main ()
12489{
12490  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12491  int status = $lt_dlunknown;
12492
12493  if (self)
12494    {
12495      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12496      else
12497        {
12498	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12499          else puts (dlerror ());
12500	}
12501      /* dlclose (self); */
12502    }
12503  else
12504    puts (dlerror ());
12505
12506  return status;
12507}
12508_LT_EOF
12509  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12510  (eval $ac_link) 2>&5
12511  ac_status=$?
12512  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12513  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12514    (./conftest; exit; ) >&5 2>/dev/null
12515    lt_status=$?
12516    case x$lt_status in
12517      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12518      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12519      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12520    esac
12521  else :
12522    # compilation failed
12523    lt_cv_dlopen_self_static=no
12524  fi
12525fi
12526rm -fr conftest*
12527
12528
12529fi
12530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12531printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12532    fi
12533
12534    CPPFLAGS=$save_CPPFLAGS
12535    LDFLAGS=$save_LDFLAGS
12536    LIBS=$save_LIBS
12537    ;;
12538  esac
12539
12540  case $lt_cv_dlopen_self in
12541  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12542  *) enable_dlopen_self=unknown ;;
12543  esac
12544
12545  case $lt_cv_dlopen_self_static in
12546  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12547  *) enable_dlopen_self_static=unknown ;;
12548  esac
12549fi
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567striplib=
12568old_striplib=
12569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12570printf %s "checking whether stripping libraries is possible... " >&6; }
12571if test -z "$STRIP"; then
12572  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12573printf "%s\n" "no" >&6; }
12574else
12575  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12576    old_striplib="$STRIP --strip-debug"
12577    striplib="$STRIP --strip-unneeded"
12578    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12579printf "%s\n" "yes" >&6; }
12580  else
12581    case $host_os in
12582    darwin*)
12583      # FIXME - insert some real tests, host_os isn't really good enough
12584      striplib="$STRIP -x"
12585      old_striplib="$STRIP -S"
12586      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12587printf "%s\n" "yes" >&6; }
12588      ;;
12589    freebsd*)
12590      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12591        old_striplib="$STRIP --strip-debug"
12592        striplib="$STRIP --strip-unneeded"
12593        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12594printf "%s\n" "yes" >&6; }
12595      else
12596        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12597printf "%s\n" "no" >&6; }
12598      fi
12599      ;;
12600    *)
12601      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12602printf "%s\n" "no" >&6; }
12603      ;;
12604    esac
12605  fi
12606fi
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619  # Report what library types will actually be built
12620  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12621printf %s "checking if libtool supports shared libraries... " >&6; }
12622  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12623printf "%s\n" "$can_build_shared" >&6; }
12624
12625  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12626printf %s "checking whether to build shared libraries... " >&6; }
12627  test no = "$can_build_shared" && enable_shared=no
12628
12629  # On AIX, shared libraries and static libraries use the same namespace, and
12630  # are all built from PIC.
12631  case $host_os in
12632  aix3*)
12633    test yes = "$enable_shared" && enable_static=no
12634    if test -n "$RANLIB"; then
12635      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12636      postinstall_cmds='$RANLIB $lib'
12637    fi
12638    ;;
12639
12640  aix[4-9]*)
12641    if test ia64 != "$host_cpu"; then
12642      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12643      yes,aix,yes) ;;			# shared object as lib.so file only
12644      yes,svr4,*) ;;			# shared object as lib.so archive member only
12645      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12646      esac
12647    fi
12648    ;;
12649  esac
12650  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12651printf "%s\n" "$enable_shared" >&6; }
12652
12653  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12654printf %s "checking whether to build static libraries... " >&6; }
12655  # Make sure either enable_shared or enable_static is yes.
12656  test yes = "$enable_shared" || enable_static=yes
12657  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12658printf "%s\n" "$enable_static" >&6; }
12659
12660
12661
12662
12663fi
12664ac_ext=c
12665ac_cpp='$CPP $CPPFLAGS'
12666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12668ac_compiler_gnu=$ac_cv_c_compiler_gnu
12669
12670CC=$lt_save_CC
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686        ac_config_commands="$ac_config_commands libtool"
12687
12688
12689
12690
12691# Only expand once:
12692
12693
12694
12695# Require X.Org macros 1.8 or later for AC_PROG_INSTALL
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12709printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12710if test ${ac_cv_c_undeclared_builtin_options+y}
12711then :
12712  printf %s "(cached) " >&6
12713else $as_nop
12714  ac_save_CFLAGS=$CFLAGS
12715   ac_cv_c_undeclared_builtin_options='cannot detect'
12716   for ac_arg in '' -fno-builtin; do
12717     CFLAGS="$ac_save_CFLAGS $ac_arg"
12718     # This test program should *not* compile successfully.
12719     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12720/* end confdefs.h.  */
12721
12722int
12723main (void)
12724{
12725(void) strchr;
12726  ;
12727  return 0;
12728}
12729_ACEOF
12730if ac_fn_c_try_compile "$LINENO"
12731then :
12732
12733else $as_nop
12734  # This test program should compile successfully.
12735        # No library function is consistently available on
12736        # freestanding implementations, so test against a dummy
12737        # declaration.  Include always-available headers on the
12738        # off chance that they somehow elicit warnings.
12739        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740/* end confdefs.h.  */
12741#include <float.h>
12742#include <limits.h>
12743#include <stdarg.h>
12744#include <stddef.h>
12745extern void ac_decl (int, char *);
12746
12747int
12748main (void)
12749{
12750(void) ac_decl (0, (char *) 0);
12751  (void) ac_decl;
12752
12753  ;
12754  return 0;
12755}
12756_ACEOF
12757if ac_fn_c_try_compile "$LINENO"
12758then :
12759  if test x"$ac_arg" = x
12760then :
12761  ac_cv_c_undeclared_builtin_options='none needed'
12762else $as_nop
12763  ac_cv_c_undeclared_builtin_options=$ac_arg
12764fi
12765          break
12766fi
12767rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12768fi
12769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12770    done
12771    CFLAGS=$ac_save_CFLAGS
12772
12773fi
12774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12775printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12776  case $ac_cv_c_undeclared_builtin_options in #(
12777  'cannot detect') :
12778    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12779printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12780as_fn_error $? "cannot make $CC report undeclared builtins
12781See \`config.log' for more details" "$LINENO" 5; } ;; #(
12782  'none needed') :
12783    ac_c_undeclared_builtin_options='' ;; #(
12784  *) :
12785    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12786esac
12787
12788
12789
12790
12791
12792ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12793if test "x$ac_cv_have_decl___clang__" = xyes
12794then :
12795  CLANGCC="yes"
12796else $as_nop
12797  CLANGCC="no"
12798fi
12799ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12800if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
12801then :
12802  INTELCC="yes"
12803else $as_nop
12804  INTELCC="no"
12805fi
12806ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12807if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
12808then :
12809  SUNCC="yes"
12810else $as_nop
12811  SUNCC="no"
12812fi
12813
12814
12815
12816
12817
12818
12819
12820
12821if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12822	if test -n "$ac_tool_prefix"; then
12823  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12824set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12826printf %s "checking for $ac_word... " >&6; }
12827if test ${ac_cv_path_PKG_CONFIG+y}
12828then :
12829  printf %s "(cached) " >&6
12830else $as_nop
12831  case $PKG_CONFIG in
12832  [\\/]* | ?:[\\/]*)
12833  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12834  ;;
12835  *)
12836  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12837for as_dir in $PATH
12838do
12839  IFS=$as_save_IFS
12840  case $as_dir in #(((
12841    '') as_dir=./ ;;
12842    */) ;;
12843    *) as_dir=$as_dir/ ;;
12844  esac
12845    for ac_exec_ext in '' $ac_executable_extensions; do
12846  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12847    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12848    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12849    break 2
12850  fi
12851done
12852  done
12853IFS=$as_save_IFS
12854
12855  ;;
12856esac
12857fi
12858PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12859if test -n "$PKG_CONFIG"; then
12860  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12861printf "%s\n" "$PKG_CONFIG" >&6; }
12862else
12863  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12864printf "%s\n" "no" >&6; }
12865fi
12866
12867
12868fi
12869if test -z "$ac_cv_path_PKG_CONFIG"; then
12870  ac_pt_PKG_CONFIG=$PKG_CONFIG
12871  # Extract the first word of "pkg-config", so it can be a program name with args.
12872set dummy pkg-config; ac_word=$2
12873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12874printf %s "checking for $ac_word... " >&6; }
12875if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12876then :
12877  printf %s "(cached) " >&6
12878else $as_nop
12879  case $ac_pt_PKG_CONFIG in
12880  [\\/]* | ?:[\\/]*)
12881  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12882  ;;
12883  *)
12884  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12885for as_dir in $PATH
12886do
12887  IFS=$as_save_IFS
12888  case $as_dir in #(((
12889    '') as_dir=./ ;;
12890    */) ;;
12891    *) as_dir=$as_dir/ ;;
12892  esac
12893    for ac_exec_ext in '' $ac_executable_extensions; do
12894  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12895    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12896    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12897    break 2
12898  fi
12899done
12900  done
12901IFS=$as_save_IFS
12902
12903  ;;
12904esac
12905fi
12906ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12907if test -n "$ac_pt_PKG_CONFIG"; then
12908  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12909printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
12910else
12911  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12912printf "%s\n" "no" >&6; }
12913fi
12914
12915  if test "x$ac_pt_PKG_CONFIG" = x; then
12916    PKG_CONFIG=""
12917  else
12918    case $cross_compiling:$ac_tool_warned in
12919yes:)
12920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12921printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12922ac_tool_warned=yes ;;
12923esac
12924    PKG_CONFIG=$ac_pt_PKG_CONFIG
12925  fi
12926else
12927  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12928fi
12929
12930fi
12931if test -n "$PKG_CONFIG"; then
12932	_pkg_min_version=0.9.0
12933	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12934printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12935	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12936		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12937printf "%s\n" "yes" >&6; }
12938	else
12939		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12940printf "%s\n" "no" >&6; }
12941		PKG_CONFIG=""
12942	fi
12943fi
12944
12945
12946
12947
12948
12949# Check whether --enable-selective-werror was given.
12950if test ${enable_selective_werror+y}
12951then :
12952  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12953else $as_nop
12954  SELECTIVE_WERROR=yes
12955fi
12956
12957
12958
12959
12960
12961# -v is too short to test reliably with XORG_TESTSET_CFLAG
12962if test "x$SUNCC" = "xyes"; then
12963    BASE_CFLAGS="-v"
12964else
12965    BASE_CFLAGS=""
12966fi
12967
12968# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982xorg_testset_save_CFLAGS="$CFLAGS"
12983
12984if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12985	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12986	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12987printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12988if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12989then :
12990  printf %s "(cached) " >&6
12991else $as_nop
12992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12993/* end confdefs.h.  */
12994int i;
12995_ACEOF
12996if ac_fn_c_try_compile "$LINENO"
12997then :
12998  xorg_cv_cc_flag_unknown_warning_option=yes
12999else $as_nop
13000  xorg_cv_cc_flag_unknown_warning_option=no
13001fi
13002rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13003fi
13004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13005printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13006	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13007	CFLAGS="$xorg_testset_save_CFLAGS"
13008fi
13009
13010if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13011	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13012		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13013	fi
13014	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13015	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13016printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13017if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13018then :
13019  printf %s "(cached) " >&6
13020else $as_nop
13021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13022/* end confdefs.h.  */
13023int i;
13024_ACEOF
13025if ac_fn_c_try_compile "$LINENO"
13026then :
13027  xorg_cv_cc_flag_unused_command_line_argument=yes
13028else $as_nop
13029  xorg_cv_cc_flag_unused_command_line_argument=no
13030fi
13031rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13032fi
13033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13034printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13035	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13036	CFLAGS="$xorg_testset_save_CFLAGS"
13037fi
13038
13039found="no"
13040
13041	if test $found = "no" ; then
13042		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13043			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13044		fi
13045
13046		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13047			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13048		fi
13049
13050		CFLAGS="$CFLAGS -Wall"
13051
13052		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13053printf %s "checking if $CC supports -Wall... " >&6; }
13054		cacheid=xorg_cv_cc_flag__Wall
13055		if eval test \${$cacheid+y}
13056then :
13057  printf %s "(cached) " >&6
13058else $as_nop
13059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13060/* end confdefs.h.  */
13061int i;
13062int
13063main (void)
13064{
13065
13066  ;
13067  return 0;
13068}
13069_ACEOF
13070if ac_fn_c_try_link "$LINENO"
13071then :
13072  eval $cacheid=yes
13073else $as_nop
13074  eval $cacheid=no
13075fi
13076rm -f core conftest.err conftest.$ac_objext conftest.beam \
13077    conftest$ac_exeext conftest.$ac_ext
13078fi
13079
13080
13081		CFLAGS="$xorg_testset_save_CFLAGS"
13082
13083		eval supported=\$$cacheid
13084		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13085printf "%s\n" "$supported" >&6; }
13086		if test "$supported" = "yes" ; then
13087			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13088			found="yes"
13089		fi
13090	fi
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106xorg_testset_save_CFLAGS="$CFLAGS"
13107
13108if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13109	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13110	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13111printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13112if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13113then :
13114  printf %s "(cached) " >&6
13115else $as_nop
13116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117/* end confdefs.h.  */
13118int i;
13119_ACEOF
13120if ac_fn_c_try_compile "$LINENO"
13121then :
13122  xorg_cv_cc_flag_unknown_warning_option=yes
13123else $as_nop
13124  xorg_cv_cc_flag_unknown_warning_option=no
13125fi
13126rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13127fi
13128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13129printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13130	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13131	CFLAGS="$xorg_testset_save_CFLAGS"
13132fi
13133
13134if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13135	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13136		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13137	fi
13138	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13139	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13140printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13141if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13142then :
13143  printf %s "(cached) " >&6
13144else $as_nop
13145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13146/* end confdefs.h.  */
13147int i;
13148_ACEOF
13149if ac_fn_c_try_compile "$LINENO"
13150then :
13151  xorg_cv_cc_flag_unused_command_line_argument=yes
13152else $as_nop
13153  xorg_cv_cc_flag_unused_command_line_argument=no
13154fi
13155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13156fi
13157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13158printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13159	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13160	CFLAGS="$xorg_testset_save_CFLAGS"
13161fi
13162
13163found="no"
13164
13165	if test $found = "no" ; then
13166		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13167			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13168		fi
13169
13170		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13171			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13172		fi
13173
13174		CFLAGS="$CFLAGS -Wpointer-arith"
13175
13176		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13177printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13178		cacheid=xorg_cv_cc_flag__Wpointer_arith
13179		if eval test \${$cacheid+y}
13180then :
13181  printf %s "(cached) " >&6
13182else $as_nop
13183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13184/* end confdefs.h.  */
13185int i;
13186int
13187main (void)
13188{
13189
13190  ;
13191  return 0;
13192}
13193_ACEOF
13194if ac_fn_c_try_link "$LINENO"
13195then :
13196  eval $cacheid=yes
13197else $as_nop
13198  eval $cacheid=no
13199fi
13200rm -f core conftest.err conftest.$ac_objext conftest.beam \
13201    conftest$ac_exeext conftest.$ac_ext
13202fi
13203
13204
13205		CFLAGS="$xorg_testset_save_CFLAGS"
13206
13207		eval supported=\$$cacheid
13208		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13209printf "%s\n" "$supported" >&6; }
13210		if test "$supported" = "yes" ; then
13211			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13212			found="yes"
13213		fi
13214	fi
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230xorg_testset_save_CFLAGS="$CFLAGS"
13231
13232if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13233	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13234	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13235printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13236if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13237then :
13238  printf %s "(cached) " >&6
13239else $as_nop
13240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13241/* end confdefs.h.  */
13242int i;
13243_ACEOF
13244if ac_fn_c_try_compile "$LINENO"
13245then :
13246  xorg_cv_cc_flag_unknown_warning_option=yes
13247else $as_nop
13248  xorg_cv_cc_flag_unknown_warning_option=no
13249fi
13250rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13251fi
13252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13253printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13254	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13255	CFLAGS="$xorg_testset_save_CFLAGS"
13256fi
13257
13258if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13259	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13260		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13261	fi
13262	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13263	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13264printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13265if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13266then :
13267  printf %s "(cached) " >&6
13268else $as_nop
13269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13270/* end confdefs.h.  */
13271int i;
13272_ACEOF
13273if ac_fn_c_try_compile "$LINENO"
13274then :
13275  xorg_cv_cc_flag_unused_command_line_argument=yes
13276else $as_nop
13277  xorg_cv_cc_flag_unused_command_line_argument=no
13278fi
13279rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13280fi
13281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13282printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13283	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13284	CFLAGS="$xorg_testset_save_CFLAGS"
13285fi
13286
13287found="no"
13288
13289	if test $found = "no" ; then
13290		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13291			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13292		fi
13293
13294		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13295			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13296		fi
13297
13298		CFLAGS="$CFLAGS -Wmissing-declarations"
13299
13300		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13301printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13302		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13303		if eval test \${$cacheid+y}
13304then :
13305  printf %s "(cached) " >&6
13306else $as_nop
13307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13308/* end confdefs.h.  */
13309int i;
13310int
13311main (void)
13312{
13313
13314  ;
13315  return 0;
13316}
13317_ACEOF
13318if ac_fn_c_try_link "$LINENO"
13319then :
13320  eval $cacheid=yes
13321else $as_nop
13322  eval $cacheid=no
13323fi
13324rm -f core conftest.err conftest.$ac_objext conftest.beam \
13325    conftest$ac_exeext conftest.$ac_ext
13326fi
13327
13328
13329		CFLAGS="$xorg_testset_save_CFLAGS"
13330
13331		eval supported=\$$cacheid
13332		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13333printf "%s\n" "$supported" >&6; }
13334		if test "$supported" = "yes" ; then
13335			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13336			found="yes"
13337		fi
13338	fi
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354xorg_testset_save_CFLAGS="$CFLAGS"
13355
13356if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13357	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13358	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13359printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13360if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13361then :
13362  printf %s "(cached) " >&6
13363else $as_nop
13364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13365/* end confdefs.h.  */
13366int i;
13367_ACEOF
13368if ac_fn_c_try_compile "$LINENO"
13369then :
13370  xorg_cv_cc_flag_unknown_warning_option=yes
13371else $as_nop
13372  xorg_cv_cc_flag_unknown_warning_option=no
13373fi
13374rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13375fi
13376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13377printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13378	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13379	CFLAGS="$xorg_testset_save_CFLAGS"
13380fi
13381
13382if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13383	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13384		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13385	fi
13386	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13387	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13388printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13389if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13390then :
13391  printf %s "(cached) " >&6
13392else $as_nop
13393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13394/* end confdefs.h.  */
13395int i;
13396_ACEOF
13397if ac_fn_c_try_compile "$LINENO"
13398then :
13399  xorg_cv_cc_flag_unused_command_line_argument=yes
13400else $as_nop
13401  xorg_cv_cc_flag_unused_command_line_argument=no
13402fi
13403rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13404fi
13405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13406printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13407	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13408	CFLAGS="$xorg_testset_save_CFLAGS"
13409fi
13410
13411found="no"
13412
13413	if test $found = "no" ; then
13414		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13415			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13416		fi
13417
13418		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13419			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13420		fi
13421
13422		CFLAGS="$CFLAGS -Wformat=2"
13423
13424		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13425printf %s "checking if $CC supports -Wformat=2... " >&6; }
13426		cacheid=xorg_cv_cc_flag__Wformat_2
13427		if eval test \${$cacheid+y}
13428then :
13429  printf %s "(cached) " >&6
13430else $as_nop
13431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13432/* end confdefs.h.  */
13433int i;
13434int
13435main (void)
13436{
13437
13438  ;
13439  return 0;
13440}
13441_ACEOF
13442if ac_fn_c_try_link "$LINENO"
13443then :
13444  eval $cacheid=yes
13445else $as_nop
13446  eval $cacheid=no
13447fi
13448rm -f core conftest.err conftest.$ac_objext conftest.beam \
13449    conftest$ac_exeext conftest.$ac_ext
13450fi
13451
13452
13453		CFLAGS="$xorg_testset_save_CFLAGS"
13454
13455		eval supported=\$$cacheid
13456		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13457printf "%s\n" "$supported" >&6; }
13458		if test "$supported" = "yes" ; then
13459			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13460			found="yes"
13461		fi
13462	fi
13463
13464	if test $found = "no" ; then
13465		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13466			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13467		fi
13468
13469		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13470			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13471		fi
13472
13473		CFLAGS="$CFLAGS -Wformat"
13474
13475		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13476printf %s "checking if $CC supports -Wformat... " >&6; }
13477		cacheid=xorg_cv_cc_flag__Wformat
13478		if eval test \${$cacheid+y}
13479then :
13480  printf %s "(cached) " >&6
13481else $as_nop
13482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13483/* end confdefs.h.  */
13484int i;
13485int
13486main (void)
13487{
13488
13489  ;
13490  return 0;
13491}
13492_ACEOF
13493if ac_fn_c_try_link "$LINENO"
13494then :
13495  eval $cacheid=yes
13496else $as_nop
13497  eval $cacheid=no
13498fi
13499rm -f core conftest.err conftest.$ac_objext conftest.beam \
13500    conftest$ac_exeext conftest.$ac_ext
13501fi
13502
13503
13504		CFLAGS="$xorg_testset_save_CFLAGS"
13505
13506		eval supported=\$$cacheid
13507		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13508printf "%s\n" "$supported" >&6; }
13509		if test "$supported" = "yes" ; then
13510			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13511			found="yes"
13512		fi
13513	fi
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531xorg_testset_save_CFLAGS="$CFLAGS"
13532
13533if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13534	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13535	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13536printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13537if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13538then :
13539  printf %s "(cached) " >&6
13540else $as_nop
13541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13542/* end confdefs.h.  */
13543int i;
13544_ACEOF
13545if ac_fn_c_try_compile "$LINENO"
13546then :
13547  xorg_cv_cc_flag_unknown_warning_option=yes
13548else $as_nop
13549  xorg_cv_cc_flag_unknown_warning_option=no
13550fi
13551rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13552fi
13553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13554printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13555	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13556	CFLAGS="$xorg_testset_save_CFLAGS"
13557fi
13558
13559if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13560	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13561		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13562	fi
13563	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13564	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13565printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13566if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13567then :
13568  printf %s "(cached) " >&6
13569else $as_nop
13570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13571/* end confdefs.h.  */
13572int i;
13573_ACEOF
13574if ac_fn_c_try_compile "$LINENO"
13575then :
13576  xorg_cv_cc_flag_unused_command_line_argument=yes
13577else $as_nop
13578  xorg_cv_cc_flag_unused_command_line_argument=no
13579fi
13580rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13581fi
13582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13583printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13584	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13585	CFLAGS="$xorg_testset_save_CFLAGS"
13586fi
13587
13588found="no"
13589
13590	if test $found = "no" ; then
13591		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13592			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13593		fi
13594
13595		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13596			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13597		fi
13598
13599		CFLAGS="$CFLAGS -Wstrict-prototypes"
13600
13601		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13602printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13603		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13604		if eval test \${$cacheid+y}
13605then :
13606  printf %s "(cached) " >&6
13607else $as_nop
13608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13609/* end confdefs.h.  */
13610int i;
13611int
13612main (void)
13613{
13614
13615  ;
13616  return 0;
13617}
13618_ACEOF
13619if ac_fn_c_try_link "$LINENO"
13620then :
13621  eval $cacheid=yes
13622else $as_nop
13623  eval $cacheid=no
13624fi
13625rm -f core conftest.err conftest.$ac_objext conftest.beam \
13626    conftest$ac_exeext conftest.$ac_ext
13627fi
13628
13629
13630		CFLAGS="$xorg_testset_save_CFLAGS"
13631
13632		eval supported=\$$cacheid
13633		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13634printf "%s\n" "$supported" >&6; }
13635		if test "$supported" = "yes" ; then
13636			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13637			found="yes"
13638		fi
13639	fi
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655xorg_testset_save_CFLAGS="$CFLAGS"
13656
13657if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13658	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13659	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13660printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13661if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13662then :
13663  printf %s "(cached) " >&6
13664else $as_nop
13665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13666/* end confdefs.h.  */
13667int i;
13668_ACEOF
13669if ac_fn_c_try_compile "$LINENO"
13670then :
13671  xorg_cv_cc_flag_unknown_warning_option=yes
13672else $as_nop
13673  xorg_cv_cc_flag_unknown_warning_option=no
13674fi
13675rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13676fi
13677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13678printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13679	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13680	CFLAGS="$xorg_testset_save_CFLAGS"
13681fi
13682
13683if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13684	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13685		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13686	fi
13687	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13688	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13689printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13690if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13691then :
13692  printf %s "(cached) " >&6
13693else $as_nop
13694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13695/* end confdefs.h.  */
13696int i;
13697_ACEOF
13698if ac_fn_c_try_compile "$LINENO"
13699then :
13700  xorg_cv_cc_flag_unused_command_line_argument=yes
13701else $as_nop
13702  xorg_cv_cc_flag_unused_command_line_argument=no
13703fi
13704rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13705fi
13706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13707printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13708	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13709	CFLAGS="$xorg_testset_save_CFLAGS"
13710fi
13711
13712found="no"
13713
13714	if test $found = "no" ; then
13715		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13716			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13717		fi
13718
13719		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13720			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13721		fi
13722
13723		CFLAGS="$CFLAGS -Wmissing-prototypes"
13724
13725		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13726printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13727		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13728		if eval test \${$cacheid+y}
13729then :
13730  printf %s "(cached) " >&6
13731else $as_nop
13732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13733/* end confdefs.h.  */
13734int i;
13735int
13736main (void)
13737{
13738
13739  ;
13740  return 0;
13741}
13742_ACEOF
13743if ac_fn_c_try_link "$LINENO"
13744then :
13745  eval $cacheid=yes
13746else $as_nop
13747  eval $cacheid=no
13748fi
13749rm -f core conftest.err conftest.$ac_objext conftest.beam \
13750    conftest$ac_exeext conftest.$ac_ext
13751fi
13752
13753
13754		CFLAGS="$xorg_testset_save_CFLAGS"
13755
13756		eval supported=\$$cacheid
13757		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13758printf "%s\n" "$supported" >&6; }
13759		if test "$supported" = "yes" ; then
13760			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13761			found="yes"
13762		fi
13763	fi
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779xorg_testset_save_CFLAGS="$CFLAGS"
13780
13781if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13782	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13783	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13784printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13785if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13786then :
13787  printf %s "(cached) " >&6
13788else $as_nop
13789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13790/* end confdefs.h.  */
13791int i;
13792_ACEOF
13793if ac_fn_c_try_compile "$LINENO"
13794then :
13795  xorg_cv_cc_flag_unknown_warning_option=yes
13796else $as_nop
13797  xorg_cv_cc_flag_unknown_warning_option=no
13798fi
13799rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13800fi
13801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13802printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13803	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13804	CFLAGS="$xorg_testset_save_CFLAGS"
13805fi
13806
13807if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13808	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13809		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13810	fi
13811	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13812	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13813printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13814if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13815then :
13816  printf %s "(cached) " >&6
13817else $as_nop
13818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13819/* end confdefs.h.  */
13820int i;
13821_ACEOF
13822if ac_fn_c_try_compile "$LINENO"
13823then :
13824  xorg_cv_cc_flag_unused_command_line_argument=yes
13825else $as_nop
13826  xorg_cv_cc_flag_unused_command_line_argument=no
13827fi
13828rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13829fi
13830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13831printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13832	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13833	CFLAGS="$xorg_testset_save_CFLAGS"
13834fi
13835
13836found="no"
13837
13838	if test $found = "no" ; then
13839		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13840			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13841		fi
13842
13843		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13844			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13845		fi
13846
13847		CFLAGS="$CFLAGS -Wnested-externs"
13848
13849		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13850printf %s "checking if $CC supports -Wnested-externs... " >&6; }
13851		cacheid=xorg_cv_cc_flag__Wnested_externs
13852		if eval test \${$cacheid+y}
13853then :
13854  printf %s "(cached) " >&6
13855else $as_nop
13856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13857/* end confdefs.h.  */
13858int i;
13859int
13860main (void)
13861{
13862
13863  ;
13864  return 0;
13865}
13866_ACEOF
13867if ac_fn_c_try_link "$LINENO"
13868then :
13869  eval $cacheid=yes
13870else $as_nop
13871  eval $cacheid=no
13872fi
13873rm -f core conftest.err conftest.$ac_objext conftest.beam \
13874    conftest$ac_exeext conftest.$ac_ext
13875fi
13876
13877
13878		CFLAGS="$xorg_testset_save_CFLAGS"
13879
13880		eval supported=\$$cacheid
13881		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13882printf "%s\n" "$supported" >&6; }
13883		if test "$supported" = "yes" ; then
13884			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13885			found="yes"
13886		fi
13887	fi
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903xorg_testset_save_CFLAGS="$CFLAGS"
13904
13905if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13906	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13907	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13908printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13909if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13910then :
13911  printf %s "(cached) " >&6
13912else $as_nop
13913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13914/* end confdefs.h.  */
13915int i;
13916_ACEOF
13917if ac_fn_c_try_compile "$LINENO"
13918then :
13919  xorg_cv_cc_flag_unknown_warning_option=yes
13920else $as_nop
13921  xorg_cv_cc_flag_unknown_warning_option=no
13922fi
13923rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13924fi
13925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13926printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13927	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13928	CFLAGS="$xorg_testset_save_CFLAGS"
13929fi
13930
13931if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13932	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13933		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13934	fi
13935	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13936	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13937printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13938if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13939then :
13940  printf %s "(cached) " >&6
13941else $as_nop
13942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13943/* end confdefs.h.  */
13944int i;
13945_ACEOF
13946if ac_fn_c_try_compile "$LINENO"
13947then :
13948  xorg_cv_cc_flag_unused_command_line_argument=yes
13949else $as_nop
13950  xorg_cv_cc_flag_unused_command_line_argument=no
13951fi
13952rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13953fi
13954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13955printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13956	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13957	CFLAGS="$xorg_testset_save_CFLAGS"
13958fi
13959
13960found="no"
13961
13962	if test $found = "no" ; then
13963		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13964			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13965		fi
13966
13967		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13968			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13969		fi
13970
13971		CFLAGS="$CFLAGS -Wbad-function-cast"
13972
13973		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13974printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
13975		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13976		if eval test \${$cacheid+y}
13977then :
13978  printf %s "(cached) " >&6
13979else $as_nop
13980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13981/* end confdefs.h.  */
13982int i;
13983int
13984main (void)
13985{
13986
13987  ;
13988  return 0;
13989}
13990_ACEOF
13991if ac_fn_c_try_link "$LINENO"
13992then :
13993  eval $cacheid=yes
13994else $as_nop
13995  eval $cacheid=no
13996fi
13997rm -f core conftest.err conftest.$ac_objext conftest.beam \
13998    conftest$ac_exeext conftest.$ac_ext
13999fi
14000
14001
14002		CFLAGS="$xorg_testset_save_CFLAGS"
14003
14004		eval supported=\$$cacheid
14005		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14006printf "%s\n" "$supported" >&6; }
14007		if test "$supported" = "yes" ; then
14008			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14009			found="yes"
14010		fi
14011	fi
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027xorg_testset_save_CFLAGS="$CFLAGS"
14028
14029if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14030	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14031	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14032printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14033if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14034then :
14035  printf %s "(cached) " >&6
14036else $as_nop
14037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14038/* end confdefs.h.  */
14039int i;
14040_ACEOF
14041if ac_fn_c_try_compile "$LINENO"
14042then :
14043  xorg_cv_cc_flag_unknown_warning_option=yes
14044else $as_nop
14045  xorg_cv_cc_flag_unknown_warning_option=no
14046fi
14047rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14048fi
14049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14050printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14051	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14052	CFLAGS="$xorg_testset_save_CFLAGS"
14053fi
14054
14055if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14056	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14057		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14058	fi
14059	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14060	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14061printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14062if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14063then :
14064  printf %s "(cached) " >&6
14065else $as_nop
14066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14067/* end confdefs.h.  */
14068int i;
14069_ACEOF
14070if ac_fn_c_try_compile "$LINENO"
14071then :
14072  xorg_cv_cc_flag_unused_command_line_argument=yes
14073else $as_nop
14074  xorg_cv_cc_flag_unused_command_line_argument=no
14075fi
14076rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14077fi
14078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14079printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14080	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14081	CFLAGS="$xorg_testset_save_CFLAGS"
14082fi
14083
14084found="no"
14085
14086	if test $found = "no" ; then
14087		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14088			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14089		fi
14090
14091		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14092			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14093		fi
14094
14095		CFLAGS="$CFLAGS -Wold-style-definition"
14096
14097		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14098printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14099		cacheid=xorg_cv_cc_flag__Wold_style_definition
14100		if eval test \${$cacheid+y}
14101then :
14102  printf %s "(cached) " >&6
14103else $as_nop
14104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14105/* end confdefs.h.  */
14106int i;
14107int
14108main (void)
14109{
14110
14111  ;
14112  return 0;
14113}
14114_ACEOF
14115if ac_fn_c_try_link "$LINENO"
14116then :
14117  eval $cacheid=yes
14118else $as_nop
14119  eval $cacheid=no
14120fi
14121rm -f core conftest.err conftest.$ac_objext conftest.beam \
14122    conftest$ac_exeext conftest.$ac_ext
14123fi
14124
14125
14126		CFLAGS="$xorg_testset_save_CFLAGS"
14127
14128		eval supported=\$$cacheid
14129		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14130printf "%s\n" "$supported" >&6; }
14131		if test "$supported" = "yes" ; then
14132			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14133			found="yes"
14134		fi
14135	fi
14136
14137	if test $found = "no" ; then
14138		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14139			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14140		fi
14141
14142		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14143			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14144		fi
14145
14146		CFLAGS="$CFLAGS -fd"
14147
14148		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14149printf %s "checking if $CC supports -fd... " >&6; }
14150		cacheid=xorg_cv_cc_flag__fd
14151		if eval test \${$cacheid+y}
14152then :
14153  printf %s "(cached) " >&6
14154else $as_nop
14155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14156/* end confdefs.h.  */
14157int i;
14158int
14159main (void)
14160{
14161
14162  ;
14163  return 0;
14164}
14165_ACEOF
14166if ac_fn_c_try_link "$LINENO"
14167then :
14168  eval $cacheid=yes
14169else $as_nop
14170  eval $cacheid=no
14171fi
14172rm -f core conftest.err conftest.$ac_objext conftest.beam \
14173    conftest$ac_exeext conftest.$ac_ext
14174fi
14175
14176
14177		CFLAGS="$xorg_testset_save_CFLAGS"
14178
14179		eval supported=\$$cacheid
14180		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14181printf "%s\n" "$supported" >&6; }
14182		if test "$supported" = "yes" ; then
14183			BASE_CFLAGS="$BASE_CFLAGS -fd"
14184			found="yes"
14185		fi
14186	fi
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202xorg_testset_save_CFLAGS="$CFLAGS"
14203
14204if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14205	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14206	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14207printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14208if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14209then :
14210  printf %s "(cached) " >&6
14211else $as_nop
14212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14213/* end confdefs.h.  */
14214int i;
14215_ACEOF
14216if ac_fn_c_try_compile "$LINENO"
14217then :
14218  xorg_cv_cc_flag_unknown_warning_option=yes
14219else $as_nop
14220  xorg_cv_cc_flag_unknown_warning_option=no
14221fi
14222rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14223fi
14224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14225printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14226	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14227	CFLAGS="$xorg_testset_save_CFLAGS"
14228fi
14229
14230if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14231	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14232		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14233	fi
14234	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14235	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14236printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14237if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14238then :
14239  printf %s "(cached) " >&6
14240else $as_nop
14241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14242/* end confdefs.h.  */
14243int i;
14244_ACEOF
14245if ac_fn_c_try_compile "$LINENO"
14246then :
14247  xorg_cv_cc_flag_unused_command_line_argument=yes
14248else $as_nop
14249  xorg_cv_cc_flag_unused_command_line_argument=no
14250fi
14251rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14252fi
14253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14254printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14255	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14256	CFLAGS="$xorg_testset_save_CFLAGS"
14257fi
14258
14259found="no"
14260
14261	if test $found = "no" ; then
14262		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14263			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14264		fi
14265
14266		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14267			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14268		fi
14269
14270		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14271
14272		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14273printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14274		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14275		if eval test \${$cacheid+y}
14276then :
14277  printf %s "(cached) " >&6
14278else $as_nop
14279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14280/* end confdefs.h.  */
14281int i;
14282int
14283main (void)
14284{
14285
14286  ;
14287  return 0;
14288}
14289_ACEOF
14290if ac_fn_c_try_link "$LINENO"
14291then :
14292  eval $cacheid=yes
14293else $as_nop
14294  eval $cacheid=no
14295fi
14296rm -f core conftest.err conftest.$ac_objext conftest.beam \
14297    conftest$ac_exeext conftest.$ac_ext
14298fi
14299
14300
14301		CFLAGS="$xorg_testset_save_CFLAGS"
14302
14303		eval supported=\$$cacheid
14304		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14305printf "%s\n" "$supported" >&6; }
14306		if test "$supported" = "yes" ; then
14307			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14308			found="yes"
14309		fi
14310	fi
14311
14312
14313
14314
14315
14316# This chunk adds additional warnings that could catch undesired effects.
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330xorg_testset_save_CFLAGS="$CFLAGS"
14331
14332if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14333	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14334	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14335printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14336if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14337then :
14338  printf %s "(cached) " >&6
14339else $as_nop
14340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14341/* end confdefs.h.  */
14342int i;
14343_ACEOF
14344if ac_fn_c_try_compile "$LINENO"
14345then :
14346  xorg_cv_cc_flag_unknown_warning_option=yes
14347else $as_nop
14348  xorg_cv_cc_flag_unknown_warning_option=no
14349fi
14350rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14351fi
14352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14353printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14354	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14355	CFLAGS="$xorg_testset_save_CFLAGS"
14356fi
14357
14358if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14359	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14360		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14361	fi
14362	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14363	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14364printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14365if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14366then :
14367  printf %s "(cached) " >&6
14368else $as_nop
14369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14370/* end confdefs.h.  */
14371int i;
14372_ACEOF
14373if ac_fn_c_try_compile "$LINENO"
14374then :
14375  xorg_cv_cc_flag_unused_command_line_argument=yes
14376else $as_nop
14377  xorg_cv_cc_flag_unused_command_line_argument=no
14378fi
14379rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14380fi
14381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14382printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14383	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14384	CFLAGS="$xorg_testset_save_CFLAGS"
14385fi
14386
14387found="no"
14388
14389	if test $found = "no" ; then
14390		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14391			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14392		fi
14393
14394		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14395			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14396		fi
14397
14398		CFLAGS="$CFLAGS -Wunused"
14399
14400		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14401printf %s "checking if $CC supports -Wunused... " >&6; }
14402		cacheid=xorg_cv_cc_flag__Wunused
14403		if eval test \${$cacheid+y}
14404then :
14405  printf %s "(cached) " >&6
14406else $as_nop
14407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408/* end confdefs.h.  */
14409int i;
14410int
14411main (void)
14412{
14413
14414  ;
14415  return 0;
14416}
14417_ACEOF
14418if ac_fn_c_try_link "$LINENO"
14419then :
14420  eval $cacheid=yes
14421else $as_nop
14422  eval $cacheid=no
14423fi
14424rm -f core conftest.err conftest.$ac_objext conftest.beam \
14425    conftest$ac_exeext conftest.$ac_ext
14426fi
14427
14428
14429		CFLAGS="$xorg_testset_save_CFLAGS"
14430
14431		eval supported=\$$cacheid
14432		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14433printf "%s\n" "$supported" >&6; }
14434		if test "$supported" = "yes" ; then
14435			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14436			found="yes"
14437		fi
14438	fi
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454xorg_testset_save_CFLAGS="$CFLAGS"
14455
14456if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14457	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14458	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14459printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14460if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14461then :
14462  printf %s "(cached) " >&6
14463else $as_nop
14464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14465/* end confdefs.h.  */
14466int i;
14467_ACEOF
14468if ac_fn_c_try_compile "$LINENO"
14469then :
14470  xorg_cv_cc_flag_unknown_warning_option=yes
14471else $as_nop
14472  xorg_cv_cc_flag_unknown_warning_option=no
14473fi
14474rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14475fi
14476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14477printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14478	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14479	CFLAGS="$xorg_testset_save_CFLAGS"
14480fi
14481
14482if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14483	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14484		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14485	fi
14486	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14487	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14488printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14489if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14490then :
14491  printf %s "(cached) " >&6
14492else $as_nop
14493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14494/* end confdefs.h.  */
14495int i;
14496_ACEOF
14497if ac_fn_c_try_compile "$LINENO"
14498then :
14499  xorg_cv_cc_flag_unused_command_line_argument=yes
14500else $as_nop
14501  xorg_cv_cc_flag_unused_command_line_argument=no
14502fi
14503rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14504fi
14505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14506printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14507	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14508	CFLAGS="$xorg_testset_save_CFLAGS"
14509fi
14510
14511found="no"
14512
14513	if test $found = "no" ; then
14514		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14515			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14516		fi
14517
14518		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14519			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14520		fi
14521
14522		CFLAGS="$CFLAGS -Wuninitialized"
14523
14524		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14525printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14526		cacheid=xorg_cv_cc_flag__Wuninitialized
14527		if eval test \${$cacheid+y}
14528then :
14529  printf %s "(cached) " >&6
14530else $as_nop
14531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14532/* end confdefs.h.  */
14533int i;
14534int
14535main (void)
14536{
14537
14538  ;
14539  return 0;
14540}
14541_ACEOF
14542if ac_fn_c_try_link "$LINENO"
14543then :
14544  eval $cacheid=yes
14545else $as_nop
14546  eval $cacheid=no
14547fi
14548rm -f core conftest.err conftest.$ac_objext conftest.beam \
14549    conftest$ac_exeext conftest.$ac_ext
14550fi
14551
14552
14553		CFLAGS="$xorg_testset_save_CFLAGS"
14554
14555		eval supported=\$$cacheid
14556		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14557printf "%s\n" "$supported" >&6; }
14558		if test "$supported" = "yes" ; then
14559			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14560			found="yes"
14561		fi
14562	fi
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578xorg_testset_save_CFLAGS="$CFLAGS"
14579
14580if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14581	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14582	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14583printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14584if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14585then :
14586  printf %s "(cached) " >&6
14587else $as_nop
14588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14589/* end confdefs.h.  */
14590int i;
14591_ACEOF
14592if ac_fn_c_try_compile "$LINENO"
14593then :
14594  xorg_cv_cc_flag_unknown_warning_option=yes
14595else $as_nop
14596  xorg_cv_cc_flag_unknown_warning_option=no
14597fi
14598rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14599fi
14600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14601printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14602	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14603	CFLAGS="$xorg_testset_save_CFLAGS"
14604fi
14605
14606if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14607	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14608		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14609	fi
14610	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14611	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14612printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14613if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14614then :
14615  printf %s "(cached) " >&6
14616else $as_nop
14617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14618/* end confdefs.h.  */
14619int i;
14620_ACEOF
14621if ac_fn_c_try_compile "$LINENO"
14622then :
14623  xorg_cv_cc_flag_unused_command_line_argument=yes
14624else $as_nop
14625  xorg_cv_cc_flag_unused_command_line_argument=no
14626fi
14627rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14628fi
14629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14630printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14631	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14632	CFLAGS="$xorg_testset_save_CFLAGS"
14633fi
14634
14635found="no"
14636
14637	if test $found = "no" ; then
14638		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14639			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14640		fi
14641
14642		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14643			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14644		fi
14645
14646		CFLAGS="$CFLAGS -Wshadow"
14647
14648		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14649printf %s "checking if $CC supports -Wshadow... " >&6; }
14650		cacheid=xorg_cv_cc_flag__Wshadow
14651		if eval test \${$cacheid+y}
14652then :
14653  printf %s "(cached) " >&6
14654else $as_nop
14655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14656/* end confdefs.h.  */
14657int i;
14658int
14659main (void)
14660{
14661
14662  ;
14663  return 0;
14664}
14665_ACEOF
14666if ac_fn_c_try_link "$LINENO"
14667then :
14668  eval $cacheid=yes
14669else $as_nop
14670  eval $cacheid=no
14671fi
14672rm -f core conftest.err conftest.$ac_objext conftest.beam \
14673    conftest$ac_exeext conftest.$ac_ext
14674fi
14675
14676
14677		CFLAGS="$xorg_testset_save_CFLAGS"
14678
14679		eval supported=\$$cacheid
14680		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14681printf "%s\n" "$supported" >&6; }
14682		if test "$supported" = "yes" ; then
14683			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14684			found="yes"
14685		fi
14686	fi
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702xorg_testset_save_CFLAGS="$CFLAGS"
14703
14704if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14705	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14706	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14707printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14708if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14709then :
14710  printf %s "(cached) " >&6
14711else $as_nop
14712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14713/* end confdefs.h.  */
14714int i;
14715_ACEOF
14716if ac_fn_c_try_compile "$LINENO"
14717then :
14718  xorg_cv_cc_flag_unknown_warning_option=yes
14719else $as_nop
14720  xorg_cv_cc_flag_unknown_warning_option=no
14721fi
14722rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14723fi
14724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14725printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14726	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14727	CFLAGS="$xorg_testset_save_CFLAGS"
14728fi
14729
14730if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14731	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14732		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14733	fi
14734	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14735	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14736printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14737if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14738then :
14739  printf %s "(cached) " >&6
14740else $as_nop
14741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14742/* end confdefs.h.  */
14743int i;
14744_ACEOF
14745if ac_fn_c_try_compile "$LINENO"
14746then :
14747  xorg_cv_cc_flag_unused_command_line_argument=yes
14748else $as_nop
14749  xorg_cv_cc_flag_unused_command_line_argument=no
14750fi
14751rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14752fi
14753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14754printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14755	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14756	CFLAGS="$xorg_testset_save_CFLAGS"
14757fi
14758
14759found="no"
14760
14761	if test $found = "no" ; then
14762		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14763			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14764		fi
14765
14766		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14767			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14768		fi
14769
14770		CFLAGS="$CFLAGS -Wmissing-noreturn"
14771
14772		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14773printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14774		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14775		if eval test \${$cacheid+y}
14776then :
14777  printf %s "(cached) " >&6
14778else $as_nop
14779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14780/* end confdefs.h.  */
14781int i;
14782int
14783main (void)
14784{
14785
14786  ;
14787  return 0;
14788}
14789_ACEOF
14790if ac_fn_c_try_link "$LINENO"
14791then :
14792  eval $cacheid=yes
14793else $as_nop
14794  eval $cacheid=no
14795fi
14796rm -f core conftest.err conftest.$ac_objext conftest.beam \
14797    conftest$ac_exeext conftest.$ac_ext
14798fi
14799
14800
14801		CFLAGS="$xorg_testset_save_CFLAGS"
14802
14803		eval supported=\$$cacheid
14804		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14805printf "%s\n" "$supported" >&6; }
14806		if test "$supported" = "yes" ; then
14807			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14808			found="yes"
14809		fi
14810	fi
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826xorg_testset_save_CFLAGS="$CFLAGS"
14827
14828if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14829	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14830	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14831printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14832if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14833then :
14834  printf %s "(cached) " >&6
14835else $as_nop
14836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14837/* end confdefs.h.  */
14838int i;
14839_ACEOF
14840if ac_fn_c_try_compile "$LINENO"
14841then :
14842  xorg_cv_cc_flag_unknown_warning_option=yes
14843else $as_nop
14844  xorg_cv_cc_flag_unknown_warning_option=no
14845fi
14846rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14847fi
14848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14849printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14850	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14851	CFLAGS="$xorg_testset_save_CFLAGS"
14852fi
14853
14854if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14855	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14856		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14857	fi
14858	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14859	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14860printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14861if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14862then :
14863  printf %s "(cached) " >&6
14864else $as_nop
14865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14866/* end confdefs.h.  */
14867int i;
14868_ACEOF
14869if ac_fn_c_try_compile "$LINENO"
14870then :
14871  xorg_cv_cc_flag_unused_command_line_argument=yes
14872else $as_nop
14873  xorg_cv_cc_flag_unused_command_line_argument=no
14874fi
14875rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14876fi
14877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14878printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14879	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14880	CFLAGS="$xorg_testset_save_CFLAGS"
14881fi
14882
14883found="no"
14884
14885	if test $found = "no" ; then
14886		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14887			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14888		fi
14889
14890		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14891			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14892		fi
14893
14894		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14895
14896		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14897printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14898		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14899		if eval test \${$cacheid+y}
14900then :
14901  printf %s "(cached) " >&6
14902else $as_nop
14903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14904/* end confdefs.h.  */
14905int i;
14906int
14907main (void)
14908{
14909
14910  ;
14911  return 0;
14912}
14913_ACEOF
14914if ac_fn_c_try_link "$LINENO"
14915then :
14916  eval $cacheid=yes
14917else $as_nop
14918  eval $cacheid=no
14919fi
14920rm -f core conftest.err conftest.$ac_objext conftest.beam \
14921    conftest$ac_exeext conftest.$ac_ext
14922fi
14923
14924
14925		CFLAGS="$xorg_testset_save_CFLAGS"
14926
14927		eval supported=\$$cacheid
14928		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14929printf "%s\n" "$supported" >&6; }
14930		if test "$supported" = "yes" ; then
14931			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14932			found="yes"
14933		fi
14934	fi
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950xorg_testset_save_CFLAGS="$CFLAGS"
14951
14952if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14953	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14954	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14955printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14956if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14957then :
14958  printf %s "(cached) " >&6
14959else $as_nop
14960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14961/* end confdefs.h.  */
14962int i;
14963_ACEOF
14964if ac_fn_c_try_compile "$LINENO"
14965then :
14966  xorg_cv_cc_flag_unknown_warning_option=yes
14967else $as_nop
14968  xorg_cv_cc_flag_unknown_warning_option=no
14969fi
14970rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14971fi
14972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14973printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14974	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14975	CFLAGS="$xorg_testset_save_CFLAGS"
14976fi
14977
14978if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14979	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14980		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14981	fi
14982	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14983	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14984printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14985if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14986then :
14987  printf %s "(cached) " >&6
14988else $as_nop
14989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14990/* end confdefs.h.  */
14991int i;
14992_ACEOF
14993if ac_fn_c_try_compile "$LINENO"
14994then :
14995  xorg_cv_cc_flag_unused_command_line_argument=yes
14996else $as_nop
14997  xorg_cv_cc_flag_unused_command_line_argument=no
14998fi
14999rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15000fi
15001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15002printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15003	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15004	CFLAGS="$xorg_testset_save_CFLAGS"
15005fi
15006
15007found="no"
15008
15009	if test $found = "no" ; then
15010		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15011			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15012		fi
15013
15014		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15015			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15016		fi
15017
15018		CFLAGS="$CFLAGS -Wredundant-decls"
15019
15020		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15021printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15022		cacheid=xorg_cv_cc_flag__Wredundant_decls
15023		if eval test \${$cacheid+y}
15024then :
15025  printf %s "(cached) " >&6
15026else $as_nop
15027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15028/* end confdefs.h.  */
15029int i;
15030int
15031main (void)
15032{
15033
15034  ;
15035  return 0;
15036}
15037_ACEOF
15038if ac_fn_c_try_link "$LINENO"
15039then :
15040  eval $cacheid=yes
15041else $as_nop
15042  eval $cacheid=no
15043fi
15044rm -f core conftest.err conftest.$ac_objext conftest.beam \
15045    conftest$ac_exeext conftest.$ac_ext
15046fi
15047
15048
15049		CFLAGS="$xorg_testset_save_CFLAGS"
15050
15051		eval supported=\$$cacheid
15052		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15053printf "%s\n" "$supported" >&6; }
15054		if test "$supported" = "yes" ; then
15055			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15056			found="yes"
15057		fi
15058	fi
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074xorg_testset_save_CFLAGS="$CFLAGS"
15075
15076if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15077	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15078	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15079printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15080if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15081then :
15082  printf %s "(cached) " >&6
15083else $as_nop
15084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15085/* end confdefs.h.  */
15086int i;
15087_ACEOF
15088if ac_fn_c_try_compile "$LINENO"
15089then :
15090  xorg_cv_cc_flag_unknown_warning_option=yes
15091else $as_nop
15092  xorg_cv_cc_flag_unknown_warning_option=no
15093fi
15094rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15095fi
15096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15097printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15098	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15099	CFLAGS="$xorg_testset_save_CFLAGS"
15100fi
15101
15102if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15103	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15104		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15105	fi
15106	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15107	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15108printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15109if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15110then :
15111  printf %s "(cached) " >&6
15112else $as_nop
15113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15114/* end confdefs.h.  */
15115int i;
15116_ACEOF
15117if ac_fn_c_try_compile "$LINENO"
15118then :
15119  xorg_cv_cc_flag_unused_command_line_argument=yes
15120else $as_nop
15121  xorg_cv_cc_flag_unused_command_line_argument=no
15122fi
15123rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15124fi
15125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15126printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15127	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15128	CFLAGS="$xorg_testset_save_CFLAGS"
15129fi
15130
15131found="no"
15132
15133	if test $found = "no" ; then
15134		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15135			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15136		fi
15137
15138		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15139			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15140		fi
15141
15142		CFLAGS="$CFLAGS -Wlogical-op"
15143
15144		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15145printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15146		cacheid=xorg_cv_cc_flag__Wlogical_op
15147		if eval test \${$cacheid+y}
15148then :
15149  printf %s "(cached) " >&6
15150else $as_nop
15151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15152/* end confdefs.h.  */
15153int i;
15154int
15155main (void)
15156{
15157
15158  ;
15159  return 0;
15160}
15161_ACEOF
15162if ac_fn_c_try_link "$LINENO"
15163then :
15164  eval $cacheid=yes
15165else $as_nop
15166  eval $cacheid=no
15167fi
15168rm -f core conftest.err conftest.$ac_objext conftest.beam \
15169    conftest$ac_exeext conftest.$ac_ext
15170fi
15171
15172
15173		CFLAGS="$xorg_testset_save_CFLAGS"
15174
15175		eval supported=\$$cacheid
15176		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15177printf "%s\n" "$supported" >&6; }
15178		if test "$supported" = "yes" ; then
15179			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15180			found="yes"
15181		fi
15182	fi
15183
15184
15185
15186# These are currently disabled because they are noisy.  They will be enabled
15187# in the future once the codebase is sufficiently modernized to silence
15188# them.  For now, I don't want them to drown out the other warnings.
15189# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15190# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15191# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15192
15193# Turn some warnings into errors, so we don't accidently get successful builds
15194# when there are problems that should be fixed.
15195
15196if test "x$SELECTIVE_WERROR" = "xyes" ; then
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210xorg_testset_save_CFLAGS="$CFLAGS"
15211
15212if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15213	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15214	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15215printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15216if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15217then :
15218  printf %s "(cached) " >&6
15219else $as_nop
15220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221/* end confdefs.h.  */
15222int i;
15223_ACEOF
15224if ac_fn_c_try_compile "$LINENO"
15225then :
15226  xorg_cv_cc_flag_unknown_warning_option=yes
15227else $as_nop
15228  xorg_cv_cc_flag_unknown_warning_option=no
15229fi
15230rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15231fi
15232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15233printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15234	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15235	CFLAGS="$xorg_testset_save_CFLAGS"
15236fi
15237
15238if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15239	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15240		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15241	fi
15242	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15243	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15244printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15245if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15246then :
15247  printf %s "(cached) " >&6
15248else $as_nop
15249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15250/* end confdefs.h.  */
15251int i;
15252_ACEOF
15253if ac_fn_c_try_compile "$LINENO"
15254then :
15255  xorg_cv_cc_flag_unused_command_line_argument=yes
15256else $as_nop
15257  xorg_cv_cc_flag_unused_command_line_argument=no
15258fi
15259rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15260fi
15261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15262printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15263	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15264	CFLAGS="$xorg_testset_save_CFLAGS"
15265fi
15266
15267found="no"
15268
15269	if test $found = "no" ; then
15270		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15271			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15272		fi
15273
15274		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15275			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15276		fi
15277
15278		CFLAGS="$CFLAGS -Werror=implicit"
15279
15280		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15281printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15282		cacheid=xorg_cv_cc_flag__Werror_implicit
15283		if eval test \${$cacheid+y}
15284then :
15285  printf %s "(cached) " >&6
15286else $as_nop
15287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15288/* end confdefs.h.  */
15289int i;
15290int
15291main (void)
15292{
15293
15294  ;
15295  return 0;
15296}
15297_ACEOF
15298if ac_fn_c_try_link "$LINENO"
15299then :
15300  eval $cacheid=yes
15301else $as_nop
15302  eval $cacheid=no
15303fi
15304rm -f core conftest.err conftest.$ac_objext conftest.beam \
15305    conftest$ac_exeext conftest.$ac_ext
15306fi
15307
15308
15309		CFLAGS="$xorg_testset_save_CFLAGS"
15310
15311		eval supported=\$$cacheid
15312		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15313printf "%s\n" "$supported" >&6; }
15314		if test "$supported" = "yes" ; then
15315			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15316			found="yes"
15317		fi
15318	fi
15319
15320	if test $found = "no" ; then
15321		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15322			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15323		fi
15324
15325		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15326			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15327		fi
15328
15329		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15330
15331		{ 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
15332printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15333		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15334		if eval test \${$cacheid+y}
15335then :
15336  printf %s "(cached) " >&6
15337else $as_nop
15338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339/* end confdefs.h.  */
15340int i;
15341int
15342main (void)
15343{
15344
15345  ;
15346  return 0;
15347}
15348_ACEOF
15349if ac_fn_c_try_link "$LINENO"
15350then :
15351  eval $cacheid=yes
15352else $as_nop
15353  eval $cacheid=no
15354fi
15355rm -f core conftest.err conftest.$ac_objext conftest.beam \
15356    conftest$ac_exeext conftest.$ac_ext
15357fi
15358
15359
15360		CFLAGS="$xorg_testset_save_CFLAGS"
15361
15362		eval supported=\$$cacheid
15363		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15364printf "%s\n" "$supported" >&6; }
15365		if test "$supported" = "yes" ; then
15366			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15367			found="yes"
15368		fi
15369	fi
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385xorg_testset_save_CFLAGS="$CFLAGS"
15386
15387if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15388	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15389	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15390printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15391if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15392then :
15393  printf %s "(cached) " >&6
15394else $as_nop
15395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15396/* end confdefs.h.  */
15397int i;
15398_ACEOF
15399if ac_fn_c_try_compile "$LINENO"
15400then :
15401  xorg_cv_cc_flag_unknown_warning_option=yes
15402else $as_nop
15403  xorg_cv_cc_flag_unknown_warning_option=no
15404fi
15405rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15406fi
15407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15408printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15409	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15410	CFLAGS="$xorg_testset_save_CFLAGS"
15411fi
15412
15413if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15414	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15415		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15416	fi
15417	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15418	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15419printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15420if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15421then :
15422  printf %s "(cached) " >&6
15423else $as_nop
15424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15425/* end confdefs.h.  */
15426int i;
15427_ACEOF
15428if ac_fn_c_try_compile "$LINENO"
15429then :
15430  xorg_cv_cc_flag_unused_command_line_argument=yes
15431else $as_nop
15432  xorg_cv_cc_flag_unused_command_line_argument=no
15433fi
15434rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15435fi
15436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15437printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15438	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15439	CFLAGS="$xorg_testset_save_CFLAGS"
15440fi
15441
15442found="no"
15443
15444	if test $found = "no" ; then
15445		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15446			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15447		fi
15448
15449		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15450			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15451		fi
15452
15453		CFLAGS="$CFLAGS -Werror=nonnull"
15454
15455		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15456printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15457		cacheid=xorg_cv_cc_flag__Werror_nonnull
15458		if eval test \${$cacheid+y}
15459then :
15460  printf %s "(cached) " >&6
15461else $as_nop
15462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15463/* end confdefs.h.  */
15464int i;
15465int
15466main (void)
15467{
15468
15469  ;
15470  return 0;
15471}
15472_ACEOF
15473if ac_fn_c_try_link "$LINENO"
15474then :
15475  eval $cacheid=yes
15476else $as_nop
15477  eval $cacheid=no
15478fi
15479rm -f core conftest.err conftest.$ac_objext conftest.beam \
15480    conftest$ac_exeext conftest.$ac_ext
15481fi
15482
15483
15484		CFLAGS="$xorg_testset_save_CFLAGS"
15485
15486		eval supported=\$$cacheid
15487		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15488printf "%s\n" "$supported" >&6; }
15489		if test "$supported" = "yes" ; then
15490			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15491			found="yes"
15492		fi
15493	fi
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509xorg_testset_save_CFLAGS="$CFLAGS"
15510
15511if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15512	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15513	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15514printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15515if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15516then :
15517  printf %s "(cached) " >&6
15518else $as_nop
15519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15520/* end confdefs.h.  */
15521int i;
15522_ACEOF
15523if ac_fn_c_try_compile "$LINENO"
15524then :
15525  xorg_cv_cc_flag_unknown_warning_option=yes
15526else $as_nop
15527  xorg_cv_cc_flag_unknown_warning_option=no
15528fi
15529rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15530fi
15531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15532printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15533	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15534	CFLAGS="$xorg_testset_save_CFLAGS"
15535fi
15536
15537if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15538	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15539		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15540	fi
15541	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15542	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15543printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15544if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15545then :
15546  printf %s "(cached) " >&6
15547else $as_nop
15548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15549/* end confdefs.h.  */
15550int i;
15551_ACEOF
15552if ac_fn_c_try_compile "$LINENO"
15553then :
15554  xorg_cv_cc_flag_unused_command_line_argument=yes
15555else $as_nop
15556  xorg_cv_cc_flag_unused_command_line_argument=no
15557fi
15558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15559fi
15560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15561printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15562	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15563	CFLAGS="$xorg_testset_save_CFLAGS"
15564fi
15565
15566found="no"
15567
15568	if test $found = "no" ; then
15569		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15570			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15571		fi
15572
15573		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15574			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15575		fi
15576
15577		CFLAGS="$CFLAGS -Werror=init-self"
15578
15579		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15580printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15581		cacheid=xorg_cv_cc_flag__Werror_init_self
15582		if eval test \${$cacheid+y}
15583then :
15584  printf %s "(cached) " >&6
15585else $as_nop
15586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15587/* end confdefs.h.  */
15588int i;
15589int
15590main (void)
15591{
15592
15593  ;
15594  return 0;
15595}
15596_ACEOF
15597if ac_fn_c_try_link "$LINENO"
15598then :
15599  eval $cacheid=yes
15600else $as_nop
15601  eval $cacheid=no
15602fi
15603rm -f core conftest.err conftest.$ac_objext conftest.beam \
15604    conftest$ac_exeext conftest.$ac_ext
15605fi
15606
15607
15608		CFLAGS="$xorg_testset_save_CFLAGS"
15609
15610		eval supported=\$$cacheid
15611		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15612printf "%s\n" "$supported" >&6; }
15613		if test "$supported" = "yes" ; then
15614			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15615			found="yes"
15616		fi
15617	fi
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633xorg_testset_save_CFLAGS="$CFLAGS"
15634
15635if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15636	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15637	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15638printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15639if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15640then :
15641  printf %s "(cached) " >&6
15642else $as_nop
15643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15644/* end confdefs.h.  */
15645int i;
15646_ACEOF
15647if ac_fn_c_try_compile "$LINENO"
15648then :
15649  xorg_cv_cc_flag_unknown_warning_option=yes
15650else $as_nop
15651  xorg_cv_cc_flag_unknown_warning_option=no
15652fi
15653rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15654fi
15655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15656printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15657	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15658	CFLAGS="$xorg_testset_save_CFLAGS"
15659fi
15660
15661if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15662	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15663		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15664	fi
15665	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15666	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15667printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15668if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15669then :
15670  printf %s "(cached) " >&6
15671else $as_nop
15672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15673/* end confdefs.h.  */
15674int i;
15675_ACEOF
15676if ac_fn_c_try_compile "$LINENO"
15677then :
15678  xorg_cv_cc_flag_unused_command_line_argument=yes
15679else $as_nop
15680  xorg_cv_cc_flag_unused_command_line_argument=no
15681fi
15682rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15683fi
15684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15685printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15686	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15687	CFLAGS="$xorg_testset_save_CFLAGS"
15688fi
15689
15690found="no"
15691
15692	if test $found = "no" ; then
15693		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15694			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15695		fi
15696
15697		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15698			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15699		fi
15700
15701		CFLAGS="$CFLAGS -Werror=main"
15702
15703		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15704printf %s "checking if $CC supports -Werror=main... " >&6; }
15705		cacheid=xorg_cv_cc_flag__Werror_main
15706		if eval test \${$cacheid+y}
15707then :
15708  printf %s "(cached) " >&6
15709else $as_nop
15710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15711/* end confdefs.h.  */
15712int i;
15713int
15714main (void)
15715{
15716
15717  ;
15718  return 0;
15719}
15720_ACEOF
15721if ac_fn_c_try_link "$LINENO"
15722then :
15723  eval $cacheid=yes
15724else $as_nop
15725  eval $cacheid=no
15726fi
15727rm -f core conftest.err conftest.$ac_objext conftest.beam \
15728    conftest$ac_exeext conftest.$ac_ext
15729fi
15730
15731
15732		CFLAGS="$xorg_testset_save_CFLAGS"
15733
15734		eval supported=\$$cacheid
15735		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15736printf "%s\n" "$supported" >&6; }
15737		if test "$supported" = "yes" ; then
15738			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15739			found="yes"
15740		fi
15741	fi
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757xorg_testset_save_CFLAGS="$CFLAGS"
15758
15759if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15760	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15761	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15762printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15763if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15764then :
15765  printf %s "(cached) " >&6
15766else $as_nop
15767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15768/* end confdefs.h.  */
15769int i;
15770_ACEOF
15771if ac_fn_c_try_compile "$LINENO"
15772then :
15773  xorg_cv_cc_flag_unknown_warning_option=yes
15774else $as_nop
15775  xorg_cv_cc_flag_unknown_warning_option=no
15776fi
15777rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15778fi
15779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15780printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15781	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15782	CFLAGS="$xorg_testset_save_CFLAGS"
15783fi
15784
15785if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15786	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15787		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15788	fi
15789	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15790	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15791printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15792if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15793then :
15794  printf %s "(cached) " >&6
15795else $as_nop
15796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15797/* end confdefs.h.  */
15798int i;
15799_ACEOF
15800if ac_fn_c_try_compile "$LINENO"
15801then :
15802  xorg_cv_cc_flag_unused_command_line_argument=yes
15803else $as_nop
15804  xorg_cv_cc_flag_unused_command_line_argument=no
15805fi
15806rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15807fi
15808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15809printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15810	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15811	CFLAGS="$xorg_testset_save_CFLAGS"
15812fi
15813
15814found="no"
15815
15816	if test $found = "no" ; then
15817		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15818			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15819		fi
15820
15821		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15822			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15823		fi
15824
15825		CFLAGS="$CFLAGS -Werror=missing-braces"
15826
15827		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15828printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
15829		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15830		if eval test \${$cacheid+y}
15831then :
15832  printf %s "(cached) " >&6
15833else $as_nop
15834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15835/* end confdefs.h.  */
15836int i;
15837int
15838main (void)
15839{
15840
15841  ;
15842  return 0;
15843}
15844_ACEOF
15845if ac_fn_c_try_link "$LINENO"
15846then :
15847  eval $cacheid=yes
15848else $as_nop
15849  eval $cacheid=no
15850fi
15851rm -f core conftest.err conftest.$ac_objext conftest.beam \
15852    conftest$ac_exeext conftest.$ac_ext
15853fi
15854
15855
15856		CFLAGS="$xorg_testset_save_CFLAGS"
15857
15858		eval supported=\$$cacheid
15859		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15860printf "%s\n" "$supported" >&6; }
15861		if test "$supported" = "yes" ; then
15862			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15863			found="yes"
15864		fi
15865	fi
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881xorg_testset_save_CFLAGS="$CFLAGS"
15882
15883if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15884	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15885	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15886printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15887if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15888then :
15889  printf %s "(cached) " >&6
15890else $as_nop
15891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15892/* end confdefs.h.  */
15893int i;
15894_ACEOF
15895if ac_fn_c_try_compile "$LINENO"
15896then :
15897  xorg_cv_cc_flag_unknown_warning_option=yes
15898else $as_nop
15899  xorg_cv_cc_flag_unknown_warning_option=no
15900fi
15901rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15902fi
15903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15904printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15905	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15906	CFLAGS="$xorg_testset_save_CFLAGS"
15907fi
15908
15909if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15910	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15911		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15912	fi
15913	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15914	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15915printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15916if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15917then :
15918  printf %s "(cached) " >&6
15919else $as_nop
15920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15921/* end confdefs.h.  */
15922int i;
15923_ACEOF
15924if ac_fn_c_try_compile "$LINENO"
15925then :
15926  xorg_cv_cc_flag_unused_command_line_argument=yes
15927else $as_nop
15928  xorg_cv_cc_flag_unused_command_line_argument=no
15929fi
15930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15931fi
15932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15933printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15934	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15935	CFLAGS="$xorg_testset_save_CFLAGS"
15936fi
15937
15938found="no"
15939
15940	if test $found = "no" ; then
15941		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15942			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15943		fi
15944
15945		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15946			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15947		fi
15948
15949		CFLAGS="$CFLAGS -Werror=sequence-point"
15950
15951		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15952printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
15953		cacheid=xorg_cv_cc_flag__Werror_sequence_point
15954		if eval test \${$cacheid+y}
15955then :
15956  printf %s "(cached) " >&6
15957else $as_nop
15958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15959/* end confdefs.h.  */
15960int i;
15961int
15962main (void)
15963{
15964
15965  ;
15966  return 0;
15967}
15968_ACEOF
15969if ac_fn_c_try_link "$LINENO"
15970then :
15971  eval $cacheid=yes
15972else $as_nop
15973  eval $cacheid=no
15974fi
15975rm -f core conftest.err conftest.$ac_objext conftest.beam \
15976    conftest$ac_exeext conftest.$ac_ext
15977fi
15978
15979
15980		CFLAGS="$xorg_testset_save_CFLAGS"
15981
15982		eval supported=\$$cacheid
15983		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15984printf "%s\n" "$supported" >&6; }
15985		if test "$supported" = "yes" ; then
15986			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15987			found="yes"
15988		fi
15989	fi
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005xorg_testset_save_CFLAGS="$CFLAGS"
16006
16007if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16008	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16009	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16010printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16011if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16012then :
16013  printf %s "(cached) " >&6
16014else $as_nop
16015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16016/* end confdefs.h.  */
16017int i;
16018_ACEOF
16019if ac_fn_c_try_compile "$LINENO"
16020then :
16021  xorg_cv_cc_flag_unknown_warning_option=yes
16022else $as_nop
16023  xorg_cv_cc_flag_unknown_warning_option=no
16024fi
16025rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16026fi
16027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16028printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16029	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16030	CFLAGS="$xorg_testset_save_CFLAGS"
16031fi
16032
16033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16034	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16035		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16036	fi
16037	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16038	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16039printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16040if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16041then :
16042  printf %s "(cached) " >&6
16043else $as_nop
16044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16045/* end confdefs.h.  */
16046int i;
16047_ACEOF
16048if ac_fn_c_try_compile "$LINENO"
16049then :
16050  xorg_cv_cc_flag_unused_command_line_argument=yes
16051else $as_nop
16052  xorg_cv_cc_flag_unused_command_line_argument=no
16053fi
16054rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16055fi
16056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16057printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16058	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16059	CFLAGS="$xorg_testset_save_CFLAGS"
16060fi
16061
16062found="no"
16063
16064	if test $found = "no" ; then
16065		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16066			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16067		fi
16068
16069		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16070			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16071		fi
16072
16073		CFLAGS="$CFLAGS -Werror=return-type"
16074
16075		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16076printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16077		cacheid=xorg_cv_cc_flag__Werror_return_type
16078		if eval test \${$cacheid+y}
16079then :
16080  printf %s "(cached) " >&6
16081else $as_nop
16082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16083/* end confdefs.h.  */
16084int i;
16085int
16086main (void)
16087{
16088
16089  ;
16090  return 0;
16091}
16092_ACEOF
16093if ac_fn_c_try_link "$LINENO"
16094then :
16095  eval $cacheid=yes
16096else $as_nop
16097  eval $cacheid=no
16098fi
16099rm -f core conftest.err conftest.$ac_objext conftest.beam \
16100    conftest$ac_exeext conftest.$ac_ext
16101fi
16102
16103
16104		CFLAGS="$xorg_testset_save_CFLAGS"
16105
16106		eval supported=\$$cacheid
16107		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16108printf "%s\n" "$supported" >&6; }
16109		if test "$supported" = "yes" ; then
16110			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16111			found="yes"
16112		fi
16113	fi
16114
16115	if test $found = "no" ; then
16116		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16117			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16118		fi
16119
16120		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16121			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16122		fi
16123
16124		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16125
16126		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16127printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16128		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16129		if eval test \${$cacheid+y}
16130then :
16131  printf %s "(cached) " >&6
16132else $as_nop
16133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16134/* end confdefs.h.  */
16135int i;
16136int
16137main (void)
16138{
16139
16140  ;
16141  return 0;
16142}
16143_ACEOF
16144if ac_fn_c_try_link "$LINENO"
16145then :
16146  eval $cacheid=yes
16147else $as_nop
16148  eval $cacheid=no
16149fi
16150rm -f core conftest.err conftest.$ac_objext conftest.beam \
16151    conftest$ac_exeext conftest.$ac_ext
16152fi
16153
16154
16155		CFLAGS="$xorg_testset_save_CFLAGS"
16156
16157		eval supported=\$$cacheid
16158		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16159printf "%s\n" "$supported" >&6; }
16160		if test "$supported" = "yes" ; then
16161			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16162			found="yes"
16163		fi
16164	fi
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180xorg_testset_save_CFLAGS="$CFLAGS"
16181
16182if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16183	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16184	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16185printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16186if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16187then :
16188  printf %s "(cached) " >&6
16189else $as_nop
16190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16191/* end confdefs.h.  */
16192int i;
16193_ACEOF
16194if ac_fn_c_try_compile "$LINENO"
16195then :
16196  xorg_cv_cc_flag_unknown_warning_option=yes
16197else $as_nop
16198  xorg_cv_cc_flag_unknown_warning_option=no
16199fi
16200rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16201fi
16202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16203printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16204	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16205	CFLAGS="$xorg_testset_save_CFLAGS"
16206fi
16207
16208if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16209	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16210		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16211	fi
16212	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16213	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16214printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16215if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16216then :
16217  printf %s "(cached) " >&6
16218else $as_nop
16219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16220/* end confdefs.h.  */
16221int i;
16222_ACEOF
16223if ac_fn_c_try_compile "$LINENO"
16224then :
16225  xorg_cv_cc_flag_unused_command_line_argument=yes
16226else $as_nop
16227  xorg_cv_cc_flag_unused_command_line_argument=no
16228fi
16229rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16230fi
16231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16232printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16233	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16234	CFLAGS="$xorg_testset_save_CFLAGS"
16235fi
16236
16237found="no"
16238
16239	if test $found = "no" ; then
16240		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16241			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16242		fi
16243
16244		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16245			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16246		fi
16247
16248		CFLAGS="$CFLAGS -Werror=trigraphs"
16249
16250		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16251printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16252		cacheid=xorg_cv_cc_flag__Werror_trigraphs
16253		if eval test \${$cacheid+y}
16254then :
16255  printf %s "(cached) " >&6
16256else $as_nop
16257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16258/* end confdefs.h.  */
16259int i;
16260int
16261main (void)
16262{
16263
16264  ;
16265  return 0;
16266}
16267_ACEOF
16268if ac_fn_c_try_link "$LINENO"
16269then :
16270  eval $cacheid=yes
16271else $as_nop
16272  eval $cacheid=no
16273fi
16274rm -f core conftest.err conftest.$ac_objext conftest.beam \
16275    conftest$ac_exeext conftest.$ac_ext
16276fi
16277
16278
16279		CFLAGS="$xorg_testset_save_CFLAGS"
16280
16281		eval supported=\$$cacheid
16282		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16283printf "%s\n" "$supported" >&6; }
16284		if test "$supported" = "yes" ; then
16285			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16286			found="yes"
16287		fi
16288	fi
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304xorg_testset_save_CFLAGS="$CFLAGS"
16305
16306if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16307	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16308	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16309printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16310if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16311then :
16312  printf %s "(cached) " >&6
16313else $as_nop
16314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16315/* end confdefs.h.  */
16316int i;
16317_ACEOF
16318if ac_fn_c_try_compile "$LINENO"
16319then :
16320  xorg_cv_cc_flag_unknown_warning_option=yes
16321else $as_nop
16322  xorg_cv_cc_flag_unknown_warning_option=no
16323fi
16324rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16325fi
16326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16327printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16328	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16329	CFLAGS="$xorg_testset_save_CFLAGS"
16330fi
16331
16332if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16333	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16334		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16335	fi
16336	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16337	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16338printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16339if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16340then :
16341  printf %s "(cached) " >&6
16342else $as_nop
16343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16344/* end confdefs.h.  */
16345int i;
16346_ACEOF
16347if ac_fn_c_try_compile "$LINENO"
16348then :
16349  xorg_cv_cc_flag_unused_command_line_argument=yes
16350else $as_nop
16351  xorg_cv_cc_flag_unused_command_line_argument=no
16352fi
16353rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16354fi
16355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16356printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16357	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16358	CFLAGS="$xorg_testset_save_CFLAGS"
16359fi
16360
16361found="no"
16362
16363	if test $found = "no" ; then
16364		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16365			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16366		fi
16367
16368		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16369			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16370		fi
16371
16372		CFLAGS="$CFLAGS -Werror=array-bounds"
16373
16374		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16375printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16376		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16377		if eval test \${$cacheid+y}
16378then :
16379  printf %s "(cached) " >&6
16380else $as_nop
16381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16382/* end confdefs.h.  */
16383int i;
16384int
16385main (void)
16386{
16387
16388  ;
16389  return 0;
16390}
16391_ACEOF
16392if ac_fn_c_try_link "$LINENO"
16393then :
16394  eval $cacheid=yes
16395else $as_nop
16396  eval $cacheid=no
16397fi
16398rm -f core conftest.err conftest.$ac_objext conftest.beam \
16399    conftest$ac_exeext conftest.$ac_ext
16400fi
16401
16402
16403		CFLAGS="$xorg_testset_save_CFLAGS"
16404
16405		eval supported=\$$cacheid
16406		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16407printf "%s\n" "$supported" >&6; }
16408		if test "$supported" = "yes" ; then
16409			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16410			found="yes"
16411		fi
16412	fi
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428xorg_testset_save_CFLAGS="$CFLAGS"
16429
16430if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16431	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16432	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16433printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16434if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16435then :
16436  printf %s "(cached) " >&6
16437else $as_nop
16438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16439/* end confdefs.h.  */
16440int i;
16441_ACEOF
16442if ac_fn_c_try_compile "$LINENO"
16443then :
16444  xorg_cv_cc_flag_unknown_warning_option=yes
16445else $as_nop
16446  xorg_cv_cc_flag_unknown_warning_option=no
16447fi
16448rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16449fi
16450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16451printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16452	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16453	CFLAGS="$xorg_testset_save_CFLAGS"
16454fi
16455
16456if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16457	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16458		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16459	fi
16460	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16461	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16462printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16463if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16464then :
16465  printf %s "(cached) " >&6
16466else $as_nop
16467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16468/* end confdefs.h.  */
16469int i;
16470_ACEOF
16471if ac_fn_c_try_compile "$LINENO"
16472then :
16473  xorg_cv_cc_flag_unused_command_line_argument=yes
16474else $as_nop
16475  xorg_cv_cc_flag_unused_command_line_argument=no
16476fi
16477rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16478fi
16479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16480printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16481	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16482	CFLAGS="$xorg_testset_save_CFLAGS"
16483fi
16484
16485found="no"
16486
16487	if test $found = "no" ; then
16488		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16489			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16490		fi
16491
16492		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16493			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16494		fi
16495
16496		CFLAGS="$CFLAGS -Werror=write-strings"
16497
16498		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16499printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16500		cacheid=xorg_cv_cc_flag__Werror_write_strings
16501		if eval test \${$cacheid+y}
16502then :
16503  printf %s "(cached) " >&6
16504else $as_nop
16505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16506/* end confdefs.h.  */
16507int i;
16508int
16509main (void)
16510{
16511
16512  ;
16513  return 0;
16514}
16515_ACEOF
16516if ac_fn_c_try_link "$LINENO"
16517then :
16518  eval $cacheid=yes
16519else $as_nop
16520  eval $cacheid=no
16521fi
16522rm -f core conftest.err conftest.$ac_objext conftest.beam \
16523    conftest$ac_exeext conftest.$ac_ext
16524fi
16525
16526
16527		CFLAGS="$xorg_testset_save_CFLAGS"
16528
16529		eval supported=\$$cacheid
16530		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16531printf "%s\n" "$supported" >&6; }
16532		if test "$supported" = "yes" ; then
16533			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16534			found="yes"
16535		fi
16536	fi
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552xorg_testset_save_CFLAGS="$CFLAGS"
16553
16554if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16555	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16556	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16557printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16558if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16559then :
16560  printf %s "(cached) " >&6
16561else $as_nop
16562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16563/* end confdefs.h.  */
16564int i;
16565_ACEOF
16566if ac_fn_c_try_compile "$LINENO"
16567then :
16568  xorg_cv_cc_flag_unknown_warning_option=yes
16569else $as_nop
16570  xorg_cv_cc_flag_unknown_warning_option=no
16571fi
16572rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16573fi
16574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16575printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16576	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16577	CFLAGS="$xorg_testset_save_CFLAGS"
16578fi
16579
16580if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16581	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16582		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16583	fi
16584	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16585	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16586printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16587if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16588then :
16589  printf %s "(cached) " >&6
16590else $as_nop
16591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16592/* end confdefs.h.  */
16593int i;
16594_ACEOF
16595if ac_fn_c_try_compile "$LINENO"
16596then :
16597  xorg_cv_cc_flag_unused_command_line_argument=yes
16598else $as_nop
16599  xorg_cv_cc_flag_unused_command_line_argument=no
16600fi
16601rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16602fi
16603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16604printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16605	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16606	CFLAGS="$xorg_testset_save_CFLAGS"
16607fi
16608
16609found="no"
16610
16611	if test $found = "no" ; then
16612		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16613			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16614		fi
16615
16616		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16617			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16618		fi
16619
16620		CFLAGS="$CFLAGS -Werror=address"
16621
16622		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16623printf %s "checking if $CC supports -Werror=address... " >&6; }
16624		cacheid=xorg_cv_cc_flag__Werror_address
16625		if eval test \${$cacheid+y}
16626then :
16627  printf %s "(cached) " >&6
16628else $as_nop
16629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16630/* end confdefs.h.  */
16631int i;
16632int
16633main (void)
16634{
16635
16636  ;
16637  return 0;
16638}
16639_ACEOF
16640if ac_fn_c_try_link "$LINENO"
16641then :
16642  eval $cacheid=yes
16643else $as_nop
16644  eval $cacheid=no
16645fi
16646rm -f core conftest.err conftest.$ac_objext conftest.beam \
16647    conftest$ac_exeext conftest.$ac_ext
16648fi
16649
16650
16651		CFLAGS="$xorg_testset_save_CFLAGS"
16652
16653		eval supported=\$$cacheid
16654		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16655printf "%s\n" "$supported" >&6; }
16656		if test "$supported" = "yes" ; then
16657			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16658			found="yes"
16659		fi
16660	fi
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676xorg_testset_save_CFLAGS="$CFLAGS"
16677
16678if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16679	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16680	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16681printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16682if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16683then :
16684  printf %s "(cached) " >&6
16685else $as_nop
16686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16687/* end confdefs.h.  */
16688int i;
16689_ACEOF
16690if ac_fn_c_try_compile "$LINENO"
16691then :
16692  xorg_cv_cc_flag_unknown_warning_option=yes
16693else $as_nop
16694  xorg_cv_cc_flag_unknown_warning_option=no
16695fi
16696rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16697fi
16698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16699printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16700	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16701	CFLAGS="$xorg_testset_save_CFLAGS"
16702fi
16703
16704if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16705	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16706		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16707	fi
16708	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16709	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16710printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16711if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16712then :
16713  printf %s "(cached) " >&6
16714else $as_nop
16715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16716/* end confdefs.h.  */
16717int i;
16718_ACEOF
16719if ac_fn_c_try_compile "$LINENO"
16720then :
16721  xorg_cv_cc_flag_unused_command_line_argument=yes
16722else $as_nop
16723  xorg_cv_cc_flag_unused_command_line_argument=no
16724fi
16725rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16726fi
16727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16728printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16729	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16730	CFLAGS="$xorg_testset_save_CFLAGS"
16731fi
16732
16733found="no"
16734
16735	if test $found = "no" ; then
16736		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16737			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16738		fi
16739
16740		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16741			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16742		fi
16743
16744		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16745
16746		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16747printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16748		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16749		if eval test \${$cacheid+y}
16750then :
16751  printf %s "(cached) " >&6
16752else $as_nop
16753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16754/* end confdefs.h.  */
16755int i;
16756int
16757main (void)
16758{
16759
16760  ;
16761  return 0;
16762}
16763_ACEOF
16764if ac_fn_c_try_link "$LINENO"
16765then :
16766  eval $cacheid=yes
16767else $as_nop
16768  eval $cacheid=no
16769fi
16770rm -f core conftest.err conftest.$ac_objext conftest.beam \
16771    conftest$ac_exeext conftest.$ac_ext
16772fi
16773
16774
16775		CFLAGS="$xorg_testset_save_CFLAGS"
16776
16777		eval supported=\$$cacheid
16778		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16779printf "%s\n" "$supported" >&6; }
16780		if test "$supported" = "yes" ; then
16781			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16782			found="yes"
16783		fi
16784	fi
16785
16786	if test $found = "no" ; then
16787		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16788			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16789		fi
16790
16791		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16792			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16793		fi
16794
16795		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16796
16797		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16798printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16799		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16800		if eval test \${$cacheid+y}
16801then :
16802  printf %s "(cached) " >&6
16803else $as_nop
16804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16805/* end confdefs.h.  */
16806int i;
16807int
16808main (void)
16809{
16810
16811  ;
16812  return 0;
16813}
16814_ACEOF
16815if ac_fn_c_try_link "$LINENO"
16816then :
16817  eval $cacheid=yes
16818else $as_nop
16819  eval $cacheid=no
16820fi
16821rm -f core conftest.err conftest.$ac_objext conftest.beam \
16822    conftest$ac_exeext conftest.$ac_ext
16823fi
16824
16825
16826		CFLAGS="$xorg_testset_save_CFLAGS"
16827
16828		eval supported=\$$cacheid
16829		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16830printf "%s\n" "$supported" >&6; }
16831		if test "$supported" = "yes" ; then
16832			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16833			found="yes"
16834		fi
16835	fi
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851xorg_testset_save_CFLAGS="$CFLAGS"
16852
16853if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16854	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16855	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16856printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16857if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16858then :
16859  printf %s "(cached) " >&6
16860else $as_nop
16861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16862/* end confdefs.h.  */
16863int i;
16864_ACEOF
16865if ac_fn_c_try_compile "$LINENO"
16866then :
16867  xorg_cv_cc_flag_unknown_warning_option=yes
16868else $as_nop
16869  xorg_cv_cc_flag_unknown_warning_option=no
16870fi
16871rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16872fi
16873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16874printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16875	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16876	CFLAGS="$xorg_testset_save_CFLAGS"
16877fi
16878
16879if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16880	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16881		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16882	fi
16883	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16884	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16885printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16886if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16887then :
16888  printf %s "(cached) " >&6
16889else $as_nop
16890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16891/* end confdefs.h.  */
16892int i;
16893_ACEOF
16894if ac_fn_c_try_compile "$LINENO"
16895then :
16896  xorg_cv_cc_flag_unused_command_line_argument=yes
16897else $as_nop
16898  xorg_cv_cc_flag_unused_command_line_argument=no
16899fi
16900rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16901fi
16902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16903printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16904	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16905	CFLAGS="$xorg_testset_save_CFLAGS"
16906fi
16907
16908found="no"
16909
16910	if test $found = "no" ; then
16911		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16912			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16913		fi
16914
16915		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16916			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16917		fi
16918
16919		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16920
16921		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16922printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16923		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16924		if eval test \${$cacheid+y}
16925then :
16926  printf %s "(cached) " >&6
16927else $as_nop
16928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16929/* end confdefs.h.  */
16930int i;
16931int
16932main (void)
16933{
16934
16935  ;
16936  return 0;
16937}
16938_ACEOF
16939if ac_fn_c_try_link "$LINENO"
16940then :
16941  eval $cacheid=yes
16942else $as_nop
16943  eval $cacheid=no
16944fi
16945rm -f core conftest.err conftest.$ac_objext conftest.beam \
16946    conftest$ac_exeext conftest.$ac_ext
16947fi
16948
16949
16950		CFLAGS="$xorg_testset_save_CFLAGS"
16951
16952		eval supported=\$$cacheid
16953		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16954printf "%s\n" "$supported" >&6; }
16955		if test "$supported" = "yes" ; then
16956			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16957			found="yes"
16958		fi
16959	fi
16960
16961 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16962else
16963{ 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
16964printf "%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;}
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978xorg_testset_save_CFLAGS="$CFLAGS"
16979
16980if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16981	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16982	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16983printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16984if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16985then :
16986  printf %s "(cached) " >&6
16987else $as_nop
16988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16989/* end confdefs.h.  */
16990int i;
16991_ACEOF
16992if ac_fn_c_try_compile "$LINENO"
16993then :
16994  xorg_cv_cc_flag_unknown_warning_option=yes
16995else $as_nop
16996  xorg_cv_cc_flag_unknown_warning_option=no
16997fi
16998rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16999fi
17000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17001printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17002	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17003	CFLAGS="$xorg_testset_save_CFLAGS"
17004fi
17005
17006if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17007	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17008		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17009	fi
17010	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17011	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17012printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17013if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17014then :
17015  printf %s "(cached) " >&6
17016else $as_nop
17017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17018/* end confdefs.h.  */
17019int i;
17020_ACEOF
17021if ac_fn_c_try_compile "$LINENO"
17022then :
17023  xorg_cv_cc_flag_unused_command_line_argument=yes
17024else $as_nop
17025  xorg_cv_cc_flag_unused_command_line_argument=no
17026fi
17027rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17028fi
17029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17030printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17031	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17032	CFLAGS="$xorg_testset_save_CFLAGS"
17033fi
17034
17035found="no"
17036
17037	if test $found = "no" ; then
17038		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17039			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17040		fi
17041
17042		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17043			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17044		fi
17045
17046		CFLAGS="$CFLAGS -Wimplicit"
17047
17048		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17049printf %s "checking if $CC supports -Wimplicit... " >&6; }
17050		cacheid=xorg_cv_cc_flag__Wimplicit
17051		if eval test \${$cacheid+y}
17052then :
17053  printf %s "(cached) " >&6
17054else $as_nop
17055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17056/* end confdefs.h.  */
17057int i;
17058int
17059main (void)
17060{
17061
17062  ;
17063  return 0;
17064}
17065_ACEOF
17066if ac_fn_c_try_link "$LINENO"
17067then :
17068  eval $cacheid=yes
17069else $as_nop
17070  eval $cacheid=no
17071fi
17072rm -f core conftest.err conftest.$ac_objext conftest.beam \
17073    conftest$ac_exeext conftest.$ac_ext
17074fi
17075
17076
17077		CFLAGS="$xorg_testset_save_CFLAGS"
17078
17079		eval supported=\$$cacheid
17080		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17081printf "%s\n" "$supported" >&6; }
17082		if test "$supported" = "yes" ; then
17083			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17084			found="yes"
17085		fi
17086	fi
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102xorg_testset_save_CFLAGS="$CFLAGS"
17103
17104if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17105	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17106	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17107printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17108if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17109then :
17110  printf %s "(cached) " >&6
17111else $as_nop
17112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17113/* end confdefs.h.  */
17114int i;
17115_ACEOF
17116if ac_fn_c_try_compile "$LINENO"
17117then :
17118  xorg_cv_cc_flag_unknown_warning_option=yes
17119else $as_nop
17120  xorg_cv_cc_flag_unknown_warning_option=no
17121fi
17122rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17123fi
17124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17125printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17126	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17127	CFLAGS="$xorg_testset_save_CFLAGS"
17128fi
17129
17130if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17131	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17132		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17133	fi
17134	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17135	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17136printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17137if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17138then :
17139  printf %s "(cached) " >&6
17140else $as_nop
17141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17142/* end confdefs.h.  */
17143int i;
17144_ACEOF
17145if ac_fn_c_try_compile "$LINENO"
17146then :
17147  xorg_cv_cc_flag_unused_command_line_argument=yes
17148else $as_nop
17149  xorg_cv_cc_flag_unused_command_line_argument=no
17150fi
17151rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17152fi
17153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17154printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17155	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17156	CFLAGS="$xorg_testset_save_CFLAGS"
17157fi
17158
17159found="no"
17160
17161	if test $found = "no" ; then
17162		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17163			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17164		fi
17165
17166		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17167			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17168		fi
17169
17170		CFLAGS="$CFLAGS -Wnonnull"
17171
17172		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17173printf %s "checking if $CC supports -Wnonnull... " >&6; }
17174		cacheid=xorg_cv_cc_flag__Wnonnull
17175		if eval test \${$cacheid+y}
17176then :
17177  printf %s "(cached) " >&6
17178else $as_nop
17179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17180/* end confdefs.h.  */
17181int i;
17182int
17183main (void)
17184{
17185
17186  ;
17187  return 0;
17188}
17189_ACEOF
17190if ac_fn_c_try_link "$LINENO"
17191then :
17192  eval $cacheid=yes
17193else $as_nop
17194  eval $cacheid=no
17195fi
17196rm -f core conftest.err conftest.$ac_objext conftest.beam \
17197    conftest$ac_exeext conftest.$ac_ext
17198fi
17199
17200
17201		CFLAGS="$xorg_testset_save_CFLAGS"
17202
17203		eval supported=\$$cacheid
17204		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17205printf "%s\n" "$supported" >&6; }
17206		if test "$supported" = "yes" ; then
17207			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17208			found="yes"
17209		fi
17210	fi
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226xorg_testset_save_CFLAGS="$CFLAGS"
17227
17228if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17229	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17230	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17231printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17232if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17233then :
17234  printf %s "(cached) " >&6
17235else $as_nop
17236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17237/* end confdefs.h.  */
17238int i;
17239_ACEOF
17240if ac_fn_c_try_compile "$LINENO"
17241then :
17242  xorg_cv_cc_flag_unknown_warning_option=yes
17243else $as_nop
17244  xorg_cv_cc_flag_unknown_warning_option=no
17245fi
17246rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17247fi
17248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17249printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17250	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17251	CFLAGS="$xorg_testset_save_CFLAGS"
17252fi
17253
17254if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17255	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17256		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17257	fi
17258	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17259	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17260printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17261if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17262then :
17263  printf %s "(cached) " >&6
17264else $as_nop
17265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17266/* end confdefs.h.  */
17267int i;
17268_ACEOF
17269if ac_fn_c_try_compile "$LINENO"
17270then :
17271  xorg_cv_cc_flag_unused_command_line_argument=yes
17272else $as_nop
17273  xorg_cv_cc_flag_unused_command_line_argument=no
17274fi
17275rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17276fi
17277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17278printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17279	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17280	CFLAGS="$xorg_testset_save_CFLAGS"
17281fi
17282
17283found="no"
17284
17285	if test $found = "no" ; then
17286		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17287			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17288		fi
17289
17290		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17291			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17292		fi
17293
17294		CFLAGS="$CFLAGS -Winit-self"
17295
17296		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17297printf %s "checking if $CC supports -Winit-self... " >&6; }
17298		cacheid=xorg_cv_cc_flag__Winit_self
17299		if eval test \${$cacheid+y}
17300then :
17301  printf %s "(cached) " >&6
17302else $as_nop
17303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17304/* end confdefs.h.  */
17305int i;
17306int
17307main (void)
17308{
17309
17310  ;
17311  return 0;
17312}
17313_ACEOF
17314if ac_fn_c_try_link "$LINENO"
17315then :
17316  eval $cacheid=yes
17317else $as_nop
17318  eval $cacheid=no
17319fi
17320rm -f core conftest.err conftest.$ac_objext conftest.beam \
17321    conftest$ac_exeext conftest.$ac_ext
17322fi
17323
17324
17325		CFLAGS="$xorg_testset_save_CFLAGS"
17326
17327		eval supported=\$$cacheid
17328		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17329printf "%s\n" "$supported" >&6; }
17330		if test "$supported" = "yes" ; then
17331			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17332			found="yes"
17333		fi
17334	fi
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350xorg_testset_save_CFLAGS="$CFLAGS"
17351
17352if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17353	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17354	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17355printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17356if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17357then :
17358  printf %s "(cached) " >&6
17359else $as_nop
17360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17361/* end confdefs.h.  */
17362int i;
17363_ACEOF
17364if ac_fn_c_try_compile "$LINENO"
17365then :
17366  xorg_cv_cc_flag_unknown_warning_option=yes
17367else $as_nop
17368  xorg_cv_cc_flag_unknown_warning_option=no
17369fi
17370rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17371fi
17372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17373printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17374	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17375	CFLAGS="$xorg_testset_save_CFLAGS"
17376fi
17377
17378if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17379	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17380		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17381	fi
17382	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17383	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17384printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17385if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17386then :
17387  printf %s "(cached) " >&6
17388else $as_nop
17389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17390/* end confdefs.h.  */
17391int i;
17392_ACEOF
17393if ac_fn_c_try_compile "$LINENO"
17394then :
17395  xorg_cv_cc_flag_unused_command_line_argument=yes
17396else $as_nop
17397  xorg_cv_cc_flag_unused_command_line_argument=no
17398fi
17399rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17400fi
17401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17402printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17403	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17404	CFLAGS="$xorg_testset_save_CFLAGS"
17405fi
17406
17407found="no"
17408
17409	if test $found = "no" ; then
17410		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17411			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17412		fi
17413
17414		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17415			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17416		fi
17417
17418		CFLAGS="$CFLAGS -Wmain"
17419
17420		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17421printf %s "checking if $CC supports -Wmain... " >&6; }
17422		cacheid=xorg_cv_cc_flag__Wmain
17423		if eval test \${$cacheid+y}
17424then :
17425  printf %s "(cached) " >&6
17426else $as_nop
17427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17428/* end confdefs.h.  */
17429int i;
17430int
17431main (void)
17432{
17433
17434  ;
17435  return 0;
17436}
17437_ACEOF
17438if ac_fn_c_try_link "$LINENO"
17439then :
17440  eval $cacheid=yes
17441else $as_nop
17442  eval $cacheid=no
17443fi
17444rm -f core conftest.err conftest.$ac_objext conftest.beam \
17445    conftest$ac_exeext conftest.$ac_ext
17446fi
17447
17448
17449		CFLAGS="$xorg_testset_save_CFLAGS"
17450
17451		eval supported=\$$cacheid
17452		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17453printf "%s\n" "$supported" >&6; }
17454		if test "$supported" = "yes" ; then
17455			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17456			found="yes"
17457		fi
17458	fi
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474xorg_testset_save_CFLAGS="$CFLAGS"
17475
17476if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17477	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17478	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17479printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17480if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17481then :
17482  printf %s "(cached) " >&6
17483else $as_nop
17484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17485/* end confdefs.h.  */
17486int i;
17487_ACEOF
17488if ac_fn_c_try_compile "$LINENO"
17489then :
17490  xorg_cv_cc_flag_unknown_warning_option=yes
17491else $as_nop
17492  xorg_cv_cc_flag_unknown_warning_option=no
17493fi
17494rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17495fi
17496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17497printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17498	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17499	CFLAGS="$xorg_testset_save_CFLAGS"
17500fi
17501
17502if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17503	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17504		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17505	fi
17506	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17507	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17508printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17509if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17510then :
17511  printf %s "(cached) " >&6
17512else $as_nop
17513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17514/* end confdefs.h.  */
17515int i;
17516_ACEOF
17517if ac_fn_c_try_compile "$LINENO"
17518then :
17519  xorg_cv_cc_flag_unused_command_line_argument=yes
17520else $as_nop
17521  xorg_cv_cc_flag_unused_command_line_argument=no
17522fi
17523rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17524fi
17525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17526printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17527	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17528	CFLAGS="$xorg_testset_save_CFLAGS"
17529fi
17530
17531found="no"
17532
17533	if test $found = "no" ; then
17534		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17535			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17536		fi
17537
17538		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17539			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17540		fi
17541
17542		CFLAGS="$CFLAGS -Wmissing-braces"
17543
17544		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17545printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17546		cacheid=xorg_cv_cc_flag__Wmissing_braces
17547		if eval test \${$cacheid+y}
17548then :
17549  printf %s "(cached) " >&6
17550else $as_nop
17551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17552/* end confdefs.h.  */
17553int i;
17554int
17555main (void)
17556{
17557
17558  ;
17559  return 0;
17560}
17561_ACEOF
17562if ac_fn_c_try_link "$LINENO"
17563then :
17564  eval $cacheid=yes
17565else $as_nop
17566  eval $cacheid=no
17567fi
17568rm -f core conftest.err conftest.$ac_objext conftest.beam \
17569    conftest$ac_exeext conftest.$ac_ext
17570fi
17571
17572
17573		CFLAGS="$xorg_testset_save_CFLAGS"
17574
17575		eval supported=\$$cacheid
17576		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17577printf "%s\n" "$supported" >&6; }
17578		if test "$supported" = "yes" ; then
17579			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17580			found="yes"
17581		fi
17582	fi
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598xorg_testset_save_CFLAGS="$CFLAGS"
17599
17600if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17601	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17602	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17603printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17604if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17605then :
17606  printf %s "(cached) " >&6
17607else $as_nop
17608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17609/* end confdefs.h.  */
17610int i;
17611_ACEOF
17612if ac_fn_c_try_compile "$LINENO"
17613then :
17614  xorg_cv_cc_flag_unknown_warning_option=yes
17615else $as_nop
17616  xorg_cv_cc_flag_unknown_warning_option=no
17617fi
17618rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17619fi
17620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17621printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17622	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17623	CFLAGS="$xorg_testset_save_CFLAGS"
17624fi
17625
17626if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17627	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17628		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17629	fi
17630	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17631	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17632printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17633if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17634then :
17635  printf %s "(cached) " >&6
17636else $as_nop
17637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17638/* end confdefs.h.  */
17639int i;
17640_ACEOF
17641if ac_fn_c_try_compile "$LINENO"
17642then :
17643  xorg_cv_cc_flag_unused_command_line_argument=yes
17644else $as_nop
17645  xorg_cv_cc_flag_unused_command_line_argument=no
17646fi
17647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17648fi
17649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17650printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17651	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17652	CFLAGS="$xorg_testset_save_CFLAGS"
17653fi
17654
17655found="no"
17656
17657	if test $found = "no" ; then
17658		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17659			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17660		fi
17661
17662		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17663			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17664		fi
17665
17666		CFLAGS="$CFLAGS -Wsequence-point"
17667
17668		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17669printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17670		cacheid=xorg_cv_cc_flag__Wsequence_point
17671		if eval test \${$cacheid+y}
17672then :
17673  printf %s "(cached) " >&6
17674else $as_nop
17675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17676/* end confdefs.h.  */
17677int i;
17678int
17679main (void)
17680{
17681
17682  ;
17683  return 0;
17684}
17685_ACEOF
17686if ac_fn_c_try_link "$LINENO"
17687then :
17688  eval $cacheid=yes
17689else $as_nop
17690  eval $cacheid=no
17691fi
17692rm -f core conftest.err conftest.$ac_objext conftest.beam \
17693    conftest$ac_exeext conftest.$ac_ext
17694fi
17695
17696
17697		CFLAGS="$xorg_testset_save_CFLAGS"
17698
17699		eval supported=\$$cacheid
17700		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17701printf "%s\n" "$supported" >&6; }
17702		if test "$supported" = "yes" ; then
17703			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17704			found="yes"
17705		fi
17706	fi
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722xorg_testset_save_CFLAGS="$CFLAGS"
17723
17724if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17725	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17726	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17727printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17728if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17729then :
17730  printf %s "(cached) " >&6
17731else $as_nop
17732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17733/* end confdefs.h.  */
17734int i;
17735_ACEOF
17736if ac_fn_c_try_compile "$LINENO"
17737then :
17738  xorg_cv_cc_flag_unknown_warning_option=yes
17739else $as_nop
17740  xorg_cv_cc_flag_unknown_warning_option=no
17741fi
17742rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17743fi
17744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17745printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17746	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17747	CFLAGS="$xorg_testset_save_CFLAGS"
17748fi
17749
17750if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17751	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17752		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17753	fi
17754	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17755	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17756printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17757if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17758then :
17759  printf %s "(cached) " >&6
17760else $as_nop
17761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17762/* end confdefs.h.  */
17763int i;
17764_ACEOF
17765if ac_fn_c_try_compile "$LINENO"
17766then :
17767  xorg_cv_cc_flag_unused_command_line_argument=yes
17768else $as_nop
17769  xorg_cv_cc_flag_unused_command_line_argument=no
17770fi
17771rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17772fi
17773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17774printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17775	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17776	CFLAGS="$xorg_testset_save_CFLAGS"
17777fi
17778
17779found="no"
17780
17781	if test $found = "no" ; then
17782		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17783			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17784		fi
17785
17786		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17787			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17788		fi
17789
17790		CFLAGS="$CFLAGS -Wreturn-type"
17791
17792		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17793printf %s "checking if $CC supports -Wreturn-type... " >&6; }
17794		cacheid=xorg_cv_cc_flag__Wreturn_type
17795		if eval test \${$cacheid+y}
17796then :
17797  printf %s "(cached) " >&6
17798else $as_nop
17799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17800/* end confdefs.h.  */
17801int i;
17802int
17803main (void)
17804{
17805
17806  ;
17807  return 0;
17808}
17809_ACEOF
17810if ac_fn_c_try_link "$LINENO"
17811then :
17812  eval $cacheid=yes
17813else $as_nop
17814  eval $cacheid=no
17815fi
17816rm -f core conftest.err conftest.$ac_objext conftest.beam \
17817    conftest$ac_exeext conftest.$ac_ext
17818fi
17819
17820
17821		CFLAGS="$xorg_testset_save_CFLAGS"
17822
17823		eval supported=\$$cacheid
17824		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17825printf "%s\n" "$supported" >&6; }
17826		if test "$supported" = "yes" ; then
17827			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17828			found="yes"
17829		fi
17830	fi
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846xorg_testset_save_CFLAGS="$CFLAGS"
17847
17848if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17849	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17850	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17851printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17852if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17853then :
17854  printf %s "(cached) " >&6
17855else $as_nop
17856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17857/* end confdefs.h.  */
17858int i;
17859_ACEOF
17860if ac_fn_c_try_compile "$LINENO"
17861then :
17862  xorg_cv_cc_flag_unknown_warning_option=yes
17863else $as_nop
17864  xorg_cv_cc_flag_unknown_warning_option=no
17865fi
17866rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17867fi
17868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17869printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17870	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17871	CFLAGS="$xorg_testset_save_CFLAGS"
17872fi
17873
17874if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17875	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17876		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17877	fi
17878	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17879	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17880printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17881if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17882then :
17883  printf %s "(cached) " >&6
17884else $as_nop
17885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17886/* end confdefs.h.  */
17887int i;
17888_ACEOF
17889if ac_fn_c_try_compile "$LINENO"
17890then :
17891  xorg_cv_cc_flag_unused_command_line_argument=yes
17892else $as_nop
17893  xorg_cv_cc_flag_unused_command_line_argument=no
17894fi
17895rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17896fi
17897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17898printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17899	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17900	CFLAGS="$xorg_testset_save_CFLAGS"
17901fi
17902
17903found="no"
17904
17905	if test $found = "no" ; then
17906		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17907			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17908		fi
17909
17910		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17911			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17912		fi
17913
17914		CFLAGS="$CFLAGS -Wtrigraphs"
17915
17916		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17917printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
17918		cacheid=xorg_cv_cc_flag__Wtrigraphs
17919		if eval test \${$cacheid+y}
17920then :
17921  printf %s "(cached) " >&6
17922else $as_nop
17923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17924/* end confdefs.h.  */
17925int i;
17926int
17927main (void)
17928{
17929
17930  ;
17931  return 0;
17932}
17933_ACEOF
17934if ac_fn_c_try_link "$LINENO"
17935then :
17936  eval $cacheid=yes
17937else $as_nop
17938  eval $cacheid=no
17939fi
17940rm -f core conftest.err conftest.$ac_objext conftest.beam \
17941    conftest$ac_exeext conftest.$ac_ext
17942fi
17943
17944
17945		CFLAGS="$xorg_testset_save_CFLAGS"
17946
17947		eval supported=\$$cacheid
17948		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17949printf "%s\n" "$supported" >&6; }
17950		if test "$supported" = "yes" ; then
17951			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17952			found="yes"
17953		fi
17954	fi
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970xorg_testset_save_CFLAGS="$CFLAGS"
17971
17972if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17973	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17974	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17975printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17976if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17977then :
17978  printf %s "(cached) " >&6
17979else $as_nop
17980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17981/* end confdefs.h.  */
17982int i;
17983_ACEOF
17984if ac_fn_c_try_compile "$LINENO"
17985then :
17986  xorg_cv_cc_flag_unknown_warning_option=yes
17987else $as_nop
17988  xorg_cv_cc_flag_unknown_warning_option=no
17989fi
17990rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17991fi
17992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17993printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17994	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17995	CFLAGS="$xorg_testset_save_CFLAGS"
17996fi
17997
17998if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17999	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18000		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18001	fi
18002	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18003	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18004printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18005if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18006then :
18007  printf %s "(cached) " >&6
18008else $as_nop
18009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18010/* end confdefs.h.  */
18011int i;
18012_ACEOF
18013if ac_fn_c_try_compile "$LINENO"
18014then :
18015  xorg_cv_cc_flag_unused_command_line_argument=yes
18016else $as_nop
18017  xorg_cv_cc_flag_unused_command_line_argument=no
18018fi
18019rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18020fi
18021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18022printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18023	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18024	CFLAGS="$xorg_testset_save_CFLAGS"
18025fi
18026
18027found="no"
18028
18029	if test $found = "no" ; then
18030		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18031			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18032		fi
18033
18034		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18035			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18036		fi
18037
18038		CFLAGS="$CFLAGS -Warray-bounds"
18039
18040		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18041printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18042		cacheid=xorg_cv_cc_flag__Warray_bounds
18043		if eval test \${$cacheid+y}
18044then :
18045  printf %s "(cached) " >&6
18046else $as_nop
18047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18048/* end confdefs.h.  */
18049int i;
18050int
18051main (void)
18052{
18053
18054  ;
18055  return 0;
18056}
18057_ACEOF
18058if ac_fn_c_try_link "$LINENO"
18059then :
18060  eval $cacheid=yes
18061else $as_nop
18062  eval $cacheid=no
18063fi
18064rm -f core conftest.err conftest.$ac_objext conftest.beam \
18065    conftest$ac_exeext conftest.$ac_ext
18066fi
18067
18068
18069		CFLAGS="$xorg_testset_save_CFLAGS"
18070
18071		eval supported=\$$cacheid
18072		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18073printf "%s\n" "$supported" >&6; }
18074		if test "$supported" = "yes" ; then
18075			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18076			found="yes"
18077		fi
18078	fi
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094xorg_testset_save_CFLAGS="$CFLAGS"
18095
18096if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18097	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18098	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18099printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18100if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18101then :
18102  printf %s "(cached) " >&6
18103else $as_nop
18104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18105/* end confdefs.h.  */
18106int i;
18107_ACEOF
18108if ac_fn_c_try_compile "$LINENO"
18109then :
18110  xorg_cv_cc_flag_unknown_warning_option=yes
18111else $as_nop
18112  xorg_cv_cc_flag_unknown_warning_option=no
18113fi
18114rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18115fi
18116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18117printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18118	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18119	CFLAGS="$xorg_testset_save_CFLAGS"
18120fi
18121
18122if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18123	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18124		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18125	fi
18126	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18127	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18128printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18129if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18130then :
18131  printf %s "(cached) " >&6
18132else $as_nop
18133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18134/* end confdefs.h.  */
18135int i;
18136_ACEOF
18137if ac_fn_c_try_compile "$LINENO"
18138then :
18139  xorg_cv_cc_flag_unused_command_line_argument=yes
18140else $as_nop
18141  xorg_cv_cc_flag_unused_command_line_argument=no
18142fi
18143rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18144fi
18145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18146printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18147	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18148	CFLAGS="$xorg_testset_save_CFLAGS"
18149fi
18150
18151found="no"
18152
18153	if test $found = "no" ; then
18154		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18155			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18156		fi
18157
18158		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18159			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18160		fi
18161
18162		CFLAGS="$CFLAGS -Wwrite-strings"
18163
18164		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18165printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18166		cacheid=xorg_cv_cc_flag__Wwrite_strings
18167		if eval test \${$cacheid+y}
18168then :
18169  printf %s "(cached) " >&6
18170else $as_nop
18171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18172/* end confdefs.h.  */
18173int i;
18174int
18175main (void)
18176{
18177
18178  ;
18179  return 0;
18180}
18181_ACEOF
18182if ac_fn_c_try_link "$LINENO"
18183then :
18184  eval $cacheid=yes
18185else $as_nop
18186  eval $cacheid=no
18187fi
18188rm -f core conftest.err conftest.$ac_objext conftest.beam \
18189    conftest$ac_exeext conftest.$ac_ext
18190fi
18191
18192
18193		CFLAGS="$xorg_testset_save_CFLAGS"
18194
18195		eval supported=\$$cacheid
18196		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18197printf "%s\n" "$supported" >&6; }
18198		if test "$supported" = "yes" ; then
18199			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18200			found="yes"
18201		fi
18202	fi
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218xorg_testset_save_CFLAGS="$CFLAGS"
18219
18220if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18221	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18222	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18223printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18224if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18225then :
18226  printf %s "(cached) " >&6
18227else $as_nop
18228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18229/* end confdefs.h.  */
18230int i;
18231_ACEOF
18232if ac_fn_c_try_compile "$LINENO"
18233then :
18234  xorg_cv_cc_flag_unknown_warning_option=yes
18235else $as_nop
18236  xorg_cv_cc_flag_unknown_warning_option=no
18237fi
18238rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18239fi
18240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18241printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18242	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18243	CFLAGS="$xorg_testset_save_CFLAGS"
18244fi
18245
18246if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18247	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18248		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18249	fi
18250	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18251	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18252printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18253if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18254then :
18255  printf %s "(cached) " >&6
18256else $as_nop
18257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18258/* end confdefs.h.  */
18259int i;
18260_ACEOF
18261if ac_fn_c_try_compile "$LINENO"
18262then :
18263  xorg_cv_cc_flag_unused_command_line_argument=yes
18264else $as_nop
18265  xorg_cv_cc_flag_unused_command_line_argument=no
18266fi
18267rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18268fi
18269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18270printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18271	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18272	CFLAGS="$xorg_testset_save_CFLAGS"
18273fi
18274
18275found="no"
18276
18277	if test $found = "no" ; then
18278		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18279			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18280		fi
18281
18282		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18283			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18284		fi
18285
18286		CFLAGS="$CFLAGS -Waddress"
18287
18288		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18289printf %s "checking if $CC supports -Waddress... " >&6; }
18290		cacheid=xorg_cv_cc_flag__Waddress
18291		if eval test \${$cacheid+y}
18292then :
18293  printf %s "(cached) " >&6
18294else $as_nop
18295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18296/* end confdefs.h.  */
18297int i;
18298int
18299main (void)
18300{
18301
18302  ;
18303  return 0;
18304}
18305_ACEOF
18306if ac_fn_c_try_link "$LINENO"
18307then :
18308  eval $cacheid=yes
18309else $as_nop
18310  eval $cacheid=no
18311fi
18312rm -f core conftest.err conftest.$ac_objext conftest.beam \
18313    conftest$ac_exeext conftest.$ac_ext
18314fi
18315
18316
18317		CFLAGS="$xorg_testset_save_CFLAGS"
18318
18319		eval supported=\$$cacheid
18320		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18321printf "%s\n" "$supported" >&6; }
18322		if test "$supported" = "yes" ; then
18323			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18324			found="yes"
18325		fi
18326	fi
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342xorg_testset_save_CFLAGS="$CFLAGS"
18343
18344if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18345	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18346	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18347printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18348if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18349then :
18350  printf %s "(cached) " >&6
18351else $as_nop
18352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18353/* end confdefs.h.  */
18354int i;
18355_ACEOF
18356if ac_fn_c_try_compile "$LINENO"
18357then :
18358  xorg_cv_cc_flag_unknown_warning_option=yes
18359else $as_nop
18360  xorg_cv_cc_flag_unknown_warning_option=no
18361fi
18362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18363fi
18364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18365printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18366	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18367	CFLAGS="$xorg_testset_save_CFLAGS"
18368fi
18369
18370if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18371	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18372		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18373	fi
18374	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18375	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18376printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18377if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18378then :
18379  printf %s "(cached) " >&6
18380else $as_nop
18381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18382/* end confdefs.h.  */
18383int i;
18384_ACEOF
18385if ac_fn_c_try_compile "$LINENO"
18386then :
18387  xorg_cv_cc_flag_unused_command_line_argument=yes
18388else $as_nop
18389  xorg_cv_cc_flag_unused_command_line_argument=no
18390fi
18391rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18392fi
18393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18394printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18395	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18396	CFLAGS="$xorg_testset_save_CFLAGS"
18397fi
18398
18399found="no"
18400
18401	if test $found = "no" ; then
18402		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18403			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18404		fi
18405
18406		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18407			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18408		fi
18409
18410		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18411
18412		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18413printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18414		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18415		if eval test \${$cacheid+y}
18416then :
18417  printf %s "(cached) " >&6
18418else $as_nop
18419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18420/* end confdefs.h.  */
18421int i;
18422int
18423main (void)
18424{
18425
18426  ;
18427  return 0;
18428}
18429_ACEOF
18430if ac_fn_c_try_link "$LINENO"
18431then :
18432  eval $cacheid=yes
18433else $as_nop
18434  eval $cacheid=no
18435fi
18436rm -f core conftest.err conftest.$ac_objext conftest.beam \
18437    conftest$ac_exeext conftest.$ac_ext
18438fi
18439
18440
18441		CFLAGS="$xorg_testset_save_CFLAGS"
18442
18443		eval supported=\$$cacheid
18444		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18445printf "%s\n" "$supported" >&6; }
18446		if test "$supported" = "yes" ; then
18447			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18448			found="yes"
18449		fi
18450	fi
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466xorg_testset_save_CFLAGS="$CFLAGS"
18467
18468if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18469	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18470	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18471printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18472if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18473then :
18474  printf %s "(cached) " >&6
18475else $as_nop
18476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18477/* end confdefs.h.  */
18478int i;
18479_ACEOF
18480if ac_fn_c_try_compile "$LINENO"
18481then :
18482  xorg_cv_cc_flag_unknown_warning_option=yes
18483else $as_nop
18484  xorg_cv_cc_flag_unknown_warning_option=no
18485fi
18486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18487fi
18488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18489printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18490	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18491	CFLAGS="$xorg_testset_save_CFLAGS"
18492fi
18493
18494if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18495	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18496		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18497	fi
18498	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18499	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18500printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18501if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18502then :
18503  printf %s "(cached) " >&6
18504else $as_nop
18505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18506/* end confdefs.h.  */
18507int i;
18508_ACEOF
18509if ac_fn_c_try_compile "$LINENO"
18510then :
18511  xorg_cv_cc_flag_unused_command_line_argument=yes
18512else $as_nop
18513  xorg_cv_cc_flag_unused_command_line_argument=no
18514fi
18515rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18516fi
18517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18518printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18519	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18520	CFLAGS="$xorg_testset_save_CFLAGS"
18521fi
18522
18523found="no"
18524
18525	if test $found = "no" ; then
18526		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18527			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18528		fi
18529
18530		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18531			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18532		fi
18533
18534		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18535
18536		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18537printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18538		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18539		if eval test \${$cacheid+y}
18540then :
18541  printf %s "(cached) " >&6
18542else $as_nop
18543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18544/* end confdefs.h.  */
18545int i;
18546int
18547main (void)
18548{
18549
18550  ;
18551  return 0;
18552}
18553_ACEOF
18554if ac_fn_c_try_link "$LINENO"
18555then :
18556  eval $cacheid=yes
18557else $as_nop
18558  eval $cacheid=no
18559fi
18560rm -f core conftest.err conftest.$ac_objext conftest.beam \
18561    conftest$ac_exeext conftest.$ac_ext
18562fi
18563
18564
18565		CFLAGS="$xorg_testset_save_CFLAGS"
18566
18567		eval supported=\$$cacheid
18568		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18569printf "%s\n" "$supported" >&6; }
18570		if test "$supported" = "yes" ; then
18571			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18572			found="yes"
18573		fi
18574	fi
18575
18576
18577fi
18578
18579
18580
18581
18582
18583
18584
18585		CWARNFLAGS="$BASE_CFLAGS"
18586		if  test "x$GCC" = xyes ; then
18587		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18588		fi
18589
18590
18591
18592
18593
18594
18595
18596
18597# Check whether --enable-strict-compilation was given.
18598if test ${enable_strict_compilation+y}
18599then :
18600  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18601else $as_nop
18602  STRICT_COMPILE=no
18603fi
18604
18605
18606
18607
18608
18609
18610STRICT_CFLAGS=""
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624xorg_testset_save_CFLAGS="$CFLAGS"
18625
18626if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18627	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18628	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18629printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18630if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18631then :
18632  printf %s "(cached) " >&6
18633else $as_nop
18634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18635/* end confdefs.h.  */
18636int i;
18637_ACEOF
18638if ac_fn_c_try_compile "$LINENO"
18639then :
18640  xorg_cv_cc_flag_unknown_warning_option=yes
18641else $as_nop
18642  xorg_cv_cc_flag_unknown_warning_option=no
18643fi
18644rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18645fi
18646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18647printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18648	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18649	CFLAGS="$xorg_testset_save_CFLAGS"
18650fi
18651
18652if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18653	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18654		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18655	fi
18656	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18657	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18658printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18659if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18660then :
18661  printf %s "(cached) " >&6
18662else $as_nop
18663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18664/* end confdefs.h.  */
18665int i;
18666_ACEOF
18667if ac_fn_c_try_compile "$LINENO"
18668then :
18669  xorg_cv_cc_flag_unused_command_line_argument=yes
18670else $as_nop
18671  xorg_cv_cc_flag_unused_command_line_argument=no
18672fi
18673rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18674fi
18675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18676printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18677	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18678	CFLAGS="$xorg_testset_save_CFLAGS"
18679fi
18680
18681found="no"
18682
18683	if test $found = "no" ; then
18684		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18685			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18686		fi
18687
18688		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18689			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18690		fi
18691
18692		CFLAGS="$CFLAGS -pedantic"
18693
18694		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18695printf %s "checking if $CC supports -pedantic... " >&6; }
18696		cacheid=xorg_cv_cc_flag__pedantic
18697		if eval test \${$cacheid+y}
18698then :
18699  printf %s "(cached) " >&6
18700else $as_nop
18701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18702/* end confdefs.h.  */
18703int i;
18704int
18705main (void)
18706{
18707
18708  ;
18709  return 0;
18710}
18711_ACEOF
18712if ac_fn_c_try_link "$LINENO"
18713then :
18714  eval $cacheid=yes
18715else $as_nop
18716  eval $cacheid=no
18717fi
18718rm -f core conftest.err conftest.$ac_objext conftest.beam \
18719    conftest$ac_exeext conftest.$ac_ext
18720fi
18721
18722
18723		CFLAGS="$xorg_testset_save_CFLAGS"
18724
18725		eval supported=\$$cacheid
18726		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18727printf "%s\n" "$supported" >&6; }
18728		if test "$supported" = "yes" ; then
18729			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18730			found="yes"
18731		fi
18732	fi
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748xorg_testset_save_CFLAGS="$CFLAGS"
18749
18750if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18751	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18752	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18753printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18754if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18755then :
18756  printf %s "(cached) " >&6
18757else $as_nop
18758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18759/* end confdefs.h.  */
18760int i;
18761_ACEOF
18762if ac_fn_c_try_compile "$LINENO"
18763then :
18764  xorg_cv_cc_flag_unknown_warning_option=yes
18765else $as_nop
18766  xorg_cv_cc_flag_unknown_warning_option=no
18767fi
18768rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18769fi
18770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18771printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18772	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18773	CFLAGS="$xorg_testset_save_CFLAGS"
18774fi
18775
18776if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18777	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18778		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18779	fi
18780	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18781	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18782printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18783if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18784then :
18785  printf %s "(cached) " >&6
18786else $as_nop
18787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18788/* end confdefs.h.  */
18789int i;
18790_ACEOF
18791if ac_fn_c_try_compile "$LINENO"
18792then :
18793  xorg_cv_cc_flag_unused_command_line_argument=yes
18794else $as_nop
18795  xorg_cv_cc_flag_unused_command_line_argument=no
18796fi
18797rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18798fi
18799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18800printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18801	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18802	CFLAGS="$xorg_testset_save_CFLAGS"
18803fi
18804
18805found="no"
18806
18807	if test $found = "no" ; then
18808		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18809			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18810		fi
18811
18812		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18813			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18814		fi
18815
18816		CFLAGS="$CFLAGS -Werror"
18817
18818		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18819printf %s "checking if $CC supports -Werror... " >&6; }
18820		cacheid=xorg_cv_cc_flag__Werror
18821		if eval test \${$cacheid+y}
18822then :
18823  printf %s "(cached) " >&6
18824else $as_nop
18825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18826/* end confdefs.h.  */
18827int i;
18828int
18829main (void)
18830{
18831
18832  ;
18833  return 0;
18834}
18835_ACEOF
18836if ac_fn_c_try_link "$LINENO"
18837then :
18838  eval $cacheid=yes
18839else $as_nop
18840  eval $cacheid=no
18841fi
18842rm -f core conftest.err conftest.$ac_objext conftest.beam \
18843    conftest$ac_exeext conftest.$ac_ext
18844fi
18845
18846
18847		CFLAGS="$xorg_testset_save_CFLAGS"
18848
18849		eval supported=\$$cacheid
18850		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18851printf "%s\n" "$supported" >&6; }
18852		if test "$supported" = "yes" ; then
18853			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18854			found="yes"
18855		fi
18856	fi
18857
18858	if test $found = "no" ; then
18859		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18860			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18861		fi
18862
18863		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18864			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18865		fi
18866
18867		CFLAGS="$CFLAGS -errwarn"
18868
18869		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18870printf %s "checking if $CC supports -errwarn... " >&6; }
18871		cacheid=xorg_cv_cc_flag__errwarn
18872		if eval test \${$cacheid+y}
18873then :
18874  printf %s "(cached) " >&6
18875else $as_nop
18876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18877/* end confdefs.h.  */
18878int i;
18879int
18880main (void)
18881{
18882
18883  ;
18884  return 0;
18885}
18886_ACEOF
18887if ac_fn_c_try_link "$LINENO"
18888then :
18889  eval $cacheid=yes
18890else $as_nop
18891  eval $cacheid=no
18892fi
18893rm -f core conftest.err conftest.$ac_objext conftest.beam \
18894    conftest$ac_exeext conftest.$ac_ext
18895fi
18896
18897
18898		CFLAGS="$xorg_testset_save_CFLAGS"
18899
18900		eval supported=\$$cacheid
18901		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18902printf "%s\n" "$supported" >&6; }
18903		if test "$supported" = "yes" ; then
18904			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18905			found="yes"
18906		fi
18907	fi
18908
18909
18910
18911# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18912# activate it with -Werror, so we add it here explicitly.
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926xorg_testset_save_CFLAGS="$CFLAGS"
18927
18928if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18929	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18930	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18931printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18932if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18933then :
18934  printf %s "(cached) " >&6
18935else $as_nop
18936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18937/* end confdefs.h.  */
18938int i;
18939_ACEOF
18940if ac_fn_c_try_compile "$LINENO"
18941then :
18942  xorg_cv_cc_flag_unknown_warning_option=yes
18943else $as_nop
18944  xorg_cv_cc_flag_unknown_warning_option=no
18945fi
18946rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18947fi
18948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18949printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18950	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18951	CFLAGS="$xorg_testset_save_CFLAGS"
18952fi
18953
18954if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18955	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18956		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18957	fi
18958	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18959	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18960printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18961if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18962then :
18963  printf %s "(cached) " >&6
18964else $as_nop
18965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18966/* end confdefs.h.  */
18967int i;
18968_ACEOF
18969if ac_fn_c_try_compile "$LINENO"
18970then :
18971  xorg_cv_cc_flag_unused_command_line_argument=yes
18972else $as_nop
18973  xorg_cv_cc_flag_unused_command_line_argument=no
18974fi
18975rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18976fi
18977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18978printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18979	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18980	CFLAGS="$xorg_testset_save_CFLAGS"
18981fi
18982
18983found="no"
18984
18985	if test $found = "no" ; then
18986		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18987			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18988		fi
18989
18990		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18991			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18992		fi
18993
18994		CFLAGS="$CFLAGS -Werror=attributes"
18995
18996		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18997printf %s "checking if $CC supports -Werror=attributes... " >&6; }
18998		cacheid=xorg_cv_cc_flag__Werror_attributes
18999		if eval test \${$cacheid+y}
19000then :
19001  printf %s "(cached) " >&6
19002else $as_nop
19003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19004/* end confdefs.h.  */
19005int i;
19006int
19007main (void)
19008{
19009
19010  ;
19011  return 0;
19012}
19013_ACEOF
19014if ac_fn_c_try_link "$LINENO"
19015then :
19016  eval $cacheid=yes
19017else $as_nop
19018  eval $cacheid=no
19019fi
19020rm -f core conftest.err conftest.$ac_objext conftest.beam \
19021    conftest$ac_exeext conftest.$ac_ext
19022fi
19023
19024
19025		CFLAGS="$xorg_testset_save_CFLAGS"
19026
19027		eval supported=\$$cacheid
19028		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19029printf "%s\n" "$supported" >&6; }
19030		if test "$supported" = "yes" ; then
19031			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19032			found="yes"
19033		fi
19034	fi
19035
19036
19037
19038if test "x$STRICT_COMPILE" = "xyes"; then
19039    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19040    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19041fi
19042
19043
19044
19045
19046
19047
19048cat >>confdefs.h <<_ACEOF
19049#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19050_ACEOF
19051
19052	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19053	if test "x$PVM" = "x"; then
19054		PVM="0"
19055	fi
19056
19057printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19058
19059	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19060	if test "x$PVP" = "x"; then
19061		PVP="0"
19062	fi
19063
19064printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19065
19066
19067
19068CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19069mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19070|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19071touch \$(top_srcdir)/ChangeLog; \
19072echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19073
19074
19075
19076
19077macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19078INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19079mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19080|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19081touch \$(top_srcdir)/INSTALL; \
19082echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19083
19084
19085
19086
19087
19088
19089case $host_os in
19090    solaris*)
19091        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19092        # check for a man page file found in later versions that use
19093        # traditional section numbers instead
19094        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19095printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19096if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19097then :
19098  printf %s "(cached) " >&6
19099else $as_nop
19100  test "$cross_compiling" = yes &&
19101  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19102if test -r "/usr/share/man/man7/attributes.7"; then
19103  ac_cv_file__usr_share_man_man7_attributes_7=yes
19104else
19105  ac_cv_file__usr_share_man_man7_attributes_7=no
19106fi
19107fi
19108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19109printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19110if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19111then :
19112  SYSV_MAN_SECTIONS=false
19113else $as_nop
19114  SYSV_MAN_SECTIONS=true
19115fi
19116
19117        ;;
19118    *) SYSV_MAN_SECTIONS=false ;;
19119esac
19120
19121if test x$APP_MAN_SUFFIX = x    ; then
19122    APP_MAN_SUFFIX=1
19123fi
19124if test x$APP_MAN_DIR = x    ; then
19125    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19126fi
19127
19128if test x$LIB_MAN_SUFFIX = x    ; then
19129    LIB_MAN_SUFFIX=3
19130fi
19131if test x$LIB_MAN_DIR = x    ; then
19132    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19133fi
19134
19135if test x$FILE_MAN_SUFFIX = x    ; then
19136    case $SYSV_MAN_SECTIONS in
19137	true)				FILE_MAN_SUFFIX=4  ;;
19138	*)				FILE_MAN_SUFFIX=5  ;;
19139    esac
19140fi
19141if test x$FILE_MAN_DIR = x    ; then
19142    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19143fi
19144
19145if test x$MISC_MAN_SUFFIX = x    ; then
19146    case $SYSV_MAN_SECTIONS in
19147	true)				MISC_MAN_SUFFIX=5  ;;
19148	*)				MISC_MAN_SUFFIX=7  ;;
19149    esac
19150fi
19151if test x$MISC_MAN_DIR = x    ; then
19152    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19153fi
19154
19155if test x$DRIVER_MAN_SUFFIX = x    ; then
19156    case $SYSV_MAN_SECTIONS in
19157	true)				DRIVER_MAN_SUFFIX=7  ;;
19158	*)				DRIVER_MAN_SUFFIX=4  ;;
19159    esac
19160fi
19161if test x$DRIVER_MAN_DIR = x    ; then
19162    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19163fi
19164
19165if test x$ADMIN_MAN_SUFFIX = x    ; then
19166    case $SYSV_MAN_SECTIONS in
19167	true)				ADMIN_MAN_SUFFIX=1m ;;
19168	*)				ADMIN_MAN_SUFFIX=8  ;;
19169    esac
19170fi
19171if test x$ADMIN_MAN_DIR = x    ; then
19172    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19173fi
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189XORG_MAN_PAGE="X Version 11"
19190
19191MAN_SUBSTS="\
19192	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19193	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19194	-e 's|__xservername__|Xorg|g' \
19195	-e 's|__xconfigfile__|xorg.conf|g' \
19196	-e 's|__projectroot__|\$(prefix)|g' \
19197	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
19198	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19199	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19200	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19201	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19202	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19203	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19204
19205
19206
19207# Check whether --enable-silent-rules was given.
19208if test ${enable_silent_rules+y}
19209then :
19210  enableval=$enable_silent_rules;
19211fi
19212
19213case $enable_silent_rules in # (((
19214  yes) AM_DEFAULT_VERBOSITY=0;;
19215   no) AM_DEFAULT_VERBOSITY=1;;
19216    *) AM_DEFAULT_VERBOSITY=0;;
19217esac
19218am_make=${MAKE-make}
19219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19220printf %s "checking whether $am_make supports nested variables... " >&6; }
19221if test ${am_cv_make_support_nested_variables+y}
19222then :
19223  printf %s "(cached) " >&6
19224else $as_nop
19225  if printf "%s\n" 'TRUE=$(BAR$(V))
19226BAR0=false
19227BAR1=true
19228V=1
19229am__doit:
19230	@$(TRUE)
19231.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19232  am_cv_make_support_nested_variables=yes
19233else
19234  am_cv_make_support_nested_variables=no
19235fi
19236fi
19237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19238printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19239if test $am_cv_make_support_nested_variables = yes; then
19240    AM_V='$(V)'
19241  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19242else
19243  AM_V=$AM_DEFAULT_VERBOSITY
19244  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19245fi
19246AM_BACKSLASH='\'
19247
19248
19249
19250# Check whether --enable-malloc0returnsnull was given.
19251if test ${enable_malloc0returnsnull+y}
19252then :
19253  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
19254else $as_nop
19255  MALLOC_ZERO_RETURNS_NULL=auto
19256fi
19257
19258
19259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
19260printf %s "checking whether malloc(0) returns NULL... " >&6; }
19261if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
19262if test ${xorg_cv_malloc0_returns_null+y}
19263then :
19264  printf %s "(cached) " >&6
19265else $as_nop
19266  if test "$cross_compiling" = yes
19267then :
19268  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19269printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19270as_fn_error $? "cannot run test program while cross compiling
19271See \`config.log' for more details" "$LINENO" 5; }
19272else $as_nop
19273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19274/* end confdefs.h.  */
19275
19276#include <stdlib.h>
19277
19278int
19279main (void)
19280{
19281
19282    char *m0, *r0, *c0, *p;
19283    m0 = malloc(0);
19284    p = malloc(10);
19285    r0 = realloc(p,0);
19286    c0 = calloc(0,10);
19287    exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
19288
19289  ;
19290  return 0;
19291}
19292_ACEOF
19293if ac_fn_c_try_run "$LINENO"
19294then :
19295  xorg_cv_malloc0_returns_null=yes
19296else $as_nop
19297  xorg_cv_malloc0_returns_null=no
19298fi
19299rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19300  conftest.$ac_objext conftest.beam conftest.$ac_ext
19301fi
19302
19303fi
19304
19305MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
19306fi
19307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
19308printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; }
19309
19310if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
19311	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
19312	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
19313	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
19314else
19315	MALLOC_ZERO_CFLAGS=""
19316	XMALLOC_ZERO_CFLAGS=""
19317	XTMALLOC_ZERO_CFLAGS=""
19318fi
19319
19320
19321
19322
19323
19324
19325# Check render configuration, strip extra digits from package version to
19326# find the required protocol version
19327if test "$VERSION" = "" ; then
19328       VERSION=$PACKAGE_VERSION;
19329fi
19330RENDER_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
19331
19332
19333# Obtain compiler/linker options for dependencies
19334
19335pkg_failed=no
19336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RENDER" >&5
19337printf %s "checking for RENDER... " >&6; }
19338
19339if test -n "$RENDER_CFLAGS"; then
19340    pkg_cv_RENDER_CFLAGS="$RENDER_CFLAGS"
19341 elif test -n "$PKG_CONFIG"; then
19342    if test -n "$PKG_CONFIG" && \
19343    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 renderproto >= \$RENDER_VERSION\""; } >&5
19344  ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 renderproto >= $RENDER_VERSION") 2>&5
19345  ac_status=$?
19346  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19347  test $ac_status = 0; }; then
19348  pkg_cv_RENDER_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.6 renderproto >= $RENDER_VERSION" 2>/dev/null`
19349		      test "x$?" != "x0" && pkg_failed=yes
19350else
19351  pkg_failed=yes
19352fi
19353 else
19354    pkg_failed=untried
19355fi
19356if test -n "$RENDER_LIBS"; then
19357    pkg_cv_RENDER_LIBS="$RENDER_LIBS"
19358 elif test -n "$PKG_CONFIG"; then
19359    if test -n "$PKG_CONFIG" && \
19360    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 renderproto >= \$RENDER_VERSION\""; } >&5
19361  ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 renderproto >= $RENDER_VERSION") 2>&5
19362  ac_status=$?
19363  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19364  test $ac_status = 0; }; then
19365  pkg_cv_RENDER_LIBS=`$PKG_CONFIG --libs "x11 >= 1.6 renderproto >= $RENDER_VERSION" 2>/dev/null`
19366		      test "x$?" != "x0" && pkg_failed=yes
19367else
19368  pkg_failed=yes
19369fi
19370 else
19371    pkg_failed=untried
19372fi
19373
19374
19375
19376if test $pkg_failed = yes; then
19377   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19378printf "%s\n" "no" >&6; }
19379
19380if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19381        _pkg_short_errors_supported=yes
19382else
19383        _pkg_short_errors_supported=no
19384fi
19385        if test $_pkg_short_errors_supported = yes; then
19386	        RENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.6 renderproto >= $RENDER_VERSION" 2>&1`
19387        else
19388	        RENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.6 renderproto >= $RENDER_VERSION" 2>&1`
19389        fi
19390	# Put the nasty error message in config.log where it belongs
19391	echo "$RENDER_PKG_ERRORS" >&5
19392
19393	as_fn_error $? "Package requirements (x11 >= 1.6 renderproto >= $RENDER_VERSION) were not met:
19394
19395$RENDER_PKG_ERRORS
19396
19397Consider adjusting the PKG_CONFIG_PATH environment variable if you
19398installed software in a non-standard prefix.
19399
19400Alternatively, you may set the environment variables RENDER_CFLAGS
19401and RENDER_LIBS to avoid the need to call pkg-config.
19402See the pkg-config man page for more details." "$LINENO" 5
19403elif test $pkg_failed = untried; then
19404     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19405printf "%s\n" "no" >&6; }
19406	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19407printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19408as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19409is in your PATH or set the PKG_CONFIG environment variable to the full
19410path to pkg-config.
19411
19412Alternatively, you may set the environment variables RENDER_CFLAGS
19413and RENDER_LIBS to avoid the need to call pkg-config.
19414See the pkg-config man page for more details.
19415
19416To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19417See \`config.log' for more details" "$LINENO" 5; }
19418else
19419	RENDER_CFLAGS=$pkg_cv_RENDER_CFLAGS
19420	RENDER_LIBS=$pkg_cv_RENDER_LIBS
19421        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19422printf "%s\n" "yes" >&6; }
19423
19424fi
19425
19426ac_config_files="$ac_config_files Makefile src/Makefile Doxyfile xrender.pc"
19427
19428cat >confcache <<\_ACEOF
19429# This file is a shell script that caches the results of configure
19430# tests run on this system so they can be shared between configure
19431# scripts and configure runs, see configure's option --config-cache.
19432# It is not useful on other systems.  If it contains results you don't
19433# want to keep, you may remove or edit it.
19434#
19435# config.status only pays attention to the cache file if you give it
19436# the --recheck option to rerun configure.
19437#
19438# `ac_cv_env_foo' variables (set or unset) will be overridden when
19439# loading this file, other *unset* `ac_cv_foo' will be assigned the
19440# following values.
19441
19442_ACEOF
19443
19444# The following way of writing the cache mishandles newlines in values,
19445# but we know of no workaround that is simple, portable, and efficient.
19446# So, we kill variables containing newlines.
19447# Ultrix sh set writes to stderr and can't be redirected directly,
19448# and sets the high bit in the cache file unless we assign to the vars.
19449(
19450  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19451    eval ac_val=\$$ac_var
19452    case $ac_val in #(
19453    *${as_nl}*)
19454      case $ac_var in #(
19455      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19456printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19457      esac
19458      case $ac_var in #(
19459      _ | IFS | as_nl) ;; #(
19460      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19461      *) { eval $ac_var=; unset $ac_var;} ;;
19462      esac ;;
19463    esac
19464  done
19465
19466  (set) 2>&1 |
19467    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19468    *${as_nl}ac_space=\ *)
19469      # `set' does not quote correctly, so add quotes: double-quote
19470      # substitution turns \\\\ into \\, and sed turns \\ into \.
19471      sed -n \
19472	"s/'/'\\\\''/g;
19473	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19474      ;; #(
19475    *)
19476      # `set' quotes correctly as required by POSIX, so do not add quotes.
19477      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19478      ;;
19479    esac |
19480    sort
19481) |
19482  sed '
19483     /^ac_cv_env_/b end
19484     t clear
19485     :clear
19486     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19487     t end
19488     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19489     :end' >>confcache
19490if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19491  if test -w "$cache_file"; then
19492    if test "x$cache_file" != "x/dev/null"; then
19493      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19494printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19495      if test ! -f "$cache_file" || test -h "$cache_file"; then
19496	cat confcache >"$cache_file"
19497      else
19498        case $cache_file in #(
19499        */* | ?:*)
19500	  mv -f confcache "$cache_file"$$ &&
19501	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19502        *)
19503	  mv -f confcache "$cache_file" ;;
19504	esac
19505      fi
19506    fi
19507  else
19508    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19509printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19510  fi
19511fi
19512rm -f confcache
19513
19514test "x$prefix" = xNONE && prefix=$ac_default_prefix
19515# Let make expand exec_prefix.
19516test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19517
19518DEFS=-DHAVE_CONFIG_H
19519
19520ac_libobjs=
19521ac_ltlibobjs=
19522U=
19523for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19524  # 1. Remove the extension, and $U if already installed.
19525  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19526  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19527  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19528  #    will be set to the directory where LIBOBJS objects are built.
19529  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19530  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19531done
19532LIBOBJS=$ac_libobjs
19533
19534LTLIBOBJS=$ac_ltlibobjs
19535
19536
19537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19538printf %s "checking that generated files are newer than configure... " >&6; }
19539   if test -n "$am_sleep_pid"; then
19540     # Hide warnings about reused PIDs.
19541     wait $am_sleep_pid 2>/dev/null
19542   fi
19543   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19544printf "%s\n" "done" >&6; }
19545 if test -n "$EXEEXT"; then
19546  am__EXEEXT_TRUE=
19547  am__EXEEXT_FALSE='#'
19548else
19549  am__EXEEXT_TRUE='#'
19550  am__EXEEXT_FALSE=
19551fi
19552
19553if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19554  as_fn_error $? "conditional \"AMDEP\" was never defined.
19555Usually this means the macro was only invoked conditionally." "$LINENO" 5
19556fi
19557if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19558  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19559Usually this means the macro was only invoked conditionally." "$LINENO" 5
19560fi
19561
19562: "${CONFIG_STATUS=./config.status}"
19563ac_write_fail=0
19564ac_clean_files_save=$ac_clean_files
19565ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19567printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19568as_write_fail=0
19569cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19570#! $SHELL
19571# Generated by $as_me.
19572# Run this file to recreate the current configuration.
19573# Compiler output produced by configure, useful for debugging
19574# configure, is in config.log if it exists.
19575
19576debug=false
19577ac_cs_recheck=false
19578ac_cs_silent=false
19579
19580SHELL=\${CONFIG_SHELL-$SHELL}
19581export SHELL
19582_ASEOF
19583cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19584## -------------------- ##
19585## M4sh Initialization. ##
19586## -------------------- ##
19587
19588# Be more Bourne compatible
19589DUALCASE=1; export DUALCASE # for MKS sh
19590as_nop=:
19591if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19592then :
19593  emulate sh
19594  NULLCMD=:
19595  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19596  # is contrary to our usage.  Disable this feature.
19597  alias -g '${1+"$@"}'='"$@"'
19598  setopt NO_GLOB_SUBST
19599else $as_nop
19600  case `(set -o) 2>/dev/null` in #(
19601  *posix*) :
19602    set -o posix ;; #(
19603  *) :
19604     ;;
19605esac
19606fi
19607
19608
19609
19610# Reset variables that may have inherited troublesome values from
19611# the environment.
19612
19613# IFS needs to be set, to space, tab, and newline, in precisely that order.
19614# (If _AS_PATH_WALK were called with IFS unset, it would have the
19615# side effect of setting IFS to empty, thus disabling word splitting.)
19616# Quoting is to prevent editors from complaining about space-tab.
19617as_nl='
19618'
19619export as_nl
19620IFS=" ""	$as_nl"
19621
19622PS1='$ '
19623PS2='> '
19624PS4='+ '
19625
19626# Ensure predictable behavior from utilities with locale-dependent output.
19627LC_ALL=C
19628export LC_ALL
19629LANGUAGE=C
19630export LANGUAGE
19631
19632# We cannot yet rely on "unset" to work, but we need these variables
19633# to be unset--not just set to an empty or harmless value--now, to
19634# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
19635# also avoids known problems related to "unset" and subshell syntax
19636# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19637for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19638do eval test \${$as_var+y} \
19639  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19640done
19641
19642# Ensure that fds 0, 1, and 2 are open.
19643if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19644if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19645if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
19646
19647# The user is always right.
19648if ${PATH_SEPARATOR+false} :; then
19649  PATH_SEPARATOR=:
19650  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19651    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19652      PATH_SEPARATOR=';'
19653  }
19654fi
19655
19656
19657# Find who we are.  Look in the path if we contain no directory separator.
19658as_myself=
19659case $0 in #((
19660  *[\\/]* ) as_myself=$0 ;;
19661  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19662for as_dir in $PATH
19663do
19664  IFS=$as_save_IFS
19665  case $as_dir in #(((
19666    '') as_dir=./ ;;
19667    */) ;;
19668    *) as_dir=$as_dir/ ;;
19669  esac
19670    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19671  done
19672IFS=$as_save_IFS
19673
19674     ;;
19675esac
19676# We did not find ourselves, most probably we were run as `sh COMMAND'
19677# in which case we are not to be found in the path.
19678if test "x$as_myself" = x; then
19679  as_myself=$0
19680fi
19681if test ! -f "$as_myself"; then
19682  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19683  exit 1
19684fi
19685
19686
19687
19688# as_fn_error STATUS ERROR [LINENO LOG_FD]
19689# ----------------------------------------
19690# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19691# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19692# script with STATUS, using 1 if that was 0.
19693as_fn_error ()
19694{
19695  as_status=$1; test $as_status -eq 0 && as_status=1
19696  if test "$4"; then
19697    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19698    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19699  fi
19700  printf "%s\n" "$as_me: error: $2" >&2
19701  as_fn_exit $as_status
19702} # as_fn_error
19703
19704
19705
19706# as_fn_set_status STATUS
19707# -----------------------
19708# Set $? to STATUS, without forking.
19709as_fn_set_status ()
19710{
19711  return $1
19712} # as_fn_set_status
19713
19714# as_fn_exit STATUS
19715# -----------------
19716# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19717as_fn_exit ()
19718{
19719  set +e
19720  as_fn_set_status $1
19721  exit $1
19722} # as_fn_exit
19723
19724# as_fn_unset VAR
19725# ---------------
19726# Portably unset VAR.
19727as_fn_unset ()
19728{
19729  { eval $1=; unset $1;}
19730}
19731as_unset=as_fn_unset
19732
19733# as_fn_append VAR VALUE
19734# ----------------------
19735# Append the text in VALUE to the end of the definition contained in VAR. Take
19736# advantage of any shell optimizations that allow amortized linear growth over
19737# repeated appends, instead of the typical quadratic growth present in naive
19738# implementations.
19739if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19740then :
19741  eval 'as_fn_append ()
19742  {
19743    eval $1+=\$2
19744  }'
19745else $as_nop
19746  as_fn_append ()
19747  {
19748    eval $1=\$$1\$2
19749  }
19750fi # as_fn_append
19751
19752# as_fn_arith ARG...
19753# ------------------
19754# Perform arithmetic evaluation on the ARGs, and store the result in the
19755# global $as_val. Take advantage of shells that can avoid forks. The arguments
19756# must be portable across $(()) and expr.
19757if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19758then :
19759  eval 'as_fn_arith ()
19760  {
19761    as_val=$(( $* ))
19762  }'
19763else $as_nop
19764  as_fn_arith ()
19765  {
19766    as_val=`expr "$@" || test $? -eq 1`
19767  }
19768fi # as_fn_arith
19769
19770
19771if expr a : '\(a\)' >/dev/null 2>&1 &&
19772   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19773  as_expr=expr
19774else
19775  as_expr=false
19776fi
19777
19778if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19779  as_basename=basename
19780else
19781  as_basename=false
19782fi
19783
19784if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19785  as_dirname=dirname
19786else
19787  as_dirname=false
19788fi
19789
19790as_me=`$as_basename -- "$0" ||
19791$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19792	 X"$0" : 'X\(//\)$' \| \
19793	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19794printf "%s\n" X/"$0" |
19795    sed '/^.*\/\([^/][^/]*\)\/*$/{
19796	    s//\1/
19797	    q
19798	  }
19799	  /^X\/\(\/\/\)$/{
19800	    s//\1/
19801	    q
19802	  }
19803	  /^X\/\(\/\).*/{
19804	    s//\1/
19805	    q
19806	  }
19807	  s/.*/./; q'`
19808
19809# Avoid depending upon Character Ranges.
19810as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19811as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19812as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19813as_cr_digits='0123456789'
19814as_cr_alnum=$as_cr_Letters$as_cr_digits
19815
19816
19817# Determine whether it's possible to make 'echo' print without a newline.
19818# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19819# for compatibility with existing Makefiles.
19820ECHO_C= ECHO_N= ECHO_T=
19821case `echo -n x` in #(((((
19822-n*)
19823  case `echo 'xy\c'` in
19824  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19825  xy)  ECHO_C='\c';;
19826  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19827       ECHO_T='	';;
19828  esac;;
19829*)
19830  ECHO_N='-n';;
19831esac
19832
19833# For backward compatibility with old third-party macros, we provide
19834# the shell variables $as_echo and $as_echo_n.  New code should use
19835# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19836as_echo='printf %s\n'
19837as_echo_n='printf %s'
19838
19839rm -f conf$$ conf$$.exe conf$$.file
19840if test -d conf$$.dir; then
19841  rm -f conf$$.dir/conf$$.file
19842else
19843  rm -f conf$$.dir
19844  mkdir conf$$.dir 2>/dev/null
19845fi
19846if (echo >conf$$.file) 2>/dev/null; then
19847  if ln -s conf$$.file conf$$ 2>/dev/null; then
19848    as_ln_s='ln -s'
19849    # ... but there are two gotchas:
19850    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19851    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19852    # In both cases, we have to default to `cp -pR'.
19853    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19854      as_ln_s='cp -pR'
19855  elif ln conf$$.file conf$$ 2>/dev/null; then
19856    as_ln_s=ln
19857  else
19858    as_ln_s='cp -pR'
19859  fi
19860else
19861  as_ln_s='cp -pR'
19862fi
19863rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19864rmdir conf$$.dir 2>/dev/null
19865
19866
19867# as_fn_mkdir_p
19868# -------------
19869# Create "$as_dir" as a directory, including parents if necessary.
19870as_fn_mkdir_p ()
19871{
19872
19873  case $as_dir in #(
19874  -*) as_dir=./$as_dir;;
19875  esac
19876  test -d "$as_dir" || eval $as_mkdir_p || {
19877    as_dirs=
19878    while :; do
19879      case $as_dir in #(
19880      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19881      *) as_qdir=$as_dir;;
19882      esac
19883      as_dirs="'$as_qdir' $as_dirs"
19884      as_dir=`$as_dirname -- "$as_dir" ||
19885$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19886	 X"$as_dir" : 'X\(//\)[^/]' \| \
19887	 X"$as_dir" : 'X\(//\)$' \| \
19888	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19889printf "%s\n" X"$as_dir" |
19890    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19891	    s//\1/
19892	    q
19893	  }
19894	  /^X\(\/\/\)[^/].*/{
19895	    s//\1/
19896	    q
19897	  }
19898	  /^X\(\/\/\)$/{
19899	    s//\1/
19900	    q
19901	  }
19902	  /^X\(\/\).*/{
19903	    s//\1/
19904	    q
19905	  }
19906	  s/.*/./; q'`
19907      test -d "$as_dir" && break
19908    done
19909    test -z "$as_dirs" || eval "mkdir $as_dirs"
19910  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19911
19912
19913} # as_fn_mkdir_p
19914if mkdir -p . 2>/dev/null; then
19915  as_mkdir_p='mkdir -p "$as_dir"'
19916else
19917  test -d ./-p && rmdir ./-p
19918  as_mkdir_p=false
19919fi
19920
19921
19922# as_fn_executable_p FILE
19923# -----------------------
19924# Test if FILE is an executable regular file.
19925as_fn_executable_p ()
19926{
19927  test -f "$1" && test -x "$1"
19928} # as_fn_executable_p
19929as_test_x='test -x'
19930as_executable_p=as_fn_executable_p
19931
19932# Sed expression to map a string onto a valid CPP name.
19933as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19934
19935# Sed expression to map a string onto a valid variable name.
19936as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19937
19938
19939exec 6>&1
19940## ----------------------------------- ##
19941## Main body of $CONFIG_STATUS script. ##
19942## ----------------------------------- ##
19943_ASEOF
19944test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19945
19946cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19947# Save the log message, to keep $0 and so on meaningful, and to
19948# report actual input values of CONFIG_FILES etc. instead of their
19949# values after options handling.
19950ac_log="
19951This file was extended by libXrender $as_me 0.9.11, which was
19952generated by GNU Autoconf 2.71.  Invocation command line was
19953
19954  CONFIG_FILES    = $CONFIG_FILES
19955  CONFIG_HEADERS  = $CONFIG_HEADERS
19956  CONFIG_LINKS    = $CONFIG_LINKS
19957  CONFIG_COMMANDS = $CONFIG_COMMANDS
19958  $ $0 $@
19959
19960on `(hostname || uname -n) 2>/dev/null | sed 1q`
19961"
19962
19963_ACEOF
19964
19965case $ac_config_files in *"
19966"*) set x $ac_config_files; shift; ac_config_files=$*;;
19967esac
19968
19969case $ac_config_headers in *"
19970"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19971esac
19972
19973
19974cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19975# Files that config.status was made for.
19976config_files="$ac_config_files"
19977config_headers="$ac_config_headers"
19978config_commands="$ac_config_commands"
19979
19980_ACEOF
19981
19982cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19983ac_cs_usage="\
19984\`$as_me' instantiates files and other configuration actions
19985from templates according to the current configuration.  Unless the files
19986and actions are specified as TAGs, all are instantiated by default.
19987
19988Usage: $0 [OPTION]... [TAG]...
19989
19990  -h, --help       print this help, then exit
19991  -V, --version    print version number and configuration settings, then exit
19992      --config     print configuration, then exit
19993  -q, --quiet, --silent
19994                   do not print progress messages
19995  -d, --debug      don't remove temporary files
19996      --recheck    update $as_me by reconfiguring in the same conditions
19997      --file=FILE[:TEMPLATE]
19998                   instantiate the configuration file FILE
19999      --header=FILE[:TEMPLATE]
20000                   instantiate the configuration header FILE
20001
20002Configuration files:
20003$config_files
20004
20005Configuration headers:
20006$config_headers
20007
20008Configuration commands:
20009$config_commands
20010
20011Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxrender/-/issues>."
20012
20013_ACEOF
20014ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20015ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20016cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20017ac_cs_config='$ac_cs_config_escaped'
20018ac_cs_version="\\
20019libXrender config.status 0.9.11
20020configured by $0, generated by GNU Autoconf 2.71,
20021  with options \\"\$ac_cs_config\\"
20022
20023Copyright (C) 2021 Free Software Foundation, Inc.
20024This config.status script is free software; the Free Software Foundation
20025gives unlimited permission to copy, distribute and modify it."
20026
20027ac_pwd='$ac_pwd'
20028srcdir='$srcdir'
20029INSTALL='$INSTALL'
20030MKDIR_P='$MKDIR_P'
20031AWK='$AWK'
20032test -n "\$AWK" || AWK=awk
20033_ACEOF
20034
20035cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20036# The default lists apply if the user does not specify any file.
20037ac_need_defaults=:
20038while test $# != 0
20039do
20040  case $1 in
20041  --*=?*)
20042    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20043    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20044    ac_shift=:
20045    ;;
20046  --*=)
20047    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20048    ac_optarg=
20049    ac_shift=:
20050    ;;
20051  *)
20052    ac_option=$1
20053    ac_optarg=$2
20054    ac_shift=shift
20055    ;;
20056  esac
20057
20058  case $ac_option in
20059  # Handling of the options.
20060  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20061    ac_cs_recheck=: ;;
20062  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20063    printf "%s\n" "$ac_cs_version"; exit ;;
20064  --config | --confi | --conf | --con | --co | --c )
20065    printf "%s\n" "$ac_cs_config"; exit ;;
20066  --debug | --debu | --deb | --de | --d | -d )
20067    debug=: ;;
20068  --file | --fil | --fi | --f )
20069    $ac_shift
20070    case $ac_optarg in
20071    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20072    '') as_fn_error $? "missing file argument" ;;
20073    esac
20074    as_fn_append CONFIG_FILES " '$ac_optarg'"
20075    ac_need_defaults=false;;
20076  --header | --heade | --head | --hea )
20077    $ac_shift
20078    case $ac_optarg in
20079    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20080    esac
20081    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20082    ac_need_defaults=false;;
20083  --he | --h)
20084    # Conflict between --help and --header
20085    as_fn_error $? "ambiguous option: \`$1'
20086Try \`$0 --help' for more information.";;
20087  --help | --hel | -h )
20088    printf "%s\n" "$ac_cs_usage"; exit ;;
20089  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20090  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20091    ac_cs_silent=: ;;
20092
20093  # This is an error.
20094  -*) as_fn_error $? "unrecognized option: \`$1'
20095Try \`$0 --help' for more information." ;;
20096
20097  *) as_fn_append ac_config_targets " $1"
20098     ac_need_defaults=false ;;
20099
20100  esac
20101  shift
20102done
20103
20104ac_configure_extra_args=
20105
20106if $ac_cs_silent; then
20107  exec 6>/dev/null
20108  ac_configure_extra_args="$ac_configure_extra_args --silent"
20109fi
20110
20111_ACEOF
20112cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20113if \$ac_cs_recheck; then
20114  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20115  shift
20116  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20117  CONFIG_SHELL='$SHELL'
20118  export CONFIG_SHELL
20119  exec "\$@"
20120fi
20121
20122_ACEOF
20123cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20124exec 5>>config.log
20125{
20126  echo
20127  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20128## Running $as_me. ##
20129_ASBOX
20130  printf "%s\n" "$ac_log"
20131} >&5
20132
20133_ACEOF
20134cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20135#
20136# INIT-COMMANDS
20137#
20138AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20139
20140
20141# The HP-UX ksh and POSIX shell print the target directory to stdout
20142# if CDPATH is set.
20143(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20144
20145sed_quote_subst='$sed_quote_subst'
20146double_quote_subst='$double_quote_subst'
20147delay_variable_subst='$delay_variable_subst'
20148macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20149macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20150enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20151enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20152pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20153enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20154shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20155SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20156ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20157PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20158host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20159host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20160host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20161build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20162build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20163build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20164SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20165Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20166GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20167EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20168FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20169LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20170NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20171LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20172max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20173ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20174exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20175lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20176lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20177lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20178lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20179lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20180reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20181reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20182FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20183OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20184deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20185file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20186file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20187want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20188DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20189sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20190AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20191lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20192AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20193archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20194STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20195RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20196old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20197old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20198old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20199lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20200CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20201CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20202compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20203GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20204lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20205lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20206lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20207lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20208lt_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"`'
20209lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20210nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20211lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20212lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20213objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20214MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20215lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20216lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20217lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20218lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20219lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20220need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20221MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20222DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20223NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20224LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20225OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20226OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20227libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20228shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20229extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20230archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20231enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20232export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20233whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20234compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20235old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20236old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20237archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20238archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20239module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20240module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20241with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20242allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20243no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20244hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20245hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20246hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20247hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20248hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20249hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20250hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20251inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20252link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20253always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20254export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20255exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20256include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20257prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20258postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20259file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20260variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20261need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20262need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20263version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20264runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20265shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20266shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20267libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20268library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20269soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20270install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20271postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20272postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20273finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20274finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20275hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20276sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20277configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20278configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20279hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20280enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20281enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20282enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20283old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20284striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20285
20286LTCC='$LTCC'
20287LTCFLAGS='$LTCFLAGS'
20288compiler='$compiler_DEFAULT'
20289
20290# A function that is used when there is no print builtin or printf.
20291func_fallback_echo ()
20292{
20293  eval 'cat <<_LTECHO_EOF
20294\$1
20295_LTECHO_EOF'
20296}
20297
20298# Quote evaled strings.
20299for var in SHELL \
20300ECHO \
20301PATH_SEPARATOR \
20302SED \
20303GREP \
20304EGREP \
20305FGREP \
20306LD \
20307NM \
20308LN_S \
20309lt_SP2NL \
20310lt_NL2SP \
20311reload_flag \
20312FILECMD \
20313OBJDUMP \
20314deplibs_check_method \
20315file_magic_cmd \
20316file_magic_glob \
20317want_nocaseglob \
20318DLLTOOL \
20319sharedlib_from_linklib_cmd \
20320AR \
20321archiver_list_spec \
20322STRIP \
20323RANLIB \
20324CC \
20325CFLAGS \
20326compiler \
20327lt_cv_sys_global_symbol_pipe \
20328lt_cv_sys_global_symbol_to_cdecl \
20329lt_cv_sys_global_symbol_to_import \
20330lt_cv_sys_global_symbol_to_c_name_address \
20331lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20332lt_cv_nm_interface \
20333nm_file_list_spec \
20334lt_cv_truncate_bin \
20335lt_prog_compiler_no_builtin_flag \
20336lt_prog_compiler_pic \
20337lt_prog_compiler_wl \
20338lt_prog_compiler_static \
20339lt_cv_prog_compiler_c_o \
20340need_locks \
20341MANIFEST_TOOL \
20342DSYMUTIL \
20343NMEDIT \
20344LIPO \
20345OTOOL \
20346OTOOL64 \
20347shrext_cmds \
20348export_dynamic_flag_spec \
20349whole_archive_flag_spec \
20350compiler_needs_object \
20351with_gnu_ld \
20352allow_undefined_flag \
20353no_undefined_flag \
20354hardcode_libdir_flag_spec \
20355hardcode_libdir_separator \
20356exclude_expsyms \
20357include_expsyms \
20358file_list_spec \
20359variables_saved_for_relink \
20360libname_spec \
20361library_names_spec \
20362soname_spec \
20363install_override_mode \
20364finish_eval \
20365old_striplib \
20366striplib; do
20367    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20368    *[\\\\\\\`\\"\\\$]*)
20369      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20370      ;;
20371    *)
20372      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20373      ;;
20374    esac
20375done
20376
20377# Double-quote double-evaled strings.
20378for var in reload_cmds \
20379old_postinstall_cmds \
20380old_postuninstall_cmds \
20381old_archive_cmds \
20382extract_expsyms_cmds \
20383old_archive_from_new_cmds \
20384old_archive_from_expsyms_cmds \
20385archive_cmds \
20386archive_expsym_cmds \
20387module_cmds \
20388module_expsym_cmds \
20389export_symbols_cmds \
20390prelink_cmds \
20391postlink_cmds \
20392postinstall_cmds \
20393postuninstall_cmds \
20394finish_cmds \
20395sys_lib_search_path_spec \
20396configure_time_dlsearch_path \
20397configure_time_lt_sys_library_path; do
20398    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20399    *[\\\\\\\`\\"\\\$]*)
20400      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20401      ;;
20402    *)
20403      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20404      ;;
20405    esac
20406done
20407
20408ac_aux_dir='$ac_aux_dir'
20409
20410# See if we are running on zsh, and set the options that allow our
20411# commands through without removal of \ escapes INIT.
20412if test -n "\${ZSH_VERSION+set}"; then
20413   setopt NO_GLOB_SUBST
20414fi
20415
20416
20417    PACKAGE='$PACKAGE'
20418    VERSION='$VERSION'
20419    RM='$RM'
20420    ofile='$ofile'
20421
20422
20423
20424
20425_ACEOF
20426
20427cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20428
20429# Handling of arguments.
20430for ac_config_target in $ac_config_targets
20431do
20432  case $ac_config_target in
20433    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20434    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20435    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20436    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20437    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20438    "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
20439    "xrender.pc") CONFIG_FILES="$CONFIG_FILES xrender.pc" ;;
20440
20441  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20442  esac
20443done
20444
20445
20446# If the user did not use the arguments to specify the items to instantiate,
20447# then the envvar interface is used.  Set only those that are not.
20448# We use the long form for the default assignment because of an extremely
20449# bizarre bug on SunOS 4.1.3.
20450if $ac_need_defaults; then
20451  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20452  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20453  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20454fi
20455
20456# Have a temporary directory for convenience.  Make it in the build tree
20457# simply because there is no reason against having it here, and in addition,
20458# creating and moving files from /tmp can sometimes cause problems.
20459# Hook for its removal unless debugging.
20460# Note that there is a small window in which the directory will not be cleaned:
20461# after its creation but before its name has been assigned to `$tmp'.
20462$debug ||
20463{
20464  tmp= ac_tmp=
20465  trap 'exit_status=$?
20466  : "${ac_tmp:=$tmp}"
20467  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20468' 0
20469  trap 'as_fn_exit 1' 1 2 13 15
20470}
20471# Create a (secure) tmp directory for tmp files.
20472
20473{
20474  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20475  test -d "$tmp"
20476}  ||
20477{
20478  tmp=./conf$$-$RANDOM
20479  (umask 077 && mkdir "$tmp")
20480} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20481ac_tmp=$tmp
20482
20483# Set up the scripts for CONFIG_FILES section.
20484# No need to generate them if there are no CONFIG_FILES.
20485# This happens for instance with `./config.status config.h'.
20486if test -n "$CONFIG_FILES"; then
20487
20488
20489ac_cr=`echo X | tr X '\015'`
20490# On cygwin, bash can eat \r inside `` if the user requested igncr.
20491# But we know of no other shell where ac_cr would be empty at this
20492# point, so we can use a bashism as a fallback.
20493if test "x$ac_cr" = x; then
20494  eval ac_cr=\$\'\\r\'
20495fi
20496ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20497if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20498  ac_cs_awk_cr='\\r'
20499else
20500  ac_cs_awk_cr=$ac_cr
20501fi
20502
20503echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20504_ACEOF
20505
20506
20507{
20508  echo "cat >conf$$subs.awk <<_ACEOF" &&
20509  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20510  echo "_ACEOF"
20511} >conf$$subs.sh ||
20512  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20513ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20514ac_delim='%!_!# '
20515for ac_last_try in false false false false false :; do
20516  . ./conf$$subs.sh ||
20517    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20518
20519  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20520  if test $ac_delim_n = $ac_delim_num; then
20521    break
20522  elif $ac_last_try; then
20523    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20524  else
20525    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20526  fi
20527done
20528rm -f conf$$subs.sh
20529
20530cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20531cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20532_ACEOF
20533sed -n '
20534h
20535s/^/S["/; s/!.*/"]=/
20536p
20537g
20538s/^[^!]*!//
20539:repl
20540t repl
20541s/'"$ac_delim"'$//
20542t delim
20543:nl
20544h
20545s/\(.\{148\}\)..*/\1/
20546t more1
20547s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20548p
20549n
20550b repl
20551:more1
20552s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20553p
20554g
20555s/.\{148\}//
20556t nl
20557:delim
20558h
20559s/\(.\{148\}\)..*/\1/
20560t more2
20561s/["\\]/\\&/g; s/^/"/; s/$/"/
20562p
20563b
20564:more2
20565s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20566p
20567g
20568s/.\{148\}//
20569t delim
20570' <conf$$subs.awk | sed '
20571/^[^""]/{
20572  N
20573  s/\n//
20574}
20575' >>$CONFIG_STATUS || ac_write_fail=1
20576rm -f conf$$subs.awk
20577cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20578_ACAWK
20579cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20580  for (key in S) S_is_set[key] = 1
20581  FS = ""
20582
20583}
20584{
20585  line = $ 0
20586  nfields = split(line, field, "@")
20587  substed = 0
20588  len = length(field[1])
20589  for (i = 2; i < nfields; i++) {
20590    key = field[i]
20591    keylen = length(key)
20592    if (S_is_set[key]) {
20593      value = S[key]
20594      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20595      len += length(value) + length(field[++i])
20596      substed = 1
20597    } else
20598      len += 1 + keylen
20599  }
20600
20601  print line
20602}
20603
20604_ACAWK
20605_ACEOF
20606cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20607if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20608  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20609else
20610  cat
20611fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20612  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20613_ACEOF
20614
20615# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20616# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20617# trailing colons and then remove the whole line if VPATH becomes empty
20618# (actually we leave an empty line to preserve line numbers).
20619if test "x$srcdir" = x.; then
20620  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20621h
20622s///
20623s/^/:/
20624s/[	 ]*$/:/
20625s/:\$(srcdir):/:/g
20626s/:\${srcdir}:/:/g
20627s/:@srcdir@:/:/g
20628s/^:*//
20629s/:*$//
20630x
20631s/\(=[	 ]*\).*/\1/
20632G
20633s/\n//
20634s/^[^=]*=[	 ]*$//
20635}'
20636fi
20637
20638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20639fi # test -n "$CONFIG_FILES"
20640
20641# Set up the scripts for CONFIG_HEADERS section.
20642# No need to generate them if there are no CONFIG_HEADERS.
20643# This happens for instance with `./config.status Makefile'.
20644if test -n "$CONFIG_HEADERS"; then
20645cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20646BEGIN {
20647_ACEOF
20648
20649# Transform confdefs.h into an awk script `defines.awk', embedded as
20650# here-document in config.status, that substitutes the proper values into
20651# config.h.in to produce config.h.
20652
20653# Create a delimiter string that does not exist in confdefs.h, to ease
20654# handling of long lines.
20655ac_delim='%!_!# '
20656for ac_last_try in false false :; do
20657  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20658  if test -z "$ac_tt"; then
20659    break
20660  elif $ac_last_try; then
20661    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20662  else
20663    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20664  fi
20665done
20666
20667# For the awk script, D is an array of macro values keyed by name,
20668# likewise P contains macro parameters if any.  Preserve backslash
20669# newline sequences.
20670
20671ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20672sed -n '
20673s/.\{148\}/&'"$ac_delim"'/g
20674t rset
20675:rset
20676s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20677t def
20678d
20679:def
20680s/\\$//
20681t bsnl
20682s/["\\]/\\&/g
20683s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20684D["\1"]=" \3"/p
20685s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20686d
20687:bsnl
20688s/["\\]/\\&/g
20689s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20690D["\1"]=" \3\\\\\\n"\\/p
20691t cont
20692s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20693t cont
20694d
20695:cont
20696n
20697s/.\{148\}/&'"$ac_delim"'/g
20698t clear
20699:clear
20700s/\\$//
20701t bsnlc
20702s/["\\]/\\&/g; s/^/"/; s/$/"/p
20703d
20704:bsnlc
20705s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20706b cont
20707' <confdefs.h | sed '
20708s/'"$ac_delim"'/"\\\
20709"/g' >>$CONFIG_STATUS || ac_write_fail=1
20710
20711cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20712  for (key in D) D_is_set[key] = 1
20713  FS = ""
20714}
20715/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20716  line = \$ 0
20717  split(line, arg, " ")
20718  if (arg[1] == "#") {
20719    defundef = arg[2]
20720    mac1 = arg[3]
20721  } else {
20722    defundef = substr(arg[1], 2)
20723    mac1 = arg[2]
20724  }
20725  split(mac1, mac2, "(") #)
20726  macro = mac2[1]
20727  prefix = substr(line, 1, index(line, defundef) - 1)
20728  if (D_is_set[macro]) {
20729    # Preserve the white space surrounding the "#".
20730    print prefix "define", macro P[macro] D[macro]
20731    next
20732  } else {
20733    # Replace #undef with comments.  This is necessary, for example,
20734    # in the case of _POSIX_SOURCE, which is predefined and required
20735    # on some systems where configure will not decide to define it.
20736    if (defundef == "undef") {
20737      print "/*", prefix defundef, macro, "*/"
20738      next
20739    }
20740  }
20741}
20742{ print }
20743_ACAWK
20744_ACEOF
20745cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20746  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20747fi # test -n "$CONFIG_HEADERS"
20748
20749
20750eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20751shift
20752for ac_tag
20753do
20754  case $ac_tag in
20755  :[FHLC]) ac_mode=$ac_tag; continue;;
20756  esac
20757  case $ac_mode$ac_tag in
20758  :[FHL]*:*);;
20759  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20760  :[FH]-) ac_tag=-:-;;
20761  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20762  esac
20763  ac_save_IFS=$IFS
20764  IFS=:
20765  set x $ac_tag
20766  IFS=$ac_save_IFS
20767  shift
20768  ac_file=$1
20769  shift
20770
20771  case $ac_mode in
20772  :L) ac_source=$1;;
20773  :[FH])
20774    ac_file_inputs=
20775    for ac_f
20776    do
20777      case $ac_f in
20778      -) ac_f="$ac_tmp/stdin";;
20779      *) # Look for the file first in the build tree, then in the source tree
20780	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20781	 # because $ac_f cannot contain `:'.
20782	 test -f "$ac_f" ||
20783	   case $ac_f in
20784	   [\\/$]*) false;;
20785	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20786	   esac ||
20787	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20788      esac
20789      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20790      as_fn_append ac_file_inputs " '$ac_f'"
20791    done
20792
20793    # Let's still pretend it is `configure' which instantiates (i.e., don't
20794    # use $as_me), people would be surprised to read:
20795    #    /* config.h.  Generated by config.status.  */
20796    configure_input='Generated from '`
20797	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20798	`' by configure.'
20799    if test x"$ac_file" != x-; then
20800      configure_input="$ac_file.  $configure_input"
20801      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20802printf "%s\n" "$as_me: creating $ac_file" >&6;}
20803    fi
20804    # Neutralize special characters interpreted by sed in replacement strings.
20805    case $configure_input in #(
20806    *\&* | *\|* | *\\* )
20807       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20808       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20809    *) ac_sed_conf_input=$configure_input;;
20810    esac
20811
20812    case $ac_tag in
20813    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20814      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20815    esac
20816    ;;
20817  esac
20818
20819  ac_dir=`$as_dirname -- "$ac_file" ||
20820$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20821	 X"$ac_file" : 'X\(//\)[^/]' \| \
20822	 X"$ac_file" : 'X\(//\)$' \| \
20823	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20824printf "%s\n" X"$ac_file" |
20825    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20826	    s//\1/
20827	    q
20828	  }
20829	  /^X\(\/\/\)[^/].*/{
20830	    s//\1/
20831	    q
20832	  }
20833	  /^X\(\/\/\)$/{
20834	    s//\1/
20835	    q
20836	  }
20837	  /^X\(\/\).*/{
20838	    s//\1/
20839	    q
20840	  }
20841	  s/.*/./; q'`
20842  as_dir="$ac_dir"; as_fn_mkdir_p
20843  ac_builddir=.
20844
20845case "$ac_dir" in
20846.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20847*)
20848  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
20849  # A ".." for each directory in $ac_dir_suffix.
20850  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20851  case $ac_top_builddir_sub in
20852  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20853  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20854  esac ;;
20855esac
20856ac_abs_top_builddir=$ac_pwd
20857ac_abs_builddir=$ac_pwd$ac_dir_suffix
20858# for backward compatibility:
20859ac_top_builddir=$ac_top_build_prefix
20860
20861case $srcdir in
20862  .)  # We are building in place.
20863    ac_srcdir=.
20864    ac_top_srcdir=$ac_top_builddir_sub
20865    ac_abs_top_srcdir=$ac_pwd ;;
20866  [\\/]* | ?:[\\/]* )  # Absolute name.
20867    ac_srcdir=$srcdir$ac_dir_suffix;
20868    ac_top_srcdir=$srcdir
20869    ac_abs_top_srcdir=$srcdir ;;
20870  *) # Relative name.
20871    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20872    ac_top_srcdir=$ac_top_build_prefix$srcdir
20873    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20874esac
20875ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20876
20877
20878  case $ac_mode in
20879  :F)
20880  #
20881  # CONFIG_FILE
20882  #
20883
20884  case $INSTALL in
20885  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20886  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20887  esac
20888  ac_MKDIR_P=$MKDIR_P
20889  case $MKDIR_P in
20890  [\\/$]* | ?:[\\/]* ) ;;
20891  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20892  esac
20893_ACEOF
20894
20895cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20896# If the template does not know about datarootdir, expand it.
20897# FIXME: This hack should be removed a few years after 2.60.
20898ac_datarootdir_hack=; ac_datarootdir_seen=
20899ac_sed_dataroot='
20900/datarootdir/ {
20901  p
20902  q
20903}
20904/@datadir@/p
20905/@docdir@/p
20906/@infodir@/p
20907/@localedir@/p
20908/@mandir@/p'
20909case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20910*datarootdir*) ac_datarootdir_seen=yes;;
20911*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20912  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20913printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20914_ACEOF
20915cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20916  ac_datarootdir_hack='
20917  s&@datadir@&$datadir&g
20918  s&@docdir@&$docdir&g
20919  s&@infodir@&$infodir&g
20920  s&@localedir@&$localedir&g
20921  s&@mandir@&$mandir&g
20922  s&\\\${datarootdir}&$datarootdir&g' ;;
20923esac
20924_ACEOF
20925
20926# Neutralize VPATH when `$srcdir' = `.'.
20927# Shell code in configure.ac might set extrasub.
20928# FIXME: do we really want to maintain this feature?
20929cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20930ac_sed_extra="$ac_vpsub
20931$extrasub
20932_ACEOF
20933cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20934:t
20935/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20936s|@configure_input@|$ac_sed_conf_input|;t t
20937s&@top_builddir@&$ac_top_builddir_sub&;t t
20938s&@top_build_prefix@&$ac_top_build_prefix&;t t
20939s&@srcdir@&$ac_srcdir&;t t
20940s&@abs_srcdir@&$ac_abs_srcdir&;t t
20941s&@top_srcdir@&$ac_top_srcdir&;t t
20942s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20943s&@builddir@&$ac_builddir&;t t
20944s&@abs_builddir@&$ac_abs_builddir&;t t
20945s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20946s&@INSTALL@&$ac_INSTALL&;t t
20947s&@MKDIR_P@&$ac_MKDIR_P&;t t
20948$ac_datarootdir_hack
20949"
20950eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20951  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20952
20953test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20954  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20955  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20956      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20957  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20958which seems to be undefined.  Please make sure it is defined" >&5
20959printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20960which seems to be undefined.  Please make sure it is defined" >&2;}
20961
20962  rm -f "$ac_tmp/stdin"
20963  case $ac_file in
20964  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20965  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20966  esac \
20967  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20968 ;;
20969  :H)
20970  #
20971  # CONFIG_HEADER
20972  #
20973  if test x"$ac_file" != x-; then
20974    {
20975      printf "%s\n" "/* $configure_input  */" >&1 \
20976      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20977    } >"$ac_tmp/config.h" \
20978      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20979    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20980      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20981printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
20982    else
20983      rm -f "$ac_file"
20984      mv "$ac_tmp/config.h" "$ac_file" \
20985	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20986    fi
20987  else
20988    printf "%s\n" "/* $configure_input  */" >&1 \
20989      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20990      || as_fn_error $? "could not create -" "$LINENO" 5
20991  fi
20992# Compute "$ac_file"'s index in $config_headers.
20993_am_arg="$ac_file"
20994_am_stamp_count=1
20995for _am_header in $config_headers :; do
20996  case $_am_header in
20997    $_am_arg | $_am_arg:* )
20998      break ;;
20999    * )
21000      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21001  esac
21002done
21003echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21004$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21005	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21006	 X"$_am_arg" : 'X\(//\)$' \| \
21007	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21008printf "%s\n" X"$_am_arg" |
21009    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21010	    s//\1/
21011	    q
21012	  }
21013	  /^X\(\/\/\)[^/].*/{
21014	    s//\1/
21015	    q
21016	  }
21017	  /^X\(\/\/\)$/{
21018	    s//\1/
21019	    q
21020	  }
21021	  /^X\(\/\).*/{
21022	    s//\1/
21023	    q
21024	  }
21025	  s/.*/./; q'`/stamp-h$_am_stamp_count
21026 ;;
21027
21028  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21029printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21030 ;;
21031  esac
21032
21033
21034  case $ac_file$ac_mode in
21035    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21036  # Older Autoconf quotes --file arguments for eval, but not when files
21037  # are listed without --file.  Let's play safe and only enable the eval
21038  # if we detect the quoting.
21039  # TODO: see whether this extra hack can be removed once we start
21040  # requiring Autoconf 2.70 or later.
21041  case $CONFIG_FILES in #(
21042  *\'*) :
21043    eval set x "$CONFIG_FILES" ;; #(
21044  *) :
21045    set x $CONFIG_FILES ;; #(
21046  *) :
21047     ;;
21048esac
21049  shift
21050  # Used to flag and report bootstrapping failures.
21051  am_rc=0
21052  for am_mf
21053  do
21054    # Strip MF so we end up with the name of the file.
21055    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21056    # Check whether this is an Automake generated Makefile which includes
21057    # dependency-tracking related rules and includes.
21058    # Grep'ing the whole file directly is not great: AIX grep has a line
21059    # limit of 2048, but all sed's we know have understand at least 4000.
21060    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21061      || continue
21062    am_dirpart=`$as_dirname -- "$am_mf" ||
21063$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21064	 X"$am_mf" : 'X\(//\)[^/]' \| \
21065	 X"$am_mf" : 'X\(//\)$' \| \
21066	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21067printf "%s\n" X"$am_mf" |
21068    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21069	    s//\1/
21070	    q
21071	  }
21072	  /^X\(\/\/\)[^/].*/{
21073	    s//\1/
21074	    q
21075	  }
21076	  /^X\(\/\/\)$/{
21077	    s//\1/
21078	    q
21079	  }
21080	  /^X\(\/\).*/{
21081	    s//\1/
21082	    q
21083	  }
21084	  s/.*/./; q'`
21085    am_filepart=`$as_basename -- "$am_mf" ||
21086$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21087	 X"$am_mf" : 'X\(//\)$' \| \
21088	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21089printf "%s\n" X/"$am_mf" |
21090    sed '/^.*\/\([^/][^/]*\)\/*$/{
21091	    s//\1/
21092	    q
21093	  }
21094	  /^X\/\(\/\/\)$/{
21095	    s//\1/
21096	    q
21097	  }
21098	  /^X\/\(\/\).*/{
21099	    s//\1/
21100	    q
21101	  }
21102	  s/.*/./; q'`
21103    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21104      && sed -e '/# am--include-marker/d' "$am_filepart" \
21105        | $MAKE -f - am--depfiles" >&5
21106   (cd "$am_dirpart" \
21107      && sed -e '/# am--include-marker/d' "$am_filepart" \
21108        | $MAKE -f - am--depfiles) >&5 2>&5
21109   ac_status=$?
21110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111   (exit $ac_status); } || am_rc=$?
21112  done
21113  if test $am_rc -ne 0; then
21114    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21115printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21116as_fn_error $? "Something went wrong bootstrapping makefile fragments
21117    for automatic dependency tracking.  If GNU make was not used, consider
21118    re-running the configure script with MAKE=\"gmake\" (or whatever is
21119    necessary).  You can also try re-running configure with the
21120    '--disable-dependency-tracking' option to at least be able to build
21121    the package (albeit without support for automatic dependency tracking).
21122See \`config.log' for more details" "$LINENO" 5; }
21123  fi
21124  { am_dirpart=; unset am_dirpart;}
21125  { am_filepart=; unset am_filepart;}
21126  { am_mf=; unset am_mf;}
21127  { am_rc=; unset am_rc;}
21128  rm -f conftest-deps.mk
21129}
21130 ;;
21131    "libtool":C)
21132
21133    # See if we are running on zsh, and set the options that allow our
21134    # commands through without removal of \ escapes.
21135    if test -n "${ZSH_VERSION+set}"; then
21136      setopt NO_GLOB_SUBST
21137    fi
21138
21139    cfgfile=${ofile}T
21140    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21141    $RM "$cfgfile"
21142
21143    cat <<_LT_EOF >> "$cfgfile"
21144#! $SHELL
21145# Generated automatically by $as_me ($PACKAGE) $VERSION
21146# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21147# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21148
21149# Provide generalized library-building support services.
21150# Written by Gordon Matzigkeit, 1996
21151
21152# Copyright (C) 2014 Free Software Foundation, Inc.
21153# This is free software; see the source for copying conditions.  There is NO
21154# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21155
21156# GNU Libtool is free software; you can redistribute it and/or modify
21157# it under the terms of the GNU General Public License as published by
21158# the Free Software Foundation; either version 2 of of the License, or
21159# (at your option) any later version.
21160#
21161# As a special exception to the GNU General Public License, if you
21162# distribute this file as part of a program or library that is built
21163# using GNU Libtool, you may include this file under the  same
21164# distribution terms that you use for the rest of that program.
21165#
21166# GNU Libtool is distributed in the hope that it will be useful, but
21167# WITHOUT ANY WARRANTY; without even the implied warranty of
21168# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21169# GNU General Public License for more details.
21170#
21171# You should have received a copy of the GNU General Public License
21172# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21173
21174
21175# The names of the tagged configurations supported by this script.
21176available_tags=''
21177
21178# Configured defaults for sys_lib_dlsearch_path munging.
21179: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21180
21181# ### BEGIN LIBTOOL CONFIG
21182
21183# Which release of libtool.m4 was used?
21184macro_version=$macro_version
21185macro_revision=$macro_revision
21186
21187# Whether or not to build shared libraries.
21188build_libtool_libs=$enable_shared
21189
21190# Whether or not to build static libraries.
21191build_old_libs=$enable_static
21192
21193# What type of objects to build.
21194pic_mode=$pic_mode
21195
21196# Whether or not to optimize for fast installation.
21197fast_install=$enable_fast_install
21198
21199# Shared archive member basename,for filename based shared library versioning on AIX.
21200shared_archive_member_spec=$shared_archive_member_spec
21201
21202# Shell to use when invoking shell scripts.
21203SHELL=$lt_SHELL
21204
21205# An echo program that protects backslashes.
21206ECHO=$lt_ECHO
21207
21208# The PATH separator for the build system.
21209PATH_SEPARATOR=$lt_PATH_SEPARATOR
21210
21211# The host system.
21212host_alias=$host_alias
21213host=$host
21214host_os=$host_os
21215
21216# The build system.
21217build_alias=$build_alias
21218build=$build
21219build_os=$build_os
21220
21221# A sed program that does not truncate output.
21222SED=$lt_SED
21223
21224# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21225Xsed="\$SED -e 1s/^X//"
21226
21227# A grep program that handles long lines.
21228GREP=$lt_GREP
21229
21230# An ERE matcher.
21231EGREP=$lt_EGREP
21232
21233# A literal string matcher.
21234FGREP=$lt_FGREP
21235
21236# A BSD- or MS-compatible name lister.
21237NM=$lt_NM
21238
21239# Whether we need soft or hard links.
21240LN_S=$lt_LN_S
21241
21242# What is the maximum length of a command?
21243max_cmd_len=$max_cmd_len
21244
21245# Object file suffix (normally "o").
21246objext=$ac_objext
21247
21248# Executable file suffix (normally "").
21249exeext=$exeext
21250
21251# whether the shell understands "unset".
21252lt_unset=$lt_unset
21253
21254# turn spaces into newlines.
21255SP2NL=$lt_lt_SP2NL
21256
21257# turn newlines into spaces.
21258NL2SP=$lt_lt_NL2SP
21259
21260# convert \$build file names to \$host format.
21261to_host_file_cmd=$lt_cv_to_host_file_cmd
21262
21263# convert \$build files to toolchain format.
21264to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21265
21266# A file(cmd) program that detects file types.
21267FILECMD=$lt_FILECMD
21268
21269# An object symbol dumper.
21270OBJDUMP=$lt_OBJDUMP
21271
21272# Method to check whether dependent libraries are shared objects.
21273deplibs_check_method=$lt_deplibs_check_method
21274
21275# Command to use when deplibs_check_method = "file_magic".
21276file_magic_cmd=$lt_file_magic_cmd
21277
21278# How to find potential files when deplibs_check_method = "file_magic".
21279file_magic_glob=$lt_file_magic_glob
21280
21281# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21282want_nocaseglob=$lt_want_nocaseglob
21283
21284# DLL creation program.
21285DLLTOOL=$lt_DLLTOOL
21286
21287# Command to associate shared and link libraries.
21288sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21289
21290# The archiver.
21291AR=$lt_AR
21292
21293# Flags to create an archive (by configure).
21294lt_ar_flags=$lt_ar_flags
21295
21296# Flags to create an archive.
21297AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21298
21299# How to feed a file listing to the archiver.
21300archiver_list_spec=$lt_archiver_list_spec
21301
21302# A symbol stripping program.
21303STRIP=$lt_STRIP
21304
21305# Commands used to install an old-style archive.
21306RANLIB=$lt_RANLIB
21307old_postinstall_cmds=$lt_old_postinstall_cmds
21308old_postuninstall_cmds=$lt_old_postuninstall_cmds
21309
21310# Whether to use a lock for old archive extraction.
21311lock_old_archive_extraction=$lock_old_archive_extraction
21312
21313# A C compiler.
21314LTCC=$lt_CC
21315
21316# LTCC compiler flags.
21317LTCFLAGS=$lt_CFLAGS
21318
21319# Take the output of nm and produce a listing of raw symbols and C names.
21320global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21321
21322# Transform the output of nm in a proper C declaration.
21323global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21324
21325# Transform the output of nm into a list of symbols to manually relocate.
21326global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21327
21328# Transform the output of nm in a C name address pair.
21329global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21330
21331# Transform the output of nm in a C name address pair when lib prefix is needed.
21332global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21333
21334# The name lister interface.
21335nm_interface=$lt_lt_cv_nm_interface
21336
21337# Specify filename containing input files for \$NM.
21338nm_file_list_spec=$lt_nm_file_list_spec
21339
21340# The root where to search for dependent libraries,and where our libraries should be installed.
21341lt_sysroot=$lt_sysroot
21342
21343# Command to truncate a binary pipe.
21344lt_truncate_bin=$lt_lt_cv_truncate_bin
21345
21346# The name of the directory that contains temporary libtool files.
21347objdir=$objdir
21348
21349# Used to examine libraries when file_magic_cmd begins with "file".
21350MAGIC_CMD=$MAGIC_CMD
21351
21352# Must we lock files when doing compilation?
21353need_locks=$lt_need_locks
21354
21355# Manifest tool.
21356MANIFEST_TOOL=$lt_MANIFEST_TOOL
21357
21358# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21359DSYMUTIL=$lt_DSYMUTIL
21360
21361# Tool to change global to local symbols on Mac OS X.
21362NMEDIT=$lt_NMEDIT
21363
21364# Tool to manipulate fat objects and archives on Mac OS X.
21365LIPO=$lt_LIPO
21366
21367# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21368OTOOL=$lt_OTOOL
21369
21370# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21371OTOOL64=$lt_OTOOL64
21372
21373# Old archive suffix (normally "a").
21374libext=$libext
21375
21376# Shared library suffix (normally ".so").
21377shrext_cmds=$lt_shrext_cmds
21378
21379# The commands to extract the exported symbol list from a shared archive.
21380extract_expsyms_cmds=$lt_extract_expsyms_cmds
21381
21382# Variables whose values should be saved in libtool wrapper scripts and
21383# restored at link time.
21384variables_saved_for_relink=$lt_variables_saved_for_relink
21385
21386# Do we need the "lib" prefix for modules?
21387need_lib_prefix=$need_lib_prefix
21388
21389# Do we need a version for libraries?
21390need_version=$need_version
21391
21392# Library versioning type.
21393version_type=$version_type
21394
21395# Shared library runtime path variable.
21396runpath_var=$runpath_var
21397
21398# Shared library path variable.
21399shlibpath_var=$shlibpath_var
21400
21401# Is shlibpath searched before the hard-coded library search path?
21402shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21403
21404# Format of library name prefix.
21405libname_spec=$lt_libname_spec
21406
21407# List of archive names.  First name is the real one, the rest are links.
21408# The last name is the one that the linker finds with -lNAME
21409library_names_spec=$lt_library_names_spec
21410
21411# The coded name of the library, if different from the real name.
21412soname_spec=$lt_soname_spec
21413
21414# Permission mode override for installation of shared libraries.
21415install_override_mode=$lt_install_override_mode
21416
21417# Command to use after installation of a shared archive.
21418postinstall_cmds=$lt_postinstall_cmds
21419
21420# Command to use after uninstallation of a shared archive.
21421postuninstall_cmds=$lt_postuninstall_cmds
21422
21423# Commands used to finish a libtool library installation in a directory.
21424finish_cmds=$lt_finish_cmds
21425
21426# As "finish_cmds", except a single script fragment to be evaled but
21427# not shown.
21428finish_eval=$lt_finish_eval
21429
21430# Whether we should hardcode library paths into libraries.
21431hardcode_into_libs=$hardcode_into_libs
21432
21433# Compile-time system search path for libraries.
21434sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21435
21436# Detected run-time system search path for libraries.
21437sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21438
21439# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21440configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21441
21442# Whether dlopen is supported.
21443dlopen_support=$enable_dlopen
21444
21445# Whether dlopen of programs is supported.
21446dlopen_self=$enable_dlopen_self
21447
21448# Whether dlopen of statically linked programs is supported.
21449dlopen_self_static=$enable_dlopen_self_static
21450
21451# Commands to strip libraries.
21452old_striplib=$lt_old_striplib
21453striplib=$lt_striplib
21454
21455
21456# The linker used to build libraries.
21457LD=$lt_LD
21458
21459# How to create reloadable object files.
21460reload_flag=$lt_reload_flag
21461reload_cmds=$lt_reload_cmds
21462
21463# Commands used to build an old-style archive.
21464old_archive_cmds=$lt_old_archive_cmds
21465
21466# A language specific compiler.
21467CC=$lt_compiler
21468
21469# Is the compiler the GNU compiler?
21470with_gcc=$GCC
21471
21472# Compiler flag to turn off builtin functions.
21473no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21474
21475# Additional compiler flags for building library objects.
21476pic_flag=$lt_lt_prog_compiler_pic
21477
21478# How to pass a linker flag through the compiler.
21479wl=$lt_lt_prog_compiler_wl
21480
21481# Compiler flag to prevent dynamic linking.
21482link_static_flag=$lt_lt_prog_compiler_static
21483
21484# Does compiler simultaneously support -c and -o options?
21485compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21486
21487# Whether or not to add -lc for building shared libraries.
21488build_libtool_need_lc=$archive_cmds_need_lc
21489
21490# Whether or not to disallow shared libs when runtime libs are static.
21491allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21492
21493# Compiler flag to allow reflexive dlopens.
21494export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21495
21496# Compiler flag to generate shared objects directly from archives.
21497whole_archive_flag_spec=$lt_whole_archive_flag_spec
21498
21499# Whether the compiler copes with passing no objects directly.
21500compiler_needs_object=$lt_compiler_needs_object
21501
21502# Create an old-style archive from a shared archive.
21503old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21504
21505# Create a temporary old-style archive to link instead of a shared archive.
21506old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21507
21508# Commands used to build a shared archive.
21509archive_cmds=$lt_archive_cmds
21510archive_expsym_cmds=$lt_archive_expsym_cmds
21511
21512# Commands used to build a loadable module if different from building
21513# a shared archive.
21514module_cmds=$lt_module_cmds
21515module_expsym_cmds=$lt_module_expsym_cmds
21516
21517# Whether we are building with GNU ld or not.
21518with_gnu_ld=$lt_with_gnu_ld
21519
21520# Flag that allows shared libraries with undefined symbols to be built.
21521allow_undefined_flag=$lt_allow_undefined_flag
21522
21523# Flag that enforces no undefined symbols.
21524no_undefined_flag=$lt_no_undefined_flag
21525
21526# Flag to hardcode \$libdir into a binary during linking.
21527# This must work even if \$libdir does not exist
21528hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21529
21530# Whether we need a single "-rpath" flag with a separated argument.
21531hardcode_libdir_separator=$lt_hardcode_libdir_separator
21532
21533# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21534# DIR into the resulting binary.
21535hardcode_direct=$hardcode_direct
21536
21537# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21538# DIR into the resulting binary and the resulting library dependency is
21539# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21540# library is relocated.
21541hardcode_direct_absolute=$hardcode_direct_absolute
21542
21543# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21544# into the resulting binary.
21545hardcode_minus_L=$hardcode_minus_L
21546
21547# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21548# into the resulting binary.
21549hardcode_shlibpath_var=$hardcode_shlibpath_var
21550
21551# Set to "yes" if building a shared library automatically hardcodes DIR
21552# into the library and all subsequent libraries and executables linked
21553# against it.
21554hardcode_automatic=$hardcode_automatic
21555
21556# Set to yes if linker adds runtime paths of dependent libraries
21557# to runtime path list.
21558inherit_rpath=$inherit_rpath
21559
21560# Whether libtool must link a program against all its dependency libraries.
21561link_all_deplibs=$link_all_deplibs
21562
21563# Set to "yes" if exported symbols are required.
21564always_export_symbols=$always_export_symbols
21565
21566# The commands to list exported symbols.
21567export_symbols_cmds=$lt_export_symbols_cmds
21568
21569# Symbols that should not be listed in the preloaded symbols.
21570exclude_expsyms=$lt_exclude_expsyms
21571
21572# Symbols that must always be exported.
21573include_expsyms=$lt_include_expsyms
21574
21575# Commands necessary for linking programs (against libraries) with templates.
21576prelink_cmds=$lt_prelink_cmds
21577
21578# Commands necessary for finishing linking programs.
21579postlink_cmds=$lt_postlink_cmds
21580
21581# Specify filename containing input files.
21582file_list_spec=$lt_file_list_spec
21583
21584# How to hardcode a shared library path into an executable.
21585hardcode_action=$hardcode_action
21586
21587# ### END LIBTOOL CONFIG
21588
21589_LT_EOF
21590
21591    cat <<'_LT_EOF' >> "$cfgfile"
21592
21593# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21594
21595# func_munge_path_list VARIABLE PATH
21596# -----------------------------------
21597# VARIABLE is name of variable containing _space_ separated list of
21598# directories to be munged by the contents of PATH, which is string
21599# having a format:
21600# "DIR[:DIR]:"
21601#       string "DIR[ DIR]" will be prepended to VARIABLE
21602# ":DIR[:DIR]"
21603#       string "DIR[ DIR]" will be appended to VARIABLE
21604# "DIRP[:DIRP]::[DIRA:]DIRA"
21605#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21606#       "DIRA[ DIRA]" will be appended to VARIABLE
21607# "DIR[:DIR]"
21608#       VARIABLE will be replaced by "DIR[ DIR]"
21609func_munge_path_list ()
21610{
21611    case x$2 in
21612    x)
21613        ;;
21614    *:)
21615        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21616        ;;
21617    x:*)
21618        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21619        ;;
21620    *::*)
21621        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21622        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21623        ;;
21624    *)
21625        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21626        ;;
21627    esac
21628}
21629
21630
21631# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21632func_cc_basename ()
21633{
21634    for cc_temp in $*""; do
21635      case $cc_temp in
21636        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21637        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21638        \-*) ;;
21639        *) break;;
21640      esac
21641    done
21642    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21643}
21644
21645
21646# ### END FUNCTIONS SHARED WITH CONFIGURE
21647
21648_LT_EOF
21649
21650  case $host_os in
21651  aix3*)
21652    cat <<\_LT_EOF >> "$cfgfile"
21653# AIX sometimes has problems with the GCC collect2 program.  For some
21654# reason, if we set the COLLECT_NAMES environment variable, the problems
21655# vanish in a puff of smoke.
21656if test set != "${COLLECT_NAMES+set}"; then
21657  COLLECT_NAMES=
21658  export COLLECT_NAMES
21659fi
21660_LT_EOF
21661    ;;
21662  esac
21663
21664
21665
21666ltmain=$ac_aux_dir/ltmain.sh
21667
21668
21669  # We use sed instead of cat because bash on DJGPP gets confused if
21670  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21671  # text mode, it properly converts lines to CR/LF.  This bash problem
21672  # is reportedly fixed, but why not run on old versions too?
21673  $SED '$q' "$ltmain" >> "$cfgfile" \
21674     || (rm -f "$cfgfile"; exit 1)
21675
21676   mv -f "$cfgfile" "$ofile" ||
21677    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21678  chmod +x "$ofile"
21679
21680 ;;
21681
21682  esac
21683done # for ac_tag
21684
21685
21686as_fn_exit 0
21687_ACEOF
21688ac_clean_files=$ac_clean_files_save
21689
21690test $ac_write_fail = 0 ||
21691  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21692
21693
21694# configure is writing to config.log, and then calls config.status.
21695# config.status does its own redirection, appending to config.log.
21696# Unfortunately, on DOS this fails, as config.log is still kept open
21697# by configure, so config.status won't be able to write to it; its
21698# output is simply discarded.  So we exec the FD to /dev/null,
21699# effectively closing config.log, so it can be properly (re)opened and
21700# appended to by config.status.  When coming back to configure, we
21701# need to make the FD available again.
21702if test "$no_create" != yes; then
21703  ac_cs_success=:
21704  ac_config_status_args=
21705  test "$silent" = yes &&
21706    ac_config_status_args="$ac_config_status_args --quiet"
21707  exec 5>/dev/null
21708  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21709  exec 5>>config.log
21710  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21711  # would make configure fail if this is the last instruction.
21712  $ac_cs_success || as_fn_exit 1
21713fi
21714if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21715  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21716printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21717fi
21718
21719
21720