configure revision 949d0342
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for libXv 1.0.12.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxv/-/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/libxv/-/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='libXv'
624PACKAGE_TARNAME='libXv'
625PACKAGE_VERSION='1.0.12'
626PACKAGE_STRING='libXv 1.0.12'
627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxv/-/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
667MAKE_LINT_LIB_FALSE
668MAKE_LINT_LIB_TRUE
669LINTLIB
670LINT_FALSE
671LINT_TRUE
672LINT_FLAGS
673LINT
674XV_LIBS
675XV_CFLAGS
676XTMALLOC_ZERO_CFLAGS
677XMALLOC_ZERO_CFLAGS
678MALLOC_ZERO_CFLAGS
679MAN_SUBSTS
680XORG_MAN_PAGE
681ADMIN_MAN_DIR
682DRIVER_MAN_DIR
683MISC_MAN_DIR
684FILE_MAN_DIR
685LIB_MAN_DIR
686APP_MAN_DIR
687ADMIN_MAN_SUFFIX
688DRIVER_MAN_SUFFIX
689MISC_MAN_SUFFIX
690FILE_MAN_SUFFIX
691LIB_MAN_SUFFIX
692APP_MAN_SUFFIX
693INSTALL_CMD
694PKG_CONFIG_LIBDIR
695PKG_CONFIG_PATH
696PKG_CONFIG
697CHANGELOG_CMD
698STRICT_CFLAGS
699CWARNFLAGS
700BASE_CFLAGS
701LT_SYS_LIBRARY_PATH
702OTOOL64
703OTOOL
704LIPO
705NMEDIT
706DSYMUTIL
707MANIFEST_TOOL
708RANLIB
709ac_ct_AR
710AR
711DLLTOOL
712OBJDUMP
713FILECMD
714LN_S
715NM
716ac_ct_DUMPBIN
717DUMPBIN
718LD
719FGREP
720EGREP
721GREP
722SED
723am__fastdepCC_FALSE
724am__fastdepCC_TRUE
725CCDEPMODE
726am__nodep
727AMDEPBACKSLASH
728AMDEP_FALSE
729AMDEP_TRUE
730am__include
731DEPDIR
732OBJEXT
733EXEEXT
734ac_ct_CC
735CPPFLAGS
736LDFLAGS
737CFLAGS
738CC
739host_os
740host_vendor
741host_cpu
742host
743build_os
744build_vendor
745build_cpu
746build
747LIBTOOL
748AM_BACKSLASH
749AM_DEFAULT_VERBOSITY
750AM_DEFAULT_V
751AM_V
752CSCOPE
753ETAGS
754CTAGS
755am__untar
756am__tar
757AMTAR
758am__leading_dot
759SET_MAKE
760AWK
761mkdir_p
762MKDIR_P
763INSTALL_STRIP_PROGRAM
764STRIP
765install_sh
766MAKEINFO
767AUTOHEADER
768AUTOMAKE
769AUTOCONF
770ACLOCAL
771VERSION
772PACKAGE
773CYGPATH_W
774am__isrc
775INSTALL_DATA
776INSTALL_SCRIPT
777INSTALL_PROGRAM
778target_alias
779host_alias
780build_alias
781LIBS
782ECHO_T
783ECHO_N
784ECHO_C
785DEFS
786mandir
787localedir
788libdir
789psdir
790pdfdir
791dvidir
792htmldir
793infodir
794docdir
795oldincludedir
796includedir
797runstatedir
798localstatedir
799sharedstatedir
800sysconfdir
801datadir
802datarootdir
803libexecdir
804sbindir
805bindir
806program_transform_name
807prefix
808exec_prefix
809PACKAGE_URL
810PACKAGE_BUGREPORT
811PACKAGE_STRING
812PACKAGE_VERSION
813PACKAGE_TARNAME
814PACKAGE_NAME
815PATH_SEPARATOR
816SHELL
817am__quote'
818ac_subst_files=''
819ac_user_opts='
820enable_option_checking
821enable_silent_rules
822enable_shared
823enable_static
824with_pic
825enable_fast_install
826with_aix_soname
827enable_dependency_tracking
828with_gnu_ld
829with_sysroot
830enable_libtool_lock
831enable_selective_werror
832enable_strict_compilation
833enable_malloc0returnsnull
834with_lint
835enable_lint_library
836'
837      ac_precious_vars='build_alias
838host_alias
839target_alias
840CC
841CFLAGS
842LDFLAGS
843LIBS
844CPPFLAGS
845LT_SYS_LIBRARY_PATH
846PKG_CONFIG
847PKG_CONFIG_PATH
848PKG_CONFIG_LIBDIR
849XV_CFLAGS
850XV_LIBS
851LINT
852LINT_FLAGS'
853
854
855# Initialize some variables set by options.
856ac_init_help=
857ac_init_version=false
858ac_unrecognized_opts=
859ac_unrecognized_sep=
860# The variables have the same names as the options, with
861# dashes changed to underlines.
862cache_file=/dev/null
863exec_prefix=NONE
864no_create=
865no_recursion=
866prefix=NONE
867program_prefix=NONE
868program_suffix=NONE
869program_transform_name=s,x,x,
870silent=
871site=
872srcdir=
873verbose=
874x_includes=NONE
875x_libraries=NONE
876
877# Installation directory options.
878# These are left unexpanded so users can "make install exec_prefix=/foo"
879# and all the variables that are supposed to be based on exec_prefix
880# by default will actually change.
881# Use braces instead of parens because sh, perl, etc. also accept them.
882# (The list follows the same order as the GNU Coding Standards.)
883bindir='${exec_prefix}/bin'
884sbindir='${exec_prefix}/sbin'
885libexecdir='${exec_prefix}/libexec'
886datarootdir='${prefix}/share'
887datadir='${datarootdir}'
888sysconfdir='${prefix}/etc'
889sharedstatedir='${prefix}/com'
890localstatedir='${prefix}/var'
891runstatedir='${localstatedir}/run'
892includedir='${prefix}/include'
893oldincludedir='/usr/include'
894docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
895infodir='${datarootdir}/info'
896htmldir='${docdir}'
897dvidir='${docdir}'
898pdfdir='${docdir}'
899psdir='${docdir}'
900libdir='${exec_prefix}/lib'
901localedir='${datarootdir}/locale'
902mandir='${datarootdir}/man'
903
904ac_prev=
905ac_dashdash=
906for ac_option
907do
908  # If the previous option needs an argument, assign it.
909  if test -n "$ac_prev"; then
910    eval $ac_prev=\$ac_option
911    ac_prev=
912    continue
913  fi
914
915  case $ac_option in
916  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
917  *=)   ac_optarg= ;;
918  *)    ac_optarg=yes ;;
919  esac
920
921  case $ac_dashdash$ac_option in
922  --)
923    ac_dashdash=yes ;;
924
925  -bindir | --bindir | --bindi | --bind | --bin | --bi)
926    ac_prev=bindir ;;
927  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
928    bindir=$ac_optarg ;;
929
930  -build | --build | --buil | --bui | --bu)
931    ac_prev=build_alias ;;
932  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
933    build_alias=$ac_optarg ;;
934
935  -cache-file | --cache-file | --cache-fil | --cache-fi \
936  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
937    ac_prev=cache_file ;;
938  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
939  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
940    cache_file=$ac_optarg ;;
941
942  --config-cache | -C)
943    cache_file=config.cache ;;
944
945  -datadir | --datadir | --datadi | --datad)
946    ac_prev=datadir ;;
947  -datadir=* | --datadir=* | --datadi=* | --datad=*)
948    datadir=$ac_optarg ;;
949
950  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
951  | --dataroo | --dataro | --datar)
952    ac_prev=datarootdir ;;
953  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
954  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
955    datarootdir=$ac_optarg ;;
956
957  -disable-* | --disable-*)
958    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
959    # Reject names that are not valid shell variable names.
960    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961      as_fn_error $? "invalid feature name: \`$ac_useropt'"
962    ac_useropt_orig=$ac_useropt
963    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
964    case $ac_user_opts in
965      *"
966"enable_$ac_useropt"
967"*) ;;
968      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
969	 ac_unrecognized_sep=', ';;
970    esac
971    eval enable_$ac_useropt=no ;;
972
973  -docdir | --docdir | --docdi | --doc | --do)
974    ac_prev=docdir ;;
975  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
976    docdir=$ac_optarg ;;
977
978  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
979    ac_prev=dvidir ;;
980  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
981    dvidir=$ac_optarg ;;
982
983  -enable-* | --enable-*)
984    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
985    # Reject names that are not valid shell variable names.
986    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987      as_fn_error $? "invalid feature name: \`$ac_useropt'"
988    ac_useropt_orig=$ac_useropt
989    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
990    case $ac_user_opts in
991      *"
992"enable_$ac_useropt"
993"*) ;;
994      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
995	 ac_unrecognized_sep=', ';;
996    esac
997    eval enable_$ac_useropt=\$ac_optarg ;;
998
999  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1000  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1001  | --exec | --exe | --ex)
1002    ac_prev=exec_prefix ;;
1003  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1004  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1005  | --exec=* | --exe=* | --ex=*)
1006    exec_prefix=$ac_optarg ;;
1007
1008  -gas | --gas | --ga | --g)
1009    # Obsolete; use --with-gas.
1010    with_gas=yes ;;
1011
1012  -help | --help | --hel | --he | -h)
1013    ac_init_help=long ;;
1014  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1015    ac_init_help=recursive ;;
1016  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1017    ac_init_help=short ;;
1018
1019  -host | --host | --hos | --ho)
1020    ac_prev=host_alias ;;
1021  -host=* | --host=* | --hos=* | --ho=*)
1022    host_alias=$ac_optarg ;;
1023
1024  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1025    ac_prev=htmldir ;;
1026  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1027  | --ht=*)
1028    htmldir=$ac_optarg ;;
1029
1030  -includedir | --includedir | --includedi | --included | --include \
1031  | --includ | --inclu | --incl | --inc)
1032    ac_prev=includedir ;;
1033  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1034  | --includ=* | --inclu=* | --incl=* | --inc=*)
1035    includedir=$ac_optarg ;;
1036
1037  -infodir | --infodir | --infodi | --infod | --info | --inf)
1038    ac_prev=infodir ;;
1039  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1040    infodir=$ac_optarg ;;
1041
1042  -libdir | --libdir | --libdi | --libd)
1043    ac_prev=libdir ;;
1044  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1045    libdir=$ac_optarg ;;
1046
1047  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1048  | --libexe | --libex | --libe)
1049    ac_prev=libexecdir ;;
1050  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1051  | --libexe=* | --libex=* | --libe=*)
1052    libexecdir=$ac_optarg ;;
1053
1054  -localedir | --localedir | --localedi | --localed | --locale)
1055    ac_prev=localedir ;;
1056  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1057    localedir=$ac_optarg ;;
1058
1059  -localstatedir | --localstatedir | --localstatedi | --localstated \
1060  | --localstate | --localstat | --localsta | --localst | --locals)
1061    ac_prev=localstatedir ;;
1062  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1063  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1064    localstatedir=$ac_optarg ;;
1065
1066  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1067    ac_prev=mandir ;;
1068  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1069    mandir=$ac_optarg ;;
1070
1071  -nfp | --nfp | --nf)
1072    # Obsolete; use --without-fp.
1073    with_fp=no ;;
1074
1075  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1076  | --no-cr | --no-c | -n)
1077    no_create=yes ;;
1078
1079  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1080  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1081    no_recursion=yes ;;
1082
1083  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1084  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1085  | --oldin | --oldi | --old | --ol | --o)
1086    ac_prev=oldincludedir ;;
1087  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1088  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1089  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1090    oldincludedir=$ac_optarg ;;
1091
1092  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1093    ac_prev=prefix ;;
1094  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1095    prefix=$ac_optarg ;;
1096
1097  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1098  | --program-pre | --program-pr | --program-p)
1099    ac_prev=program_prefix ;;
1100  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1101  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1102    program_prefix=$ac_optarg ;;
1103
1104  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1105  | --program-suf | --program-su | --program-s)
1106    ac_prev=program_suffix ;;
1107  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1108  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1109    program_suffix=$ac_optarg ;;
1110
1111  -program-transform-name | --program-transform-name \
1112  | --program-transform-nam | --program-transform-na \
1113  | --program-transform-n | --program-transform- \
1114  | --program-transform | --program-transfor \
1115  | --program-transfo | --program-transf \
1116  | --program-trans | --program-tran \
1117  | --progr-tra | --program-tr | --program-t)
1118    ac_prev=program_transform_name ;;
1119  -program-transform-name=* | --program-transform-name=* \
1120  | --program-transform-nam=* | --program-transform-na=* \
1121  | --program-transform-n=* | --program-transform-=* \
1122  | --program-transform=* | --program-transfor=* \
1123  | --program-transfo=* | --program-transf=* \
1124  | --program-trans=* | --program-tran=* \
1125  | --progr-tra=* | --program-tr=* | --program-t=*)
1126    program_transform_name=$ac_optarg ;;
1127
1128  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1129    ac_prev=pdfdir ;;
1130  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1131    pdfdir=$ac_optarg ;;
1132
1133  -psdir | --psdir | --psdi | --psd | --ps)
1134    ac_prev=psdir ;;
1135  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1136    psdir=$ac_optarg ;;
1137
1138  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1139  | -silent | --silent | --silen | --sile | --sil)
1140    silent=yes ;;
1141
1142  -runstatedir | --runstatedir | --runstatedi | --runstated \
1143  | --runstate | --runstat | --runsta | --runst | --runs \
1144  | --run | --ru | --r)
1145    ac_prev=runstatedir ;;
1146  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1147  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1148  | --run=* | --ru=* | --r=*)
1149    runstatedir=$ac_optarg ;;
1150
1151  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1152    ac_prev=sbindir ;;
1153  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1154  | --sbi=* | --sb=*)
1155    sbindir=$ac_optarg ;;
1156
1157  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1158  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1159  | --sharedst | --shareds | --shared | --share | --shar \
1160  | --sha | --sh)
1161    ac_prev=sharedstatedir ;;
1162  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1163  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1164  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1165  | --sha=* | --sh=*)
1166    sharedstatedir=$ac_optarg ;;
1167
1168  -site | --site | --sit)
1169    ac_prev=site ;;
1170  -site=* | --site=* | --sit=*)
1171    site=$ac_optarg ;;
1172
1173  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1174    ac_prev=srcdir ;;
1175  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1176    srcdir=$ac_optarg ;;
1177
1178  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1179  | --syscon | --sysco | --sysc | --sys | --sy)
1180    ac_prev=sysconfdir ;;
1181  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1182  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1183    sysconfdir=$ac_optarg ;;
1184
1185  -target | --target | --targe | --targ | --tar | --ta | --t)
1186    ac_prev=target_alias ;;
1187  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1188    target_alias=$ac_optarg ;;
1189
1190  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1191    verbose=yes ;;
1192
1193  -version | --version | --versio | --versi | --vers | -V)
1194    ac_init_version=: ;;
1195
1196  -with-* | --with-*)
1197    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1198    # Reject names that are not valid shell variable names.
1199    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200      as_fn_error $? "invalid package name: \`$ac_useropt'"
1201    ac_useropt_orig=$ac_useropt
1202    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1203    case $ac_user_opts in
1204      *"
1205"with_$ac_useropt"
1206"*) ;;
1207      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1208	 ac_unrecognized_sep=', ';;
1209    esac
1210    eval with_$ac_useropt=\$ac_optarg ;;
1211
1212  -without-* | --without-*)
1213    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1214    # Reject names that are not valid shell variable names.
1215    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216      as_fn_error $? "invalid package name: \`$ac_useropt'"
1217    ac_useropt_orig=$ac_useropt
1218    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1219    case $ac_user_opts in
1220      *"
1221"with_$ac_useropt"
1222"*) ;;
1223      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1224	 ac_unrecognized_sep=', ';;
1225    esac
1226    eval with_$ac_useropt=no ;;
1227
1228  --x)
1229    # Obsolete; use --with-x.
1230    with_x=yes ;;
1231
1232  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1233  | --x-incl | --x-inc | --x-in | --x-i)
1234    ac_prev=x_includes ;;
1235  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1236  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1237    x_includes=$ac_optarg ;;
1238
1239  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1240  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1241    ac_prev=x_libraries ;;
1242  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1243  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1244    x_libraries=$ac_optarg ;;
1245
1246  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1247Try \`$0 --help' for more information"
1248    ;;
1249
1250  *=*)
1251    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252    # Reject names that are not valid shell variable names.
1253    case $ac_envvar in #(
1254      '' | [0-9]* | *[!_$as_cr_alnum]* )
1255      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1256    esac
1257    eval $ac_envvar=\$ac_optarg
1258    export $ac_envvar ;;
1259
1260  *)
1261    # FIXME: should be removed in autoconf 3.0.
1262    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1263    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1264      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1265    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1266    ;;
1267
1268  esac
1269done
1270
1271if test -n "$ac_prev"; then
1272  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1273  as_fn_error $? "missing argument to $ac_option"
1274fi
1275
1276if test -n "$ac_unrecognized_opts"; then
1277  case $enable_option_checking in
1278    no) ;;
1279    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1280    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1281  esac
1282fi
1283
1284# Check all directory arguments for consistency.
1285for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1286		datadir sysconfdir sharedstatedir localstatedir includedir \
1287		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1288		libdir localedir mandir runstatedir
1289do
1290  eval ac_val=\$$ac_var
1291  # Remove trailing slashes.
1292  case $ac_val in
1293    */ )
1294      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1295      eval $ac_var=\$ac_val;;
1296  esac
1297  # Be sure to have absolute directory names.
1298  case $ac_val in
1299    [\\/$]* | ?:[\\/]* )  continue;;
1300    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1301  esac
1302  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1303done
1304
1305# There might be people who depend on the old broken behavior: `$host'
1306# used to hold the argument of --host etc.
1307# FIXME: To remove some day.
1308build=$build_alias
1309host=$host_alias
1310target=$target_alias
1311
1312# FIXME: To remove some day.
1313if test "x$host_alias" != x; then
1314  if test "x$build_alias" = x; then
1315    cross_compiling=maybe
1316  elif test "x$build_alias" != "x$host_alias"; then
1317    cross_compiling=yes
1318  fi
1319fi
1320
1321ac_tool_prefix=
1322test -n "$host_alias" && ac_tool_prefix=$host_alias-
1323
1324test "$silent" = yes && exec 6>/dev/null
1325
1326
1327ac_pwd=`pwd` && test -n "$ac_pwd" &&
1328ac_ls_di=`ls -di .` &&
1329ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1330  as_fn_error $? "working directory cannot be determined"
1331test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1332  as_fn_error $? "pwd does not report name of working directory"
1333
1334
1335# Find the source files, if location was not specified.
1336if test -z "$srcdir"; then
1337  ac_srcdir_defaulted=yes
1338  # Try the directory containing this script, then the parent directory.
1339  ac_confdir=`$as_dirname -- "$as_myself" ||
1340$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1341	 X"$as_myself" : 'X\(//\)[^/]' \| \
1342	 X"$as_myself" : 'X\(//\)$' \| \
1343	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1344printf "%s\n" X"$as_myself" |
1345    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1346	    s//\1/
1347	    q
1348	  }
1349	  /^X\(\/\/\)[^/].*/{
1350	    s//\1/
1351	    q
1352	  }
1353	  /^X\(\/\/\)$/{
1354	    s//\1/
1355	    q
1356	  }
1357	  /^X\(\/\).*/{
1358	    s//\1/
1359	    q
1360	  }
1361	  s/.*/./; q'`
1362  srcdir=$ac_confdir
1363  if test ! -r "$srcdir/$ac_unique_file"; then
1364    srcdir=..
1365  fi
1366else
1367  ac_srcdir_defaulted=no
1368fi
1369if test ! -r "$srcdir/$ac_unique_file"; then
1370  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1371  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1372fi
1373ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1374ac_abs_confdir=`(
1375	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1376	pwd)`
1377# When building in place, set srcdir=.
1378if test "$ac_abs_confdir" = "$ac_pwd"; then
1379  srcdir=.
1380fi
1381# Remove unnecessary trailing slashes from srcdir.
1382# Double slashes in file names in object file debugging info
1383# mess up M-x gdb in Emacs.
1384case $srcdir in
1385*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1386esac
1387for ac_var in $ac_precious_vars; do
1388  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1389  eval ac_env_${ac_var}_value=\$${ac_var}
1390  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1391  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1392done
1393
1394#
1395# Report the --help message.
1396#
1397if test "$ac_init_help" = "long"; then
1398  # Omit some internal or obsolete options to make the list less imposing.
1399  # This message is too long to be a string in the A/UX 3.1 sh.
1400  cat <<_ACEOF
1401\`configure' configures libXv 1.0.12 to adapt to many kinds of systems.
1402
1403Usage: $0 [OPTION]... [VAR=VALUE]...
1404
1405To assign environment variables (e.g., CC, CFLAGS...), specify them as
1406VAR=VALUE.  See below for descriptions of some of the useful variables.
1407
1408Defaults for the options are specified in brackets.
1409
1410Configuration:
1411  -h, --help              display this help and exit
1412      --help=short        display options specific to this package
1413      --help=recursive    display the short help of all the included packages
1414  -V, --version           display version information and exit
1415  -q, --quiet, --silent   do not print \`checking ...' messages
1416      --cache-file=FILE   cache test results in FILE [disabled]
1417  -C, --config-cache      alias for \`--cache-file=config.cache'
1418  -n, --no-create         do not create output files
1419      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1420
1421Installation directories:
1422  --prefix=PREFIX         install architecture-independent files in PREFIX
1423                          [$ac_default_prefix]
1424  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1425                          [PREFIX]
1426
1427By default, \`make install' will install all the files in
1428\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1429an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1430for instance \`--prefix=\$HOME'.
1431
1432For better control, use the options below.
1433
1434Fine tuning of the installation directories:
1435  --bindir=DIR            user executables [EPREFIX/bin]
1436  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1437  --libexecdir=DIR        program executables [EPREFIX/libexec]
1438  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1439  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1440  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1441  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1442  --libdir=DIR            object code libraries [EPREFIX/lib]
1443  --includedir=DIR        C header files [PREFIX/include]
1444  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1445  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1446  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1447  --infodir=DIR           info documentation [DATAROOTDIR/info]
1448  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1449  --mandir=DIR            man documentation [DATAROOTDIR/man]
1450  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXv]
1451  --htmldir=DIR           html documentation [DOCDIR]
1452  --dvidir=DIR            dvi documentation [DOCDIR]
1453  --pdfdir=DIR            pdf documentation [DOCDIR]
1454  --psdir=DIR             ps documentation [DOCDIR]
1455_ACEOF
1456
1457  cat <<\_ACEOF
1458
1459Program names:
1460  --program-prefix=PREFIX            prepend PREFIX to installed program names
1461  --program-suffix=SUFFIX            append SUFFIX to installed program names
1462  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1463
1464System types:
1465  --build=BUILD     configure for building on BUILD [guessed]
1466  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1467_ACEOF
1468fi
1469
1470if test -n "$ac_init_help"; then
1471  case $ac_init_help in
1472     short | recursive ) echo "Configuration of libXv 1.0.12:";;
1473   esac
1474  cat <<\_ACEOF
1475
1476Optional Features:
1477  --disable-option-checking  ignore unrecognized --enable/--with options
1478  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1479  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1480  --enable-silent-rules   less verbose build output (undo: "make V=1")
1481  --disable-silent-rules  verbose build output (undo: "make V=0")
1482  --enable-shared[=PKGS]  build shared libraries [default=yes]
1483  --enable-static[=PKGS]  build static libraries [default=yes]
1484  --enable-fast-install[=PKGS]
1485                          optimize for fast installation [default=yes]
1486  --enable-dependency-tracking
1487                          do not reject slow dependency extractors
1488  --disable-dependency-tracking
1489                          speeds up one-time build
1490  --disable-libtool-lock  avoid locking (might break parallel builds)
1491  --disable-selective-werror
1492                          Turn off selective compiler errors. (default:
1493                          enabled)
1494  --enable-strict-compilation
1495                          Enable all warnings from compiler and make them
1496                          errors (default: disabled)
1497  --enable-malloc0returnsnull
1498                          malloc(0) returns NULL (default: auto)
1499  --enable-lint-library   Create lint library (default: disabled)
1500
1501Optional Packages:
1502  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1503  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1504  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1505                          both]
1506  --with-aix-soname=aix|svr4|both
1507                          shared library versioning (aka "SONAME") variant to
1508                          provide on AIX, [default=aix].
1509  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1510  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1511                          compiler's sysroot if not specified).
1512  --with-lint             Use a lint-style source code checker (default:
1513                          disabled)
1514
1515Some influential environment variables:
1516  CC          C compiler command
1517  CFLAGS      C compiler flags
1518  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1519              nonstandard directory <lib dir>
1520  LIBS        libraries to pass to the linker, e.g. -l<library>
1521  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1522              you have headers in a nonstandard directory <include dir>
1523  LT_SYS_LIBRARY_PATH
1524              User-defined run-time library search path.
1525  PKG_CONFIG  path to pkg-config utility
1526  PKG_CONFIG_PATH
1527              directories to add to pkg-config's search path
1528  PKG_CONFIG_LIBDIR
1529              path overriding pkg-config's built-in search path
1530  XV_CFLAGS   C compiler flags for XV, overriding pkg-config
1531  XV_LIBS     linker flags for XV, overriding pkg-config
1532  LINT        Path to a lint-style command
1533  LINT_FLAGS  Flags for the lint-style command
1534
1535Use these variables to override the choices made by `configure' or to help
1536it to find libraries and programs with nonstandard names/locations.
1537
1538Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxv/-/issues>.
1539_ACEOF
1540ac_status=$?
1541fi
1542
1543if test "$ac_init_help" = "recursive"; then
1544  # If there are subdirs, report their specific --help.
1545  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1546    test -d "$ac_dir" ||
1547      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1548      continue
1549    ac_builddir=.
1550
1551case "$ac_dir" in
1552.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553*)
1554  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1555  # A ".." for each directory in $ac_dir_suffix.
1556  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1557  case $ac_top_builddir_sub in
1558  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1560  esac ;;
1561esac
1562ac_abs_top_builddir=$ac_pwd
1563ac_abs_builddir=$ac_pwd$ac_dir_suffix
1564# for backward compatibility:
1565ac_top_builddir=$ac_top_build_prefix
1566
1567case $srcdir in
1568  .)  # We are building in place.
1569    ac_srcdir=.
1570    ac_top_srcdir=$ac_top_builddir_sub
1571    ac_abs_top_srcdir=$ac_pwd ;;
1572  [\\/]* | ?:[\\/]* )  # Absolute name.
1573    ac_srcdir=$srcdir$ac_dir_suffix;
1574    ac_top_srcdir=$srcdir
1575    ac_abs_top_srcdir=$srcdir ;;
1576  *) # Relative name.
1577    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1578    ac_top_srcdir=$ac_top_build_prefix$srcdir
1579    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1580esac
1581ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582
1583    cd "$ac_dir" || { ac_status=$?; continue; }
1584    # Check for configure.gnu first; this name is used for a wrapper for
1585    # Metaconfig's "Configure" on case-insensitive file systems.
1586    if test -f "$ac_srcdir/configure.gnu"; then
1587      echo &&
1588      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1589    elif test -f "$ac_srcdir/configure"; then
1590      echo &&
1591      $SHELL "$ac_srcdir/configure" --help=recursive
1592    else
1593      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1594    fi || ac_status=$?
1595    cd "$ac_pwd" || { ac_status=$?; break; }
1596  done
1597fi
1598
1599test -n "$ac_init_help" && exit $ac_status
1600if $ac_init_version; then
1601  cat <<\_ACEOF
1602libXv configure 1.0.12
1603generated by GNU Autoconf 2.71
1604
1605Copyright (C) 2021 Free Software Foundation, Inc.
1606This configure script is free software; the Free Software Foundation
1607gives unlimited permission to copy, distribute and modify it.
1608_ACEOF
1609  exit
1610fi
1611
1612## ------------------------ ##
1613## Autoconf initialization. ##
1614## ------------------------ ##
1615
1616# ac_fn_c_try_compile LINENO
1617# --------------------------
1618# Try to compile conftest.$ac_ext, and return whether this succeeded.
1619ac_fn_c_try_compile ()
1620{
1621  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622  rm -f conftest.$ac_objext conftest.beam
1623  if { { ac_try="$ac_compile"
1624case "(($ac_try" in
1625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626  *) ac_try_echo=$ac_try;;
1627esac
1628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629printf "%s\n" "$ac_try_echo"; } >&5
1630  (eval "$ac_compile") 2>conftest.err
1631  ac_status=$?
1632  if test -s conftest.err; then
1633    grep -v '^ *+' conftest.err >conftest.er1
1634    cat conftest.er1 >&5
1635    mv -f conftest.er1 conftest.err
1636  fi
1637  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638  test $ac_status = 0; } && {
1639	 test -z "$ac_c_werror_flag" ||
1640	 test ! -s conftest.err
1641       } && test -s conftest.$ac_objext
1642then :
1643  ac_retval=0
1644else $as_nop
1645  printf "%s\n" "$as_me: failed program was:" >&5
1646sed 's/^/| /' conftest.$ac_ext >&5
1647
1648	ac_retval=1
1649fi
1650  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651  as_fn_set_status $ac_retval
1652
1653} # ac_fn_c_try_compile
1654
1655# ac_fn_c_try_link LINENO
1656# -----------------------
1657# Try to link conftest.$ac_ext, and return whether this succeeded.
1658ac_fn_c_try_link ()
1659{
1660  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1662  if { { ac_try="$ac_link"
1663case "(($ac_try" in
1664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665  *) ac_try_echo=$ac_try;;
1666esac
1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668printf "%s\n" "$ac_try_echo"; } >&5
1669  (eval "$ac_link") 2>conftest.err
1670  ac_status=$?
1671  if test -s conftest.err; then
1672    grep -v '^ *+' conftest.err >conftest.er1
1673    cat conftest.er1 >&5
1674    mv -f conftest.er1 conftest.err
1675  fi
1676  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677  test $ac_status = 0; } && {
1678	 test -z "$ac_c_werror_flag" ||
1679	 test ! -s conftest.err
1680       } && test -s conftest$ac_exeext && {
1681	 test "$cross_compiling" = yes ||
1682	 test -x conftest$ac_exeext
1683       }
1684then :
1685  ac_retval=0
1686else $as_nop
1687  printf "%s\n" "$as_me: failed program was:" >&5
1688sed 's/^/| /' conftest.$ac_ext >&5
1689
1690	ac_retval=1
1691fi
1692  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1693  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1694  # interfere with the next link command; also delete a directory that is
1695  # left behind by Apple's compiler.  We do this before executing the actions.
1696  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1697  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698  as_fn_set_status $ac_retval
1699
1700} # ac_fn_c_try_link
1701
1702# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1703# -------------------------------------------------------
1704# Tests whether HEADER exists and can be compiled using the include files in
1705# INCLUDES, setting the cache variable VAR accordingly.
1706ac_fn_c_check_header_compile ()
1707{
1708  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1710printf %s "checking for $2... " >&6; }
1711if eval test \${$3+y}
1712then :
1713  printf %s "(cached) " >&6
1714else $as_nop
1715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716/* end confdefs.h.  */
1717$4
1718#include <$2>
1719_ACEOF
1720if ac_fn_c_try_compile "$LINENO"
1721then :
1722  eval "$3=yes"
1723else $as_nop
1724  eval "$3=no"
1725fi
1726rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1727fi
1728eval ac_res=\$$3
1729	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730printf "%s\n" "$ac_res" >&6; }
1731  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732
1733} # ac_fn_c_check_header_compile
1734
1735# ac_fn_c_check_func LINENO FUNC VAR
1736# ----------------------------------
1737# Tests whether FUNC exists, setting the cache variable VAR accordingly
1738ac_fn_c_check_func ()
1739{
1740  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742printf %s "checking for $2... " >&6; }
1743if eval test \${$3+y}
1744then :
1745  printf %s "(cached) " >&6
1746else $as_nop
1747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748/* end confdefs.h.  */
1749/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1750   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1751#define $2 innocuous_$2
1752
1753/* System header to define __stub macros and hopefully few prototypes,
1754   which can conflict with char $2 (); below.  */
1755
1756#include <limits.h>
1757#undef $2
1758
1759/* Override any GCC internal prototype to avoid an error.
1760   Use char because int might match the return type of a GCC
1761   builtin and then its argument prototype would still apply.  */
1762#ifdef __cplusplus
1763extern "C"
1764#endif
1765char $2 ();
1766/* The GNU C library defines this for functions which it implements
1767    to always fail with ENOSYS.  Some functions are actually named
1768    something starting with __ and the normal name is an alias.  */
1769#if defined __stub_$2 || defined __stub___$2
1770choke me
1771#endif
1772
1773int
1774main (void)
1775{
1776return $2 ();
1777  ;
1778  return 0;
1779}
1780_ACEOF
1781if ac_fn_c_try_link "$LINENO"
1782then :
1783  eval "$3=yes"
1784else $as_nop
1785  eval "$3=no"
1786fi
1787rm -f core conftest.err conftest.$ac_objext conftest.beam \
1788    conftest$ac_exeext conftest.$ac_ext
1789fi
1790eval ac_res=\$$3
1791	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792printf "%s\n" "$ac_res" >&6; }
1793  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794
1795} # ac_fn_c_check_func
1796
1797# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1798# ------------------------------------------------------------------
1799# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1800# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1801ac_fn_check_decl ()
1802{
1803  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804  as_decl_name=`echo $2|sed 's/ *(.*//'`
1805  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1806printf %s "checking whether $as_decl_name is declared... " >&6; }
1807if eval test \${$3+y}
1808then :
1809  printf %s "(cached) " >&6
1810else $as_nop
1811  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1812  eval ac_save_FLAGS=\$$6
1813  as_fn_append $6 " $5"
1814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815/* end confdefs.h.  */
1816$4
1817int
1818main (void)
1819{
1820#ifndef $as_decl_name
1821#ifdef __cplusplus
1822  (void) $as_decl_use;
1823#else
1824  (void) $as_decl_name;
1825#endif
1826#endif
1827
1828  ;
1829  return 0;
1830}
1831_ACEOF
1832if ac_fn_c_try_compile "$LINENO"
1833then :
1834  eval "$3=yes"
1835else $as_nop
1836  eval "$3=no"
1837fi
1838rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1839  eval $6=\$ac_save_FLAGS
1840
1841fi
1842eval ac_res=\$$3
1843	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844printf "%s\n" "$ac_res" >&6; }
1845  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846
1847} # ac_fn_check_decl
1848
1849# ac_fn_c_try_run LINENO
1850# ----------------------
1851# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1852# executables *can* be run.
1853ac_fn_c_try_run ()
1854{
1855  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856  if { { ac_try="$ac_link"
1857case "(($ac_try" in
1858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859  *) ac_try_echo=$ac_try;;
1860esac
1861eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862printf "%s\n" "$ac_try_echo"; } >&5
1863  (eval "$ac_link") 2>&5
1864  ac_status=$?
1865  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1867  { { case "(($ac_try" in
1868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869  *) ac_try_echo=$ac_try;;
1870esac
1871eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872printf "%s\n" "$ac_try_echo"; } >&5
1873  (eval "$ac_try") 2>&5
1874  ac_status=$?
1875  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876  test $ac_status = 0; }; }
1877then :
1878  ac_retval=0
1879else $as_nop
1880  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1881       printf "%s\n" "$as_me: failed program was:" >&5
1882sed 's/^/| /' conftest.$ac_ext >&5
1883
1884       ac_retval=$ac_status
1885fi
1886  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1887  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888  as_fn_set_status $ac_retval
1889
1890} # ac_fn_c_try_run
1891ac_configure_args_raw=
1892for ac_arg
1893do
1894  case $ac_arg in
1895  *\'*)
1896    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1897  esac
1898  as_fn_append ac_configure_args_raw " '$ac_arg'"
1899done
1900
1901case $ac_configure_args_raw in
1902  *$as_nl*)
1903    ac_safe_unquote= ;;
1904  *)
1905    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1906    ac_unsafe_a="$ac_unsafe_z#~"
1907    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1908    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1909esac
1910
1911cat >config.log <<_ACEOF
1912This file contains any messages produced by compilers while
1913running configure, to aid debugging if configure makes a mistake.
1914
1915It was created by libXv $as_me 1.0.12, which was
1916generated by GNU Autoconf 2.71.  Invocation command line was
1917
1918  $ $0$ac_configure_args_raw
1919
1920_ACEOF
1921exec 5>>config.log
1922{
1923cat <<_ASUNAME
1924## --------- ##
1925## Platform. ##
1926## --------- ##
1927
1928hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1929uname -m = `(uname -m) 2>/dev/null || echo unknown`
1930uname -r = `(uname -r) 2>/dev/null || echo unknown`
1931uname -s = `(uname -s) 2>/dev/null || echo unknown`
1932uname -v = `(uname -v) 2>/dev/null || echo unknown`
1933
1934/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1935/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1936
1937/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1938/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1939/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1940/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1941/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1942/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1943/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1944
1945_ASUNAME
1946
1947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1948for as_dir in $PATH
1949do
1950  IFS=$as_save_IFS
1951  case $as_dir in #(((
1952    '') as_dir=./ ;;
1953    */) ;;
1954    *) as_dir=$as_dir/ ;;
1955  esac
1956    printf "%s\n" "PATH: $as_dir"
1957  done
1958IFS=$as_save_IFS
1959
1960} >&5
1961
1962cat >&5 <<_ACEOF
1963
1964
1965## ----------- ##
1966## Core tests. ##
1967## ----------- ##
1968
1969_ACEOF
1970
1971
1972# Keep a trace of the command line.
1973# Strip out --no-create and --no-recursion so they do not pile up.
1974# Strip out --silent because we don't want to record it for future runs.
1975# Also quote any args containing shell meta-characters.
1976# Make two passes to allow for proper duplicate-argument suppression.
1977ac_configure_args=
1978ac_configure_args0=
1979ac_configure_args1=
1980ac_must_keep_next=false
1981for ac_pass in 1 2
1982do
1983  for ac_arg
1984  do
1985    case $ac_arg in
1986    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1987    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1988    | -silent | --silent | --silen | --sile | --sil)
1989      continue ;;
1990    *\'*)
1991      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1992    esac
1993    case $ac_pass in
1994    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1995    2)
1996      as_fn_append ac_configure_args1 " '$ac_arg'"
1997      if test $ac_must_keep_next = true; then
1998	ac_must_keep_next=false # Got value, back to normal.
1999      else
2000	case $ac_arg in
2001	  *=* | --config-cache | -C | -disable-* | --disable-* \
2002	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2003	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2004	  | -with-* | --with-* | -without-* | --without-* | --x)
2005	    case "$ac_configure_args0 " in
2006	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2007	    esac
2008	    ;;
2009	  -* ) ac_must_keep_next=true ;;
2010	esac
2011      fi
2012      as_fn_append ac_configure_args " '$ac_arg'"
2013      ;;
2014    esac
2015  done
2016done
2017{ ac_configure_args0=; unset ac_configure_args0;}
2018{ ac_configure_args1=; unset ac_configure_args1;}
2019
2020# When interrupted or exit'd, cleanup temporary files, and complete
2021# config.log.  We remove comments because anyway the quotes in there
2022# would cause problems or look ugly.
2023# WARNING: Use '\'' to represent an apostrophe within the trap.
2024# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2025trap 'exit_status=$?
2026  # Sanitize IFS.
2027  IFS=" ""	$as_nl"
2028  # Save into config.log some information that might help in debugging.
2029  {
2030    echo
2031
2032    printf "%s\n" "## ---------------- ##
2033## Cache variables. ##
2034## ---------------- ##"
2035    echo
2036    # The following way of writing the cache mishandles newlines in values,
2037(
2038  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2039    eval ac_val=\$$ac_var
2040    case $ac_val in #(
2041    *${as_nl}*)
2042      case $ac_var in #(
2043      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2044printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2045      esac
2046      case $ac_var in #(
2047      _ | IFS | as_nl) ;; #(
2048      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2049      *) { eval $ac_var=; unset $ac_var;} ;;
2050      esac ;;
2051    esac
2052  done
2053  (set) 2>&1 |
2054    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2055    *${as_nl}ac_space=\ *)
2056      sed -n \
2057	"s/'\''/'\''\\\\'\'''\''/g;
2058	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2059      ;; #(
2060    *)
2061      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2062      ;;
2063    esac |
2064    sort
2065)
2066    echo
2067
2068    printf "%s\n" "## ----------------- ##
2069## Output variables. ##
2070## ----------------- ##"
2071    echo
2072    for ac_var in $ac_subst_vars
2073    do
2074      eval ac_val=\$$ac_var
2075      case $ac_val in
2076      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2077      esac
2078      printf "%s\n" "$ac_var='\''$ac_val'\''"
2079    done | sort
2080    echo
2081
2082    if test -n "$ac_subst_files"; then
2083      printf "%s\n" "## ------------------- ##
2084## File substitutions. ##
2085## ------------------- ##"
2086      echo
2087      for ac_var in $ac_subst_files
2088      do
2089	eval ac_val=\$$ac_var
2090	case $ac_val in
2091	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2092	esac
2093	printf "%s\n" "$ac_var='\''$ac_val'\''"
2094      done | sort
2095      echo
2096    fi
2097
2098    if test -s confdefs.h; then
2099      printf "%s\n" "## ----------- ##
2100## confdefs.h. ##
2101## ----------- ##"
2102      echo
2103      cat confdefs.h
2104      echo
2105    fi
2106    test "$ac_signal" != 0 &&
2107      printf "%s\n" "$as_me: caught signal $ac_signal"
2108    printf "%s\n" "$as_me: exit $exit_status"
2109  } >&5
2110  rm -f core *.core core.conftest.* &&
2111    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2112    exit $exit_status
2113' 0
2114for ac_signal in 1 2 13 15; do
2115  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2116done
2117ac_signal=0
2118
2119# confdefs.h avoids OS command line length limits that DEFS can exceed.
2120rm -f -r conftest* confdefs.h
2121
2122printf "%s\n" "/* confdefs.h */" > confdefs.h
2123
2124# Predefined preprocessor variables.
2125
2126printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2127
2128printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2129
2130printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2131
2132printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2133
2134printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2135
2136printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2137
2138
2139# Let the site file select an alternate cache file if it wants to.
2140# Prefer an explicitly selected file to automatically selected ones.
2141if test -n "$CONFIG_SITE"; then
2142  ac_site_files="$CONFIG_SITE"
2143elif test "x$prefix" != xNONE; then
2144  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2145else
2146  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2147fi
2148
2149for ac_site_file in $ac_site_files
2150do
2151  case $ac_site_file in #(
2152  */*) :
2153     ;; #(
2154  *) :
2155    ac_site_file=./$ac_site_file ;;
2156esac
2157  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2158    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2159printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2160    sed 's/^/| /' "$ac_site_file" >&5
2161    . "$ac_site_file" \
2162      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2163printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2164as_fn_error $? "failed to load site script $ac_site_file
2165See \`config.log' for more details" "$LINENO" 5; }
2166  fi
2167done
2168
2169if test -r "$cache_file"; then
2170  # Some versions of bash will fail to source /dev/null (special files
2171  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2172  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2173    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2174printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2175    case $cache_file in
2176      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2177      *)                      . "./$cache_file";;
2178    esac
2179  fi
2180else
2181  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2182printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2183  >$cache_file
2184fi
2185
2186# Test code for whether the C compiler supports C89 (global declarations)
2187ac_c_conftest_c89_globals='
2188/* Does the compiler advertise C89 conformance?
2189   Do not test the value of __STDC__, because some compilers set it to 0
2190   while being otherwise adequately conformant. */
2191#if !defined __STDC__
2192# error "Compiler does not advertise C89 conformance"
2193#endif
2194
2195#include <stddef.h>
2196#include <stdarg.h>
2197struct stat;
2198/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2199struct buf { int x; };
2200struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2201static char *e (p, i)
2202     char **p;
2203     int i;
2204{
2205  return p[i];
2206}
2207static char *f (char * (*g) (char **, int), char **p, ...)
2208{
2209  char *s;
2210  va_list v;
2211  va_start (v,p);
2212  s = g (p, va_arg (v,int));
2213  va_end (v);
2214  return s;
2215}
2216
2217/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2218   function prototypes and stuff, but not \xHH hex character constants.
2219   These do not provoke an error unfortunately, instead are silently treated
2220   as an "x".  The following induces an error, until -std is added to get
2221   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2222   array size at least.  It is necessary to write \x00 == 0 to get something
2223   that is true only with -std.  */
2224int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2225
2226/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2227   inside strings and character constants.  */
2228#define FOO(x) '\''x'\''
2229int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2230
2231int test (int i, double x);
2232struct s1 {int (*f) (int a);};
2233struct s2 {int (*f) (double a);};
2234int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2235               int, int);'
2236
2237# Test code for whether the C compiler supports C89 (body of main).
2238ac_c_conftest_c89_main='
2239ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2240'
2241
2242# Test code for whether the C compiler supports C99 (global declarations)
2243ac_c_conftest_c99_globals='
2244// Does the compiler advertise C99 conformance?
2245#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2246# error "Compiler does not advertise C99 conformance"
2247#endif
2248
2249#include <stdbool.h>
2250extern int puts (const char *);
2251extern int printf (const char *, ...);
2252extern int dprintf (int, const char *, ...);
2253extern void *malloc (size_t);
2254
2255// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2256// dprintf is used instead of fprintf to avoid needing to declare
2257// FILE and stderr.
2258#define debug(...) dprintf (2, __VA_ARGS__)
2259#define showlist(...) puts (#__VA_ARGS__)
2260#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2261static void
2262test_varargs_macros (void)
2263{
2264  int x = 1234;
2265  int y = 5678;
2266  debug ("Flag");
2267  debug ("X = %d\n", x);
2268  showlist (The first, second, and third items.);
2269  report (x>y, "x is %d but y is %d", x, y);
2270}
2271
2272// Check long long types.
2273#define BIG64 18446744073709551615ull
2274#define BIG32 4294967295ul
2275#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2276#if !BIG_OK
2277  #error "your preprocessor is broken"
2278#endif
2279#if BIG_OK
2280#else
2281  #error "your preprocessor is broken"
2282#endif
2283static long long int bignum = -9223372036854775807LL;
2284static unsigned long long int ubignum = BIG64;
2285
2286struct incomplete_array
2287{
2288  int datasize;
2289  double data[];
2290};
2291
2292struct named_init {
2293  int number;
2294  const wchar_t *name;
2295  double average;
2296};
2297
2298typedef const char *ccp;
2299
2300static inline int
2301test_restrict (ccp restrict text)
2302{
2303  // See if C++-style comments work.
2304  // Iterate through items via the restricted pointer.
2305  // Also check for declarations in for loops.
2306  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2307    continue;
2308  return 0;
2309}
2310
2311// Check varargs and va_copy.
2312static bool
2313test_varargs (const char *format, ...)
2314{
2315  va_list args;
2316  va_start (args, format);
2317  va_list args_copy;
2318  va_copy (args_copy, args);
2319
2320  const char *str = "";
2321  int number = 0;
2322  float fnumber = 0;
2323
2324  while (*format)
2325    {
2326      switch (*format++)
2327	{
2328	case '\''s'\'': // string
2329	  str = va_arg (args_copy, const char *);
2330	  break;
2331	case '\''d'\'': // int
2332	  number = va_arg (args_copy, int);
2333	  break;
2334	case '\''f'\'': // float
2335	  fnumber = va_arg (args_copy, double);
2336	  break;
2337	default:
2338	  break;
2339	}
2340    }
2341  va_end (args_copy);
2342  va_end (args);
2343
2344  return *str && number && fnumber;
2345}
2346'
2347
2348# Test code for whether the C compiler supports C99 (body of main).
2349ac_c_conftest_c99_main='
2350  // Check bool.
2351  _Bool success = false;
2352  success |= (argc != 0);
2353
2354  // Check restrict.
2355  if (test_restrict ("String literal") == 0)
2356    success = true;
2357  char *restrict newvar = "Another string";
2358
2359  // Check varargs.
2360  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2361  test_varargs_macros ();
2362
2363  // Check flexible array members.
2364  struct incomplete_array *ia =
2365    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2366  ia->datasize = 10;
2367  for (int i = 0; i < ia->datasize; ++i)
2368    ia->data[i] = i * 1.234;
2369
2370  // Check named initializers.
2371  struct named_init ni = {
2372    .number = 34,
2373    .name = L"Test wide string",
2374    .average = 543.34343,
2375  };
2376
2377  ni.number = 58;
2378
2379  int dynamic_array[ni.number];
2380  dynamic_array[0] = argv[0][0];
2381  dynamic_array[ni.number - 1] = 543;
2382
2383  // work around unused variable warnings
2384  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2385	 || dynamic_array[ni.number - 1] != 543);
2386'
2387
2388# Test code for whether the C compiler supports C11 (global declarations)
2389ac_c_conftest_c11_globals='
2390// Does the compiler advertise C11 conformance?
2391#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2392# error "Compiler does not advertise C11 conformance"
2393#endif
2394
2395// Check _Alignas.
2396char _Alignas (double) aligned_as_double;
2397char _Alignas (0) no_special_alignment;
2398extern char aligned_as_int;
2399char _Alignas (0) _Alignas (int) aligned_as_int;
2400
2401// Check _Alignof.
2402enum
2403{
2404  int_alignment = _Alignof (int),
2405  int_array_alignment = _Alignof (int[100]),
2406  char_alignment = _Alignof (char)
2407};
2408_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2409
2410// Check _Noreturn.
2411int _Noreturn does_not_return (void) { for (;;) continue; }
2412
2413// Check _Static_assert.
2414struct test_static_assert
2415{
2416  int x;
2417  _Static_assert (sizeof (int) <= sizeof (long int),
2418                  "_Static_assert does not work in struct");
2419  long int y;
2420};
2421
2422// Check UTF-8 literals.
2423#define u8 syntax error!
2424char const utf8_literal[] = u8"happens to be ASCII" "another string";
2425
2426// Check duplicate typedefs.
2427typedef long *long_ptr;
2428typedef long int *long_ptr;
2429typedef long_ptr long_ptr;
2430
2431// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2432struct anonymous
2433{
2434  union {
2435    struct { int i; int j; };
2436    struct { int k; long int l; } w;
2437  };
2438  int m;
2439} v1;
2440'
2441
2442# Test code for whether the C compiler supports C11 (body of main).
2443ac_c_conftest_c11_main='
2444  _Static_assert ((offsetof (struct anonymous, i)
2445		   == offsetof (struct anonymous, w.k)),
2446		  "Anonymous union alignment botch");
2447  v1.i = 2;
2448  v1.w.k = 5;
2449  ok |= v1.i != 5;
2450'
2451
2452# Test code for whether the C compiler supports C11 (complete).
2453ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2454${ac_c_conftest_c99_globals}
2455${ac_c_conftest_c11_globals}
2456
2457int
2458main (int argc, char **argv)
2459{
2460  int ok = 0;
2461  ${ac_c_conftest_c89_main}
2462  ${ac_c_conftest_c99_main}
2463  ${ac_c_conftest_c11_main}
2464  return ok;
2465}
2466"
2467
2468# Test code for whether the C compiler supports C99 (complete).
2469ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2470${ac_c_conftest_c99_globals}
2471
2472int
2473main (int argc, char **argv)
2474{
2475  int ok = 0;
2476  ${ac_c_conftest_c89_main}
2477  ${ac_c_conftest_c99_main}
2478  return ok;
2479}
2480"
2481
2482# Test code for whether the C compiler supports C89 (complete).
2483ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2484
2485int
2486main (int argc, char **argv)
2487{
2488  int ok = 0;
2489  ${ac_c_conftest_c89_main}
2490  return ok;
2491}
2492"
2493
2494as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2495as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2496as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2497as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2498as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2499as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2500as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2501as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2502as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2503
2504# Auxiliary files required by this configure script.
2505ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2506
2507# Locations in which to look for auxiliary files.
2508ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2509
2510# Search for a directory containing all of the required auxiliary files,
2511# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2512# If we don't find one directory that contains all the files we need,
2513# we report the set of missing files from the *first* directory in
2514# $ac_aux_dir_candidates and give up.
2515ac_missing_aux_files=""
2516ac_first_candidate=:
2517printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519as_found=false
2520for as_dir in $ac_aux_dir_candidates
2521do
2522  IFS=$as_save_IFS
2523  case $as_dir in #(((
2524    '') as_dir=./ ;;
2525    */) ;;
2526    *) as_dir=$as_dir/ ;;
2527  esac
2528  as_found=:
2529
2530  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2531  ac_aux_dir_found=yes
2532  ac_install_sh=
2533  for ac_aux in $ac_aux_files
2534  do
2535    # As a special case, if "install-sh" is required, that requirement
2536    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2537    # and $ac_install_sh is set appropriately for whichever one is found.
2538    if test x"$ac_aux" = x"install-sh"
2539    then
2540      if test -f "${as_dir}install-sh"; then
2541        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2542        ac_install_sh="${as_dir}install-sh -c"
2543      elif test -f "${as_dir}install.sh"; then
2544        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2545        ac_install_sh="${as_dir}install.sh -c"
2546      elif test -f "${as_dir}shtool"; then
2547        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2548        ac_install_sh="${as_dir}shtool install -c"
2549      else
2550        ac_aux_dir_found=no
2551        if $ac_first_candidate; then
2552          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2553        else
2554          break
2555        fi
2556      fi
2557    else
2558      if test -f "${as_dir}${ac_aux}"; then
2559        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2560      else
2561        ac_aux_dir_found=no
2562        if $ac_first_candidate; then
2563          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2564        else
2565          break
2566        fi
2567      fi
2568    fi
2569  done
2570  if test "$ac_aux_dir_found" = yes; then
2571    ac_aux_dir="$as_dir"
2572    break
2573  fi
2574  ac_first_candidate=false
2575
2576  as_found=false
2577done
2578IFS=$as_save_IFS
2579if $as_found
2580then :
2581
2582else $as_nop
2583  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2584fi
2585
2586
2587# These three variables are undocumented and unsupported,
2588# and are intended to be withdrawn in a future Autoconf release.
2589# They can cause serious problems if a builder's source tree is in a directory
2590# whose full name contains unusual characters.
2591if test -f "${ac_aux_dir}config.guess"; then
2592  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2593fi
2594if test -f "${ac_aux_dir}config.sub"; then
2595  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2596fi
2597if test -f "$ac_aux_dir/configure"; then
2598  ac_configure="$SHELL ${ac_aux_dir}configure"
2599fi
2600
2601# Check that the precious variables saved in the cache have kept the same
2602# value.
2603ac_cache_corrupted=false
2604for ac_var in $ac_precious_vars; do
2605  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2606  eval ac_new_set=\$ac_env_${ac_var}_set
2607  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2608  eval ac_new_val=\$ac_env_${ac_var}_value
2609  case $ac_old_set,$ac_new_set in
2610    set,)
2611      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2612printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2613      ac_cache_corrupted=: ;;
2614    ,set)
2615      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2616printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2617      ac_cache_corrupted=: ;;
2618    ,);;
2619    *)
2620      if test "x$ac_old_val" != "x$ac_new_val"; then
2621	# differences in whitespace do not lead to failure.
2622	ac_old_val_w=`echo x $ac_old_val`
2623	ac_new_val_w=`echo x $ac_new_val`
2624	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2625	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2626printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2627	  ac_cache_corrupted=:
2628	else
2629	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2630printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2631	  eval $ac_var=\$ac_old_val
2632	fi
2633	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2634printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2635	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2636printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2637      fi;;
2638  esac
2639  # Pass precious variables to config.status.
2640  if test "$ac_new_set" = set; then
2641    case $ac_new_val in
2642    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2643    *) ac_arg=$ac_var=$ac_new_val ;;
2644    esac
2645    case " $ac_configure_args " in
2646      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2647      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2648    esac
2649  fi
2650done
2651if $ac_cache_corrupted; then
2652  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2653printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2654  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2655printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2656  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2657	    and start over" "$LINENO" 5
2658fi
2659## -------------------- ##
2660## Main body of script. ##
2661## -------------------- ##
2662
2663ac_ext=c
2664ac_cpp='$CPP $CPPFLAGS'
2665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2667ac_compiler_gnu=$ac_cv_c_compiler_gnu
2668
2669
2670
2671ac_config_headers="$ac_config_headers config.h"
2672
2673
2674# Initialize Automake
2675am__api_version='1.16'
2676
2677
2678
2679  # Find a good install program.  We prefer a C program (faster),
2680# so one script is as good as another.  But avoid the broken or
2681# incompatible versions:
2682# SysV /etc/install, /usr/sbin/install
2683# SunOS /usr/etc/install
2684# IRIX /sbin/install
2685# AIX /bin/install
2686# AmigaOS /C/install, which installs bootblocks on floppy discs
2687# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2688# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2689# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2690# OS/2's system install, which has a completely different semantic
2691# ./install, which can be erroneously created by make from ./install.sh.
2692# Reject install programs that cannot install multiple files.
2693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2694printf %s "checking for a BSD-compatible install... " >&6; }
2695if test -z "$INSTALL"; then
2696if test ${ac_cv_path_install+y}
2697then :
2698  printf %s "(cached) " >&6
2699else $as_nop
2700  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701for as_dir in $PATH
2702do
2703  IFS=$as_save_IFS
2704  case $as_dir in #(((
2705    '') as_dir=./ ;;
2706    */) ;;
2707    *) as_dir=$as_dir/ ;;
2708  esac
2709    # Account for fact that we put trailing slashes in our PATH walk.
2710case $as_dir in #((
2711  ./ | /[cC]/* | \
2712  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2713  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2714  /usr/ucb/* ) ;;
2715  *)
2716    # OSF1 and SCO ODT 3.0 have their own names for install.
2717    # Don't use installbsd from OSF since it installs stuff as root
2718    # by default.
2719    for ac_prog in ginstall scoinst install; do
2720      for ac_exec_ext in '' $ac_executable_extensions; do
2721	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2722	  if test $ac_prog = install &&
2723	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2724	    # AIX install.  It has an incompatible calling convention.
2725	    :
2726	  elif test $ac_prog = install &&
2727	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2728	    # program-specific install script used by HP pwplus--don't use.
2729	    :
2730	  else
2731	    rm -rf conftest.one conftest.two conftest.dir
2732	    echo one > conftest.one
2733	    echo two > conftest.two
2734	    mkdir conftest.dir
2735	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2736	      test -s conftest.one && test -s conftest.two &&
2737	      test -s conftest.dir/conftest.one &&
2738	      test -s conftest.dir/conftest.two
2739	    then
2740	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2741	      break 3
2742	    fi
2743	  fi
2744	fi
2745      done
2746    done
2747    ;;
2748esac
2749
2750  done
2751IFS=$as_save_IFS
2752
2753rm -rf conftest.one conftest.two conftest.dir
2754
2755fi
2756  if test ${ac_cv_path_install+y}; then
2757    INSTALL=$ac_cv_path_install
2758  else
2759    # As a last resort, use the slow shell script.  Don't cache a
2760    # value for INSTALL within a source directory, because that will
2761    # break other packages using the cache if that directory is
2762    # removed, or if the value is a relative name.
2763    INSTALL=$ac_install_sh
2764  fi
2765fi
2766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2767printf "%s\n" "$INSTALL" >&6; }
2768
2769# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2770# It thinks the first close brace ends the variable substitution.
2771test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2772
2773test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2774
2775test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2776
2777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2778printf %s "checking whether build environment is sane... " >&6; }
2779# Reject unsafe characters in $srcdir or the absolute working directory
2780# name.  Accept space and tab only in the latter.
2781am_lf='
2782'
2783case `pwd` in
2784  *[\\\"\#\$\&\'\`$am_lf]*)
2785    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2786esac
2787case $srcdir in
2788  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2789    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2790esac
2791
2792# Do 'set' in a subshell so we don't clobber the current shell's
2793# arguments.  Must try -L first in case configure is actually a
2794# symlink; some systems play weird games with the mod time of symlinks
2795# (eg FreeBSD returns the mod time of the symlink's containing
2796# directory).
2797if (
2798   am_has_slept=no
2799   for am_try in 1 2; do
2800     echo "timestamp, slept: $am_has_slept" > conftest.file
2801     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2802     if test "$*" = "X"; then
2803	# -L didn't work.
2804	set X `ls -t "$srcdir/configure" conftest.file`
2805     fi
2806     if test "$*" != "X $srcdir/configure conftest.file" \
2807	&& test "$*" != "X conftest.file $srcdir/configure"; then
2808
2809	# If neither matched, then we have a broken ls.  This can happen
2810	# if, for instance, CONFIG_SHELL is bash and it inherits a
2811	# broken ls alias from the environment.  This has actually
2812	# happened.  Such a system could not be considered "sane".
2813	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2814  alias in your environment" "$LINENO" 5
2815     fi
2816     if test "$2" = conftest.file || test $am_try -eq 2; then
2817       break
2818     fi
2819     # Just in case.
2820     sleep 1
2821     am_has_slept=yes
2822   done
2823   test "$2" = conftest.file
2824   )
2825then
2826   # Ok.
2827   :
2828else
2829   as_fn_error $? "newly created file is older than distributed files!
2830Check your system clock" "$LINENO" 5
2831fi
2832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2833printf "%s\n" "yes" >&6; }
2834# If we didn't sleep, we still need to ensure time stamps of config.status and
2835# generated files are strictly newer.
2836am_sleep_pid=
2837if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2838  ( sleep 1 ) &
2839  am_sleep_pid=$!
2840fi
2841
2842rm -f conftest.file
2843
2844test "$program_prefix" != NONE &&
2845  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2846# Use a double $ so make ignores it.
2847test "$program_suffix" != NONE &&
2848  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2849# Double any \ or $.
2850# By default was `s,x,x', remove it if useless.
2851ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2852program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2853
2854
2855# Expand $ac_aux_dir to an absolute path.
2856am_aux_dir=`cd "$ac_aux_dir" && pwd`
2857
2858
2859  if test x"${MISSING+set}" != xset; then
2860  MISSING="\${SHELL} '$am_aux_dir/missing'"
2861fi
2862# Use eval to expand $SHELL
2863if eval "$MISSING --is-lightweight"; then
2864  am_missing_run="$MISSING "
2865else
2866  am_missing_run=
2867  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2868printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2869fi
2870
2871if test x"${install_sh+set}" != xset; then
2872  case $am_aux_dir in
2873  *\ * | *\	*)
2874    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2875  *)
2876    install_sh="\${SHELL} $am_aux_dir/install-sh"
2877  esac
2878fi
2879
2880# Installed binaries are usually stripped using 'strip' when the user
2881# run "make install-strip".  However 'strip' might not be the right
2882# tool to use in cross-compilation environments, therefore Automake
2883# will honor the 'STRIP' environment variable to overrule this program.
2884if test "$cross_compiling" != no; then
2885  if test -n "$ac_tool_prefix"; then
2886  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2887set dummy ${ac_tool_prefix}strip; ac_word=$2
2888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889printf %s "checking for $ac_word... " >&6; }
2890if test ${ac_cv_prog_STRIP+y}
2891then :
2892  printf %s "(cached) " >&6
2893else $as_nop
2894  if test -n "$STRIP"; then
2895  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2896else
2897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898for as_dir in $PATH
2899do
2900  IFS=$as_save_IFS
2901  case $as_dir in #(((
2902    '') as_dir=./ ;;
2903    */) ;;
2904    *) as_dir=$as_dir/ ;;
2905  esac
2906    for ac_exec_ext in '' $ac_executable_extensions; do
2907  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2908    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2909    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2910    break 2
2911  fi
2912done
2913  done
2914IFS=$as_save_IFS
2915
2916fi
2917fi
2918STRIP=$ac_cv_prog_STRIP
2919if test -n "$STRIP"; then
2920  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2921printf "%s\n" "$STRIP" >&6; }
2922else
2923  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924printf "%s\n" "no" >&6; }
2925fi
2926
2927
2928fi
2929if test -z "$ac_cv_prog_STRIP"; then
2930  ac_ct_STRIP=$STRIP
2931  # Extract the first word of "strip", so it can be a program name with args.
2932set dummy strip; ac_word=$2
2933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934printf %s "checking for $ac_word... " >&6; }
2935if test ${ac_cv_prog_ac_ct_STRIP+y}
2936then :
2937  printf %s "(cached) " >&6
2938else $as_nop
2939  if test -n "$ac_ct_STRIP"; then
2940  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2941else
2942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943for as_dir in $PATH
2944do
2945  IFS=$as_save_IFS
2946  case $as_dir in #(((
2947    '') as_dir=./ ;;
2948    */) ;;
2949    *) as_dir=$as_dir/ ;;
2950  esac
2951    for ac_exec_ext in '' $ac_executable_extensions; do
2952  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2953    ac_cv_prog_ac_ct_STRIP="strip"
2954    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2955    break 2
2956  fi
2957done
2958  done
2959IFS=$as_save_IFS
2960
2961fi
2962fi
2963ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2964if test -n "$ac_ct_STRIP"; then
2965  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2966printf "%s\n" "$ac_ct_STRIP" >&6; }
2967else
2968  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969printf "%s\n" "no" >&6; }
2970fi
2971
2972  if test "x$ac_ct_STRIP" = x; then
2973    STRIP=":"
2974  else
2975    case $cross_compiling:$ac_tool_warned in
2976yes:)
2977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2978printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2979ac_tool_warned=yes ;;
2980esac
2981    STRIP=$ac_ct_STRIP
2982  fi
2983else
2984  STRIP="$ac_cv_prog_STRIP"
2985fi
2986
2987fi
2988INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2989
2990
2991  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2992printf %s "checking for a race-free mkdir -p... " >&6; }
2993if test -z "$MKDIR_P"; then
2994  if test ${ac_cv_path_mkdir+y}
2995then :
2996  printf %s "(cached) " >&6
2997else $as_nop
2998  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3000do
3001  IFS=$as_save_IFS
3002  case $as_dir in #(((
3003    '') as_dir=./ ;;
3004    */) ;;
3005    *) as_dir=$as_dir/ ;;
3006  esac
3007    for ac_prog in mkdir gmkdir; do
3008	 for ac_exec_ext in '' $ac_executable_extensions; do
3009	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3010	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3011	     'mkdir ('*'coreutils) '* | \
3012	     'BusyBox '* | \
3013	     'mkdir (fileutils) '4.1*)
3014	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3015	       break 3;;
3016	   esac
3017	 done
3018       done
3019  done
3020IFS=$as_save_IFS
3021
3022fi
3023
3024  test -d ./--version && rmdir ./--version
3025  if test ${ac_cv_path_mkdir+y}; then
3026    MKDIR_P="$ac_cv_path_mkdir -p"
3027  else
3028    # As a last resort, use the slow shell script.  Don't cache a
3029    # value for MKDIR_P within a source directory, because that will
3030    # break other packages using the cache if that directory is
3031    # removed, or if the value is a relative name.
3032    MKDIR_P="$ac_install_sh -d"
3033  fi
3034fi
3035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3036printf "%s\n" "$MKDIR_P" >&6; }
3037
3038for ac_prog in gawk mawk nawk awk
3039do
3040  # Extract the first word of "$ac_prog", so it can be a program name with args.
3041set dummy $ac_prog; ac_word=$2
3042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043printf %s "checking for $ac_word... " >&6; }
3044if test ${ac_cv_prog_AWK+y}
3045then :
3046  printf %s "(cached) " >&6
3047else $as_nop
3048  if test -n "$AWK"; then
3049  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3050else
3051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052for as_dir in $PATH
3053do
3054  IFS=$as_save_IFS
3055  case $as_dir in #(((
3056    '') as_dir=./ ;;
3057    */) ;;
3058    *) as_dir=$as_dir/ ;;
3059  esac
3060    for ac_exec_ext in '' $ac_executable_extensions; do
3061  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3062    ac_cv_prog_AWK="$ac_prog"
3063    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3064    break 2
3065  fi
3066done
3067  done
3068IFS=$as_save_IFS
3069
3070fi
3071fi
3072AWK=$ac_cv_prog_AWK
3073if test -n "$AWK"; then
3074  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3075printf "%s\n" "$AWK" >&6; }
3076else
3077  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078printf "%s\n" "no" >&6; }
3079fi
3080
3081
3082  test -n "$AWK" && break
3083done
3084
3085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3086printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3087set x ${MAKE-make}
3088ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3089if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3090then :
3091  printf %s "(cached) " >&6
3092else $as_nop
3093  cat >conftest.make <<\_ACEOF
3094SHELL = /bin/sh
3095all:
3096	@echo '@@@%%%=$(MAKE)=@@@%%%'
3097_ACEOF
3098# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3099case `${MAKE-make} -f conftest.make 2>/dev/null` in
3100  *@@@%%%=?*=@@@%%%*)
3101    eval ac_cv_prog_make_${ac_make}_set=yes;;
3102  *)
3103    eval ac_cv_prog_make_${ac_make}_set=no;;
3104esac
3105rm -f conftest.make
3106fi
3107if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3108  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3109printf "%s\n" "yes" >&6; }
3110  SET_MAKE=
3111else
3112  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113printf "%s\n" "no" >&6; }
3114  SET_MAKE="MAKE=${MAKE-make}"
3115fi
3116
3117rm -rf .tst 2>/dev/null
3118mkdir .tst 2>/dev/null
3119if test -d .tst; then
3120  am__leading_dot=.
3121else
3122  am__leading_dot=_
3123fi
3124rmdir .tst 2>/dev/null
3125
3126# Check whether --enable-silent-rules was given.
3127if test ${enable_silent_rules+y}
3128then :
3129  enableval=$enable_silent_rules;
3130fi
3131
3132case $enable_silent_rules in # (((
3133  yes) AM_DEFAULT_VERBOSITY=0;;
3134   no) AM_DEFAULT_VERBOSITY=1;;
3135    *) AM_DEFAULT_VERBOSITY=1;;
3136esac
3137am_make=${MAKE-make}
3138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3139printf %s "checking whether $am_make supports nested variables... " >&6; }
3140if test ${am_cv_make_support_nested_variables+y}
3141then :
3142  printf %s "(cached) " >&6
3143else $as_nop
3144  if printf "%s\n" 'TRUE=$(BAR$(V))
3145BAR0=false
3146BAR1=true
3147V=1
3148am__doit:
3149	@$(TRUE)
3150.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3151  am_cv_make_support_nested_variables=yes
3152else
3153  am_cv_make_support_nested_variables=no
3154fi
3155fi
3156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3157printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3158if test $am_cv_make_support_nested_variables = yes; then
3159    AM_V='$(V)'
3160  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3161else
3162  AM_V=$AM_DEFAULT_VERBOSITY
3163  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3164fi
3165AM_BACKSLASH='\'
3166
3167if test "`cd $srcdir && pwd`" != "`pwd`"; then
3168  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3169  # is not polluted with repeated "-I."
3170  am__isrc=' -I$(srcdir)'
3171  # test to see if srcdir already configured
3172  if test -f $srcdir/config.status; then
3173    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3174  fi
3175fi
3176
3177# test whether we have cygpath
3178if test -z "$CYGPATH_W"; then
3179  if (cygpath --version) >/dev/null 2>/dev/null; then
3180    CYGPATH_W='cygpath -w'
3181  else
3182    CYGPATH_W=echo
3183  fi
3184fi
3185
3186
3187# Define the identity of the package.
3188 PACKAGE='libXv'
3189 VERSION='1.0.12'
3190
3191
3192printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3193
3194
3195printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3196
3197# Some tools Automake needs.
3198
3199ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3200
3201
3202AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3203
3204
3205AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3206
3207
3208AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3209
3210
3211MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3212
3213# For better backward compatibility.  To be removed once Automake 1.9.x
3214# dies out for good.  For more background, see:
3215# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3216# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3217mkdir_p='$(MKDIR_P)'
3218
3219# We need awk for the "check" target (and possibly the TAP driver).  The
3220# system "awk" is bad on some platforms.
3221# Always define AMTAR for backward compatibility.  Yes, it's still used
3222# in the wild :-(  We should find a proper way to deprecate it ...
3223AMTAR='$${TAR-tar}'
3224
3225
3226# We'll loop over all known methods to create a tar archive until one works.
3227_am_tools='gnutar  pax cpio none'
3228
3229am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3230
3231
3232
3233
3234
3235# Variables for tags utilities; see am/tags.am
3236if test -z "$CTAGS"; then
3237  CTAGS=ctags
3238fi
3239
3240if test -z "$ETAGS"; then
3241  ETAGS=etags
3242fi
3243
3244if test -z "$CSCOPE"; then
3245  CSCOPE=cscope
3246fi
3247
3248
3249
3250# POSIX will say in a future version that running "rm -f" with no argument
3251# is OK; and we want to be able to make that assumption in our Makefile
3252# recipes.  So use an aggressive probe to check that the usage we want is
3253# actually supported "in the wild" to an acceptable degree.
3254# See automake bug#10828.
3255# To make any issue more visible, cause the running configure to be aborted
3256# by default if the 'rm' program in use doesn't match our expectations; the
3257# user can still override this though.
3258if rm -f && rm -fr && rm -rf; then : OK; else
3259  cat >&2 <<'END'
3260Oops!
3261
3262Your 'rm' program seems unable to run without file operands specified
3263on the command line, even when the '-f' option is present.  This is contrary
3264to the behaviour of most rm programs out there, and not conforming with
3265the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3266
3267Please tell bug-automake@gnu.org about your system, including the value
3268of your $PATH and any error possibly output before this message.  This
3269can help us improve future automake versions.
3270
3271END
3272  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3273    echo 'Configuration will proceed anyway, since you have set the' >&2
3274    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3275    echo >&2
3276  else
3277    cat >&2 <<'END'
3278Aborting the configuration process, to ensure you take notice of the issue.
3279
3280You can download and install GNU coreutils to get an 'rm' implementation
3281that behaves properly: <https://www.gnu.org/software/coreutils/>.
3282
3283If you want to complete the configuration process using your problematic
3284'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3285to "yes", and re-run configure.
3286
3287END
3288    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3289  fi
3290fi
3291
3292
3293# Initialize libtool
3294case `pwd` in
3295  *\ * | *\	*)
3296    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3297printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3298esac
3299
3300
3301
3302macro_version='2.4.7'
3303macro_revision='2.4.7'
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318ltmain=$ac_aux_dir/ltmain.sh
3319
3320
3321
3322  # Make sure we can run config.sub.
3323$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3324  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3325
3326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3327printf %s "checking build system type... " >&6; }
3328if test ${ac_cv_build+y}
3329then :
3330  printf %s "(cached) " >&6
3331else $as_nop
3332  ac_build_alias=$build_alias
3333test "x$ac_build_alias" = x &&
3334  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3335test "x$ac_build_alias" = x &&
3336  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3337ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3338  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3339
3340fi
3341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3342printf "%s\n" "$ac_cv_build" >&6; }
3343case $ac_cv_build in
3344*-*-*) ;;
3345*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3346esac
3347build=$ac_cv_build
3348ac_save_IFS=$IFS; IFS='-'
3349set x $ac_cv_build
3350shift
3351build_cpu=$1
3352build_vendor=$2
3353shift; shift
3354# Remember, the first character of IFS is used to create $*,
3355# except with old shells:
3356build_os=$*
3357IFS=$ac_save_IFS
3358case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3359
3360
3361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3362printf %s "checking host system type... " >&6; }
3363if test ${ac_cv_host+y}
3364then :
3365  printf %s "(cached) " >&6
3366else $as_nop
3367  if test "x$host_alias" = x; then
3368  ac_cv_host=$ac_cv_build
3369else
3370  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3371    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3372fi
3373
3374fi
3375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3376printf "%s\n" "$ac_cv_host" >&6; }
3377case $ac_cv_host in
3378*-*-*) ;;
3379*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3380esac
3381host=$ac_cv_host
3382ac_save_IFS=$IFS; IFS='-'
3383set x $ac_cv_host
3384shift
3385host_cpu=$1
3386host_vendor=$2
3387shift; shift
3388# Remember, the first character of IFS is used to create $*,
3389# except with old shells:
3390host_os=$*
3391IFS=$ac_save_IFS
3392case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3393
3394
3395# Backslashify metacharacters that are still active within
3396# double-quoted strings.
3397sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3398
3399# Same as above, but do not quote variable references.
3400double_quote_subst='s/\(["`\\]\)/\\\1/g'
3401
3402# Sed substitution to delay expansion of an escaped shell variable in a
3403# double_quote_subst'ed string.
3404delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3405
3406# Sed substitution to delay expansion of an escaped single quote.
3407delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3408
3409# Sed substitution to avoid accidental globbing in evaled expressions
3410no_glob_subst='s/\*/\\\*/g'
3411
3412ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3413ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3414ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3415
3416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3417printf %s "checking how to print strings... " >&6; }
3418# Test print first, because it will be a builtin if present.
3419if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3420   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3421  ECHO='print -r --'
3422elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3423  ECHO='printf %s\n'
3424else
3425  # Use this function as a fallback that always works.
3426  func_fallback_echo ()
3427  {
3428    eval 'cat <<_LTECHO_EOF
3429$1
3430_LTECHO_EOF'
3431  }
3432  ECHO='func_fallback_echo'
3433fi
3434
3435# func_echo_all arg...
3436# Invoke $ECHO with all args, space-separated.
3437func_echo_all ()
3438{
3439    $ECHO ""
3440}
3441
3442case $ECHO in
3443  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3444printf "%s\n" "printf" >&6; } ;;
3445  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3446printf "%s\n" "print -r" >&6; } ;;
3447  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3448printf "%s\n" "cat" >&6; } ;;
3449esac
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473DEPDIR="${am__leading_dot}deps"
3474
3475ac_config_commands="$ac_config_commands depfiles"
3476
3477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3478printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3479cat > confinc.mk << 'END'
3480am__doit:
3481	@echo this is the am__doit target >confinc.out
3482.PHONY: am__doit
3483END
3484am__include="#"
3485am__quote=
3486# BSD make does it like this.
3487echo '.include "confinc.mk" # ignored' > confmf.BSD
3488# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3489echo 'include confinc.mk # ignored' > confmf.GNU
3490_am_result=no
3491for s in GNU BSD; do
3492  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3493   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3494   ac_status=$?
3495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496   (exit $ac_status); }
3497  case $?:`cat confinc.out 2>/dev/null` in #(
3498  '0:this is the am__doit target') :
3499    case $s in #(
3500  BSD) :
3501    am__include='.include' am__quote='"' ;; #(
3502  *) :
3503    am__include='include' am__quote='' ;;
3504esac ;; #(
3505  *) :
3506     ;;
3507esac
3508  if test "$am__include" != "#"; then
3509    _am_result="yes ($s style)"
3510    break
3511  fi
3512done
3513rm -f confinc.* confmf.*
3514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3515printf "%s\n" "${_am_result}" >&6; }
3516
3517# Check whether --enable-dependency-tracking was given.
3518if test ${enable_dependency_tracking+y}
3519then :
3520  enableval=$enable_dependency_tracking;
3521fi
3522
3523if test "x$enable_dependency_tracking" != xno; then
3524  am_depcomp="$ac_aux_dir/depcomp"
3525  AMDEPBACKSLASH='\'
3526  am__nodep='_no'
3527fi
3528 if test "x$enable_dependency_tracking" != xno; then
3529  AMDEP_TRUE=
3530  AMDEP_FALSE='#'
3531else
3532  AMDEP_TRUE='#'
3533  AMDEP_FALSE=
3534fi
3535
3536
3537ac_ext=c
3538ac_cpp='$CPP $CPPFLAGS'
3539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3541ac_compiler_gnu=$ac_cv_c_compiler_gnu
3542if test -n "$ac_tool_prefix"; then
3543  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3544set dummy ${ac_tool_prefix}gcc; ac_word=$2
3545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3546printf %s "checking for $ac_word... " >&6; }
3547if test ${ac_cv_prog_CC+y}
3548then :
3549  printf %s "(cached) " >&6
3550else $as_nop
3551  if test -n "$CC"; then
3552  ac_cv_prog_CC="$CC" # Let the user override the test.
3553else
3554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555for as_dir in $PATH
3556do
3557  IFS=$as_save_IFS
3558  case $as_dir in #(((
3559    '') as_dir=./ ;;
3560    */) ;;
3561    *) as_dir=$as_dir/ ;;
3562  esac
3563    for ac_exec_ext in '' $ac_executable_extensions; do
3564  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3565    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3566    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3567    break 2
3568  fi
3569done
3570  done
3571IFS=$as_save_IFS
3572
3573fi
3574fi
3575CC=$ac_cv_prog_CC
3576if test -n "$CC"; then
3577  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3578printf "%s\n" "$CC" >&6; }
3579else
3580  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581printf "%s\n" "no" >&6; }
3582fi
3583
3584
3585fi
3586if test -z "$ac_cv_prog_CC"; then
3587  ac_ct_CC=$CC
3588  # Extract the first word of "gcc", so it can be a program name with args.
3589set dummy gcc; ac_word=$2
3590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591printf %s "checking for $ac_word... " >&6; }
3592if test ${ac_cv_prog_ac_ct_CC+y}
3593then :
3594  printf %s "(cached) " >&6
3595else $as_nop
3596  if test -n "$ac_ct_CC"; then
3597  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3598else
3599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600for as_dir in $PATH
3601do
3602  IFS=$as_save_IFS
3603  case $as_dir in #(((
3604    '') as_dir=./ ;;
3605    */) ;;
3606    *) as_dir=$as_dir/ ;;
3607  esac
3608    for ac_exec_ext in '' $ac_executable_extensions; do
3609  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3610    ac_cv_prog_ac_ct_CC="gcc"
3611    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3612    break 2
3613  fi
3614done
3615  done
3616IFS=$as_save_IFS
3617
3618fi
3619fi
3620ac_ct_CC=$ac_cv_prog_ac_ct_CC
3621if test -n "$ac_ct_CC"; then
3622  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3623printf "%s\n" "$ac_ct_CC" >&6; }
3624else
3625  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3626printf "%s\n" "no" >&6; }
3627fi
3628
3629  if test "x$ac_ct_CC" = x; then
3630    CC=""
3631  else
3632    case $cross_compiling:$ac_tool_warned in
3633yes:)
3634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3635printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3636ac_tool_warned=yes ;;
3637esac
3638    CC=$ac_ct_CC
3639  fi
3640else
3641  CC="$ac_cv_prog_CC"
3642fi
3643
3644if test -z "$CC"; then
3645          if test -n "$ac_tool_prefix"; then
3646    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3647set dummy ${ac_tool_prefix}cc; ac_word=$2
3648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649printf %s "checking for $ac_word... " >&6; }
3650if test ${ac_cv_prog_CC+y}
3651then :
3652  printf %s "(cached) " >&6
3653else $as_nop
3654  if test -n "$CC"; then
3655  ac_cv_prog_CC="$CC" # Let the user override the test.
3656else
3657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658for as_dir in $PATH
3659do
3660  IFS=$as_save_IFS
3661  case $as_dir in #(((
3662    '') as_dir=./ ;;
3663    */) ;;
3664    *) as_dir=$as_dir/ ;;
3665  esac
3666    for ac_exec_ext in '' $ac_executable_extensions; do
3667  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3668    ac_cv_prog_CC="${ac_tool_prefix}cc"
3669    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3670    break 2
3671  fi
3672done
3673  done
3674IFS=$as_save_IFS
3675
3676fi
3677fi
3678CC=$ac_cv_prog_CC
3679if test -n "$CC"; then
3680  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3681printf "%s\n" "$CC" >&6; }
3682else
3683  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684printf "%s\n" "no" >&6; }
3685fi
3686
3687
3688  fi
3689fi
3690if test -z "$CC"; then
3691  # Extract the first word of "cc", so it can be a program name with args.
3692set dummy cc; ac_word=$2
3693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3694printf %s "checking for $ac_word... " >&6; }
3695if test ${ac_cv_prog_CC+y}
3696then :
3697  printf %s "(cached) " >&6
3698else $as_nop
3699  if test -n "$CC"; then
3700  ac_cv_prog_CC="$CC" # Let the user override the test.
3701else
3702  ac_prog_rejected=no
3703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704for as_dir in $PATH
3705do
3706  IFS=$as_save_IFS
3707  case $as_dir in #(((
3708    '') as_dir=./ ;;
3709    */) ;;
3710    *) as_dir=$as_dir/ ;;
3711  esac
3712    for ac_exec_ext in '' $ac_executable_extensions; do
3713  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3714    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3715       ac_prog_rejected=yes
3716       continue
3717     fi
3718    ac_cv_prog_CC="cc"
3719    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3720    break 2
3721  fi
3722done
3723  done
3724IFS=$as_save_IFS
3725
3726if test $ac_prog_rejected = yes; then
3727  # We found a bogon in the path, so make sure we never use it.
3728  set dummy $ac_cv_prog_CC
3729  shift
3730  if test $# != 0; then
3731    # We chose a different compiler from the bogus one.
3732    # However, it has the same basename, so the bogon will be chosen
3733    # first if we set CC to just the basename; use the full file name.
3734    shift
3735    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3736  fi
3737fi
3738fi
3739fi
3740CC=$ac_cv_prog_CC
3741if test -n "$CC"; then
3742  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3743printf "%s\n" "$CC" >&6; }
3744else
3745  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3746printf "%s\n" "no" >&6; }
3747fi
3748
3749
3750fi
3751if test -z "$CC"; then
3752  if test -n "$ac_tool_prefix"; then
3753  for ac_prog in cl.exe
3754  do
3755    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3756set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3758printf %s "checking for $ac_word... " >&6; }
3759if test ${ac_cv_prog_CC+y}
3760then :
3761  printf %s "(cached) " >&6
3762else $as_nop
3763  if test -n "$CC"; then
3764  ac_cv_prog_CC="$CC" # Let the user override the test.
3765else
3766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767for as_dir in $PATH
3768do
3769  IFS=$as_save_IFS
3770  case $as_dir in #(((
3771    '') as_dir=./ ;;
3772    */) ;;
3773    *) as_dir=$as_dir/ ;;
3774  esac
3775    for ac_exec_ext in '' $ac_executable_extensions; do
3776  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3777    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3778    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3779    break 2
3780  fi
3781done
3782  done
3783IFS=$as_save_IFS
3784
3785fi
3786fi
3787CC=$ac_cv_prog_CC
3788if test -n "$CC"; then
3789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3790printf "%s\n" "$CC" >&6; }
3791else
3792  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793printf "%s\n" "no" >&6; }
3794fi
3795
3796
3797    test -n "$CC" && break
3798  done
3799fi
3800if test -z "$CC"; then
3801  ac_ct_CC=$CC
3802  for ac_prog in cl.exe
3803do
3804  # Extract the first word of "$ac_prog", so it can be a program name with args.
3805set dummy $ac_prog; ac_word=$2
3806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3807printf %s "checking for $ac_word... " >&6; }
3808if test ${ac_cv_prog_ac_ct_CC+y}
3809then :
3810  printf %s "(cached) " >&6
3811else $as_nop
3812  if test -n "$ac_ct_CC"; then
3813  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3814else
3815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816for as_dir in $PATH
3817do
3818  IFS=$as_save_IFS
3819  case $as_dir in #(((
3820    '') as_dir=./ ;;
3821    */) ;;
3822    *) as_dir=$as_dir/ ;;
3823  esac
3824    for ac_exec_ext in '' $ac_executable_extensions; do
3825  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3826    ac_cv_prog_ac_ct_CC="$ac_prog"
3827    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3828    break 2
3829  fi
3830done
3831  done
3832IFS=$as_save_IFS
3833
3834fi
3835fi
3836ac_ct_CC=$ac_cv_prog_ac_ct_CC
3837if test -n "$ac_ct_CC"; then
3838  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3839printf "%s\n" "$ac_ct_CC" >&6; }
3840else
3841  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3842printf "%s\n" "no" >&6; }
3843fi
3844
3845
3846  test -n "$ac_ct_CC" && break
3847done
3848
3849  if test "x$ac_ct_CC" = x; then
3850    CC=""
3851  else
3852    case $cross_compiling:$ac_tool_warned in
3853yes:)
3854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3855printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3856ac_tool_warned=yes ;;
3857esac
3858    CC=$ac_ct_CC
3859  fi
3860fi
3861
3862fi
3863if test -z "$CC"; then
3864  if test -n "$ac_tool_prefix"; then
3865  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3866set dummy ${ac_tool_prefix}clang; ac_word=$2
3867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3868printf %s "checking for $ac_word... " >&6; }
3869if test ${ac_cv_prog_CC+y}
3870then :
3871  printf %s "(cached) " >&6
3872else $as_nop
3873  if test -n "$CC"; then
3874  ac_cv_prog_CC="$CC" # Let the user override the test.
3875else
3876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877for as_dir in $PATH
3878do
3879  IFS=$as_save_IFS
3880  case $as_dir in #(((
3881    '') as_dir=./ ;;
3882    */) ;;
3883    *) as_dir=$as_dir/ ;;
3884  esac
3885    for ac_exec_ext in '' $ac_executable_extensions; do
3886  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3887    ac_cv_prog_CC="${ac_tool_prefix}clang"
3888    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3889    break 2
3890  fi
3891done
3892  done
3893IFS=$as_save_IFS
3894
3895fi
3896fi
3897CC=$ac_cv_prog_CC
3898if test -n "$CC"; then
3899  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3900printf "%s\n" "$CC" >&6; }
3901else
3902  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3903printf "%s\n" "no" >&6; }
3904fi
3905
3906
3907fi
3908if test -z "$ac_cv_prog_CC"; then
3909  ac_ct_CC=$CC
3910  # Extract the first word of "clang", so it can be a program name with args.
3911set dummy clang; ac_word=$2
3912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3913printf %s "checking for $ac_word... " >&6; }
3914if test ${ac_cv_prog_ac_ct_CC+y}
3915then :
3916  printf %s "(cached) " >&6
3917else $as_nop
3918  if test -n "$ac_ct_CC"; then
3919  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3920else
3921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922for as_dir in $PATH
3923do
3924  IFS=$as_save_IFS
3925  case $as_dir in #(((
3926    '') as_dir=./ ;;
3927    */) ;;
3928    *) as_dir=$as_dir/ ;;
3929  esac
3930    for ac_exec_ext in '' $ac_executable_extensions; do
3931  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3932    ac_cv_prog_ac_ct_CC="clang"
3933    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3934    break 2
3935  fi
3936done
3937  done
3938IFS=$as_save_IFS
3939
3940fi
3941fi
3942ac_ct_CC=$ac_cv_prog_ac_ct_CC
3943if test -n "$ac_ct_CC"; then
3944  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3945printf "%s\n" "$ac_ct_CC" >&6; }
3946else
3947  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3948printf "%s\n" "no" >&6; }
3949fi
3950
3951  if test "x$ac_ct_CC" = x; then
3952    CC=""
3953  else
3954    case $cross_compiling:$ac_tool_warned in
3955yes:)
3956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3957printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3958ac_tool_warned=yes ;;
3959esac
3960    CC=$ac_ct_CC
3961  fi
3962else
3963  CC="$ac_cv_prog_CC"
3964fi
3965
3966fi
3967
3968
3969test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3970printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3971as_fn_error $? "no acceptable C compiler found in \$PATH
3972See \`config.log' for more details" "$LINENO" 5; }
3973
3974# Provide some information about the compiler.
3975printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3976set X $ac_compile
3977ac_compiler=$2
3978for ac_option in --version -v -V -qversion -version; do
3979  { { ac_try="$ac_compiler $ac_option >&5"
3980case "(($ac_try" in
3981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3982  *) ac_try_echo=$ac_try;;
3983esac
3984eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3985printf "%s\n" "$ac_try_echo"; } >&5
3986  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3987  ac_status=$?
3988  if test -s conftest.err; then
3989    sed '10a\
3990... rest of stderr output deleted ...
3991         10q' conftest.err >conftest.er1
3992    cat conftest.er1 >&5
3993  fi
3994  rm -f conftest.er1 conftest.err
3995  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3996  test $ac_status = 0; }
3997done
3998
3999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000/* end confdefs.h.  */
4001
4002int
4003main (void)
4004{
4005
4006  ;
4007  return 0;
4008}
4009_ACEOF
4010ac_clean_files_save=$ac_clean_files
4011ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4012# Try to create an executable without -o first, disregard a.out.
4013# It will help us diagnose broken compilers, and finding out an intuition
4014# of exeext.
4015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4016printf %s "checking whether the C compiler works... " >&6; }
4017ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4018
4019# The possible output files:
4020ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4021
4022ac_rmfiles=
4023for ac_file in $ac_files
4024do
4025  case $ac_file in
4026    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4027    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4028  esac
4029done
4030rm -f $ac_rmfiles
4031
4032if { { ac_try="$ac_link_default"
4033case "(($ac_try" in
4034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035  *) ac_try_echo=$ac_try;;
4036esac
4037eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4038printf "%s\n" "$ac_try_echo"; } >&5
4039  (eval "$ac_link_default") 2>&5
4040  ac_status=$?
4041  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4042  test $ac_status = 0; }
4043then :
4044  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4045# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4046# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4047# so that the user can short-circuit this test for compilers unknown to
4048# Autoconf.
4049for ac_file in $ac_files ''
4050do
4051  test -f "$ac_file" || continue
4052  case $ac_file in
4053    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4054	;;
4055    [ab].out )
4056	# We found the default executable, but exeext='' is most
4057	# certainly right.
4058	break;;
4059    *.* )
4060	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4061	then :; else
4062	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4063	fi
4064	# We set ac_cv_exeext here because the later test for it is not
4065	# safe: cross compilers may not add the suffix if given an `-o'
4066	# argument, so we may need to know it at that point already.
4067	# Even if this section looks crufty: it has the advantage of
4068	# actually working.
4069	break;;
4070    * )
4071	break;;
4072  esac
4073done
4074test "$ac_cv_exeext" = no && ac_cv_exeext=
4075
4076else $as_nop
4077  ac_file=''
4078fi
4079if test -z "$ac_file"
4080then :
4081  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4082printf "%s\n" "no" >&6; }
4083printf "%s\n" "$as_me: failed program was:" >&5
4084sed 's/^/| /' conftest.$ac_ext >&5
4085
4086{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4087printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4088as_fn_error 77 "C compiler cannot create executables
4089See \`config.log' for more details" "$LINENO" 5; }
4090else $as_nop
4091  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4092printf "%s\n" "yes" >&6; }
4093fi
4094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4095printf %s "checking for C compiler default output file name... " >&6; }
4096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4097printf "%s\n" "$ac_file" >&6; }
4098ac_exeext=$ac_cv_exeext
4099
4100rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4101ac_clean_files=$ac_clean_files_save
4102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4103printf %s "checking for suffix of executables... " >&6; }
4104if { { ac_try="$ac_link"
4105case "(($ac_try" in
4106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107  *) ac_try_echo=$ac_try;;
4108esac
4109eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4110printf "%s\n" "$ac_try_echo"; } >&5
4111  (eval "$ac_link") 2>&5
4112  ac_status=$?
4113  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4114  test $ac_status = 0; }
4115then :
4116  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4117# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4118# work properly (i.e., refer to `conftest.exe'), while it won't with
4119# `rm'.
4120for ac_file in conftest.exe conftest conftest.*; do
4121  test -f "$ac_file" || continue
4122  case $ac_file in
4123    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4124    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4125	  break;;
4126    * ) break;;
4127  esac
4128done
4129else $as_nop
4130  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4131printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4132as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4133See \`config.log' for more details" "$LINENO" 5; }
4134fi
4135rm -f conftest conftest$ac_cv_exeext
4136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4137printf "%s\n" "$ac_cv_exeext" >&6; }
4138
4139rm -f conftest.$ac_ext
4140EXEEXT=$ac_cv_exeext
4141ac_exeext=$EXEEXT
4142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143/* end confdefs.h.  */
4144#include <stdio.h>
4145int
4146main (void)
4147{
4148FILE *f = fopen ("conftest.out", "w");
4149 return ferror (f) || fclose (f) != 0;
4150
4151  ;
4152  return 0;
4153}
4154_ACEOF
4155ac_clean_files="$ac_clean_files conftest.out"
4156# Check that the compiler produces executables we can run.  If not, either
4157# the compiler is broken, or we cross compile.
4158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4159printf %s "checking whether we are cross compiling... " >&6; }
4160if test "$cross_compiling" != yes; then
4161  { { ac_try="$ac_link"
4162case "(($ac_try" in
4163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164  *) ac_try_echo=$ac_try;;
4165esac
4166eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4167printf "%s\n" "$ac_try_echo"; } >&5
4168  (eval "$ac_link") 2>&5
4169  ac_status=$?
4170  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4171  test $ac_status = 0; }
4172  if { ac_try='./conftest$ac_cv_exeext'
4173  { { case "(($ac_try" in
4174  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175  *) ac_try_echo=$ac_try;;
4176esac
4177eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4178printf "%s\n" "$ac_try_echo"; } >&5
4179  (eval "$ac_try") 2>&5
4180  ac_status=$?
4181  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4182  test $ac_status = 0; }; }; then
4183    cross_compiling=no
4184  else
4185    if test "$cross_compiling" = maybe; then
4186	cross_compiling=yes
4187    else
4188	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4189printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4190as_fn_error 77 "cannot run C compiled programs.
4191If you meant to cross compile, use \`--host'.
4192See \`config.log' for more details" "$LINENO" 5; }
4193    fi
4194  fi
4195fi
4196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4197printf "%s\n" "$cross_compiling" >&6; }
4198
4199rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4200ac_clean_files=$ac_clean_files_save
4201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4202printf %s "checking for suffix of object files... " >&6; }
4203if test ${ac_cv_objext+y}
4204then :
4205  printf %s "(cached) " >&6
4206else $as_nop
4207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208/* end confdefs.h.  */
4209
4210int
4211main (void)
4212{
4213
4214  ;
4215  return 0;
4216}
4217_ACEOF
4218rm -f conftest.o conftest.obj
4219if { { ac_try="$ac_compile"
4220case "(($ac_try" in
4221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222  *) ac_try_echo=$ac_try;;
4223esac
4224eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4225printf "%s\n" "$ac_try_echo"; } >&5
4226  (eval "$ac_compile") 2>&5
4227  ac_status=$?
4228  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4229  test $ac_status = 0; }
4230then :
4231  for ac_file in conftest.o conftest.obj conftest.*; do
4232  test -f "$ac_file" || continue;
4233  case $ac_file in
4234    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4235    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4236       break;;
4237  esac
4238done
4239else $as_nop
4240  printf "%s\n" "$as_me: failed program was:" >&5
4241sed 's/^/| /' conftest.$ac_ext >&5
4242
4243{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4244printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4245as_fn_error $? "cannot compute suffix of object files: cannot compile
4246See \`config.log' for more details" "$LINENO" 5; }
4247fi
4248rm -f conftest.$ac_cv_objext conftest.$ac_ext
4249fi
4250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4251printf "%s\n" "$ac_cv_objext" >&6; }
4252OBJEXT=$ac_cv_objext
4253ac_objext=$OBJEXT
4254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4255printf %s "checking whether the compiler supports GNU C... " >&6; }
4256if test ${ac_cv_c_compiler_gnu+y}
4257then :
4258  printf %s "(cached) " >&6
4259else $as_nop
4260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261/* end confdefs.h.  */
4262
4263int
4264main (void)
4265{
4266#ifndef __GNUC__
4267       choke me
4268#endif
4269
4270  ;
4271  return 0;
4272}
4273_ACEOF
4274if ac_fn_c_try_compile "$LINENO"
4275then :
4276  ac_compiler_gnu=yes
4277else $as_nop
4278  ac_compiler_gnu=no
4279fi
4280rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4281ac_cv_c_compiler_gnu=$ac_compiler_gnu
4282
4283fi
4284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4285printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4286ac_compiler_gnu=$ac_cv_c_compiler_gnu
4287
4288if test $ac_compiler_gnu = yes; then
4289  GCC=yes
4290else
4291  GCC=
4292fi
4293ac_test_CFLAGS=${CFLAGS+y}
4294ac_save_CFLAGS=$CFLAGS
4295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4296printf %s "checking whether $CC accepts -g... " >&6; }
4297if test ${ac_cv_prog_cc_g+y}
4298then :
4299  printf %s "(cached) " >&6
4300else $as_nop
4301  ac_save_c_werror_flag=$ac_c_werror_flag
4302   ac_c_werror_flag=yes
4303   ac_cv_prog_cc_g=no
4304   CFLAGS="-g"
4305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306/* end confdefs.h.  */
4307
4308int
4309main (void)
4310{
4311
4312  ;
4313  return 0;
4314}
4315_ACEOF
4316if ac_fn_c_try_compile "$LINENO"
4317then :
4318  ac_cv_prog_cc_g=yes
4319else $as_nop
4320  CFLAGS=""
4321      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322/* end confdefs.h.  */
4323
4324int
4325main (void)
4326{
4327
4328  ;
4329  return 0;
4330}
4331_ACEOF
4332if ac_fn_c_try_compile "$LINENO"
4333then :
4334
4335else $as_nop
4336  ac_c_werror_flag=$ac_save_c_werror_flag
4337	 CFLAGS="-g"
4338	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339/* end confdefs.h.  */
4340
4341int
4342main (void)
4343{
4344
4345  ;
4346  return 0;
4347}
4348_ACEOF
4349if ac_fn_c_try_compile "$LINENO"
4350then :
4351  ac_cv_prog_cc_g=yes
4352fi
4353rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4354fi
4355rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4356fi
4357rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4358   ac_c_werror_flag=$ac_save_c_werror_flag
4359fi
4360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4361printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4362if test $ac_test_CFLAGS; then
4363  CFLAGS=$ac_save_CFLAGS
4364elif test $ac_cv_prog_cc_g = yes; then
4365  if test "$GCC" = yes; then
4366    CFLAGS="-g -O2"
4367  else
4368    CFLAGS="-g"
4369  fi
4370else
4371  if test "$GCC" = yes; then
4372    CFLAGS="-O2"
4373  else
4374    CFLAGS=
4375  fi
4376fi
4377ac_prog_cc_stdc=no
4378if test x$ac_prog_cc_stdc = xno
4379then :
4380  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4381printf %s "checking for $CC option to enable C11 features... " >&6; }
4382if test ${ac_cv_prog_cc_c11+y}
4383then :
4384  printf %s "(cached) " >&6
4385else $as_nop
4386  ac_cv_prog_cc_c11=no
4387ac_save_CC=$CC
4388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389/* end confdefs.h.  */
4390$ac_c_conftest_c11_program
4391_ACEOF
4392for ac_arg in '' -std=gnu11
4393do
4394  CC="$ac_save_CC $ac_arg"
4395  if ac_fn_c_try_compile "$LINENO"
4396then :
4397  ac_cv_prog_cc_c11=$ac_arg
4398fi
4399rm -f core conftest.err conftest.$ac_objext conftest.beam
4400  test "x$ac_cv_prog_cc_c11" != "xno" && break
4401done
4402rm -f conftest.$ac_ext
4403CC=$ac_save_CC
4404fi
4405
4406if test "x$ac_cv_prog_cc_c11" = xno
4407then :
4408  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4409printf "%s\n" "unsupported" >&6; }
4410else $as_nop
4411  if test "x$ac_cv_prog_cc_c11" = x
4412then :
4413  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4414printf "%s\n" "none needed" >&6; }
4415else $as_nop
4416  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4417printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4418     CC="$CC $ac_cv_prog_cc_c11"
4419fi
4420  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4421  ac_prog_cc_stdc=c11
4422fi
4423fi
4424if test x$ac_prog_cc_stdc = xno
4425then :
4426  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4427printf %s "checking for $CC option to enable C99 features... " >&6; }
4428if test ${ac_cv_prog_cc_c99+y}
4429then :
4430  printf %s "(cached) " >&6
4431else $as_nop
4432  ac_cv_prog_cc_c99=no
4433ac_save_CC=$CC
4434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435/* end confdefs.h.  */
4436$ac_c_conftest_c99_program
4437_ACEOF
4438for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4439do
4440  CC="$ac_save_CC $ac_arg"
4441  if ac_fn_c_try_compile "$LINENO"
4442then :
4443  ac_cv_prog_cc_c99=$ac_arg
4444fi
4445rm -f core conftest.err conftest.$ac_objext conftest.beam
4446  test "x$ac_cv_prog_cc_c99" != "xno" && break
4447done
4448rm -f conftest.$ac_ext
4449CC=$ac_save_CC
4450fi
4451
4452if test "x$ac_cv_prog_cc_c99" = xno
4453then :
4454  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4455printf "%s\n" "unsupported" >&6; }
4456else $as_nop
4457  if test "x$ac_cv_prog_cc_c99" = x
4458then :
4459  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4460printf "%s\n" "none needed" >&6; }
4461else $as_nop
4462  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4463printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4464     CC="$CC $ac_cv_prog_cc_c99"
4465fi
4466  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4467  ac_prog_cc_stdc=c99
4468fi
4469fi
4470if test x$ac_prog_cc_stdc = xno
4471then :
4472  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4473printf %s "checking for $CC option to enable C89 features... " >&6; }
4474if test ${ac_cv_prog_cc_c89+y}
4475then :
4476  printf %s "(cached) " >&6
4477else $as_nop
4478  ac_cv_prog_cc_c89=no
4479ac_save_CC=$CC
4480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481/* end confdefs.h.  */
4482$ac_c_conftest_c89_program
4483_ACEOF
4484for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4485do
4486  CC="$ac_save_CC $ac_arg"
4487  if ac_fn_c_try_compile "$LINENO"
4488then :
4489  ac_cv_prog_cc_c89=$ac_arg
4490fi
4491rm -f core conftest.err conftest.$ac_objext conftest.beam
4492  test "x$ac_cv_prog_cc_c89" != "xno" && break
4493done
4494rm -f conftest.$ac_ext
4495CC=$ac_save_CC
4496fi
4497
4498if test "x$ac_cv_prog_cc_c89" = xno
4499then :
4500  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4501printf "%s\n" "unsupported" >&6; }
4502else $as_nop
4503  if test "x$ac_cv_prog_cc_c89" = x
4504then :
4505  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4506printf "%s\n" "none needed" >&6; }
4507else $as_nop
4508  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4509printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4510     CC="$CC $ac_cv_prog_cc_c89"
4511fi
4512  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4513  ac_prog_cc_stdc=c89
4514fi
4515fi
4516
4517ac_ext=c
4518ac_cpp='$CPP $CPPFLAGS'
4519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4521ac_compiler_gnu=$ac_cv_c_compiler_gnu
4522
4523
4524  ac_ext=c
4525ac_cpp='$CPP $CPPFLAGS'
4526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4528ac_compiler_gnu=$ac_cv_c_compiler_gnu
4529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4530printf %s "checking whether $CC understands -c and -o together... " >&6; }
4531if test ${am_cv_prog_cc_c_o+y}
4532then :
4533  printf %s "(cached) " >&6
4534else $as_nop
4535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536/* end confdefs.h.  */
4537
4538int
4539main (void)
4540{
4541
4542  ;
4543  return 0;
4544}
4545_ACEOF
4546  # Make sure it works both with $CC and with simple cc.
4547  # Following AC_PROG_CC_C_O, we do the test twice because some
4548  # compilers refuse to overwrite an existing .o file with -o,
4549  # though they will create one.
4550  am_cv_prog_cc_c_o=yes
4551  for am_i in 1 2; do
4552    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4553   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4554   ac_status=$?
4555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556   (exit $ac_status); } \
4557         && test -f conftest2.$ac_objext; then
4558      : OK
4559    else
4560      am_cv_prog_cc_c_o=no
4561      break
4562    fi
4563  done
4564  rm -f core conftest*
4565  unset am_i
4566fi
4567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4568printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4569if test "$am_cv_prog_cc_c_o" != yes; then
4570   # Losing compiler, so override with the script.
4571   # FIXME: It is wrong to rewrite CC.
4572   # But if we don't then we get into trouble of one sort or another.
4573   # A longer-term fix would be to have automake use am__CC in this case,
4574   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4575   CC="$am_aux_dir/compile $CC"
4576fi
4577ac_ext=c
4578ac_cpp='$CPP $CPPFLAGS'
4579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4581ac_compiler_gnu=$ac_cv_c_compiler_gnu
4582
4583
4584depcc="$CC"   am_compiler_list=
4585
4586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4587printf %s "checking dependency style of $depcc... " >&6; }
4588if test ${am_cv_CC_dependencies_compiler_type+y}
4589then :
4590  printf %s "(cached) " >&6
4591else $as_nop
4592  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4593  # We make a subdir and do the tests there.  Otherwise we can end up
4594  # making bogus files that we don't know about and never remove.  For
4595  # instance it was reported that on HP-UX the gcc test will end up
4596  # making a dummy file named 'D' -- because '-MD' means "put the output
4597  # in D".
4598  rm -rf conftest.dir
4599  mkdir conftest.dir
4600  # Copy depcomp to subdir because otherwise we won't find it if we're
4601  # using a relative directory.
4602  cp "$am_depcomp" conftest.dir
4603  cd conftest.dir
4604  # We will build objects and dependencies in a subdirectory because
4605  # it helps to detect inapplicable dependency modes.  For instance
4606  # both Tru64's cc and ICC support -MD to output dependencies as a
4607  # side effect of compilation, but ICC will put the dependencies in
4608  # the current directory while Tru64 will put them in the object
4609  # directory.
4610  mkdir sub
4611
4612  am_cv_CC_dependencies_compiler_type=none
4613  if test "$am_compiler_list" = ""; then
4614     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4615  fi
4616  am__universal=false
4617  case " $depcc " in #(
4618     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4619     esac
4620
4621  for depmode in $am_compiler_list; do
4622    # Setup a source with many dependencies, because some compilers
4623    # like to wrap large dependency lists on column 80 (with \), and
4624    # we should not choose a depcomp mode which is confused by this.
4625    #
4626    # We need to recreate these files for each test, as the compiler may
4627    # overwrite some of them when testing with obscure command lines.
4628    # This happens at least with the AIX C compiler.
4629    : > sub/conftest.c
4630    for i in 1 2 3 4 5 6; do
4631      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4632      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4633      # Solaris 10 /bin/sh.
4634      echo '/* dummy */' > sub/conftst$i.h
4635    done
4636    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4637
4638    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4639    # mode.  It turns out that the SunPro C++ compiler does not properly
4640    # handle '-M -o', and we need to detect this.  Also, some Intel
4641    # versions had trouble with output in subdirs.
4642    am__obj=sub/conftest.${OBJEXT-o}
4643    am__minus_obj="-o $am__obj"
4644    case $depmode in
4645    gcc)
4646      # This depmode causes a compiler race in universal mode.
4647      test "$am__universal" = false || continue
4648      ;;
4649    nosideeffect)
4650      # After this tag, mechanisms are not by side-effect, so they'll
4651      # only be used when explicitly requested.
4652      if test "x$enable_dependency_tracking" = xyes; then
4653	continue
4654      else
4655	break
4656      fi
4657      ;;
4658    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4659      # This compiler won't grok '-c -o', but also, the minuso test has
4660      # not run yet.  These depmodes are late enough in the game, and
4661      # so weak that their functioning should not be impacted.
4662      am__obj=conftest.${OBJEXT-o}
4663      am__minus_obj=
4664      ;;
4665    none) break ;;
4666    esac
4667    if depmode=$depmode \
4668       source=sub/conftest.c object=$am__obj \
4669       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4670       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4671         >/dev/null 2>conftest.err &&
4672       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4673       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4674       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4675       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4676      # icc doesn't choke on unknown options, it will just issue warnings
4677      # or remarks (even with -Werror).  So we grep stderr for any message
4678      # that says an option was ignored or not supported.
4679      # When given -MP, icc 7.0 and 7.1 complain thusly:
4680      #   icc: Command line warning: ignoring option '-M'; no argument required
4681      # The diagnosis changed in icc 8.0:
4682      #   icc: Command line remark: option '-MP' not supported
4683      if (grep 'ignoring option' conftest.err ||
4684          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4685        am_cv_CC_dependencies_compiler_type=$depmode
4686        break
4687      fi
4688    fi
4689  done
4690
4691  cd ..
4692  rm -rf conftest.dir
4693else
4694  am_cv_CC_dependencies_compiler_type=none
4695fi
4696
4697fi
4698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4699printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4700CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4701
4702 if
4703  test "x$enable_dependency_tracking" != xno \
4704  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4705  am__fastdepCC_TRUE=
4706  am__fastdepCC_FALSE='#'
4707else
4708  am__fastdepCC_TRUE='#'
4709  am__fastdepCC_FALSE=
4710fi
4711
4712
4713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4714printf %s "checking for a sed that does not truncate output... " >&6; }
4715if test ${ac_cv_path_SED+y}
4716then :
4717  printf %s "(cached) " >&6
4718else $as_nop
4719            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4720     for ac_i in 1 2 3 4 5 6 7; do
4721       ac_script="$ac_script$as_nl$ac_script"
4722     done
4723     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4724     { ac_script=; unset ac_script;}
4725     if test -z "$SED"; then
4726  ac_path_SED_found=false
4727  # Loop through the user's path and test for each of PROGNAME-LIST
4728  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729for as_dir in $PATH
4730do
4731  IFS=$as_save_IFS
4732  case $as_dir in #(((
4733    '') as_dir=./ ;;
4734    */) ;;
4735    *) as_dir=$as_dir/ ;;
4736  esac
4737    for ac_prog in sed gsed
4738   do
4739    for ac_exec_ext in '' $ac_executable_extensions; do
4740      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4741      as_fn_executable_p "$ac_path_SED" || continue
4742# Check for GNU ac_path_SED and select it if it is found.
4743  # Check for GNU $ac_path_SED
4744case `"$ac_path_SED" --version 2>&1` in
4745*GNU*)
4746  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4747*)
4748  ac_count=0
4749  printf %s 0123456789 >"conftest.in"
4750  while :
4751  do
4752    cat "conftest.in" "conftest.in" >"conftest.tmp"
4753    mv "conftest.tmp" "conftest.in"
4754    cp "conftest.in" "conftest.nl"
4755    printf "%s\n" '' >> "conftest.nl"
4756    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4757    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4758    as_fn_arith $ac_count + 1 && ac_count=$as_val
4759    if test $ac_count -gt ${ac_path_SED_max-0}; then
4760      # Best one so far, save it but keep looking for a better one
4761      ac_cv_path_SED="$ac_path_SED"
4762      ac_path_SED_max=$ac_count
4763    fi
4764    # 10*(2^10) chars as input seems more than enough
4765    test $ac_count -gt 10 && break
4766  done
4767  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4768esac
4769
4770      $ac_path_SED_found && break 3
4771    done
4772  done
4773  done
4774IFS=$as_save_IFS
4775  if test -z "$ac_cv_path_SED"; then
4776    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4777  fi
4778else
4779  ac_cv_path_SED=$SED
4780fi
4781
4782fi
4783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4784printf "%s\n" "$ac_cv_path_SED" >&6; }
4785 SED="$ac_cv_path_SED"
4786  rm -f conftest.sed
4787
4788test -z "$SED" && SED=sed
4789Xsed="$SED -e 1s/^X//"
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4802printf %s "checking for grep that handles long lines and -e... " >&6; }
4803if test ${ac_cv_path_GREP+y}
4804then :
4805  printf %s "(cached) " >&6
4806else $as_nop
4807  if test -z "$GREP"; then
4808  ac_path_GREP_found=false
4809  # Loop through the user's path and test for each of PROGNAME-LIST
4810  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4812do
4813  IFS=$as_save_IFS
4814  case $as_dir in #(((
4815    '') as_dir=./ ;;
4816    */) ;;
4817    *) as_dir=$as_dir/ ;;
4818  esac
4819    for ac_prog in grep ggrep
4820   do
4821    for ac_exec_ext in '' $ac_executable_extensions; do
4822      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4823      as_fn_executable_p "$ac_path_GREP" || continue
4824# Check for GNU ac_path_GREP and select it if it is found.
4825  # Check for GNU $ac_path_GREP
4826case `"$ac_path_GREP" --version 2>&1` in
4827*GNU*)
4828  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4829*)
4830  ac_count=0
4831  printf %s 0123456789 >"conftest.in"
4832  while :
4833  do
4834    cat "conftest.in" "conftest.in" >"conftest.tmp"
4835    mv "conftest.tmp" "conftest.in"
4836    cp "conftest.in" "conftest.nl"
4837    printf "%s\n" 'GREP' >> "conftest.nl"
4838    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4839    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4840    as_fn_arith $ac_count + 1 && ac_count=$as_val
4841    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4842      # Best one so far, save it but keep looking for a better one
4843      ac_cv_path_GREP="$ac_path_GREP"
4844      ac_path_GREP_max=$ac_count
4845    fi
4846    # 10*(2^10) chars as input seems more than enough
4847    test $ac_count -gt 10 && break
4848  done
4849  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4850esac
4851
4852      $ac_path_GREP_found && break 3
4853    done
4854  done
4855  done
4856IFS=$as_save_IFS
4857  if test -z "$ac_cv_path_GREP"; then
4858    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4859  fi
4860else
4861  ac_cv_path_GREP=$GREP
4862fi
4863
4864fi
4865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4866printf "%s\n" "$ac_cv_path_GREP" >&6; }
4867 GREP="$ac_cv_path_GREP"
4868
4869
4870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4871printf %s "checking for egrep... " >&6; }
4872if test ${ac_cv_path_EGREP+y}
4873then :
4874  printf %s "(cached) " >&6
4875else $as_nop
4876  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4877   then ac_cv_path_EGREP="$GREP -E"
4878   else
4879     if test -z "$EGREP"; then
4880  ac_path_EGREP_found=false
4881  # Loop through the user's path and test for each of PROGNAME-LIST
4882  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4884do
4885  IFS=$as_save_IFS
4886  case $as_dir in #(((
4887    '') as_dir=./ ;;
4888    */) ;;
4889    *) as_dir=$as_dir/ ;;
4890  esac
4891    for ac_prog in egrep
4892   do
4893    for ac_exec_ext in '' $ac_executable_extensions; do
4894      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4895      as_fn_executable_p "$ac_path_EGREP" || continue
4896# Check for GNU ac_path_EGREP and select it if it is found.
4897  # Check for GNU $ac_path_EGREP
4898case `"$ac_path_EGREP" --version 2>&1` in
4899*GNU*)
4900  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4901*)
4902  ac_count=0
4903  printf %s 0123456789 >"conftest.in"
4904  while :
4905  do
4906    cat "conftest.in" "conftest.in" >"conftest.tmp"
4907    mv "conftest.tmp" "conftest.in"
4908    cp "conftest.in" "conftest.nl"
4909    printf "%s\n" 'EGREP' >> "conftest.nl"
4910    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4911    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4912    as_fn_arith $ac_count + 1 && ac_count=$as_val
4913    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4914      # Best one so far, save it but keep looking for a better one
4915      ac_cv_path_EGREP="$ac_path_EGREP"
4916      ac_path_EGREP_max=$ac_count
4917    fi
4918    # 10*(2^10) chars as input seems more than enough
4919    test $ac_count -gt 10 && break
4920  done
4921  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4922esac
4923
4924      $ac_path_EGREP_found && break 3
4925    done
4926  done
4927  done
4928IFS=$as_save_IFS
4929  if test -z "$ac_cv_path_EGREP"; then
4930    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4931  fi
4932else
4933  ac_cv_path_EGREP=$EGREP
4934fi
4935
4936   fi
4937fi
4938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4939printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4940 EGREP="$ac_cv_path_EGREP"
4941
4942
4943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4944printf %s "checking for fgrep... " >&6; }
4945if test ${ac_cv_path_FGREP+y}
4946then :
4947  printf %s "(cached) " >&6
4948else $as_nop
4949  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4950   then ac_cv_path_FGREP="$GREP -F"
4951   else
4952     if test -z "$FGREP"; then
4953  ac_path_FGREP_found=false
4954  # Loop through the user's path and test for each of PROGNAME-LIST
4955  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4957do
4958  IFS=$as_save_IFS
4959  case $as_dir in #(((
4960    '') as_dir=./ ;;
4961    */) ;;
4962    *) as_dir=$as_dir/ ;;
4963  esac
4964    for ac_prog in fgrep
4965   do
4966    for ac_exec_ext in '' $ac_executable_extensions; do
4967      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4968      as_fn_executable_p "$ac_path_FGREP" || continue
4969# Check for GNU ac_path_FGREP and select it if it is found.
4970  # Check for GNU $ac_path_FGREP
4971case `"$ac_path_FGREP" --version 2>&1` in
4972*GNU*)
4973  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4974*)
4975  ac_count=0
4976  printf %s 0123456789 >"conftest.in"
4977  while :
4978  do
4979    cat "conftest.in" "conftest.in" >"conftest.tmp"
4980    mv "conftest.tmp" "conftest.in"
4981    cp "conftest.in" "conftest.nl"
4982    printf "%s\n" 'FGREP' >> "conftest.nl"
4983    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4984    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4985    as_fn_arith $ac_count + 1 && ac_count=$as_val
4986    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4987      # Best one so far, save it but keep looking for a better one
4988      ac_cv_path_FGREP="$ac_path_FGREP"
4989      ac_path_FGREP_max=$ac_count
4990    fi
4991    # 10*(2^10) chars as input seems more than enough
4992    test $ac_count -gt 10 && break
4993  done
4994  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4995esac
4996
4997      $ac_path_FGREP_found && break 3
4998    done
4999  done
5000  done
5001IFS=$as_save_IFS
5002  if test -z "$ac_cv_path_FGREP"; then
5003    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5004  fi
5005else
5006  ac_cv_path_FGREP=$FGREP
5007fi
5008
5009   fi
5010fi
5011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5012printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5013 FGREP="$ac_cv_path_FGREP"
5014
5015
5016test -z "$GREP" && GREP=grep
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036# Check whether --with-gnu-ld was given.
5037if test ${with_gnu_ld+y}
5038then :
5039  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5040else $as_nop
5041  with_gnu_ld=no
5042fi
5043
5044ac_prog=ld
5045if test yes = "$GCC"; then
5046  # Check if gcc -print-prog-name=ld gives a path.
5047  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5048printf %s "checking for ld used by $CC... " >&6; }
5049  case $host in
5050  *-*-mingw*)
5051    # gcc leaves a trailing carriage return, which upsets mingw
5052    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5053  *)
5054    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5055  esac
5056  case $ac_prog in
5057    # Accept absolute paths.
5058    [\\/]* | ?:[\\/]*)
5059      re_direlt='/[^/][^/]*/\.\./'
5060      # Canonicalize the pathname of ld
5061      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5062      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5063	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5064      done
5065      test -z "$LD" && LD=$ac_prog
5066      ;;
5067  "")
5068    # If it fails, then pretend we aren't using GCC.
5069    ac_prog=ld
5070    ;;
5071  *)
5072    # If it is relative, then search for the first ld in PATH.
5073    with_gnu_ld=unknown
5074    ;;
5075  esac
5076elif test yes = "$with_gnu_ld"; then
5077  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5078printf %s "checking for GNU ld... " >&6; }
5079else
5080  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5081printf %s "checking for non-GNU ld... " >&6; }
5082fi
5083if test ${lt_cv_path_LD+y}
5084then :
5085  printf %s "(cached) " >&6
5086else $as_nop
5087  if test -z "$LD"; then
5088  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5089  for ac_dir in $PATH; do
5090    IFS=$lt_save_ifs
5091    test -z "$ac_dir" && ac_dir=.
5092    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5093      lt_cv_path_LD=$ac_dir/$ac_prog
5094      # Check to see if the program is GNU ld.  I'd rather use --version,
5095      # but apparently some variants of GNU ld only accept -v.
5096      # Break only if it was the GNU/non-GNU ld that we prefer.
5097      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5098      *GNU* | *'with BFD'*)
5099	test no != "$with_gnu_ld" && break
5100	;;
5101      *)
5102	test yes != "$with_gnu_ld" && break
5103	;;
5104      esac
5105    fi
5106  done
5107  IFS=$lt_save_ifs
5108else
5109  lt_cv_path_LD=$LD # Let the user override the test with a path.
5110fi
5111fi
5112
5113LD=$lt_cv_path_LD
5114if test -n "$LD"; then
5115  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5116printf "%s\n" "$LD" >&6; }
5117else
5118  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119printf "%s\n" "no" >&6; }
5120fi
5121test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5123printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5124if test ${lt_cv_prog_gnu_ld+y}
5125then :
5126  printf %s "(cached) " >&6
5127else $as_nop
5128  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5129case `$LD -v 2>&1 </dev/null` in
5130*GNU* | *'with BFD'*)
5131  lt_cv_prog_gnu_ld=yes
5132  ;;
5133*)
5134  lt_cv_prog_gnu_ld=no
5135  ;;
5136esac
5137fi
5138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5139printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5140with_gnu_ld=$lt_cv_prog_gnu_ld
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5151printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5152if test ${lt_cv_path_NM+y}
5153then :
5154  printf %s "(cached) " >&6
5155else $as_nop
5156  if test -n "$NM"; then
5157  # Let the user override the test.
5158  lt_cv_path_NM=$NM
5159else
5160  lt_nm_to_check=${ac_tool_prefix}nm
5161  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5162    lt_nm_to_check="$lt_nm_to_check nm"
5163  fi
5164  for lt_tmp_nm in $lt_nm_to_check; do
5165    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5166    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5167      IFS=$lt_save_ifs
5168      test -z "$ac_dir" && ac_dir=.
5169      tmp_nm=$ac_dir/$lt_tmp_nm
5170      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5171	# Check to see if the nm accepts a BSD-compat flag.
5172	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5173	#   nm: unknown option "B" ignored
5174	# Tru64's nm complains that /dev/null is an invalid object file
5175	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5176	case $build_os in
5177	mingw*) lt_bad_file=conftest.nm/nofile ;;
5178	*) lt_bad_file=/dev/null ;;
5179	esac
5180	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5181	*$lt_bad_file* | *'Invalid file or object type'*)
5182	  lt_cv_path_NM="$tmp_nm -B"
5183	  break 2
5184	  ;;
5185	*)
5186	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5187	  */dev/null*)
5188	    lt_cv_path_NM="$tmp_nm -p"
5189	    break 2
5190	    ;;
5191	  *)
5192	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5193	    continue # so that we can try to find one that supports BSD flags
5194	    ;;
5195	  esac
5196	  ;;
5197	esac
5198      fi
5199    done
5200    IFS=$lt_save_ifs
5201  done
5202  : ${lt_cv_path_NM=no}
5203fi
5204fi
5205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5206printf "%s\n" "$lt_cv_path_NM" >&6; }
5207if test no != "$lt_cv_path_NM"; then
5208  NM=$lt_cv_path_NM
5209else
5210  # Didn't find any BSD compatible name lister, look for dumpbin.
5211  if test -n "$DUMPBIN"; then :
5212    # Let the user override the test.
5213  else
5214    if test -n "$ac_tool_prefix"; then
5215  for ac_prog in dumpbin "link -dump"
5216  do
5217    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5218set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5220printf %s "checking for $ac_word... " >&6; }
5221if test ${ac_cv_prog_DUMPBIN+y}
5222then :
5223  printf %s "(cached) " >&6
5224else $as_nop
5225  if test -n "$DUMPBIN"; then
5226  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5227else
5228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229for as_dir in $PATH
5230do
5231  IFS=$as_save_IFS
5232  case $as_dir in #(((
5233    '') as_dir=./ ;;
5234    */) ;;
5235    *) as_dir=$as_dir/ ;;
5236  esac
5237    for ac_exec_ext in '' $ac_executable_extensions; do
5238  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5239    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5240    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5241    break 2
5242  fi
5243done
5244  done
5245IFS=$as_save_IFS
5246
5247fi
5248fi
5249DUMPBIN=$ac_cv_prog_DUMPBIN
5250if test -n "$DUMPBIN"; then
5251  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5252printf "%s\n" "$DUMPBIN" >&6; }
5253else
5254  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5255printf "%s\n" "no" >&6; }
5256fi
5257
5258
5259    test -n "$DUMPBIN" && break
5260  done
5261fi
5262if test -z "$DUMPBIN"; then
5263  ac_ct_DUMPBIN=$DUMPBIN
5264  for ac_prog in dumpbin "link -dump"
5265do
5266  # Extract the first word of "$ac_prog", so it can be a program name with args.
5267set dummy $ac_prog; ac_word=$2
5268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269printf %s "checking for $ac_word... " >&6; }
5270if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5271then :
5272  printf %s "(cached) " >&6
5273else $as_nop
5274  if test -n "$ac_ct_DUMPBIN"; then
5275  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5276else
5277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278for as_dir in $PATH
5279do
5280  IFS=$as_save_IFS
5281  case $as_dir in #(((
5282    '') as_dir=./ ;;
5283    */) ;;
5284    *) as_dir=$as_dir/ ;;
5285  esac
5286    for ac_exec_ext in '' $ac_executable_extensions; do
5287  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5288    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5289    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5290    break 2
5291  fi
5292done
5293  done
5294IFS=$as_save_IFS
5295
5296fi
5297fi
5298ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5299if test -n "$ac_ct_DUMPBIN"; then
5300  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5301printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5302else
5303  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5304printf "%s\n" "no" >&6; }
5305fi
5306
5307
5308  test -n "$ac_ct_DUMPBIN" && break
5309done
5310
5311  if test "x$ac_ct_DUMPBIN" = x; then
5312    DUMPBIN=":"
5313  else
5314    case $cross_compiling:$ac_tool_warned in
5315yes:)
5316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5317printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5318ac_tool_warned=yes ;;
5319esac
5320    DUMPBIN=$ac_ct_DUMPBIN
5321  fi
5322fi
5323
5324    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5325    *COFF*)
5326      DUMPBIN="$DUMPBIN -symbols -headers"
5327      ;;
5328    *)
5329      DUMPBIN=:
5330      ;;
5331    esac
5332  fi
5333
5334  if test : != "$DUMPBIN"; then
5335    NM=$DUMPBIN
5336  fi
5337fi
5338test -z "$NM" && NM=nm
5339
5340
5341
5342
5343
5344
5345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5346printf %s "checking the name lister ($NM) interface... " >&6; }
5347if test ${lt_cv_nm_interface+y}
5348then :
5349  printf %s "(cached) " >&6
5350else $as_nop
5351  lt_cv_nm_interface="BSD nm"
5352  echo "int some_variable = 0;" > conftest.$ac_ext
5353  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5354  (eval "$ac_compile" 2>conftest.err)
5355  cat conftest.err >&5
5356  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5357  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5358  cat conftest.err >&5
5359  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5360  cat conftest.out >&5
5361  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5362    lt_cv_nm_interface="MS dumpbin"
5363  fi
5364  rm -f conftest*
5365fi
5366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5367printf "%s\n" "$lt_cv_nm_interface" >&6; }
5368
5369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5370printf %s "checking whether ln -s works... " >&6; }
5371LN_S=$as_ln_s
5372if test "$LN_S" = "ln -s"; then
5373  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5374printf "%s\n" "yes" >&6; }
5375else
5376  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5377printf "%s\n" "no, using $LN_S" >&6; }
5378fi
5379
5380# find the maximum length of command line arguments
5381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5382printf %s "checking the maximum length of command line arguments... " >&6; }
5383if test ${lt_cv_sys_max_cmd_len+y}
5384then :
5385  printf %s "(cached) " >&6
5386else $as_nop
5387    i=0
5388  teststring=ABCD
5389
5390  case $build_os in
5391  msdosdjgpp*)
5392    # On DJGPP, this test can blow up pretty badly due to problems in libc
5393    # (any single argument exceeding 2000 bytes causes a buffer overrun
5394    # during glob expansion).  Even if it were fixed, the result of this
5395    # check would be larger than it should be.
5396    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5397    ;;
5398
5399  gnu*)
5400    # Under GNU Hurd, this test is not required because there is
5401    # no limit to the length of command line arguments.
5402    # Libtool will interpret -1 as no limit whatsoever
5403    lt_cv_sys_max_cmd_len=-1;
5404    ;;
5405
5406  cygwin* | mingw* | cegcc*)
5407    # On Win9x/ME, this test blows up -- it succeeds, but takes
5408    # about 5 minutes as the teststring grows exponentially.
5409    # Worse, since 9x/ME are not pre-emptively multitasking,
5410    # you end up with a "frozen" computer, even though with patience
5411    # the test eventually succeeds (with a max line length of 256k).
5412    # Instead, let's just punt: use the minimum linelength reported by
5413    # all of the supported platforms: 8192 (on NT/2K/XP).
5414    lt_cv_sys_max_cmd_len=8192;
5415    ;;
5416
5417  mint*)
5418    # On MiNT this can take a long time and run out of memory.
5419    lt_cv_sys_max_cmd_len=8192;
5420    ;;
5421
5422  amigaos*)
5423    # On AmigaOS with pdksh, this test takes hours, literally.
5424    # So we just punt and use a minimum line length of 8192.
5425    lt_cv_sys_max_cmd_len=8192;
5426    ;;
5427
5428  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5429    # This has been around since 386BSD, at least.  Likely further.
5430    if test -x /sbin/sysctl; then
5431      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5432    elif test -x /usr/sbin/sysctl; then
5433      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5434    else
5435      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5436    fi
5437    # And add a safety zone
5438    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5439    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5440    ;;
5441
5442  interix*)
5443    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5444    lt_cv_sys_max_cmd_len=196608
5445    ;;
5446
5447  os2*)
5448    # The test takes a long time on OS/2.
5449    lt_cv_sys_max_cmd_len=8192
5450    ;;
5451
5452  osf*)
5453    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5454    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5455    # nice to cause kernel panics so lets avoid the loop below.
5456    # First set a reasonable default.
5457    lt_cv_sys_max_cmd_len=16384
5458    #
5459    if test -x /sbin/sysconfig; then
5460      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5461        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5462      esac
5463    fi
5464    ;;
5465  sco3.2v5*)
5466    lt_cv_sys_max_cmd_len=102400
5467    ;;
5468  sysv5* | sco5v6* | sysv4.2uw2*)
5469    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5470    if test -n "$kargmax"; then
5471      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
5472    else
5473      lt_cv_sys_max_cmd_len=32768
5474    fi
5475    ;;
5476  *)
5477    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5478    if test -n "$lt_cv_sys_max_cmd_len" && \
5479       test undefined != "$lt_cv_sys_max_cmd_len"; then
5480      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5481      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5482    else
5483      # Make teststring a little bigger before we do anything with it.
5484      # a 1K string should be a reasonable start.
5485      for i in 1 2 3 4 5 6 7 8; do
5486        teststring=$teststring$teststring
5487      done
5488      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5489      # If test is not a shell built-in, we'll probably end up computing a
5490      # maximum length that is only half of the actual maximum length, but
5491      # we can't tell.
5492      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5493	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5494	      test 17 != "$i" # 1/2 MB should be enough
5495      do
5496        i=`expr $i + 1`
5497        teststring=$teststring$teststring
5498      done
5499      # Only check the string length outside the loop.
5500      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5501      teststring=
5502      # Add a significant safety factor because C++ compilers can tack on
5503      # massive amounts of additional arguments before passing them to the
5504      # linker.  It appears as though 1/2 is a usable value.
5505      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5506    fi
5507    ;;
5508  esac
5509
5510fi
5511
5512if test -n "$lt_cv_sys_max_cmd_len"; then
5513  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5514printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5515else
5516  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5517printf "%s\n" "none" >&6; }
5518fi
5519max_cmd_len=$lt_cv_sys_max_cmd_len
5520
5521
5522
5523
5524
5525
5526: ${CP="cp -f"}
5527: ${MV="mv -f"}
5528: ${RM="rm -f"}
5529
5530if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5531  lt_unset=unset
5532else
5533  lt_unset=false
5534fi
5535
5536
5537
5538
5539
5540# test EBCDIC or ASCII
5541case `echo X|tr X '\101'` in
5542 A) # ASCII based system
5543    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5544  lt_SP2NL='tr \040 \012'
5545  lt_NL2SP='tr \015\012 \040\040'
5546  ;;
5547 *) # EBCDIC based system
5548  lt_SP2NL='tr \100 \n'
5549  lt_NL2SP='tr \r\n \100\100'
5550  ;;
5551esac
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5562printf %s "checking how to convert $build file names to $host format... " >&6; }
5563if test ${lt_cv_to_host_file_cmd+y}
5564then :
5565  printf %s "(cached) " >&6
5566else $as_nop
5567  case $host in
5568  *-*-mingw* )
5569    case $build in
5570      *-*-mingw* ) # actually msys
5571        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5572        ;;
5573      *-*-cygwin* )
5574        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5575        ;;
5576      * ) # otherwise, assume *nix
5577        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5578        ;;
5579    esac
5580    ;;
5581  *-*-cygwin* )
5582    case $build in
5583      *-*-mingw* ) # actually msys
5584        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5585        ;;
5586      *-*-cygwin* )
5587        lt_cv_to_host_file_cmd=func_convert_file_noop
5588        ;;
5589      * ) # otherwise, assume *nix
5590        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5591        ;;
5592    esac
5593    ;;
5594  * ) # unhandled hosts (and "normal" native builds)
5595    lt_cv_to_host_file_cmd=func_convert_file_noop
5596    ;;
5597esac
5598
5599fi
5600
5601to_host_file_cmd=$lt_cv_to_host_file_cmd
5602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5603printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5604
5605
5606
5607
5608
5609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5610printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5611if test ${lt_cv_to_tool_file_cmd+y}
5612then :
5613  printf %s "(cached) " >&6
5614else $as_nop
5615  #assume ordinary cross tools, or native build.
5616lt_cv_to_tool_file_cmd=func_convert_file_noop
5617case $host in
5618  *-*-mingw* )
5619    case $build in
5620      *-*-mingw* ) # actually msys
5621        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5622        ;;
5623    esac
5624    ;;
5625esac
5626
5627fi
5628
5629to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5631printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5632
5633
5634
5635
5636
5637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5638printf %s "checking for $LD option to reload object files... " >&6; }
5639if test ${lt_cv_ld_reload_flag+y}
5640then :
5641  printf %s "(cached) " >&6
5642else $as_nop
5643  lt_cv_ld_reload_flag='-r'
5644fi
5645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5646printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5647reload_flag=$lt_cv_ld_reload_flag
5648case $reload_flag in
5649"" | " "*) ;;
5650*) reload_flag=" $reload_flag" ;;
5651esac
5652reload_cmds='$LD$reload_flag -o $output$reload_objs'
5653case $host_os in
5654  cygwin* | mingw* | pw32* | cegcc*)
5655    if test yes != "$GCC"; then
5656      reload_cmds=false
5657    fi
5658    ;;
5659  darwin*)
5660    if test yes = "$GCC"; then
5661      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5662    else
5663      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5664    fi
5665    ;;
5666esac
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676if test -n "$ac_tool_prefix"; then
5677  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5678set dummy ${ac_tool_prefix}file; ac_word=$2
5679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5680printf %s "checking for $ac_word... " >&6; }
5681if test ${ac_cv_prog_FILECMD+y}
5682then :
5683  printf %s "(cached) " >&6
5684else $as_nop
5685  if test -n "$FILECMD"; then
5686  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5687else
5688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689for as_dir in $PATH
5690do
5691  IFS=$as_save_IFS
5692  case $as_dir in #(((
5693    '') as_dir=./ ;;
5694    */) ;;
5695    *) as_dir=$as_dir/ ;;
5696  esac
5697    for ac_exec_ext in '' $ac_executable_extensions; do
5698  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5699    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5700    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5701    break 2
5702  fi
5703done
5704  done
5705IFS=$as_save_IFS
5706
5707fi
5708fi
5709FILECMD=$ac_cv_prog_FILECMD
5710if test -n "$FILECMD"; then
5711  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5712printf "%s\n" "$FILECMD" >&6; }
5713else
5714  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5715printf "%s\n" "no" >&6; }
5716fi
5717
5718
5719fi
5720if test -z "$ac_cv_prog_FILECMD"; then
5721  ac_ct_FILECMD=$FILECMD
5722  # Extract the first word of "file", so it can be a program name with args.
5723set dummy file; ac_word=$2
5724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5725printf %s "checking for $ac_word... " >&6; }
5726if test ${ac_cv_prog_ac_ct_FILECMD+y}
5727then :
5728  printf %s "(cached) " >&6
5729else $as_nop
5730  if test -n "$ac_ct_FILECMD"; then
5731  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5732else
5733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734for as_dir in $PATH
5735do
5736  IFS=$as_save_IFS
5737  case $as_dir in #(((
5738    '') as_dir=./ ;;
5739    */) ;;
5740    *) as_dir=$as_dir/ ;;
5741  esac
5742    for ac_exec_ext in '' $ac_executable_extensions; do
5743  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5744    ac_cv_prog_ac_ct_FILECMD="file"
5745    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5746    break 2
5747  fi
5748done
5749  done
5750IFS=$as_save_IFS
5751
5752fi
5753fi
5754ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5755if test -n "$ac_ct_FILECMD"; then
5756  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5757printf "%s\n" "$ac_ct_FILECMD" >&6; }
5758else
5759  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760printf "%s\n" "no" >&6; }
5761fi
5762
5763  if test "x$ac_ct_FILECMD" = x; then
5764    FILECMD=":"
5765  else
5766    case $cross_compiling:$ac_tool_warned in
5767yes:)
5768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5769printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5770ac_tool_warned=yes ;;
5771esac
5772    FILECMD=$ac_ct_FILECMD
5773  fi
5774else
5775  FILECMD="$ac_cv_prog_FILECMD"
5776fi
5777
5778
5779
5780
5781
5782
5783
5784if test -n "$ac_tool_prefix"; then
5785  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5786set dummy ${ac_tool_prefix}objdump; ac_word=$2
5787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5788printf %s "checking for $ac_word... " >&6; }
5789if test ${ac_cv_prog_OBJDUMP+y}
5790then :
5791  printf %s "(cached) " >&6
5792else $as_nop
5793  if test -n "$OBJDUMP"; then
5794  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5795else
5796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797for as_dir in $PATH
5798do
5799  IFS=$as_save_IFS
5800  case $as_dir in #(((
5801    '') as_dir=./ ;;
5802    */) ;;
5803    *) as_dir=$as_dir/ ;;
5804  esac
5805    for ac_exec_ext in '' $ac_executable_extensions; do
5806  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5807    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5808    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5809    break 2
5810  fi
5811done
5812  done
5813IFS=$as_save_IFS
5814
5815fi
5816fi
5817OBJDUMP=$ac_cv_prog_OBJDUMP
5818if test -n "$OBJDUMP"; then
5819  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5820printf "%s\n" "$OBJDUMP" >&6; }
5821else
5822  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823printf "%s\n" "no" >&6; }
5824fi
5825
5826
5827fi
5828if test -z "$ac_cv_prog_OBJDUMP"; then
5829  ac_ct_OBJDUMP=$OBJDUMP
5830  # Extract the first word of "objdump", so it can be a program name with args.
5831set dummy objdump; ac_word=$2
5832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5833printf %s "checking for $ac_word... " >&6; }
5834if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5835then :
5836  printf %s "(cached) " >&6
5837else $as_nop
5838  if test -n "$ac_ct_OBJDUMP"; then
5839  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5840else
5841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842for as_dir in $PATH
5843do
5844  IFS=$as_save_IFS
5845  case $as_dir in #(((
5846    '') as_dir=./ ;;
5847    */) ;;
5848    *) as_dir=$as_dir/ ;;
5849  esac
5850    for ac_exec_ext in '' $ac_executable_extensions; do
5851  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5852    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5853    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5854    break 2
5855  fi
5856done
5857  done
5858IFS=$as_save_IFS
5859
5860fi
5861fi
5862ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5863if test -n "$ac_ct_OBJDUMP"; then
5864  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5865printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5866else
5867  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868printf "%s\n" "no" >&6; }
5869fi
5870
5871  if test "x$ac_ct_OBJDUMP" = x; then
5872    OBJDUMP="false"
5873  else
5874    case $cross_compiling:$ac_tool_warned in
5875yes:)
5876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5877printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5878ac_tool_warned=yes ;;
5879esac
5880    OBJDUMP=$ac_ct_OBJDUMP
5881  fi
5882else
5883  OBJDUMP="$ac_cv_prog_OBJDUMP"
5884fi
5885
5886test -z "$OBJDUMP" && OBJDUMP=objdump
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5897printf %s "checking how to recognize dependent libraries... " >&6; }
5898if test ${lt_cv_deplibs_check_method+y}
5899then :
5900  printf %s "(cached) " >&6
5901else $as_nop
5902  lt_cv_file_magic_cmd='$MAGIC_CMD'
5903lt_cv_file_magic_test_file=
5904lt_cv_deplibs_check_method='unknown'
5905# Need to set the preceding variable on all platforms that support
5906# interlibrary dependencies.
5907# 'none' -- dependencies not supported.
5908# 'unknown' -- same as none, but documents that we really don't know.
5909# 'pass_all' -- all dependencies passed with no checks.
5910# 'test_compile' -- check by making test program.
5911# 'file_magic [[regex]]' -- check by looking for files in library path
5912# that responds to the $file_magic_cmd with a given extended regex.
5913# If you have 'file' or equivalent on your system and you're not sure
5914# whether 'pass_all' will *always* work, you probably want this one.
5915
5916case $host_os in
5917aix[4-9]*)
5918  lt_cv_deplibs_check_method=pass_all
5919  ;;
5920
5921beos*)
5922  lt_cv_deplibs_check_method=pass_all
5923  ;;
5924
5925bsdi[45]*)
5926  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5927  lt_cv_file_magic_cmd='$FILECMD -L'
5928  lt_cv_file_magic_test_file=/shlib/libc.so
5929  ;;
5930
5931cygwin*)
5932  # func_win32_libid is a shell function defined in ltmain.sh
5933  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5934  lt_cv_file_magic_cmd='func_win32_libid'
5935  ;;
5936
5937mingw* | pw32*)
5938  # Base MSYS/MinGW do not provide the 'file' command needed by
5939  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5940  # unless we find 'file', for example because we are cross-compiling.
5941  if ( file / ) >/dev/null 2>&1; then
5942    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5943    lt_cv_file_magic_cmd='func_win32_libid'
5944  else
5945    # Keep this pattern in sync with the one in func_win32_libid.
5946    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5947    lt_cv_file_magic_cmd='$OBJDUMP -f'
5948  fi
5949  ;;
5950
5951cegcc*)
5952  # use the weaker test based on 'objdump'. See mingw*.
5953  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5954  lt_cv_file_magic_cmd='$OBJDUMP -f'
5955  ;;
5956
5957darwin* | rhapsody*)
5958  lt_cv_deplibs_check_method=pass_all
5959  ;;
5960
5961freebsd* | dragonfly* | midnightbsd*)
5962  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5963    case $host_cpu in
5964    i*86 )
5965      # Not sure whether the presence of OpenBSD here was a mistake.
5966      # Let's accept both of them until this is cleared up.
5967      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5968      lt_cv_file_magic_cmd=$FILECMD
5969      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5970      ;;
5971    esac
5972  else
5973    lt_cv_deplibs_check_method=pass_all
5974  fi
5975  ;;
5976
5977haiku*)
5978  lt_cv_deplibs_check_method=pass_all
5979  ;;
5980
5981hpux10.20* | hpux11*)
5982  lt_cv_file_magic_cmd=$FILECMD
5983  case $host_cpu in
5984  ia64*)
5985    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5986    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5987    ;;
5988  hppa*64*)
5989    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]'
5990    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5991    ;;
5992  *)
5993    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5994    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5995    ;;
5996  esac
5997  ;;
5998
5999interix[3-9]*)
6000  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6001  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6002  ;;
6003
6004irix5* | irix6* | nonstopux*)
6005  case $LD in
6006  *-32|*"-32 ") libmagic=32-bit;;
6007  *-n32|*"-n32 ") libmagic=N32;;
6008  *-64|*"-64 ") libmagic=64-bit;;
6009  *) libmagic=never-match;;
6010  esac
6011  lt_cv_deplibs_check_method=pass_all
6012  ;;
6013
6014# This must be glibc/ELF.
6015linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6016  lt_cv_deplibs_check_method=pass_all
6017  ;;
6018
6019netbsd*)
6020  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6021    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6022  else
6023    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6024  fi
6025  ;;
6026
6027newos6*)
6028  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6029  lt_cv_file_magic_cmd=$FILECMD
6030  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6031  ;;
6032
6033*nto* | *qnx*)
6034  lt_cv_deplibs_check_method=pass_all
6035  ;;
6036
6037openbsd* | bitrig*)
6038  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6039    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6040  else
6041    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6042  fi
6043  ;;
6044
6045osf3* | osf4* | osf5*)
6046  lt_cv_deplibs_check_method=pass_all
6047  ;;
6048
6049rdos*)
6050  lt_cv_deplibs_check_method=pass_all
6051  ;;
6052
6053solaris*)
6054  lt_cv_deplibs_check_method=pass_all
6055  ;;
6056
6057sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6058  lt_cv_deplibs_check_method=pass_all
6059  ;;
6060
6061sysv4 | sysv4.3*)
6062  case $host_vendor in
6063  motorola)
6064    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]'
6065    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6066    ;;
6067  ncr)
6068    lt_cv_deplibs_check_method=pass_all
6069    ;;
6070  sequent)
6071    lt_cv_file_magic_cmd='/bin/file'
6072    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6073    ;;
6074  sni)
6075    lt_cv_file_magic_cmd='/bin/file'
6076    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6077    lt_cv_file_magic_test_file=/lib/libc.so
6078    ;;
6079  siemens)
6080    lt_cv_deplibs_check_method=pass_all
6081    ;;
6082  pc)
6083    lt_cv_deplibs_check_method=pass_all
6084    ;;
6085  esac
6086  ;;
6087
6088tpf*)
6089  lt_cv_deplibs_check_method=pass_all
6090  ;;
6091os2*)
6092  lt_cv_deplibs_check_method=pass_all
6093  ;;
6094esac
6095
6096fi
6097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6098printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6099
6100file_magic_glob=
6101want_nocaseglob=no
6102if test "$build" = "$host"; then
6103  case $host_os in
6104  mingw* | pw32*)
6105    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6106      want_nocaseglob=yes
6107    else
6108      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6109    fi
6110    ;;
6111  esac
6112fi
6113
6114file_magic_cmd=$lt_cv_file_magic_cmd
6115deplibs_check_method=$lt_cv_deplibs_check_method
6116test -z "$deplibs_check_method" && deplibs_check_method=unknown
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139if test -n "$ac_tool_prefix"; then
6140  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6141set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6143printf %s "checking for $ac_word... " >&6; }
6144if test ${ac_cv_prog_DLLTOOL+y}
6145then :
6146  printf %s "(cached) " >&6
6147else $as_nop
6148  if test -n "$DLLTOOL"; then
6149  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6150else
6151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152for as_dir in $PATH
6153do
6154  IFS=$as_save_IFS
6155  case $as_dir in #(((
6156    '') as_dir=./ ;;
6157    */) ;;
6158    *) as_dir=$as_dir/ ;;
6159  esac
6160    for ac_exec_ext in '' $ac_executable_extensions; do
6161  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6162    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6163    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6164    break 2
6165  fi
6166done
6167  done
6168IFS=$as_save_IFS
6169
6170fi
6171fi
6172DLLTOOL=$ac_cv_prog_DLLTOOL
6173if test -n "$DLLTOOL"; then
6174  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6175printf "%s\n" "$DLLTOOL" >&6; }
6176else
6177  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6178printf "%s\n" "no" >&6; }
6179fi
6180
6181
6182fi
6183if test -z "$ac_cv_prog_DLLTOOL"; then
6184  ac_ct_DLLTOOL=$DLLTOOL
6185  # Extract the first word of "dlltool", so it can be a program name with args.
6186set dummy dlltool; ac_word=$2
6187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6188printf %s "checking for $ac_word... " >&6; }
6189if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6190then :
6191  printf %s "(cached) " >&6
6192else $as_nop
6193  if test -n "$ac_ct_DLLTOOL"; then
6194  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6195else
6196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197for as_dir in $PATH
6198do
6199  IFS=$as_save_IFS
6200  case $as_dir in #(((
6201    '') as_dir=./ ;;
6202    */) ;;
6203    *) as_dir=$as_dir/ ;;
6204  esac
6205    for ac_exec_ext in '' $ac_executable_extensions; do
6206  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6207    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6208    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6209    break 2
6210  fi
6211done
6212  done
6213IFS=$as_save_IFS
6214
6215fi
6216fi
6217ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6218if test -n "$ac_ct_DLLTOOL"; then
6219  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6220printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6221else
6222  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6223printf "%s\n" "no" >&6; }
6224fi
6225
6226  if test "x$ac_ct_DLLTOOL" = x; then
6227    DLLTOOL="false"
6228  else
6229    case $cross_compiling:$ac_tool_warned in
6230yes:)
6231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6232printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6233ac_tool_warned=yes ;;
6234esac
6235    DLLTOOL=$ac_ct_DLLTOOL
6236  fi
6237else
6238  DLLTOOL="$ac_cv_prog_DLLTOOL"
6239fi
6240
6241test -z "$DLLTOOL" && DLLTOOL=dlltool
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6253printf %s "checking how to associate runtime and link libraries... " >&6; }
6254if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6255then :
6256  printf %s "(cached) " >&6
6257else $as_nop
6258  lt_cv_sharedlib_from_linklib_cmd='unknown'
6259
6260case $host_os in
6261cygwin* | mingw* | pw32* | cegcc*)
6262  # two different shell functions defined in ltmain.sh;
6263  # decide which one to use based on capabilities of $DLLTOOL
6264  case `$DLLTOOL --help 2>&1` in
6265  *--identify-strict*)
6266    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6267    ;;
6268  *)
6269    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6270    ;;
6271  esac
6272  ;;
6273*)
6274  # fallback: assume linklib IS sharedlib
6275  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6276  ;;
6277esac
6278
6279fi
6280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6281printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6282sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6283test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6284
6285
6286
6287
6288
6289
6290
6291
6292if test -n "$ac_tool_prefix"; then
6293  for ac_prog in ar
6294  do
6295    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6296set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6298printf %s "checking for $ac_word... " >&6; }
6299if test ${ac_cv_prog_AR+y}
6300then :
6301  printf %s "(cached) " >&6
6302else $as_nop
6303  if test -n "$AR"; then
6304  ac_cv_prog_AR="$AR" # Let the user override the test.
6305else
6306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307for as_dir in $PATH
6308do
6309  IFS=$as_save_IFS
6310  case $as_dir in #(((
6311    '') as_dir=./ ;;
6312    */) ;;
6313    *) as_dir=$as_dir/ ;;
6314  esac
6315    for ac_exec_ext in '' $ac_executable_extensions; do
6316  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6317    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6318    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6319    break 2
6320  fi
6321done
6322  done
6323IFS=$as_save_IFS
6324
6325fi
6326fi
6327AR=$ac_cv_prog_AR
6328if test -n "$AR"; then
6329  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6330printf "%s\n" "$AR" >&6; }
6331else
6332  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333printf "%s\n" "no" >&6; }
6334fi
6335
6336
6337    test -n "$AR" && break
6338  done
6339fi
6340if test -z "$AR"; then
6341  ac_ct_AR=$AR
6342  for ac_prog in ar
6343do
6344  # Extract the first word of "$ac_prog", so it can be a program name with args.
6345set dummy $ac_prog; ac_word=$2
6346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347printf %s "checking for $ac_word... " >&6; }
6348if test ${ac_cv_prog_ac_ct_AR+y}
6349then :
6350  printf %s "(cached) " >&6
6351else $as_nop
6352  if test -n "$ac_ct_AR"; then
6353  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6354else
6355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356for as_dir in $PATH
6357do
6358  IFS=$as_save_IFS
6359  case $as_dir in #(((
6360    '') as_dir=./ ;;
6361    */) ;;
6362    *) as_dir=$as_dir/ ;;
6363  esac
6364    for ac_exec_ext in '' $ac_executable_extensions; do
6365  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6366    ac_cv_prog_ac_ct_AR="$ac_prog"
6367    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6368    break 2
6369  fi
6370done
6371  done
6372IFS=$as_save_IFS
6373
6374fi
6375fi
6376ac_ct_AR=$ac_cv_prog_ac_ct_AR
6377if test -n "$ac_ct_AR"; then
6378  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6379printf "%s\n" "$ac_ct_AR" >&6; }
6380else
6381  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382printf "%s\n" "no" >&6; }
6383fi
6384
6385
6386  test -n "$ac_ct_AR" && break
6387done
6388
6389  if test "x$ac_ct_AR" = x; then
6390    AR="false"
6391  else
6392    case $cross_compiling:$ac_tool_warned in
6393yes:)
6394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6395printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6396ac_tool_warned=yes ;;
6397esac
6398    AR=$ac_ct_AR
6399  fi
6400fi
6401
6402: ${AR=ar}
6403
6404
6405
6406
6407
6408
6409# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6410# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6411# higher priority because thats what people were doing historically (setting
6412# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6413# variable obsoleted/removed.
6414
6415test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6416lt_ar_flags=$AR_FLAGS
6417
6418
6419
6420
6421
6422
6423# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6424# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6425
6426
6427
6428
6429
6430
6431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6432printf %s "checking for archiver @FILE support... " >&6; }
6433if test ${lt_cv_ar_at_file+y}
6434then :
6435  printf %s "(cached) " >&6
6436else $as_nop
6437  lt_cv_ar_at_file=no
6438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6439/* end confdefs.h.  */
6440
6441int
6442main (void)
6443{
6444
6445  ;
6446  return 0;
6447}
6448_ACEOF
6449if ac_fn_c_try_compile "$LINENO"
6450then :
6451  echo conftest.$ac_objext > conftest.lst
6452      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6453      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6454  (eval $lt_ar_try) 2>&5
6455  ac_status=$?
6456  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6457  test $ac_status = 0; }
6458      if test 0 -eq "$ac_status"; then
6459	# Ensure the archiver fails upon bogus file names.
6460	rm -f conftest.$ac_objext libconftest.a
6461	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6462  (eval $lt_ar_try) 2>&5
6463  ac_status=$?
6464  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6465  test $ac_status = 0; }
6466	if test 0 -ne "$ac_status"; then
6467          lt_cv_ar_at_file=@
6468        fi
6469      fi
6470      rm -f conftest.* libconftest.a
6471
6472fi
6473rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6474
6475fi
6476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6477printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6478
6479if test no = "$lt_cv_ar_at_file"; then
6480  archiver_list_spec=
6481else
6482  archiver_list_spec=$lt_cv_ar_at_file
6483fi
6484
6485
6486
6487
6488
6489
6490
6491if test -n "$ac_tool_prefix"; then
6492  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6493set dummy ${ac_tool_prefix}strip; ac_word=$2
6494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495printf %s "checking for $ac_word... " >&6; }
6496if test ${ac_cv_prog_STRIP+y}
6497then :
6498  printf %s "(cached) " >&6
6499else $as_nop
6500  if test -n "$STRIP"; then
6501  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6502else
6503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504for as_dir in $PATH
6505do
6506  IFS=$as_save_IFS
6507  case $as_dir in #(((
6508    '') as_dir=./ ;;
6509    */) ;;
6510    *) as_dir=$as_dir/ ;;
6511  esac
6512    for ac_exec_ext in '' $ac_executable_extensions; do
6513  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6514    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6515    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6516    break 2
6517  fi
6518done
6519  done
6520IFS=$as_save_IFS
6521
6522fi
6523fi
6524STRIP=$ac_cv_prog_STRIP
6525if test -n "$STRIP"; then
6526  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6527printf "%s\n" "$STRIP" >&6; }
6528else
6529  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530printf "%s\n" "no" >&6; }
6531fi
6532
6533
6534fi
6535if test -z "$ac_cv_prog_STRIP"; then
6536  ac_ct_STRIP=$STRIP
6537  # Extract the first word of "strip", so it can be a program name with args.
6538set dummy strip; ac_word=$2
6539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6540printf %s "checking for $ac_word... " >&6; }
6541if test ${ac_cv_prog_ac_ct_STRIP+y}
6542then :
6543  printf %s "(cached) " >&6
6544else $as_nop
6545  if test -n "$ac_ct_STRIP"; then
6546  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6547else
6548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549for as_dir in $PATH
6550do
6551  IFS=$as_save_IFS
6552  case $as_dir in #(((
6553    '') as_dir=./ ;;
6554    */) ;;
6555    *) as_dir=$as_dir/ ;;
6556  esac
6557    for ac_exec_ext in '' $ac_executable_extensions; do
6558  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6559    ac_cv_prog_ac_ct_STRIP="strip"
6560    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6561    break 2
6562  fi
6563done
6564  done
6565IFS=$as_save_IFS
6566
6567fi
6568fi
6569ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6570if test -n "$ac_ct_STRIP"; then
6571  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6572printf "%s\n" "$ac_ct_STRIP" >&6; }
6573else
6574  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575printf "%s\n" "no" >&6; }
6576fi
6577
6578  if test "x$ac_ct_STRIP" = x; then
6579    STRIP=":"
6580  else
6581    case $cross_compiling:$ac_tool_warned in
6582yes:)
6583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6584printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6585ac_tool_warned=yes ;;
6586esac
6587    STRIP=$ac_ct_STRIP
6588  fi
6589else
6590  STRIP="$ac_cv_prog_STRIP"
6591fi
6592
6593test -z "$STRIP" && STRIP=:
6594
6595
6596
6597
6598
6599
6600if test -n "$ac_tool_prefix"; then
6601  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6602set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604printf %s "checking for $ac_word... " >&6; }
6605if test ${ac_cv_prog_RANLIB+y}
6606then :
6607  printf %s "(cached) " >&6
6608else $as_nop
6609  if test -n "$RANLIB"; then
6610  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6611else
6612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613for as_dir in $PATH
6614do
6615  IFS=$as_save_IFS
6616  case $as_dir in #(((
6617    '') as_dir=./ ;;
6618    */) ;;
6619    *) as_dir=$as_dir/ ;;
6620  esac
6621    for ac_exec_ext in '' $ac_executable_extensions; do
6622  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6623    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6624    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6625    break 2
6626  fi
6627done
6628  done
6629IFS=$as_save_IFS
6630
6631fi
6632fi
6633RANLIB=$ac_cv_prog_RANLIB
6634if test -n "$RANLIB"; then
6635  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6636printf "%s\n" "$RANLIB" >&6; }
6637else
6638  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6639printf "%s\n" "no" >&6; }
6640fi
6641
6642
6643fi
6644if test -z "$ac_cv_prog_RANLIB"; then
6645  ac_ct_RANLIB=$RANLIB
6646  # Extract the first word of "ranlib", so it can be a program name with args.
6647set dummy ranlib; ac_word=$2
6648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6649printf %s "checking for $ac_word... " >&6; }
6650if test ${ac_cv_prog_ac_ct_RANLIB+y}
6651then :
6652  printf %s "(cached) " >&6
6653else $as_nop
6654  if test -n "$ac_ct_RANLIB"; then
6655  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6656else
6657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658for as_dir in $PATH
6659do
6660  IFS=$as_save_IFS
6661  case $as_dir in #(((
6662    '') as_dir=./ ;;
6663    */) ;;
6664    *) as_dir=$as_dir/ ;;
6665  esac
6666    for ac_exec_ext in '' $ac_executable_extensions; do
6667  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6668    ac_cv_prog_ac_ct_RANLIB="ranlib"
6669    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6670    break 2
6671  fi
6672done
6673  done
6674IFS=$as_save_IFS
6675
6676fi
6677fi
6678ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6679if test -n "$ac_ct_RANLIB"; then
6680  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6681printf "%s\n" "$ac_ct_RANLIB" >&6; }
6682else
6683  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684printf "%s\n" "no" >&6; }
6685fi
6686
6687  if test "x$ac_ct_RANLIB" = x; then
6688    RANLIB=":"
6689  else
6690    case $cross_compiling:$ac_tool_warned in
6691yes:)
6692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6693printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6694ac_tool_warned=yes ;;
6695esac
6696    RANLIB=$ac_ct_RANLIB
6697  fi
6698else
6699  RANLIB="$ac_cv_prog_RANLIB"
6700fi
6701
6702test -z "$RANLIB" && RANLIB=:
6703
6704
6705
6706
6707
6708
6709# Determine commands to create old-style static archives.
6710old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6711old_postinstall_cmds='chmod 644 $oldlib'
6712old_postuninstall_cmds=
6713
6714if test -n "$RANLIB"; then
6715  case $host_os in
6716  bitrig* | openbsd*)
6717    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6718    ;;
6719  *)
6720    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6721    ;;
6722  esac
6723  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6724fi
6725
6726case $host_os in
6727  darwin*)
6728    lock_old_archive_extraction=yes ;;
6729  *)
6730    lock_old_archive_extraction=no ;;
6731esac
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
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771# If no C compiler was specified, use CC.
6772LTCC=${LTCC-"$CC"}
6773
6774# If no C compiler flags were specified, use CFLAGS.
6775LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6776
6777# Allow CC to be a program name with arguments.
6778compiler=$CC
6779
6780
6781# Check for command to grab the raw symbol name followed by C symbol from nm.
6782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6783printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6784if test ${lt_cv_sys_global_symbol_pipe+y}
6785then :
6786  printf %s "(cached) " >&6
6787else $as_nop
6788
6789# These are sane defaults that work on at least a few old systems.
6790# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6791
6792# Character class describing NM global symbol codes.
6793symcode='[BCDEGRST]'
6794
6795# Regexp to match symbols that can be accessed directly from C.
6796sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6797
6798# Define system-specific variables.
6799case $host_os in
6800aix*)
6801  symcode='[BCDT]'
6802  ;;
6803cygwin* | mingw* | pw32* | cegcc*)
6804  symcode='[ABCDGISTW]'
6805  ;;
6806hpux*)
6807  if test ia64 = "$host_cpu"; then
6808    symcode='[ABCDEGRST]'
6809  fi
6810  ;;
6811irix* | nonstopux*)
6812  symcode='[BCDEGRST]'
6813  ;;
6814osf*)
6815  symcode='[BCDEGQRST]'
6816  ;;
6817solaris*)
6818  symcode='[BDRT]'
6819  ;;
6820sco3.2v5*)
6821  symcode='[DT]'
6822  ;;
6823sysv4.2uw2*)
6824  symcode='[DT]'
6825  ;;
6826sysv5* | sco5v6* | unixware* | OpenUNIX*)
6827  symcode='[ABDT]'
6828  ;;
6829sysv4)
6830  symcode='[DFNSTU]'
6831  ;;
6832esac
6833
6834# If we're using GNU nm, then use its standard symbol codes.
6835case `$NM -V 2>&1` in
6836*GNU* | *'with BFD'*)
6837  symcode='[ABCDGIRSTW]' ;;
6838esac
6839
6840if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6841  # Gets list of data symbols to import.
6842  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6843  # Adjust the below global symbol transforms to fixup imported variables.
6844  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6845  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6846  lt_c_name_lib_hook="\
6847  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6848  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6849else
6850  # Disable hooks by default.
6851  lt_cv_sys_global_symbol_to_import=
6852  lt_cdecl_hook=
6853  lt_c_name_hook=
6854  lt_c_name_lib_hook=
6855fi
6856
6857# Transform an extracted symbol line into a proper C declaration.
6858# Some systems (esp. on ia64) link data and code symbols differently,
6859# so use this general approach.
6860lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6861$lt_cdecl_hook\
6862" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6863" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6864
6865# Transform an extracted symbol line into symbol name and symbol address
6866lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6867$lt_c_name_hook\
6868" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6869" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6870
6871# Transform an extracted symbol line into symbol name with lib prefix and
6872# symbol address.
6873lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6874$lt_c_name_lib_hook\
6875" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6876" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6877" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6878
6879# Handle CRLF in mingw tool chain
6880opt_cr=
6881case $build_os in
6882mingw*)
6883  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6884  ;;
6885esac
6886
6887# Try without a prefix underscore, then with it.
6888for ac_symprfx in "" "_"; do
6889
6890  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6891  symxfrm="\\1 $ac_symprfx\\2 \\2"
6892
6893  # Write the raw and C identifiers.
6894  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6895    # Fake it for dumpbin and say T for any non-static function,
6896    # D for any global variable and I for any imported variable.
6897    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6898    # which start with @ or ?.
6899    lt_cv_sys_global_symbol_pipe="$AWK '"\
6900"     {last_section=section; section=\$ 3};"\
6901"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6902"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6903"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6904"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6905"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6906"     \$ 0!~/External *\|/{next};"\
6907"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6908"     {if(hide[section]) next};"\
6909"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6910"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6911"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6912"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6913"     ' prfx=^$ac_symprfx"
6914  else
6915    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6916  fi
6917  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6918
6919  # Check to see that the pipe works correctly.
6920  pipe_works=no
6921
6922  rm -f conftest*
6923  cat > conftest.$ac_ext <<_LT_EOF
6924#ifdef __cplusplus
6925extern "C" {
6926#endif
6927char nm_test_var;
6928void nm_test_func(void);
6929void nm_test_func(void){}
6930#ifdef __cplusplus
6931}
6932#endif
6933int main(){nm_test_var='a';nm_test_func();return(0);}
6934_LT_EOF
6935
6936  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6937  (eval $ac_compile) 2>&5
6938  ac_status=$?
6939  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6940  test $ac_status = 0; }; then
6941    # Now try to grab the symbols.
6942    nlist=conftest.nm
6943    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6944  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6945  ac_status=$?
6946  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6947  test $ac_status = 0; } && test -s "$nlist"; then
6948      # Try sorting and uniquifying the output.
6949      if sort "$nlist" | uniq > "$nlist"T; then
6950	mv -f "$nlist"T "$nlist"
6951      else
6952	rm -f "$nlist"T
6953      fi
6954
6955      # Make sure that we snagged all the symbols we need.
6956      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6957	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6958	  cat <<_LT_EOF > conftest.$ac_ext
6959/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6960#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6961/* DATA imports from DLLs on WIN32 can't be const, because runtime
6962   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6963# define LT_DLSYM_CONST
6964#elif defined __osf__
6965/* This system does not cope well with relocations in const data.  */
6966# define LT_DLSYM_CONST
6967#else
6968# define LT_DLSYM_CONST const
6969#endif
6970
6971#ifdef __cplusplus
6972extern "C" {
6973#endif
6974
6975_LT_EOF
6976	  # Now generate the symbol file.
6977	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6978
6979	  cat <<_LT_EOF >> conftest.$ac_ext
6980
6981/* The mapping between symbol names and symbols.  */
6982LT_DLSYM_CONST struct {
6983  const char *name;
6984  void       *address;
6985}
6986lt__PROGRAM__LTX_preloaded_symbols[] =
6987{
6988  { "@PROGRAM@", (void *) 0 },
6989_LT_EOF
6990	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6991	  cat <<\_LT_EOF >> conftest.$ac_ext
6992  {0, (void *) 0}
6993};
6994
6995/* This works around a problem in FreeBSD linker */
6996#ifdef FREEBSD_WORKAROUND
6997static const void *lt_preloaded_setup() {
6998  return lt__PROGRAM__LTX_preloaded_symbols;
6999}
7000#endif
7001
7002#ifdef __cplusplus
7003}
7004#endif
7005_LT_EOF
7006	  # Now try linking the two files.
7007	  mv conftest.$ac_objext conftstm.$ac_objext
7008	  lt_globsym_save_LIBS=$LIBS
7009	  lt_globsym_save_CFLAGS=$CFLAGS
7010	  LIBS=conftstm.$ac_objext
7011	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7012	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7013  (eval $ac_link) 2>&5
7014  ac_status=$?
7015  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7016  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7017	    pipe_works=yes
7018	  fi
7019	  LIBS=$lt_globsym_save_LIBS
7020	  CFLAGS=$lt_globsym_save_CFLAGS
7021	else
7022	  echo "cannot find nm_test_func in $nlist" >&5
7023	fi
7024      else
7025	echo "cannot find nm_test_var in $nlist" >&5
7026      fi
7027    else
7028      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7029    fi
7030  else
7031    echo "$progname: failed program was:" >&5
7032    cat conftest.$ac_ext >&5
7033  fi
7034  rm -rf conftest* conftst*
7035
7036  # Do not use the global_symbol_pipe unless it works.
7037  if test yes = "$pipe_works"; then
7038    break
7039  else
7040    lt_cv_sys_global_symbol_pipe=
7041  fi
7042done
7043
7044fi
7045
7046if test -z "$lt_cv_sys_global_symbol_pipe"; then
7047  lt_cv_sys_global_symbol_to_cdecl=
7048fi
7049if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7050  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7051printf "%s\n" "failed" >&6; }
7052else
7053  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7054printf "%s\n" "ok" >&6; }
7055fi
7056
7057# Response file support.
7058if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7059  nm_file_list_spec='@'
7060elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7061  nm_file_list_spec='@'
7062fi
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
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7101printf %s "checking for sysroot... " >&6; }
7102
7103# Check whether --with-sysroot was given.
7104if test ${with_sysroot+y}
7105then :
7106  withval=$with_sysroot;
7107else $as_nop
7108  with_sysroot=no
7109fi
7110
7111
7112lt_sysroot=
7113case $with_sysroot in #(
7114 yes)
7115   if test yes = "$GCC"; then
7116     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7117   fi
7118   ;; #(
7119 /*)
7120   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7121   ;; #(
7122 no|'')
7123   ;; #(
7124 *)
7125   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7126printf "%s\n" "$with_sysroot" >&6; }
7127   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7128   ;;
7129esac
7130
7131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7132printf "%s\n" "${lt_sysroot:-no}" >&6; }
7133
7134
7135
7136
7137
7138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7139printf %s "checking for a working dd... " >&6; }
7140if test ${ac_cv_path_lt_DD+y}
7141then :
7142  printf %s "(cached) " >&6
7143else $as_nop
7144  printf 0123456789abcdef0123456789abcdef >conftest.i
7145cat conftest.i conftest.i >conftest2.i
7146: ${lt_DD:=$DD}
7147if test -z "$lt_DD"; then
7148  ac_path_lt_DD_found=false
7149  # Loop through the user's path and test for each of PROGNAME-LIST
7150  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151for as_dir in $PATH
7152do
7153  IFS=$as_save_IFS
7154  case $as_dir in #(((
7155    '') as_dir=./ ;;
7156    */) ;;
7157    *) as_dir=$as_dir/ ;;
7158  esac
7159    for ac_prog in dd
7160   do
7161    for ac_exec_ext in '' $ac_executable_extensions; do
7162      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7163      as_fn_executable_p "$ac_path_lt_DD" || continue
7164if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7165  cmp -s conftest.i conftest.out \
7166  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7167fi
7168      $ac_path_lt_DD_found && break 3
7169    done
7170  done
7171  done
7172IFS=$as_save_IFS
7173  if test -z "$ac_cv_path_lt_DD"; then
7174    :
7175  fi
7176else
7177  ac_cv_path_lt_DD=$lt_DD
7178fi
7179
7180rm -f conftest.i conftest2.i conftest.out
7181fi
7182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7183printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7184
7185
7186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7187printf %s "checking how to truncate binary pipes... " >&6; }
7188if test ${lt_cv_truncate_bin+y}
7189then :
7190  printf %s "(cached) " >&6
7191else $as_nop
7192  printf 0123456789abcdef0123456789abcdef >conftest.i
7193cat conftest.i conftest.i >conftest2.i
7194lt_cv_truncate_bin=
7195if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7196  cmp -s conftest.i conftest.out \
7197  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7198fi
7199rm -f conftest.i conftest2.i conftest.out
7200test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7201fi
7202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7203printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7204
7205
7206
7207
7208
7209
7210
7211# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7212func_cc_basename ()
7213{
7214    for cc_temp in $*""; do
7215      case $cc_temp in
7216        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7217        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7218        \-*) ;;
7219        *) break;;
7220      esac
7221    done
7222    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7223}
7224
7225# Check whether --enable-libtool-lock was given.
7226if test ${enable_libtool_lock+y}
7227then :
7228  enableval=$enable_libtool_lock;
7229fi
7230
7231test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7232
7233# Some flags need to be propagated to the compiler or linker for good
7234# libtool support.
7235case $host in
7236ia64-*-hpux*)
7237  # Find out what ABI is being produced by ac_compile, and set mode
7238  # options accordingly.
7239  echo 'int i;' > conftest.$ac_ext
7240  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7241  (eval $ac_compile) 2>&5
7242  ac_status=$?
7243  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7244  test $ac_status = 0; }; then
7245    case `$FILECMD conftest.$ac_objext` in
7246      *ELF-32*)
7247	HPUX_IA64_MODE=32
7248	;;
7249      *ELF-64*)
7250	HPUX_IA64_MODE=64
7251	;;
7252    esac
7253  fi
7254  rm -rf conftest*
7255  ;;
7256*-*-irix6*)
7257  # Find out what ABI is being produced by ac_compile, and set linker
7258  # options accordingly.
7259  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7260  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7261  (eval $ac_compile) 2>&5
7262  ac_status=$?
7263  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7264  test $ac_status = 0; }; then
7265    if test yes = "$lt_cv_prog_gnu_ld"; then
7266      case `$FILECMD conftest.$ac_objext` in
7267	*32-bit*)
7268	  LD="${LD-ld} -melf32bsmip"
7269	  ;;
7270	*N32*)
7271	  LD="${LD-ld} -melf32bmipn32"
7272	  ;;
7273	*64-bit*)
7274	  LD="${LD-ld} -melf64bmip"
7275	;;
7276      esac
7277    else
7278      case `$FILECMD conftest.$ac_objext` in
7279	*32-bit*)
7280	  LD="${LD-ld} -32"
7281	  ;;
7282	*N32*)
7283	  LD="${LD-ld} -n32"
7284	  ;;
7285	*64-bit*)
7286	  LD="${LD-ld} -64"
7287	  ;;
7288      esac
7289    fi
7290  fi
7291  rm -rf conftest*
7292  ;;
7293
7294mips64*-*linux*)
7295  # Find out what ABI is being produced by ac_compile, and set linker
7296  # options accordingly.
7297  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7298  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7299  (eval $ac_compile) 2>&5
7300  ac_status=$?
7301  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7302  test $ac_status = 0; }; then
7303    emul=elf
7304    case `$FILECMD conftest.$ac_objext` in
7305      *32-bit*)
7306	emul="${emul}32"
7307	;;
7308      *64-bit*)
7309	emul="${emul}64"
7310	;;
7311    esac
7312    case `$FILECMD conftest.$ac_objext` in
7313      *MSB*)
7314	emul="${emul}btsmip"
7315	;;
7316      *LSB*)
7317	emul="${emul}ltsmip"
7318	;;
7319    esac
7320    case `$FILECMD conftest.$ac_objext` in
7321      *N32*)
7322	emul="${emul}n32"
7323	;;
7324    esac
7325    LD="${LD-ld} -m $emul"
7326  fi
7327  rm -rf conftest*
7328  ;;
7329
7330x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7331s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7332  # Find out what ABI is being produced by ac_compile, and set linker
7333  # options accordingly.  Note that the listed cases only cover the
7334  # situations where additional linker options are needed (such as when
7335  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7336  # vice versa); the common cases where no linker options are needed do
7337  # not appear in the list.
7338  echo 'int i;' > conftest.$ac_ext
7339  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7340  (eval $ac_compile) 2>&5
7341  ac_status=$?
7342  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7343  test $ac_status = 0; }; then
7344    case `$FILECMD conftest.o` in
7345      *32-bit*)
7346	case $host in
7347	  x86_64-*kfreebsd*-gnu)
7348	    LD="${LD-ld} -m elf_i386_fbsd"
7349	    ;;
7350	  x86_64-*linux*)
7351	    case `$FILECMD conftest.o` in
7352	      *x86-64*)
7353		LD="${LD-ld} -m elf32_x86_64"
7354		;;
7355	      *)
7356		LD="${LD-ld} -m elf_i386"
7357		;;
7358	    esac
7359	    ;;
7360	  powerpc64le-*linux*)
7361	    LD="${LD-ld} -m elf32lppclinux"
7362	    ;;
7363	  powerpc64-*linux*)
7364	    LD="${LD-ld} -m elf32ppclinux"
7365	    ;;
7366	  s390x-*linux*)
7367	    LD="${LD-ld} -m elf_s390"
7368	    ;;
7369	  sparc64-*linux*)
7370	    LD="${LD-ld} -m elf32_sparc"
7371	    ;;
7372	esac
7373	;;
7374      *64-bit*)
7375	case $host in
7376	  x86_64-*kfreebsd*-gnu)
7377	    LD="${LD-ld} -m elf_x86_64_fbsd"
7378	    ;;
7379	  x86_64-*linux*)
7380	    LD="${LD-ld} -m elf_x86_64"
7381	    ;;
7382	  powerpcle-*linux*)
7383	    LD="${LD-ld} -m elf64lppc"
7384	    ;;
7385	  powerpc-*linux*)
7386	    LD="${LD-ld} -m elf64ppc"
7387	    ;;
7388	  s390*-*linux*|s390*-*tpf*)
7389	    LD="${LD-ld} -m elf64_s390"
7390	    ;;
7391	  sparc*-*linux*)
7392	    LD="${LD-ld} -m elf64_sparc"
7393	    ;;
7394	esac
7395	;;
7396    esac
7397  fi
7398  rm -rf conftest*
7399  ;;
7400
7401*-*-sco3.2v5*)
7402  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7403  SAVE_CFLAGS=$CFLAGS
7404  CFLAGS="$CFLAGS -belf"
7405  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7406printf %s "checking whether the C compiler needs -belf... " >&6; }
7407if test ${lt_cv_cc_needs_belf+y}
7408then :
7409  printf %s "(cached) " >&6
7410else $as_nop
7411  ac_ext=c
7412ac_cpp='$CPP $CPPFLAGS'
7413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7415ac_compiler_gnu=$ac_cv_c_compiler_gnu
7416
7417     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7418/* end confdefs.h.  */
7419
7420int
7421main (void)
7422{
7423
7424  ;
7425  return 0;
7426}
7427_ACEOF
7428if ac_fn_c_try_link "$LINENO"
7429then :
7430  lt_cv_cc_needs_belf=yes
7431else $as_nop
7432  lt_cv_cc_needs_belf=no
7433fi
7434rm -f core conftest.err conftest.$ac_objext conftest.beam \
7435    conftest$ac_exeext conftest.$ac_ext
7436     ac_ext=c
7437ac_cpp='$CPP $CPPFLAGS'
7438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7440ac_compiler_gnu=$ac_cv_c_compiler_gnu
7441
7442fi
7443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7444printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7445  if test yes != "$lt_cv_cc_needs_belf"; then
7446    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7447    CFLAGS=$SAVE_CFLAGS
7448  fi
7449  ;;
7450*-*solaris*)
7451  # Find out what ABI is being produced by ac_compile, and set linker
7452  # options accordingly.
7453  echo 'int i;' > conftest.$ac_ext
7454  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7455  (eval $ac_compile) 2>&5
7456  ac_status=$?
7457  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7458  test $ac_status = 0; }; then
7459    case `$FILECMD conftest.o` in
7460    *64-bit*)
7461      case $lt_cv_prog_gnu_ld in
7462      yes*)
7463        case $host in
7464        i?86-*-solaris*|x86_64-*-solaris*)
7465          LD="${LD-ld} -m elf_x86_64"
7466          ;;
7467        sparc*-*-solaris*)
7468          LD="${LD-ld} -m elf64_sparc"
7469          ;;
7470        esac
7471        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7472        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7473          LD=${LD-ld}_sol2
7474        fi
7475        ;;
7476      *)
7477	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7478	  LD="${LD-ld} -64"
7479	fi
7480	;;
7481      esac
7482      ;;
7483    esac
7484  fi
7485  rm -rf conftest*
7486  ;;
7487esac
7488
7489need_locks=$enable_libtool_lock
7490
7491if test -n "$ac_tool_prefix"; then
7492  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7493set dummy ${ac_tool_prefix}mt; ac_word=$2
7494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7495printf %s "checking for $ac_word... " >&6; }
7496if test ${ac_cv_prog_MANIFEST_TOOL+y}
7497then :
7498  printf %s "(cached) " >&6
7499else $as_nop
7500  if test -n "$MANIFEST_TOOL"; then
7501  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7502else
7503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504for as_dir in $PATH
7505do
7506  IFS=$as_save_IFS
7507  case $as_dir in #(((
7508    '') as_dir=./ ;;
7509    */) ;;
7510    *) as_dir=$as_dir/ ;;
7511  esac
7512    for ac_exec_ext in '' $ac_executable_extensions; do
7513  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7514    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7515    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7516    break 2
7517  fi
7518done
7519  done
7520IFS=$as_save_IFS
7521
7522fi
7523fi
7524MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7525if test -n "$MANIFEST_TOOL"; then
7526  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7527printf "%s\n" "$MANIFEST_TOOL" >&6; }
7528else
7529  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7530printf "%s\n" "no" >&6; }
7531fi
7532
7533
7534fi
7535if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7536  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7537  # Extract the first word of "mt", so it can be a program name with args.
7538set dummy mt; ac_word=$2
7539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540printf %s "checking for $ac_word... " >&6; }
7541if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7542then :
7543  printf %s "(cached) " >&6
7544else $as_nop
7545  if test -n "$ac_ct_MANIFEST_TOOL"; then
7546  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7547else
7548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549for as_dir in $PATH
7550do
7551  IFS=$as_save_IFS
7552  case $as_dir in #(((
7553    '') as_dir=./ ;;
7554    */) ;;
7555    *) as_dir=$as_dir/ ;;
7556  esac
7557    for ac_exec_ext in '' $ac_executable_extensions; do
7558  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7559    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7560    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7561    break 2
7562  fi
7563done
7564  done
7565IFS=$as_save_IFS
7566
7567fi
7568fi
7569ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7570if test -n "$ac_ct_MANIFEST_TOOL"; then
7571  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7572printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7573else
7574  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7575printf "%s\n" "no" >&6; }
7576fi
7577
7578  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7579    MANIFEST_TOOL=":"
7580  else
7581    case $cross_compiling:$ac_tool_warned in
7582yes:)
7583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7584printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7585ac_tool_warned=yes ;;
7586esac
7587    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7588  fi
7589else
7590  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7591fi
7592
7593test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7595printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7596if test ${lt_cv_path_mainfest_tool+y}
7597then :
7598  printf %s "(cached) " >&6
7599else $as_nop
7600  lt_cv_path_mainfest_tool=no
7601  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7602  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7603  cat conftest.err >&5
7604  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7605    lt_cv_path_mainfest_tool=yes
7606  fi
7607  rm -f conftest*
7608fi
7609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7610printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7611if test yes != "$lt_cv_path_mainfest_tool"; then
7612  MANIFEST_TOOL=:
7613fi
7614
7615
7616
7617
7618
7619
7620  case $host_os in
7621    rhapsody* | darwin*)
7622    if test -n "$ac_tool_prefix"; then
7623  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7624set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7626printf %s "checking for $ac_word... " >&6; }
7627if test ${ac_cv_prog_DSYMUTIL+y}
7628then :
7629  printf %s "(cached) " >&6
7630else $as_nop
7631  if test -n "$DSYMUTIL"; then
7632  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7633else
7634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635for as_dir in $PATH
7636do
7637  IFS=$as_save_IFS
7638  case $as_dir in #(((
7639    '') as_dir=./ ;;
7640    */) ;;
7641    *) as_dir=$as_dir/ ;;
7642  esac
7643    for ac_exec_ext in '' $ac_executable_extensions; do
7644  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7645    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7646    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7647    break 2
7648  fi
7649done
7650  done
7651IFS=$as_save_IFS
7652
7653fi
7654fi
7655DSYMUTIL=$ac_cv_prog_DSYMUTIL
7656if test -n "$DSYMUTIL"; then
7657  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7658printf "%s\n" "$DSYMUTIL" >&6; }
7659else
7660  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661printf "%s\n" "no" >&6; }
7662fi
7663
7664
7665fi
7666if test -z "$ac_cv_prog_DSYMUTIL"; then
7667  ac_ct_DSYMUTIL=$DSYMUTIL
7668  # Extract the first word of "dsymutil", so it can be a program name with args.
7669set dummy dsymutil; ac_word=$2
7670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7671printf %s "checking for $ac_word... " >&6; }
7672if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7673then :
7674  printf %s "(cached) " >&6
7675else $as_nop
7676  if test -n "$ac_ct_DSYMUTIL"; then
7677  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7678else
7679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680for as_dir in $PATH
7681do
7682  IFS=$as_save_IFS
7683  case $as_dir in #(((
7684    '') as_dir=./ ;;
7685    */) ;;
7686    *) as_dir=$as_dir/ ;;
7687  esac
7688    for ac_exec_ext in '' $ac_executable_extensions; do
7689  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7690    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7691    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7692    break 2
7693  fi
7694done
7695  done
7696IFS=$as_save_IFS
7697
7698fi
7699fi
7700ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7701if test -n "$ac_ct_DSYMUTIL"; then
7702  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7703printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7704else
7705  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7706printf "%s\n" "no" >&6; }
7707fi
7708
7709  if test "x$ac_ct_DSYMUTIL" = x; then
7710    DSYMUTIL=":"
7711  else
7712    case $cross_compiling:$ac_tool_warned in
7713yes:)
7714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7715printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7716ac_tool_warned=yes ;;
7717esac
7718    DSYMUTIL=$ac_ct_DSYMUTIL
7719  fi
7720else
7721  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7722fi
7723
7724    if test -n "$ac_tool_prefix"; then
7725  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7726set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7728printf %s "checking for $ac_word... " >&6; }
7729if test ${ac_cv_prog_NMEDIT+y}
7730then :
7731  printf %s "(cached) " >&6
7732else $as_nop
7733  if test -n "$NMEDIT"; then
7734  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7735else
7736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737for as_dir in $PATH
7738do
7739  IFS=$as_save_IFS
7740  case $as_dir in #(((
7741    '') as_dir=./ ;;
7742    */) ;;
7743    *) as_dir=$as_dir/ ;;
7744  esac
7745    for ac_exec_ext in '' $ac_executable_extensions; do
7746  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7747    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7748    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7749    break 2
7750  fi
7751done
7752  done
7753IFS=$as_save_IFS
7754
7755fi
7756fi
7757NMEDIT=$ac_cv_prog_NMEDIT
7758if test -n "$NMEDIT"; then
7759  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7760printf "%s\n" "$NMEDIT" >&6; }
7761else
7762  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763printf "%s\n" "no" >&6; }
7764fi
7765
7766
7767fi
7768if test -z "$ac_cv_prog_NMEDIT"; then
7769  ac_ct_NMEDIT=$NMEDIT
7770  # Extract the first word of "nmedit", so it can be a program name with args.
7771set dummy nmedit; ac_word=$2
7772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773printf %s "checking for $ac_word... " >&6; }
7774if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7775then :
7776  printf %s "(cached) " >&6
7777else $as_nop
7778  if test -n "$ac_ct_NMEDIT"; then
7779  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7780else
7781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782for as_dir in $PATH
7783do
7784  IFS=$as_save_IFS
7785  case $as_dir in #(((
7786    '') as_dir=./ ;;
7787    */) ;;
7788    *) as_dir=$as_dir/ ;;
7789  esac
7790    for ac_exec_ext in '' $ac_executable_extensions; do
7791  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7792    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7793    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7794    break 2
7795  fi
7796done
7797  done
7798IFS=$as_save_IFS
7799
7800fi
7801fi
7802ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7803if test -n "$ac_ct_NMEDIT"; then
7804  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7805printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7806else
7807  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7808printf "%s\n" "no" >&6; }
7809fi
7810
7811  if test "x$ac_ct_NMEDIT" = x; then
7812    NMEDIT=":"
7813  else
7814    case $cross_compiling:$ac_tool_warned in
7815yes:)
7816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7817printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7818ac_tool_warned=yes ;;
7819esac
7820    NMEDIT=$ac_ct_NMEDIT
7821  fi
7822else
7823  NMEDIT="$ac_cv_prog_NMEDIT"
7824fi
7825
7826    if test -n "$ac_tool_prefix"; then
7827  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7828set dummy ${ac_tool_prefix}lipo; ac_word=$2
7829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7830printf %s "checking for $ac_word... " >&6; }
7831if test ${ac_cv_prog_LIPO+y}
7832then :
7833  printf %s "(cached) " >&6
7834else $as_nop
7835  if test -n "$LIPO"; then
7836  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7837else
7838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839for as_dir in $PATH
7840do
7841  IFS=$as_save_IFS
7842  case $as_dir in #(((
7843    '') as_dir=./ ;;
7844    */) ;;
7845    *) as_dir=$as_dir/ ;;
7846  esac
7847    for ac_exec_ext in '' $ac_executable_extensions; do
7848  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7849    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7850    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7851    break 2
7852  fi
7853done
7854  done
7855IFS=$as_save_IFS
7856
7857fi
7858fi
7859LIPO=$ac_cv_prog_LIPO
7860if test -n "$LIPO"; then
7861  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7862printf "%s\n" "$LIPO" >&6; }
7863else
7864  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7865printf "%s\n" "no" >&6; }
7866fi
7867
7868
7869fi
7870if test -z "$ac_cv_prog_LIPO"; then
7871  ac_ct_LIPO=$LIPO
7872  # Extract the first word of "lipo", so it can be a program name with args.
7873set dummy lipo; ac_word=$2
7874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7875printf %s "checking for $ac_word... " >&6; }
7876if test ${ac_cv_prog_ac_ct_LIPO+y}
7877then :
7878  printf %s "(cached) " >&6
7879else $as_nop
7880  if test -n "$ac_ct_LIPO"; then
7881  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7882else
7883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884for as_dir in $PATH
7885do
7886  IFS=$as_save_IFS
7887  case $as_dir in #(((
7888    '') as_dir=./ ;;
7889    */) ;;
7890    *) as_dir=$as_dir/ ;;
7891  esac
7892    for ac_exec_ext in '' $ac_executable_extensions; do
7893  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7894    ac_cv_prog_ac_ct_LIPO="lipo"
7895    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7896    break 2
7897  fi
7898done
7899  done
7900IFS=$as_save_IFS
7901
7902fi
7903fi
7904ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7905if test -n "$ac_ct_LIPO"; then
7906  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7907printf "%s\n" "$ac_ct_LIPO" >&6; }
7908else
7909  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910printf "%s\n" "no" >&6; }
7911fi
7912
7913  if test "x$ac_ct_LIPO" = x; then
7914    LIPO=":"
7915  else
7916    case $cross_compiling:$ac_tool_warned in
7917yes:)
7918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7919printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7920ac_tool_warned=yes ;;
7921esac
7922    LIPO=$ac_ct_LIPO
7923  fi
7924else
7925  LIPO="$ac_cv_prog_LIPO"
7926fi
7927
7928    if test -n "$ac_tool_prefix"; then
7929  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7930set dummy ${ac_tool_prefix}otool; ac_word=$2
7931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7932printf %s "checking for $ac_word... " >&6; }
7933if test ${ac_cv_prog_OTOOL+y}
7934then :
7935  printf %s "(cached) " >&6
7936else $as_nop
7937  if test -n "$OTOOL"; then
7938  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7939else
7940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941for as_dir in $PATH
7942do
7943  IFS=$as_save_IFS
7944  case $as_dir in #(((
7945    '') as_dir=./ ;;
7946    */) ;;
7947    *) as_dir=$as_dir/ ;;
7948  esac
7949    for ac_exec_ext in '' $ac_executable_extensions; do
7950  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7951    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7952    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7953    break 2
7954  fi
7955done
7956  done
7957IFS=$as_save_IFS
7958
7959fi
7960fi
7961OTOOL=$ac_cv_prog_OTOOL
7962if test -n "$OTOOL"; then
7963  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7964printf "%s\n" "$OTOOL" >&6; }
7965else
7966  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7967printf "%s\n" "no" >&6; }
7968fi
7969
7970
7971fi
7972if test -z "$ac_cv_prog_OTOOL"; then
7973  ac_ct_OTOOL=$OTOOL
7974  # Extract the first word of "otool", so it can be a program name with args.
7975set dummy otool; ac_word=$2
7976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7977printf %s "checking for $ac_word... " >&6; }
7978if test ${ac_cv_prog_ac_ct_OTOOL+y}
7979then :
7980  printf %s "(cached) " >&6
7981else $as_nop
7982  if test -n "$ac_ct_OTOOL"; then
7983  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7984else
7985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986for as_dir in $PATH
7987do
7988  IFS=$as_save_IFS
7989  case $as_dir in #(((
7990    '') as_dir=./ ;;
7991    */) ;;
7992    *) as_dir=$as_dir/ ;;
7993  esac
7994    for ac_exec_ext in '' $ac_executable_extensions; do
7995  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7996    ac_cv_prog_ac_ct_OTOOL="otool"
7997    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7998    break 2
7999  fi
8000done
8001  done
8002IFS=$as_save_IFS
8003
8004fi
8005fi
8006ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8007if test -n "$ac_ct_OTOOL"; then
8008  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8009printf "%s\n" "$ac_ct_OTOOL" >&6; }
8010else
8011  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012printf "%s\n" "no" >&6; }
8013fi
8014
8015  if test "x$ac_ct_OTOOL" = x; then
8016    OTOOL=":"
8017  else
8018    case $cross_compiling:$ac_tool_warned in
8019yes:)
8020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8021printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8022ac_tool_warned=yes ;;
8023esac
8024    OTOOL=$ac_ct_OTOOL
8025  fi
8026else
8027  OTOOL="$ac_cv_prog_OTOOL"
8028fi
8029
8030    if test -n "$ac_tool_prefix"; then
8031  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8032set dummy ${ac_tool_prefix}otool64; ac_word=$2
8033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8034printf %s "checking for $ac_word... " >&6; }
8035if test ${ac_cv_prog_OTOOL64+y}
8036then :
8037  printf %s "(cached) " >&6
8038else $as_nop
8039  if test -n "$OTOOL64"; then
8040  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8041else
8042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043for as_dir in $PATH
8044do
8045  IFS=$as_save_IFS
8046  case $as_dir in #(((
8047    '') as_dir=./ ;;
8048    */) ;;
8049    *) as_dir=$as_dir/ ;;
8050  esac
8051    for ac_exec_ext in '' $ac_executable_extensions; do
8052  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8053    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8054    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8055    break 2
8056  fi
8057done
8058  done
8059IFS=$as_save_IFS
8060
8061fi
8062fi
8063OTOOL64=$ac_cv_prog_OTOOL64
8064if test -n "$OTOOL64"; then
8065  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8066printf "%s\n" "$OTOOL64" >&6; }
8067else
8068  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8069printf "%s\n" "no" >&6; }
8070fi
8071
8072
8073fi
8074if test -z "$ac_cv_prog_OTOOL64"; then
8075  ac_ct_OTOOL64=$OTOOL64
8076  # Extract the first word of "otool64", so it can be a program name with args.
8077set dummy otool64; ac_word=$2
8078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8079printf %s "checking for $ac_word... " >&6; }
8080if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8081then :
8082  printf %s "(cached) " >&6
8083else $as_nop
8084  if test -n "$ac_ct_OTOOL64"; then
8085  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8086else
8087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088for as_dir in $PATH
8089do
8090  IFS=$as_save_IFS
8091  case $as_dir in #(((
8092    '') as_dir=./ ;;
8093    */) ;;
8094    *) as_dir=$as_dir/ ;;
8095  esac
8096    for ac_exec_ext in '' $ac_executable_extensions; do
8097  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8098    ac_cv_prog_ac_ct_OTOOL64="otool64"
8099    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8100    break 2
8101  fi
8102done
8103  done
8104IFS=$as_save_IFS
8105
8106fi
8107fi
8108ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8109if test -n "$ac_ct_OTOOL64"; then
8110  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8111printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8112else
8113  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114printf "%s\n" "no" >&6; }
8115fi
8116
8117  if test "x$ac_ct_OTOOL64" = x; then
8118    OTOOL64=":"
8119  else
8120    case $cross_compiling:$ac_tool_warned in
8121yes:)
8122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8123printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8124ac_tool_warned=yes ;;
8125esac
8126    OTOOL64=$ac_ct_OTOOL64
8127  fi
8128else
8129  OTOOL64="$ac_cv_prog_OTOOL64"
8130fi
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8159printf %s "checking for -single_module linker flag... " >&6; }
8160if test ${lt_cv_apple_cc_single_mod+y}
8161then :
8162  printf %s "(cached) " >&6
8163else $as_nop
8164  lt_cv_apple_cc_single_mod=no
8165      if test -z "$LT_MULTI_MODULE"; then
8166	# By default we will add the -single_module flag. You can override
8167	# by either setting the environment variable LT_MULTI_MODULE
8168	# non-empty at configure time, or by adding -multi_module to the
8169	# link flags.
8170	rm -rf libconftest.dylib*
8171	echo "int foo(void){return 1;}" > conftest.c
8172	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8173-dynamiclib -Wl,-single_module conftest.c" >&5
8174	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8175	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8176        _lt_result=$?
8177	# If there is a non-empty error log, and "single_module"
8178	# appears in it, assume the flag caused a linker warning
8179        if test -s conftest.err && $GREP single_module conftest.err; then
8180	  cat conftest.err >&5
8181	# Otherwise, if the output was created with a 0 exit code from
8182	# the compiler, it worked.
8183	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8184	  lt_cv_apple_cc_single_mod=yes
8185	else
8186	  cat conftest.err >&5
8187	fi
8188	rm -rf libconftest.dylib*
8189	rm -f conftest.*
8190      fi
8191fi
8192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8193printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8194
8195    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8196printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8197if test ${lt_cv_ld_exported_symbols_list+y}
8198then :
8199  printf %s "(cached) " >&6
8200else $as_nop
8201  lt_cv_ld_exported_symbols_list=no
8202      save_LDFLAGS=$LDFLAGS
8203      echo "_main" > conftest.sym
8204      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8205      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8206/* end confdefs.h.  */
8207
8208int
8209main (void)
8210{
8211
8212  ;
8213  return 0;
8214}
8215_ACEOF
8216if ac_fn_c_try_link "$LINENO"
8217then :
8218  lt_cv_ld_exported_symbols_list=yes
8219else $as_nop
8220  lt_cv_ld_exported_symbols_list=no
8221fi
8222rm -f core conftest.err conftest.$ac_objext conftest.beam \
8223    conftest$ac_exeext conftest.$ac_ext
8224	LDFLAGS=$save_LDFLAGS
8225
8226fi
8227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8228printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8229
8230    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8231printf %s "checking for -force_load linker flag... " >&6; }
8232if test ${lt_cv_ld_force_load+y}
8233then :
8234  printf %s "(cached) " >&6
8235else $as_nop
8236  lt_cv_ld_force_load=no
8237      cat > conftest.c << _LT_EOF
8238int forced_loaded() { return 2;}
8239_LT_EOF
8240      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8241      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8242      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8243      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8244      echo "$RANLIB libconftest.a" >&5
8245      $RANLIB libconftest.a 2>&5
8246      cat > conftest.c << _LT_EOF
8247int main() { return 0;}
8248_LT_EOF
8249      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8250      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8251      _lt_result=$?
8252      if test -s conftest.err && $GREP force_load conftest.err; then
8253	cat conftest.err >&5
8254      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8255	lt_cv_ld_force_load=yes
8256      else
8257	cat conftest.err >&5
8258      fi
8259        rm -f conftest.err libconftest.a conftest conftest.c
8260        rm -rf conftest.dSYM
8261
8262fi
8263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8264printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8265    case $host_os in
8266    rhapsody* | darwin1.[012])
8267      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8268    darwin1.*)
8269      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8270    darwin*)
8271      case $MACOSX_DEPLOYMENT_TARGET,$host in
8272        10.[012],*|,*powerpc*-darwin[5-8]*)
8273          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8274        *)
8275          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8276      esac
8277    ;;
8278  esac
8279    if test yes = "$lt_cv_apple_cc_single_mod"; then
8280      _lt_dar_single_mod='$single_module'
8281    fi
8282    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8283      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8284    else
8285      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8286    fi
8287    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8288      _lt_dsymutil='~$DSYMUTIL $lib || :'
8289    else
8290      _lt_dsymutil=
8291    fi
8292    ;;
8293  esac
8294
8295# func_munge_path_list VARIABLE PATH
8296# -----------------------------------
8297# VARIABLE is name of variable containing _space_ separated list of
8298# directories to be munged by the contents of PATH, which is string
8299# having a format:
8300# "DIR[:DIR]:"
8301#       string "DIR[ DIR]" will be prepended to VARIABLE
8302# ":DIR[:DIR]"
8303#       string "DIR[ DIR]" will be appended to VARIABLE
8304# "DIRP[:DIRP]::[DIRA:]DIRA"
8305#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8306#       "DIRA[ DIRA]" will be appended to VARIABLE
8307# "DIR[:DIR]"
8308#       VARIABLE will be replaced by "DIR[ DIR]"
8309func_munge_path_list ()
8310{
8311    case x$2 in
8312    x)
8313        ;;
8314    *:)
8315        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8316        ;;
8317    x:*)
8318        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8319        ;;
8320    *::*)
8321        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8322        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8323        ;;
8324    *)
8325        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8326        ;;
8327    esac
8328}
8329
8330ac_header= ac_cache=
8331for ac_item in $ac_header_c_list
8332do
8333  if test $ac_cache; then
8334    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8335    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8336      printf "%s\n" "#define $ac_item 1" >> confdefs.h
8337    fi
8338    ac_header= ac_cache=
8339  elif test $ac_header; then
8340    ac_cache=$ac_item
8341  else
8342    ac_header=$ac_item
8343  fi
8344done
8345
8346
8347
8348
8349
8350
8351
8352
8353if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8354then :
8355
8356printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8357
8358fi
8359ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8360"
8361if test "x$ac_cv_header_dlfcn_h" = xyes
8362then :
8363  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8364
8365fi
8366
8367
8368
8369
8370
8371# Set options
8372
8373
8374
8375        enable_dlopen=no
8376
8377
8378  enable_win32_dll=no
8379
8380
8381            # Check whether --enable-shared was given.
8382if test ${enable_shared+y}
8383then :
8384  enableval=$enable_shared; p=${PACKAGE-default}
8385    case $enableval in
8386    yes) enable_shared=yes ;;
8387    no) enable_shared=no ;;
8388    *)
8389      enable_shared=no
8390      # Look at the argument we got.  We use all the common list separators.
8391      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8392      for pkg in $enableval; do
8393	IFS=$lt_save_ifs
8394	if test "X$pkg" = "X$p"; then
8395	  enable_shared=yes
8396	fi
8397      done
8398      IFS=$lt_save_ifs
8399      ;;
8400    esac
8401else $as_nop
8402  enable_shared=yes
8403fi
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413  # Check whether --enable-static was given.
8414if test ${enable_static+y}
8415then :
8416  enableval=$enable_static; p=${PACKAGE-default}
8417    case $enableval in
8418    yes) enable_static=yes ;;
8419    no) enable_static=no ;;
8420    *)
8421     enable_static=no
8422      # Look at the argument we got.  We use all the common list separators.
8423      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8424      for pkg in $enableval; do
8425	IFS=$lt_save_ifs
8426	if test "X$pkg" = "X$p"; then
8427	  enable_static=yes
8428	fi
8429      done
8430      IFS=$lt_save_ifs
8431      ;;
8432    esac
8433else $as_nop
8434  enable_static=yes
8435fi
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446# Check whether --with-pic was given.
8447if test ${with_pic+y}
8448then :
8449  withval=$with_pic; lt_p=${PACKAGE-default}
8450    case $withval in
8451    yes|no) pic_mode=$withval ;;
8452    *)
8453      pic_mode=default
8454      # Look at the argument we got.  We use all the common list separators.
8455      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8456      for lt_pkg in $withval; do
8457	IFS=$lt_save_ifs
8458	if test "X$lt_pkg" = "X$lt_p"; then
8459	  pic_mode=yes
8460	fi
8461      done
8462      IFS=$lt_save_ifs
8463      ;;
8464    esac
8465else $as_nop
8466  pic_mode=default
8467fi
8468
8469
8470
8471
8472
8473
8474
8475
8476  # Check whether --enable-fast-install was given.
8477if test ${enable_fast_install+y}
8478then :
8479  enableval=$enable_fast_install; p=${PACKAGE-default}
8480    case $enableval in
8481    yes) enable_fast_install=yes ;;
8482    no) enable_fast_install=no ;;
8483    *)
8484      enable_fast_install=no
8485      # Look at the argument we got.  We use all the common list separators.
8486      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8487      for pkg in $enableval; do
8488	IFS=$lt_save_ifs
8489	if test "X$pkg" = "X$p"; then
8490	  enable_fast_install=yes
8491	fi
8492      done
8493      IFS=$lt_save_ifs
8494      ;;
8495    esac
8496else $as_nop
8497  enable_fast_install=yes
8498fi
8499
8500
8501
8502
8503
8504
8505
8506
8507  shared_archive_member_spec=
8508case $host,$enable_shared in
8509power*-*-aix[5-9]*,yes)
8510  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8511printf %s "checking which variant of shared library versioning to provide... " >&6; }
8512
8513# Check whether --with-aix-soname was given.
8514if test ${with_aix_soname+y}
8515then :
8516  withval=$with_aix_soname; case $withval in
8517    aix|svr4|both)
8518      ;;
8519    *)
8520      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8521      ;;
8522    esac
8523    lt_cv_with_aix_soname=$with_aix_soname
8524else $as_nop
8525  if test ${lt_cv_with_aix_soname+y}
8526then :
8527  printf %s "(cached) " >&6
8528else $as_nop
8529  lt_cv_with_aix_soname=aix
8530fi
8531
8532    with_aix_soname=$lt_cv_with_aix_soname
8533fi
8534
8535  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8536printf "%s\n" "$with_aix_soname" >&6; }
8537  if test aix != "$with_aix_soname"; then
8538    # For the AIX way of multilib, we name the shared archive member
8539    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8540    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8541    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8542    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8543    if test 64 = "${OBJECT_MODE-32}"; then
8544      shared_archive_member_spec=shr_64
8545    else
8546      shared_archive_member_spec=shr
8547    fi
8548  fi
8549  ;;
8550*)
8551  with_aix_soname=aix
8552  ;;
8553esac
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564# This can be used to rebuild libtool when needed
8565LIBTOOL_DEPS=$ltmain
8566
8567# Always use our own libtool.
8568LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599test -z "$LN_S" && LN_S="ln -s"
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614if test -n "${ZSH_VERSION+set}"; then
8615   setopt NO_GLOB_SUBST
8616fi
8617
8618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8619printf %s "checking for objdir... " >&6; }
8620if test ${lt_cv_objdir+y}
8621then :
8622  printf %s "(cached) " >&6
8623else $as_nop
8624  rm -f .libs 2>/dev/null
8625mkdir .libs 2>/dev/null
8626if test -d .libs; then
8627  lt_cv_objdir=.libs
8628else
8629  # MS-DOS does not allow filenames that begin with a dot.
8630  lt_cv_objdir=_libs
8631fi
8632rmdir .libs 2>/dev/null
8633fi
8634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8635printf "%s\n" "$lt_cv_objdir" >&6; }
8636objdir=$lt_cv_objdir
8637
8638
8639
8640
8641
8642printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8643
8644
8645
8646
8647case $host_os in
8648aix3*)
8649  # AIX sometimes has problems with the GCC collect2 program.  For some
8650  # reason, if we set the COLLECT_NAMES environment variable, the problems
8651  # vanish in a puff of smoke.
8652  if test set != "${COLLECT_NAMES+set}"; then
8653    COLLECT_NAMES=
8654    export COLLECT_NAMES
8655  fi
8656  ;;
8657esac
8658
8659# Global variables:
8660ofile=libtool
8661can_build_shared=yes
8662
8663# All known linkers require a '.a' archive for static linking (except MSVC and
8664# ICC, which need '.lib').
8665libext=a
8666
8667with_gnu_ld=$lt_cv_prog_gnu_ld
8668
8669old_CC=$CC
8670old_CFLAGS=$CFLAGS
8671
8672# Set sane defaults for various variables
8673test -z "$CC" && CC=cc
8674test -z "$LTCC" && LTCC=$CC
8675test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8676test -z "$LD" && LD=ld
8677test -z "$ac_objext" && ac_objext=o
8678
8679func_cc_basename $compiler
8680cc_basename=$func_cc_basename_result
8681
8682
8683# Only perform the check for file, if the check method requires it
8684test -z "$MAGIC_CMD" && MAGIC_CMD=file
8685case $deplibs_check_method in
8686file_magic*)
8687  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8688    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8689printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8690if test ${lt_cv_path_MAGIC_CMD+y}
8691then :
8692  printf %s "(cached) " >&6
8693else $as_nop
8694  case $MAGIC_CMD in
8695[\\/*] |  ?:[\\/]*)
8696  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8697  ;;
8698*)
8699  lt_save_MAGIC_CMD=$MAGIC_CMD
8700  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8701  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8702  for ac_dir in $ac_dummy; do
8703    IFS=$lt_save_ifs
8704    test -z "$ac_dir" && ac_dir=.
8705    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8706      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8707      if test -n "$file_magic_test_file"; then
8708	case $deplibs_check_method in
8709	"file_magic "*)
8710	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8711	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8712	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8713	    $EGREP "$file_magic_regex" > /dev/null; then
8714	    :
8715	  else
8716	    cat <<_LT_EOF 1>&2
8717
8718*** Warning: the command libtool uses to detect shared libraries,
8719*** $file_magic_cmd, produces output that libtool cannot recognize.
8720*** The result is that libtool may fail to recognize shared libraries
8721*** as such.  This will affect the creation of libtool libraries that
8722*** depend on shared libraries, but programs linked with such libtool
8723*** libraries will work regardless of this problem.  Nevertheless, you
8724*** may want to report the problem to your system manager and/or to
8725*** bug-libtool@gnu.org
8726
8727_LT_EOF
8728	  fi ;;
8729	esac
8730      fi
8731      break
8732    fi
8733  done
8734  IFS=$lt_save_ifs
8735  MAGIC_CMD=$lt_save_MAGIC_CMD
8736  ;;
8737esac
8738fi
8739
8740MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8741if test -n "$MAGIC_CMD"; then
8742  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8743printf "%s\n" "$MAGIC_CMD" >&6; }
8744else
8745  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8746printf "%s\n" "no" >&6; }
8747fi
8748
8749
8750
8751
8752
8753if test -z "$lt_cv_path_MAGIC_CMD"; then
8754  if test -n "$ac_tool_prefix"; then
8755    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8756printf %s "checking for file... " >&6; }
8757if test ${lt_cv_path_MAGIC_CMD+y}
8758then :
8759  printf %s "(cached) " >&6
8760else $as_nop
8761  case $MAGIC_CMD in
8762[\\/*] |  ?:[\\/]*)
8763  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8764  ;;
8765*)
8766  lt_save_MAGIC_CMD=$MAGIC_CMD
8767  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8768  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8769  for ac_dir in $ac_dummy; do
8770    IFS=$lt_save_ifs
8771    test -z "$ac_dir" && ac_dir=.
8772    if test -f "$ac_dir/file"; then
8773      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8774      if test -n "$file_magic_test_file"; then
8775	case $deplibs_check_method in
8776	"file_magic "*)
8777	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8778	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8779	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8780	    $EGREP "$file_magic_regex" > /dev/null; then
8781	    :
8782	  else
8783	    cat <<_LT_EOF 1>&2
8784
8785*** Warning: the command libtool uses to detect shared libraries,
8786*** $file_magic_cmd, produces output that libtool cannot recognize.
8787*** The result is that libtool may fail to recognize shared libraries
8788*** as such.  This will affect the creation of libtool libraries that
8789*** depend on shared libraries, but programs linked with such libtool
8790*** libraries will work regardless of this problem.  Nevertheless, you
8791*** may want to report the problem to your system manager and/or to
8792*** bug-libtool@gnu.org
8793
8794_LT_EOF
8795	  fi ;;
8796	esac
8797      fi
8798      break
8799    fi
8800  done
8801  IFS=$lt_save_ifs
8802  MAGIC_CMD=$lt_save_MAGIC_CMD
8803  ;;
8804esac
8805fi
8806
8807MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8808if test -n "$MAGIC_CMD"; then
8809  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8810printf "%s\n" "$MAGIC_CMD" >&6; }
8811else
8812  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8813printf "%s\n" "no" >&6; }
8814fi
8815
8816
8817  else
8818    MAGIC_CMD=:
8819  fi
8820fi
8821
8822  fi
8823  ;;
8824esac
8825
8826# Use C for the default configuration in the libtool script
8827
8828lt_save_CC=$CC
8829ac_ext=c
8830ac_cpp='$CPP $CPPFLAGS'
8831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8833ac_compiler_gnu=$ac_cv_c_compiler_gnu
8834
8835
8836# Source file extension for C test sources.
8837ac_ext=c
8838
8839# Object file extension for compiled C test sources.
8840objext=o
8841objext=$objext
8842
8843# Code to be used in simple compile tests
8844lt_simple_compile_test_code="int some_variable = 0;"
8845
8846# Code to be used in simple link tests
8847lt_simple_link_test_code='int main(){return(0);}'
8848
8849
8850
8851
8852
8853
8854
8855# If no C compiler was specified, use CC.
8856LTCC=${LTCC-"$CC"}
8857
8858# If no C compiler flags were specified, use CFLAGS.
8859LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8860
8861# Allow CC to be a program name with arguments.
8862compiler=$CC
8863
8864# Save the default compiler, since it gets overwritten when the other
8865# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8866compiler_DEFAULT=$CC
8867
8868# save warnings/boilerplate of simple test code
8869ac_outfile=conftest.$ac_objext
8870echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8871eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8872_lt_compiler_boilerplate=`cat conftest.err`
8873$RM conftest*
8874
8875ac_outfile=conftest.$ac_objext
8876echo "$lt_simple_link_test_code" >conftest.$ac_ext
8877eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8878_lt_linker_boilerplate=`cat conftest.err`
8879$RM -r conftest*
8880
8881
8882if test -n "$compiler"; then
8883
8884lt_prog_compiler_no_builtin_flag=
8885
8886if test yes = "$GCC"; then
8887  case $cc_basename in
8888  nvcc*)
8889    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8890  *)
8891    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8892  esac
8893
8894  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8895printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8896if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8897then :
8898  printf %s "(cached) " >&6
8899else $as_nop
8900  lt_cv_prog_compiler_rtti_exceptions=no
8901   ac_outfile=conftest.$ac_objext
8902   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8903   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8904   # Insert the option either (1) after the last *FLAGS variable, or
8905   # (2) before a word containing "conftest.", or (3) at the end.
8906   # Note that $ac_compile itself does not contain backslashes and begins
8907   # with a dollar sign (not a hyphen), so the echo should work correctly.
8908   # The option is referenced via a variable to avoid confusing sed.
8909   lt_compile=`echo "$ac_compile" | $SED \
8910   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8911   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8912   -e 's:$: $lt_compiler_flag:'`
8913   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8914   (eval "$lt_compile" 2>conftest.err)
8915   ac_status=$?
8916   cat conftest.err >&5
8917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918   if (exit $ac_status) && test -s "$ac_outfile"; then
8919     # The compiler can only warn and ignore the option if not recognized
8920     # So say no if there are warnings other than the usual output.
8921     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8922     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8923     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8924       lt_cv_prog_compiler_rtti_exceptions=yes
8925     fi
8926   fi
8927   $RM conftest*
8928
8929fi
8930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8931printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8932
8933if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8934    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8935else
8936    :
8937fi
8938
8939fi
8940
8941
8942
8943
8944
8945
8946  lt_prog_compiler_wl=
8947lt_prog_compiler_pic=
8948lt_prog_compiler_static=
8949
8950
8951  if test yes = "$GCC"; then
8952    lt_prog_compiler_wl='-Wl,'
8953    lt_prog_compiler_static='-static'
8954
8955    case $host_os in
8956      aix*)
8957      # All AIX code is PIC.
8958      if test ia64 = "$host_cpu"; then
8959	# AIX 5 now supports IA64 processor
8960	lt_prog_compiler_static='-Bstatic'
8961      fi
8962      lt_prog_compiler_pic='-fPIC'
8963      ;;
8964
8965    amigaos*)
8966      case $host_cpu in
8967      powerpc)
8968            # see comment about AmigaOS4 .so support
8969            lt_prog_compiler_pic='-fPIC'
8970        ;;
8971      m68k)
8972            # FIXME: we need at least 68020 code to build shared libraries, but
8973            # adding the '-m68020' flag to GCC prevents building anything better,
8974            # like '-m68040'.
8975            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8976        ;;
8977      esac
8978      ;;
8979
8980    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8981      # PIC is the default for these OSes.
8982      ;;
8983
8984    mingw* | cygwin* | pw32* | os2* | cegcc*)
8985      # This hack is so that the source file can tell whether it is being
8986      # built for inclusion in a dll (and should export symbols for example).
8987      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8988      # (--disable-auto-import) libraries
8989      lt_prog_compiler_pic='-DDLL_EXPORT'
8990      case $host_os in
8991      os2*)
8992	lt_prog_compiler_static='$wl-static'
8993	;;
8994      esac
8995      ;;
8996
8997    darwin* | rhapsody*)
8998      # PIC is the default on this platform
8999      # Common symbols not allowed in MH_DYLIB files
9000      lt_prog_compiler_pic='-fno-common'
9001      ;;
9002
9003    haiku*)
9004      # PIC is the default for Haiku.
9005      # The "-static" flag exists, but is broken.
9006      lt_prog_compiler_static=
9007      ;;
9008
9009    hpux*)
9010      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9011      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9012      # sets the default TLS model and affects inlining.
9013      case $host_cpu in
9014      hppa*64*)
9015	# +Z the default
9016	;;
9017      *)
9018	lt_prog_compiler_pic='-fPIC'
9019	;;
9020      esac
9021      ;;
9022
9023    interix[3-9]*)
9024      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9025      # Instead, we relocate shared libraries at runtime.
9026      ;;
9027
9028    msdosdjgpp*)
9029      # Just because we use GCC doesn't mean we suddenly get shared libraries
9030      # on systems that don't support them.
9031      lt_prog_compiler_can_build_shared=no
9032      enable_shared=no
9033      ;;
9034
9035    *nto* | *qnx*)
9036      # QNX uses GNU C++, but need to define -shared option too, otherwise
9037      # it will coredump.
9038      lt_prog_compiler_pic='-fPIC -shared'
9039      ;;
9040
9041    sysv4*MP*)
9042      if test -d /usr/nec; then
9043	lt_prog_compiler_pic=-Kconform_pic
9044      fi
9045      ;;
9046
9047    *)
9048      lt_prog_compiler_pic='-fPIC'
9049      ;;
9050    esac
9051
9052    case $cc_basename in
9053    nvcc*) # Cuda Compiler Driver 2.2
9054      lt_prog_compiler_wl='-Xlinker '
9055      if test -n "$lt_prog_compiler_pic"; then
9056        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9057      fi
9058      ;;
9059    esac
9060  else
9061    # PORTME Check for flag to pass linker flags through the system compiler.
9062    case $host_os in
9063    aix*)
9064      lt_prog_compiler_wl='-Wl,'
9065      if test ia64 = "$host_cpu"; then
9066	# AIX 5 now supports IA64 processor
9067	lt_prog_compiler_static='-Bstatic'
9068      else
9069	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9070      fi
9071      ;;
9072
9073    darwin* | rhapsody*)
9074      # PIC is the default on this platform
9075      # Common symbols not allowed in MH_DYLIB files
9076      lt_prog_compiler_pic='-fno-common'
9077      case $cc_basename in
9078      nagfor*)
9079        # NAG Fortran compiler
9080        lt_prog_compiler_wl='-Wl,-Wl,,'
9081        lt_prog_compiler_pic='-PIC'
9082        lt_prog_compiler_static='-Bstatic'
9083        ;;
9084      esac
9085      ;;
9086
9087    mingw* | cygwin* | pw32* | os2* | cegcc*)
9088      # This hack is so that the source file can tell whether it is being
9089      # built for inclusion in a dll (and should export symbols for example).
9090      lt_prog_compiler_pic='-DDLL_EXPORT'
9091      case $host_os in
9092      os2*)
9093	lt_prog_compiler_static='$wl-static'
9094	;;
9095      esac
9096      ;;
9097
9098    hpux9* | hpux10* | hpux11*)
9099      lt_prog_compiler_wl='-Wl,'
9100      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9101      # not for PA HP-UX.
9102      case $host_cpu in
9103      hppa*64*|ia64*)
9104	# +Z the default
9105	;;
9106      *)
9107	lt_prog_compiler_pic='+Z'
9108	;;
9109      esac
9110      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9111      lt_prog_compiler_static='$wl-a ${wl}archive'
9112      ;;
9113
9114    irix5* | irix6* | nonstopux*)
9115      lt_prog_compiler_wl='-Wl,'
9116      # PIC (with -KPIC) is the default.
9117      lt_prog_compiler_static='-non_shared'
9118      ;;
9119
9120    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9121      case $cc_basename in
9122      # old Intel for x86_64, which still supported -KPIC.
9123      ecc*)
9124	lt_prog_compiler_wl='-Wl,'
9125	lt_prog_compiler_pic='-KPIC'
9126	lt_prog_compiler_static='-static'
9127        ;;
9128      # icc used to be incompatible with GCC.
9129      # ICC 10 doesn't accept -KPIC any more.
9130      icc* | ifort*)
9131	lt_prog_compiler_wl='-Wl,'
9132	lt_prog_compiler_pic='-fPIC'
9133	lt_prog_compiler_static='-static'
9134        ;;
9135      # Lahey Fortran 8.1.
9136      lf95*)
9137	lt_prog_compiler_wl='-Wl,'
9138	lt_prog_compiler_pic='--shared'
9139	lt_prog_compiler_static='--static'
9140	;;
9141      nagfor*)
9142	# NAG Fortran compiler
9143	lt_prog_compiler_wl='-Wl,-Wl,,'
9144	lt_prog_compiler_pic='-PIC'
9145	lt_prog_compiler_static='-Bstatic'
9146	;;
9147      tcc*)
9148	# Fabrice Bellard et al's Tiny C Compiler
9149	lt_prog_compiler_wl='-Wl,'
9150	lt_prog_compiler_pic='-fPIC'
9151	lt_prog_compiler_static='-static'
9152	;;
9153      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9154        # Portland Group compilers (*not* the Pentium gcc compiler,
9155	# which looks to be a dead project)
9156	lt_prog_compiler_wl='-Wl,'
9157	lt_prog_compiler_pic='-fpic'
9158	lt_prog_compiler_static='-Bstatic'
9159        ;;
9160      ccc*)
9161        lt_prog_compiler_wl='-Wl,'
9162        # All Alpha code is PIC.
9163        lt_prog_compiler_static='-non_shared'
9164        ;;
9165      xl* | bgxl* | bgf* | mpixl*)
9166	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9167	lt_prog_compiler_wl='-Wl,'
9168	lt_prog_compiler_pic='-qpic'
9169	lt_prog_compiler_static='-qstaticlink'
9170	;;
9171      *)
9172	case `$CC -V 2>&1 | $SED 5q` in
9173	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9174	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9175	  lt_prog_compiler_pic='-KPIC'
9176	  lt_prog_compiler_static='-Bstatic'
9177	  lt_prog_compiler_wl=''
9178	  ;;
9179	*Sun\ F* | *Sun*Fortran*)
9180	  lt_prog_compiler_pic='-KPIC'
9181	  lt_prog_compiler_static='-Bstatic'
9182	  lt_prog_compiler_wl='-Qoption ld '
9183	  ;;
9184	*Sun\ C*)
9185	  # Sun C 5.9
9186	  lt_prog_compiler_pic='-KPIC'
9187	  lt_prog_compiler_static='-Bstatic'
9188	  lt_prog_compiler_wl='-Wl,'
9189	  ;;
9190        *Intel*\ [CF]*Compiler*)
9191	  lt_prog_compiler_wl='-Wl,'
9192	  lt_prog_compiler_pic='-fPIC'
9193	  lt_prog_compiler_static='-static'
9194	  ;;
9195	*Portland\ Group*)
9196	  lt_prog_compiler_wl='-Wl,'
9197	  lt_prog_compiler_pic='-fpic'
9198	  lt_prog_compiler_static='-Bstatic'
9199	  ;;
9200	esac
9201	;;
9202      esac
9203      ;;
9204
9205    newsos6)
9206      lt_prog_compiler_pic='-KPIC'
9207      lt_prog_compiler_static='-Bstatic'
9208      ;;
9209
9210    *nto* | *qnx*)
9211      # QNX uses GNU C++, but need to define -shared option too, otherwise
9212      # it will coredump.
9213      lt_prog_compiler_pic='-fPIC -shared'
9214      ;;
9215
9216    osf3* | osf4* | osf5*)
9217      lt_prog_compiler_wl='-Wl,'
9218      # All OSF/1 code is PIC.
9219      lt_prog_compiler_static='-non_shared'
9220      ;;
9221
9222    rdos*)
9223      lt_prog_compiler_static='-non_shared'
9224      ;;
9225
9226    solaris*)
9227      lt_prog_compiler_pic='-KPIC'
9228      lt_prog_compiler_static='-Bstatic'
9229      case $cc_basename in
9230      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9231	lt_prog_compiler_wl='-Qoption ld ';;
9232      *)
9233	lt_prog_compiler_wl='-Wl,';;
9234      esac
9235      ;;
9236
9237    sunos4*)
9238      lt_prog_compiler_wl='-Qoption ld '
9239      lt_prog_compiler_pic='-PIC'
9240      lt_prog_compiler_static='-Bstatic'
9241      ;;
9242
9243    sysv4 | sysv4.2uw2* | sysv4.3*)
9244      lt_prog_compiler_wl='-Wl,'
9245      lt_prog_compiler_pic='-KPIC'
9246      lt_prog_compiler_static='-Bstatic'
9247      ;;
9248
9249    sysv4*MP*)
9250      if test -d /usr/nec; then
9251	lt_prog_compiler_pic='-Kconform_pic'
9252	lt_prog_compiler_static='-Bstatic'
9253      fi
9254      ;;
9255
9256    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9257      lt_prog_compiler_wl='-Wl,'
9258      lt_prog_compiler_pic='-KPIC'
9259      lt_prog_compiler_static='-Bstatic'
9260      ;;
9261
9262    unicos*)
9263      lt_prog_compiler_wl='-Wl,'
9264      lt_prog_compiler_can_build_shared=no
9265      ;;
9266
9267    uts4*)
9268      lt_prog_compiler_pic='-pic'
9269      lt_prog_compiler_static='-Bstatic'
9270      ;;
9271
9272    *)
9273      lt_prog_compiler_can_build_shared=no
9274      ;;
9275    esac
9276  fi
9277
9278case $host_os in
9279  # For platforms that do not support PIC, -DPIC is meaningless:
9280  *djgpp*)
9281    lt_prog_compiler_pic=
9282    ;;
9283  *)
9284    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9285    ;;
9286esac
9287
9288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9289printf %s "checking for $compiler option to produce PIC... " >&6; }
9290if test ${lt_cv_prog_compiler_pic+y}
9291then :
9292  printf %s "(cached) " >&6
9293else $as_nop
9294  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9295fi
9296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9297printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9298lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9299
9300#
9301# Check to make sure the PIC flag actually works.
9302#
9303if test -n "$lt_prog_compiler_pic"; then
9304  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9305printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9306if test ${lt_cv_prog_compiler_pic_works+y}
9307then :
9308  printf %s "(cached) " >&6
9309else $as_nop
9310  lt_cv_prog_compiler_pic_works=no
9311   ac_outfile=conftest.$ac_objext
9312   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9313   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9314   # Insert the option either (1) after the last *FLAGS variable, or
9315   # (2) before a word containing "conftest.", or (3) at the end.
9316   # Note that $ac_compile itself does not contain backslashes and begins
9317   # with a dollar sign (not a hyphen), so the echo should work correctly.
9318   # The option is referenced via a variable to avoid confusing sed.
9319   lt_compile=`echo "$ac_compile" | $SED \
9320   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9321   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9322   -e 's:$: $lt_compiler_flag:'`
9323   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9324   (eval "$lt_compile" 2>conftest.err)
9325   ac_status=$?
9326   cat conftest.err >&5
9327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328   if (exit $ac_status) && test -s "$ac_outfile"; then
9329     # The compiler can only warn and ignore the option if not recognized
9330     # So say no if there are warnings other than the usual output.
9331     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9332     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9333     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9334       lt_cv_prog_compiler_pic_works=yes
9335     fi
9336   fi
9337   $RM conftest*
9338
9339fi
9340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9341printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9342
9343if test yes = "$lt_cv_prog_compiler_pic_works"; then
9344    case $lt_prog_compiler_pic in
9345     "" | " "*) ;;
9346     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9347     esac
9348else
9349    lt_prog_compiler_pic=
9350     lt_prog_compiler_can_build_shared=no
9351fi
9352
9353fi
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365#
9366# Check to make sure the static flag actually works.
9367#
9368wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9370printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9371if test ${lt_cv_prog_compiler_static_works+y}
9372then :
9373  printf %s "(cached) " >&6
9374else $as_nop
9375  lt_cv_prog_compiler_static_works=no
9376   save_LDFLAGS=$LDFLAGS
9377   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9378   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9379   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9380     # The linker can only warn and ignore the option if not recognized
9381     # So say no if there are warnings
9382     if test -s conftest.err; then
9383       # Append any errors to the config.log.
9384       cat conftest.err 1>&5
9385       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9386       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9387       if diff conftest.exp conftest.er2 >/dev/null; then
9388         lt_cv_prog_compiler_static_works=yes
9389       fi
9390     else
9391       lt_cv_prog_compiler_static_works=yes
9392     fi
9393   fi
9394   $RM -r conftest*
9395   LDFLAGS=$save_LDFLAGS
9396
9397fi
9398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9399printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9400
9401if test yes = "$lt_cv_prog_compiler_static_works"; then
9402    :
9403else
9404    lt_prog_compiler_static=
9405fi
9406
9407
9408
9409
9410
9411
9412
9413  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9414printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9415if test ${lt_cv_prog_compiler_c_o+y}
9416then :
9417  printf %s "(cached) " >&6
9418else $as_nop
9419  lt_cv_prog_compiler_c_o=no
9420   $RM -r conftest 2>/dev/null
9421   mkdir conftest
9422   cd conftest
9423   mkdir out
9424   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9425
9426   lt_compiler_flag="-o out/conftest2.$ac_objext"
9427   # Insert the option either (1) after the last *FLAGS variable, or
9428   # (2) before a word containing "conftest.", or (3) at the end.
9429   # Note that $ac_compile itself does not contain backslashes and begins
9430   # with a dollar sign (not a hyphen), so the echo should work correctly.
9431   lt_compile=`echo "$ac_compile" | $SED \
9432   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9433   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9434   -e 's:$: $lt_compiler_flag:'`
9435   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9436   (eval "$lt_compile" 2>out/conftest.err)
9437   ac_status=$?
9438   cat out/conftest.err >&5
9439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9441   then
9442     # The compiler can only warn and ignore the option if not recognized
9443     # So say no if there are warnings
9444     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9445     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9446     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9447       lt_cv_prog_compiler_c_o=yes
9448     fi
9449   fi
9450   chmod u+w . 2>&5
9451   $RM conftest*
9452   # SGI C++ compiler will create directory out/ii_files/ for
9453   # template instantiation
9454   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9455   $RM out/* && rmdir out
9456   cd ..
9457   $RM -r conftest
9458   $RM conftest*
9459
9460fi
9461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9462printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9463
9464
9465
9466
9467
9468
9469  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9470printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9471if test ${lt_cv_prog_compiler_c_o+y}
9472then :
9473  printf %s "(cached) " >&6
9474else $as_nop
9475  lt_cv_prog_compiler_c_o=no
9476   $RM -r conftest 2>/dev/null
9477   mkdir conftest
9478   cd conftest
9479   mkdir out
9480   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9481
9482   lt_compiler_flag="-o out/conftest2.$ac_objext"
9483   # Insert the option either (1) after the last *FLAGS variable, or
9484   # (2) before a word containing "conftest.", or (3) at the end.
9485   # Note that $ac_compile itself does not contain backslashes and begins
9486   # with a dollar sign (not a hyphen), so the echo should work correctly.
9487   lt_compile=`echo "$ac_compile" | $SED \
9488   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9489   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9490   -e 's:$: $lt_compiler_flag:'`
9491   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9492   (eval "$lt_compile" 2>out/conftest.err)
9493   ac_status=$?
9494   cat out/conftest.err >&5
9495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9497   then
9498     # The compiler can only warn and ignore the option if not recognized
9499     # So say no if there are warnings
9500     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9501     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9502     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9503       lt_cv_prog_compiler_c_o=yes
9504     fi
9505   fi
9506   chmod u+w . 2>&5
9507   $RM conftest*
9508   # SGI C++ compiler will create directory out/ii_files/ for
9509   # template instantiation
9510   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9511   $RM out/* && rmdir out
9512   cd ..
9513   $RM -r conftest
9514   $RM conftest*
9515
9516fi
9517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9518printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9519
9520
9521
9522
9523hard_links=nottested
9524if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9525  # do not overwrite the value of need_locks provided by the user
9526  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9527printf %s "checking if we can lock with hard links... " >&6; }
9528  hard_links=yes
9529  $RM conftest*
9530  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9531  touch conftest.a
9532  ln conftest.a conftest.b 2>&5 || hard_links=no
9533  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9534  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9535printf "%s\n" "$hard_links" >&6; }
9536  if test no = "$hard_links"; then
9537    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9538printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9539    need_locks=warn
9540  fi
9541else
9542  need_locks=no
9543fi
9544
9545
9546
9547
9548
9549
9550  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9551printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9552
9553  runpath_var=
9554  allow_undefined_flag=
9555  always_export_symbols=no
9556  archive_cmds=
9557  archive_expsym_cmds=
9558  compiler_needs_object=no
9559  enable_shared_with_static_runtimes=no
9560  export_dynamic_flag_spec=
9561  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9562  hardcode_automatic=no
9563  hardcode_direct=no
9564  hardcode_direct_absolute=no
9565  hardcode_libdir_flag_spec=
9566  hardcode_libdir_separator=
9567  hardcode_minus_L=no
9568  hardcode_shlibpath_var=unsupported
9569  inherit_rpath=no
9570  link_all_deplibs=unknown
9571  module_cmds=
9572  module_expsym_cmds=
9573  old_archive_from_new_cmds=
9574  old_archive_from_expsyms_cmds=
9575  thread_safe_flag_spec=
9576  whole_archive_flag_spec=
9577  # include_expsyms should be a list of space-separated symbols to be *always*
9578  # included in the symbol list
9579  include_expsyms=
9580  # exclude_expsyms can be an extended regexp of symbols to exclude
9581  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9582  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9583  # as well as any symbol that contains 'd'.
9584  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9585  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9586  # platforms (ab)use it in PIC code, but their linkers get confused if
9587  # the symbol is explicitly referenced.  Since portable code cannot
9588  # rely on this symbol name, it's probably fine to never include it in
9589  # preloaded symbol tables.
9590  # Exclude shared library initialization/finalization symbols.
9591  extract_expsyms_cmds=
9592
9593  case $host_os in
9594  cygwin* | mingw* | pw32* | cegcc*)
9595    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9596    # When not using gcc, we currently assume that we are using
9597    # Microsoft Visual C++ or Intel C++ Compiler.
9598    if test yes != "$GCC"; then
9599      with_gnu_ld=no
9600    fi
9601    ;;
9602  interix*)
9603    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9604    with_gnu_ld=yes
9605    ;;
9606  openbsd* | bitrig*)
9607    with_gnu_ld=no
9608    ;;
9609  esac
9610
9611  ld_shlibs=yes
9612
9613  # On some targets, GNU ld is compatible enough with the native linker
9614  # that we're better off using the native interface for both.
9615  lt_use_gnu_ld_interface=no
9616  if test yes = "$with_gnu_ld"; then
9617    case $host_os in
9618      aix*)
9619	# The AIX port of GNU ld has always aspired to compatibility
9620	# with the native linker.  However, as the warning in the GNU ld
9621	# block says, versions before 2.19.5* couldn't really create working
9622	# shared libraries, regardless of the interface used.
9623	case `$LD -v 2>&1` in
9624	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9625	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9626	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9627	  *)
9628	    lt_use_gnu_ld_interface=yes
9629	    ;;
9630	esac
9631	;;
9632      *)
9633	lt_use_gnu_ld_interface=yes
9634	;;
9635    esac
9636  fi
9637
9638  if test yes = "$lt_use_gnu_ld_interface"; then
9639    # If archive_cmds runs LD, not CC, wlarc should be empty
9640    wlarc='$wl'
9641
9642    # Set some defaults for GNU ld with shared library support. These
9643    # are reset later if shared libraries are not supported. Putting them
9644    # here allows them to be overridden if necessary.
9645    runpath_var=LD_RUN_PATH
9646    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9647    export_dynamic_flag_spec='$wl--export-dynamic'
9648    # ancient GNU ld didn't support --whole-archive et. al.
9649    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9650      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9651    else
9652      whole_archive_flag_spec=
9653    fi
9654    supports_anon_versioning=no
9655    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9656      *GNU\ gold*) supports_anon_versioning=yes ;;
9657      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9658      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9659      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9660      *\ 2.11.*) ;; # other 2.11 versions
9661      *) supports_anon_versioning=yes ;;
9662    esac
9663
9664    # See if GNU ld supports shared libraries.
9665    case $host_os in
9666    aix[3-9]*)
9667      # On AIX/PPC, the GNU linker is very broken
9668      if test ia64 != "$host_cpu"; then
9669	ld_shlibs=no
9670	cat <<_LT_EOF 1>&2
9671
9672*** Warning: the GNU linker, at least up to release 2.19, is reported
9673*** to be unable to reliably create shared libraries on AIX.
9674*** Therefore, libtool is disabling shared libraries support.  If you
9675*** really care for shared libraries, you may want to install binutils
9676*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9677*** You will then need to restart the configuration process.
9678
9679_LT_EOF
9680      fi
9681      ;;
9682
9683    amigaos*)
9684      case $host_cpu in
9685      powerpc)
9686            # see comment about AmigaOS4 .so support
9687            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9688            archive_expsym_cmds=''
9689        ;;
9690      m68k)
9691            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)'
9692            hardcode_libdir_flag_spec='-L$libdir'
9693            hardcode_minus_L=yes
9694        ;;
9695      esac
9696      ;;
9697
9698    beos*)
9699      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9700	allow_undefined_flag=unsupported
9701	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9702	# support --undefined.  This deserves some investigation.  FIXME
9703	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9704      else
9705	ld_shlibs=no
9706      fi
9707      ;;
9708
9709    cygwin* | mingw* | pw32* | cegcc*)
9710      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9711      # as there is no search path for DLLs.
9712      hardcode_libdir_flag_spec='-L$libdir'
9713      export_dynamic_flag_spec='$wl--export-all-symbols'
9714      allow_undefined_flag=unsupported
9715      always_export_symbols=no
9716      enable_shared_with_static_runtimes=yes
9717      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'
9718      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9719
9720      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9721        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9722	# If the export-symbols file already is a .def file, use it as
9723	# is; otherwise, prepend EXPORTS...
9724	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9725          cp $export_symbols $output_objdir/$soname.def;
9726        else
9727          echo EXPORTS > $output_objdir/$soname.def;
9728          cat $export_symbols >> $output_objdir/$soname.def;
9729        fi~
9730        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9731      else
9732	ld_shlibs=no
9733      fi
9734      ;;
9735
9736    haiku*)
9737      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9738      link_all_deplibs=yes
9739      ;;
9740
9741    os2*)
9742      hardcode_libdir_flag_spec='-L$libdir'
9743      hardcode_minus_L=yes
9744      allow_undefined_flag=unsupported
9745      shrext_cmds=.dll
9746      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9747	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9748	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9749	$ECHO EXPORTS >> $output_objdir/$libname.def~
9750	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9751	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9752	emximp -o $lib $output_objdir/$libname.def'
9753      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9754	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9755	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9756	$ECHO EXPORTS >> $output_objdir/$libname.def~
9757	prefix_cmds="$SED"~
9758	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9759	  prefix_cmds="$prefix_cmds -e 1d";
9760	fi~
9761	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9762	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9763	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9764	emximp -o $lib $output_objdir/$libname.def'
9765      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9766      enable_shared_with_static_runtimes=yes
9767      file_list_spec='@'
9768      ;;
9769
9770    interix[3-9]*)
9771      hardcode_direct=no
9772      hardcode_shlibpath_var=no
9773      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9774      export_dynamic_flag_spec='$wl-E'
9775      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9776      # Instead, shared libraries are loaded at an image base (0x10000000 by
9777      # default) and relocated if they conflict, which is a slow very memory
9778      # consuming and fragmenting process.  To avoid this, we pick a random,
9779      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9780      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9781      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9782      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'
9783      ;;
9784
9785    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9786      tmp_diet=no
9787      if test linux-dietlibc = "$host_os"; then
9788	case $cc_basename in
9789	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9790	esac
9791      fi
9792      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9793	 && test no = "$tmp_diet"
9794      then
9795	tmp_addflag=' $pic_flag'
9796	tmp_sharedflag='-shared'
9797	case $cc_basename,$host_cpu in
9798        pgcc*)				# Portland Group C compiler
9799	  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'
9800	  tmp_addflag=' $pic_flag'
9801	  ;;
9802	pgf77* | pgf90* | pgf95* | pgfortran*)
9803					# Portland Group f77 and f90 compilers
9804	  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'
9805	  tmp_addflag=' $pic_flag -Mnomain' ;;
9806	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9807	  tmp_addflag=' -i_dynamic' ;;
9808	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9809	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9810	ifc* | ifort*)			# Intel Fortran compiler
9811	  tmp_addflag=' -nofor_main' ;;
9812	lf95*)				# Lahey Fortran 8.1
9813	  whole_archive_flag_spec=
9814	  tmp_sharedflag='--shared' ;;
9815        nagfor*)                        # NAGFOR 5.3
9816          tmp_sharedflag='-Wl,-shared' ;;
9817	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9818	  tmp_sharedflag='-qmkshrobj'
9819	  tmp_addflag= ;;
9820	nvcc*)	# Cuda Compiler Driver 2.2
9821	  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'
9822	  compiler_needs_object=yes
9823	  ;;
9824	esac
9825	case `$CC -V 2>&1 | $SED 5q` in
9826	*Sun\ C*)			# Sun C 5.9
9827	  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'
9828	  compiler_needs_object=yes
9829	  tmp_sharedflag='-G' ;;
9830	*Sun\ F*)			# Sun Fortran 8.3
9831	  tmp_sharedflag='-G' ;;
9832	esac
9833	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9834
9835        if test yes = "$supports_anon_versioning"; then
9836          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9837            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9838            echo "local: *; };" >> $output_objdir/$libname.ver~
9839            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9840        fi
9841
9842	case $cc_basename in
9843	tcc*)
9844	  export_dynamic_flag_spec='-rdynamic'
9845	  ;;
9846	xlf* | bgf* | bgxlf* | mpixlf*)
9847	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9848	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9849	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9850	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9851	  if test yes = "$supports_anon_versioning"; then
9852	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9853              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9854              echo "local: *; };" >> $output_objdir/$libname.ver~
9855              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9856	  fi
9857	  ;;
9858	esac
9859      else
9860        ld_shlibs=no
9861      fi
9862      ;;
9863
9864    netbsd*)
9865      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9866	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9867	wlarc=
9868      else
9869	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9870	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9871      fi
9872      ;;
9873
9874    solaris*)
9875      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9876	ld_shlibs=no
9877	cat <<_LT_EOF 1>&2
9878
9879*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9880*** create shared libraries on Solaris systems.  Therefore, libtool
9881*** is disabling shared libraries support.  We urge you to upgrade GNU
9882*** binutils to release 2.9.1 or newer.  Another option is to modify
9883*** your PATH or compiler configuration so that the native linker is
9884*** used, and then restart.
9885
9886_LT_EOF
9887      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9888	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9889	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9890      else
9891	ld_shlibs=no
9892      fi
9893      ;;
9894
9895    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9896      case `$LD -v 2>&1` in
9897        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9898	ld_shlibs=no
9899	cat <<_LT_EOF 1>&2
9900
9901*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9902*** reliably create shared libraries on SCO systems.  Therefore, libtool
9903*** is disabling shared libraries support.  We urge you to upgrade GNU
9904*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9905*** your PATH or compiler configuration so that the native linker is
9906*** used, and then restart.
9907
9908_LT_EOF
9909	;;
9910	*)
9911	  # For security reasons, it is highly recommended that you always
9912	  # use absolute paths for naming shared libraries, and exclude the
9913	  # DT_RUNPATH tag from executables and libraries.  But doing so
9914	  # requires that you compile everything twice, which is a pain.
9915	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9916	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9917	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9918	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9919	  else
9920	    ld_shlibs=no
9921	  fi
9922	;;
9923      esac
9924      ;;
9925
9926    sunos4*)
9927      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9928      wlarc=
9929      hardcode_direct=yes
9930      hardcode_shlibpath_var=no
9931      ;;
9932
9933    *)
9934      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9935	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9936	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9937      else
9938	ld_shlibs=no
9939      fi
9940      ;;
9941    esac
9942
9943    if test no = "$ld_shlibs"; then
9944      runpath_var=
9945      hardcode_libdir_flag_spec=
9946      export_dynamic_flag_spec=
9947      whole_archive_flag_spec=
9948    fi
9949  else
9950    # PORTME fill in a description of your system's linker (not GNU ld)
9951    case $host_os in
9952    aix3*)
9953      allow_undefined_flag=unsupported
9954      always_export_symbols=yes
9955      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'
9956      # Note: this linker hardcodes the directories in LIBPATH if there
9957      # are no directories specified by -L.
9958      hardcode_minus_L=yes
9959      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9960	# Neither direct hardcoding nor static linking is supported with a
9961	# broken collect2.
9962	hardcode_direct=unsupported
9963      fi
9964      ;;
9965
9966    aix[4-9]*)
9967      if test ia64 = "$host_cpu"; then
9968	# On IA64, the linker does run time linking by default, so we don't
9969	# have to do anything special.
9970	aix_use_runtimelinking=no
9971	exp_sym_flag='-Bexport'
9972	no_entry_flag=
9973      else
9974	# If we're using GNU nm, then we don't want the "-C" option.
9975	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9976	# Without the "-l" option, or with the "-B" option, AIX nm treats
9977	# weak defined symbols like other global defined symbols, whereas
9978	# GNU nm marks them as "W".
9979	# While the 'weak' keyword is ignored in the Export File, we need
9980	# it in the Import File for the 'aix-soname' feature, so we have
9981	# to replace the "-B" option with "-P" for AIX nm.
9982	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9983	  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'
9984	else
9985	  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'
9986	fi
9987	aix_use_runtimelinking=no
9988
9989	# Test if we are trying to use run time linking or normal
9990	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9991	# have runtime linking enabled, and use it for executables.
9992	# For shared libraries, we enable/disable runtime linking
9993	# depending on the kind of the shared library created -
9994	# when "with_aix_soname,aix_use_runtimelinking" is:
9995	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9996	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9997	#            lib.a           static archive
9998	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9999	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10000	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10001	#            lib.a(lib.so.V) shared, rtl:no
10002	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10003	#            lib.a           static archive
10004	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10005	  for ld_flag in $LDFLAGS; do
10006	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10007	    aix_use_runtimelinking=yes
10008	    break
10009	  fi
10010	  done
10011	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10012	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10013	    # so we don't have lib.a shared libs to link our executables.
10014	    # We have to force runtime linking in this case.
10015	    aix_use_runtimelinking=yes
10016	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10017	  fi
10018	  ;;
10019	esac
10020
10021	exp_sym_flag='-bexport'
10022	no_entry_flag='-bnoentry'
10023      fi
10024
10025      # When large executables or shared objects are built, AIX ld can
10026      # have problems creating the table of contents.  If linking a library
10027      # or program results in "error TOC overflow" add -mminimal-toc to
10028      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10029      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10030
10031      archive_cmds=''
10032      hardcode_direct=yes
10033      hardcode_direct_absolute=yes
10034      hardcode_libdir_separator=':'
10035      link_all_deplibs=yes
10036      file_list_spec='$wl-f,'
10037      case $with_aix_soname,$aix_use_runtimelinking in
10038      aix,*) ;; # traditional, no import file
10039      svr4,* | *,yes) # use import file
10040	# The Import File defines what to hardcode.
10041	hardcode_direct=no
10042	hardcode_direct_absolute=no
10043	;;
10044      esac
10045
10046      if test yes = "$GCC"; then
10047	case $host_os in aix4.[012]|aix4.[012].*)
10048	# We only want to do this on AIX 4.2 and lower, the check
10049	# below for broken collect2 doesn't work under 4.3+
10050	  collect2name=`$CC -print-prog-name=collect2`
10051	  if test -f "$collect2name" &&
10052	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10053	  then
10054	  # We have reworked collect2
10055	  :
10056	  else
10057	  # We have old collect2
10058	  hardcode_direct=unsupported
10059	  # It fails to find uninstalled libraries when the uninstalled
10060	  # path is not listed in the libpath.  Setting hardcode_minus_L
10061	  # to unsupported forces relinking
10062	  hardcode_minus_L=yes
10063	  hardcode_libdir_flag_spec='-L$libdir'
10064	  hardcode_libdir_separator=
10065	  fi
10066	  ;;
10067	esac
10068	shared_flag='-shared'
10069	if test yes = "$aix_use_runtimelinking"; then
10070	  shared_flag="$shared_flag "'$wl-G'
10071	fi
10072	# Need to ensure runtime linking is disabled for the traditional
10073	# shared library, or the linker may eventually find shared libraries
10074	# /with/ Import File - we do not want to mix them.
10075	shared_flag_aix='-shared'
10076	shared_flag_svr4='-shared $wl-G'
10077      else
10078	# not using gcc
10079	if test ia64 = "$host_cpu"; then
10080	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10081	# chokes on -Wl,-G. The following line is correct:
10082	  shared_flag='-G'
10083	else
10084	  if test yes = "$aix_use_runtimelinking"; then
10085	    shared_flag='$wl-G'
10086	  else
10087	    shared_flag='$wl-bM:SRE'
10088	  fi
10089	  shared_flag_aix='$wl-bM:SRE'
10090	  shared_flag_svr4='$wl-G'
10091	fi
10092      fi
10093
10094      export_dynamic_flag_spec='$wl-bexpall'
10095      # It seems that -bexpall does not export symbols beginning with
10096      # underscore (_), so it is better to generate a list of symbols to export.
10097      always_export_symbols=yes
10098      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10099	# Warning - without using the other runtime loading flags (-brtl),
10100	# -berok will link without error, but may produce a broken library.
10101	allow_undefined_flag='-berok'
10102        # Determine the default libpath from the value encoded in an
10103        # empty executable.
10104        if test set = "${lt_cv_aix_libpath+set}"; then
10105  aix_libpath=$lt_cv_aix_libpath
10106else
10107  if test ${lt_cv_aix_libpath_+y}
10108then :
10109  printf %s "(cached) " >&6
10110else $as_nop
10111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10112/* end confdefs.h.  */
10113
10114int
10115main (void)
10116{
10117
10118  ;
10119  return 0;
10120}
10121_ACEOF
10122if ac_fn_c_try_link "$LINENO"
10123then :
10124
10125  lt_aix_libpath_sed='
10126      /Import File Strings/,/^$/ {
10127	  /^0/ {
10128	      s/^0  *\([^ ]*\) *$/\1/
10129	      p
10130	  }
10131      }'
10132  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10133  # Check for a 64-bit object if we didn't find anything.
10134  if test -z "$lt_cv_aix_libpath_"; then
10135    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10136  fi
10137fi
10138rm -f core conftest.err conftest.$ac_objext conftest.beam \
10139    conftest$ac_exeext conftest.$ac_ext
10140  if test -z "$lt_cv_aix_libpath_"; then
10141    lt_cv_aix_libpath_=/usr/lib:/lib
10142  fi
10143
10144fi
10145
10146  aix_libpath=$lt_cv_aix_libpath_
10147fi
10148
10149        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10150        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
10151      else
10152	if test ia64 = "$host_cpu"; then
10153	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10154	  allow_undefined_flag="-z nodefs"
10155	  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"
10156	else
10157	 # Determine the default libpath from the value encoded in an
10158	 # empty executable.
10159	 if test set = "${lt_cv_aix_libpath+set}"; then
10160  aix_libpath=$lt_cv_aix_libpath
10161else
10162  if test ${lt_cv_aix_libpath_+y}
10163then :
10164  printf %s "(cached) " >&6
10165else $as_nop
10166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10167/* end confdefs.h.  */
10168
10169int
10170main (void)
10171{
10172
10173  ;
10174  return 0;
10175}
10176_ACEOF
10177if ac_fn_c_try_link "$LINENO"
10178then :
10179
10180  lt_aix_libpath_sed='
10181      /Import File Strings/,/^$/ {
10182	  /^0/ {
10183	      s/^0  *\([^ ]*\) *$/\1/
10184	      p
10185	  }
10186      }'
10187  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10188  # Check for a 64-bit object if we didn't find anything.
10189  if test -z "$lt_cv_aix_libpath_"; then
10190    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10191  fi
10192fi
10193rm -f core conftest.err conftest.$ac_objext conftest.beam \
10194    conftest$ac_exeext conftest.$ac_ext
10195  if test -z "$lt_cv_aix_libpath_"; then
10196    lt_cv_aix_libpath_=/usr/lib:/lib
10197  fi
10198
10199fi
10200
10201  aix_libpath=$lt_cv_aix_libpath_
10202fi
10203
10204	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10205	  # Warning - without using the other run time loading flags,
10206	  # -berok will link without error, but may produce a broken library.
10207	  no_undefined_flag=' $wl-bernotok'
10208	  allow_undefined_flag=' $wl-berok'
10209	  if test yes = "$with_gnu_ld"; then
10210	    # We only use this code for GNU lds that support --whole-archive.
10211	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10212	  else
10213	    # Exported symbols can be pulled into shared objects from archives
10214	    whole_archive_flag_spec='$convenience'
10215	  fi
10216	  archive_cmds_need_lc=yes
10217	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10218	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10219	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10220	  if test svr4 != "$with_aix_soname"; then
10221	    # This is similar to how AIX traditionally builds its shared libraries.
10222	    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'
10223	  fi
10224	  if test aix != "$with_aix_soname"; then
10225	    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'
10226	  else
10227	    # used by -dlpreopen to get the symbols
10228	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10229	  fi
10230	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10231	fi
10232      fi
10233      ;;
10234
10235    amigaos*)
10236      case $host_cpu in
10237      powerpc)
10238            # see comment about AmigaOS4 .so support
10239            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10240            archive_expsym_cmds=''
10241        ;;
10242      m68k)
10243            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)'
10244            hardcode_libdir_flag_spec='-L$libdir'
10245            hardcode_minus_L=yes
10246        ;;
10247      esac
10248      ;;
10249
10250    bsdi[45]*)
10251      export_dynamic_flag_spec=-rdynamic
10252      ;;
10253
10254    cygwin* | mingw* | pw32* | cegcc*)
10255      # When not using gcc, we currently assume that we are using
10256      # Microsoft Visual C++ or Intel C++ Compiler.
10257      # hardcode_libdir_flag_spec is actually meaningless, as there is
10258      # no search path for DLLs.
10259      case $cc_basename in
10260      cl* | icl*)
10261	# Native MSVC or ICC
10262	hardcode_libdir_flag_spec=' '
10263	allow_undefined_flag=unsupported
10264	always_export_symbols=yes
10265	file_list_spec='@'
10266	# Tell ltmain to make .lib files, not .a files.
10267	libext=lib
10268	# Tell ltmain to make .dll files, not .so files.
10269	shrext_cmds=.dll
10270	# FIXME: Setting linknames here is a bad hack.
10271	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10272	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10273            cp "$export_symbols" "$output_objdir/$soname.def";
10274            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10275          else
10276            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10277          fi~
10278          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10279          linknames='
10280	# The linker will not automatically build a static lib if we build a DLL.
10281	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10282	enable_shared_with_static_runtimes=yes
10283	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10284	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10285	# Don't use ranlib
10286	old_postinstall_cmds='chmod 644 $oldlib'
10287	postlink_cmds='lt_outputfile="@OUTPUT@"~
10288          lt_tool_outputfile="@TOOL_OUTPUT@"~
10289          case $lt_outputfile in
10290            *.exe|*.EXE) ;;
10291            *)
10292              lt_outputfile=$lt_outputfile.exe
10293              lt_tool_outputfile=$lt_tool_outputfile.exe
10294              ;;
10295          esac~
10296          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10297            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10298            $RM "$lt_outputfile.manifest";
10299          fi'
10300	;;
10301      *)
10302	# Assume MSVC and ICC wrapper
10303	hardcode_libdir_flag_spec=' '
10304	allow_undefined_flag=unsupported
10305	# Tell ltmain to make .lib files, not .a files.
10306	libext=lib
10307	# Tell ltmain to make .dll files, not .so files.
10308	shrext_cmds=.dll
10309	# FIXME: Setting linknames here is a bad hack.
10310	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10311	# The linker will automatically build a .lib file if we build a DLL.
10312	old_archive_from_new_cmds='true'
10313	# FIXME: Should let the user specify the lib program.
10314	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10315	enable_shared_with_static_runtimes=yes
10316	;;
10317      esac
10318      ;;
10319
10320    darwin* | rhapsody*)
10321
10322
10323  archive_cmds_need_lc=no
10324  hardcode_direct=no
10325  hardcode_automatic=yes
10326  hardcode_shlibpath_var=unsupported
10327  if test yes = "$lt_cv_ld_force_load"; then
10328    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\"`'
10329
10330  else
10331    whole_archive_flag_spec=''
10332  fi
10333  link_all_deplibs=yes
10334  allow_undefined_flag=$_lt_dar_allow_undefined
10335  case $cc_basename in
10336     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10337     *) _lt_dar_can_shared=$GCC ;;
10338  esac
10339  if test yes = "$_lt_dar_can_shared"; then
10340    output_verbose_link_cmd=func_echo_all
10341    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10342    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10343    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"
10344    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"
10345
10346  else
10347  ld_shlibs=no
10348  fi
10349
10350      ;;
10351
10352    dgux*)
10353      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10354      hardcode_libdir_flag_spec='-L$libdir'
10355      hardcode_shlibpath_var=no
10356      ;;
10357
10358    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10359    # support.  Future versions do this automatically, but an explicit c++rt0.o
10360    # does not break anything, and helps significantly (at the cost of a little
10361    # extra space).
10362    freebsd2.2*)
10363      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10364      hardcode_libdir_flag_spec='-R$libdir'
10365      hardcode_direct=yes
10366      hardcode_shlibpath_var=no
10367      ;;
10368
10369    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10370    freebsd2.*)
10371      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10372      hardcode_direct=yes
10373      hardcode_minus_L=yes
10374      hardcode_shlibpath_var=no
10375      ;;
10376
10377    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10378    freebsd* | dragonfly* | midnightbsd*)
10379      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10380      hardcode_libdir_flag_spec='-R$libdir'
10381      hardcode_direct=yes
10382      hardcode_shlibpath_var=no
10383      ;;
10384
10385    hpux9*)
10386      if test yes = "$GCC"; then
10387	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'
10388      else
10389	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'
10390      fi
10391      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10392      hardcode_libdir_separator=:
10393      hardcode_direct=yes
10394
10395      # hardcode_minus_L: Not really in the search PATH,
10396      # but as the default location of the library.
10397      hardcode_minus_L=yes
10398      export_dynamic_flag_spec='$wl-E'
10399      ;;
10400
10401    hpux10*)
10402      if test yes,no = "$GCC,$with_gnu_ld"; then
10403	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10404      else
10405	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10406      fi
10407      if test no = "$with_gnu_ld"; then
10408	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10409	hardcode_libdir_separator=:
10410	hardcode_direct=yes
10411	hardcode_direct_absolute=yes
10412	export_dynamic_flag_spec='$wl-E'
10413	# hardcode_minus_L: Not really in the search PATH,
10414	# but as the default location of the library.
10415	hardcode_minus_L=yes
10416      fi
10417      ;;
10418
10419    hpux11*)
10420      if test yes,no = "$GCC,$with_gnu_ld"; then
10421	case $host_cpu in
10422	hppa*64*)
10423	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10424	  ;;
10425	ia64*)
10426	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10427	  ;;
10428	*)
10429	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10430	  ;;
10431	esac
10432      else
10433	case $host_cpu in
10434	hppa*64*)
10435	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10436	  ;;
10437	ia64*)
10438	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10439	  ;;
10440	*)
10441
10442	  # Older versions of the 11.00 compiler do not understand -b yet
10443	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10444	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10445printf %s "checking if $CC understands -b... " >&6; }
10446if test ${lt_cv_prog_compiler__b+y}
10447then :
10448  printf %s "(cached) " >&6
10449else $as_nop
10450  lt_cv_prog_compiler__b=no
10451   save_LDFLAGS=$LDFLAGS
10452   LDFLAGS="$LDFLAGS -b"
10453   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10454   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10455     # The linker can only warn and ignore the option if not recognized
10456     # So say no if there are warnings
10457     if test -s conftest.err; then
10458       # Append any errors to the config.log.
10459       cat conftest.err 1>&5
10460       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10461       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10462       if diff conftest.exp conftest.er2 >/dev/null; then
10463         lt_cv_prog_compiler__b=yes
10464       fi
10465     else
10466       lt_cv_prog_compiler__b=yes
10467     fi
10468   fi
10469   $RM -r conftest*
10470   LDFLAGS=$save_LDFLAGS
10471
10472fi
10473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10474printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10475
10476if test yes = "$lt_cv_prog_compiler__b"; then
10477    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10478else
10479    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10480fi
10481
10482	  ;;
10483	esac
10484      fi
10485      if test no = "$with_gnu_ld"; then
10486	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10487	hardcode_libdir_separator=:
10488
10489	case $host_cpu in
10490	hppa*64*|ia64*)
10491	  hardcode_direct=no
10492	  hardcode_shlibpath_var=no
10493	  ;;
10494	*)
10495	  hardcode_direct=yes
10496	  hardcode_direct_absolute=yes
10497	  export_dynamic_flag_spec='$wl-E'
10498
10499	  # hardcode_minus_L: Not really in the search PATH,
10500	  # but as the default location of the library.
10501	  hardcode_minus_L=yes
10502	  ;;
10503	esac
10504      fi
10505      ;;
10506
10507    irix5* | irix6* | nonstopux*)
10508      if test yes = "$GCC"; then
10509	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'
10510	# Try to use the -exported_symbol ld option, if it does not
10511	# work, assume that -exports_file does not work either and
10512	# implicitly export all symbols.
10513	# This should be the same for all languages, so no per-tag cache variable.
10514	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10515printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10516if test ${lt_cv_irix_exported_symbol+y}
10517then :
10518  printf %s "(cached) " >&6
10519else $as_nop
10520  save_LDFLAGS=$LDFLAGS
10521	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10522	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10523/* end confdefs.h.  */
10524int foo (void) { return 0; }
10525_ACEOF
10526if ac_fn_c_try_link "$LINENO"
10527then :
10528  lt_cv_irix_exported_symbol=yes
10529else $as_nop
10530  lt_cv_irix_exported_symbol=no
10531fi
10532rm -f core conftest.err conftest.$ac_objext conftest.beam \
10533    conftest$ac_exeext conftest.$ac_ext
10534           LDFLAGS=$save_LDFLAGS
10535fi
10536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10537printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10538	if test yes = "$lt_cv_irix_exported_symbol"; then
10539          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'
10540	fi
10541      else
10542	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'
10543	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'
10544      fi
10545      archive_cmds_need_lc='no'
10546      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10547      hardcode_libdir_separator=:
10548      inherit_rpath=yes
10549      link_all_deplibs=yes
10550      ;;
10551
10552    linux*)
10553      case $cc_basename in
10554      tcc*)
10555	# Fabrice Bellard et al's Tiny C Compiler
10556	ld_shlibs=yes
10557	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10558	;;
10559      esac
10560      ;;
10561
10562    netbsd*)
10563      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10564	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10565      else
10566	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10567      fi
10568      hardcode_libdir_flag_spec='-R$libdir'
10569      hardcode_direct=yes
10570      hardcode_shlibpath_var=no
10571      ;;
10572
10573    newsos6)
10574      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10575      hardcode_direct=yes
10576      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10577      hardcode_libdir_separator=:
10578      hardcode_shlibpath_var=no
10579      ;;
10580
10581    *nto* | *qnx*)
10582      ;;
10583
10584    openbsd* | bitrig*)
10585      if test -f /usr/libexec/ld.so; then
10586	hardcode_direct=yes
10587	hardcode_shlibpath_var=no
10588	hardcode_direct_absolute=yes
10589	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10590	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10591	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10592	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10593	  export_dynamic_flag_spec='$wl-E'
10594	else
10595	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10596	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10597	fi
10598      else
10599	ld_shlibs=no
10600      fi
10601      ;;
10602
10603    os2*)
10604      hardcode_libdir_flag_spec='-L$libdir'
10605      hardcode_minus_L=yes
10606      allow_undefined_flag=unsupported
10607      shrext_cmds=.dll
10608      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10609	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10610	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10611	$ECHO EXPORTS >> $output_objdir/$libname.def~
10612	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10613	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10614	emximp -o $lib $output_objdir/$libname.def'
10615      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10616	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10617	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10618	$ECHO EXPORTS >> $output_objdir/$libname.def~
10619	prefix_cmds="$SED"~
10620	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10621	  prefix_cmds="$prefix_cmds -e 1d";
10622	fi~
10623	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10624	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10625	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10626	emximp -o $lib $output_objdir/$libname.def'
10627      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10628      enable_shared_with_static_runtimes=yes
10629      file_list_spec='@'
10630      ;;
10631
10632    osf3*)
10633      if test yes = "$GCC"; then
10634	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10635	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'
10636      else
10637	allow_undefined_flag=' -expect_unresolved \*'
10638	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'
10639      fi
10640      archive_cmds_need_lc='no'
10641      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10642      hardcode_libdir_separator=:
10643      ;;
10644
10645    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10646      if test yes = "$GCC"; then
10647	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10648	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'
10649	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10650      else
10651	allow_undefined_flag=' -expect_unresolved \*'
10652	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'
10653	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~
10654          $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'
10655
10656	# Both c and cxx compiler support -rpath directly
10657	hardcode_libdir_flag_spec='-rpath $libdir'
10658      fi
10659      archive_cmds_need_lc='no'
10660      hardcode_libdir_separator=:
10661      ;;
10662
10663    solaris*)
10664      no_undefined_flag=' -z defs'
10665      if test yes = "$GCC"; then
10666	wlarc='$wl'
10667	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10668	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10669          $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'
10670      else
10671	case `$CC -V 2>&1` in
10672	*"Compilers 5.0"*)
10673	  wlarc=''
10674	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10675	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10676            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10677	  ;;
10678	*)
10679	  wlarc='$wl'
10680	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10681	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10682            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10683	  ;;
10684	esac
10685      fi
10686      hardcode_libdir_flag_spec='-R$libdir'
10687      hardcode_shlibpath_var=no
10688      case $host_os in
10689      solaris2.[0-5] | solaris2.[0-5].*) ;;
10690      *)
10691	# The compiler driver will combine and reorder linker options,
10692	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10693	# but is careful enough not to reorder.
10694	# Supported since Solaris 2.6 (maybe 2.5.1?)
10695	if test yes = "$GCC"; then
10696	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10697	else
10698	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10699	fi
10700	;;
10701      esac
10702      link_all_deplibs=yes
10703      ;;
10704
10705    sunos4*)
10706      if test sequent = "$host_vendor"; then
10707	# Use $CC to link under sequent, because it throws in some extra .o
10708	# files that make .init and .fini sections work.
10709	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10710      else
10711	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10712      fi
10713      hardcode_libdir_flag_spec='-L$libdir'
10714      hardcode_direct=yes
10715      hardcode_minus_L=yes
10716      hardcode_shlibpath_var=no
10717      ;;
10718
10719    sysv4)
10720      case $host_vendor in
10721	sni)
10722	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10723	  hardcode_direct=yes # is this really true???
10724	;;
10725	siemens)
10726	  ## LD is ld it makes a PLAMLIB
10727	  ## CC just makes a GrossModule.
10728	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10729	  reload_cmds='$CC -r -o $output$reload_objs'
10730	  hardcode_direct=no
10731        ;;
10732	motorola)
10733	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10734	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10735	;;
10736      esac
10737      runpath_var='LD_RUN_PATH'
10738      hardcode_shlibpath_var=no
10739      ;;
10740
10741    sysv4.3*)
10742      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10743      hardcode_shlibpath_var=no
10744      export_dynamic_flag_spec='-Bexport'
10745      ;;
10746
10747    sysv4*MP*)
10748      if test -d /usr/nec; then
10749	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10750	hardcode_shlibpath_var=no
10751	runpath_var=LD_RUN_PATH
10752	hardcode_runpath_var=yes
10753	ld_shlibs=yes
10754      fi
10755      ;;
10756
10757    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10758      no_undefined_flag='$wl-z,text'
10759      archive_cmds_need_lc=no
10760      hardcode_shlibpath_var=no
10761      runpath_var='LD_RUN_PATH'
10762
10763      if test yes = "$GCC"; then
10764	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10765	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10766      else
10767	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10768	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10769      fi
10770      ;;
10771
10772    sysv5* | sco3.2v5* | sco5v6*)
10773      # Note: We CANNOT use -z defs as we might desire, because we do not
10774      # link with -lc, and that would cause any symbols used from libc to
10775      # always be unresolved, which means just about no library would
10776      # ever link correctly.  If we're not using GNU ld we use -z text
10777      # though, which does catch some bad symbols but isn't as heavy-handed
10778      # as -z defs.
10779      no_undefined_flag='$wl-z,text'
10780      allow_undefined_flag='$wl-z,nodefs'
10781      archive_cmds_need_lc=no
10782      hardcode_shlibpath_var=no
10783      hardcode_libdir_flag_spec='$wl-R,$libdir'
10784      hardcode_libdir_separator=':'
10785      link_all_deplibs=yes
10786      export_dynamic_flag_spec='$wl-Bexport'
10787      runpath_var='LD_RUN_PATH'
10788
10789      if test yes = "$GCC"; then
10790	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10791	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10792      else
10793	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10794	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10795      fi
10796      ;;
10797
10798    uts4*)
10799      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10800      hardcode_libdir_flag_spec='-L$libdir'
10801      hardcode_shlibpath_var=no
10802      ;;
10803
10804    *)
10805      ld_shlibs=no
10806      ;;
10807    esac
10808
10809    if test sni = "$host_vendor"; then
10810      case $host in
10811      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10812	export_dynamic_flag_spec='$wl-Blargedynsym'
10813	;;
10814      esac
10815    fi
10816  fi
10817
10818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10819printf "%s\n" "$ld_shlibs" >&6; }
10820test no = "$ld_shlibs" && can_build_shared=no
10821
10822with_gnu_ld=$with_gnu_ld
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838#
10839# Do we need to explicitly link libc?
10840#
10841case "x$archive_cmds_need_lc" in
10842x|xyes)
10843  # Assume -lc should be added
10844  archive_cmds_need_lc=yes
10845
10846  if test yes,yes = "$GCC,$enable_shared"; then
10847    case $archive_cmds in
10848    *'~'*)
10849      # FIXME: we may have to deal with multi-command sequences.
10850      ;;
10851    '$CC '*)
10852      # Test whether the compiler implicitly links with -lc since on some
10853      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10854      # to ld, don't add -lc before -lgcc.
10855      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10856printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10857if test ${lt_cv_archive_cmds_need_lc+y}
10858then :
10859  printf %s "(cached) " >&6
10860else $as_nop
10861  $RM conftest*
10862	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10863
10864	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10865  (eval $ac_compile) 2>&5
10866  ac_status=$?
10867  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10868  test $ac_status = 0; } 2>conftest.err; then
10869	  soname=conftest
10870	  lib=conftest
10871	  libobjs=conftest.$ac_objext
10872	  deplibs=
10873	  wl=$lt_prog_compiler_wl
10874	  pic_flag=$lt_prog_compiler_pic
10875	  compiler_flags=-v
10876	  linker_flags=-v
10877	  verstring=
10878	  output_objdir=.
10879	  libname=conftest
10880	  lt_save_allow_undefined_flag=$allow_undefined_flag
10881	  allow_undefined_flag=
10882	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10883  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10884  ac_status=$?
10885  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10886  test $ac_status = 0; }
10887	  then
10888	    lt_cv_archive_cmds_need_lc=no
10889	  else
10890	    lt_cv_archive_cmds_need_lc=yes
10891	  fi
10892	  allow_undefined_flag=$lt_save_allow_undefined_flag
10893	else
10894	  cat conftest.err 1>&5
10895	fi
10896	$RM conftest*
10897
10898fi
10899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10900printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10901      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10902      ;;
10903    esac
10904  fi
10905  ;;
10906esac
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
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11060printf %s "checking dynamic linker characteristics... " >&6; }
11061
11062if test yes = "$GCC"; then
11063  case $host_os in
11064    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11065    *) lt_awk_arg='/^libraries:/' ;;
11066  esac
11067  case $host_os in
11068    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11069    *) lt_sed_strip_eq='s|=/|/|g' ;;
11070  esac
11071  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11072  case $lt_search_path_spec in
11073  *\;*)
11074    # if the path contains ";" then we assume it to be the separator
11075    # otherwise default to the standard path separator (i.e. ":") - it is
11076    # assumed that no part of a normal pathname contains ";" but that should
11077    # okay in the real world where ";" in dirpaths is itself problematic.
11078    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11079    ;;
11080  *)
11081    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11082    ;;
11083  esac
11084  # Ok, now we have the path, separated by spaces, we can step through it
11085  # and add multilib dir if necessary...
11086  lt_tmp_lt_search_path_spec=
11087  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11088  # ...but if some path component already ends with the multilib dir we assume
11089  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11090  case "$lt_multi_os_dir; $lt_search_path_spec " in
11091  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11092    lt_multi_os_dir=
11093    ;;
11094  esac
11095  for lt_sys_path in $lt_search_path_spec; do
11096    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11097      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11098    elif test -n "$lt_multi_os_dir"; then
11099      test -d "$lt_sys_path" && \
11100	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11101    fi
11102  done
11103  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11104BEGIN {RS = " "; FS = "/|\n";} {
11105  lt_foo = "";
11106  lt_count = 0;
11107  for (lt_i = NF; lt_i > 0; lt_i--) {
11108    if ($lt_i != "" && $lt_i != ".") {
11109      if ($lt_i == "..") {
11110        lt_count++;
11111      } else {
11112        if (lt_count == 0) {
11113          lt_foo = "/" $lt_i lt_foo;
11114        } else {
11115          lt_count--;
11116        }
11117      }
11118    }
11119  }
11120  if (lt_foo != "") { lt_freq[lt_foo]++; }
11121  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11122}'`
11123  # AWK program above erroneously prepends '/' to C:/dos/paths
11124  # for these hosts.
11125  case $host_os in
11126    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11127      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11128  esac
11129  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11130else
11131  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11132fi
11133library_names_spec=
11134libname_spec='lib$name'
11135soname_spec=
11136shrext_cmds=.so
11137postinstall_cmds=
11138postuninstall_cmds=
11139finish_cmds=
11140finish_eval=
11141shlibpath_var=
11142shlibpath_overrides_runpath=unknown
11143version_type=none
11144dynamic_linker="$host_os ld.so"
11145sys_lib_dlsearch_path_spec="/lib /usr/lib"
11146need_lib_prefix=unknown
11147hardcode_into_libs=no
11148
11149# when you set need_version to no, make sure it does not cause -set_version
11150# flags to be left without arguments
11151need_version=unknown
11152
11153
11154
11155case $host_os in
11156aix3*)
11157  version_type=linux # correct to gnu/linux during the next big refactor
11158  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11159  shlibpath_var=LIBPATH
11160
11161  # AIX 3 has no versioning support, so we append a major version to the name.
11162  soname_spec='$libname$release$shared_ext$major'
11163  ;;
11164
11165aix[4-9]*)
11166  version_type=linux # correct to gnu/linux during the next big refactor
11167  need_lib_prefix=no
11168  need_version=no
11169  hardcode_into_libs=yes
11170  if test ia64 = "$host_cpu"; then
11171    # AIX 5 supports IA64
11172    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11173    shlibpath_var=LD_LIBRARY_PATH
11174  else
11175    # With GCC up to 2.95.x, collect2 would create an import file
11176    # for dependence libraries.  The import file would start with
11177    # the line '#! .'.  This would cause the generated library to
11178    # depend on '.', always an invalid library.  This was fixed in
11179    # development snapshots of GCC prior to 3.0.
11180    case $host_os in
11181      aix4 | aix4.[01] | aix4.[01].*)
11182      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11183	   echo ' yes '
11184	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11185	:
11186      else
11187	can_build_shared=no
11188      fi
11189      ;;
11190    esac
11191    # Using Import Files as archive members, it is possible to support
11192    # filename-based versioning of shared library archives on AIX. While
11193    # this would work for both with and without runtime linking, it will
11194    # prevent static linking of such archives. So we do filename-based
11195    # shared library versioning with .so extension only, which is used
11196    # when both runtime linking and shared linking is enabled.
11197    # Unfortunately, runtime linking may impact performance, so we do
11198    # not want this to be the default eventually. Also, we use the
11199    # versioned .so libs for executables only if there is the -brtl
11200    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11201    # To allow for filename-based versioning support, we need to create
11202    # libNAME.so.V as an archive file, containing:
11203    # *) an Import File, referring to the versioned filename of the
11204    #    archive as well as the shared archive member, telling the
11205    #    bitwidth (32 or 64) of that shared object, and providing the
11206    #    list of exported symbols of that shared object, eventually
11207    #    decorated with the 'weak' keyword
11208    # *) the shared object with the F_LOADONLY flag set, to really avoid
11209    #    it being seen by the linker.
11210    # At run time we better use the real file rather than another symlink,
11211    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11212
11213    case $with_aix_soname,$aix_use_runtimelinking in
11214    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11215    # soname into executable. Probably we can add versioning support to
11216    # collect2, so additional links can be useful in future.
11217    aix,yes) # traditional libtool
11218      dynamic_linker='AIX unversionable lib.so'
11219      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11220      # instead of lib<name>.a to let people know that these are not
11221      # typical AIX shared libraries.
11222      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11223      ;;
11224    aix,no) # traditional AIX only
11225      dynamic_linker='AIX lib.a(lib.so.V)'
11226      # We preserve .a as extension for shared libraries through AIX4.2
11227      # and later when we are not doing run time linking.
11228      library_names_spec='$libname$release.a $libname.a'
11229      soname_spec='$libname$release$shared_ext$major'
11230      ;;
11231    svr4,*) # full svr4 only
11232      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11233      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11234      # We do not specify a path in Import Files, so LIBPATH fires.
11235      shlibpath_overrides_runpath=yes
11236      ;;
11237    *,yes) # both, prefer svr4
11238      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11239      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11240      # unpreferred sharedlib libNAME.a needs extra handling
11241      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"'
11242      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"'
11243      # We do not specify a path in Import Files, so LIBPATH fires.
11244      shlibpath_overrides_runpath=yes
11245      ;;
11246    *,no) # both, prefer aix
11247      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11248      library_names_spec='$libname$release.a $libname.a'
11249      soname_spec='$libname$release$shared_ext$major'
11250      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11251      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)'
11252      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"'
11253      ;;
11254    esac
11255    shlibpath_var=LIBPATH
11256  fi
11257  ;;
11258
11259amigaos*)
11260  case $host_cpu in
11261  powerpc)
11262    # Since July 2007 AmigaOS4 officially supports .so libraries.
11263    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11264    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11265    ;;
11266  m68k)
11267    library_names_spec='$libname.ixlibrary $libname.a'
11268    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11269    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'
11270    ;;
11271  esac
11272  ;;
11273
11274beos*)
11275  library_names_spec='$libname$shared_ext'
11276  dynamic_linker="$host_os ld.so"
11277  shlibpath_var=LIBRARY_PATH
11278  ;;
11279
11280bsdi[45]*)
11281  version_type=linux # correct to gnu/linux during the next big refactor
11282  need_version=no
11283  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11284  soname_spec='$libname$release$shared_ext$major'
11285  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11286  shlibpath_var=LD_LIBRARY_PATH
11287  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11288  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11289  # the default ld.so.conf also contains /usr/contrib/lib and
11290  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11291  # libtool to hard-code these into programs
11292  ;;
11293
11294cygwin* | mingw* | pw32* | cegcc*)
11295  version_type=windows
11296  shrext_cmds=.dll
11297  need_version=no
11298  need_lib_prefix=no
11299
11300  case $GCC,$cc_basename in
11301  yes,*)
11302    # gcc
11303    library_names_spec='$libname.dll.a'
11304    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11305    postinstall_cmds='base_file=`basename \$file`~
11306      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11307      dldir=$destdir/`dirname \$dlpath`~
11308      test -d \$dldir || mkdir -p \$dldir~
11309      $install_prog $dir/$dlname \$dldir/$dlname~
11310      chmod a+x \$dldir/$dlname~
11311      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11312        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11313      fi'
11314    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11315      dlpath=$dir/\$dldll~
11316       $RM \$dlpath'
11317    shlibpath_overrides_runpath=yes
11318
11319    case $host_os in
11320    cygwin*)
11321      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11322      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11323
11324      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11325      ;;
11326    mingw* | cegcc*)
11327      # MinGW DLLs use traditional 'lib' prefix
11328      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11329      ;;
11330    pw32*)
11331      # pw32 DLLs use 'pw' prefix rather than 'lib'
11332      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11333      ;;
11334    esac
11335    dynamic_linker='Win32 ld.exe'
11336    ;;
11337
11338  *,cl* | *,icl*)
11339    # Native MSVC or ICC
11340    libname_spec='$name'
11341    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11342    library_names_spec='$libname.dll.lib'
11343
11344    case $build_os in
11345    mingw*)
11346      sys_lib_search_path_spec=
11347      lt_save_ifs=$IFS
11348      IFS=';'
11349      for lt_path in $LIB
11350      do
11351        IFS=$lt_save_ifs
11352        # Let DOS variable expansion print the short 8.3 style file name.
11353        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11354        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11355      done
11356      IFS=$lt_save_ifs
11357      # Convert to MSYS style.
11358      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11359      ;;
11360    cygwin*)
11361      # Convert to unix form, then to dos form, then back to unix form
11362      # but this time dos style (no spaces!) so that the unix form looks
11363      # like /cygdrive/c/PROGRA~1:/cygdr...
11364      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11365      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11366      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11367      ;;
11368    *)
11369      sys_lib_search_path_spec=$LIB
11370      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11371        # It is most probably a Windows format PATH.
11372        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11373      else
11374        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11375      fi
11376      # FIXME: find the short name or the path components, as spaces are
11377      # common. (e.g. "Program Files" -> "PROGRA~1")
11378      ;;
11379    esac
11380
11381    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11382    postinstall_cmds='base_file=`basename \$file`~
11383      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11384      dldir=$destdir/`dirname \$dlpath`~
11385      test -d \$dldir || mkdir -p \$dldir~
11386      $install_prog $dir/$dlname \$dldir/$dlname'
11387    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11388      dlpath=$dir/\$dldll~
11389       $RM \$dlpath'
11390    shlibpath_overrides_runpath=yes
11391    dynamic_linker='Win32 link.exe'
11392    ;;
11393
11394  *)
11395    # Assume MSVC and ICC wrapper
11396    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11397    dynamic_linker='Win32 ld.exe'
11398    ;;
11399  esac
11400  # FIXME: first we should search . and the directory the executable is in
11401  shlibpath_var=PATH
11402  ;;
11403
11404darwin* | rhapsody*)
11405  dynamic_linker="$host_os dyld"
11406  version_type=darwin
11407  need_lib_prefix=no
11408  need_version=no
11409  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11410  soname_spec='$libname$release$major$shared_ext'
11411  shlibpath_overrides_runpath=yes
11412  shlibpath_var=DYLD_LIBRARY_PATH
11413  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11414
11415  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11416  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11417  ;;
11418
11419dgux*)
11420  version_type=linux # correct to gnu/linux during the next big refactor
11421  need_lib_prefix=no
11422  need_version=no
11423  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11424  soname_spec='$libname$release$shared_ext$major'
11425  shlibpath_var=LD_LIBRARY_PATH
11426  ;;
11427
11428freebsd* | dragonfly* | midnightbsd*)
11429  # DragonFly does not have aout.  When/if they implement a new
11430  # versioning mechanism, adjust this.
11431  if test -x /usr/bin/objformat; then
11432    objformat=`/usr/bin/objformat`
11433  else
11434    case $host_os in
11435    freebsd[23].*) objformat=aout ;;
11436    *) objformat=elf ;;
11437    esac
11438  fi
11439  version_type=freebsd-$objformat
11440  case $version_type in
11441    freebsd-elf*)
11442      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11443      soname_spec='$libname$release$shared_ext$major'
11444      need_version=no
11445      need_lib_prefix=no
11446      ;;
11447    freebsd-*)
11448      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11449      need_version=yes
11450      ;;
11451  esac
11452  shlibpath_var=LD_LIBRARY_PATH
11453  case $host_os in
11454  freebsd2.*)
11455    shlibpath_overrides_runpath=yes
11456    ;;
11457  freebsd3.[01]* | freebsdelf3.[01]*)
11458    shlibpath_overrides_runpath=yes
11459    hardcode_into_libs=yes
11460    ;;
11461  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11462  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11463    shlibpath_overrides_runpath=no
11464    hardcode_into_libs=yes
11465    ;;
11466  *) # from 4.6 on, and DragonFly
11467    shlibpath_overrides_runpath=yes
11468    hardcode_into_libs=yes
11469    ;;
11470  esac
11471  ;;
11472
11473haiku*)
11474  version_type=linux # correct to gnu/linux during the next big refactor
11475  need_lib_prefix=no
11476  need_version=no
11477  dynamic_linker="$host_os runtime_loader"
11478  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11479  soname_spec='$libname$release$shared_ext$major'
11480  shlibpath_var=LIBRARY_PATH
11481  shlibpath_overrides_runpath=no
11482  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11483  hardcode_into_libs=yes
11484  ;;
11485
11486hpux9* | hpux10* | hpux11*)
11487  # Give a soname corresponding to the major version so that dld.sl refuses to
11488  # link against other versions.
11489  version_type=sunos
11490  need_lib_prefix=no
11491  need_version=no
11492  case $host_cpu in
11493  ia64*)
11494    shrext_cmds='.so'
11495    hardcode_into_libs=yes
11496    dynamic_linker="$host_os dld.so"
11497    shlibpath_var=LD_LIBRARY_PATH
11498    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11499    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11500    soname_spec='$libname$release$shared_ext$major'
11501    if test 32 = "$HPUX_IA64_MODE"; then
11502      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11503      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11504    else
11505      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11506      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11507    fi
11508    ;;
11509  hppa*64*)
11510    shrext_cmds='.sl'
11511    hardcode_into_libs=yes
11512    dynamic_linker="$host_os dld.sl"
11513    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11514    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11518    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11519    ;;
11520  *)
11521    shrext_cmds='.sl'
11522    dynamic_linker="$host_os dld.sl"
11523    shlibpath_var=SHLIB_PATH
11524    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11525    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11526    soname_spec='$libname$release$shared_ext$major'
11527    ;;
11528  esac
11529  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11530  postinstall_cmds='chmod 555 $lib'
11531  # or fails outright, so override atomically:
11532  install_override_mode=555
11533  ;;
11534
11535interix[3-9]*)
11536  version_type=linux # correct to gnu/linux during the next big refactor
11537  need_lib_prefix=no
11538  need_version=no
11539  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11540  soname_spec='$libname$release$shared_ext$major'
11541  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11542  shlibpath_var=LD_LIBRARY_PATH
11543  shlibpath_overrides_runpath=no
11544  hardcode_into_libs=yes
11545  ;;
11546
11547irix5* | irix6* | nonstopux*)
11548  case $host_os in
11549    nonstopux*) version_type=nonstopux ;;
11550    *)
11551	if test yes = "$lt_cv_prog_gnu_ld"; then
11552		version_type=linux # correct to gnu/linux during the next big refactor
11553	else
11554		version_type=irix
11555	fi ;;
11556  esac
11557  need_lib_prefix=no
11558  need_version=no
11559  soname_spec='$libname$release$shared_ext$major'
11560  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11561  case $host_os in
11562  irix5* | nonstopux*)
11563    libsuff= shlibsuff=
11564    ;;
11565  *)
11566    case $LD in # libtool.m4 will add one of these switches to LD
11567    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11568      libsuff= shlibsuff= libmagic=32-bit;;
11569    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11570      libsuff=32 shlibsuff=N32 libmagic=N32;;
11571    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11572      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11573    *) libsuff= shlibsuff= libmagic=never-match;;
11574    esac
11575    ;;
11576  esac
11577  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11578  shlibpath_overrides_runpath=no
11579  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11580  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11581  hardcode_into_libs=yes
11582  ;;
11583
11584# No shared lib support for Linux oldld, aout, or coff.
11585linux*oldld* | linux*aout* | linux*coff*)
11586  dynamic_linker=no
11587  ;;
11588
11589linux*android*)
11590  version_type=none # Android doesn't support versioned libraries.
11591  need_lib_prefix=no
11592  need_version=no
11593  library_names_spec='$libname$release$shared_ext'
11594  soname_spec='$libname$release$shared_ext'
11595  finish_cmds=
11596  shlibpath_var=LD_LIBRARY_PATH
11597  shlibpath_overrides_runpath=yes
11598
11599  # This implies no fast_install, which is unacceptable.
11600  # Some rework will be needed to allow for fast_install
11601  # before this can be enabled.
11602  hardcode_into_libs=yes
11603
11604  dynamic_linker='Android linker'
11605  # Don't embed -rpath directories since the linker doesn't support them.
11606  hardcode_libdir_flag_spec='-L$libdir'
11607  ;;
11608
11609# This must be glibc/ELF.
11610linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11611  version_type=linux # correct to gnu/linux during the next big refactor
11612  need_lib_prefix=no
11613  need_version=no
11614  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11615  soname_spec='$libname$release$shared_ext$major'
11616  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11617  shlibpath_var=LD_LIBRARY_PATH
11618  shlibpath_overrides_runpath=no
11619
11620  # Some binutils ld are patched to set DT_RUNPATH
11621  if test ${lt_cv_shlibpath_overrides_runpath+y}
11622then :
11623  printf %s "(cached) " >&6
11624else $as_nop
11625  lt_cv_shlibpath_overrides_runpath=no
11626    save_LDFLAGS=$LDFLAGS
11627    save_libdir=$libdir
11628    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11629	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11630    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11631/* end confdefs.h.  */
11632
11633int
11634main (void)
11635{
11636
11637  ;
11638  return 0;
11639}
11640_ACEOF
11641if ac_fn_c_try_link "$LINENO"
11642then :
11643  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11644then :
11645  lt_cv_shlibpath_overrides_runpath=yes
11646fi
11647fi
11648rm -f core conftest.err conftest.$ac_objext conftest.beam \
11649    conftest$ac_exeext conftest.$ac_ext
11650    LDFLAGS=$save_LDFLAGS
11651    libdir=$save_libdir
11652
11653fi
11654
11655  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11656
11657  # This implies no fast_install, which is unacceptable.
11658  # Some rework will be needed to allow for fast_install
11659  # before this can be enabled.
11660  hardcode_into_libs=yes
11661
11662  # Ideally, we could use ldconfig to report *all* directores which are
11663  # searched for libraries, however this is still not possible.  Aside from not
11664  # being certain /sbin/ldconfig is available, command
11665  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11666  # even though it is searched at run-time.  Try to do the best guess by
11667  # appending ld.so.conf contents (and includes) to the search path.
11668  if test -f /etc/ld.so.conf; then
11669    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' ' '`
11670    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11671  fi
11672
11673  # We used to test for /lib/ld.so.1 and disable shared libraries on
11674  # powerpc, because MkLinux only supported shared libraries with the
11675  # GNU dynamic linker.  Since this was broken with cross compilers,
11676  # most powerpc-linux boxes support dynamic linking these days and
11677  # people can always --disable-shared, the test was removed, and we
11678  # assume the GNU/Linux dynamic linker is in use.
11679  dynamic_linker='GNU/Linux ld.so'
11680  ;;
11681
11682netbsd*)
11683  version_type=sunos
11684  need_lib_prefix=no
11685  need_version=no
11686  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11687    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11688    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11689    dynamic_linker='NetBSD (a.out) ld.so'
11690  else
11691    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11692    soname_spec='$libname$release$shared_ext$major'
11693    dynamic_linker='NetBSD ld.elf_so'
11694  fi
11695  shlibpath_var=LD_LIBRARY_PATH
11696  shlibpath_overrides_runpath=yes
11697  hardcode_into_libs=yes
11698  ;;
11699
11700newsos6)
11701  version_type=linux # correct to gnu/linux during the next big refactor
11702  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11703  shlibpath_var=LD_LIBRARY_PATH
11704  shlibpath_overrides_runpath=yes
11705  ;;
11706
11707*nto* | *qnx*)
11708  version_type=qnx
11709  need_lib_prefix=no
11710  need_version=no
11711  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11712  soname_spec='$libname$release$shared_ext$major'
11713  shlibpath_var=LD_LIBRARY_PATH
11714  shlibpath_overrides_runpath=no
11715  hardcode_into_libs=yes
11716  dynamic_linker='ldqnx.so'
11717  ;;
11718
11719openbsd* | bitrig*)
11720  version_type=sunos
11721  sys_lib_dlsearch_path_spec=/usr/lib
11722  need_lib_prefix=no
11723  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11724    need_version=no
11725  else
11726    need_version=yes
11727  fi
11728  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11729  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11730  shlibpath_var=LD_LIBRARY_PATH
11731  shlibpath_overrides_runpath=yes
11732  ;;
11733
11734os2*)
11735  libname_spec='$name'
11736  version_type=windows
11737  shrext_cmds=.dll
11738  need_version=no
11739  need_lib_prefix=no
11740  # OS/2 can only load a DLL with a base name of 8 characters or less.
11741  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11742    v=$($ECHO $release$versuffix | tr -d .-);
11743    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11744    $ECHO $n$v`$shared_ext'
11745  library_names_spec='${libname}_dll.$libext'
11746  dynamic_linker='OS/2 ld.exe'
11747  shlibpath_var=BEGINLIBPATH
11748  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11749  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11750  postinstall_cmds='base_file=`basename \$file`~
11751    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11752    dldir=$destdir/`dirname \$dlpath`~
11753    test -d \$dldir || mkdir -p \$dldir~
11754    $install_prog $dir/$dlname \$dldir/$dlname~
11755    chmod a+x \$dldir/$dlname~
11756    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11757      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11758    fi'
11759  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11760    dlpath=$dir/\$dldll~
11761    $RM \$dlpath'
11762  ;;
11763
11764osf3* | osf4* | osf5*)
11765  version_type=osf
11766  need_lib_prefix=no
11767  need_version=no
11768  soname_spec='$libname$release$shared_ext$major'
11769  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11770  shlibpath_var=LD_LIBRARY_PATH
11771  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11772  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11773  ;;
11774
11775rdos*)
11776  dynamic_linker=no
11777  ;;
11778
11779solaris*)
11780  version_type=linux # correct to gnu/linux during the next big refactor
11781  need_lib_prefix=no
11782  need_version=no
11783  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11784  soname_spec='$libname$release$shared_ext$major'
11785  shlibpath_var=LD_LIBRARY_PATH
11786  shlibpath_overrides_runpath=yes
11787  hardcode_into_libs=yes
11788  # ldd complains unless libraries are executable
11789  postinstall_cmds='chmod +x $lib'
11790  ;;
11791
11792sunos4*)
11793  version_type=sunos
11794  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11795  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11796  shlibpath_var=LD_LIBRARY_PATH
11797  shlibpath_overrides_runpath=yes
11798  if test yes = "$with_gnu_ld"; then
11799    need_lib_prefix=no
11800  fi
11801  need_version=yes
11802  ;;
11803
11804sysv4 | sysv4.3*)
11805  version_type=linux # correct to gnu/linux during the next big refactor
11806  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11807  soname_spec='$libname$release$shared_ext$major'
11808  shlibpath_var=LD_LIBRARY_PATH
11809  case $host_vendor in
11810    sni)
11811      shlibpath_overrides_runpath=no
11812      need_lib_prefix=no
11813      runpath_var=LD_RUN_PATH
11814      ;;
11815    siemens)
11816      need_lib_prefix=no
11817      ;;
11818    motorola)
11819      need_lib_prefix=no
11820      need_version=no
11821      shlibpath_overrides_runpath=no
11822      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11823      ;;
11824  esac
11825  ;;
11826
11827sysv4*MP*)
11828  if test -d /usr/nec; then
11829    version_type=linux # correct to gnu/linux during the next big refactor
11830    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11831    soname_spec='$libname$shared_ext.$major'
11832    shlibpath_var=LD_LIBRARY_PATH
11833  fi
11834  ;;
11835
11836sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11837  version_type=sco
11838  need_lib_prefix=no
11839  need_version=no
11840  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11841  soname_spec='$libname$release$shared_ext$major'
11842  shlibpath_var=LD_LIBRARY_PATH
11843  shlibpath_overrides_runpath=yes
11844  hardcode_into_libs=yes
11845  if test yes = "$with_gnu_ld"; then
11846    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11847  else
11848    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11849    case $host_os in
11850      sco3.2v5*)
11851        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11852	;;
11853    esac
11854  fi
11855  sys_lib_dlsearch_path_spec='/usr/lib'
11856  ;;
11857
11858tpf*)
11859  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11860  version_type=linux # correct to gnu/linux during the next big refactor
11861  need_lib_prefix=no
11862  need_version=no
11863  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11864  shlibpath_var=LD_LIBRARY_PATH
11865  shlibpath_overrides_runpath=no
11866  hardcode_into_libs=yes
11867  ;;
11868
11869uts4*)
11870  version_type=linux # correct to gnu/linux during the next big refactor
11871  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11872  soname_spec='$libname$release$shared_ext$major'
11873  shlibpath_var=LD_LIBRARY_PATH
11874  ;;
11875
11876*)
11877  dynamic_linker=no
11878  ;;
11879esac
11880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11881printf "%s\n" "$dynamic_linker" >&6; }
11882test no = "$dynamic_linker" && can_build_shared=no
11883
11884variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11885if test yes = "$GCC"; then
11886  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11887fi
11888
11889if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11890  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11891fi
11892
11893if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11894  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11895fi
11896
11897# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11898configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11899
11900# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11901func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11902
11903# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11904configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12003printf %s "checking how to hardcode library paths into programs... " >&6; }
12004hardcode_action=
12005if test -n "$hardcode_libdir_flag_spec" ||
12006   test -n "$runpath_var" ||
12007   test yes = "$hardcode_automatic"; then
12008
12009  # We can hardcode non-existent directories.
12010  if test no != "$hardcode_direct" &&
12011     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12012     # have to relink, otherwise we might link with an installed library
12013     # when we should be linking with a yet-to-be-installed one
12014     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12015     test no != "$hardcode_minus_L"; then
12016    # Linking always hardcodes the temporary library directory.
12017    hardcode_action=relink
12018  else
12019    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12020    hardcode_action=immediate
12021  fi
12022else
12023  # We cannot hardcode anything, or else we can only hardcode existing
12024  # directories.
12025  hardcode_action=unsupported
12026fi
12027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12028printf "%s\n" "$hardcode_action" >&6; }
12029
12030if test relink = "$hardcode_action" ||
12031   test yes = "$inherit_rpath"; then
12032  # Fast installation is not supported
12033  enable_fast_install=no
12034elif test yes = "$shlibpath_overrides_runpath" ||
12035     test no = "$enable_shared"; then
12036  # Fast installation is not necessary
12037  enable_fast_install=needless
12038fi
12039
12040
12041
12042
12043
12044
12045  if test yes != "$enable_dlopen"; then
12046  enable_dlopen=unknown
12047  enable_dlopen_self=unknown
12048  enable_dlopen_self_static=unknown
12049else
12050  lt_cv_dlopen=no
12051  lt_cv_dlopen_libs=
12052
12053  case $host_os in
12054  beos*)
12055    lt_cv_dlopen=load_add_on
12056    lt_cv_dlopen_libs=
12057    lt_cv_dlopen_self=yes
12058    ;;
12059
12060  mingw* | pw32* | cegcc*)
12061    lt_cv_dlopen=LoadLibrary
12062    lt_cv_dlopen_libs=
12063    ;;
12064
12065  cygwin*)
12066    lt_cv_dlopen=dlopen
12067    lt_cv_dlopen_libs=
12068    ;;
12069
12070  darwin*)
12071    # if libdl is installed we need to link against it
12072    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12073printf %s "checking for dlopen in -ldl... " >&6; }
12074if test ${ac_cv_lib_dl_dlopen+y}
12075then :
12076  printf %s "(cached) " >&6
12077else $as_nop
12078  ac_check_lib_save_LIBS=$LIBS
12079LIBS="-ldl  $LIBS"
12080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081/* end confdefs.h.  */
12082
12083/* Override any GCC internal prototype to avoid an error.
12084   Use char because int might match the return type of a GCC
12085   builtin and then its argument prototype would still apply.  */
12086char dlopen ();
12087int
12088main (void)
12089{
12090return dlopen ();
12091  ;
12092  return 0;
12093}
12094_ACEOF
12095if ac_fn_c_try_link "$LINENO"
12096then :
12097  ac_cv_lib_dl_dlopen=yes
12098else $as_nop
12099  ac_cv_lib_dl_dlopen=no
12100fi
12101rm -f core conftest.err conftest.$ac_objext conftest.beam \
12102    conftest$ac_exeext conftest.$ac_ext
12103LIBS=$ac_check_lib_save_LIBS
12104fi
12105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12106printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12107if test "x$ac_cv_lib_dl_dlopen" = xyes
12108then :
12109  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12110else $as_nop
12111
12112    lt_cv_dlopen=dyld
12113    lt_cv_dlopen_libs=
12114    lt_cv_dlopen_self=yes
12115
12116fi
12117
12118    ;;
12119
12120  tpf*)
12121    # Don't try to run any link tests for TPF.  We know it's impossible
12122    # because TPF is a cross-compiler, and we know how we open DSOs.
12123    lt_cv_dlopen=dlopen
12124    lt_cv_dlopen_libs=
12125    lt_cv_dlopen_self=no
12126    ;;
12127
12128  *)
12129    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12130if test "x$ac_cv_func_shl_load" = xyes
12131then :
12132  lt_cv_dlopen=shl_load
12133else $as_nop
12134  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12135printf %s "checking for shl_load in -ldld... " >&6; }
12136if test ${ac_cv_lib_dld_shl_load+y}
12137then :
12138  printf %s "(cached) " >&6
12139else $as_nop
12140  ac_check_lib_save_LIBS=$LIBS
12141LIBS="-ldld  $LIBS"
12142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12143/* end confdefs.h.  */
12144
12145/* Override any GCC internal prototype to avoid an error.
12146   Use char because int might match the return type of a GCC
12147   builtin and then its argument prototype would still apply.  */
12148char shl_load ();
12149int
12150main (void)
12151{
12152return shl_load ();
12153  ;
12154  return 0;
12155}
12156_ACEOF
12157if ac_fn_c_try_link "$LINENO"
12158then :
12159  ac_cv_lib_dld_shl_load=yes
12160else $as_nop
12161  ac_cv_lib_dld_shl_load=no
12162fi
12163rm -f core conftest.err conftest.$ac_objext conftest.beam \
12164    conftest$ac_exeext conftest.$ac_ext
12165LIBS=$ac_check_lib_save_LIBS
12166fi
12167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12168printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12169if test "x$ac_cv_lib_dld_shl_load" = xyes
12170then :
12171  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12172else $as_nop
12173  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12174if test "x$ac_cv_func_dlopen" = xyes
12175then :
12176  lt_cv_dlopen=dlopen
12177else $as_nop
12178  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12179printf %s "checking for dlopen in -ldl... " >&6; }
12180if test ${ac_cv_lib_dl_dlopen+y}
12181then :
12182  printf %s "(cached) " >&6
12183else $as_nop
12184  ac_check_lib_save_LIBS=$LIBS
12185LIBS="-ldl  $LIBS"
12186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187/* end confdefs.h.  */
12188
12189/* Override any GCC internal prototype to avoid an error.
12190   Use char because int might match the return type of a GCC
12191   builtin and then its argument prototype would still apply.  */
12192char dlopen ();
12193int
12194main (void)
12195{
12196return dlopen ();
12197  ;
12198  return 0;
12199}
12200_ACEOF
12201if ac_fn_c_try_link "$LINENO"
12202then :
12203  ac_cv_lib_dl_dlopen=yes
12204else $as_nop
12205  ac_cv_lib_dl_dlopen=no
12206fi
12207rm -f core conftest.err conftest.$ac_objext conftest.beam \
12208    conftest$ac_exeext conftest.$ac_ext
12209LIBS=$ac_check_lib_save_LIBS
12210fi
12211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12212printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12213if test "x$ac_cv_lib_dl_dlopen" = xyes
12214then :
12215  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12216else $as_nop
12217  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12218printf %s "checking for dlopen in -lsvld... " >&6; }
12219if test ${ac_cv_lib_svld_dlopen+y}
12220then :
12221  printf %s "(cached) " >&6
12222else $as_nop
12223  ac_check_lib_save_LIBS=$LIBS
12224LIBS="-lsvld  $LIBS"
12225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12226/* end confdefs.h.  */
12227
12228/* Override any GCC internal prototype to avoid an error.
12229   Use char because int might match the return type of a GCC
12230   builtin and then its argument prototype would still apply.  */
12231char dlopen ();
12232int
12233main (void)
12234{
12235return dlopen ();
12236  ;
12237  return 0;
12238}
12239_ACEOF
12240if ac_fn_c_try_link "$LINENO"
12241then :
12242  ac_cv_lib_svld_dlopen=yes
12243else $as_nop
12244  ac_cv_lib_svld_dlopen=no
12245fi
12246rm -f core conftest.err conftest.$ac_objext conftest.beam \
12247    conftest$ac_exeext conftest.$ac_ext
12248LIBS=$ac_check_lib_save_LIBS
12249fi
12250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12251printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12252if test "x$ac_cv_lib_svld_dlopen" = xyes
12253then :
12254  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12255else $as_nop
12256  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12257printf %s "checking for dld_link in -ldld... " >&6; }
12258if test ${ac_cv_lib_dld_dld_link+y}
12259then :
12260  printf %s "(cached) " >&6
12261else $as_nop
12262  ac_check_lib_save_LIBS=$LIBS
12263LIBS="-ldld  $LIBS"
12264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12265/* end confdefs.h.  */
12266
12267/* Override any GCC internal prototype to avoid an error.
12268   Use char because int might match the return type of a GCC
12269   builtin and then its argument prototype would still apply.  */
12270char dld_link ();
12271int
12272main (void)
12273{
12274return dld_link ();
12275  ;
12276  return 0;
12277}
12278_ACEOF
12279if ac_fn_c_try_link "$LINENO"
12280then :
12281  ac_cv_lib_dld_dld_link=yes
12282else $as_nop
12283  ac_cv_lib_dld_dld_link=no
12284fi
12285rm -f core conftest.err conftest.$ac_objext conftest.beam \
12286    conftest$ac_exeext conftest.$ac_ext
12287LIBS=$ac_check_lib_save_LIBS
12288fi
12289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12290printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12291if test "x$ac_cv_lib_dld_dld_link" = xyes
12292then :
12293  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12294fi
12295
12296
12297fi
12298
12299
12300fi
12301
12302
12303fi
12304
12305
12306fi
12307
12308
12309fi
12310
12311    ;;
12312  esac
12313
12314  if test no = "$lt_cv_dlopen"; then
12315    enable_dlopen=no
12316  else
12317    enable_dlopen=yes
12318  fi
12319
12320  case $lt_cv_dlopen in
12321  dlopen)
12322    save_CPPFLAGS=$CPPFLAGS
12323    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12324
12325    save_LDFLAGS=$LDFLAGS
12326    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12327
12328    save_LIBS=$LIBS
12329    LIBS="$lt_cv_dlopen_libs $LIBS"
12330
12331    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12332printf %s "checking whether a program can dlopen itself... " >&6; }
12333if test ${lt_cv_dlopen_self+y}
12334then :
12335  printf %s "(cached) " >&6
12336else $as_nop
12337  	  if test yes = "$cross_compiling"; then :
12338  lt_cv_dlopen_self=cross
12339else
12340  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12341  lt_status=$lt_dlunknown
12342  cat > conftest.$ac_ext <<_LT_EOF
12343#line $LINENO "configure"
12344#include "confdefs.h"
12345
12346#if HAVE_DLFCN_H
12347#include <dlfcn.h>
12348#endif
12349
12350#include <stdio.h>
12351
12352#ifdef RTLD_GLOBAL
12353#  define LT_DLGLOBAL		RTLD_GLOBAL
12354#else
12355#  ifdef DL_GLOBAL
12356#    define LT_DLGLOBAL		DL_GLOBAL
12357#  else
12358#    define LT_DLGLOBAL		0
12359#  endif
12360#endif
12361
12362/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12363   find out it does not work in some platform. */
12364#ifndef LT_DLLAZY_OR_NOW
12365#  ifdef RTLD_LAZY
12366#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12367#  else
12368#    ifdef DL_LAZY
12369#      define LT_DLLAZY_OR_NOW		DL_LAZY
12370#    else
12371#      ifdef RTLD_NOW
12372#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12373#      else
12374#        ifdef DL_NOW
12375#          define LT_DLLAZY_OR_NOW	DL_NOW
12376#        else
12377#          define LT_DLLAZY_OR_NOW	0
12378#        endif
12379#      endif
12380#    endif
12381#  endif
12382#endif
12383
12384/* When -fvisibility=hidden is used, assume the code has been annotated
12385   correspondingly for the symbols needed.  */
12386#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12387int fnord () __attribute__((visibility("default")));
12388#endif
12389
12390int fnord () { return 42; }
12391int main ()
12392{
12393  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12394  int status = $lt_dlunknown;
12395
12396  if (self)
12397    {
12398      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12399      else
12400        {
12401	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12402          else puts (dlerror ());
12403	}
12404      /* dlclose (self); */
12405    }
12406  else
12407    puts (dlerror ());
12408
12409  return status;
12410}
12411_LT_EOF
12412  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12413  (eval $ac_link) 2>&5
12414  ac_status=$?
12415  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12416  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12417    (./conftest; exit; ) >&5 2>/dev/null
12418    lt_status=$?
12419    case x$lt_status in
12420      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12421      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12422      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12423    esac
12424  else :
12425    # compilation failed
12426    lt_cv_dlopen_self=no
12427  fi
12428fi
12429rm -fr conftest*
12430
12431
12432fi
12433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12434printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12435
12436    if test yes = "$lt_cv_dlopen_self"; then
12437      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12438      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12439printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12440if test ${lt_cv_dlopen_self_static+y}
12441then :
12442  printf %s "(cached) " >&6
12443else $as_nop
12444  	  if test yes = "$cross_compiling"; then :
12445  lt_cv_dlopen_self_static=cross
12446else
12447  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12448  lt_status=$lt_dlunknown
12449  cat > conftest.$ac_ext <<_LT_EOF
12450#line $LINENO "configure"
12451#include "confdefs.h"
12452
12453#if HAVE_DLFCN_H
12454#include <dlfcn.h>
12455#endif
12456
12457#include <stdio.h>
12458
12459#ifdef RTLD_GLOBAL
12460#  define LT_DLGLOBAL		RTLD_GLOBAL
12461#else
12462#  ifdef DL_GLOBAL
12463#    define LT_DLGLOBAL		DL_GLOBAL
12464#  else
12465#    define LT_DLGLOBAL		0
12466#  endif
12467#endif
12468
12469/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12470   find out it does not work in some platform. */
12471#ifndef LT_DLLAZY_OR_NOW
12472#  ifdef RTLD_LAZY
12473#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12474#  else
12475#    ifdef DL_LAZY
12476#      define LT_DLLAZY_OR_NOW		DL_LAZY
12477#    else
12478#      ifdef RTLD_NOW
12479#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12480#      else
12481#        ifdef DL_NOW
12482#          define LT_DLLAZY_OR_NOW	DL_NOW
12483#        else
12484#          define LT_DLLAZY_OR_NOW	0
12485#        endif
12486#      endif
12487#    endif
12488#  endif
12489#endif
12490
12491/* When -fvisibility=hidden is used, assume the code has been annotated
12492   correspondingly for the symbols needed.  */
12493#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12494int fnord () __attribute__((visibility("default")));
12495#endif
12496
12497int fnord () { return 42; }
12498int main ()
12499{
12500  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12501  int status = $lt_dlunknown;
12502
12503  if (self)
12504    {
12505      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12506      else
12507        {
12508	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12509          else puts (dlerror ());
12510	}
12511      /* dlclose (self); */
12512    }
12513  else
12514    puts (dlerror ());
12515
12516  return status;
12517}
12518_LT_EOF
12519  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12520  (eval $ac_link) 2>&5
12521  ac_status=$?
12522  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12523  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12524    (./conftest; exit; ) >&5 2>/dev/null
12525    lt_status=$?
12526    case x$lt_status in
12527      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12528      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12529      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12530    esac
12531  else :
12532    # compilation failed
12533    lt_cv_dlopen_self_static=no
12534  fi
12535fi
12536rm -fr conftest*
12537
12538
12539fi
12540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12541printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12542    fi
12543
12544    CPPFLAGS=$save_CPPFLAGS
12545    LDFLAGS=$save_LDFLAGS
12546    LIBS=$save_LIBS
12547    ;;
12548  esac
12549
12550  case $lt_cv_dlopen_self in
12551  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12552  *) enable_dlopen_self=unknown ;;
12553  esac
12554
12555  case $lt_cv_dlopen_self_static in
12556  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12557  *) enable_dlopen_self_static=unknown ;;
12558  esac
12559fi
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577striplib=
12578old_striplib=
12579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12580printf %s "checking whether stripping libraries is possible... " >&6; }
12581if test -z "$STRIP"; then
12582  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12583printf "%s\n" "no" >&6; }
12584else
12585  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12586    old_striplib="$STRIP --strip-debug"
12587    striplib="$STRIP --strip-unneeded"
12588    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12589printf "%s\n" "yes" >&6; }
12590  else
12591    case $host_os in
12592    darwin*)
12593      # FIXME - insert some real tests, host_os isn't really good enough
12594      striplib="$STRIP -x"
12595      old_striplib="$STRIP -S"
12596      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12597printf "%s\n" "yes" >&6; }
12598      ;;
12599    freebsd*)
12600      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12601        old_striplib="$STRIP --strip-debug"
12602        striplib="$STRIP --strip-unneeded"
12603        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12604printf "%s\n" "yes" >&6; }
12605      else
12606        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12607printf "%s\n" "no" >&6; }
12608      fi
12609      ;;
12610    *)
12611      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12612printf "%s\n" "no" >&6; }
12613      ;;
12614    esac
12615  fi
12616fi
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629  # Report what library types will actually be built
12630  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12631printf %s "checking if libtool supports shared libraries... " >&6; }
12632  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12633printf "%s\n" "$can_build_shared" >&6; }
12634
12635  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12636printf %s "checking whether to build shared libraries... " >&6; }
12637  test no = "$can_build_shared" && enable_shared=no
12638
12639  # On AIX, shared libraries and static libraries use the same namespace, and
12640  # are all built from PIC.
12641  case $host_os in
12642  aix3*)
12643    test yes = "$enable_shared" && enable_static=no
12644    if test -n "$RANLIB"; then
12645      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12646      postinstall_cmds='$RANLIB $lib'
12647    fi
12648    ;;
12649
12650  aix[4-9]*)
12651    if test ia64 != "$host_cpu"; then
12652      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12653      yes,aix,yes) ;;			# shared object as lib.so file only
12654      yes,svr4,*) ;;			# shared object as lib.so archive member only
12655      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12656      esac
12657    fi
12658    ;;
12659  esac
12660  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12661printf "%s\n" "$enable_shared" >&6; }
12662
12663  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12664printf %s "checking whether to build static libraries... " >&6; }
12665  # Make sure either enable_shared or enable_static is yes.
12666  test yes = "$enable_shared" || enable_static=yes
12667  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12668printf "%s\n" "$enable_static" >&6; }
12669
12670
12671
12672
12673fi
12674ac_ext=c
12675ac_cpp='$CPP $CPPFLAGS'
12676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12678ac_compiler_gnu=$ac_cv_c_compiler_gnu
12679
12680CC=$lt_save_CC
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696        ac_config_commands="$ac_config_commands libtool"
12697
12698
12699
12700
12701# Only expand once:
12702
12703
12704
12705# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12719printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12720if test ${ac_cv_c_undeclared_builtin_options+y}
12721then :
12722  printf %s "(cached) " >&6
12723else $as_nop
12724  ac_save_CFLAGS=$CFLAGS
12725   ac_cv_c_undeclared_builtin_options='cannot detect'
12726   for ac_arg in '' -fno-builtin; do
12727     CFLAGS="$ac_save_CFLAGS $ac_arg"
12728     # This test program should *not* compile successfully.
12729     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12730/* end confdefs.h.  */
12731
12732int
12733main (void)
12734{
12735(void) strchr;
12736  ;
12737  return 0;
12738}
12739_ACEOF
12740if ac_fn_c_try_compile "$LINENO"
12741then :
12742
12743else $as_nop
12744  # This test program should compile successfully.
12745        # No library function is consistently available on
12746        # freestanding implementations, so test against a dummy
12747        # declaration.  Include always-available headers on the
12748        # off chance that they somehow elicit warnings.
12749        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12750/* end confdefs.h.  */
12751#include <float.h>
12752#include <limits.h>
12753#include <stdarg.h>
12754#include <stddef.h>
12755extern void ac_decl (int, char *);
12756
12757int
12758main (void)
12759{
12760(void) ac_decl (0, (char *) 0);
12761  (void) ac_decl;
12762
12763  ;
12764  return 0;
12765}
12766_ACEOF
12767if ac_fn_c_try_compile "$LINENO"
12768then :
12769  if test x"$ac_arg" = x
12770then :
12771  ac_cv_c_undeclared_builtin_options='none needed'
12772else $as_nop
12773  ac_cv_c_undeclared_builtin_options=$ac_arg
12774fi
12775          break
12776fi
12777rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12778fi
12779rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12780    done
12781    CFLAGS=$ac_save_CFLAGS
12782
12783fi
12784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12785printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12786  case $ac_cv_c_undeclared_builtin_options in #(
12787  'cannot detect') :
12788    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12789printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12790as_fn_error $? "cannot make $CC report undeclared builtins
12791See \`config.log' for more details" "$LINENO" 5; } ;; #(
12792  'none needed') :
12793    ac_c_undeclared_builtin_options='' ;; #(
12794  *) :
12795    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12796esac
12797
12798
12799
12800
12801
12802ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12803if test "x$ac_cv_have_decl___clang__" = xyes
12804then :
12805  CLANGCC="yes"
12806else $as_nop
12807  CLANGCC="no"
12808fi
12809ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12810if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
12811then :
12812  INTELCC="yes"
12813else $as_nop
12814  INTELCC="no"
12815fi
12816ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12817if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
12818then :
12819  SUNCC="yes"
12820else $as_nop
12821  SUNCC="no"
12822fi
12823
12824
12825
12826
12827
12828
12829
12830
12831if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12832	if test -n "$ac_tool_prefix"; then
12833  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12834set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12836printf %s "checking for $ac_word... " >&6; }
12837if test ${ac_cv_path_PKG_CONFIG+y}
12838then :
12839  printf %s "(cached) " >&6
12840else $as_nop
12841  case $PKG_CONFIG in
12842  [\\/]* | ?:[\\/]*)
12843  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12844  ;;
12845  *)
12846  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12847for as_dir in $PATH
12848do
12849  IFS=$as_save_IFS
12850  case $as_dir in #(((
12851    '') as_dir=./ ;;
12852    */) ;;
12853    *) as_dir=$as_dir/ ;;
12854  esac
12855    for ac_exec_ext in '' $ac_executable_extensions; do
12856  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12857    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12858    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12859    break 2
12860  fi
12861done
12862  done
12863IFS=$as_save_IFS
12864
12865  ;;
12866esac
12867fi
12868PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12869if test -n "$PKG_CONFIG"; then
12870  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12871printf "%s\n" "$PKG_CONFIG" >&6; }
12872else
12873  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12874printf "%s\n" "no" >&6; }
12875fi
12876
12877
12878fi
12879if test -z "$ac_cv_path_PKG_CONFIG"; then
12880  ac_pt_PKG_CONFIG=$PKG_CONFIG
12881  # Extract the first word of "pkg-config", so it can be a program name with args.
12882set dummy pkg-config; ac_word=$2
12883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12884printf %s "checking for $ac_word... " >&6; }
12885if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12886then :
12887  printf %s "(cached) " >&6
12888else $as_nop
12889  case $ac_pt_PKG_CONFIG in
12890  [\\/]* | ?:[\\/]*)
12891  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12892  ;;
12893  *)
12894  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12895for as_dir in $PATH
12896do
12897  IFS=$as_save_IFS
12898  case $as_dir in #(((
12899    '') as_dir=./ ;;
12900    */) ;;
12901    *) as_dir=$as_dir/ ;;
12902  esac
12903    for ac_exec_ext in '' $ac_executable_extensions; do
12904  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12905    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12906    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12907    break 2
12908  fi
12909done
12910  done
12911IFS=$as_save_IFS
12912
12913  ;;
12914esac
12915fi
12916ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12917if test -n "$ac_pt_PKG_CONFIG"; then
12918  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12919printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
12920else
12921  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12922printf "%s\n" "no" >&6; }
12923fi
12924
12925  if test "x$ac_pt_PKG_CONFIG" = x; then
12926    PKG_CONFIG=""
12927  else
12928    case $cross_compiling:$ac_tool_warned in
12929yes:)
12930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12931printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12932ac_tool_warned=yes ;;
12933esac
12934    PKG_CONFIG=$ac_pt_PKG_CONFIG
12935  fi
12936else
12937  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12938fi
12939
12940fi
12941if test -n "$PKG_CONFIG"; then
12942	_pkg_min_version=0.9.0
12943	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12944printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12945	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12946		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12947printf "%s\n" "yes" >&6; }
12948	else
12949		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12950printf "%s\n" "no" >&6; }
12951		PKG_CONFIG=""
12952	fi
12953fi
12954
12955
12956
12957
12958
12959# Check whether --enable-selective-werror was given.
12960if test ${enable_selective_werror+y}
12961then :
12962  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12963else $as_nop
12964  SELECTIVE_WERROR=yes
12965fi
12966
12967
12968
12969
12970
12971# -v is too short to test reliably with XORG_TESTSET_CFLAG
12972if test "x$SUNCC" = "xyes"; then
12973    BASE_CFLAGS="-v"
12974else
12975    BASE_CFLAGS=""
12976fi
12977
12978# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992xorg_testset_save_CFLAGS="$CFLAGS"
12993
12994if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12995	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12996	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12997printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12998if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12999then :
13000  printf %s "(cached) " >&6
13001else $as_nop
13002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13003/* end confdefs.h.  */
13004int i;
13005_ACEOF
13006if ac_fn_c_try_compile "$LINENO"
13007then :
13008  xorg_cv_cc_flag_unknown_warning_option=yes
13009else $as_nop
13010  xorg_cv_cc_flag_unknown_warning_option=no
13011fi
13012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13013fi
13014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13015printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13016	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13017	CFLAGS="$xorg_testset_save_CFLAGS"
13018fi
13019
13020if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13021	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13022		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13023	fi
13024	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13025	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13026printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13027if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13028then :
13029  printf %s "(cached) " >&6
13030else $as_nop
13031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13032/* end confdefs.h.  */
13033int i;
13034_ACEOF
13035if ac_fn_c_try_compile "$LINENO"
13036then :
13037  xorg_cv_cc_flag_unused_command_line_argument=yes
13038else $as_nop
13039  xorg_cv_cc_flag_unused_command_line_argument=no
13040fi
13041rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13042fi
13043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13044printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13045	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13046	CFLAGS="$xorg_testset_save_CFLAGS"
13047fi
13048
13049found="no"
13050
13051	if test $found = "no" ; then
13052		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13053			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13054		fi
13055
13056		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13057			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13058		fi
13059
13060		CFLAGS="$CFLAGS -Wall"
13061
13062		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13063printf %s "checking if $CC supports -Wall... " >&6; }
13064		cacheid=xorg_cv_cc_flag__Wall
13065		if eval test \${$cacheid+y}
13066then :
13067  printf %s "(cached) " >&6
13068else $as_nop
13069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13070/* end confdefs.h.  */
13071int i;
13072int
13073main (void)
13074{
13075
13076  ;
13077  return 0;
13078}
13079_ACEOF
13080if ac_fn_c_try_link "$LINENO"
13081then :
13082  eval $cacheid=yes
13083else $as_nop
13084  eval $cacheid=no
13085fi
13086rm -f core conftest.err conftest.$ac_objext conftest.beam \
13087    conftest$ac_exeext conftest.$ac_ext
13088fi
13089
13090
13091		CFLAGS="$xorg_testset_save_CFLAGS"
13092
13093		eval supported=\$$cacheid
13094		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13095printf "%s\n" "$supported" >&6; }
13096		if test "$supported" = "yes" ; then
13097			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13098			found="yes"
13099		fi
13100	fi
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116xorg_testset_save_CFLAGS="$CFLAGS"
13117
13118if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13119	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13120	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13121printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13122if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13123then :
13124  printf %s "(cached) " >&6
13125else $as_nop
13126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13127/* end confdefs.h.  */
13128int i;
13129_ACEOF
13130if ac_fn_c_try_compile "$LINENO"
13131then :
13132  xorg_cv_cc_flag_unknown_warning_option=yes
13133else $as_nop
13134  xorg_cv_cc_flag_unknown_warning_option=no
13135fi
13136rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13137fi
13138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13139printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13140	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13141	CFLAGS="$xorg_testset_save_CFLAGS"
13142fi
13143
13144if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13145	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13146		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13147	fi
13148	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13149	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13150printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13151if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13152then :
13153  printf %s "(cached) " >&6
13154else $as_nop
13155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13156/* end confdefs.h.  */
13157int i;
13158_ACEOF
13159if ac_fn_c_try_compile "$LINENO"
13160then :
13161  xorg_cv_cc_flag_unused_command_line_argument=yes
13162else $as_nop
13163  xorg_cv_cc_flag_unused_command_line_argument=no
13164fi
13165rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13166fi
13167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13168printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13169	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13170	CFLAGS="$xorg_testset_save_CFLAGS"
13171fi
13172
13173found="no"
13174
13175	if test $found = "no" ; then
13176		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13177			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13178		fi
13179
13180		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13181			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13182		fi
13183
13184		CFLAGS="$CFLAGS -Wpointer-arith"
13185
13186		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13187printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13188		cacheid=xorg_cv_cc_flag__Wpointer_arith
13189		if eval test \${$cacheid+y}
13190then :
13191  printf %s "(cached) " >&6
13192else $as_nop
13193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13194/* end confdefs.h.  */
13195int i;
13196int
13197main (void)
13198{
13199
13200  ;
13201  return 0;
13202}
13203_ACEOF
13204if ac_fn_c_try_link "$LINENO"
13205then :
13206  eval $cacheid=yes
13207else $as_nop
13208  eval $cacheid=no
13209fi
13210rm -f core conftest.err conftest.$ac_objext conftest.beam \
13211    conftest$ac_exeext conftest.$ac_ext
13212fi
13213
13214
13215		CFLAGS="$xorg_testset_save_CFLAGS"
13216
13217		eval supported=\$$cacheid
13218		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13219printf "%s\n" "$supported" >&6; }
13220		if test "$supported" = "yes" ; then
13221			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13222			found="yes"
13223		fi
13224	fi
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240xorg_testset_save_CFLAGS="$CFLAGS"
13241
13242if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13243	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13244	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13245printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13246if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13247then :
13248  printf %s "(cached) " >&6
13249else $as_nop
13250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13251/* end confdefs.h.  */
13252int i;
13253_ACEOF
13254if ac_fn_c_try_compile "$LINENO"
13255then :
13256  xorg_cv_cc_flag_unknown_warning_option=yes
13257else $as_nop
13258  xorg_cv_cc_flag_unknown_warning_option=no
13259fi
13260rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13261fi
13262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13263printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13264	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13265	CFLAGS="$xorg_testset_save_CFLAGS"
13266fi
13267
13268if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13269	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13270		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13271	fi
13272	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13273	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13274printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13275if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13276then :
13277  printf %s "(cached) " >&6
13278else $as_nop
13279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13280/* end confdefs.h.  */
13281int i;
13282_ACEOF
13283if ac_fn_c_try_compile "$LINENO"
13284then :
13285  xorg_cv_cc_flag_unused_command_line_argument=yes
13286else $as_nop
13287  xorg_cv_cc_flag_unused_command_line_argument=no
13288fi
13289rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13290fi
13291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13292printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13293	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13294	CFLAGS="$xorg_testset_save_CFLAGS"
13295fi
13296
13297found="no"
13298
13299	if test $found = "no" ; then
13300		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13301			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13302		fi
13303
13304		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13305			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13306		fi
13307
13308		CFLAGS="$CFLAGS -Wmissing-declarations"
13309
13310		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13311printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13312		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13313		if eval test \${$cacheid+y}
13314then :
13315  printf %s "(cached) " >&6
13316else $as_nop
13317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13318/* end confdefs.h.  */
13319int i;
13320int
13321main (void)
13322{
13323
13324  ;
13325  return 0;
13326}
13327_ACEOF
13328if ac_fn_c_try_link "$LINENO"
13329then :
13330  eval $cacheid=yes
13331else $as_nop
13332  eval $cacheid=no
13333fi
13334rm -f core conftest.err conftest.$ac_objext conftest.beam \
13335    conftest$ac_exeext conftest.$ac_ext
13336fi
13337
13338
13339		CFLAGS="$xorg_testset_save_CFLAGS"
13340
13341		eval supported=\$$cacheid
13342		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13343printf "%s\n" "$supported" >&6; }
13344		if test "$supported" = "yes" ; then
13345			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13346			found="yes"
13347		fi
13348	fi
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364xorg_testset_save_CFLAGS="$CFLAGS"
13365
13366if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13367	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13368	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13369printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13370if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13371then :
13372  printf %s "(cached) " >&6
13373else $as_nop
13374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13375/* end confdefs.h.  */
13376int i;
13377_ACEOF
13378if ac_fn_c_try_compile "$LINENO"
13379then :
13380  xorg_cv_cc_flag_unknown_warning_option=yes
13381else $as_nop
13382  xorg_cv_cc_flag_unknown_warning_option=no
13383fi
13384rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13385fi
13386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13387printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13388	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13389	CFLAGS="$xorg_testset_save_CFLAGS"
13390fi
13391
13392if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13393	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13394		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13395	fi
13396	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13397	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13398printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13399if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13400then :
13401  printf %s "(cached) " >&6
13402else $as_nop
13403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13404/* end confdefs.h.  */
13405int i;
13406_ACEOF
13407if ac_fn_c_try_compile "$LINENO"
13408then :
13409  xorg_cv_cc_flag_unused_command_line_argument=yes
13410else $as_nop
13411  xorg_cv_cc_flag_unused_command_line_argument=no
13412fi
13413rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13414fi
13415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13416printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13417	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13418	CFLAGS="$xorg_testset_save_CFLAGS"
13419fi
13420
13421found="no"
13422
13423	if test $found = "no" ; then
13424		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13425			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13426		fi
13427
13428		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13429			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13430		fi
13431
13432		CFLAGS="$CFLAGS -Wformat=2"
13433
13434		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13435printf %s "checking if $CC supports -Wformat=2... " >&6; }
13436		cacheid=xorg_cv_cc_flag__Wformat_2
13437		if eval test \${$cacheid+y}
13438then :
13439  printf %s "(cached) " >&6
13440else $as_nop
13441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13442/* end confdefs.h.  */
13443int i;
13444int
13445main (void)
13446{
13447
13448  ;
13449  return 0;
13450}
13451_ACEOF
13452if ac_fn_c_try_link "$LINENO"
13453then :
13454  eval $cacheid=yes
13455else $as_nop
13456  eval $cacheid=no
13457fi
13458rm -f core conftest.err conftest.$ac_objext conftest.beam \
13459    conftest$ac_exeext conftest.$ac_ext
13460fi
13461
13462
13463		CFLAGS="$xorg_testset_save_CFLAGS"
13464
13465		eval supported=\$$cacheid
13466		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13467printf "%s\n" "$supported" >&6; }
13468		if test "$supported" = "yes" ; then
13469			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13470			found="yes"
13471		fi
13472	fi
13473
13474	if test $found = "no" ; then
13475		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13476			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13477		fi
13478
13479		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13480			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13481		fi
13482
13483		CFLAGS="$CFLAGS -Wformat"
13484
13485		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13486printf %s "checking if $CC supports -Wformat... " >&6; }
13487		cacheid=xorg_cv_cc_flag__Wformat
13488		if eval test \${$cacheid+y}
13489then :
13490  printf %s "(cached) " >&6
13491else $as_nop
13492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13493/* end confdefs.h.  */
13494int i;
13495int
13496main (void)
13497{
13498
13499  ;
13500  return 0;
13501}
13502_ACEOF
13503if ac_fn_c_try_link "$LINENO"
13504then :
13505  eval $cacheid=yes
13506else $as_nop
13507  eval $cacheid=no
13508fi
13509rm -f core conftest.err conftest.$ac_objext conftest.beam \
13510    conftest$ac_exeext conftest.$ac_ext
13511fi
13512
13513
13514		CFLAGS="$xorg_testset_save_CFLAGS"
13515
13516		eval supported=\$$cacheid
13517		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13518printf "%s\n" "$supported" >&6; }
13519		if test "$supported" = "yes" ; then
13520			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13521			found="yes"
13522		fi
13523	fi
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541xorg_testset_save_CFLAGS="$CFLAGS"
13542
13543if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13544	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13545	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13546printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13547if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13548then :
13549  printf %s "(cached) " >&6
13550else $as_nop
13551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13552/* end confdefs.h.  */
13553int i;
13554_ACEOF
13555if ac_fn_c_try_compile "$LINENO"
13556then :
13557  xorg_cv_cc_flag_unknown_warning_option=yes
13558else $as_nop
13559  xorg_cv_cc_flag_unknown_warning_option=no
13560fi
13561rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13562fi
13563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13564printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13565	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13566	CFLAGS="$xorg_testset_save_CFLAGS"
13567fi
13568
13569if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13570	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13571		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13572	fi
13573	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13574	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13575printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13576if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13577then :
13578  printf %s "(cached) " >&6
13579else $as_nop
13580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13581/* end confdefs.h.  */
13582int i;
13583_ACEOF
13584if ac_fn_c_try_compile "$LINENO"
13585then :
13586  xorg_cv_cc_flag_unused_command_line_argument=yes
13587else $as_nop
13588  xorg_cv_cc_flag_unused_command_line_argument=no
13589fi
13590rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13591fi
13592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13593printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13594	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13595	CFLAGS="$xorg_testset_save_CFLAGS"
13596fi
13597
13598found="no"
13599
13600	if test $found = "no" ; then
13601		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13602			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13603		fi
13604
13605		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13606			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13607		fi
13608
13609		CFLAGS="$CFLAGS -Wstrict-prototypes"
13610
13611		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13612printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13613		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13614		if eval test \${$cacheid+y}
13615then :
13616  printf %s "(cached) " >&6
13617else $as_nop
13618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13619/* end confdefs.h.  */
13620int i;
13621int
13622main (void)
13623{
13624
13625  ;
13626  return 0;
13627}
13628_ACEOF
13629if ac_fn_c_try_link "$LINENO"
13630then :
13631  eval $cacheid=yes
13632else $as_nop
13633  eval $cacheid=no
13634fi
13635rm -f core conftest.err conftest.$ac_objext conftest.beam \
13636    conftest$ac_exeext conftest.$ac_ext
13637fi
13638
13639
13640		CFLAGS="$xorg_testset_save_CFLAGS"
13641
13642		eval supported=\$$cacheid
13643		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13644printf "%s\n" "$supported" >&6; }
13645		if test "$supported" = "yes" ; then
13646			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13647			found="yes"
13648		fi
13649	fi
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665xorg_testset_save_CFLAGS="$CFLAGS"
13666
13667if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13668	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13669	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13670printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13671if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13672then :
13673  printf %s "(cached) " >&6
13674else $as_nop
13675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13676/* end confdefs.h.  */
13677int i;
13678_ACEOF
13679if ac_fn_c_try_compile "$LINENO"
13680then :
13681  xorg_cv_cc_flag_unknown_warning_option=yes
13682else $as_nop
13683  xorg_cv_cc_flag_unknown_warning_option=no
13684fi
13685rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13686fi
13687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13688printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13689	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13690	CFLAGS="$xorg_testset_save_CFLAGS"
13691fi
13692
13693if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13694	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13695		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13696	fi
13697	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13698	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13699printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13700if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13701then :
13702  printf %s "(cached) " >&6
13703else $as_nop
13704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13705/* end confdefs.h.  */
13706int i;
13707_ACEOF
13708if ac_fn_c_try_compile "$LINENO"
13709then :
13710  xorg_cv_cc_flag_unused_command_line_argument=yes
13711else $as_nop
13712  xorg_cv_cc_flag_unused_command_line_argument=no
13713fi
13714rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13715fi
13716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13717printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13718	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13719	CFLAGS="$xorg_testset_save_CFLAGS"
13720fi
13721
13722found="no"
13723
13724	if test $found = "no" ; then
13725		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13726			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13727		fi
13728
13729		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13730			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13731		fi
13732
13733		CFLAGS="$CFLAGS -Wmissing-prototypes"
13734
13735		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13736printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13737		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13738		if eval test \${$cacheid+y}
13739then :
13740  printf %s "(cached) " >&6
13741else $as_nop
13742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13743/* end confdefs.h.  */
13744int i;
13745int
13746main (void)
13747{
13748
13749  ;
13750  return 0;
13751}
13752_ACEOF
13753if ac_fn_c_try_link "$LINENO"
13754then :
13755  eval $cacheid=yes
13756else $as_nop
13757  eval $cacheid=no
13758fi
13759rm -f core conftest.err conftest.$ac_objext conftest.beam \
13760    conftest$ac_exeext conftest.$ac_ext
13761fi
13762
13763
13764		CFLAGS="$xorg_testset_save_CFLAGS"
13765
13766		eval supported=\$$cacheid
13767		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13768printf "%s\n" "$supported" >&6; }
13769		if test "$supported" = "yes" ; then
13770			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13771			found="yes"
13772		fi
13773	fi
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789xorg_testset_save_CFLAGS="$CFLAGS"
13790
13791if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13792	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13793	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13794printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13795if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13796then :
13797  printf %s "(cached) " >&6
13798else $as_nop
13799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13800/* end confdefs.h.  */
13801int i;
13802_ACEOF
13803if ac_fn_c_try_compile "$LINENO"
13804then :
13805  xorg_cv_cc_flag_unknown_warning_option=yes
13806else $as_nop
13807  xorg_cv_cc_flag_unknown_warning_option=no
13808fi
13809rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13810fi
13811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13812printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13813	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13814	CFLAGS="$xorg_testset_save_CFLAGS"
13815fi
13816
13817if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13818	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13819		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13820	fi
13821	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13822	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13823printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13824if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13825then :
13826  printf %s "(cached) " >&6
13827else $as_nop
13828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13829/* end confdefs.h.  */
13830int i;
13831_ACEOF
13832if ac_fn_c_try_compile "$LINENO"
13833then :
13834  xorg_cv_cc_flag_unused_command_line_argument=yes
13835else $as_nop
13836  xorg_cv_cc_flag_unused_command_line_argument=no
13837fi
13838rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13839fi
13840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13841printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13842	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13843	CFLAGS="$xorg_testset_save_CFLAGS"
13844fi
13845
13846found="no"
13847
13848	if test $found = "no" ; then
13849		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13850			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13851		fi
13852
13853		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13854			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13855		fi
13856
13857		CFLAGS="$CFLAGS -Wnested-externs"
13858
13859		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13860printf %s "checking if $CC supports -Wnested-externs... " >&6; }
13861		cacheid=xorg_cv_cc_flag__Wnested_externs
13862		if eval test \${$cacheid+y}
13863then :
13864  printf %s "(cached) " >&6
13865else $as_nop
13866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13867/* end confdefs.h.  */
13868int i;
13869int
13870main (void)
13871{
13872
13873  ;
13874  return 0;
13875}
13876_ACEOF
13877if ac_fn_c_try_link "$LINENO"
13878then :
13879  eval $cacheid=yes
13880else $as_nop
13881  eval $cacheid=no
13882fi
13883rm -f core conftest.err conftest.$ac_objext conftest.beam \
13884    conftest$ac_exeext conftest.$ac_ext
13885fi
13886
13887
13888		CFLAGS="$xorg_testset_save_CFLAGS"
13889
13890		eval supported=\$$cacheid
13891		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13892printf "%s\n" "$supported" >&6; }
13893		if test "$supported" = "yes" ; then
13894			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13895			found="yes"
13896		fi
13897	fi
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913xorg_testset_save_CFLAGS="$CFLAGS"
13914
13915if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13916	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13917	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13918printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13919if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13920then :
13921  printf %s "(cached) " >&6
13922else $as_nop
13923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13924/* end confdefs.h.  */
13925int i;
13926_ACEOF
13927if ac_fn_c_try_compile "$LINENO"
13928then :
13929  xorg_cv_cc_flag_unknown_warning_option=yes
13930else $as_nop
13931  xorg_cv_cc_flag_unknown_warning_option=no
13932fi
13933rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13934fi
13935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13936printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13937	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13938	CFLAGS="$xorg_testset_save_CFLAGS"
13939fi
13940
13941if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13942	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13943		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13944	fi
13945	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13946	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13947printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13948if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13949then :
13950  printf %s "(cached) " >&6
13951else $as_nop
13952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13953/* end confdefs.h.  */
13954int i;
13955_ACEOF
13956if ac_fn_c_try_compile "$LINENO"
13957then :
13958  xorg_cv_cc_flag_unused_command_line_argument=yes
13959else $as_nop
13960  xorg_cv_cc_flag_unused_command_line_argument=no
13961fi
13962rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13963fi
13964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13965printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13966	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13967	CFLAGS="$xorg_testset_save_CFLAGS"
13968fi
13969
13970found="no"
13971
13972	if test $found = "no" ; then
13973		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13974			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13975		fi
13976
13977		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13978			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13979		fi
13980
13981		CFLAGS="$CFLAGS -Wbad-function-cast"
13982
13983		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13984printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
13985		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13986		if eval test \${$cacheid+y}
13987then :
13988  printf %s "(cached) " >&6
13989else $as_nop
13990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13991/* end confdefs.h.  */
13992int i;
13993int
13994main (void)
13995{
13996
13997  ;
13998  return 0;
13999}
14000_ACEOF
14001if ac_fn_c_try_link "$LINENO"
14002then :
14003  eval $cacheid=yes
14004else $as_nop
14005  eval $cacheid=no
14006fi
14007rm -f core conftest.err conftest.$ac_objext conftest.beam \
14008    conftest$ac_exeext conftest.$ac_ext
14009fi
14010
14011
14012		CFLAGS="$xorg_testset_save_CFLAGS"
14013
14014		eval supported=\$$cacheid
14015		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14016printf "%s\n" "$supported" >&6; }
14017		if test "$supported" = "yes" ; then
14018			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14019			found="yes"
14020		fi
14021	fi
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037xorg_testset_save_CFLAGS="$CFLAGS"
14038
14039if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14040	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14041	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14042printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14043if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14044then :
14045  printf %s "(cached) " >&6
14046else $as_nop
14047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14048/* end confdefs.h.  */
14049int i;
14050_ACEOF
14051if ac_fn_c_try_compile "$LINENO"
14052then :
14053  xorg_cv_cc_flag_unknown_warning_option=yes
14054else $as_nop
14055  xorg_cv_cc_flag_unknown_warning_option=no
14056fi
14057rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14058fi
14059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14060printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14061	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14062	CFLAGS="$xorg_testset_save_CFLAGS"
14063fi
14064
14065if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14066	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14067		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14068	fi
14069	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14070	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14071printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14072if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14073then :
14074  printf %s "(cached) " >&6
14075else $as_nop
14076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14077/* end confdefs.h.  */
14078int i;
14079_ACEOF
14080if ac_fn_c_try_compile "$LINENO"
14081then :
14082  xorg_cv_cc_flag_unused_command_line_argument=yes
14083else $as_nop
14084  xorg_cv_cc_flag_unused_command_line_argument=no
14085fi
14086rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14087fi
14088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14089printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14090	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14091	CFLAGS="$xorg_testset_save_CFLAGS"
14092fi
14093
14094found="no"
14095
14096	if test $found = "no" ; then
14097		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14098			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14099		fi
14100
14101		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14102			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14103		fi
14104
14105		CFLAGS="$CFLAGS -Wold-style-definition"
14106
14107		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14108printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14109		cacheid=xorg_cv_cc_flag__Wold_style_definition
14110		if eval test \${$cacheid+y}
14111then :
14112  printf %s "(cached) " >&6
14113else $as_nop
14114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14115/* end confdefs.h.  */
14116int i;
14117int
14118main (void)
14119{
14120
14121  ;
14122  return 0;
14123}
14124_ACEOF
14125if ac_fn_c_try_link "$LINENO"
14126then :
14127  eval $cacheid=yes
14128else $as_nop
14129  eval $cacheid=no
14130fi
14131rm -f core conftest.err conftest.$ac_objext conftest.beam \
14132    conftest$ac_exeext conftest.$ac_ext
14133fi
14134
14135
14136		CFLAGS="$xorg_testset_save_CFLAGS"
14137
14138		eval supported=\$$cacheid
14139		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14140printf "%s\n" "$supported" >&6; }
14141		if test "$supported" = "yes" ; then
14142			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14143			found="yes"
14144		fi
14145	fi
14146
14147	if test $found = "no" ; then
14148		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14149			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14150		fi
14151
14152		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14153			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14154		fi
14155
14156		CFLAGS="$CFLAGS -fd"
14157
14158		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14159printf %s "checking if $CC supports -fd... " >&6; }
14160		cacheid=xorg_cv_cc_flag__fd
14161		if eval test \${$cacheid+y}
14162then :
14163  printf %s "(cached) " >&6
14164else $as_nop
14165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14166/* end confdefs.h.  */
14167int i;
14168int
14169main (void)
14170{
14171
14172  ;
14173  return 0;
14174}
14175_ACEOF
14176if ac_fn_c_try_link "$LINENO"
14177then :
14178  eval $cacheid=yes
14179else $as_nop
14180  eval $cacheid=no
14181fi
14182rm -f core conftest.err conftest.$ac_objext conftest.beam \
14183    conftest$ac_exeext conftest.$ac_ext
14184fi
14185
14186
14187		CFLAGS="$xorg_testset_save_CFLAGS"
14188
14189		eval supported=\$$cacheid
14190		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14191printf "%s\n" "$supported" >&6; }
14192		if test "$supported" = "yes" ; then
14193			BASE_CFLAGS="$BASE_CFLAGS -fd"
14194			found="yes"
14195		fi
14196	fi
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212xorg_testset_save_CFLAGS="$CFLAGS"
14213
14214if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14215	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14216	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14217printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14218if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14219then :
14220  printf %s "(cached) " >&6
14221else $as_nop
14222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14223/* end confdefs.h.  */
14224int i;
14225_ACEOF
14226if ac_fn_c_try_compile "$LINENO"
14227then :
14228  xorg_cv_cc_flag_unknown_warning_option=yes
14229else $as_nop
14230  xorg_cv_cc_flag_unknown_warning_option=no
14231fi
14232rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14233fi
14234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14235printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14236	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14237	CFLAGS="$xorg_testset_save_CFLAGS"
14238fi
14239
14240if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14241	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14242		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14243	fi
14244	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14245	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14246printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14247if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14248then :
14249  printf %s "(cached) " >&6
14250else $as_nop
14251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14252/* end confdefs.h.  */
14253int i;
14254_ACEOF
14255if ac_fn_c_try_compile "$LINENO"
14256then :
14257  xorg_cv_cc_flag_unused_command_line_argument=yes
14258else $as_nop
14259  xorg_cv_cc_flag_unused_command_line_argument=no
14260fi
14261rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14262fi
14263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14264printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14265	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14266	CFLAGS="$xorg_testset_save_CFLAGS"
14267fi
14268
14269found="no"
14270
14271	if test $found = "no" ; then
14272		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14273			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14274		fi
14275
14276		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14277			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14278		fi
14279
14280		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14281
14282		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14283printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14284		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14285		if eval test \${$cacheid+y}
14286then :
14287  printf %s "(cached) " >&6
14288else $as_nop
14289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14290/* end confdefs.h.  */
14291int i;
14292int
14293main (void)
14294{
14295
14296  ;
14297  return 0;
14298}
14299_ACEOF
14300if ac_fn_c_try_link "$LINENO"
14301then :
14302  eval $cacheid=yes
14303else $as_nop
14304  eval $cacheid=no
14305fi
14306rm -f core conftest.err conftest.$ac_objext conftest.beam \
14307    conftest$ac_exeext conftest.$ac_ext
14308fi
14309
14310
14311		CFLAGS="$xorg_testset_save_CFLAGS"
14312
14313		eval supported=\$$cacheid
14314		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14315printf "%s\n" "$supported" >&6; }
14316		if test "$supported" = "yes" ; then
14317			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14318			found="yes"
14319		fi
14320	fi
14321
14322
14323
14324
14325
14326# This chunk adds additional warnings that could catch undesired effects.
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340xorg_testset_save_CFLAGS="$CFLAGS"
14341
14342if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14343	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14344	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14345printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14346if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14347then :
14348  printf %s "(cached) " >&6
14349else $as_nop
14350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14351/* end confdefs.h.  */
14352int i;
14353_ACEOF
14354if ac_fn_c_try_compile "$LINENO"
14355then :
14356  xorg_cv_cc_flag_unknown_warning_option=yes
14357else $as_nop
14358  xorg_cv_cc_flag_unknown_warning_option=no
14359fi
14360rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14361fi
14362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14363printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14364	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14365	CFLAGS="$xorg_testset_save_CFLAGS"
14366fi
14367
14368if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14369	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14370		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14371	fi
14372	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14373	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14374printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14375if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14376then :
14377  printf %s "(cached) " >&6
14378else $as_nop
14379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14380/* end confdefs.h.  */
14381int i;
14382_ACEOF
14383if ac_fn_c_try_compile "$LINENO"
14384then :
14385  xorg_cv_cc_flag_unused_command_line_argument=yes
14386else $as_nop
14387  xorg_cv_cc_flag_unused_command_line_argument=no
14388fi
14389rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14390fi
14391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14392printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14393	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14394	CFLAGS="$xorg_testset_save_CFLAGS"
14395fi
14396
14397found="no"
14398
14399	if test $found = "no" ; then
14400		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14401			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14402		fi
14403
14404		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14405			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14406		fi
14407
14408		CFLAGS="$CFLAGS -Wunused"
14409
14410		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14411printf %s "checking if $CC supports -Wunused... " >&6; }
14412		cacheid=xorg_cv_cc_flag__Wunused
14413		if eval test \${$cacheid+y}
14414then :
14415  printf %s "(cached) " >&6
14416else $as_nop
14417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14418/* end confdefs.h.  */
14419int i;
14420int
14421main (void)
14422{
14423
14424  ;
14425  return 0;
14426}
14427_ACEOF
14428if ac_fn_c_try_link "$LINENO"
14429then :
14430  eval $cacheid=yes
14431else $as_nop
14432  eval $cacheid=no
14433fi
14434rm -f core conftest.err conftest.$ac_objext conftest.beam \
14435    conftest$ac_exeext conftest.$ac_ext
14436fi
14437
14438
14439		CFLAGS="$xorg_testset_save_CFLAGS"
14440
14441		eval supported=\$$cacheid
14442		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14443printf "%s\n" "$supported" >&6; }
14444		if test "$supported" = "yes" ; then
14445			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14446			found="yes"
14447		fi
14448	fi
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464xorg_testset_save_CFLAGS="$CFLAGS"
14465
14466if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14467	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14468	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14469printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14470if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14471then :
14472  printf %s "(cached) " >&6
14473else $as_nop
14474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14475/* end confdefs.h.  */
14476int i;
14477_ACEOF
14478if ac_fn_c_try_compile "$LINENO"
14479then :
14480  xorg_cv_cc_flag_unknown_warning_option=yes
14481else $as_nop
14482  xorg_cv_cc_flag_unknown_warning_option=no
14483fi
14484rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14485fi
14486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14487printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14488	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14489	CFLAGS="$xorg_testset_save_CFLAGS"
14490fi
14491
14492if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14493	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14494		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14495	fi
14496	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14497	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14498printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14499if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14500then :
14501  printf %s "(cached) " >&6
14502else $as_nop
14503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14504/* end confdefs.h.  */
14505int i;
14506_ACEOF
14507if ac_fn_c_try_compile "$LINENO"
14508then :
14509  xorg_cv_cc_flag_unused_command_line_argument=yes
14510else $as_nop
14511  xorg_cv_cc_flag_unused_command_line_argument=no
14512fi
14513rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14514fi
14515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14516printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14517	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14518	CFLAGS="$xorg_testset_save_CFLAGS"
14519fi
14520
14521found="no"
14522
14523	if test $found = "no" ; then
14524		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14525			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14526		fi
14527
14528		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14529			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14530		fi
14531
14532		CFLAGS="$CFLAGS -Wuninitialized"
14533
14534		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14535printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14536		cacheid=xorg_cv_cc_flag__Wuninitialized
14537		if eval test \${$cacheid+y}
14538then :
14539  printf %s "(cached) " >&6
14540else $as_nop
14541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14542/* end confdefs.h.  */
14543int i;
14544int
14545main (void)
14546{
14547
14548  ;
14549  return 0;
14550}
14551_ACEOF
14552if ac_fn_c_try_link "$LINENO"
14553then :
14554  eval $cacheid=yes
14555else $as_nop
14556  eval $cacheid=no
14557fi
14558rm -f core conftest.err conftest.$ac_objext conftest.beam \
14559    conftest$ac_exeext conftest.$ac_ext
14560fi
14561
14562
14563		CFLAGS="$xorg_testset_save_CFLAGS"
14564
14565		eval supported=\$$cacheid
14566		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14567printf "%s\n" "$supported" >&6; }
14568		if test "$supported" = "yes" ; then
14569			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14570			found="yes"
14571		fi
14572	fi
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588xorg_testset_save_CFLAGS="$CFLAGS"
14589
14590if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14591	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14592	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14593printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14594if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14595then :
14596  printf %s "(cached) " >&6
14597else $as_nop
14598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14599/* end confdefs.h.  */
14600int i;
14601_ACEOF
14602if ac_fn_c_try_compile "$LINENO"
14603then :
14604  xorg_cv_cc_flag_unknown_warning_option=yes
14605else $as_nop
14606  xorg_cv_cc_flag_unknown_warning_option=no
14607fi
14608rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14609fi
14610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14611printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14612	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14613	CFLAGS="$xorg_testset_save_CFLAGS"
14614fi
14615
14616if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14617	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14618		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14619	fi
14620	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14621	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14622printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14623if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14624then :
14625  printf %s "(cached) " >&6
14626else $as_nop
14627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14628/* end confdefs.h.  */
14629int i;
14630_ACEOF
14631if ac_fn_c_try_compile "$LINENO"
14632then :
14633  xorg_cv_cc_flag_unused_command_line_argument=yes
14634else $as_nop
14635  xorg_cv_cc_flag_unused_command_line_argument=no
14636fi
14637rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14638fi
14639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14640printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14641	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14642	CFLAGS="$xorg_testset_save_CFLAGS"
14643fi
14644
14645found="no"
14646
14647	if test $found = "no" ; then
14648		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14649			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14650		fi
14651
14652		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14653			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14654		fi
14655
14656		CFLAGS="$CFLAGS -Wshadow"
14657
14658		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14659printf %s "checking if $CC supports -Wshadow... " >&6; }
14660		cacheid=xorg_cv_cc_flag__Wshadow
14661		if eval test \${$cacheid+y}
14662then :
14663  printf %s "(cached) " >&6
14664else $as_nop
14665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14666/* end confdefs.h.  */
14667int i;
14668int
14669main (void)
14670{
14671
14672  ;
14673  return 0;
14674}
14675_ACEOF
14676if ac_fn_c_try_link "$LINENO"
14677then :
14678  eval $cacheid=yes
14679else $as_nop
14680  eval $cacheid=no
14681fi
14682rm -f core conftest.err conftest.$ac_objext conftest.beam \
14683    conftest$ac_exeext conftest.$ac_ext
14684fi
14685
14686
14687		CFLAGS="$xorg_testset_save_CFLAGS"
14688
14689		eval supported=\$$cacheid
14690		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14691printf "%s\n" "$supported" >&6; }
14692		if test "$supported" = "yes" ; then
14693			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14694			found="yes"
14695		fi
14696	fi
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712xorg_testset_save_CFLAGS="$CFLAGS"
14713
14714if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14715	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14716	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14717printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14718if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14719then :
14720  printf %s "(cached) " >&6
14721else $as_nop
14722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14723/* end confdefs.h.  */
14724int i;
14725_ACEOF
14726if ac_fn_c_try_compile "$LINENO"
14727then :
14728  xorg_cv_cc_flag_unknown_warning_option=yes
14729else $as_nop
14730  xorg_cv_cc_flag_unknown_warning_option=no
14731fi
14732rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14733fi
14734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14735printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14736	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14737	CFLAGS="$xorg_testset_save_CFLAGS"
14738fi
14739
14740if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14741	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14742		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14743	fi
14744	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14745	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14746printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14747if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14748then :
14749  printf %s "(cached) " >&6
14750else $as_nop
14751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14752/* end confdefs.h.  */
14753int i;
14754_ACEOF
14755if ac_fn_c_try_compile "$LINENO"
14756then :
14757  xorg_cv_cc_flag_unused_command_line_argument=yes
14758else $as_nop
14759  xorg_cv_cc_flag_unused_command_line_argument=no
14760fi
14761rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14762fi
14763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14764printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14765	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14766	CFLAGS="$xorg_testset_save_CFLAGS"
14767fi
14768
14769found="no"
14770
14771	if test $found = "no" ; then
14772		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14773			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14774		fi
14775
14776		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14777			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14778		fi
14779
14780		CFLAGS="$CFLAGS -Wmissing-noreturn"
14781
14782		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14783printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14784		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14785		if eval test \${$cacheid+y}
14786then :
14787  printf %s "(cached) " >&6
14788else $as_nop
14789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14790/* end confdefs.h.  */
14791int i;
14792int
14793main (void)
14794{
14795
14796  ;
14797  return 0;
14798}
14799_ACEOF
14800if ac_fn_c_try_link "$LINENO"
14801then :
14802  eval $cacheid=yes
14803else $as_nop
14804  eval $cacheid=no
14805fi
14806rm -f core conftest.err conftest.$ac_objext conftest.beam \
14807    conftest$ac_exeext conftest.$ac_ext
14808fi
14809
14810
14811		CFLAGS="$xorg_testset_save_CFLAGS"
14812
14813		eval supported=\$$cacheid
14814		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14815printf "%s\n" "$supported" >&6; }
14816		if test "$supported" = "yes" ; then
14817			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14818			found="yes"
14819		fi
14820	fi
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836xorg_testset_save_CFLAGS="$CFLAGS"
14837
14838if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14839	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14840	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14841printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14842if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14843then :
14844  printf %s "(cached) " >&6
14845else $as_nop
14846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14847/* end confdefs.h.  */
14848int i;
14849_ACEOF
14850if ac_fn_c_try_compile "$LINENO"
14851then :
14852  xorg_cv_cc_flag_unknown_warning_option=yes
14853else $as_nop
14854  xorg_cv_cc_flag_unknown_warning_option=no
14855fi
14856rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14857fi
14858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14859printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14860	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14861	CFLAGS="$xorg_testset_save_CFLAGS"
14862fi
14863
14864if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14865	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14866		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14867	fi
14868	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14869	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14870printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14871if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14872then :
14873  printf %s "(cached) " >&6
14874else $as_nop
14875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14876/* end confdefs.h.  */
14877int i;
14878_ACEOF
14879if ac_fn_c_try_compile "$LINENO"
14880then :
14881  xorg_cv_cc_flag_unused_command_line_argument=yes
14882else $as_nop
14883  xorg_cv_cc_flag_unused_command_line_argument=no
14884fi
14885rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14886fi
14887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14888printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14889	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14890	CFLAGS="$xorg_testset_save_CFLAGS"
14891fi
14892
14893found="no"
14894
14895	if test $found = "no" ; then
14896		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14897			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14898		fi
14899
14900		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14901			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14902		fi
14903
14904		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14905
14906		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14907printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14908		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14909		if eval test \${$cacheid+y}
14910then :
14911  printf %s "(cached) " >&6
14912else $as_nop
14913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14914/* end confdefs.h.  */
14915int i;
14916int
14917main (void)
14918{
14919
14920  ;
14921  return 0;
14922}
14923_ACEOF
14924if ac_fn_c_try_link "$LINENO"
14925then :
14926  eval $cacheid=yes
14927else $as_nop
14928  eval $cacheid=no
14929fi
14930rm -f core conftest.err conftest.$ac_objext conftest.beam \
14931    conftest$ac_exeext conftest.$ac_ext
14932fi
14933
14934
14935		CFLAGS="$xorg_testset_save_CFLAGS"
14936
14937		eval supported=\$$cacheid
14938		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14939printf "%s\n" "$supported" >&6; }
14940		if test "$supported" = "yes" ; then
14941			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14942			found="yes"
14943		fi
14944	fi
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960xorg_testset_save_CFLAGS="$CFLAGS"
14961
14962if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14963	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14964	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14965printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14966if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14967then :
14968  printf %s "(cached) " >&6
14969else $as_nop
14970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14971/* end confdefs.h.  */
14972int i;
14973_ACEOF
14974if ac_fn_c_try_compile "$LINENO"
14975then :
14976  xorg_cv_cc_flag_unknown_warning_option=yes
14977else $as_nop
14978  xorg_cv_cc_flag_unknown_warning_option=no
14979fi
14980rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14981fi
14982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14983printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14984	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14985	CFLAGS="$xorg_testset_save_CFLAGS"
14986fi
14987
14988if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14989	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14990		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14991	fi
14992	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14993	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14994printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14995if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14996then :
14997  printf %s "(cached) " >&6
14998else $as_nop
14999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15000/* end confdefs.h.  */
15001int i;
15002_ACEOF
15003if ac_fn_c_try_compile "$LINENO"
15004then :
15005  xorg_cv_cc_flag_unused_command_line_argument=yes
15006else $as_nop
15007  xorg_cv_cc_flag_unused_command_line_argument=no
15008fi
15009rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15010fi
15011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15012printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15013	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15014	CFLAGS="$xorg_testset_save_CFLAGS"
15015fi
15016
15017found="no"
15018
15019	if test $found = "no" ; then
15020		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15021			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15022		fi
15023
15024		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15025			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15026		fi
15027
15028		CFLAGS="$CFLAGS -Wredundant-decls"
15029
15030		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15031printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15032		cacheid=xorg_cv_cc_flag__Wredundant_decls
15033		if eval test \${$cacheid+y}
15034then :
15035  printf %s "(cached) " >&6
15036else $as_nop
15037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15038/* end confdefs.h.  */
15039int i;
15040int
15041main (void)
15042{
15043
15044  ;
15045  return 0;
15046}
15047_ACEOF
15048if ac_fn_c_try_link "$LINENO"
15049then :
15050  eval $cacheid=yes
15051else $as_nop
15052  eval $cacheid=no
15053fi
15054rm -f core conftest.err conftest.$ac_objext conftest.beam \
15055    conftest$ac_exeext conftest.$ac_ext
15056fi
15057
15058
15059		CFLAGS="$xorg_testset_save_CFLAGS"
15060
15061		eval supported=\$$cacheid
15062		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15063printf "%s\n" "$supported" >&6; }
15064		if test "$supported" = "yes" ; then
15065			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15066			found="yes"
15067		fi
15068	fi
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084xorg_testset_save_CFLAGS="$CFLAGS"
15085
15086if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15087	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15088	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15089printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15090if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15091then :
15092  printf %s "(cached) " >&6
15093else $as_nop
15094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15095/* end confdefs.h.  */
15096int i;
15097_ACEOF
15098if ac_fn_c_try_compile "$LINENO"
15099then :
15100  xorg_cv_cc_flag_unknown_warning_option=yes
15101else $as_nop
15102  xorg_cv_cc_flag_unknown_warning_option=no
15103fi
15104rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15105fi
15106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15107printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15108	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15109	CFLAGS="$xorg_testset_save_CFLAGS"
15110fi
15111
15112if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15113	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15114		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15115	fi
15116	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15117	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15118printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15119if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15120then :
15121  printf %s "(cached) " >&6
15122else $as_nop
15123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15124/* end confdefs.h.  */
15125int i;
15126_ACEOF
15127if ac_fn_c_try_compile "$LINENO"
15128then :
15129  xorg_cv_cc_flag_unused_command_line_argument=yes
15130else $as_nop
15131  xorg_cv_cc_flag_unused_command_line_argument=no
15132fi
15133rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15134fi
15135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15136printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15137	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15138	CFLAGS="$xorg_testset_save_CFLAGS"
15139fi
15140
15141found="no"
15142
15143	if test $found = "no" ; then
15144		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15145			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15146		fi
15147
15148		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15149			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15150		fi
15151
15152		CFLAGS="$CFLAGS -Wlogical-op"
15153
15154		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15155printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15156		cacheid=xorg_cv_cc_flag__Wlogical_op
15157		if eval test \${$cacheid+y}
15158then :
15159  printf %s "(cached) " >&6
15160else $as_nop
15161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15162/* end confdefs.h.  */
15163int i;
15164int
15165main (void)
15166{
15167
15168  ;
15169  return 0;
15170}
15171_ACEOF
15172if ac_fn_c_try_link "$LINENO"
15173then :
15174  eval $cacheid=yes
15175else $as_nop
15176  eval $cacheid=no
15177fi
15178rm -f core conftest.err conftest.$ac_objext conftest.beam \
15179    conftest$ac_exeext conftest.$ac_ext
15180fi
15181
15182
15183		CFLAGS="$xorg_testset_save_CFLAGS"
15184
15185		eval supported=\$$cacheid
15186		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15187printf "%s\n" "$supported" >&6; }
15188		if test "$supported" = "yes" ; then
15189			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15190			found="yes"
15191		fi
15192	fi
15193
15194
15195
15196# These are currently disabled because they are noisy.  They will be enabled
15197# in the future once the codebase is sufficiently modernized to silence
15198# them.  For now, I don't want them to drown out the other warnings.
15199# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15200# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15201# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15202
15203# Turn some warnings into errors, so we don't accidently get successful builds
15204# when there are problems that should be fixed.
15205
15206if test "x$SELECTIVE_WERROR" = "xyes" ; then
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220xorg_testset_save_CFLAGS="$CFLAGS"
15221
15222if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15223	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15224	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15225printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15226if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15227then :
15228  printf %s "(cached) " >&6
15229else $as_nop
15230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15231/* end confdefs.h.  */
15232int i;
15233_ACEOF
15234if ac_fn_c_try_compile "$LINENO"
15235then :
15236  xorg_cv_cc_flag_unknown_warning_option=yes
15237else $as_nop
15238  xorg_cv_cc_flag_unknown_warning_option=no
15239fi
15240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15241fi
15242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15243printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15244	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15245	CFLAGS="$xorg_testset_save_CFLAGS"
15246fi
15247
15248if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15249	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15250		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15251	fi
15252	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15253	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15254printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15255if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15256then :
15257  printf %s "(cached) " >&6
15258else $as_nop
15259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15260/* end confdefs.h.  */
15261int i;
15262_ACEOF
15263if ac_fn_c_try_compile "$LINENO"
15264then :
15265  xorg_cv_cc_flag_unused_command_line_argument=yes
15266else $as_nop
15267  xorg_cv_cc_flag_unused_command_line_argument=no
15268fi
15269rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15270fi
15271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15272printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15273	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15274	CFLAGS="$xorg_testset_save_CFLAGS"
15275fi
15276
15277found="no"
15278
15279	if test $found = "no" ; then
15280		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15281			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15282		fi
15283
15284		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15285			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15286		fi
15287
15288		CFLAGS="$CFLAGS -Werror=implicit"
15289
15290		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15291printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15292		cacheid=xorg_cv_cc_flag__Werror_implicit
15293		if eval test \${$cacheid+y}
15294then :
15295  printf %s "(cached) " >&6
15296else $as_nop
15297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15298/* end confdefs.h.  */
15299int i;
15300int
15301main (void)
15302{
15303
15304  ;
15305  return 0;
15306}
15307_ACEOF
15308if ac_fn_c_try_link "$LINENO"
15309then :
15310  eval $cacheid=yes
15311else $as_nop
15312  eval $cacheid=no
15313fi
15314rm -f core conftest.err conftest.$ac_objext conftest.beam \
15315    conftest$ac_exeext conftest.$ac_ext
15316fi
15317
15318
15319		CFLAGS="$xorg_testset_save_CFLAGS"
15320
15321		eval supported=\$$cacheid
15322		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15323printf "%s\n" "$supported" >&6; }
15324		if test "$supported" = "yes" ; then
15325			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15326			found="yes"
15327		fi
15328	fi
15329
15330	if test $found = "no" ; then
15331		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15332			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15333		fi
15334
15335		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15336			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15337		fi
15338
15339		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15340
15341		{ 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
15342printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15343		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15344		if eval test \${$cacheid+y}
15345then :
15346  printf %s "(cached) " >&6
15347else $as_nop
15348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15349/* end confdefs.h.  */
15350int i;
15351int
15352main (void)
15353{
15354
15355  ;
15356  return 0;
15357}
15358_ACEOF
15359if ac_fn_c_try_link "$LINENO"
15360then :
15361  eval $cacheid=yes
15362else $as_nop
15363  eval $cacheid=no
15364fi
15365rm -f core conftest.err conftest.$ac_objext conftest.beam \
15366    conftest$ac_exeext conftest.$ac_ext
15367fi
15368
15369
15370		CFLAGS="$xorg_testset_save_CFLAGS"
15371
15372		eval supported=\$$cacheid
15373		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15374printf "%s\n" "$supported" >&6; }
15375		if test "$supported" = "yes" ; then
15376			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15377			found="yes"
15378		fi
15379	fi
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395xorg_testset_save_CFLAGS="$CFLAGS"
15396
15397if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15398	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15399	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15400printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15401if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15402then :
15403  printf %s "(cached) " >&6
15404else $as_nop
15405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15406/* end confdefs.h.  */
15407int i;
15408_ACEOF
15409if ac_fn_c_try_compile "$LINENO"
15410then :
15411  xorg_cv_cc_flag_unknown_warning_option=yes
15412else $as_nop
15413  xorg_cv_cc_flag_unknown_warning_option=no
15414fi
15415rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15416fi
15417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15418printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15419	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15420	CFLAGS="$xorg_testset_save_CFLAGS"
15421fi
15422
15423if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15424	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15425		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15426	fi
15427	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15428	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15429printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15430if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15431then :
15432  printf %s "(cached) " >&6
15433else $as_nop
15434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15435/* end confdefs.h.  */
15436int i;
15437_ACEOF
15438if ac_fn_c_try_compile "$LINENO"
15439then :
15440  xorg_cv_cc_flag_unused_command_line_argument=yes
15441else $as_nop
15442  xorg_cv_cc_flag_unused_command_line_argument=no
15443fi
15444rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15445fi
15446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15447printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15448	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15449	CFLAGS="$xorg_testset_save_CFLAGS"
15450fi
15451
15452found="no"
15453
15454	if test $found = "no" ; then
15455		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15456			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15457		fi
15458
15459		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15460			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15461		fi
15462
15463		CFLAGS="$CFLAGS -Werror=nonnull"
15464
15465		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15466printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15467		cacheid=xorg_cv_cc_flag__Werror_nonnull
15468		if eval test \${$cacheid+y}
15469then :
15470  printf %s "(cached) " >&6
15471else $as_nop
15472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15473/* end confdefs.h.  */
15474int i;
15475int
15476main (void)
15477{
15478
15479  ;
15480  return 0;
15481}
15482_ACEOF
15483if ac_fn_c_try_link "$LINENO"
15484then :
15485  eval $cacheid=yes
15486else $as_nop
15487  eval $cacheid=no
15488fi
15489rm -f core conftest.err conftest.$ac_objext conftest.beam \
15490    conftest$ac_exeext conftest.$ac_ext
15491fi
15492
15493
15494		CFLAGS="$xorg_testset_save_CFLAGS"
15495
15496		eval supported=\$$cacheid
15497		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15498printf "%s\n" "$supported" >&6; }
15499		if test "$supported" = "yes" ; then
15500			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15501			found="yes"
15502		fi
15503	fi
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519xorg_testset_save_CFLAGS="$CFLAGS"
15520
15521if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15522	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15523	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15524printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15525if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15526then :
15527  printf %s "(cached) " >&6
15528else $as_nop
15529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15530/* end confdefs.h.  */
15531int i;
15532_ACEOF
15533if ac_fn_c_try_compile "$LINENO"
15534then :
15535  xorg_cv_cc_flag_unknown_warning_option=yes
15536else $as_nop
15537  xorg_cv_cc_flag_unknown_warning_option=no
15538fi
15539rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15540fi
15541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15542printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15543	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15544	CFLAGS="$xorg_testset_save_CFLAGS"
15545fi
15546
15547if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15548	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15549		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15550	fi
15551	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15552	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15553printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15554if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15555then :
15556  printf %s "(cached) " >&6
15557else $as_nop
15558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15559/* end confdefs.h.  */
15560int i;
15561_ACEOF
15562if ac_fn_c_try_compile "$LINENO"
15563then :
15564  xorg_cv_cc_flag_unused_command_line_argument=yes
15565else $as_nop
15566  xorg_cv_cc_flag_unused_command_line_argument=no
15567fi
15568rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15569fi
15570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15571printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15572	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15573	CFLAGS="$xorg_testset_save_CFLAGS"
15574fi
15575
15576found="no"
15577
15578	if test $found = "no" ; then
15579		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15580			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15581		fi
15582
15583		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15584			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15585		fi
15586
15587		CFLAGS="$CFLAGS -Werror=init-self"
15588
15589		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15590printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15591		cacheid=xorg_cv_cc_flag__Werror_init_self
15592		if eval test \${$cacheid+y}
15593then :
15594  printf %s "(cached) " >&6
15595else $as_nop
15596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15597/* end confdefs.h.  */
15598int i;
15599int
15600main (void)
15601{
15602
15603  ;
15604  return 0;
15605}
15606_ACEOF
15607if ac_fn_c_try_link "$LINENO"
15608then :
15609  eval $cacheid=yes
15610else $as_nop
15611  eval $cacheid=no
15612fi
15613rm -f core conftest.err conftest.$ac_objext conftest.beam \
15614    conftest$ac_exeext conftest.$ac_ext
15615fi
15616
15617
15618		CFLAGS="$xorg_testset_save_CFLAGS"
15619
15620		eval supported=\$$cacheid
15621		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15622printf "%s\n" "$supported" >&6; }
15623		if test "$supported" = "yes" ; then
15624			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15625			found="yes"
15626		fi
15627	fi
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643xorg_testset_save_CFLAGS="$CFLAGS"
15644
15645if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15646	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15647	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15648printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15649if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15650then :
15651  printf %s "(cached) " >&6
15652else $as_nop
15653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15654/* end confdefs.h.  */
15655int i;
15656_ACEOF
15657if ac_fn_c_try_compile "$LINENO"
15658then :
15659  xorg_cv_cc_flag_unknown_warning_option=yes
15660else $as_nop
15661  xorg_cv_cc_flag_unknown_warning_option=no
15662fi
15663rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15664fi
15665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15666printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15667	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15668	CFLAGS="$xorg_testset_save_CFLAGS"
15669fi
15670
15671if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15672	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15673		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15674	fi
15675	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15676	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15677printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15678if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15679then :
15680  printf %s "(cached) " >&6
15681else $as_nop
15682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15683/* end confdefs.h.  */
15684int i;
15685_ACEOF
15686if ac_fn_c_try_compile "$LINENO"
15687then :
15688  xorg_cv_cc_flag_unused_command_line_argument=yes
15689else $as_nop
15690  xorg_cv_cc_flag_unused_command_line_argument=no
15691fi
15692rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15693fi
15694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15695printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15696	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15697	CFLAGS="$xorg_testset_save_CFLAGS"
15698fi
15699
15700found="no"
15701
15702	if test $found = "no" ; then
15703		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15704			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15705		fi
15706
15707		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15708			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15709		fi
15710
15711		CFLAGS="$CFLAGS -Werror=main"
15712
15713		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15714printf %s "checking if $CC supports -Werror=main... " >&6; }
15715		cacheid=xorg_cv_cc_flag__Werror_main
15716		if eval test \${$cacheid+y}
15717then :
15718  printf %s "(cached) " >&6
15719else $as_nop
15720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15721/* end confdefs.h.  */
15722int i;
15723int
15724main (void)
15725{
15726
15727  ;
15728  return 0;
15729}
15730_ACEOF
15731if ac_fn_c_try_link "$LINENO"
15732then :
15733  eval $cacheid=yes
15734else $as_nop
15735  eval $cacheid=no
15736fi
15737rm -f core conftest.err conftest.$ac_objext conftest.beam \
15738    conftest$ac_exeext conftest.$ac_ext
15739fi
15740
15741
15742		CFLAGS="$xorg_testset_save_CFLAGS"
15743
15744		eval supported=\$$cacheid
15745		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15746printf "%s\n" "$supported" >&6; }
15747		if test "$supported" = "yes" ; then
15748			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15749			found="yes"
15750		fi
15751	fi
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767xorg_testset_save_CFLAGS="$CFLAGS"
15768
15769if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15770	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15771	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15772printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15773if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15774then :
15775  printf %s "(cached) " >&6
15776else $as_nop
15777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15778/* end confdefs.h.  */
15779int i;
15780_ACEOF
15781if ac_fn_c_try_compile "$LINENO"
15782then :
15783  xorg_cv_cc_flag_unknown_warning_option=yes
15784else $as_nop
15785  xorg_cv_cc_flag_unknown_warning_option=no
15786fi
15787rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15788fi
15789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15790printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15791	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15792	CFLAGS="$xorg_testset_save_CFLAGS"
15793fi
15794
15795if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15796	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15797		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15798	fi
15799	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15800	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15801printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15802if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15803then :
15804  printf %s "(cached) " >&6
15805else $as_nop
15806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15807/* end confdefs.h.  */
15808int i;
15809_ACEOF
15810if ac_fn_c_try_compile "$LINENO"
15811then :
15812  xorg_cv_cc_flag_unused_command_line_argument=yes
15813else $as_nop
15814  xorg_cv_cc_flag_unused_command_line_argument=no
15815fi
15816rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15817fi
15818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15819printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15820	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15821	CFLAGS="$xorg_testset_save_CFLAGS"
15822fi
15823
15824found="no"
15825
15826	if test $found = "no" ; then
15827		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15828			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15829		fi
15830
15831		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15832			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15833		fi
15834
15835		CFLAGS="$CFLAGS -Werror=missing-braces"
15836
15837		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15838printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
15839		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15840		if eval test \${$cacheid+y}
15841then :
15842  printf %s "(cached) " >&6
15843else $as_nop
15844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15845/* end confdefs.h.  */
15846int i;
15847int
15848main (void)
15849{
15850
15851  ;
15852  return 0;
15853}
15854_ACEOF
15855if ac_fn_c_try_link "$LINENO"
15856then :
15857  eval $cacheid=yes
15858else $as_nop
15859  eval $cacheid=no
15860fi
15861rm -f core conftest.err conftest.$ac_objext conftest.beam \
15862    conftest$ac_exeext conftest.$ac_ext
15863fi
15864
15865
15866		CFLAGS="$xorg_testset_save_CFLAGS"
15867
15868		eval supported=\$$cacheid
15869		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15870printf "%s\n" "$supported" >&6; }
15871		if test "$supported" = "yes" ; then
15872			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15873			found="yes"
15874		fi
15875	fi
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891xorg_testset_save_CFLAGS="$CFLAGS"
15892
15893if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15894	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15895	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15896printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15897if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15898then :
15899  printf %s "(cached) " >&6
15900else $as_nop
15901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15902/* end confdefs.h.  */
15903int i;
15904_ACEOF
15905if ac_fn_c_try_compile "$LINENO"
15906then :
15907  xorg_cv_cc_flag_unknown_warning_option=yes
15908else $as_nop
15909  xorg_cv_cc_flag_unknown_warning_option=no
15910fi
15911rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15912fi
15913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15914printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15915	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15916	CFLAGS="$xorg_testset_save_CFLAGS"
15917fi
15918
15919if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15920	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15921		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15922	fi
15923	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15924	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15925printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15926if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15927then :
15928  printf %s "(cached) " >&6
15929else $as_nop
15930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15931/* end confdefs.h.  */
15932int i;
15933_ACEOF
15934if ac_fn_c_try_compile "$LINENO"
15935then :
15936  xorg_cv_cc_flag_unused_command_line_argument=yes
15937else $as_nop
15938  xorg_cv_cc_flag_unused_command_line_argument=no
15939fi
15940rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15941fi
15942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15943printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15944	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15945	CFLAGS="$xorg_testset_save_CFLAGS"
15946fi
15947
15948found="no"
15949
15950	if test $found = "no" ; then
15951		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15952			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15953		fi
15954
15955		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15956			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15957		fi
15958
15959		CFLAGS="$CFLAGS -Werror=sequence-point"
15960
15961		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15962printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
15963		cacheid=xorg_cv_cc_flag__Werror_sequence_point
15964		if eval test \${$cacheid+y}
15965then :
15966  printf %s "(cached) " >&6
15967else $as_nop
15968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15969/* end confdefs.h.  */
15970int i;
15971int
15972main (void)
15973{
15974
15975  ;
15976  return 0;
15977}
15978_ACEOF
15979if ac_fn_c_try_link "$LINENO"
15980then :
15981  eval $cacheid=yes
15982else $as_nop
15983  eval $cacheid=no
15984fi
15985rm -f core conftest.err conftest.$ac_objext conftest.beam \
15986    conftest$ac_exeext conftest.$ac_ext
15987fi
15988
15989
15990		CFLAGS="$xorg_testset_save_CFLAGS"
15991
15992		eval supported=\$$cacheid
15993		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15994printf "%s\n" "$supported" >&6; }
15995		if test "$supported" = "yes" ; then
15996			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15997			found="yes"
15998		fi
15999	fi
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015xorg_testset_save_CFLAGS="$CFLAGS"
16016
16017if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16018	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16019	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16020printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16021if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16022then :
16023  printf %s "(cached) " >&6
16024else $as_nop
16025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16026/* end confdefs.h.  */
16027int i;
16028_ACEOF
16029if ac_fn_c_try_compile "$LINENO"
16030then :
16031  xorg_cv_cc_flag_unknown_warning_option=yes
16032else $as_nop
16033  xorg_cv_cc_flag_unknown_warning_option=no
16034fi
16035rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16036fi
16037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16038printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16039	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16040	CFLAGS="$xorg_testset_save_CFLAGS"
16041fi
16042
16043if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16044	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16045		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16046	fi
16047	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16048	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16049printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16050if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16051then :
16052  printf %s "(cached) " >&6
16053else $as_nop
16054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16055/* end confdefs.h.  */
16056int i;
16057_ACEOF
16058if ac_fn_c_try_compile "$LINENO"
16059then :
16060  xorg_cv_cc_flag_unused_command_line_argument=yes
16061else $as_nop
16062  xorg_cv_cc_flag_unused_command_line_argument=no
16063fi
16064rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16065fi
16066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16067printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16068	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16069	CFLAGS="$xorg_testset_save_CFLAGS"
16070fi
16071
16072found="no"
16073
16074	if test $found = "no" ; then
16075		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16076			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16077		fi
16078
16079		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16080			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16081		fi
16082
16083		CFLAGS="$CFLAGS -Werror=return-type"
16084
16085		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16086printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16087		cacheid=xorg_cv_cc_flag__Werror_return_type
16088		if eval test \${$cacheid+y}
16089then :
16090  printf %s "(cached) " >&6
16091else $as_nop
16092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16093/* end confdefs.h.  */
16094int i;
16095int
16096main (void)
16097{
16098
16099  ;
16100  return 0;
16101}
16102_ACEOF
16103if ac_fn_c_try_link "$LINENO"
16104then :
16105  eval $cacheid=yes
16106else $as_nop
16107  eval $cacheid=no
16108fi
16109rm -f core conftest.err conftest.$ac_objext conftest.beam \
16110    conftest$ac_exeext conftest.$ac_ext
16111fi
16112
16113
16114		CFLAGS="$xorg_testset_save_CFLAGS"
16115
16116		eval supported=\$$cacheid
16117		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16118printf "%s\n" "$supported" >&6; }
16119		if test "$supported" = "yes" ; then
16120			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16121			found="yes"
16122		fi
16123	fi
16124
16125	if test $found = "no" ; then
16126		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16127			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16128		fi
16129
16130		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16131			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16132		fi
16133
16134		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16135
16136		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16137printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16138		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16139		if eval test \${$cacheid+y}
16140then :
16141  printf %s "(cached) " >&6
16142else $as_nop
16143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16144/* end confdefs.h.  */
16145int i;
16146int
16147main (void)
16148{
16149
16150  ;
16151  return 0;
16152}
16153_ACEOF
16154if ac_fn_c_try_link "$LINENO"
16155then :
16156  eval $cacheid=yes
16157else $as_nop
16158  eval $cacheid=no
16159fi
16160rm -f core conftest.err conftest.$ac_objext conftest.beam \
16161    conftest$ac_exeext conftest.$ac_ext
16162fi
16163
16164
16165		CFLAGS="$xorg_testset_save_CFLAGS"
16166
16167		eval supported=\$$cacheid
16168		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16169printf "%s\n" "$supported" >&6; }
16170		if test "$supported" = "yes" ; then
16171			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16172			found="yes"
16173		fi
16174	fi
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190xorg_testset_save_CFLAGS="$CFLAGS"
16191
16192if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16193	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16194	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16195printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16196if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16197then :
16198  printf %s "(cached) " >&6
16199else $as_nop
16200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16201/* end confdefs.h.  */
16202int i;
16203_ACEOF
16204if ac_fn_c_try_compile "$LINENO"
16205then :
16206  xorg_cv_cc_flag_unknown_warning_option=yes
16207else $as_nop
16208  xorg_cv_cc_flag_unknown_warning_option=no
16209fi
16210rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16211fi
16212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16213printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16214	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16215	CFLAGS="$xorg_testset_save_CFLAGS"
16216fi
16217
16218if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16219	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16220		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16221	fi
16222	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16223	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16224printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16225if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16226then :
16227  printf %s "(cached) " >&6
16228else $as_nop
16229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16230/* end confdefs.h.  */
16231int i;
16232_ACEOF
16233if ac_fn_c_try_compile "$LINENO"
16234then :
16235  xorg_cv_cc_flag_unused_command_line_argument=yes
16236else $as_nop
16237  xorg_cv_cc_flag_unused_command_line_argument=no
16238fi
16239rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16240fi
16241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16242printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16243	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16244	CFLAGS="$xorg_testset_save_CFLAGS"
16245fi
16246
16247found="no"
16248
16249	if test $found = "no" ; then
16250		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16251			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16252		fi
16253
16254		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16255			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16256		fi
16257
16258		CFLAGS="$CFLAGS -Werror=trigraphs"
16259
16260		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16261printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16262		cacheid=xorg_cv_cc_flag__Werror_trigraphs
16263		if eval test \${$cacheid+y}
16264then :
16265  printf %s "(cached) " >&6
16266else $as_nop
16267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16268/* end confdefs.h.  */
16269int i;
16270int
16271main (void)
16272{
16273
16274  ;
16275  return 0;
16276}
16277_ACEOF
16278if ac_fn_c_try_link "$LINENO"
16279then :
16280  eval $cacheid=yes
16281else $as_nop
16282  eval $cacheid=no
16283fi
16284rm -f core conftest.err conftest.$ac_objext conftest.beam \
16285    conftest$ac_exeext conftest.$ac_ext
16286fi
16287
16288
16289		CFLAGS="$xorg_testset_save_CFLAGS"
16290
16291		eval supported=\$$cacheid
16292		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16293printf "%s\n" "$supported" >&6; }
16294		if test "$supported" = "yes" ; then
16295			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16296			found="yes"
16297		fi
16298	fi
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314xorg_testset_save_CFLAGS="$CFLAGS"
16315
16316if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16317	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16318	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16319printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16320if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16321then :
16322  printf %s "(cached) " >&6
16323else $as_nop
16324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16325/* end confdefs.h.  */
16326int i;
16327_ACEOF
16328if ac_fn_c_try_compile "$LINENO"
16329then :
16330  xorg_cv_cc_flag_unknown_warning_option=yes
16331else $as_nop
16332  xorg_cv_cc_flag_unknown_warning_option=no
16333fi
16334rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16335fi
16336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16337printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16338	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16339	CFLAGS="$xorg_testset_save_CFLAGS"
16340fi
16341
16342if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16343	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16344		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16345	fi
16346	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16347	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16348printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16349if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16350then :
16351  printf %s "(cached) " >&6
16352else $as_nop
16353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16354/* end confdefs.h.  */
16355int i;
16356_ACEOF
16357if ac_fn_c_try_compile "$LINENO"
16358then :
16359  xorg_cv_cc_flag_unused_command_line_argument=yes
16360else $as_nop
16361  xorg_cv_cc_flag_unused_command_line_argument=no
16362fi
16363rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16364fi
16365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16366printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16367	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16368	CFLAGS="$xorg_testset_save_CFLAGS"
16369fi
16370
16371found="no"
16372
16373	if test $found = "no" ; then
16374		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16375			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16376		fi
16377
16378		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16379			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16380		fi
16381
16382		CFLAGS="$CFLAGS -Werror=array-bounds"
16383
16384		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16385printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16386		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16387		if eval test \${$cacheid+y}
16388then :
16389  printf %s "(cached) " >&6
16390else $as_nop
16391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16392/* end confdefs.h.  */
16393int i;
16394int
16395main (void)
16396{
16397
16398  ;
16399  return 0;
16400}
16401_ACEOF
16402if ac_fn_c_try_link "$LINENO"
16403then :
16404  eval $cacheid=yes
16405else $as_nop
16406  eval $cacheid=no
16407fi
16408rm -f core conftest.err conftest.$ac_objext conftest.beam \
16409    conftest$ac_exeext conftest.$ac_ext
16410fi
16411
16412
16413		CFLAGS="$xorg_testset_save_CFLAGS"
16414
16415		eval supported=\$$cacheid
16416		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16417printf "%s\n" "$supported" >&6; }
16418		if test "$supported" = "yes" ; then
16419			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16420			found="yes"
16421		fi
16422	fi
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438xorg_testset_save_CFLAGS="$CFLAGS"
16439
16440if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16441	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16442	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16443printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16444if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16445then :
16446  printf %s "(cached) " >&6
16447else $as_nop
16448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16449/* end confdefs.h.  */
16450int i;
16451_ACEOF
16452if ac_fn_c_try_compile "$LINENO"
16453then :
16454  xorg_cv_cc_flag_unknown_warning_option=yes
16455else $as_nop
16456  xorg_cv_cc_flag_unknown_warning_option=no
16457fi
16458rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16459fi
16460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16461printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16462	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16463	CFLAGS="$xorg_testset_save_CFLAGS"
16464fi
16465
16466if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16467	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16468		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16469	fi
16470	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16471	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16472printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16473if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16474then :
16475  printf %s "(cached) " >&6
16476else $as_nop
16477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16478/* end confdefs.h.  */
16479int i;
16480_ACEOF
16481if ac_fn_c_try_compile "$LINENO"
16482then :
16483  xorg_cv_cc_flag_unused_command_line_argument=yes
16484else $as_nop
16485  xorg_cv_cc_flag_unused_command_line_argument=no
16486fi
16487rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16488fi
16489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16490printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16491	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16492	CFLAGS="$xorg_testset_save_CFLAGS"
16493fi
16494
16495found="no"
16496
16497	if test $found = "no" ; then
16498		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16499			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16500		fi
16501
16502		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16503			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16504		fi
16505
16506		CFLAGS="$CFLAGS -Werror=write-strings"
16507
16508		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16509printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16510		cacheid=xorg_cv_cc_flag__Werror_write_strings
16511		if eval test \${$cacheid+y}
16512then :
16513  printf %s "(cached) " >&6
16514else $as_nop
16515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16516/* end confdefs.h.  */
16517int i;
16518int
16519main (void)
16520{
16521
16522  ;
16523  return 0;
16524}
16525_ACEOF
16526if ac_fn_c_try_link "$LINENO"
16527then :
16528  eval $cacheid=yes
16529else $as_nop
16530  eval $cacheid=no
16531fi
16532rm -f core conftest.err conftest.$ac_objext conftest.beam \
16533    conftest$ac_exeext conftest.$ac_ext
16534fi
16535
16536
16537		CFLAGS="$xorg_testset_save_CFLAGS"
16538
16539		eval supported=\$$cacheid
16540		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16541printf "%s\n" "$supported" >&6; }
16542		if test "$supported" = "yes" ; then
16543			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16544			found="yes"
16545		fi
16546	fi
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562xorg_testset_save_CFLAGS="$CFLAGS"
16563
16564if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16565	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16566	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16567printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16568if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16569then :
16570  printf %s "(cached) " >&6
16571else $as_nop
16572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16573/* end confdefs.h.  */
16574int i;
16575_ACEOF
16576if ac_fn_c_try_compile "$LINENO"
16577then :
16578  xorg_cv_cc_flag_unknown_warning_option=yes
16579else $as_nop
16580  xorg_cv_cc_flag_unknown_warning_option=no
16581fi
16582rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16583fi
16584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16585printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16586	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16587	CFLAGS="$xorg_testset_save_CFLAGS"
16588fi
16589
16590if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16591	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16592		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16593	fi
16594	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16595	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16596printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16597if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16598then :
16599  printf %s "(cached) " >&6
16600else $as_nop
16601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16602/* end confdefs.h.  */
16603int i;
16604_ACEOF
16605if ac_fn_c_try_compile "$LINENO"
16606then :
16607  xorg_cv_cc_flag_unused_command_line_argument=yes
16608else $as_nop
16609  xorg_cv_cc_flag_unused_command_line_argument=no
16610fi
16611rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16612fi
16613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16614printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16615	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16616	CFLAGS="$xorg_testset_save_CFLAGS"
16617fi
16618
16619found="no"
16620
16621	if test $found = "no" ; then
16622		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16623			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16624		fi
16625
16626		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16627			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16628		fi
16629
16630		CFLAGS="$CFLAGS -Werror=address"
16631
16632		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16633printf %s "checking if $CC supports -Werror=address... " >&6; }
16634		cacheid=xorg_cv_cc_flag__Werror_address
16635		if eval test \${$cacheid+y}
16636then :
16637  printf %s "(cached) " >&6
16638else $as_nop
16639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16640/* end confdefs.h.  */
16641int i;
16642int
16643main (void)
16644{
16645
16646  ;
16647  return 0;
16648}
16649_ACEOF
16650if ac_fn_c_try_link "$LINENO"
16651then :
16652  eval $cacheid=yes
16653else $as_nop
16654  eval $cacheid=no
16655fi
16656rm -f core conftest.err conftest.$ac_objext conftest.beam \
16657    conftest$ac_exeext conftest.$ac_ext
16658fi
16659
16660
16661		CFLAGS="$xorg_testset_save_CFLAGS"
16662
16663		eval supported=\$$cacheid
16664		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16665printf "%s\n" "$supported" >&6; }
16666		if test "$supported" = "yes" ; then
16667			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16668			found="yes"
16669		fi
16670	fi
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686xorg_testset_save_CFLAGS="$CFLAGS"
16687
16688if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16689	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16690	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16691printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16692if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16693then :
16694  printf %s "(cached) " >&6
16695else $as_nop
16696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16697/* end confdefs.h.  */
16698int i;
16699_ACEOF
16700if ac_fn_c_try_compile "$LINENO"
16701then :
16702  xorg_cv_cc_flag_unknown_warning_option=yes
16703else $as_nop
16704  xorg_cv_cc_flag_unknown_warning_option=no
16705fi
16706rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16707fi
16708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16709printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16710	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16711	CFLAGS="$xorg_testset_save_CFLAGS"
16712fi
16713
16714if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16715	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16716		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16717	fi
16718	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16719	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16720printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16721if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16722then :
16723  printf %s "(cached) " >&6
16724else $as_nop
16725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16726/* end confdefs.h.  */
16727int i;
16728_ACEOF
16729if ac_fn_c_try_compile "$LINENO"
16730then :
16731  xorg_cv_cc_flag_unused_command_line_argument=yes
16732else $as_nop
16733  xorg_cv_cc_flag_unused_command_line_argument=no
16734fi
16735rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16736fi
16737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16738printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16739	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16740	CFLAGS="$xorg_testset_save_CFLAGS"
16741fi
16742
16743found="no"
16744
16745	if test $found = "no" ; then
16746		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16747			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16748		fi
16749
16750		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16751			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16752		fi
16753
16754		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16755
16756		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16757printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16758		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16759		if eval test \${$cacheid+y}
16760then :
16761  printf %s "(cached) " >&6
16762else $as_nop
16763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16764/* end confdefs.h.  */
16765int i;
16766int
16767main (void)
16768{
16769
16770  ;
16771  return 0;
16772}
16773_ACEOF
16774if ac_fn_c_try_link "$LINENO"
16775then :
16776  eval $cacheid=yes
16777else $as_nop
16778  eval $cacheid=no
16779fi
16780rm -f core conftest.err conftest.$ac_objext conftest.beam \
16781    conftest$ac_exeext conftest.$ac_ext
16782fi
16783
16784
16785		CFLAGS="$xorg_testset_save_CFLAGS"
16786
16787		eval supported=\$$cacheid
16788		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16789printf "%s\n" "$supported" >&6; }
16790		if test "$supported" = "yes" ; then
16791			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16792			found="yes"
16793		fi
16794	fi
16795
16796	if test $found = "no" ; then
16797		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16798			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16799		fi
16800
16801		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16802			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16803		fi
16804
16805		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16806
16807		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16808printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16809		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16810		if eval test \${$cacheid+y}
16811then :
16812  printf %s "(cached) " >&6
16813else $as_nop
16814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16815/* end confdefs.h.  */
16816int i;
16817int
16818main (void)
16819{
16820
16821  ;
16822  return 0;
16823}
16824_ACEOF
16825if ac_fn_c_try_link "$LINENO"
16826then :
16827  eval $cacheid=yes
16828else $as_nop
16829  eval $cacheid=no
16830fi
16831rm -f core conftest.err conftest.$ac_objext conftest.beam \
16832    conftest$ac_exeext conftest.$ac_ext
16833fi
16834
16835
16836		CFLAGS="$xorg_testset_save_CFLAGS"
16837
16838		eval supported=\$$cacheid
16839		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16840printf "%s\n" "$supported" >&6; }
16841		if test "$supported" = "yes" ; then
16842			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16843			found="yes"
16844		fi
16845	fi
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861xorg_testset_save_CFLAGS="$CFLAGS"
16862
16863if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16864	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16865	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16866printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16867if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16868then :
16869  printf %s "(cached) " >&6
16870else $as_nop
16871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16872/* end confdefs.h.  */
16873int i;
16874_ACEOF
16875if ac_fn_c_try_compile "$LINENO"
16876then :
16877  xorg_cv_cc_flag_unknown_warning_option=yes
16878else $as_nop
16879  xorg_cv_cc_flag_unknown_warning_option=no
16880fi
16881rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16882fi
16883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16884printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16885	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16886	CFLAGS="$xorg_testset_save_CFLAGS"
16887fi
16888
16889if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16890	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16891		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16892	fi
16893	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16894	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16895printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16896if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16897then :
16898  printf %s "(cached) " >&6
16899else $as_nop
16900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16901/* end confdefs.h.  */
16902int i;
16903_ACEOF
16904if ac_fn_c_try_compile "$LINENO"
16905then :
16906  xorg_cv_cc_flag_unused_command_line_argument=yes
16907else $as_nop
16908  xorg_cv_cc_flag_unused_command_line_argument=no
16909fi
16910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16911fi
16912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16913printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16914	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16915	CFLAGS="$xorg_testset_save_CFLAGS"
16916fi
16917
16918found="no"
16919
16920	if test $found = "no" ; then
16921		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16922			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16923		fi
16924
16925		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16926			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16927		fi
16928
16929		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16930
16931		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16932printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16933		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16934		if eval test \${$cacheid+y}
16935then :
16936  printf %s "(cached) " >&6
16937else $as_nop
16938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16939/* end confdefs.h.  */
16940int i;
16941int
16942main (void)
16943{
16944
16945  ;
16946  return 0;
16947}
16948_ACEOF
16949if ac_fn_c_try_link "$LINENO"
16950then :
16951  eval $cacheid=yes
16952else $as_nop
16953  eval $cacheid=no
16954fi
16955rm -f core conftest.err conftest.$ac_objext conftest.beam \
16956    conftest$ac_exeext conftest.$ac_ext
16957fi
16958
16959
16960		CFLAGS="$xorg_testset_save_CFLAGS"
16961
16962		eval supported=\$$cacheid
16963		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16964printf "%s\n" "$supported" >&6; }
16965		if test "$supported" = "yes" ; then
16966			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16967			found="yes"
16968		fi
16969	fi
16970
16971 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16972else
16973{ 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
16974printf "%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;}
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988xorg_testset_save_CFLAGS="$CFLAGS"
16989
16990if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16991	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16992	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16993printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16994if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16995then :
16996  printf %s "(cached) " >&6
16997else $as_nop
16998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16999/* end confdefs.h.  */
17000int i;
17001_ACEOF
17002if ac_fn_c_try_compile "$LINENO"
17003then :
17004  xorg_cv_cc_flag_unknown_warning_option=yes
17005else $as_nop
17006  xorg_cv_cc_flag_unknown_warning_option=no
17007fi
17008rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17009fi
17010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17011printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17012	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17013	CFLAGS="$xorg_testset_save_CFLAGS"
17014fi
17015
17016if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17017	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17018		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17019	fi
17020	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17021	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17022printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17023if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17024then :
17025  printf %s "(cached) " >&6
17026else $as_nop
17027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17028/* end confdefs.h.  */
17029int i;
17030_ACEOF
17031if ac_fn_c_try_compile "$LINENO"
17032then :
17033  xorg_cv_cc_flag_unused_command_line_argument=yes
17034else $as_nop
17035  xorg_cv_cc_flag_unused_command_line_argument=no
17036fi
17037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17038fi
17039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17040printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17041	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17042	CFLAGS="$xorg_testset_save_CFLAGS"
17043fi
17044
17045found="no"
17046
17047	if test $found = "no" ; then
17048		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17049			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17050		fi
17051
17052		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17053			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17054		fi
17055
17056		CFLAGS="$CFLAGS -Wimplicit"
17057
17058		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17059printf %s "checking if $CC supports -Wimplicit... " >&6; }
17060		cacheid=xorg_cv_cc_flag__Wimplicit
17061		if eval test \${$cacheid+y}
17062then :
17063  printf %s "(cached) " >&6
17064else $as_nop
17065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17066/* end confdefs.h.  */
17067int i;
17068int
17069main (void)
17070{
17071
17072  ;
17073  return 0;
17074}
17075_ACEOF
17076if ac_fn_c_try_link "$LINENO"
17077then :
17078  eval $cacheid=yes
17079else $as_nop
17080  eval $cacheid=no
17081fi
17082rm -f core conftest.err conftest.$ac_objext conftest.beam \
17083    conftest$ac_exeext conftest.$ac_ext
17084fi
17085
17086
17087		CFLAGS="$xorg_testset_save_CFLAGS"
17088
17089		eval supported=\$$cacheid
17090		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17091printf "%s\n" "$supported" >&6; }
17092		if test "$supported" = "yes" ; then
17093			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17094			found="yes"
17095		fi
17096	fi
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112xorg_testset_save_CFLAGS="$CFLAGS"
17113
17114if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17115	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17116	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17117printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17118if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17119then :
17120  printf %s "(cached) " >&6
17121else $as_nop
17122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17123/* end confdefs.h.  */
17124int i;
17125_ACEOF
17126if ac_fn_c_try_compile "$LINENO"
17127then :
17128  xorg_cv_cc_flag_unknown_warning_option=yes
17129else $as_nop
17130  xorg_cv_cc_flag_unknown_warning_option=no
17131fi
17132rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17133fi
17134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17135printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17136	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17137	CFLAGS="$xorg_testset_save_CFLAGS"
17138fi
17139
17140if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17141	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17142		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17143	fi
17144	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17145	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17146printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17147if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17148then :
17149  printf %s "(cached) " >&6
17150else $as_nop
17151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17152/* end confdefs.h.  */
17153int i;
17154_ACEOF
17155if ac_fn_c_try_compile "$LINENO"
17156then :
17157  xorg_cv_cc_flag_unused_command_line_argument=yes
17158else $as_nop
17159  xorg_cv_cc_flag_unused_command_line_argument=no
17160fi
17161rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17162fi
17163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17164printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17165	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17166	CFLAGS="$xorg_testset_save_CFLAGS"
17167fi
17168
17169found="no"
17170
17171	if test $found = "no" ; then
17172		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17173			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17174		fi
17175
17176		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17177			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17178		fi
17179
17180		CFLAGS="$CFLAGS -Wnonnull"
17181
17182		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17183printf %s "checking if $CC supports -Wnonnull... " >&6; }
17184		cacheid=xorg_cv_cc_flag__Wnonnull
17185		if eval test \${$cacheid+y}
17186then :
17187  printf %s "(cached) " >&6
17188else $as_nop
17189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17190/* end confdefs.h.  */
17191int i;
17192int
17193main (void)
17194{
17195
17196  ;
17197  return 0;
17198}
17199_ACEOF
17200if ac_fn_c_try_link "$LINENO"
17201then :
17202  eval $cacheid=yes
17203else $as_nop
17204  eval $cacheid=no
17205fi
17206rm -f core conftest.err conftest.$ac_objext conftest.beam \
17207    conftest$ac_exeext conftest.$ac_ext
17208fi
17209
17210
17211		CFLAGS="$xorg_testset_save_CFLAGS"
17212
17213		eval supported=\$$cacheid
17214		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17215printf "%s\n" "$supported" >&6; }
17216		if test "$supported" = "yes" ; then
17217			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17218			found="yes"
17219		fi
17220	fi
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236xorg_testset_save_CFLAGS="$CFLAGS"
17237
17238if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17239	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17240	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17241printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17242if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17243then :
17244  printf %s "(cached) " >&6
17245else $as_nop
17246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17247/* end confdefs.h.  */
17248int i;
17249_ACEOF
17250if ac_fn_c_try_compile "$LINENO"
17251then :
17252  xorg_cv_cc_flag_unknown_warning_option=yes
17253else $as_nop
17254  xorg_cv_cc_flag_unknown_warning_option=no
17255fi
17256rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17257fi
17258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17259printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17260	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17261	CFLAGS="$xorg_testset_save_CFLAGS"
17262fi
17263
17264if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17265	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17266		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17267	fi
17268	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17269	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17270printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17271if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17272then :
17273  printf %s "(cached) " >&6
17274else $as_nop
17275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17276/* end confdefs.h.  */
17277int i;
17278_ACEOF
17279if ac_fn_c_try_compile "$LINENO"
17280then :
17281  xorg_cv_cc_flag_unused_command_line_argument=yes
17282else $as_nop
17283  xorg_cv_cc_flag_unused_command_line_argument=no
17284fi
17285rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17286fi
17287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17288printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17289	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17290	CFLAGS="$xorg_testset_save_CFLAGS"
17291fi
17292
17293found="no"
17294
17295	if test $found = "no" ; then
17296		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17297			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17298		fi
17299
17300		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17301			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17302		fi
17303
17304		CFLAGS="$CFLAGS -Winit-self"
17305
17306		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17307printf %s "checking if $CC supports -Winit-self... " >&6; }
17308		cacheid=xorg_cv_cc_flag__Winit_self
17309		if eval test \${$cacheid+y}
17310then :
17311  printf %s "(cached) " >&6
17312else $as_nop
17313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17314/* end confdefs.h.  */
17315int i;
17316int
17317main (void)
17318{
17319
17320  ;
17321  return 0;
17322}
17323_ACEOF
17324if ac_fn_c_try_link "$LINENO"
17325then :
17326  eval $cacheid=yes
17327else $as_nop
17328  eval $cacheid=no
17329fi
17330rm -f core conftest.err conftest.$ac_objext conftest.beam \
17331    conftest$ac_exeext conftest.$ac_ext
17332fi
17333
17334
17335		CFLAGS="$xorg_testset_save_CFLAGS"
17336
17337		eval supported=\$$cacheid
17338		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17339printf "%s\n" "$supported" >&6; }
17340		if test "$supported" = "yes" ; then
17341			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17342			found="yes"
17343		fi
17344	fi
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360xorg_testset_save_CFLAGS="$CFLAGS"
17361
17362if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17363	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17364	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17365printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17366if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17367then :
17368  printf %s "(cached) " >&6
17369else $as_nop
17370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17371/* end confdefs.h.  */
17372int i;
17373_ACEOF
17374if ac_fn_c_try_compile "$LINENO"
17375then :
17376  xorg_cv_cc_flag_unknown_warning_option=yes
17377else $as_nop
17378  xorg_cv_cc_flag_unknown_warning_option=no
17379fi
17380rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17381fi
17382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17383printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17384	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17385	CFLAGS="$xorg_testset_save_CFLAGS"
17386fi
17387
17388if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17389	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17390		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17391	fi
17392	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17393	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17394printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17395if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17396then :
17397  printf %s "(cached) " >&6
17398else $as_nop
17399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17400/* end confdefs.h.  */
17401int i;
17402_ACEOF
17403if ac_fn_c_try_compile "$LINENO"
17404then :
17405  xorg_cv_cc_flag_unused_command_line_argument=yes
17406else $as_nop
17407  xorg_cv_cc_flag_unused_command_line_argument=no
17408fi
17409rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17410fi
17411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17412printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17413	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17414	CFLAGS="$xorg_testset_save_CFLAGS"
17415fi
17416
17417found="no"
17418
17419	if test $found = "no" ; then
17420		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17421			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17422		fi
17423
17424		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17425			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17426		fi
17427
17428		CFLAGS="$CFLAGS -Wmain"
17429
17430		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17431printf %s "checking if $CC supports -Wmain... " >&6; }
17432		cacheid=xorg_cv_cc_flag__Wmain
17433		if eval test \${$cacheid+y}
17434then :
17435  printf %s "(cached) " >&6
17436else $as_nop
17437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17438/* end confdefs.h.  */
17439int i;
17440int
17441main (void)
17442{
17443
17444  ;
17445  return 0;
17446}
17447_ACEOF
17448if ac_fn_c_try_link "$LINENO"
17449then :
17450  eval $cacheid=yes
17451else $as_nop
17452  eval $cacheid=no
17453fi
17454rm -f core conftest.err conftest.$ac_objext conftest.beam \
17455    conftest$ac_exeext conftest.$ac_ext
17456fi
17457
17458
17459		CFLAGS="$xorg_testset_save_CFLAGS"
17460
17461		eval supported=\$$cacheid
17462		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17463printf "%s\n" "$supported" >&6; }
17464		if test "$supported" = "yes" ; then
17465			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17466			found="yes"
17467		fi
17468	fi
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484xorg_testset_save_CFLAGS="$CFLAGS"
17485
17486if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17487	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17488	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17489printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17490if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17491then :
17492  printf %s "(cached) " >&6
17493else $as_nop
17494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17495/* end confdefs.h.  */
17496int i;
17497_ACEOF
17498if ac_fn_c_try_compile "$LINENO"
17499then :
17500  xorg_cv_cc_flag_unknown_warning_option=yes
17501else $as_nop
17502  xorg_cv_cc_flag_unknown_warning_option=no
17503fi
17504rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17505fi
17506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17507printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17508	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17509	CFLAGS="$xorg_testset_save_CFLAGS"
17510fi
17511
17512if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17513	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17514		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17515	fi
17516	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17517	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17518printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17519if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17520then :
17521  printf %s "(cached) " >&6
17522else $as_nop
17523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17524/* end confdefs.h.  */
17525int i;
17526_ACEOF
17527if ac_fn_c_try_compile "$LINENO"
17528then :
17529  xorg_cv_cc_flag_unused_command_line_argument=yes
17530else $as_nop
17531  xorg_cv_cc_flag_unused_command_line_argument=no
17532fi
17533rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17534fi
17535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17536printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17537	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17538	CFLAGS="$xorg_testset_save_CFLAGS"
17539fi
17540
17541found="no"
17542
17543	if test $found = "no" ; then
17544		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17545			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17546		fi
17547
17548		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17549			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17550		fi
17551
17552		CFLAGS="$CFLAGS -Wmissing-braces"
17553
17554		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17555printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17556		cacheid=xorg_cv_cc_flag__Wmissing_braces
17557		if eval test \${$cacheid+y}
17558then :
17559  printf %s "(cached) " >&6
17560else $as_nop
17561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17562/* end confdefs.h.  */
17563int i;
17564int
17565main (void)
17566{
17567
17568  ;
17569  return 0;
17570}
17571_ACEOF
17572if ac_fn_c_try_link "$LINENO"
17573then :
17574  eval $cacheid=yes
17575else $as_nop
17576  eval $cacheid=no
17577fi
17578rm -f core conftest.err conftest.$ac_objext conftest.beam \
17579    conftest$ac_exeext conftest.$ac_ext
17580fi
17581
17582
17583		CFLAGS="$xorg_testset_save_CFLAGS"
17584
17585		eval supported=\$$cacheid
17586		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17587printf "%s\n" "$supported" >&6; }
17588		if test "$supported" = "yes" ; then
17589			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17590			found="yes"
17591		fi
17592	fi
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608xorg_testset_save_CFLAGS="$CFLAGS"
17609
17610if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17611	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17612	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17613printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17614if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17615then :
17616  printf %s "(cached) " >&6
17617else $as_nop
17618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17619/* end confdefs.h.  */
17620int i;
17621_ACEOF
17622if ac_fn_c_try_compile "$LINENO"
17623then :
17624  xorg_cv_cc_flag_unknown_warning_option=yes
17625else $as_nop
17626  xorg_cv_cc_flag_unknown_warning_option=no
17627fi
17628rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17629fi
17630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17631printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17632	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17633	CFLAGS="$xorg_testset_save_CFLAGS"
17634fi
17635
17636if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17637	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17638		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17639	fi
17640	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17641	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17642printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17643if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17644then :
17645  printf %s "(cached) " >&6
17646else $as_nop
17647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17648/* end confdefs.h.  */
17649int i;
17650_ACEOF
17651if ac_fn_c_try_compile "$LINENO"
17652then :
17653  xorg_cv_cc_flag_unused_command_line_argument=yes
17654else $as_nop
17655  xorg_cv_cc_flag_unused_command_line_argument=no
17656fi
17657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17658fi
17659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17660printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17661	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17662	CFLAGS="$xorg_testset_save_CFLAGS"
17663fi
17664
17665found="no"
17666
17667	if test $found = "no" ; then
17668		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17669			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17670		fi
17671
17672		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17673			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17674		fi
17675
17676		CFLAGS="$CFLAGS -Wsequence-point"
17677
17678		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17679printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17680		cacheid=xorg_cv_cc_flag__Wsequence_point
17681		if eval test \${$cacheid+y}
17682then :
17683  printf %s "(cached) " >&6
17684else $as_nop
17685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17686/* end confdefs.h.  */
17687int i;
17688int
17689main (void)
17690{
17691
17692  ;
17693  return 0;
17694}
17695_ACEOF
17696if ac_fn_c_try_link "$LINENO"
17697then :
17698  eval $cacheid=yes
17699else $as_nop
17700  eval $cacheid=no
17701fi
17702rm -f core conftest.err conftest.$ac_objext conftest.beam \
17703    conftest$ac_exeext conftest.$ac_ext
17704fi
17705
17706
17707		CFLAGS="$xorg_testset_save_CFLAGS"
17708
17709		eval supported=\$$cacheid
17710		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17711printf "%s\n" "$supported" >&6; }
17712		if test "$supported" = "yes" ; then
17713			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17714			found="yes"
17715		fi
17716	fi
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732xorg_testset_save_CFLAGS="$CFLAGS"
17733
17734if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17735	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17736	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17737printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17738if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17739then :
17740  printf %s "(cached) " >&6
17741else $as_nop
17742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17743/* end confdefs.h.  */
17744int i;
17745_ACEOF
17746if ac_fn_c_try_compile "$LINENO"
17747then :
17748  xorg_cv_cc_flag_unknown_warning_option=yes
17749else $as_nop
17750  xorg_cv_cc_flag_unknown_warning_option=no
17751fi
17752rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17753fi
17754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17755printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17756	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17757	CFLAGS="$xorg_testset_save_CFLAGS"
17758fi
17759
17760if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17761	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17762		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17763	fi
17764	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17765	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17766printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17767if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17768then :
17769  printf %s "(cached) " >&6
17770else $as_nop
17771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17772/* end confdefs.h.  */
17773int i;
17774_ACEOF
17775if ac_fn_c_try_compile "$LINENO"
17776then :
17777  xorg_cv_cc_flag_unused_command_line_argument=yes
17778else $as_nop
17779  xorg_cv_cc_flag_unused_command_line_argument=no
17780fi
17781rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17782fi
17783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17784printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17785	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17786	CFLAGS="$xorg_testset_save_CFLAGS"
17787fi
17788
17789found="no"
17790
17791	if test $found = "no" ; then
17792		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17793			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17794		fi
17795
17796		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17797			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17798		fi
17799
17800		CFLAGS="$CFLAGS -Wreturn-type"
17801
17802		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17803printf %s "checking if $CC supports -Wreturn-type... " >&6; }
17804		cacheid=xorg_cv_cc_flag__Wreturn_type
17805		if eval test \${$cacheid+y}
17806then :
17807  printf %s "(cached) " >&6
17808else $as_nop
17809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17810/* end confdefs.h.  */
17811int i;
17812int
17813main (void)
17814{
17815
17816  ;
17817  return 0;
17818}
17819_ACEOF
17820if ac_fn_c_try_link "$LINENO"
17821then :
17822  eval $cacheid=yes
17823else $as_nop
17824  eval $cacheid=no
17825fi
17826rm -f core conftest.err conftest.$ac_objext conftest.beam \
17827    conftest$ac_exeext conftest.$ac_ext
17828fi
17829
17830
17831		CFLAGS="$xorg_testset_save_CFLAGS"
17832
17833		eval supported=\$$cacheid
17834		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17835printf "%s\n" "$supported" >&6; }
17836		if test "$supported" = "yes" ; then
17837			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17838			found="yes"
17839		fi
17840	fi
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856xorg_testset_save_CFLAGS="$CFLAGS"
17857
17858if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17859	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17860	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17861printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17862if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17863then :
17864  printf %s "(cached) " >&6
17865else $as_nop
17866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17867/* end confdefs.h.  */
17868int i;
17869_ACEOF
17870if ac_fn_c_try_compile "$LINENO"
17871then :
17872  xorg_cv_cc_flag_unknown_warning_option=yes
17873else $as_nop
17874  xorg_cv_cc_flag_unknown_warning_option=no
17875fi
17876rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17877fi
17878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17879printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17880	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17881	CFLAGS="$xorg_testset_save_CFLAGS"
17882fi
17883
17884if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17885	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17886		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17887	fi
17888	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17889	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17890printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17891if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17892then :
17893  printf %s "(cached) " >&6
17894else $as_nop
17895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17896/* end confdefs.h.  */
17897int i;
17898_ACEOF
17899if ac_fn_c_try_compile "$LINENO"
17900then :
17901  xorg_cv_cc_flag_unused_command_line_argument=yes
17902else $as_nop
17903  xorg_cv_cc_flag_unused_command_line_argument=no
17904fi
17905rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17906fi
17907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17908printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17909	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17910	CFLAGS="$xorg_testset_save_CFLAGS"
17911fi
17912
17913found="no"
17914
17915	if test $found = "no" ; then
17916		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17917			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17918		fi
17919
17920		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17921			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17922		fi
17923
17924		CFLAGS="$CFLAGS -Wtrigraphs"
17925
17926		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17927printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
17928		cacheid=xorg_cv_cc_flag__Wtrigraphs
17929		if eval test \${$cacheid+y}
17930then :
17931  printf %s "(cached) " >&6
17932else $as_nop
17933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17934/* end confdefs.h.  */
17935int i;
17936int
17937main (void)
17938{
17939
17940  ;
17941  return 0;
17942}
17943_ACEOF
17944if ac_fn_c_try_link "$LINENO"
17945then :
17946  eval $cacheid=yes
17947else $as_nop
17948  eval $cacheid=no
17949fi
17950rm -f core conftest.err conftest.$ac_objext conftest.beam \
17951    conftest$ac_exeext conftest.$ac_ext
17952fi
17953
17954
17955		CFLAGS="$xorg_testset_save_CFLAGS"
17956
17957		eval supported=\$$cacheid
17958		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17959printf "%s\n" "$supported" >&6; }
17960		if test "$supported" = "yes" ; then
17961			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17962			found="yes"
17963		fi
17964	fi
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980xorg_testset_save_CFLAGS="$CFLAGS"
17981
17982if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17983	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17984	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17985printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17986if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17987then :
17988  printf %s "(cached) " >&6
17989else $as_nop
17990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17991/* end confdefs.h.  */
17992int i;
17993_ACEOF
17994if ac_fn_c_try_compile "$LINENO"
17995then :
17996  xorg_cv_cc_flag_unknown_warning_option=yes
17997else $as_nop
17998  xorg_cv_cc_flag_unknown_warning_option=no
17999fi
18000rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18001fi
18002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18003printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18004	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18005	CFLAGS="$xorg_testset_save_CFLAGS"
18006fi
18007
18008if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18009	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18010		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18011	fi
18012	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18013	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18014printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18015if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18016then :
18017  printf %s "(cached) " >&6
18018else $as_nop
18019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18020/* end confdefs.h.  */
18021int i;
18022_ACEOF
18023if ac_fn_c_try_compile "$LINENO"
18024then :
18025  xorg_cv_cc_flag_unused_command_line_argument=yes
18026else $as_nop
18027  xorg_cv_cc_flag_unused_command_line_argument=no
18028fi
18029rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18030fi
18031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18032printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18033	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18034	CFLAGS="$xorg_testset_save_CFLAGS"
18035fi
18036
18037found="no"
18038
18039	if test $found = "no" ; then
18040		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18041			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18042		fi
18043
18044		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18045			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18046		fi
18047
18048		CFLAGS="$CFLAGS -Warray-bounds"
18049
18050		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18051printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18052		cacheid=xorg_cv_cc_flag__Warray_bounds
18053		if eval test \${$cacheid+y}
18054then :
18055  printf %s "(cached) " >&6
18056else $as_nop
18057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18058/* end confdefs.h.  */
18059int i;
18060int
18061main (void)
18062{
18063
18064  ;
18065  return 0;
18066}
18067_ACEOF
18068if ac_fn_c_try_link "$LINENO"
18069then :
18070  eval $cacheid=yes
18071else $as_nop
18072  eval $cacheid=no
18073fi
18074rm -f core conftest.err conftest.$ac_objext conftest.beam \
18075    conftest$ac_exeext conftest.$ac_ext
18076fi
18077
18078
18079		CFLAGS="$xorg_testset_save_CFLAGS"
18080
18081		eval supported=\$$cacheid
18082		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18083printf "%s\n" "$supported" >&6; }
18084		if test "$supported" = "yes" ; then
18085			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18086			found="yes"
18087		fi
18088	fi
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104xorg_testset_save_CFLAGS="$CFLAGS"
18105
18106if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18107	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18108	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18109printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18110if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18111then :
18112  printf %s "(cached) " >&6
18113else $as_nop
18114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18115/* end confdefs.h.  */
18116int i;
18117_ACEOF
18118if ac_fn_c_try_compile "$LINENO"
18119then :
18120  xorg_cv_cc_flag_unknown_warning_option=yes
18121else $as_nop
18122  xorg_cv_cc_flag_unknown_warning_option=no
18123fi
18124rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18125fi
18126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18127printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18128	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18129	CFLAGS="$xorg_testset_save_CFLAGS"
18130fi
18131
18132if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18133	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18134		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18135	fi
18136	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18137	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18138printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18139if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18140then :
18141  printf %s "(cached) " >&6
18142else $as_nop
18143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18144/* end confdefs.h.  */
18145int i;
18146_ACEOF
18147if ac_fn_c_try_compile "$LINENO"
18148then :
18149  xorg_cv_cc_flag_unused_command_line_argument=yes
18150else $as_nop
18151  xorg_cv_cc_flag_unused_command_line_argument=no
18152fi
18153rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18154fi
18155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18156printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18157	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18158	CFLAGS="$xorg_testset_save_CFLAGS"
18159fi
18160
18161found="no"
18162
18163	if test $found = "no" ; then
18164		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18165			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18166		fi
18167
18168		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18169			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18170		fi
18171
18172		CFLAGS="$CFLAGS -Wwrite-strings"
18173
18174		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18175printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18176		cacheid=xorg_cv_cc_flag__Wwrite_strings
18177		if eval test \${$cacheid+y}
18178then :
18179  printf %s "(cached) " >&6
18180else $as_nop
18181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18182/* end confdefs.h.  */
18183int i;
18184int
18185main (void)
18186{
18187
18188  ;
18189  return 0;
18190}
18191_ACEOF
18192if ac_fn_c_try_link "$LINENO"
18193then :
18194  eval $cacheid=yes
18195else $as_nop
18196  eval $cacheid=no
18197fi
18198rm -f core conftest.err conftest.$ac_objext conftest.beam \
18199    conftest$ac_exeext conftest.$ac_ext
18200fi
18201
18202
18203		CFLAGS="$xorg_testset_save_CFLAGS"
18204
18205		eval supported=\$$cacheid
18206		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18207printf "%s\n" "$supported" >&6; }
18208		if test "$supported" = "yes" ; then
18209			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18210			found="yes"
18211		fi
18212	fi
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228xorg_testset_save_CFLAGS="$CFLAGS"
18229
18230if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18231	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18232	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18233printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18234if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18235then :
18236  printf %s "(cached) " >&6
18237else $as_nop
18238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18239/* end confdefs.h.  */
18240int i;
18241_ACEOF
18242if ac_fn_c_try_compile "$LINENO"
18243then :
18244  xorg_cv_cc_flag_unknown_warning_option=yes
18245else $as_nop
18246  xorg_cv_cc_flag_unknown_warning_option=no
18247fi
18248rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18249fi
18250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18251printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18252	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18253	CFLAGS="$xorg_testset_save_CFLAGS"
18254fi
18255
18256if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18257	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18258		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18259	fi
18260	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18261	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18262printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18263if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18264then :
18265  printf %s "(cached) " >&6
18266else $as_nop
18267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18268/* end confdefs.h.  */
18269int i;
18270_ACEOF
18271if ac_fn_c_try_compile "$LINENO"
18272then :
18273  xorg_cv_cc_flag_unused_command_line_argument=yes
18274else $as_nop
18275  xorg_cv_cc_flag_unused_command_line_argument=no
18276fi
18277rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18278fi
18279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18280printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18281	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18282	CFLAGS="$xorg_testset_save_CFLAGS"
18283fi
18284
18285found="no"
18286
18287	if test $found = "no" ; then
18288		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18289			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18290		fi
18291
18292		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18293			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18294		fi
18295
18296		CFLAGS="$CFLAGS -Waddress"
18297
18298		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18299printf %s "checking if $CC supports -Waddress... " >&6; }
18300		cacheid=xorg_cv_cc_flag__Waddress
18301		if eval test \${$cacheid+y}
18302then :
18303  printf %s "(cached) " >&6
18304else $as_nop
18305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18306/* end confdefs.h.  */
18307int i;
18308int
18309main (void)
18310{
18311
18312  ;
18313  return 0;
18314}
18315_ACEOF
18316if ac_fn_c_try_link "$LINENO"
18317then :
18318  eval $cacheid=yes
18319else $as_nop
18320  eval $cacheid=no
18321fi
18322rm -f core conftest.err conftest.$ac_objext conftest.beam \
18323    conftest$ac_exeext conftest.$ac_ext
18324fi
18325
18326
18327		CFLAGS="$xorg_testset_save_CFLAGS"
18328
18329		eval supported=\$$cacheid
18330		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18331printf "%s\n" "$supported" >&6; }
18332		if test "$supported" = "yes" ; then
18333			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18334			found="yes"
18335		fi
18336	fi
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352xorg_testset_save_CFLAGS="$CFLAGS"
18353
18354if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18355	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18356	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18357printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18358if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18359then :
18360  printf %s "(cached) " >&6
18361else $as_nop
18362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18363/* end confdefs.h.  */
18364int i;
18365_ACEOF
18366if ac_fn_c_try_compile "$LINENO"
18367then :
18368  xorg_cv_cc_flag_unknown_warning_option=yes
18369else $as_nop
18370  xorg_cv_cc_flag_unknown_warning_option=no
18371fi
18372rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18373fi
18374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18375printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18376	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18377	CFLAGS="$xorg_testset_save_CFLAGS"
18378fi
18379
18380if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18381	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18382		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18383	fi
18384	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18385	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18386printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18387if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18388then :
18389  printf %s "(cached) " >&6
18390else $as_nop
18391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18392/* end confdefs.h.  */
18393int i;
18394_ACEOF
18395if ac_fn_c_try_compile "$LINENO"
18396then :
18397  xorg_cv_cc_flag_unused_command_line_argument=yes
18398else $as_nop
18399  xorg_cv_cc_flag_unused_command_line_argument=no
18400fi
18401rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18402fi
18403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18404printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18405	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18406	CFLAGS="$xorg_testset_save_CFLAGS"
18407fi
18408
18409found="no"
18410
18411	if test $found = "no" ; then
18412		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18413			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18414		fi
18415
18416		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18417			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18418		fi
18419
18420		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18421
18422		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18423printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18424		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18425		if eval test \${$cacheid+y}
18426then :
18427  printf %s "(cached) " >&6
18428else $as_nop
18429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18430/* end confdefs.h.  */
18431int i;
18432int
18433main (void)
18434{
18435
18436  ;
18437  return 0;
18438}
18439_ACEOF
18440if ac_fn_c_try_link "$LINENO"
18441then :
18442  eval $cacheid=yes
18443else $as_nop
18444  eval $cacheid=no
18445fi
18446rm -f core conftest.err conftest.$ac_objext conftest.beam \
18447    conftest$ac_exeext conftest.$ac_ext
18448fi
18449
18450
18451		CFLAGS="$xorg_testset_save_CFLAGS"
18452
18453		eval supported=\$$cacheid
18454		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18455printf "%s\n" "$supported" >&6; }
18456		if test "$supported" = "yes" ; then
18457			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18458			found="yes"
18459		fi
18460	fi
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476xorg_testset_save_CFLAGS="$CFLAGS"
18477
18478if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18479	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18480	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18481printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18482if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18483then :
18484  printf %s "(cached) " >&6
18485else $as_nop
18486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18487/* end confdefs.h.  */
18488int i;
18489_ACEOF
18490if ac_fn_c_try_compile "$LINENO"
18491then :
18492  xorg_cv_cc_flag_unknown_warning_option=yes
18493else $as_nop
18494  xorg_cv_cc_flag_unknown_warning_option=no
18495fi
18496rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18497fi
18498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18499printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18500	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18501	CFLAGS="$xorg_testset_save_CFLAGS"
18502fi
18503
18504if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18505	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18506		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18507	fi
18508	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18509	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18510printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18511if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18512then :
18513  printf %s "(cached) " >&6
18514else $as_nop
18515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18516/* end confdefs.h.  */
18517int i;
18518_ACEOF
18519if ac_fn_c_try_compile "$LINENO"
18520then :
18521  xorg_cv_cc_flag_unused_command_line_argument=yes
18522else $as_nop
18523  xorg_cv_cc_flag_unused_command_line_argument=no
18524fi
18525rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18526fi
18527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18528printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18529	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18530	CFLAGS="$xorg_testset_save_CFLAGS"
18531fi
18532
18533found="no"
18534
18535	if test $found = "no" ; then
18536		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18537			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18538		fi
18539
18540		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18541			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18542		fi
18543
18544		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18545
18546		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18547printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18548		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18549		if eval test \${$cacheid+y}
18550then :
18551  printf %s "(cached) " >&6
18552else $as_nop
18553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18554/* end confdefs.h.  */
18555int i;
18556int
18557main (void)
18558{
18559
18560  ;
18561  return 0;
18562}
18563_ACEOF
18564if ac_fn_c_try_link "$LINENO"
18565then :
18566  eval $cacheid=yes
18567else $as_nop
18568  eval $cacheid=no
18569fi
18570rm -f core conftest.err conftest.$ac_objext conftest.beam \
18571    conftest$ac_exeext conftest.$ac_ext
18572fi
18573
18574
18575		CFLAGS="$xorg_testset_save_CFLAGS"
18576
18577		eval supported=\$$cacheid
18578		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18579printf "%s\n" "$supported" >&6; }
18580		if test "$supported" = "yes" ; then
18581			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18582			found="yes"
18583		fi
18584	fi
18585
18586
18587fi
18588
18589
18590
18591
18592
18593
18594
18595		CWARNFLAGS="$BASE_CFLAGS"
18596		if  test "x$GCC" = xyes ; then
18597		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18598		fi
18599
18600
18601
18602
18603
18604
18605
18606
18607# Check whether --enable-strict-compilation was given.
18608if test ${enable_strict_compilation+y}
18609then :
18610  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18611else $as_nop
18612  STRICT_COMPILE=no
18613fi
18614
18615
18616
18617
18618
18619
18620STRICT_CFLAGS=""
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634xorg_testset_save_CFLAGS="$CFLAGS"
18635
18636if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18637	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18638	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18639printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18640if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18641then :
18642  printf %s "(cached) " >&6
18643else $as_nop
18644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18645/* end confdefs.h.  */
18646int i;
18647_ACEOF
18648if ac_fn_c_try_compile "$LINENO"
18649then :
18650  xorg_cv_cc_flag_unknown_warning_option=yes
18651else $as_nop
18652  xorg_cv_cc_flag_unknown_warning_option=no
18653fi
18654rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18655fi
18656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18657printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18658	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18659	CFLAGS="$xorg_testset_save_CFLAGS"
18660fi
18661
18662if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18663	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18664		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18665	fi
18666	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18667	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18668printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18669if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18670then :
18671  printf %s "(cached) " >&6
18672else $as_nop
18673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18674/* end confdefs.h.  */
18675int i;
18676_ACEOF
18677if ac_fn_c_try_compile "$LINENO"
18678then :
18679  xorg_cv_cc_flag_unused_command_line_argument=yes
18680else $as_nop
18681  xorg_cv_cc_flag_unused_command_line_argument=no
18682fi
18683rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18684fi
18685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18686printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18687	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18688	CFLAGS="$xorg_testset_save_CFLAGS"
18689fi
18690
18691found="no"
18692
18693	if test $found = "no" ; then
18694		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18695			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18696		fi
18697
18698		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18699			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18700		fi
18701
18702		CFLAGS="$CFLAGS -pedantic"
18703
18704		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18705printf %s "checking if $CC supports -pedantic... " >&6; }
18706		cacheid=xorg_cv_cc_flag__pedantic
18707		if eval test \${$cacheid+y}
18708then :
18709  printf %s "(cached) " >&6
18710else $as_nop
18711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18712/* end confdefs.h.  */
18713int i;
18714int
18715main (void)
18716{
18717
18718  ;
18719  return 0;
18720}
18721_ACEOF
18722if ac_fn_c_try_link "$LINENO"
18723then :
18724  eval $cacheid=yes
18725else $as_nop
18726  eval $cacheid=no
18727fi
18728rm -f core conftest.err conftest.$ac_objext conftest.beam \
18729    conftest$ac_exeext conftest.$ac_ext
18730fi
18731
18732
18733		CFLAGS="$xorg_testset_save_CFLAGS"
18734
18735		eval supported=\$$cacheid
18736		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18737printf "%s\n" "$supported" >&6; }
18738		if test "$supported" = "yes" ; then
18739			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18740			found="yes"
18741		fi
18742	fi
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758xorg_testset_save_CFLAGS="$CFLAGS"
18759
18760if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18761	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18762	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18763printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18764if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18765then :
18766  printf %s "(cached) " >&6
18767else $as_nop
18768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18769/* end confdefs.h.  */
18770int i;
18771_ACEOF
18772if ac_fn_c_try_compile "$LINENO"
18773then :
18774  xorg_cv_cc_flag_unknown_warning_option=yes
18775else $as_nop
18776  xorg_cv_cc_flag_unknown_warning_option=no
18777fi
18778rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18779fi
18780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18781printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18782	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18783	CFLAGS="$xorg_testset_save_CFLAGS"
18784fi
18785
18786if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18787	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18788		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18789	fi
18790	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18791	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18792printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18793if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18794then :
18795  printf %s "(cached) " >&6
18796else $as_nop
18797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18798/* end confdefs.h.  */
18799int i;
18800_ACEOF
18801if ac_fn_c_try_compile "$LINENO"
18802then :
18803  xorg_cv_cc_flag_unused_command_line_argument=yes
18804else $as_nop
18805  xorg_cv_cc_flag_unused_command_line_argument=no
18806fi
18807rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18808fi
18809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18810printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18811	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18812	CFLAGS="$xorg_testset_save_CFLAGS"
18813fi
18814
18815found="no"
18816
18817	if test $found = "no" ; then
18818		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18819			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18820		fi
18821
18822		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18823			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18824		fi
18825
18826		CFLAGS="$CFLAGS -Werror"
18827
18828		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18829printf %s "checking if $CC supports -Werror... " >&6; }
18830		cacheid=xorg_cv_cc_flag__Werror
18831		if eval test \${$cacheid+y}
18832then :
18833  printf %s "(cached) " >&6
18834else $as_nop
18835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18836/* end confdefs.h.  */
18837int i;
18838int
18839main (void)
18840{
18841
18842  ;
18843  return 0;
18844}
18845_ACEOF
18846if ac_fn_c_try_link "$LINENO"
18847then :
18848  eval $cacheid=yes
18849else $as_nop
18850  eval $cacheid=no
18851fi
18852rm -f core conftest.err conftest.$ac_objext conftest.beam \
18853    conftest$ac_exeext conftest.$ac_ext
18854fi
18855
18856
18857		CFLAGS="$xorg_testset_save_CFLAGS"
18858
18859		eval supported=\$$cacheid
18860		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18861printf "%s\n" "$supported" >&6; }
18862		if test "$supported" = "yes" ; then
18863			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18864			found="yes"
18865		fi
18866	fi
18867
18868	if test $found = "no" ; then
18869		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18870			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18871		fi
18872
18873		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18874			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18875		fi
18876
18877		CFLAGS="$CFLAGS -errwarn"
18878
18879		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18880printf %s "checking if $CC supports -errwarn... " >&6; }
18881		cacheid=xorg_cv_cc_flag__errwarn
18882		if eval test \${$cacheid+y}
18883then :
18884  printf %s "(cached) " >&6
18885else $as_nop
18886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18887/* end confdefs.h.  */
18888int i;
18889int
18890main (void)
18891{
18892
18893  ;
18894  return 0;
18895}
18896_ACEOF
18897if ac_fn_c_try_link "$LINENO"
18898then :
18899  eval $cacheid=yes
18900else $as_nop
18901  eval $cacheid=no
18902fi
18903rm -f core conftest.err conftest.$ac_objext conftest.beam \
18904    conftest$ac_exeext conftest.$ac_ext
18905fi
18906
18907
18908		CFLAGS="$xorg_testset_save_CFLAGS"
18909
18910		eval supported=\$$cacheid
18911		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18912printf "%s\n" "$supported" >&6; }
18913		if test "$supported" = "yes" ; then
18914			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18915			found="yes"
18916		fi
18917	fi
18918
18919
18920
18921# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18922# activate it with -Werror, so we add it here explicitly.
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936xorg_testset_save_CFLAGS="$CFLAGS"
18937
18938if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18939	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18940	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18941printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18942if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18943then :
18944  printf %s "(cached) " >&6
18945else $as_nop
18946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18947/* end confdefs.h.  */
18948int i;
18949_ACEOF
18950if ac_fn_c_try_compile "$LINENO"
18951then :
18952  xorg_cv_cc_flag_unknown_warning_option=yes
18953else $as_nop
18954  xorg_cv_cc_flag_unknown_warning_option=no
18955fi
18956rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18957fi
18958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18959printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18960	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18961	CFLAGS="$xorg_testset_save_CFLAGS"
18962fi
18963
18964if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18965	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18966		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18967	fi
18968	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18969	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18970printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18971if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18972then :
18973  printf %s "(cached) " >&6
18974else $as_nop
18975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18976/* end confdefs.h.  */
18977int i;
18978_ACEOF
18979if ac_fn_c_try_compile "$LINENO"
18980then :
18981  xorg_cv_cc_flag_unused_command_line_argument=yes
18982else $as_nop
18983  xorg_cv_cc_flag_unused_command_line_argument=no
18984fi
18985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18986fi
18987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18988printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18989	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18990	CFLAGS="$xorg_testset_save_CFLAGS"
18991fi
18992
18993found="no"
18994
18995	if test $found = "no" ; then
18996		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18997			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18998		fi
18999
19000		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19001			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19002		fi
19003
19004		CFLAGS="$CFLAGS -Werror=attributes"
19005
19006		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19007printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19008		cacheid=xorg_cv_cc_flag__Werror_attributes
19009		if eval test \${$cacheid+y}
19010then :
19011  printf %s "(cached) " >&6
19012else $as_nop
19013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19014/* end confdefs.h.  */
19015int i;
19016int
19017main (void)
19018{
19019
19020  ;
19021  return 0;
19022}
19023_ACEOF
19024if ac_fn_c_try_link "$LINENO"
19025then :
19026  eval $cacheid=yes
19027else $as_nop
19028  eval $cacheid=no
19029fi
19030rm -f core conftest.err conftest.$ac_objext conftest.beam \
19031    conftest$ac_exeext conftest.$ac_ext
19032fi
19033
19034
19035		CFLAGS="$xorg_testset_save_CFLAGS"
19036
19037		eval supported=\$$cacheid
19038		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19039printf "%s\n" "$supported" >&6; }
19040		if test "$supported" = "yes" ; then
19041			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19042			found="yes"
19043		fi
19044	fi
19045
19046
19047
19048if test "x$STRICT_COMPILE" = "xyes"; then
19049    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19050    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19051fi
19052
19053
19054
19055
19056
19057
19058cat >>confdefs.h <<_ACEOF
19059#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19060_ACEOF
19061
19062	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19063	if test "x$PVM" = "x"; then
19064		PVM="0"
19065	fi
19066
19067printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19068
19069	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19070	if test "x$PVP" = "x"; then
19071		PVP="0"
19072	fi
19073
19074printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19075
19076
19077
19078CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19079mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19080|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19081touch \$(top_srcdir)/ChangeLog; \
19082echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19083
19084
19085
19086
19087macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19088INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19089mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19090|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19091touch \$(top_srcdir)/INSTALL; \
19092echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19093
19094
19095
19096
19097
19098
19099case $host_os in
19100    solaris*)
19101        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19102        # check for a man page file found in later versions that use
19103        # traditional section numbers instead
19104        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19105printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19106if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19107then :
19108  printf %s "(cached) " >&6
19109else $as_nop
19110  test "$cross_compiling" = yes &&
19111  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19112if test -r "/usr/share/man/man7/attributes.7"; then
19113  ac_cv_file__usr_share_man_man7_attributes_7=yes
19114else
19115  ac_cv_file__usr_share_man_man7_attributes_7=no
19116fi
19117fi
19118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19119printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19120if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19121then :
19122  SYSV_MAN_SECTIONS=false
19123else $as_nop
19124  SYSV_MAN_SECTIONS=true
19125fi
19126
19127        ;;
19128    *) SYSV_MAN_SECTIONS=false ;;
19129esac
19130
19131if test x$APP_MAN_SUFFIX = x    ; then
19132    APP_MAN_SUFFIX=1
19133fi
19134if test x$APP_MAN_DIR = x    ; then
19135    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19136fi
19137
19138if test x$LIB_MAN_SUFFIX = x    ; then
19139    LIB_MAN_SUFFIX=3
19140fi
19141if test x$LIB_MAN_DIR = x    ; then
19142    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19143fi
19144
19145if test x$FILE_MAN_SUFFIX = x    ; then
19146    case $SYSV_MAN_SECTIONS in
19147	true)				FILE_MAN_SUFFIX=4  ;;
19148	*)				FILE_MAN_SUFFIX=5  ;;
19149    esac
19150fi
19151if test x$FILE_MAN_DIR = x    ; then
19152    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19153fi
19154
19155if test x$MISC_MAN_SUFFIX = x    ; then
19156    case $SYSV_MAN_SECTIONS in
19157	true)				MISC_MAN_SUFFIX=5  ;;
19158	*)				MISC_MAN_SUFFIX=7  ;;
19159    esac
19160fi
19161if test x$MISC_MAN_DIR = x    ; then
19162    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19163fi
19164
19165if test x$DRIVER_MAN_SUFFIX = x    ; then
19166    case $SYSV_MAN_SECTIONS in
19167	true)				DRIVER_MAN_SUFFIX=7  ;;
19168	*)				DRIVER_MAN_SUFFIX=4  ;;
19169    esac
19170fi
19171if test x$DRIVER_MAN_DIR = x    ; then
19172    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19173fi
19174
19175if test x$ADMIN_MAN_SUFFIX = x    ; then
19176    case $SYSV_MAN_SECTIONS in
19177	true)				ADMIN_MAN_SUFFIX=1m ;;
19178	*)				ADMIN_MAN_SUFFIX=8  ;;
19179    esac
19180fi
19181if test x$ADMIN_MAN_DIR = x    ; then
19182    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19183fi
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196
19197
19198
19199XORG_MAN_PAGE="X Version 11"
19200
19201MAN_SUBSTS="\
19202	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19203	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19204	-e 's|__xservername__|Xorg|g' \
19205	-e 's|__xconfigfile__|xorg.conf|g' \
19206	-e 's|__projectroot__|\$(prefix)|g' \
19207	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
19208	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19209	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19210	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19211	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19212	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19213	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19214
19215
19216
19217# Check whether --enable-silent-rules was given.
19218if test ${enable_silent_rules+y}
19219then :
19220  enableval=$enable_silent_rules;
19221fi
19222
19223case $enable_silent_rules in # (((
19224  yes) AM_DEFAULT_VERBOSITY=0;;
19225   no) AM_DEFAULT_VERBOSITY=1;;
19226    *) AM_DEFAULT_VERBOSITY=0;;
19227esac
19228am_make=${MAKE-make}
19229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19230printf %s "checking whether $am_make supports nested variables... " >&6; }
19231if test ${am_cv_make_support_nested_variables+y}
19232then :
19233  printf %s "(cached) " >&6
19234else $as_nop
19235  if printf "%s\n" 'TRUE=$(BAR$(V))
19236BAR0=false
19237BAR1=true
19238V=1
19239am__doit:
19240	@$(TRUE)
19241.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19242  am_cv_make_support_nested_variables=yes
19243else
19244  am_cv_make_support_nested_variables=no
19245fi
19246fi
19247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19248printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19249if test $am_cv_make_support_nested_variables = yes; then
19250    AM_V='$(V)'
19251  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19252else
19253  AM_V=$AM_DEFAULT_VERBOSITY
19254  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19255fi
19256AM_BACKSLASH='\'
19257
19258
19259
19260# Check whether --enable-malloc0returnsnull was given.
19261if test ${enable_malloc0returnsnull+y}
19262then :
19263  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
19264else $as_nop
19265  MALLOC_ZERO_RETURNS_NULL=auto
19266fi
19267
19268
19269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
19270printf %s "checking whether malloc(0) returns NULL... " >&6; }
19271if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
19272if test ${xorg_cv_malloc0_returns_null+y}
19273then :
19274  printf %s "(cached) " >&6
19275else $as_nop
19276  if test "$cross_compiling" = yes
19277then :
19278  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19279printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19280as_fn_error $? "cannot run test program while cross compiling
19281See \`config.log' for more details" "$LINENO" 5; }
19282else $as_nop
19283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19284/* end confdefs.h.  */
19285
19286#include <stdlib.h>
19287
19288int
19289main (void)
19290{
19291
19292    char *m0, *r0, *c0, *p;
19293    m0 = malloc(0);
19294    p = malloc(10);
19295    r0 = realloc(p,0);
19296    c0 = calloc(0,10);
19297    exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
19298
19299  ;
19300  return 0;
19301}
19302_ACEOF
19303if ac_fn_c_try_run "$LINENO"
19304then :
19305  xorg_cv_malloc0_returns_null=yes
19306else $as_nop
19307  xorg_cv_malloc0_returns_null=no
19308fi
19309rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19310  conftest.$ac_objext conftest.beam conftest.$ac_ext
19311fi
19312
19313fi
19314
19315MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
19316fi
19317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
19318printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; }
19319
19320if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
19321	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
19322	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
19323	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
19324else
19325	MALLOC_ZERO_CFLAGS=""
19326	XMALLOC_ZERO_CFLAGS=""
19327	XTMALLOC_ZERO_CFLAGS=""
19328fi
19329
19330
19331
19332
19333
19334
19335# Obtain compiler/linker options for dependencies
19336
19337pkg_failed=no
19338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XV" >&5
19339printf %s "checking for XV... " >&6; }
19340
19341if test -n "$XV_CFLAGS"; then
19342    pkg_cv_XV_CFLAGS="$XV_CFLAGS"
19343 elif test -n "$PKG_CONFIG"; then
19344    if test -n "$PKG_CONFIG" && \
19345    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xextproto videoproto\""; } >&5
19346  ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xextproto videoproto") 2>&5
19347  ac_status=$?
19348  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19349  test $ac_status = 0; }; then
19350  pkg_cv_XV_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.6 xext xextproto videoproto" 2>/dev/null`
19351		      test "x$?" != "x0" && pkg_failed=yes
19352else
19353  pkg_failed=yes
19354fi
19355 else
19356    pkg_failed=untried
19357fi
19358if test -n "$XV_LIBS"; then
19359    pkg_cv_XV_LIBS="$XV_LIBS"
19360 elif test -n "$PKG_CONFIG"; then
19361    if test -n "$PKG_CONFIG" && \
19362    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xextproto videoproto\""; } >&5
19363  ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xextproto videoproto") 2>&5
19364  ac_status=$?
19365  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19366  test $ac_status = 0; }; then
19367  pkg_cv_XV_LIBS=`$PKG_CONFIG --libs "x11 >= 1.6 xext xextproto videoproto" 2>/dev/null`
19368		      test "x$?" != "x0" && pkg_failed=yes
19369else
19370  pkg_failed=yes
19371fi
19372 else
19373    pkg_failed=untried
19374fi
19375
19376
19377
19378if test $pkg_failed = yes; then
19379   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19380printf "%s\n" "no" >&6; }
19381
19382if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19383        _pkg_short_errors_supported=yes
19384else
19385        _pkg_short_errors_supported=no
19386fi
19387        if test $_pkg_short_errors_supported = yes; then
19388	        XV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.6 xext xextproto videoproto" 2>&1`
19389        else
19390	        XV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.6 xext xextproto videoproto" 2>&1`
19391        fi
19392	# Put the nasty error message in config.log where it belongs
19393	echo "$XV_PKG_ERRORS" >&5
19394
19395	as_fn_error $? "Package requirements (x11 >= 1.6 xext xextproto videoproto) were not met:
19396
19397$XV_PKG_ERRORS
19398
19399Consider adjusting the PKG_CONFIG_PATH environment variable if you
19400installed software in a non-standard prefix.
19401
19402Alternatively, you may set the environment variables XV_CFLAGS
19403and XV_LIBS to avoid the need to call pkg-config.
19404See the pkg-config man page for more details." "$LINENO" 5
19405elif test $pkg_failed = untried; then
19406     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19407printf "%s\n" "no" >&6; }
19408	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19409printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19410as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19411is in your PATH or set the PKG_CONFIG environment variable to the full
19412path to pkg-config.
19413
19414Alternatively, you may set the environment variables XV_CFLAGS
19415and XV_LIBS to avoid the need to call pkg-config.
19416See the pkg-config man page for more details.
19417
19418To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19419See \`config.log' for more details" "$LINENO" 5; }
19420else
19421	XV_CFLAGS=$pkg_cv_XV_CFLAGS
19422	XV_LIBS=$pkg_cv_XV_LIBS
19423        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19424printf "%s\n" "yes" >&6; }
19425
19426fi
19427
19428# Allow checking code with lint, sparse, etc.
19429
19430
19431
19432
19433
19434# Check whether --with-lint was given.
19435if test ${with_lint+y}
19436then :
19437  withval=$with_lint; use_lint=$withval
19438else $as_nop
19439  use_lint=no
19440fi
19441
19442
19443# Obtain platform specific info like program name and options
19444# The lint program on FreeBSD and NetBSD is different from the one on Solaris
19445case $host_os in
19446  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
19447	lint_name=splint
19448	lint_options="-badflag"
19449	;;
19450  *freebsd* | *netbsd*)
19451	lint_name=lint
19452	lint_options="-u -b"
19453	;;
19454  *solaris*)
19455	lint_name=lint
19456	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
19457	;;
19458esac
19459
19460# Test for the presence of the program (either guessed by the code or spelled out by the user)
19461if test "x$use_lint" = x"yes" ; then
19462   # Extract the first word of "$lint_name", so it can be a program name with args.
19463set dummy $lint_name; ac_word=$2
19464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19465printf %s "checking for $ac_word... " >&6; }
19466if test ${ac_cv_path_LINT+y}
19467then :
19468  printf %s "(cached) " >&6
19469else $as_nop
19470  case $LINT in
19471  [\\/]* | ?:[\\/]*)
19472  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
19473  ;;
19474  *)
19475  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19476for as_dir in $PATH
19477do
19478  IFS=$as_save_IFS
19479  case $as_dir in #(((
19480    '') as_dir=./ ;;
19481    */) ;;
19482    *) as_dir=$as_dir/ ;;
19483  esac
19484    for ac_exec_ext in '' $ac_executable_extensions; do
19485  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19486    ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
19487    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19488    break 2
19489  fi
19490done
19491  done
19492IFS=$as_save_IFS
19493
19494  ;;
19495esac
19496fi
19497LINT=$ac_cv_path_LINT
19498if test -n "$LINT"; then
19499  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
19500printf "%s\n" "$LINT" >&6; }
19501else
19502  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19503printf "%s\n" "no" >&6; }
19504fi
19505
19506
19507   if test "x$LINT" = "x"; then
19508        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
19509   fi
19510elif test "x$use_lint" = x"no" ; then
19511   if test "x$LINT" != "x"; then
19512      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
19513printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
19514   fi
19515else
19516   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
19517fi
19518
19519# User supplied flags override default flags
19520if test "x$LINT_FLAGS" != "x"; then
19521   lint_options=$LINT_FLAGS
19522fi
19523
19524LINT_FLAGS=$lint_options
19525
19526 if test "x$LINT" != x; then
19527  LINT_TRUE=
19528  LINT_FALSE='#'
19529else
19530  LINT_TRUE='#'
19531  LINT_FALSE=
19532fi
19533
19534
19535
19536
19537
19538# Check whether --enable-lint-library was given.
19539if test ${enable_lint_library+y}
19540then :
19541  enableval=$enable_lint_library; make_lint_lib=$enableval
19542else $as_nop
19543  make_lint_lib=no
19544fi
19545
19546
19547if test "x$make_lint_lib" = x"yes" ; then
19548   LINTLIB=llib-lXv.ln
19549   if test "x$LINT" = "x"; then
19550        as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
19551   fi
19552elif test "x$make_lint_lib" != x"no" ; then
19553   as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
19554fi
19555
19556
19557 if test x$make_lint_lib != xno; then
19558  MAKE_LINT_LIB_TRUE=
19559  MAKE_LINT_LIB_FALSE='#'
19560else
19561  MAKE_LINT_LIB_TRUE='#'
19562  MAKE_LINT_LIB_FALSE=
19563fi
19564
19565
19566
19567
19568ac_config_files="$ac_config_files Makefile include/Makefile include/X11/Makefile include/X11/extensions/Makefile src/Makefile man/Makefile xv.pc"
19569
19570cat >confcache <<\_ACEOF
19571# This file is a shell script that caches the results of configure
19572# tests run on this system so they can be shared between configure
19573# scripts and configure runs, see configure's option --config-cache.
19574# It is not useful on other systems.  If it contains results you don't
19575# want to keep, you may remove or edit it.
19576#
19577# config.status only pays attention to the cache file if you give it
19578# the --recheck option to rerun configure.
19579#
19580# `ac_cv_env_foo' variables (set or unset) will be overridden when
19581# loading this file, other *unset* `ac_cv_foo' will be assigned the
19582# following values.
19583
19584_ACEOF
19585
19586# The following way of writing the cache mishandles newlines in values,
19587# but we know of no workaround that is simple, portable, and efficient.
19588# So, we kill variables containing newlines.
19589# Ultrix sh set writes to stderr and can't be redirected directly,
19590# and sets the high bit in the cache file unless we assign to the vars.
19591(
19592  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19593    eval ac_val=\$$ac_var
19594    case $ac_val in #(
19595    *${as_nl}*)
19596      case $ac_var in #(
19597      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19598printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19599      esac
19600      case $ac_var in #(
19601      _ | IFS | as_nl) ;; #(
19602      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19603      *) { eval $ac_var=; unset $ac_var;} ;;
19604      esac ;;
19605    esac
19606  done
19607
19608  (set) 2>&1 |
19609    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19610    *${as_nl}ac_space=\ *)
19611      # `set' does not quote correctly, so add quotes: double-quote
19612      # substitution turns \\\\ into \\, and sed turns \\ into \.
19613      sed -n \
19614	"s/'/'\\\\''/g;
19615	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19616      ;; #(
19617    *)
19618      # `set' quotes correctly as required by POSIX, so do not add quotes.
19619      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19620      ;;
19621    esac |
19622    sort
19623) |
19624  sed '
19625     /^ac_cv_env_/b end
19626     t clear
19627     :clear
19628     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19629     t end
19630     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19631     :end' >>confcache
19632if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19633  if test -w "$cache_file"; then
19634    if test "x$cache_file" != "x/dev/null"; then
19635      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19636printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19637      if test ! -f "$cache_file" || test -h "$cache_file"; then
19638	cat confcache >"$cache_file"
19639      else
19640        case $cache_file in #(
19641        */* | ?:*)
19642	  mv -f confcache "$cache_file"$$ &&
19643	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19644        *)
19645	  mv -f confcache "$cache_file" ;;
19646	esac
19647      fi
19648    fi
19649  else
19650    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19651printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19652  fi
19653fi
19654rm -f confcache
19655
19656test "x$prefix" = xNONE && prefix=$ac_default_prefix
19657# Let make expand exec_prefix.
19658test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19659
19660DEFS=-DHAVE_CONFIG_H
19661
19662ac_libobjs=
19663ac_ltlibobjs=
19664U=
19665for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19666  # 1. Remove the extension, and $U if already installed.
19667  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19668  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19669  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19670  #    will be set to the directory where LIBOBJS objects are built.
19671  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19672  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19673done
19674LIBOBJS=$ac_libobjs
19675
19676LTLIBOBJS=$ac_ltlibobjs
19677
19678
19679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19680printf %s "checking that generated files are newer than configure... " >&6; }
19681   if test -n "$am_sleep_pid"; then
19682     # Hide warnings about reused PIDs.
19683     wait $am_sleep_pid 2>/dev/null
19684   fi
19685   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19686printf "%s\n" "done" >&6; }
19687 if test -n "$EXEEXT"; then
19688  am__EXEEXT_TRUE=
19689  am__EXEEXT_FALSE='#'
19690else
19691  am__EXEEXT_TRUE='#'
19692  am__EXEEXT_FALSE=
19693fi
19694
19695if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19696  as_fn_error $? "conditional \"AMDEP\" was never defined.
19697Usually this means the macro was only invoked conditionally." "$LINENO" 5
19698fi
19699if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19700  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19701Usually this means the macro was only invoked conditionally." "$LINENO" 5
19702fi
19703if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
19704  as_fn_error $? "conditional \"LINT\" was never defined.
19705Usually this means the macro was only invoked conditionally." "$LINENO" 5
19706fi
19707if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
19708  as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
19709Usually this means the macro was only invoked conditionally." "$LINENO" 5
19710fi
19711
19712: "${CONFIG_STATUS=./config.status}"
19713ac_write_fail=0
19714ac_clean_files_save=$ac_clean_files
19715ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19717printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19718as_write_fail=0
19719cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19720#! $SHELL
19721# Generated by $as_me.
19722# Run this file to recreate the current configuration.
19723# Compiler output produced by configure, useful for debugging
19724# configure, is in config.log if it exists.
19725
19726debug=false
19727ac_cs_recheck=false
19728ac_cs_silent=false
19729
19730SHELL=\${CONFIG_SHELL-$SHELL}
19731export SHELL
19732_ASEOF
19733cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19734## -------------------- ##
19735## M4sh Initialization. ##
19736## -------------------- ##
19737
19738# Be more Bourne compatible
19739DUALCASE=1; export DUALCASE # for MKS sh
19740as_nop=:
19741if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19742then :
19743  emulate sh
19744  NULLCMD=:
19745  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19746  # is contrary to our usage.  Disable this feature.
19747  alias -g '${1+"$@"}'='"$@"'
19748  setopt NO_GLOB_SUBST
19749else $as_nop
19750  case `(set -o) 2>/dev/null` in #(
19751  *posix*) :
19752    set -o posix ;; #(
19753  *) :
19754     ;;
19755esac
19756fi
19757
19758
19759
19760# Reset variables that may have inherited troublesome values from
19761# the environment.
19762
19763# IFS needs to be set, to space, tab, and newline, in precisely that order.
19764# (If _AS_PATH_WALK were called with IFS unset, it would have the
19765# side effect of setting IFS to empty, thus disabling word splitting.)
19766# Quoting is to prevent editors from complaining about space-tab.
19767as_nl='
19768'
19769export as_nl
19770IFS=" ""	$as_nl"
19771
19772PS1='$ '
19773PS2='> '
19774PS4='+ '
19775
19776# Ensure predictable behavior from utilities with locale-dependent output.
19777LC_ALL=C
19778export LC_ALL
19779LANGUAGE=C
19780export LANGUAGE
19781
19782# We cannot yet rely on "unset" to work, but we need these variables
19783# to be unset--not just set to an empty or harmless value--now, to
19784# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
19785# also avoids known problems related to "unset" and subshell syntax
19786# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19787for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19788do eval test \${$as_var+y} \
19789  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19790done
19791
19792# Ensure that fds 0, 1, and 2 are open.
19793if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19794if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19795if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
19796
19797# The user is always right.
19798if ${PATH_SEPARATOR+false} :; then
19799  PATH_SEPARATOR=:
19800  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19801    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19802      PATH_SEPARATOR=';'
19803  }
19804fi
19805
19806
19807# Find who we are.  Look in the path if we contain no directory separator.
19808as_myself=
19809case $0 in #((
19810  *[\\/]* ) as_myself=$0 ;;
19811  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19812for as_dir in $PATH
19813do
19814  IFS=$as_save_IFS
19815  case $as_dir in #(((
19816    '') as_dir=./ ;;
19817    */) ;;
19818    *) as_dir=$as_dir/ ;;
19819  esac
19820    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19821  done
19822IFS=$as_save_IFS
19823
19824     ;;
19825esac
19826# We did not find ourselves, most probably we were run as `sh COMMAND'
19827# in which case we are not to be found in the path.
19828if test "x$as_myself" = x; then
19829  as_myself=$0
19830fi
19831if test ! -f "$as_myself"; then
19832  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19833  exit 1
19834fi
19835
19836
19837
19838# as_fn_error STATUS ERROR [LINENO LOG_FD]
19839# ----------------------------------------
19840# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19841# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19842# script with STATUS, using 1 if that was 0.
19843as_fn_error ()
19844{
19845  as_status=$1; test $as_status -eq 0 && as_status=1
19846  if test "$4"; then
19847    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19848    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19849  fi
19850  printf "%s\n" "$as_me: error: $2" >&2
19851  as_fn_exit $as_status
19852} # as_fn_error
19853
19854
19855
19856# as_fn_set_status STATUS
19857# -----------------------
19858# Set $? to STATUS, without forking.
19859as_fn_set_status ()
19860{
19861  return $1
19862} # as_fn_set_status
19863
19864# as_fn_exit STATUS
19865# -----------------
19866# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19867as_fn_exit ()
19868{
19869  set +e
19870  as_fn_set_status $1
19871  exit $1
19872} # as_fn_exit
19873
19874# as_fn_unset VAR
19875# ---------------
19876# Portably unset VAR.
19877as_fn_unset ()
19878{
19879  { eval $1=; unset $1;}
19880}
19881as_unset=as_fn_unset
19882
19883# as_fn_append VAR VALUE
19884# ----------------------
19885# Append the text in VALUE to the end of the definition contained in VAR. Take
19886# advantage of any shell optimizations that allow amortized linear growth over
19887# repeated appends, instead of the typical quadratic growth present in naive
19888# implementations.
19889if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19890then :
19891  eval 'as_fn_append ()
19892  {
19893    eval $1+=\$2
19894  }'
19895else $as_nop
19896  as_fn_append ()
19897  {
19898    eval $1=\$$1\$2
19899  }
19900fi # as_fn_append
19901
19902# as_fn_arith ARG...
19903# ------------------
19904# Perform arithmetic evaluation on the ARGs, and store the result in the
19905# global $as_val. Take advantage of shells that can avoid forks. The arguments
19906# must be portable across $(()) and expr.
19907if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19908then :
19909  eval 'as_fn_arith ()
19910  {
19911    as_val=$(( $* ))
19912  }'
19913else $as_nop
19914  as_fn_arith ()
19915  {
19916    as_val=`expr "$@" || test $? -eq 1`
19917  }
19918fi # as_fn_arith
19919
19920
19921if expr a : '\(a\)' >/dev/null 2>&1 &&
19922   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19923  as_expr=expr
19924else
19925  as_expr=false
19926fi
19927
19928if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19929  as_basename=basename
19930else
19931  as_basename=false
19932fi
19933
19934if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19935  as_dirname=dirname
19936else
19937  as_dirname=false
19938fi
19939
19940as_me=`$as_basename -- "$0" ||
19941$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19942	 X"$0" : 'X\(//\)$' \| \
19943	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19944printf "%s\n" X/"$0" |
19945    sed '/^.*\/\([^/][^/]*\)\/*$/{
19946	    s//\1/
19947	    q
19948	  }
19949	  /^X\/\(\/\/\)$/{
19950	    s//\1/
19951	    q
19952	  }
19953	  /^X\/\(\/\).*/{
19954	    s//\1/
19955	    q
19956	  }
19957	  s/.*/./; q'`
19958
19959# Avoid depending upon Character Ranges.
19960as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19961as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19962as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19963as_cr_digits='0123456789'
19964as_cr_alnum=$as_cr_Letters$as_cr_digits
19965
19966
19967# Determine whether it's possible to make 'echo' print without a newline.
19968# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19969# for compatibility with existing Makefiles.
19970ECHO_C= ECHO_N= ECHO_T=
19971case `echo -n x` in #(((((
19972-n*)
19973  case `echo 'xy\c'` in
19974  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19975  xy)  ECHO_C='\c';;
19976  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19977       ECHO_T='	';;
19978  esac;;
19979*)
19980  ECHO_N='-n';;
19981esac
19982
19983# For backward compatibility with old third-party macros, we provide
19984# the shell variables $as_echo and $as_echo_n.  New code should use
19985# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19986as_echo='printf %s\n'
19987as_echo_n='printf %s'
19988
19989rm -f conf$$ conf$$.exe conf$$.file
19990if test -d conf$$.dir; then
19991  rm -f conf$$.dir/conf$$.file
19992else
19993  rm -f conf$$.dir
19994  mkdir conf$$.dir 2>/dev/null
19995fi
19996if (echo >conf$$.file) 2>/dev/null; then
19997  if ln -s conf$$.file conf$$ 2>/dev/null; then
19998    as_ln_s='ln -s'
19999    # ... but there are two gotchas:
20000    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20001    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20002    # In both cases, we have to default to `cp -pR'.
20003    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20004      as_ln_s='cp -pR'
20005  elif ln conf$$.file conf$$ 2>/dev/null; then
20006    as_ln_s=ln
20007  else
20008    as_ln_s='cp -pR'
20009  fi
20010else
20011  as_ln_s='cp -pR'
20012fi
20013rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20014rmdir conf$$.dir 2>/dev/null
20015
20016
20017# as_fn_mkdir_p
20018# -------------
20019# Create "$as_dir" as a directory, including parents if necessary.
20020as_fn_mkdir_p ()
20021{
20022
20023  case $as_dir in #(
20024  -*) as_dir=./$as_dir;;
20025  esac
20026  test -d "$as_dir" || eval $as_mkdir_p || {
20027    as_dirs=
20028    while :; do
20029      case $as_dir in #(
20030      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20031      *) as_qdir=$as_dir;;
20032      esac
20033      as_dirs="'$as_qdir' $as_dirs"
20034      as_dir=`$as_dirname -- "$as_dir" ||
20035$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20036	 X"$as_dir" : 'X\(//\)[^/]' \| \
20037	 X"$as_dir" : 'X\(//\)$' \| \
20038	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20039printf "%s\n" X"$as_dir" |
20040    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20041	    s//\1/
20042	    q
20043	  }
20044	  /^X\(\/\/\)[^/].*/{
20045	    s//\1/
20046	    q
20047	  }
20048	  /^X\(\/\/\)$/{
20049	    s//\1/
20050	    q
20051	  }
20052	  /^X\(\/\).*/{
20053	    s//\1/
20054	    q
20055	  }
20056	  s/.*/./; q'`
20057      test -d "$as_dir" && break
20058    done
20059    test -z "$as_dirs" || eval "mkdir $as_dirs"
20060  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20061
20062
20063} # as_fn_mkdir_p
20064if mkdir -p . 2>/dev/null; then
20065  as_mkdir_p='mkdir -p "$as_dir"'
20066else
20067  test -d ./-p && rmdir ./-p
20068  as_mkdir_p=false
20069fi
20070
20071
20072# as_fn_executable_p FILE
20073# -----------------------
20074# Test if FILE is an executable regular file.
20075as_fn_executable_p ()
20076{
20077  test -f "$1" && test -x "$1"
20078} # as_fn_executable_p
20079as_test_x='test -x'
20080as_executable_p=as_fn_executable_p
20081
20082# Sed expression to map a string onto a valid CPP name.
20083as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20084
20085# Sed expression to map a string onto a valid variable name.
20086as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20087
20088
20089exec 6>&1
20090## ----------------------------------- ##
20091## Main body of $CONFIG_STATUS script. ##
20092## ----------------------------------- ##
20093_ASEOF
20094test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20095
20096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20097# Save the log message, to keep $0 and so on meaningful, and to
20098# report actual input values of CONFIG_FILES etc. instead of their
20099# values after options handling.
20100ac_log="
20101This file was extended by libXv $as_me 1.0.12, which was
20102generated by GNU Autoconf 2.71.  Invocation command line was
20103
20104  CONFIG_FILES    = $CONFIG_FILES
20105  CONFIG_HEADERS  = $CONFIG_HEADERS
20106  CONFIG_LINKS    = $CONFIG_LINKS
20107  CONFIG_COMMANDS = $CONFIG_COMMANDS
20108  $ $0 $@
20109
20110on `(hostname || uname -n) 2>/dev/null | sed 1q`
20111"
20112
20113_ACEOF
20114
20115case $ac_config_files in *"
20116"*) set x $ac_config_files; shift; ac_config_files=$*;;
20117esac
20118
20119case $ac_config_headers in *"
20120"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20121esac
20122
20123
20124cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20125# Files that config.status was made for.
20126config_files="$ac_config_files"
20127config_headers="$ac_config_headers"
20128config_commands="$ac_config_commands"
20129
20130_ACEOF
20131
20132cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20133ac_cs_usage="\
20134\`$as_me' instantiates files and other configuration actions
20135from templates according to the current configuration.  Unless the files
20136and actions are specified as TAGs, all are instantiated by default.
20137
20138Usage: $0 [OPTION]... [TAG]...
20139
20140  -h, --help       print this help, then exit
20141  -V, --version    print version number and configuration settings, then exit
20142      --config     print configuration, then exit
20143  -q, --quiet, --silent
20144                   do not print progress messages
20145  -d, --debug      don't remove temporary files
20146      --recheck    update $as_me by reconfiguring in the same conditions
20147      --file=FILE[:TEMPLATE]
20148                   instantiate the configuration file FILE
20149      --header=FILE[:TEMPLATE]
20150                   instantiate the configuration header FILE
20151
20152Configuration files:
20153$config_files
20154
20155Configuration headers:
20156$config_headers
20157
20158Configuration commands:
20159$config_commands
20160
20161Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxv/-/issues>."
20162
20163_ACEOF
20164ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20165ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20166cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20167ac_cs_config='$ac_cs_config_escaped'
20168ac_cs_version="\\
20169libXv config.status 1.0.12
20170configured by $0, generated by GNU Autoconf 2.71,
20171  with options \\"\$ac_cs_config\\"
20172
20173Copyright (C) 2021 Free Software Foundation, Inc.
20174This config.status script is free software; the Free Software Foundation
20175gives unlimited permission to copy, distribute and modify it."
20176
20177ac_pwd='$ac_pwd'
20178srcdir='$srcdir'
20179INSTALL='$INSTALL'
20180MKDIR_P='$MKDIR_P'
20181AWK='$AWK'
20182test -n "\$AWK" || AWK=awk
20183_ACEOF
20184
20185cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20186# The default lists apply if the user does not specify any file.
20187ac_need_defaults=:
20188while test $# != 0
20189do
20190  case $1 in
20191  --*=?*)
20192    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20193    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20194    ac_shift=:
20195    ;;
20196  --*=)
20197    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20198    ac_optarg=
20199    ac_shift=:
20200    ;;
20201  *)
20202    ac_option=$1
20203    ac_optarg=$2
20204    ac_shift=shift
20205    ;;
20206  esac
20207
20208  case $ac_option in
20209  # Handling of the options.
20210  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20211    ac_cs_recheck=: ;;
20212  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20213    printf "%s\n" "$ac_cs_version"; exit ;;
20214  --config | --confi | --conf | --con | --co | --c )
20215    printf "%s\n" "$ac_cs_config"; exit ;;
20216  --debug | --debu | --deb | --de | --d | -d )
20217    debug=: ;;
20218  --file | --fil | --fi | --f )
20219    $ac_shift
20220    case $ac_optarg in
20221    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20222    '') as_fn_error $? "missing file argument" ;;
20223    esac
20224    as_fn_append CONFIG_FILES " '$ac_optarg'"
20225    ac_need_defaults=false;;
20226  --header | --heade | --head | --hea )
20227    $ac_shift
20228    case $ac_optarg in
20229    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20230    esac
20231    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20232    ac_need_defaults=false;;
20233  --he | --h)
20234    # Conflict between --help and --header
20235    as_fn_error $? "ambiguous option: \`$1'
20236Try \`$0 --help' for more information.";;
20237  --help | --hel | -h )
20238    printf "%s\n" "$ac_cs_usage"; exit ;;
20239  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20240  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20241    ac_cs_silent=: ;;
20242
20243  # This is an error.
20244  -*) as_fn_error $? "unrecognized option: \`$1'
20245Try \`$0 --help' for more information." ;;
20246
20247  *) as_fn_append ac_config_targets " $1"
20248     ac_need_defaults=false ;;
20249
20250  esac
20251  shift
20252done
20253
20254ac_configure_extra_args=
20255
20256if $ac_cs_silent; then
20257  exec 6>/dev/null
20258  ac_configure_extra_args="$ac_configure_extra_args --silent"
20259fi
20260
20261_ACEOF
20262cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20263if \$ac_cs_recheck; then
20264  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20265  shift
20266  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20267  CONFIG_SHELL='$SHELL'
20268  export CONFIG_SHELL
20269  exec "\$@"
20270fi
20271
20272_ACEOF
20273cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20274exec 5>>config.log
20275{
20276  echo
20277  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20278## Running $as_me. ##
20279_ASBOX
20280  printf "%s\n" "$ac_log"
20281} >&5
20282
20283_ACEOF
20284cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20285#
20286# INIT-COMMANDS
20287#
20288AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20289
20290
20291# The HP-UX ksh and POSIX shell print the target directory to stdout
20292# if CDPATH is set.
20293(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20294
20295sed_quote_subst='$sed_quote_subst'
20296double_quote_subst='$double_quote_subst'
20297delay_variable_subst='$delay_variable_subst'
20298macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20299macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20300enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20301enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20302pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20303enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20304shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20305SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20306ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20307PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20308host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20309host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20310host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20311build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20312build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20313build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20314SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20315Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20316GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20317EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20318FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20319LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20320NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20321LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20322max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20323ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20324exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20325lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20326lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20327lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20328lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20329lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20330reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20331reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20332FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20333OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20334deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20335file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20336file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20337want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20338DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20339sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20340AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20341lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20342AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20343archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20344STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20345RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20346old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20347old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20348old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20349lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20350CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20351CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20352compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20353GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20354lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20355lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20356lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20357lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20358lt_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"`'
20359lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20360nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20361lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20362lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20363objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20364MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20365lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20366lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20367lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20368lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20369lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20370need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20371MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20372DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20373NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20374LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20375OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20376OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20377libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20378shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20379extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20380archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20381enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20382export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20383whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20384compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20385old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20386old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20387archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20388archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20389module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20390module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20391with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20392allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20393no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20394hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20395hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20396hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20397hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20398hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20399hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20400hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20401inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20402link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20403always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20404export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20405exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20406include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20407prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20408postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20409file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20410variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20411need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20412need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20413version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20414runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20415shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20416shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20417libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20418library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20419soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20420install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20421postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20422postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20423finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20424finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20425hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20426sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20427configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20428configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20429hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20430enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20431enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20432enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20433old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20434striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20435
20436LTCC='$LTCC'
20437LTCFLAGS='$LTCFLAGS'
20438compiler='$compiler_DEFAULT'
20439
20440# A function that is used when there is no print builtin or printf.
20441func_fallback_echo ()
20442{
20443  eval 'cat <<_LTECHO_EOF
20444\$1
20445_LTECHO_EOF'
20446}
20447
20448# Quote evaled strings.
20449for var in SHELL \
20450ECHO \
20451PATH_SEPARATOR \
20452SED \
20453GREP \
20454EGREP \
20455FGREP \
20456LD \
20457NM \
20458LN_S \
20459lt_SP2NL \
20460lt_NL2SP \
20461reload_flag \
20462FILECMD \
20463OBJDUMP \
20464deplibs_check_method \
20465file_magic_cmd \
20466file_magic_glob \
20467want_nocaseglob \
20468DLLTOOL \
20469sharedlib_from_linklib_cmd \
20470AR \
20471archiver_list_spec \
20472STRIP \
20473RANLIB \
20474CC \
20475CFLAGS \
20476compiler \
20477lt_cv_sys_global_symbol_pipe \
20478lt_cv_sys_global_symbol_to_cdecl \
20479lt_cv_sys_global_symbol_to_import \
20480lt_cv_sys_global_symbol_to_c_name_address \
20481lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20482lt_cv_nm_interface \
20483nm_file_list_spec \
20484lt_cv_truncate_bin \
20485lt_prog_compiler_no_builtin_flag \
20486lt_prog_compiler_pic \
20487lt_prog_compiler_wl \
20488lt_prog_compiler_static \
20489lt_cv_prog_compiler_c_o \
20490need_locks \
20491MANIFEST_TOOL \
20492DSYMUTIL \
20493NMEDIT \
20494LIPO \
20495OTOOL \
20496OTOOL64 \
20497shrext_cmds \
20498export_dynamic_flag_spec \
20499whole_archive_flag_spec \
20500compiler_needs_object \
20501with_gnu_ld \
20502allow_undefined_flag \
20503no_undefined_flag \
20504hardcode_libdir_flag_spec \
20505hardcode_libdir_separator \
20506exclude_expsyms \
20507include_expsyms \
20508file_list_spec \
20509variables_saved_for_relink \
20510libname_spec \
20511library_names_spec \
20512soname_spec \
20513install_override_mode \
20514finish_eval \
20515old_striplib \
20516striplib; do
20517    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20518    *[\\\\\\\`\\"\\\$]*)
20519      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20520      ;;
20521    *)
20522      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20523      ;;
20524    esac
20525done
20526
20527# Double-quote double-evaled strings.
20528for var in reload_cmds \
20529old_postinstall_cmds \
20530old_postuninstall_cmds \
20531old_archive_cmds \
20532extract_expsyms_cmds \
20533old_archive_from_new_cmds \
20534old_archive_from_expsyms_cmds \
20535archive_cmds \
20536archive_expsym_cmds \
20537module_cmds \
20538module_expsym_cmds \
20539export_symbols_cmds \
20540prelink_cmds \
20541postlink_cmds \
20542postinstall_cmds \
20543postuninstall_cmds \
20544finish_cmds \
20545sys_lib_search_path_spec \
20546configure_time_dlsearch_path \
20547configure_time_lt_sys_library_path; do
20548    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20549    *[\\\\\\\`\\"\\\$]*)
20550      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20551      ;;
20552    *)
20553      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20554      ;;
20555    esac
20556done
20557
20558ac_aux_dir='$ac_aux_dir'
20559
20560# See if we are running on zsh, and set the options that allow our
20561# commands through without removal of \ escapes INIT.
20562if test -n "\${ZSH_VERSION+set}"; then
20563   setopt NO_GLOB_SUBST
20564fi
20565
20566
20567    PACKAGE='$PACKAGE'
20568    VERSION='$VERSION'
20569    RM='$RM'
20570    ofile='$ofile'
20571
20572
20573
20574
20575_ACEOF
20576
20577cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20578
20579# Handling of arguments.
20580for ac_config_target in $ac_config_targets
20581do
20582  case $ac_config_target in
20583    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20584    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20585    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20586    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20587    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20588    "include/X11/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/Makefile" ;;
20589    "include/X11/extensions/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/extensions/Makefile" ;;
20590    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20591    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20592    "xv.pc") CONFIG_FILES="$CONFIG_FILES xv.pc" ;;
20593
20594  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20595  esac
20596done
20597
20598
20599# If the user did not use the arguments to specify the items to instantiate,
20600# then the envvar interface is used.  Set only those that are not.
20601# We use the long form for the default assignment because of an extremely
20602# bizarre bug on SunOS 4.1.3.
20603if $ac_need_defaults; then
20604  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20605  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20606  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20607fi
20608
20609# Have a temporary directory for convenience.  Make it in the build tree
20610# simply because there is no reason against having it here, and in addition,
20611# creating and moving files from /tmp can sometimes cause problems.
20612# Hook for its removal unless debugging.
20613# Note that there is a small window in which the directory will not be cleaned:
20614# after its creation but before its name has been assigned to `$tmp'.
20615$debug ||
20616{
20617  tmp= ac_tmp=
20618  trap 'exit_status=$?
20619  : "${ac_tmp:=$tmp}"
20620  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20621' 0
20622  trap 'as_fn_exit 1' 1 2 13 15
20623}
20624# Create a (secure) tmp directory for tmp files.
20625
20626{
20627  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20628  test -d "$tmp"
20629}  ||
20630{
20631  tmp=./conf$$-$RANDOM
20632  (umask 077 && mkdir "$tmp")
20633} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20634ac_tmp=$tmp
20635
20636# Set up the scripts for CONFIG_FILES section.
20637# No need to generate them if there are no CONFIG_FILES.
20638# This happens for instance with `./config.status config.h'.
20639if test -n "$CONFIG_FILES"; then
20640
20641
20642ac_cr=`echo X | tr X '\015'`
20643# On cygwin, bash can eat \r inside `` if the user requested igncr.
20644# But we know of no other shell where ac_cr would be empty at this
20645# point, so we can use a bashism as a fallback.
20646if test "x$ac_cr" = x; then
20647  eval ac_cr=\$\'\\r\'
20648fi
20649ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20650if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20651  ac_cs_awk_cr='\\r'
20652else
20653  ac_cs_awk_cr=$ac_cr
20654fi
20655
20656echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20657_ACEOF
20658
20659
20660{
20661  echo "cat >conf$$subs.awk <<_ACEOF" &&
20662  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20663  echo "_ACEOF"
20664} >conf$$subs.sh ||
20665  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20666ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20667ac_delim='%!_!# '
20668for ac_last_try in false false false false false :; do
20669  . ./conf$$subs.sh ||
20670    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20671
20672  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20673  if test $ac_delim_n = $ac_delim_num; then
20674    break
20675  elif $ac_last_try; then
20676    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20677  else
20678    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20679  fi
20680done
20681rm -f conf$$subs.sh
20682
20683cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20684cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20685_ACEOF
20686sed -n '
20687h
20688s/^/S["/; s/!.*/"]=/
20689p
20690g
20691s/^[^!]*!//
20692:repl
20693t repl
20694s/'"$ac_delim"'$//
20695t delim
20696:nl
20697h
20698s/\(.\{148\}\)..*/\1/
20699t more1
20700s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20701p
20702n
20703b repl
20704:more1
20705s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20706p
20707g
20708s/.\{148\}//
20709t nl
20710:delim
20711h
20712s/\(.\{148\}\)..*/\1/
20713t more2
20714s/["\\]/\\&/g; s/^/"/; s/$/"/
20715p
20716b
20717:more2
20718s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20719p
20720g
20721s/.\{148\}//
20722t delim
20723' <conf$$subs.awk | sed '
20724/^[^""]/{
20725  N
20726  s/\n//
20727}
20728' >>$CONFIG_STATUS || ac_write_fail=1
20729rm -f conf$$subs.awk
20730cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20731_ACAWK
20732cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20733  for (key in S) S_is_set[key] = 1
20734  FS = ""
20735
20736}
20737{
20738  line = $ 0
20739  nfields = split(line, field, "@")
20740  substed = 0
20741  len = length(field[1])
20742  for (i = 2; i < nfields; i++) {
20743    key = field[i]
20744    keylen = length(key)
20745    if (S_is_set[key]) {
20746      value = S[key]
20747      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20748      len += length(value) + length(field[++i])
20749      substed = 1
20750    } else
20751      len += 1 + keylen
20752  }
20753
20754  print line
20755}
20756
20757_ACAWK
20758_ACEOF
20759cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20760if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20761  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20762else
20763  cat
20764fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20765  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20766_ACEOF
20767
20768# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20769# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20770# trailing colons and then remove the whole line if VPATH becomes empty
20771# (actually we leave an empty line to preserve line numbers).
20772if test "x$srcdir" = x.; then
20773  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20774h
20775s///
20776s/^/:/
20777s/[	 ]*$/:/
20778s/:\$(srcdir):/:/g
20779s/:\${srcdir}:/:/g
20780s/:@srcdir@:/:/g
20781s/^:*//
20782s/:*$//
20783x
20784s/\(=[	 ]*\).*/\1/
20785G
20786s/\n//
20787s/^[^=]*=[	 ]*$//
20788}'
20789fi
20790
20791cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20792fi # test -n "$CONFIG_FILES"
20793
20794# Set up the scripts for CONFIG_HEADERS section.
20795# No need to generate them if there are no CONFIG_HEADERS.
20796# This happens for instance with `./config.status Makefile'.
20797if test -n "$CONFIG_HEADERS"; then
20798cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20799BEGIN {
20800_ACEOF
20801
20802# Transform confdefs.h into an awk script `defines.awk', embedded as
20803# here-document in config.status, that substitutes the proper values into
20804# config.h.in to produce config.h.
20805
20806# Create a delimiter string that does not exist in confdefs.h, to ease
20807# handling of long lines.
20808ac_delim='%!_!# '
20809for ac_last_try in false false :; do
20810  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20811  if test -z "$ac_tt"; then
20812    break
20813  elif $ac_last_try; then
20814    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20815  else
20816    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20817  fi
20818done
20819
20820# For the awk script, D is an array of macro values keyed by name,
20821# likewise P contains macro parameters if any.  Preserve backslash
20822# newline sequences.
20823
20824ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20825sed -n '
20826s/.\{148\}/&'"$ac_delim"'/g
20827t rset
20828:rset
20829s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20830t def
20831d
20832:def
20833s/\\$//
20834t bsnl
20835s/["\\]/\\&/g
20836s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20837D["\1"]=" \3"/p
20838s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20839d
20840:bsnl
20841s/["\\]/\\&/g
20842s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20843D["\1"]=" \3\\\\\\n"\\/p
20844t cont
20845s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20846t cont
20847d
20848:cont
20849n
20850s/.\{148\}/&'"$ac_delim"'/g
20851t clear
20852:clear
20853s/\\$//
20854t bsnlc
20855s/["\\]/\\&/g; s/^/"/; s/$/"/p
20856d
20857:bsnlc
20858s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20859b cont
20860' <confdefs.h | sed '
20861s/'"$ac_delim"'/"\\\
20862"/g' >>$CONFIG_STATUS || ac_write_fail=1
20863
20864cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20865  for (key in D) D_is_set[key] = 1
20866  FS = ""
20867}
20868/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20869  line = \$ 0
20870  split(line, arg, " ")
20871  if (arg[1] == "#") {
20872    defundef = arg[2]
20873    mac1 = arg[3]
20874  } else {
20875    defundef = substr(arg[1], 2)
20876    mac1 = arg[2]
20877  }
20878  split(mac1, mac2, "(") #)
20879  macro = mac2[1]
20880  prefix = substr(line, 1, index(line, defundef) - 1)
20881  if (D_is_set[macro]) {
20882    # Preserve the white space surrounding the "#".
20883    print prefix "define", macro P[macro] D[macro]
20884    next
20885  } else {
20886    # Replace #undef with comments.  This is necessary, for example,
20887    # in the case of _POSIX_SOURCE, which is predefined and required
20888    # on some systems where configure will not decide to define it.
20889    if (defundef == "undef") {
20890      print "/*", prefix defundef, macro, "*/"
20891      next
20892    }
20893  }
20894}
20895{ print }
20896_ACAWK
20897_ACEOF
20898cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20899  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20900fi # test -n "$CONFIG_HEADERS"
20901
20902
20903eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20904shift
20905for ac_tag
20906do
20907  case $ac_tag in
20908  :[FHLC]) ac_mode=$ac_tag; continue;;
20909  esac
20910  case $ac_mode$ac_tag in
20911  :[FHL]*:*);;
20912  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20913  :[FH]-) ac_tag=-:-;;
20914  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20915  esac
20916  ac_save_IFS=$IFS
20917  IFS=:
20918  set x $ac_tag
20919  IFS=$ac_save_IFS
20920  shift
20921  ac_file=$1
20922  shift
20923
20924  case $ac_mode in
20925  :L) ac_source=$1;;
20926  :[FH])
20927    ac_file_inputs=
20928    for ac_f
20929    do
20930      case $ac_f in
20931      -) ac_f="$ac_tmp/stdin";;
20932      *) # Look for the file first in the build tree, then in the source tree
20933	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20934	 # because $ac_f cannot contain `:'.
20935	 test -f "$ac_f" ||
20936	   case $ac_f in
20937	   [\\/$]*) false;;
20938	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20939	   esac ||
20940	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20941      esac
20942      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20943      as_fn_append ac_file_inputs " '$ac_f'"
20944    done
20945
20946    # Let's still pretend it is `configure' which instantiates (i.e., don't
20947    # use $as_me), people would be surprised to read:
20948    #    /* config.h.  Generated by config.status.  */
20949    configure_input='Generated from '`
20950	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20951	`' by configure.'
20952    if test x"$ac_file" != x-; then
20953      configure_input="$ac_file.  $configure_input"
20954      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20955printf "%s\n" "$as_me: creating $ac_file" >&6;}
20956    fi
20957    # Neutralize special characters interpreted by sed in replacement strings.
20958    case $configure_input in #(
20959    *\&* | *\|* | *\\* )
20960       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20961       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20962    *) ac_sed_conf_input=$configure_input;;
20963    esac
20964
20965    case $ac_tag in
20966    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20967      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20968    esac
20969    ;;
20970  esac
20971
20972  ac_dir=`$as_dirname -- "$ac_file" ||
20973$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20974	 X"$ac_file" : 'X\(//\)[^/]' \| \
20975	 X"$ac_file" : 'X\(//\)$' \| \
20976	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20977printf "%s\n" X"$ac_file" |
20978    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20979	    s//\1/
20980	    q
20981	  }
20982	  /^X\(\/\/\)[^/].*/{
20983	    s//\1/
20984	    q
20985	  }
20986	  /^X\(\/\/\)$/{
20987	    s//\1/
20988	    q
20989	  }
20990	  /^X\(\/\).*/{
20991	    s//\1/
20992	    q
20993	  }
20994	  s/.*/./; q'`
20995  as_dir="$ac_dir"; as_fn_mkdir_p
20996  ac_builddir=.
20997
20998case "$ac_dir" in
20999.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21000*)
21001  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21002  # A ".." for each directory in $ac_dir_suffix.
21003  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21004  case $ac_top_builddir_sub in
21005  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21006  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21007  esac ;;
21008esac
21009ac_abs_top_builddir=$ac_pwd
21010ac_abs_builddir=$ac_pwd$ac_dir_suffix
21011# for backward compatibility:
21012ac_top_builddir=$ac_top_build_prefix
21013
21014case $srcdir in
21015  .)  # We are building in place.
21016    ac_srcdir=.
21017    ac_top_srcdir=$ac_top_builddir_sub
21018    ac_abs_top_srcdir=$ac_pwd ;;
21019  [\\/]* | ?:[\\/]* )  # Absolute name.
21020    ac_srcdir=$srcdir$ac_dir_suffix;
21021    ac_top_srcdir=$srcdir
21022    ac_abs_top_srcdir=$srcdir ;;
21023  *) # Relative name.
21024    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21025    ac_top_srcdir=$ac_top_build_prefix$srcdir
21026    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21027esac
21028ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21029
21030
21031  case $ac_mode in
21032  :F)
21033  #
21034  # CONFIG_FILE
21035  #
21036
21037  case $INSTALL in
21038  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21039  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21040  esac
21041  ac_MKDIR_P=$MKDIR_P
21042  case $MKDIR_P in
21043  [\\/$]* | ?:[\\/]* ) ;;
21044  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21045  esac
21046_ACEOF
21047
21048cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21049# If the template does not know about datarootdir, expand it.
21050# FIXME: This hack should be removed a few years after 2.60.
21051ac_datarootdir_hack=; ac_datarootdir_seen=
21052ac_sed_dataroot='
21053/datarootdir/ {
21054  p
21055  q
21056}
21057/@datadir@/p
21058/@docdir@/p
21059/@infodir@/p
21060/@localedir@/p
21061/@mandir@/p'
21062case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21063*datarootdir*) ac_datarootdir_seen=yes;;
21064*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21065  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21066printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21067_ACEOF
21068cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21069  ac_datarootdir_hack='
21070  s&@datadir@&$datadir&g
21071  s&@docdir@&$docdir&g
21072  s&@infodir@&$infodir&g
21073  s&@localedir@&$localedir&g
21074  s&@mandir@&$mandir&g
21075  s&\\\${datarootdir}&$datarootdir&g' ;;
21076esac
21077_ACEOF
21078
21079# Neutralize VPATH when `$srcdir' = `.'.
21080# Shell code in configure.ac might set extrasub.
21081# FIXME: do we really want to maintain this feature?
21082cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21083ac_sed_extra="$ac_vpsub
21084$extrasub
21085_ACEOF
21086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21087:t
21088/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21089s|@configure_input@|$ac_sed_conf_input|;t t
21090s&@top_builddir@&$ac_top_builddir_sub&;t t
21091s&@top_build_prefix@&$ac_top_build_prefix&;t t
21092s&@srcdir@&$ac_srcdir&;t t
21093s&@abs_srcdir@&$ac_abs_srcdir&;t t
21094s&@top_srcdir@&$ac_top_srcdir&;t t
21095s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21096s&@builddir@&$ac_builddir&;t t
21097s&@abs_builddir@&$ac_abs_builddir&;t t
21098s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21099s&@INSTALL@&$ac_INSTALL&;t t
21100s&@MKDIR_P@&$ac_MKDIR_P&;t t
21101$ac_datarootdir_hack
21102"
21103eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21104  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21105
21106test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21107  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21108  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21109      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21110  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21111which seems to be undefined.  Please make sure it is defined" >&5
21112printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21113which seems to be undefined.  Please make sure it is defined" >&2;}
21114
21115  rm -f "$ac_tmp/stdin"
21116  case $ac_file in
21117  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21118  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21119  esac \
21120  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21121 ;;
21122  :H)
21123  #
21124  # CONFIG_HEADER
21125  #
21126  if test x"$ac_file" != x-; then
21127    {
21128      printf "%s\n" "/* $configure_input  */" >&1 \
21129      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21130    } >"$ac_tmp/config.h" \
21131      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21132    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21133      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21134printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21135    else
21136      rm -f "$ac_file"
21137      mv "$ac_tmp/config.h" "$ac_file" \
21138	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21139    fi
21140  else
21141    printf "%s\n" "/* $configure_input  */" >&1 \
21142      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21143      || as_fn_error $? "could not create -" "$LINENO" 5
21144  fi
21145# Compute "$ac_file"'s index in $config_headers.
21146_am_arg="$ac_file"
21147_am_stamp_count=1
21148for _am_header in $config_headers :; do
21149  case $_am_header in
21150    $_am_arg | $_am_arg:* )
21151      break ;;
21152    * )
21153      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21154  esac
21155done
21156echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21157$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21158	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21159	 X"$_am_arg" : 'X\(//\)$' \| \
21160	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21161printf "%s\n" X"$_am_arg" |
21162    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21163	    s//\1/
21164	    q
21165	  }
21166	  /^X\(\/\/\)[^/].*/{
21167	    s//\1/
21168	    q
21169	  }
21170	  /^X\(\/\/\)$/{
21171	    s//\1/
21172	    q
21173	  }
21174	  /^X\(\/\).*/{
21175	    s//\1/
21176	    q
21177	  }
21178	  s/.*/./; q'`/stamp-h$_am_stamp_count
21179 ;;
21180
21181  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21182printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21183 ;;
21184  esac
21185
21186
21187  case $ac_file$ac_mode in
21188    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21189  # Older Autoconf quotes --file arguments for eval, but not when files
21190  # are listed without --file.  Let's play safe and only enable the eval
21191  # if we detect the quoting.
21192  # TODO: see whether this extra hack can be removed once we start
21193  # requiring Autoconf 2.70 or later.
21194  case $CONFIG_FILES in #(
21195  *\'*) :
21196    eval set x "$CONFIG_FILES" ;; #(
21197  *) :
21198    set x $CONFIG_FILES ;; #(
21199  *) :
21200     ;;
21201esac
21202  shift
21203  # Used to flag and report bootstrapping failures.
21204  am_rc=0
21205  for am_mf
21206  do
21207    # Strip MF so we end up with the name of the file.
21208    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21209    # Check whether this is an Automake generated Makefile which includes
21210    # dependency-tracking related rules and includes.
21211    # Grep'ing the whole file directly is not great: AIX grep has a line
21212    # limit of 2048, but all sed's we know have understand at least 4000.
21213    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21214      || continue
21215    am_dirpart=`$as_dirname -- "$am_mf" ||
21216$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21217	 X"$am_mf" : 'X\(//\)[^/]' \| \
21218	 X"$am_mf" : 'X\(//\)$' \| \
21219	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21220printf "%s\n" X"$am_mf" |
21221    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21222	    s//\1/
21223	    q
21224	  }
21225	  /^X\(\/\/\)[^/].*/{
21226	    s//\1/
21227	    q
21228	  }
21229	  /^X\(\/\/\)$/{
21230	    s//\1/
21231	    q
21232	  }
21233	  /^X\(\/\).*/{
21234	    s//\1/
21235	    q
21236	  }
21237	  s/.*/./; q'`
21238    am_filepart=`$as_basename -- "$am_mf" ||
21239$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21240	 X"$am_mf" : 'X\(//\)$' \| \
21241	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21242printf "%s\n" X/"$am_mf" |
21243    sed '/^.*\/\([^/][^/]*\)\/*$/{
21244	    s//\1/
21245	    q
21246	  }
21247	  /^X\/\(\/\/\)$/{
21248	    s//\1/
21249	    q
21250	  }
21251	  /^X\/\(\/\).*/{
21252	    s//\1/
21253	    q
21254	  }
21255	  s/.*/./; q'`
21256    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21257      && sed -e '/# am--include-marker/d' "$am_filepart" \
21258        | $MAKE -f - am--depfiles" >&5
21259   (cd "$am_dirpart" \
21260      && sed -e '/# am--include-marker/d' "$am_filepart" \
21261        | $MAKE -f - am--depfiles) >&5 2>&5
21262   ac_status=$?
21263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264   (exit $ac_status); } || am_rc=$?
21265  done
21266  if test $am_rc -ne 0; then
21267    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21268printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21269as_fn_error $? "Something went wrong bootstrapping makefile fragments
21270    for automatic dependency tracking.  If GNU make was not used, consider
21271    re-running the configure script with MAKE=\"gmake\" (or whatever is
21272    necessary).  You can also try re-running configure with the
21273    '--disable-dependency-tracking' option to at least be able to build
21274    the package (albeit without support for automatic dependency tracking).
21275See \`config.log' for more details" "$LINENO" 5; }
21276  fi
21277  { am_dirpart=; unset am_dirpart;}
21278  { am_filepart=; unset am_filepart;}
21279  { am_mf=; unset am_mf;}
21280  { am_rc=; unset am_rc;}
21281  rm -f conftest-deps.mk
21282}
21283 ;;
21284    "libtool":C)
21285
21286    # See if we are running on zsh, and set the options that allow our
21287    # commands through without removal of \ escapes.
21288    if test -n "${ZSH_VERSION+set}"; then
21289      setopt NO_GLOB_SUBST
21290    fi
21291
21292    cfgfile=${ofile}T
21293    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21294    $RM "$cfgfile"
21295
21296    cat <<_LT_EOF >> "$cfgfile"
21297#! $SHELL
21298# Generated automatically by $as_me ($PACKAGE) $VERSION
21299# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21300# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21301
21302# Provide generalized library-building support services.
21303# Written by Gordon Matzigkeit, 1996
21304
21305# Copyright (C) 2014 Free Software Foundation, Inc.
21306# This is free software; see the source for copying conditions.  There is NO
21307# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21308
21309# GNU Libtool is free software; you can redistribute it and/or modify
21310# it under the terms of the GNU General Public License as published by
21311# the Free Software Foundation; either version 2 of of the License, or
21312# (at your option) any later version.
21313#
21314# As a special exception to the GNU General Public License, if you
21315# distribute this file as part of a program or library that is built
21316# using GNU Libtool, you may include this file under the  same
21317# distribution terms that you use for the rest of that program.
21318#
21319# GNU Libtool is distributed in the hope that it will be useful, but
21320# WITHOUT ANY WARRANTY; without even the implied warranty of
21321# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21322# GNU General Public License for more details.
21323#
21324# You should have received a copy of the GNU General Public License
21325# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21326
21327
21328# The names of the tagged configurations supported by this script.
21329available_tags=''
21330
21331# Configured defaults for sys_lib_dlsearch_path munging.
21332: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21333
21334# ### BEGIN LIBTOOL CONFIG
21335
21336# Which release of libtool.m4 was used?
21337macro_version=$macro_version
21338macro_revision=$macro_revision
21339
21340# Whether or not to build shared libraries.
21341build_libtool_libs=$enable_shared
21342
21343# Whether or not to build static libraries.
21344build_old_libs=$enable_static
21345
21346# What type of objects to build.
21347pic_mode=$pic_mode
21348
21349# Whether or not to optimize for fast installation.
21350fast_install=$enable_fast_install
21351
21352# Shared archive member basename,for filename based shared library versioning on AIX.
21353shared_archive_member_spec=$shared_archive_member_spec
21354
21355# Shell to use when invoking shell scripts.
21356SHELL=$lt_SHELL
21357
21358# An echo program that protects backslashes.
21359ECHO=$lt_ECHO
21360
21361# The PATH separator for the build system.
21362PATH_SEPARATOR=$lt_PATH_SEPARATOR
21363
21364# The host system.
21365host_alias=$host_alias
21366host=$host
21367host_os=$host_os
21368
21369# The build system.
21370build_alias=$build_alias
21371build=$build
21372build_os=$build_os
21373
21374# A sed program that does not truncate output.
21375SED=$lt_SED
21376
21377# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21378Xsed="\$SED -e 1s/^X//"
21379
21380# A grep program that handles long lines.
21381GREP=$lt_GREP
21382
21383# An ERE matcher.
21384EGREP=$lt_EGREP
21385
21386# A literal string matcher.
21387FGREP=$lt_FGREP
21388
21389# A BSD- or MS-compatible name lister.
21390NM=$lt_NM
21391
21392# Whether we need soft or hard links.
21393LN_S=$lt_LN_S
21394
21395# What is the maximum length of a command?
21396max_cmd_len=$max_cmd_len
21397
21398# Object file suffix (normally "o").
21399objext=$ac_objext
21400
21401# Executable file suffix (normally "").
21402exeext=$exeext
21403
21404# whether the shell understands "unset".
21405lt_unset=$lt_unset
21406
21407# turn spaces into newlines.
21408SP2NL=$lt_lt_SP2NL
21409
21410# turn newlines into spaces.
21411NL2SP=$lt_lt_NL2SP
21412
21413# convert \$build file names to \$host format.
21414to_host_file_cmd=$lt_cv_to_host_file_cmd
21415
21416# convert \$build files to toolchain format.
21417to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21418
21419# A file(cmd) program that detects file types.
21420FILECMD=$lt_FILECMD
21421
21422# An object symbol dumper.
21423OBJDUMP=$lt_OBJDUMP
21424
21425# Method to check whether dependent libraries are shared objects.
21426deplibs_check_method=$lt_deplibs_check_method
21427
21428# Command to use when deplibs_check_method = "file_magic".
21429file_magic_cmd=$lt_file_magic_cmd
21430
21431# How to find potential files when deplibs_check_method = "file_magic".
21432file_magic_glob=$lt_file_magic_glob
21433
21434# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21435want_nocaseglob=$lt_want_nocaseglob
21436
21437# DLL creation program.
21438DLLTOOL=$lt_DLLTOOL
21439
21440# Command to associate shared and link libraries.
21441sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21442
21443# The archiver.
21444AR=$lt_AR
21445
21446# Flags to create an archive (by configure).
21447lt_ar_flags=$lt_ar_flags
21448
21449# Flags to create an archive.
21450AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21451
21452# How to feed a file listing to the archiver.
21453archiver_list_spec=$lt_archiver_list_spec
21454
21455# A symbol stripping program.
21456STRIP=$lt_STRIP
21457
21458# Commands used to install an old-style archive.
21459RANLIB=$lt_RANLIB
21460old_postinstall_cmds=$lt_old_postinstall_cmds
21461old_postuninstall_cmds=$lt_old_postuninstall_cmds
21462
21463# Whether to use a lock for old archive extraction.
21464lock_old_archive_extraction=$lock_old_archive_extraction
21465
21466# A C compiler.
21467LTCC=$lt_CC
21468
21469# LTCC compiler flags.
21470LTCFLAGS=$lt_CFLAGS
21471
21472# Take the output of nm and produce a listing of raw symbols and C names.
21473global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21474
21475# Transform the output of nm in a proper C declaration.
21476global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21477
21478# Transform the output of nm into a list of symbols to manually relocate.
21479global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21480
21481# Transform the output of nm in a C name address pair.
21482global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21483
21484# Transform the output of nm in a C name address pair when lib prefix is needed.
21485global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21486
21487# The name lister interface.
21488nm_interface=$lt_lt_cv_nm_interface
21489
21490# Specify filename containing input files for \$NM.
21491nm_file_list_spec=$lt_nm_file_list_spec
21492
21493# The root where to search for dependent libraries,and where our libraries should be installed.
21494lt_sysroot=$lt_sysroot
21495
21496# Command to truncate a binary pipe.
21497lt_truncate_bin=$lt_lt_cv_truncate_bin
21498
21499# The name of the directory that contains temporary libtool files.
21500objdir=$objdir
21501
21502# Used to examine libraries when file_magic_cmd begins with "file".
21503MAGIC_CMD=$MAGIC_CMD
21504
21505# Must we lock files when doing compilation?
21506need_locks=$lt_need_locks
21507
21508# Manifest tool.
21509MANIFEST_TOOL=$lt_MANIFEST_TOOL
21510
21511# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21512DSYMUTIL=$lt_DSYMUTIL
21513
21514# Tool to change global to local symbols on Mac OS X.
21515NMEDIT=$lt_NMEDIT
21516
21517# Tool to manipulate fat objects and archives on Mac OS X.
21518LIPO=$lt_LIPO
21519
21520# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21521OTOOL=$lt_OTOOL
21522
21523# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21524OTOOL64=$lt_OTOOL64
21525
21526# Old archive suffix (normally "a").
21527libext=$libext
21528
21529# Shared library suffix (normally ".so").
21530shrext_cmds=$lt_shrext_cmds
21531
21532# The commands to extract the exported symbol list from a shared archive.
21533extract_expsyms_cmds=$lt_extract_expsyms_cmds
21534
21535# Variables whose values should be saved in libtool wrapper scripts and
21536# restored at link time.
21537variables_saved_for_relink=$lt_variables_saved_for_relink
21538
21539# Do we need the "lib" prefix for modules?
21540need_lib_prefix=$need_lib_prefix
21541
21542# Do we need a version for libraries?
21543need_version=$need_version
21544
21545# Library versioning type.
21546version_type=$version_type
21547
21548# Shared library runtime path variable.
21549runpath_var=$runpath_var
21550
21551# Shared library path variable.
21552shlibpath_var=$shlibpath_var
21553
21554# Is shlibpath searched before the hard-coded library search path?
21555shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21556
21557# Format of library name prefix.
21558libname_spec=$lt_libname_spec
21559
21560# List of archive names.  First name is the real one, the rest are links.
21561# The last name is the one that the linker finds with -lNAME
21562library_names_spec=$lt_library_names_spec
21563
21564# The coded name of the library, if different from the real name.
21565soname_spec=$lt_soname_spec
21566
21567# Permission mode override for installation of shared libraries.
21568install_override_mode=$lt_install_override_mode
21569
21570# Command to use after installation of a shared archive.
21571postinstall_cmds=$lt_postinstall_cmds
21572
21573# Command to use after uninstallation of a shared archive.
21574postuninstall_cmds=$lt_postuninstall_cmds
21575
21576# Commands used to finish a libtool library installation in a directory.
21577finish_cmds=$lt_finish_cmds
21578
21579# As "finish_cmds", except a single script fragment to be evaled but
21580# not shown.
21581finish_eval=$lt_finish_eval
21582
21583# Whether we should hardcode library paths into libraries.
21584hardcode_into_libs=$hardcode_into_libs
21585
21586# Compile-time system search path for libraries.
21587sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21588
21589# Detected run-time system search path for libraries.
21590sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21591
21592# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21593configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21594
21595# Whether dlopen is supported.
21596dlopen_support=$enable_dlopen
21597
21598# Whether dlopen of programs is supported.
21599dlopen_self=$enable_dlopen_self
21600
21601# Whether dlopen of statically linked programs is supported.
21602dlopen_self_static=$enable_dlopen_self_static
21603
21604# Commands to strip libraries.
21605old_striplib=$lt_old_striplib
21606striplib=$lt_striplib
21607
21608
21609# The linker used to build libraries.
21610LD=$lt_LD
21611
21612# How to create reloadable object files.
21613reload_flag=$lt_reload_flag
21614reload_cmds=$lt_reload_cmds
21615
21616# Commands used to build an old-style archive.
21617old_archive_cmds=$lt_old_archive_cmds
21618
21619# A language specific compiler.
21620CC=$lt_compiler
21621
21622# Is the compiler the GNU compiler?
21623with_gcc=$GCC
21624
21625# Compiler flag to turn off builtin functions.
21626no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21627
21628# Additional compiler flags for building library objects.
21629pic_flag=$lt_lt_prog_compiler_pic
21630
21631# How to pass a linker flag through the compiler.
21632wl=$lt_lt_prog_compiler_wl
21633
21634# Compiler flag to prevent dynamic linking.
21635link_static_flag=$lt_lt_prog_compiler_static
21636
21637# Does compiler simultaneously support -c and -o options?
21638compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21639
21640# Whether or not to add -lc for building shared libraries.
21641build_libtool_need_lc=$archive_cmds_need_lc
21642
21643# Whether or not to disallow shared libs when runtime libs are static.
21644allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21645
21646# Compiler flag to allow reflexive dlopens.
21647export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21648
21649# Compiler flag to generate shared objects directly from archives.
21650whole_archive_flag_spec=$lt_whole_archive_flag_spec
21651
21652# Whether the compiler copes with passing no objects directly.
21653compiler_needs_object=$lt_compiler_needs_object
21654
21655# Create an old-style archive from a shared archive.
21656old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21657
21658# Create a temporary old-style archive to link instead of a shared archive.
21659old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21660
21661# Commands used to build a shared archive.
21662archive_cmds=$lt_archive_cmds
21663archive_expsym_cmds=$lt_archive_expsym_cmds
21664
21665# Commands used to build a loadable module if different from building
21666# a shared archive.
21667module_cmds=$lt_module_cmds
21668module_expsym_cmds=$lt_module_expsym_cmds
21669
21670# Whether we are building with GNU ld or not.
21671with_gnu_ld=$lt_with_gnu_ld
21672
21673# Flag that allows shared libraries with undefined symbols to be built.
21674allow_undefined_flag=$lt_allow_undefined_flag
21675
21676# Flag that enforces no undefined symbols.
21677no_undefined_flag=$lt_no_undefined_flag
21678
21679# Flag to hardcode \$libdir into a binary during linking.
21680# This must work even if \$libdir does not exist
21681hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21682
21683# Whether we need a single "-rpath" flag with a separated argument.
21684hardcode_libdir_separator=$lt_hardcode_libdir_separator
21685
21686# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21687# DIR into the resulting binary.
21688hardcode_direct=$hardcode_direct
21689
21690# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21691# DIR into the resulting binary and the resulting library dependency is
21692# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21693# library is relocated.
21694hardcode_direct_absolute=$hardcode_direct_absolute
21695
21696# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21697# into the resulting binary.
21698hardcode_minus_L=$hardcode_minus_L
21699
21700# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21701# into the resulting binary.
21702hardcode_shlibpath_var=$hardcode_shlibpath_var
21703
21704# Set to "yes" if building a shared library automatically hardcodes DIR
21705# into the library and all subsequent libraries and executables linked
21706# against it.
21707hardcode_automatic=$hardcode_automatic
21708
21709# Set to yes if linker adds runtime paths of dependent libraries
21710# to runtime path list.
21711inherit_rpath=$inherit_rpath
21712
21713# Whether libtool must link a program against all its dependency libraries.
21714link_all_deplibs=$link_all_deplibs
21715
21716# Set to "yes" if exported symbols are required.
21717always_export_symbols=$always_export_symbols
21718
21719# The commands to list exported symbols.
21720export_symbols_cmds=$lt_export_symbols_cmds
21721
21722# Symbols that should not be listed in the preloaded symbols.
21723exclude_expsyms=$lt_exclude_expsyms
21724
21725# Symbols that must always be exported.
21726include_expsyms=$lt_include_expsyms
21727
21728# Commands necessary for linking programs (against libraries) with templates.
21729prelink_cmds=$lt_prelink_cmds
21730
21731# Commands necessary for finishing linking programs.
21732postlink_cmds=$lt_postlink_cmds
21733
21734# Specify filename containing input files.
21735file_list_spec=$lt_file_list_spec
21736
21737# How to hardcode a shared library path into an executable.
21738hardcode_action=$hardcode_action
21739
21740# ### END LIBTOOL CONFIG
21741
21742_LT_EOF
21743
21744    cat <<'_LT_EOF' >> "$cfgfile"
21745
21746# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21747
21748# func_munge_path_list VARIABLE PATH
21749# -----------------------------------
21750# VARIABLE is name of variable containing _space_ separated list of
21751# directories to be munged by the contents of PATH, which is string
21752# having a format:
21753# "DIR[:DIR]:"
21754#       string "DIR[ DIR]" will be prepended to VARIABLE
21755# ":DIR[:DIR]"
21756#       string "DIR[ DIR]" will be appended to VARIABLE
21757# "DIRP[:DIRP]::[DIRA:]DIRA"
21758#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21759#       "DIRA[ DIRA]" will be appended to VARIABLE
21760# "DIR[:DIR]"
21761#       VARIABLE will be replaced by "DIR[ DIR]"
21762func_munge_path_list ()
21763{
21764    case x$2 in
21765    x)
21766        ;;
21767    *:)
21768        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21769        ;;
21770    x:*)
21771        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21772        ;;
21773    *::*)
21774        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21775        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21776        ;;
21777    *)
21778        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21779        ;;
21780    esac
21781}
21782
21783
21784# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21785func_cc_basename ()
21786{
21787    for cc_temp in $*""; do
21788      case $cc_temp in
21789        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21790        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21791        \-*) ;;
21792        *) break;;
21793      esac
21794    done
21795    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21796}
21797
21798
21799# ### END FUNCTIONS SHARED WITH CONFIGURE
21800
21801_LT_EOF
21802
21803  case $host_os in
21804  aix3*)
21805    cat <<\_LT_EOF >> "$cfgfile"
21806# AIX sometimes has problems with the GCC collect2 program.  For some
21807# reason, if we set the COLLECT_NAMES environment variable, the problems
21808# vanish in a puff of smoke.
21809if test set != "${COLLECT_NAMES+set}"; then
21810  COLLECT_NAMES=
21811  export COLLECT_NAMES
21812fi
21813_LT_EOF
21814    ;;
21815  esac
21816
21817
21818
21819ltmain=$ac_aux_dir/ltmain.sh
21820
21821
21822  # We use sed instead of cat because bash on DJGPP gets confused if
21823  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21824  # text mode, it properly converts lines to CR/LF.  This bash problem
21825  # is reportedly fixed, but why not run on old versions too?
21826  $SED '$q' "$ltmain" >> "$cfgfile" \
21827     || (rm -f "$cfgfile"; exit 1)
21828
21829   mv -f "$cfgfile" "$ofile" ||
21830    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21831  chmod +x "$ofile"
21832
21833 ;;
21834
21835  esac
21836done # for ac_tag
21837
21838
21839as_fn_exit 0
21840_ACEOF
21841ac_clean_files=$ac_clean_files_save
21842
21843test $ac_write_fail = 0 ||
21844  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21845
21846
21847# configure is writing to config.log, and then calls config.status.
21848# config.status does its own redirection, appending to config.log.
21849# Unfortunately, on DOS this fails, as config.log is still kept open
21850# by configure, so config.status won't be able to write to it; its
21851# output is simply discarded.  So we exec the FD to /dev/null,
21852# effectively closing config.log, so it can be properly (re)opened and
21853# appended to by config.status.  When coming back to configure, we
21854# need to make the FD available again.
21855if test "$no_create" != yes; then
21856  ac_cs_success=:
21857  ac_config_status_args=
21858  test "$silent" = yes &&
21859    ac_config_status_args="$ac_config_status_args --quiet"
21860  exec 5>/dev/null
21861  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21862  exec 5>>config.log
21863  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21864  # would make configure fail if this is the last instruction.
21865  $ac_cs_success || as_fn_exit 1
21866fi
21867if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21868  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21869printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21870fi
21871
21872
21873