1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xf86-input-keyboard 2.0.0.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-input-keyboard/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/driver/xf86-input-keyboard/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='xf86-input-keyboard'
624PACKAGE_TARNAME='xf86-input-keyboard'
625PACKAGE_VERSION='2.0.0'
626PACKAGE_STRING='xf86-input-keyboard 2.0.0'
627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-input-keyboard/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
667DRIVER_NAME
668HURD_FALSE
669HURD_TRUE
670SOLARIS_FALSE
671SOLARIS_TRUE
672BSD_FALSE
673BSD_TRUE
674OS_FLAGS
675inputdir
676XORG_LIBS
677XORG_CFLAGS
678MAN_SUBSTS
679XORG_MAN_PAGE
680ADMIN_MAN_DIR
681DRIVER_MAN_DIR
682MISC_MAN_DIR
683FILE_MAN_DIR
684LIB_MAN_DIR
685APP_MAN_DIR
686ADMIN_MAN_SUFFIX
687DRIVER_MAN_SUFFIX
688MISC_MAN_SUFFIX
689FILE_MAN_SUFFIX
690LIB_MAN_SUFFIX
691APP_MAN_SUFFIX
692INSTALL_CMD
693PKG_CONFIG_LIBDIR
694PKG_CONFIG_PATH
695PKG_CONFIG
696CHANGELOG_CMD
697STRICT_CFLAGS
698CWARNFLAGS
699BASE_CFLAGS
700LT_SYS_LIBRARY_PATH
701OTOOL64
702OTOOL
703LIPO
704NMEDIT
705DSYMUTIL
706MANIFEST_TOOL
707RANLIB
708ac_ct_AR
709AR
710DLLTOOL
711OBJDUMP
712FILECMD
713LN_S
714NM
715ac_ct_DUMPBIN
716DUMPBIN
717LD
718FGREP
719EGREP
720GREP
721SED
722am__fastdepCC_FALSE
723am__fastdepCC_TRUE
724CCDEPMODE
725am__nodep
726AMDEPBACKSLASH
727AMDEP_FALSE
728AMDEP_TRUE
729am__include
730DEPDIR
731OBJEXT
732EXEEXT
733ac_ct_CC
734CPPFLAGS
735LDFLAGS
736CFLAGS
737CC
738host_os
739host_vendor
740host_cpu
741host
742build_os
743build_vendor
744build_cpu
745build
746LIBTOOL
747AM_BACKSLASH
748AM_DEFAULT_VERBOSITY
749AM_DEFAULT_V
750AM_V
751CSCOPE
752ETAGS
753CTAGS
754am__untar
755am__tar
756AMTAR
757am__leading_dot
758SET_MAKE
759AWK
760mkdir_p
761MKDIR_P
762INSTALL_STRIP_PROGRAM
763STRIP
764install_sh
765MAKEINFO
766AUTOHEADER
767AUTOMAKE
768AUTOCONF
769ACLOCAL
770VERSION
771PACKAGE
772CYGPATH_W
773am__isrc
774INSTALL_DATA
775INSTALL_SCRIPT
776INSTALL_PROGRAM
777target_alias
778host_alias
779build_alias
780LIBS
781ECHO_T
782ECHO_N
783ECHO_C
784DEFS
785mandir
786localedir
787libdir
788psdir
789pdfdir
790dvidir
791htmldir
792infodir
793docdir
794oldincludedir
795includedir
796runstatedir
797localstatedir
798sharedstatedir
799sysconfdir
800datadir
801datarootdir
802libexecdir
803sbindir
804bindir
805program_transform_name
806prefix
807exec_prefix
808PACKAGE_URL
809PACKAGE_BUGREPORT
810PACKAGE_STRING
811PACKAGE_VERSION
812PACKAGE_TARNAME
813PACKAGE_NAME
814PATH_SEPARATOR
815SHELL
816am__quote'
817ac_subst_files=''
818ac_user_opts='
819enable_option_checking
820enable_silent_rules
821enable_static
822enable_shared
823with_pic
824enable_fast_install
825with_aix_soname
826enable_dependency_tracking
827with_gnu_ld
828with_sysroot
829enable_libtool_lock
830enable_selective_werror
831enable_strict_compilation
832with_xorg_module_dir
833'
834      ac_precious_vars='build_alias
835host_alias
836target_alias
837CC
838CFLAGS
839LDFLAGS
840LIBS
841CPPFLAGS
842LT_SYS_LIBRARY_PATH
843PKG_CONFIG
844PKG_CONFIG_PATH
845PKG_CONFIG_LIBDIR
846XORG_CFLAGS
847XORG_LIBS'
848
849
850# Initialize some variables set by options.
851ac_init_help=
852ac_init_version=false
853ac_unrecognized_opts=
854ac_unrecognized_sep=
855# The variables have the same names as the options, with
856# dashes changed to underlines.
857cache_file=/dev/null
858exec_prefix=NONE
859no_create=
860no_recursion=
861prefix=NONE
862program_prefix=NONE
863program_suffix=NONE
864program_transform_name=s,x,x,
865silent=
866site=
867srcdir=
868verbose=
869x_includes=NONE
870x_libraries=NONE
871
872# Installation directory options.
873# These are left unexpanded so users can "make install exec_prefix=/foo"
874# and all the variables that are supposed to be based on exec_prefix
875# by default will actually change.
876# Use braces instead of parens because sh, perl, etc. also accept them.
877# (The list follows the same order as the GNU Coding Standards.)
878bindir='${exec_prefix}/bin'
879sbindir='${exec_prefix}/sbin'
880libexecdir='${exec_prefix}/libexec'
881datarootdir='${prefix}/share'
882datadir='${datarootdir}'
883sysconfdir='${prefix}/etc'
884sharedstatedir='${prefix}/com'
885localstatedir='${prefix}/var'
886runstatedir='${localstatedir}/run'
887includedir='${prefix}/include'
888oldincludedir='/usr/include'
889docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
890infodir='${datarootdir}/info'
891htmldir='${docdir}'
892dvidir='${docdir}'
893pdfdir='${docdir}'
894psdir='${docdir}'
895libdir='${exec_prefix}/lib'
896localedir='${datarootdir}/locale'
897mandir='${datarootdir}/man'
898
899ac_prev=
900ac_dashdash=
901for ac_option
902do
903  # If the previous option needs an argument, assign it.
904  if test -n "$ac_prev"; then
905    eval $ac_prev=\$ac_option
906    ac_prev=
907    continue
908  fi
909
910  case $ac_option in
911  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
912  *=)   ac_optarg= ;;
913  *)    ac_optarg=yes ;;
914  esac
915
916  case $ac_dashdash$ac_option in
917  --)
918    ac_dashdash=yes ;;
919
920  -bindir | --bindir | --bindi | --bind | --bin | --bi)
921    ac_prev=bindir ;;
922  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
923    bindir=$ac_optarg ;;
924
925  -build | --build | --buil | --bui | --bu)
926    ac_prev=build_alias ;;
927  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
928    build_alias=$ac_optarg ;;
929
930  -cache-file | --cache-file | --cache-fil | --cache-fi \
931  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
932    ac_prev=cache_file ;;
933  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
934  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
935    cache_file=$ac_optarg ;;
936
937  --config-cache | -C)
938    cache_file=config.cache ;;
939
940  -datadir | --datadir | --datadi | --datad)
941    ac_prev=datadir ;;
942  -datadir=* | --datadir=* | --datadi=* | --datad=*)
943    datadir=$ac_optarg ;;
944
945  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
946  | --dataroo | --dataro | --datar)
947    ac_prev=datarootdir ;;
948  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
949  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
950    datarootdir=$ac_optarg ;;
951
952  -disable-* | --disable-*)
953    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
954    # Reject names that are not valid shell variable names.
955    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956      as_fn_error $? "invalid feature name: \`$ac_useropt'"
957    ac_useropt_orig=$ac_useropt
958    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
959    case $ac_user_opts in
960      *"
961"enable_$ac_useropt"
962"*) ;;
963      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
964	 ac_unrecognized_sep=', ';;
965    esac
966    eval enable_$ac_useropt=no ;;
967
968  -docdir | --docdir | --docdi | --doc | --do)
969    ac_prev=docdir ;;
970  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
971    docdir=$ac_optarg ;;
972
973  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
974    ac_prev=dvidir ;;
975  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
976    dvidir=$ac_optarg ;;
977
978  -enable-* | --enable-*)
979    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
980    # Reject names that are not valid shell variable names.
981    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
982      as_fn_error $? "invalid feature name: \`$ac_useropt'"
983    ac_useropt_orig=$ac_useropt
984    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
985    case $ac_user_opts in
986      *"
987"enable_$ac_useropt"
988"*) ;;
989      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
990	 ac_unrecognized_sep=', ';;
991    esac
992    eval enable_$ac_useropt=\$ac_optarg ;;
993
994  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
995  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
996  | --exec | --exe | --ex)
997    ac_prev=exec_prefix ;;
998  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
999  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1000  | --exec=* | --exe=* | --ex=*)
1001    exec_prefix=$ac_optarg ;;
1002
1003  -gas | --gas | --ga | --g)
1004    # Obsolete; use --with-gas.
1005    with_gas=yes ;;
1006
1007  -help | --help | --hel | --he | -h)
1008    ac_init_help=long ;;
1009  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1010    ac_init_help=recursive ;;
1011  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1012    ac_init_help=short ;;
1013
1014  -host | --host | --hos | --ho)
1015    ac_prev=host_alias ;;
1016  -host=* | --host=* | --hos=* | --ho=*)
1017    host_alias=$ac_optarg ;;
1018
1019  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1020    ac_prev=htmldir ;;
1021  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1022  | --ht=*)
1023    htmldir=$ac_optarg ;;
1024
1025  -includedir | --includedir | --includedi | --included | --include \
1026  | --includ | --inclu | --incl | --inc)
1027    ac_prev=includedir ;;
1028  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1029  | --includ=* | --inclu=* | --incl=* | --inc=*)
1030    includedir=$ac_optarg ;;
1031
1032  -infodir | --infodir | --infodi | --infod | --info | --inf)
1033    ac_prev=infodir ;;
1034  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1035    infodir=$ac_optarg ;;
1036
1037  -libdir | --libdir | --libdi | --libd)
1038    ac_prev=libdir ;;
1039  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1040    libdir=$ac_optarg ;;
1041
1042  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1043  | --libexe | --libex | --libe)
1044    ac_prev=libexecdir ;;
1045  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1046  | --libexe=* | --libex=* | --libe=*)
1047    libexecdir=$ac_optarg ;;
1048
1049  -localedir | --localedir | --localedi | --localed | --locale)
1050    ac_prev=localedir ;;
1051  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1052    localedir=$ac_optarg ;;
1053
1054  -localstatedir | --localstatedir | --localstatedi | --localstated \
1055  | --localstate | --localstat | --localsta | --localst | --locals)
1056    ac_prev=localstatedir ;;
1057  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1058  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1059    localstatedir=$ac_optarg ;;
1060
1061  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1062    ac_prev=mandir ;;
1063  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1064    mandir=$ac_optarg ;;
1065
1066  -nfp | --nfp | --nf)
1067    # Obsolete; use --without-fp.
1068    with_fp=no ;;
1069
1070  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1071  | --no-cr | --no-c | -n)
1072    no_create=yes ;;
1073
1074  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1075  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1076    no_recursion=yes ;;
1077
1078  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1079  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1080  | --oldin | --oldi | --old | --ol | --o)
1081    ac_prev=oldincludedir ;;
1082  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1083  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1084  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1085    oldincludedir=$ac_optarg ;;
1086
1087  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1088    ac_prev=prefix ;;
1089  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1090    prefix=$ac_optarg ;;
1091
1092  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1093  | --program-pre | --program-pr | --program-p)
1094    ac_prev=program_prefix ;;
1095  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1096  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1097    program_prefix=$ac_optarg ;;
1098
1099  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1100  | --program-suf | --program-su | --program-s)
1101    ac_prev=program_suffix ;;
1102  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1103  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1104    program_suffix=$ac_optarg ;;
1105
1106  -program-transform-name | --program-transform-name \
1107  | --program-transform-nam | --program-transform-na \
1108  | --program-transform-n | --program-transform- \
1109  | --program-transform | --program-transfor \
1110  | --program-transfo | --program-transf \
1111  | --program-trans | --program-tran \
1112  | --progr-tra | --program-tr | --program-t)
1113    ac_prev=program_transform_name ;;
1114  -program-transform-name=* | --program-transform-name=* \
1115  | --program-transform-nam=* | --program-transform-na=* \
1116  | --program-transform-n=* | --program-transform-=* \
1117  | --program-transform=* | --program-transfor=* \
1118  | --program-transfo=* | --program-transf=* \
1119  | --program-trans=* | --program-tran=* \
1120  | --progr-tra=* | --program-tr=* | --program-t=*)
1121    program_transform_name=$ac_optarg ;;
1122
1123  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1124    ac_prev=pdfdir ;;
1125  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1126    pdfdir=$ac_optarg ;;
1127
1128  -psdir | --psdir | --psdi | --psd | --ps)
1129    ac_prev=psdir ;;
1130  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1131    psdir=$ac_optarg ;;
1132
1133  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1134  | -silent | --silent | --silen | --sile | --sil)
1135    silent=yes ;;
1136
1137  -runstatedir | --runstatedir | --runstatedi | --runstated \
1138  | --runstate | --runstat | --runsta | --runst | --runs \
1139  | --run | --ru | --r)
1140    ac_prev=runstatedir ;;
1141  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1142  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1143  | --run=* | --ru=* | --r=*)
1144    runstatedir=$ac_optarg ;;
1145
1146  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1147    ac_prev=sbindir ;;
1148  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1149  | --sbi=* | --sb=*)
1150    sbindir=$ac_optarg ;;
1151
1152  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1153  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1154  | --sharedst | --shareds | --shared | --share | --shar \
1155  | --sha | --sh)
1156    ac_prev=sharedstatedir ;;
1157  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1158  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1159  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1160  | --sha=* | --sh=*)
1161    sharedstatedir=$ac_optarg ;;
1162
1163  -site | --site | --sit)
1164    ac_prev=site ;;
1165  -site=* | --site=* | --sit=*)
1166    site=$ac_optarg ;;
1167
1168  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1169    ac_prev=srcdir ;;
1170  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1171    srcdir=$ac_optarg ;;
1172
1173  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1174  | --syscon | --sysco | --sysc | --sys | --sy)
1175    ac_prev=sysconfdir ;;
1176  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1177  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1178    sysconfdir=$ac_optarg ;;
1179
1180  -target | --target | --targe | --targ | --tar | --ta | --t)
1181    ac_prev=target_alias ;;
1182  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1183    target_alias=$ac_optarg ;;
1184
1185  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1186    verbose=yes ;;
1187
1188  -version | --version | --versio | --versi | --vers | -V)
1189    ac_init_version=: ;;
1190
1191  -with-* | --with-*)
1192    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1193    # Reject names that are not valid shell variable names.
1194    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195      as_fn_error $? "invalid package name: \`$ac_useropt'"
1196    ac_useropt_orig=$ac_useropt
1197    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1198    case $ac_user_opts in
1199      *"
1200"with_$ac_useropt"
1201"*) ;;
1202      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1203	 ac_unrecognized_sep=', ';;
1204    esac
1205    eval with_$ac_useropt=\$ac_optarg ;;
1206
1207  -without-* | --without-*)
1208    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1209    # Reject names that are not valid shell variable names.
1210    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211      as_fn_error $? "invalid package name: \`$ac_useropt'"
1212    ac_useropt_orig=$ac_useropt
1213    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1214    case $ac_user_opts in
1215      *"
1216"with_$ac_useropt"
1217"*) ;;
1218      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1219	 ac_unrecognized_sep=', ';;
1220    esac
1221    eval with_$ac_useropt=no ;;
1222
1223  --x)
1224    # Obsolete; use --with-x.
1225    with_x=yes ;;
1226
1227  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1228  | --x-incl | --x-inc | --x-in | --x-i)
1229    ac_prev=x_includes ;;
1230  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1231  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1232    x_includes=$ac_optarg ;;
1233
1234  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1235  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1236    ac_prev=x_libraries ;;
1237  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1238  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1239    x_libraries=$ac_optarg ;;
1240
1241  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1242Try \`$0 --help' for more information"
1243    ;;
1244
1245  *=*)
1246    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1247    # Reject names that are not valid shell variable names.
1248    case $ac_envvar in #(
1249      '' | [0-9]* | *[!_$as_cr_alnum]* )
1250      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1251    esac
1252    eval $ac_envvar=\$ac_optarg
1253    export $ac_envvar ;;
1254
1255  *)
1256    # FIXME: should be removed in autoconf 3.0.
1257    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1258    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1260    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1261    ;;
1262
1263  esac
1264done
1265
1266if test -n "$ac_prev"; then
1267  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1268  as_fn_error $? "missing argument to $ac_option"
1269fi
1270
1271if test -n "$ac_unrecognized_opts"; then
1272  case $enable_option_checking in
1273    no) ;;
1274    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1275    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1276  esac
1277fi
1278
1279# Check all directory arguments for consistency.
1280for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281		datadir sysconfdir sharedstatedir localstatedir includedir \
1282		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283		libdir localedir mandir runstatedir
1284do
1285  eval ac_val=\$$ac_var
1286  # Remove trailing slashes.
1287  case $ac_val in
1288    */ )
1289      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1290      eval $ac_var=\$ac_val;;
1291  esac
1292  # Be sure to have absolute directory names.
1293  case $ac_val in
1294    [\\/$]* | ?:[\\/]* )  continue;;
1295    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1296  esac
1297  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1298done
1299
1300# There might be people who depend on the old broken behavior: `$host'
1301# used to hold the argument of --host etc.
1302# FIXME: To remove some day.
1303build=$build_alias
1304host=$host_alias
1305target=$target_alias
1306
1307# FIXME: To remove some day.
1308if test "x$host_alias" != x; then
1309  if test "x$build_alias" = x; then
1310    cross_compiling=maybe
1311  elif test "x$build_alias" != "x$host_alias"; then
1312    cross_compiling=yes
1313  fi
1314fi
1315
1316ac_tool_prefix=
1317test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318
1319test "$silent" = yes && exec 6>/dev/null
1320
1321
1322ac_pwd=`pwd` && test -n "$ac_pwd" &&
1323ac_ls_di=`ls -di .` &&
1324ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1325  as_fn_error $? "working directory cannot be determined"
1326test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327  as_fn_error $? "pwd does not report name of working directory"
1328
1329
1330# Find the source files, if location was not specified.
1331if test -z "$srcdir"; then
1332  ac_srcdir_defaulted=yes
1333  # Try the directory containing this script, then the parent directory.
1334  ac_confdir=`$as_dirname -- "$as_myself" ||
1335$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336	 X"$as_myself" : 'X\(//\)[^/]' \| \
1337	 X"$as_myself" : 'X\(//\)$' \| \
1338	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1339printf "%s\n" X"$as_myself" |
1340    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341	    s//\1/
1342	    q
1343	  }
1344	  /^X\(\/\/\)[^/].*/{
1345	    s//\1/
1346	    q
1347	  }
1348	  /^X\(\/\/\)$/{
1349	    s//\1/
1350	    q
1351	  }
1352	  /^X\(\/\).*/{
1353	    s//\1/
1354	    q
1355	  }
1356	  s/.*/./; q'`
1357  srcdir=$ac_confdir
1358  if test ! -r "$srcdir/$ac_unique_file"; then
1359    srcdir=..
1360  fi
1361else
1362  ac_srcdir_defaulted=no
1363fi
1364if test ! -r "$srcdir/$ac_unique_file"; then
1365  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1366  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1367fi
1368ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369ac_abs_confdir=`(
1370	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1371	pwd)`
1372# When building in place, set srcdir=.
1373if test "$ac_abs_confdir" = "$ac_pwd"; then
1374  srcdir=.
1375fi
1376# Remove unnecessary trailing slashes from srcdir.
1377# Double slashes in file names in object file debugging info
1378# mess up M-x gdb in Emacs.
1379case $srcdir in
1380*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381esac
1382for ac_var in $ac_precious_vars; do
1383  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384  eval ac_env_${ac_var}_value=\$${ac_var}
1385  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387done
1388
1389#
1390# Report the --help message.
1391#
1392if test "$ac_init_help" = "long"; then
1393  # Omit some internal or obsolete options to make the list less imposing.
1394  # This message is too long to be a string in the A/UX 3.1 sh.
1395  cat <<_ACEOF
1396\`configure' configures xf86-input-keyboard 2.0.0 to adapt to many kinds of systems.
1397
1398Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401VAR=VALUE.  See below for descriptions of some of the useful variables.
1402
1403Defaults for the options are specified in brackets.
1404
1405Configuration:
1406  -h, --help              display this help and exit
1407      --help=short        display options specific to this package
1408      --help=recursive    display the short help of all the included packages
1409  -V, --version           display version information and exit
1410  -q, --quiet, --silent   do not print \`checking ...' messages
1411      --cache-file=FILE   cache test results in FILE [disabled]
1412  -C, --config-cache      alias for \`--cache-file=config.cache'
1413  -n, --no-create         do not create output files
1414      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1415
1416Installation directories:
1417  --prefix=PREFIX         install architecture-independent files in PREFIX
1418                          [$ac_default_prefix]
1419  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1420                          [PREFIX]
1421
1422By default, \`make install' will install all the files in
1423\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1424an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425for instance \`--prefix=\$HOME'.
1426
1427For better control, use the options below.
1428
1429Fine tuning of the installation directories:
1430  --bindir=DIR            user executables [EPREFIX/bin]
1431  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1432  --libexecdir=DIR        program executables [EPREFIX/libexec]
1433  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1434  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1435  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1436  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1437  --libdir=DIR            object code libraries [EPREFIX/lib]
1438  --includedir=DIR        C header files [PREFIX/include]
1439  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1440  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1441  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1442  --infodir=DIR           info documentation [DATAROOTDIR/info]
1443  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1444  --mandir=DIR            man documentation [DATAROOTDIR/man]
1445  --docdir=DIR            documentation root
1446                          [DATAROOTDIR/doc/xf86-input-keyboard]
1447  --htmldir=DIR           html documentation [DOCDIR]
1448  --dvidir=DIR            dvi documentation [DOCDIR]
1449  --pdfdir=DIR            pdf documentation [DOCDIR]
1450  --psdir=DIR             ps documentation [DOCDIR]
1451_ACEOF
1452
1453  cat <<\_ACEOF
1454
1455Program names:
1456  --program-prefix=PREFIX            prepend PREFIX to installed program names
1457  --program-suffix=SUFFIX            append SUFFIX to installed program names
1458  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1459
1460System types:
1461  --build=BUILD     configure for building on BUILD [guessed]
1462  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1463_ACEOF
1464fi
1465
1466if test -n "$ac_init_help"; then
1467  case $ac_init_help in
1468     short | recursive ) echo "Configuration of xf86-input-keyboard 2.0.0:";;
1469   esac
1470  cat <<\_ACEOF
1471
1472Optional Features:
1473  --disable-option-checking  ignore unrecognized --enable/--with options
1474  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1475  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1476  --enable-silent-rules   less verbose build output (undo: "make V=1")
1477  --disable-silent-rules  verbose build output (undo: "make V=0")
1478  --enable-static[=PKGS]  build static libraries [default=no]
1479  --enable-shared[=PKGS]  build shared libraries [default=yes]
1480  --enable-fast-install[=PKGS]
1481                          optimize for fast installation [default=yes]
1482  --enable-dependency-tracking
1483                          do not reject slow dependency extractors
1484  --disable-dependency-tracking
1485                          speeds up one-time build
1486  --disable-libtool-lock  avoid locking (might break parallel builds)
1487  --disable-selective-werror
1488                          Turn off selective compiler errors. (default:
1489                          enabled)
1490  --enable-strict-compilation
1491                          Enable all warnings from compiler and make them
1492                          errors (default: disabled)
1493
1494Optional Packages:
1495  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1496  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1497  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1498                          both]
1499  --with-aix-soname=aix|svr4|both
1500                          shared library versioning (aka "SONAME") variant to
1501                          provide on AIX, [default=aix].
1502  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1503  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1504                          compiler's sysroot if not specified).
1505  --with-xorg-module-dir=DIR
1506                          Default xorg module directory
1507                          [[default=$libdir/xorg/modules]]
1508
1509Some influential environment variables:
1510  CC          C compiler command
1511  CFLAGS      C compiler flags
1512  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1513              nonstandard directory <lib dir>
1514  LIBS        libraries to pass to the linker, e.g. -l<library>
1515  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1516              you have headers in a nonstandard directory <include dir>
1517  LT_SYS_LIBRARY_PATH
1518              User-defined run-time library search path.
1519  PKG_CONFIG  path to pkg-config utility
1520  PKG_CONFIG_PATH
1521              directories to add to pkg-config's search path
1522  PKG_CONFIG_LIBDIR
1523              path overriding pkg-config's built-in search path
1524  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1525  XORG_LIBS   linker flags for XORG, overriding pkg-config
1526
1527Use these variables to override the choices made by `configure' or to help
1528it to find libraries and programs with nonstandard names/locations.
1529
1530Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-input-keyboard/issues>.
1531_ACEOF
1532ac_status=$?
1533fi
1534
1535if test "$ac_init_help" = "recursive"; then
1536  # If there are subdirs, report their specific --help.
1537  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538    test -d "$ac_dir" ||
1539      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1540      continue
1541    ac_builddir=.
1542
1543case "$ac_dir" in
1544.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545*)
1546  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1547  # A ".." for each directory in $ac_dir_suffix.
1548  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1549  case $ac_top_builddir_sub in
1550  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1552  esac ;;
1553esac
1554ac_abs_top_builddir=$ac_pwd
1555ac_abs_builddir=$ac_pwd$ac_dir_suffix
1556# for backward compatibility:
1557ac_top_builddir=$ac_top_build_prefix
1558
1559case $srcdir in
1560  .)  # We are building in place.
1561    ac_srcdir=.
1562    ac_top_srcdir=$ac_top_builddir_sub
1563    ac_abs_top_srcdir=$ac_pwd ;;
1564  [\\/]* | ?:[\\/]* )  # Absolute name.
1565    ac_srcdir=$srcdir$ac_dir_suffix;
1566    ac_top_srcdir=$srcdir
1567    ac_abs_top_srcdir=$srcdir ;;
1568  *) # Relative name.
1569    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1570    ac_top_srcdir=$ac_top_build_prefix$srcdir
1571    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1572esac
1573ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1574
1575    cd "$ac_dir" || { ac_status=$?; continue; }
1576    # Check for configure.gnu first; this name is used for a wrapper for
1577    # Metaconfig's "Configure" on case-insensitive file systems.
1578    if test -f "$ac_srcdir/configure.gnu"; then
1579      echo &&
1580      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1581    elif test -f "$ac_srcdir/configure"; then
1582      echo &&
1583      $SHELL "$ac_srcdir/configure" --help=recursive
1584    else
1585      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1586    fi || ac_status=$?
1587    cd "$ac_pwd" || { ac_status=$?; break; }
1588  done
1589fi
1590
1591test -n "$ac_init_help" && exit $ac_status
1592if $ac_init_version; then
1593  cat <<\_ACEOF
1594xf86-input-keyboard configure 2.0.0
1595generated by GNU Autoconf 2.71
1596
1597Copyright (C) 2021 Free Software Foundation, Inc.
1598This configure script is free software; the Free Software Foundation
1599gives unlimited permission to copy, distribute and modify it.
1600_ACEOF
1601  exit
1602fi
1603
1604## ------------------------ ##
1605## Autoconf initialization. ##
1606## ------------------------ ##
1607
1608# ac_fn_c_try_compile LINENO
1609# --------------------------
1610# Try to compile conftest.$ac_ext, and return whether this succeeded.
1611ac_fn_c_try_compile ()
1612{
1613  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614  rm -f conftest.$ac_objext conftest.beam
1615  if { { ac_try="$ac_compile"
1616case "(($ac_try" in
1617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618  *) ac_try_echo=$ac_try;;
1619esac
1620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621printf "%s\n" "$ac_try_echo"; } >&5
1622  (eval "$ac_compile") 2>conftest.err
1623  ac_status=$?
1624  if test -s conftest.err; then
1625    grep -v '^ *+' conftest.err >conftest.er1
1626    cat conftest.er1 >&5
1627    mv -f conftest.er1 conftest.err
1628  fi
1629  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630  test $ac_status = 0; } && {
1631	 test -z "$ac_c_werror_flag" ||
1632	 test ! -s conftest.err
1633       } && test -s conftest.$ac_objext
1634then :
1635  ac_retval=0
1636else $as_nop
1637  printf "%s\n" "$as_me: failed program was:" >&5
1638sed 's/^/| /' conftest.$ac_ext >&5
1639
1640	ac_retval=1
1641fi
1642  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643  as_fn_set_status $ac_retval
1644
1645} # ac_fn_c_try_compile
1646
1647# ac_fn_c_try_link LINENO
1648# -----------------------
1649# Try to link conftest.$ac_ext, and return whether this succeeded.
1650ac_fn_c_try_link ()
1651{
1652  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1654  if { { ac_try="$ac_link"
1655case "(($ac_try" in
1656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657  *) ac_try_echo=$ac_try;;
1658esac
1659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660printf "%s\n" "$ac_try_echo"; } >&5
1661  (eval "$ac_link") 2>conftest.err
1662  ac_status=$?
1663  if test -s conftest.err; then
1664    grep -v '^ *+' conftest.err >conftest.er1
1665    cat conftest.er1 >&5
1666    mv -f conftest.er1 conftest.err
1667  fi
1668  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669  test $ac_status = 0; } && {
1670	 test -z "$ac_c_werror_flag" ||
1671	 test ! -s conftest.err
1672       } && test -s conftest$ac_exeext && {
1673	 test "$cross_compiling" = yes ||
1674	 test -x conftest$ac_exeext
1675       }
1676then :
1677  ac_retval=0
1678else $as_nop
1679  printf "%s\n" "$as_me: failed program was:" >&5
1680sed 's/^/| /' conftest.$ac_ext >&5
1681
1682	ac_retval=1
1683fi
1684  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1685  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1686  # interfere with the next link command; also delete a directory that is
1687  # left behind by Apple's compiler.  We do this before executing the actions.
1688  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690  as_fn_set_status $ac_retval
1691
1692} # ac_fn_c_try_link
1693
1694# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1695# -------------------------------------------------------
1696# Tests whether HEADER exists and can be compiled using the include files in
1697# INCLUDES, setting the cache variable VAR accordingly.
1698ac_fn_c_check_header_compile ()
1699{
1700  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702printf %s "checking for $2... " >&6; }
1703if eval test \${$3+y}
1704then :
1705  printf %s "(cached) " >&6
1706else $as_nop
1707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708/* end confdefs.h.  */
1709$4
1710#include <$2>
1711_ACEOF
1712if ac_fn_c_try_compile "$LINENO"
1713then :
1714  eval "$3=yes"
1715else $as_nop
1716  eval "$3=no"
1717fi
1718rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1719fi
1720eval ac_res=\$$3
1721	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1722printf "%s\n" "$ac_res" >&6; }
1723  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724
1725} # ac_fn_c_check_header_compile
1726
1727# ac_fn_c_check_func LINENO FUNC VAR
1728# ----------------------------------
1729# Tests whether FUNC exists, setting the cache variable VAR accordingly
1730ac_fn_c_check_func ()
1731{
1732  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734printf %s "checking for $2... " >&6; }
1735if eval test \${$3+y}
1736then :
1737  printf %s "(cached) " >&6
1738else $as_nop
1739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740/* end confdefs.h.  */
1741/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1742   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1743#define $2 innocuous_$2
1744
1745/* System header to define __stub macros and hopefully few prototypes,
1746   which can conflict with char $2 (); below.  */
1747
1748#include <limits.h>
1749#undef $2
1750
1751/* Override any GCC internal prototype to avoid an error.
1752   Use char because int might match the return type of a GCC
1753   builtin and then its argument prototype would still apply.  */
1754#ifdef __cplusplus
1755extern "C"
1756#endif
1757char $2 ();
1758/* The GNU C library defines this for functions which it implements
1759    to always fail with ENOSYS.  Some functions are actually named
1760    something starting with __ and the normal name is an alias.  */
1761#if defined __stub_$2 || defined __stub___$2
1762choke me
1763#endif
1764
1765int
1766main (void)
1767{
1768return $2 ();
1769  ;
1770  return 0;
1771}
1772_ACEOF
1773if ac_fn_c_try_link "$LINENO"
1774then :
1775  eval "$3=yes"
1776else $as_nop
1777  eval "$3=no"
1778fi
1779rm -f core conftest.err conftest.$ac_objext conftest.beam \
1780    conftest$ac_exeext conftest.$ac_ext
1781fi
1782eval ac_res=\$$3
1783	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784printf "%s\n" "$ac_res" >&6; }
1785  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786
1787} # ac_fn_c_check_func
1788
1789# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1790# ------------------------------------------------------------------
1791# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1792# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1793ac_fn_check_decl ()
1794{
1795  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796  as_decl_name=`echo $2|sed 's/ *(.*//'`
1797  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1798printf %s "checking whether $as_decl_name is declared... " >&6; }
1799if eval test \${$3+y}
1800then :
1801  printf %s "(cached) " >&6
1802else $as_nop
1803  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1804  eval ac_save_FLAGS=\$$6
1805  as_fn_append $6 " $5"
1806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807/* end confdefs.h.  */
1808$4
1809int
1810main (void)
1811{
1812#ifndef $as_decl_name
1813#ifdef __cplusplus
1814  (void) $as_decl_use;
1815#else
1816  (void) $as_decl_name;
1817#endif
1818#endif
1819
1820  ;
1821  return 0;
1822}
1823_ACEOF
1824if ac_fn_c_try_compile "$LINENO"
1825then :
1826  eval "$3=yes"
1827else $as_nop
1828  eval "$3=no"
1829fi
1830rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1831  eval $6=\$ac_save_FLAGS
1832
1833fi
1834eval ac_res=\$$3
1835	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836printf "%s\n" "$ac_res" >&6; }
1837  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838
1839} # ac_fn_check_decl
1840ac_configure_args_raw=
1841for ac_arg
1842do
1843  case $ac_arg in
1844  *\'*)
1845    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1846  esac
1847  as_fn_append ac_configure_args_raw " '$ac_arg'"
1848done
1849
1850case $ac_configure_args_raw in
1851  *$as_nl*)
1852    ac_safe_unquote= ;;
1853  *)
1854    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1855    ac_unsafe_a="$ac_unsafe_z#~"
1856    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1857    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1858esac
1859
1860cat >config.log <<_ACEOF
1861This file contains any messages produced by compilers while
1862running configure, to aid debugging if configure makes a mistake.
1863
1864It was created by xf86-input-keyboard $as_me 2.0.0, which was
1865generated by GNU Autoconf 2.71.  Invocation command line was
1866
1867  $ $0$ac_configure_args_raw
1868
1869_ACEOF
1870exec 5>>config.log
1871{
1872cat <<_ASUNAME
1873## --------- ##
1874## Platform. ##
1875## --------- ##
1876
1877hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1878uname -m = `(uname -m) 2>/dev/null || echo unknown`
1879uname -r = `(uname -r) 2>/dev/null || echo unknown`
1880uname -s = `(uname -s) 2>/dev/null || echo unknown`
1881uname -v = `(uname -v) 2>/dev/null || echo unknown`
1882
1883/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1884/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1885
1886/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1887/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1888/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1889/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1890/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1891/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1892/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1893
1894_ASUNAME
1895
1896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897for as_dir in $PATH
1898do
1899  IFS=$as_save_IFS
1900  case $as_dir in #(((
1901    '') as_dir=./ ;;
1902    */) ;;
1903    *) as_dir=$as_dir/ ;;
1904  esac
1905    printf "%s\n" "PATH: $as_dir"
1906  done
1907IFS=$as_save_IFS
1908
1909} >&5
1910
1911cat >&5 <<_ACEOF
1912
1913
1914## ----------- ##
1915## Core tests. ##
1916## ----------- ##
1917
1918_ACEOF
1919
1920
1921# Keep a trace of the command line.
1922# Strip out --no-create and --no-recursion so they do not pile up.
1923# Strip out --silent because we don't want to record it for future runs.
1924# Also quote any args containing shell meta-characters.
1925# Make two passes to allow for proper duplicate-argument suppression.
1926ac_configure_args=
1927ac_configure_args0=
1928ac_configure_args1=
1929ac_must_keep_next=false
1930for ac_pass in 1 2
1931do
1932  for ac_arg
1933  do
1934    case $ac_arg in
1935    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1936    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1937    | -silent | --silent | --silen | --sile | --sil)
1938      continue ;;
1939    *\'*)
1940      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1941    esac
1942    case $ac_pass in
1943    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1944    2)
1945      as_fn_append ac_configure_args1 " '$ac_arg'"
1946      if test $ac_must_keep_next = true; then
1947	ac_must_keep_next=false # Got value, back to normal.
1948      else
1949	case $ac_arg in
1950	  *=* | --config-cache | -C | -disable-* | --disable-* \
1951	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1952	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1953	  | -with-* | --with-* | -without-* | --without-* | --x)
1954	    case "$ac_configure_args0 " in
1955	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1956	    esac
1957	    ;;
1958	  -* ) ac_must_keep_next=true ;;
1959	esac
1960      fi
1961      as_fn_append ac_configure_args " '$ac_arg'"
1962      ;;
1963    esac
1964  done
1965done
1966{ ac_configure_args0=; unset ac_configure_args0;}
1967{ ac_configure_args1=; unset ac_configure_args1;}
1968
1969# When interrupted or exit'd, cleanup temporary files, and complete
1970# config.log.  We remove comments because anyway the quotes in there
1971# would cause problems or look ugly.
1972# WARNING: Use '\'' to represent an apostrophe within the trap.
1973# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1974trap 'exit_status=$?
1975  # Sanitize IFS.
1976  IFS=" ""	$as_nl"
1977  # Save into config.log some information that might help in debugging.
1978  {
1979    echo
1980
1981    printf "%s\n" "## ---------------- ##
1982## Cache variables. ##
1983## ---------------- ##"
1984    echo
1985    # The following way of writing the cache mishandles newlines in values,
1986(
1987  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1988    eval ac_val=\$$ac_var
1989    case $ac_val in #(
1990    *${as_nl}*)
1991      case $ac_var in #(
1992      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1993printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1994      esac
1995      case $ac_var in #(
1996      _ | IFS | as_nl) ;; #(
1997      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1998      *) { eval $ac_var=; unset $ac_var;} ;;
1999      esac ;;
2000    esac
2001  done
2002  (set) 2>&1 |
2003    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2004    *${as_nl}ac_space=\ *)
2005      sed -n \
2006	"s/'\''/'\''\\\\'\'''\''/g;
2007	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2008      ;; #(
2009    *)
2010      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2011      ;;
2012    esac |
2013    sort
2014)
2015    echo
2016
2017    printf "%s\n" "## ----------------- ##
2018## Output variables. ##
2019## ----------------- ##"
2020    echo
2021    for ac_var in $ac_subst_vars
2022    do
2023      eval ac_val=\$$ac_var
2024      case $ac_val in
2025      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2026      esac
2027      printf "%s\n" "$ac_var='\''$ac_val'\''"
2028    done | sort
2029    echo
2030
2031    if test -n "$ac_subst_files"; then
2032      printf "%s\n" "## ------------------- ##
2033## File substitutions. ##
2034## ------------------- ##"
2035      echo
2036      for ac_var in $ac_subst_files
2037      do
2038	eval ac_val=\$$ac_var
2039	case $ac_val in
2040	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2041	esac
2042	printf "%s\n" "$ac_var='\''$ac_val'\''"
2043      done | sort
2044      echo
2045    fi
2046
2047    if test -s confdefs.h; then
2048      printf "%s\n" "## ----------- ##
2049## confdefs.h. ##
2050## ----------- ##"
2051      echo
2052      cat confdefs.h
2053      echo
2054    fi
2055    test "$ac_signal" != 0 &&
2056      printf "%s\n" "$as_me: caught signal $ac_signal"
2057    printf "%s\n" "$as_me: exit $exit_status"
2058  } >&5
2059  rm -f core *.core core.conftest.* &&
2060    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2061    exit $exit_status
2062' 0
2063for ac_signal in 1 2 13 15; do
2064  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2065done
2066ac_signal=0
2067
2068# confdefs.h avoids OS command line length limits that DEFS can exceed.
2069rm -f -r conftest* confdefs.h
2070
2071printf "%s\n" "/* confdefs.h */" > confdefs.h
2072
2073# Predefined preprocessor variables.
2074
2075printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2076
2077printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2078
2079printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2080
2081printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2082
2083printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2084
2085printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2086
2087
2088# Let the site file select an alternate cache file if it wants to.
2089# Prefer an explicitly selected file to automatically selected ones.
2090if test -n "$CONFIG_SITE"; then
2091  ac_site_files="$CONFIG_SITE"
2092elif test "x$prefix" != xNONE; then
2093  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2094else
2095  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2096fi
2097
2098for ac_site_file in $ac_site_files
2099do
2100  case $ac_site_file in #(
2101  */*) :
2102     ;; #(
2103  *) :
2104    ac_site_file=./$ac_site_file ;;
2105esac
2106  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2107    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2108printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2109    sed 's/^/| /' "$ac_site_file" >&5
2110    . "$ac_site_file" \
2111      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2112printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2113as_fn_error $? "failed to load site script $ac_site_file
2114See \`config.log' for more details" "$LINENO" 5; }
2115  fi
2116done
2117
2118if test -r "$cache_file"; then
2119  # Some versions of bash will fail to source /dev/null (special files
2120  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2121  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2122    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2123printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2124    case $cache_file in
2125      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2126      *)                      . "./$cache_file";;
2127    esac
2128  fi
2129else
2130  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2131printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2132  >$cache_file
2133fi
2134
2135# Test code for whether the C compiler supports C89 (global declarations)
2136ac_c_conftest_c89_globals='
2137/* Does the compiler advertise C89 conformance?
2138   Do not test the value of __STDC__, because some compilers set it to 0
2139   while being otherwise adequately conformant. */
2140#if !defined __STDC__
2141# error "Compiler does not advertise C89 conformance"
2142#endif
2143
2144#include <stddef.h>
2145#include <stdarg.h>
2146struct stat;
2147/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2148struct buf { int x; };
2149struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2150static char *e (p, i)
2151     char **p;
2152     int i;
2153{
2154  return p[i];
2155}
2156static char *f (char * (*g) (char **, int), char **p, ...)
2157{
2158  char *s;
2159  va_list v;
2160  va_start (v,p);
2161  s = g (p, va_arg (v,int));
2162  va_end (v);
2163  return s;
2164}
2165
2166/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2167   function prototypes and stuff, but not \xHH hex character constants.
2168   These do not provoke an error unfortunately, instead are silently treated
2169   as an "x".  The following induces an error, until -std is added to get
2170   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2171   array size at least.  It is necessary to write \x00 == 0 to get something
2172   that is true only with -std.  */
2173int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2174
2175/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2176   inside strings and character constants.  */
2177#define FOO(x) '\''x'\''
2178int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2179
2180int test (int i, double x);
2181struct s1 {int (*f) (int a);};
2182struct s2 {int (*f) (double a);};
2183int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2184               int, int);'
2185
2186# Test code for whether the C compiler supports C89 (body of main).
2187ac_c_conftest_c89_main='
2188ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2189'
2190
2191# Test code for whether the C compiler supports C99 (global declarations)
2192ac_c_conftest_c99_globals='
2193// Does the compiler advertise C99 conformance?
2194#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2195# error "Compiler does not advertise C99 conformance"
2196#endif
2197
2198#include <stdbool.h>
2199extern int puts (const char *);
2200extern int printf (const char *, ...);
2201extern int dprintf (int, const char *, ...);
2202extern void *malloc (size_t);
2203
2204// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2205// dprintf is used instead of fprintf to avoid needing to declare
2206// FILE and stderr.
2207#define debug(...) dprintf (2, __VA_ARGS__)
2208#define showlist(...) puts (#__VA_ARGS__)
2209#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2210static void
2211test_varargs_macros (void)
2212{
2213  int x = 1234;
2214  int y = 5678;
2215  debug ("Flag");
2216  debug ("X = %d\n", x);
2217  showlist (The first, second, and third items.);
2218  report (x>y, "x is %d but y is %d", x, y);
2219}
2220
2221// Check long long types.
2222#define BIG64 18446744073709551615ull
2223#define BIG32 4294967295ul
2224#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2225#if !BIG_OK
2226  #error "your preprocessor is broken"
2227#endif
2228#if BIG_OK
2229#else
2230  #error "your preprocessor is broken"
2231#endif
2232static long long int bignum = -9223372036854775807LL;
2233static unsigned long long int ubignum = BIG64;
2234
2235struct incomplete_array
2236{
2237  int datasize;
2238  double data[];
2239};
2240
2241struct named_init {
2242  int number;
2243  const wchar_t *name;
2244  double average;
2245};
2246
2247typedef const char *ccp;
2248
2249static inline int
2250test_restrict (ccp restrict text)
2251{
2252  // See if C++-style comments work.
2253  // Iterate through items via the restricted pointer.
2254  // Also check for declarations in for loops.
2255  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2256    continue;
2257  return 0;
2258}
2259
2260// Check varargs and va_copy.
2261static bool
2262test_varargs (const char *format, ...)
2263{
2264  va_list args;
2265  va_start (args, format);
2266  va_list args_copy;
2267  va_copy (args_copy, args);
2268
2269  const char *str = "";
2270  int number = 0;
2271  float fnumber = 0;
2272
2273  while (*format)
2274    {
2275      switch (*format++)
2276	{
2277	case '\''s'\'': // string
2278	  str = va_arg (args_copy, const char *);
2279	  break;
2280	case '\''d'\'': // int
2281	  number = va_arg (args_copy, int);
2282	  break;
2283	case '\''f'\'': // float
2284	  fnumber = va_arg (args_copy, double);
2285	  break;
2286	default:
2287	  break;
2288	}
2289    }
2290  va_end (args_copy);
2291  va_end (args);
2292
2293  return *str && number && fnumber;
2294}
2295'
2296
2297# Test code for whether the C compiler supports C99 (body of main).
2298ac_c_conftest_c99_main='
2299  // Check bool.
2300  _Bool success = false;
2301  success |= (argc != 0);
2302
2303  // Check restrict.
2304  if (test_restrict ("String literal") == 0)
2305    success = true;
2306  char *restrict newvar = "Another string";
2307
2308  // Check varargs.
2309  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2310  test_varargs_macros ();
2311
2312  // Check flexible array members.
2313  struct incomplete_array *ia =
2314    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2315  ia->datasize = 10;
2316  for (int i = 0; i < ia->datasize; ++i)
2317    ia->data[i] = i * 1.234;
2318
2319  // Check named initializers.
2320  struct named_init ni = {
2321    .number = 34,
2322    .name = L"Test wide string",
2323    .average = 543.34343,
2324  };
2325
2326  ni.number = 58;
2327
2328  int dynamic_array[ni.number];
2329  dynamic_array[0] = argv[0][0];
2330  dynamic_array[ni.number - 1] = 543;
2331
2332  // work around unused variable warnings
2333  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2334	 || dynamic_array[ni.number - 1] != 543);
2335'
2336
2337# Test code for whether the C compiler supports C11 (global declarations)
2338ac_c_conftest_c11_globals='
2339// Does the compiler advertise C11 conformance?
2340#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2341# error "Compiler does not advertise C11 conformance"
2342#endif
2343
2344// Check _Alignas.
2345char _Alignas (double) aligned_as_double;
2346char _Alignas (0) no_special_alignment;
2347extern char aligned_as_int;
2348char _Alignas (0) _Alignas (int) aligned_as_int;
2349
2350// Check _Alignof.
2351enum
2352{
2353  int_alignment = _Alignof (int),
2354  int_array_alignment = _Alignof (int[100]),
2355  char_alignment = _Alignof (char)
2356};
2357_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2358
2359// Check _Noreturn.
2360int _Noreturn does_not_return (void) { for (;;) continue; }
2361
2362// Check _Static_assert.
2363struct test_static_assert
2364{
2365  int x;
2366  _Static_assert (sizeof (int) <= sizeof (long int),
2367                  "_Static_assert does not work in struct");
2368  long int y;
2369};
2370
2371// Check UTF-8 literals.
2372#define u8 syntax error!
2373char const utf8_literal[] = u8"happens to be ASCII" "another string";
2374
2375// Check duplicate typedefs.
2376typedef long *long_ptr;
2377typedef long int *long_ptr;
2378typedef long_ptr long_ptr;
2379
2380// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2381struct anonymous
2382{
2383  union {
2384    struct { int i; int j; };
2385    struct { int k; long int l; } w;
2386  };
2387  int m;
2388} v1;
2389'
2390
2391# Test code for whether the C compiler supports C11 (body of main).
2392ac_c_conftest_c11_main='
2393  _Static_assert ((offsetof (struct anonymous, i)
2394		   == offsetof (struct anonymous, w.k)),
2395		  "Anonymous union alignment botch");
2396  v1.i = 2;
2397  v1.w.k = 5;
2398  ok |= v1.i != 5;
2399'
2400
2401# Test code for whether the C compiler supports C11 (complete).
2402ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2403${ac_c_conftest_c99_globals}
2404${ac_c_conftest_c11_globals}
2405
2406int
2407main (int argc, char **argv)
2408{
2409  int ok = 0;
2410  ${ac_c_conftest_c89_main}
2411  ${ac_c_conftest_c99_main}
2412  ${ac_c_conftest_c11_main}
2413  return ok;
2414}
2415"
2416
2417# Test code for whether the C compiler supports C99 (complete).
2418ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2419${ac_c_conftest_c99_globals}
2420
2421int
2422main (int argc, char **argv)
2423{
2424  int ok = 0;
2425  ${ac_c_conftest_c89_main}
2426  ${ac_c_conftest_c99_main}
2427  return ok;
2428}
2429"
2430
2431# Test code for whether the C compiler supports C89 (complete).
2432ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2433
2434int
2435main (int argc, char **argv)
2436{
2437  int ok = 0;
2438  ${ac_c_conftest_c89_main}
2439  return ok;
2440}
2441"
2442
2443as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2444as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2445as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2446as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2447as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2448as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2449as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2450as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2451as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2452
2453# Auxiliary files required by this configure script.
2454ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2455
2456# Locations in which to look for auxiliary files.
2457ac_aux_dir_candidates="${srcdir}/."
2458
2459# Search for a directory containing all of the required auxiliary files,
2460# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2461# If we don't find one directory that contains all the files we need,
2462# we report the set of missing files from the *first* directory in
2463# $ac_aux_dir_candidates and give up.
2464ac_missing_aux_files=""
2465ac_first_candidate=:
2466printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468as_found=false
2469for as_dir in $ac_aux_dir_candidates
2470do
2471  IFS=$as_save_IFS
2472  case $as_dir in #(((
2473    '') as_dir=./ ;;
2474    */) ;;
2475    *) as_dir=$as_dir/ ;;
2476  esac
2477  as_found=:
2478
2479  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2480  ac_aux_dir_found=yes
2481  ac_install_sh=
2482  for ac_aux in $ac_aux_files
2483  do
2484    # As a special case, if "install-sh" is required, that requirement
2485    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2486    # and $ac_install_sh is set appropriately for whichever one is found.
2487    if test x"$ac_aux" = x"install-sh"
2488    then
2489      if test -f "${as_dir}install-sh"; then
2490        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2491        ac_install_sh="${as_dir}install-sh -c"
2492      elif test -f "${as_dir}install.sh"; then
2493        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2494        ac_install_sh="${as_dir}install.sh -c"
2495      elif test -f "${as_dir}shtool"; then
2496        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2497        ac_install_sh="${as_dir}shtool install -c"
2498      else
2499        ac_aux_dir_found=no
2500        if $ac_first_candidate; then
2501          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2502        else
2503          break
2504        fi
2505      fi
2506    else
2507      if test -f "${as_dir}${ac_aux}"; then
2508        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2509      else
2510        ac_aux_dir_found=no
2511        if $ac_first_candidate; then
2512          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2513        else
2514          break
2515        fi
2516      fi
2517    fi
2518  done
2519  if test "$ac_aux_dir_found" = yes; then
2520    ac_aux_dir="$as_dir"
2521    break
2522  fi
2523  ac_first_candidate=false
2524
2525  as_found=false
2526done
2527IFS=$as_save_IFS
2528if $as_found
2529then :
2530
2531else $as_nop
2532  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2533fi
2534
2535
2536# These three variables are undocumented and unsupported,
2537# and are intended to be withdrawn in a future Autoconf release.
2538# They can cause serious problems if a builder's source tree is in a directory
2539# whose full name contains unusual characters.
2540if test -f "${ac_aux_dir}config.guess"; then
2541  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2542fi
2543if test -f "${ac_aux_dir}config.sub"; then
2544  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2545fi
2546if test -f "$ac_aux_dir/configure"; then
2547  ac_configure="$SHELL ${ac_aux_dir}configure"
2548fi
2549
2550# Check that the precious variables saved in the cache have kept the same
2551# value.
2552ac_cache_corrupted=false
2553for ac_var in $ac_precious_vars; do
2554  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2555  eval ac_new_set=\$ac_env_${ac_var}_set
2556  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2557  eval ac_new_val=\$ac_env_${ac_var}_value
2558  case $ac_old_set,$ac_new_set in
2559    set,)
2560      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2561printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2562      ac_cache_corrupted=: ;;
2563    ,set)
2564      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2565printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2566      ac_cache_corrupted=: ;;
2567    ,);;
2568    *)
2569      if test "x$ac_old_val" != "x$ac_new_val"; then
2570	# differences in whitespace do not lead to failure.
2571	ac_old_val_w=`echo x $ac_old_val`
2572	ac_new_val_w=`echo x $ac_new_val`
2573	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2574	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2575printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2576	  ac_cache_corrupted=:
2577	else
2578	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2579printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2580	  eval $ac_var=\$ac_old_val
2581	fi
2582	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2583printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2584	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2585printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2586      fi;;
2587  esac
2588  # Pass precious variables to config.status.
2589  if test "$ac_new_set" = set; then
2590    case $ac_new_val in
2591    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2592    *) ac_arg=$ac_var=$ac_new_val ;;
2593    esac
2594    case " $ac_configure_args " in
2595      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2596      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2597    esac
2598  fi
2599done
2600if $ac_cache_corrupted; then
2601  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2602printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2603  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2604printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2605  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2606	    and start over" "$LINENO" 5
2607fi
2608## -------------------- ##
2609## Main body of script. ##
2610## -------------------- ##
2611
2612ac_ext=c
2613ac_cpp='$CPP $CPPFLAGS'
2614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2616ac_compiler_gnu=$ac_cv_c_compiler_gnu
2617
2618
2619
2620ac_config_headers="$ac_config_headers config.h"
2621
2622
2623
2624# Initialize Automake
2625am__api_version='1.16'
2626
2627
2628
2629  # Find a good install program.  We prefer a C program (faster),
2630# so one script is as good as another.  But avoid the broken or
2631# incompatible versions:
2632# SysV /etc/install, /usr/sbin/install
2633# SunOS /usr/etc/install
2634# IRIX /sbin/install
2635# AIX /bin/install
2636# AmigaOS /C/install, which installs bootblocks on floppy discs
2637# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2638# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2639# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2640# OS/2's system install, which has a completely different semantic
2641# ./install, which can be erroneously created by make from ./install.sh.
2642# Reject install programs that cannot install multiple files.
2643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2644printf %s "checking for a BSD-compatible install... " >&6; }
2645if test -z "$INSTALL"; then
2646if test ${ac_cv_path_install+y}
2647then :
2648  printf %s "(cached) " >&6
2649else $as_nop
2650  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651for as_dir in $PATH
2652do
2653  IFS=$as_save_IFS
2654  case $as_dir in #(((
2655    '') as_dir=./ ;;
2656    */) ;;
2657    *) as_dir=$as_dir/ ;;
2658  esac
2659    # Account for fact that we put trailing slashes in our PATH walk.
2660case $as_dir in #((
2661  ./ | /[cC]/* | \
2662  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2663  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2664  /usr/ucb/* ) ;;
2665  *)
2666    # OSF1 and SCO ODT 3.0 have their own names for install.
2667    # Don't use installbsd from OSF since it installs stuff as root
2668    # by default.
2669    for ac_prog in ginstall scoinst install; do
2670      for ac_exec_ext in '' $ac_executable_extensions; do
2671	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2672	  if test $ac_prog = install &&
2673	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2674	    # AIX install.  It has an incompatible calling convention.
2675	    :
2676	  elif test $ac_prog = install &&
2677	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2678	    # program-specific install script used by HP pwplus--don't use.
2679	    :
2680	  else
2681	    rm -rf conftest.one conftest.two conftest.dir
2682	    echo one > conftest.one
2683	    echo two > conftest.two
2684	    mkdir conftest.dir
2685	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2686	      test -s conftest.one && test -s conftest.two &&
2687	      test -s conftest.dir/conftest.one &&
2688	      test -s conftest.dir/conftest.two
2689	    then
2690	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2691	      break 3
2692	    fi
2693	  fi
2694	fi
2695      done
2696    done
2697    ;;
2698esac
2699
2700  done
2701IFS=$as_save_IFS
2702
2703rm -rf conftest.one conftest.two conftest.dir
2704
2705fi
2706  if test ${ac_cv_path_install+y}; then
2707    INSTALL=$ac_cv_path_install
2708  else
2709    # As a last resort, use the slow shell script.  Don't cache a
2710    # value for INSTALL within a source directory, because that will
2711    # break other packages using the cache if that directory is
2712    # removed, or if the value is a relative name.
2713    INSTALL=$ac_install_sh
2714  fi
2715fi
2716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2717printf "%s\n" "$INSTALL" >&6; }
2718
2719# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2720# It thinks the first close brace ends the variable substitution.
2721test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2722
2723test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2724
2725test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2726
2727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2728printf %s "checking whether build environment is sane... " >&6; }
2729# Reject unsafe characters in $srcdir or the absolute working directory
2730# name.  Accept space and tab only in the latter.
2731am_lf='
2732'
2733case `pwd` in
2734  *[\\\"\#\$\&\'\`$am_lf]*)
2735    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2736esac
2737case $srcdir in
2738  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2739    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2740esac
2741
2742# Do 'set' in a subshell so we don't clobber the current shell's
2743# arguments.  Must try -L first in case configure is actually a
2744# symlink; some systems play weird games with the mod time of symlinks
2745# (eg FreeBSD returns the mod time of the symlink's containing
2746# directory).
2747if (
2748   am_has_slept=no
2749   for am_try in 1 2; do
2750     echo "timestamp, slept: $am_has_slept" > conftest.file
2751     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2752     if test "$*" = "X"; then
2753	# -L didn't work.
2754	set X `ls -t "$srcdir/configure" conftest.file`
2755     fi
2756     if test "$*" != "X $srcdir/configure conftest.file" \
2757	&& test "$*" != "X conftest.file $srcdir/configure"; then
2758
2759	# If neither matched, then we have a broken ls.  This can happen
2760	# if, for instance, CONFIG_SHELL is bash and it inherits a
2761	# broken ls alias from the environment.  This has actually
2762	# happened.  Such a system could not be considered "sane".
2763	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2764  alias in your environment" "$LINENO" 5
2765     fi
2766     if test "$2" = conftest.file || test $am_try -eq 2; then
2767       break
2768     fi
2769     # Just in case.
2770     sleep 1
2771     am_has_slept=yes
2772   done
2773   test "$2" = conftest.file
2774   )
2775then
2776   # Ok.
2777   :
2778else
2779   as_fn_error $? "newly created file is older than distributed files!
2780Check your system clock" "$LINENO" 5
2781fi
2782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2783printf "%s\n" "yes" >&6; }
2784# If we didn't sleep, we still need to ensure time stamps of config.status and
2785# generated files are strictly newer.
2786am_sleep_pid=
2787if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2788  ( sleep 1 ) &
2789  am_sleep_pid=$!
2790fi
2791
2792rm -f conftest.file
2793
2794test "$program_prefix" != NONE &&
2795  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2796# Use a double $ so make ignores it.
2797test "$program_suffix" != NONE &&
2798  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2799# Double any \ or $.
2800# By default was `s,x,x', remove it if useless.
2801ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2802program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2803
2804
2805# Expand $ac_aux_dir to an absolute path.
2806am_aux_dir=`cd "$ac_aux_dir" && pwd`
2807
2808
2809  if test x"${MISSING+set}" != xset; then
2810  MISSING="\${SHELL} '$am_aux_dir/missing'"
2811fi
2812# Use eval to expand $SHELL
2813if eval "$MISSING --is-lightweight"; then
2814  am_missing_run="$MISSING "
2815else
2816  am_missing_run=
2817  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2818printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2819fi
2820
2821if test x"${install_sh+set}" != xset; then
2822  case $am_aux_dir in
2823  *\ * | *\	*)
2824    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2825  *)
2826    install_sh="\${SHELL} $am_aux_dir/install-sh"
2827  esac
2828fi
2829
2830# Installed binaries are usually stripped using 'strip' when the user
2831# run "make install-strip".  However 'strip' might not be the right
2832# tool to use in cross-compilation environments, therefore Automake
2833# will honor the 'STRIP' environment variable to overrule this program.
2834if test "$cross_compiling" != no; then
2835  if test -n "$ac_tool_prefix"; then
2836  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2837set dummy ${ac_tool_prefix}strip; ac_word=$2
2838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839printf %s "checking for $ac_word... " >&6; }
2840if test ${ac_cv_prog_STRIP+y}
2841then :
2842  printf %s "(cached) " >&6
2843else $as_nop
2844  if test -n "$STRIP"; then
2845  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2846else
2847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848for as_dir in $PATH
2849do
2850  IFS=$as_save_IFS
2851  case $as_dir in #(((
2852    '') as_dir=./ ;;
2853    */) ;;
2854    *) as_dir=$as_dir/ ;;
2855  esac
2856    for ac_exec_ext in '' $ac_executable_extensions; do
2857  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2858    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2859    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2860    break 2
2861  fi
2862done
2863  done
2864IFS=$as_save_IFS
2865
2866fi
2867fi
2868STRIP=$ac_cv_prog_STRIP
2869if test -n "$STRIP"; then
2870  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2871printf "%s\n" "$STRIP" >&6; }
2872else
2873  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874printf "%s\n" "no" >&6; }
2875fi
2876
2877
2878fi
2879if test -z "$ac_cv_prog_STRIP"; then
2880  ac_ct_STRIP=$STRIP
2881  # Extract the first word of "strip", so it can be a program name with args.
2882set dummy strip; ac_word=$2
2883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884printf %s "checking for $ac_word... " >&6; }
2885if test ${ac_cv_prog_ac_ct_STRIP+y}
2886then :
2887  printf %s "(cached) " >&6
2888else $as_nop
2889  if test -n "$ac_ct_STRIP"; then
2890  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2891else
2892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893for as_dir in $PATH
2894do
2895  IFS=$as_save_IFS
2896  case $as_dir in #(((
2897    '') as_dir=./ ;;
2898    */) ;;
2899    *) as_dir=$as_dir/ ;;
2900  esac
2901    for ac_exec_ext in '' $ac_executable_extensions; do
2902  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2903    ac_cv_prog_ac_ct_STRIP="strip"
2904    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2905    break 2
2906  fi
2907done
2908  done
2909IFS=$as_save_IFS
2910
2911fi
2912fi
2913ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2914if test -n "$ac_ct_STRIP"; then
2915  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2916printf "%s\n" "$ac_ct_STRIP" >&6; }
2917else
2918  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919printf "%s\n" "no" >&6; }
2920fi
2921
2922  if test "x$ac_ct_STRIP" = x; then
2923    STRIP=":"
2924  else
2925    case $cross_compiling:$ac_tool_warned in
2926yes:)
2927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2928printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2929ac_tool_warned=yes ;;
2930esac
2931    STRIP=$ac_ct_STRIP
2932  fi
2933else
2934  STRIP="$ac_cv_prog_STRIP"
2935fi
2936
2937fi
2938INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2939
2940
2941  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2942printf %s "checking for a race-free mkdir -p... " >&6; }
2943if test -z "$MKDIR_P"; then
2944  if test ${ac_cv_path_mkdir+y}
2945then :
2946  printf %s "(cached) " >&6
2947else $as_nop
2948  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2950do
2951  IFS=$as_save_IFS
2952  case $as_dir in #(((
2953    '') as_dir=./ ;;
2954    */) ;;
2955    *) as_dir=$as_dir/ ;;
2956  esac
2957    for ac_prog in mkdir gmkdir; do
2958	 for ac_exec_ext in '' $ac_executable_extensions; do
2959	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2960	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2961	     'mkdir ('*'coreutils) '* | \
2962	     'BusyBox '* | \
2963	     'mkdir (fileutils) '4.1*)
2964	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2965	       break 3;;
2966	   esac
2967	 done
2968       done
2969  done
2970IFS=$as_save_IFS
2971
2972fi
2973
2974  test -d ./--version && rmdir ./--version
2975  if test ${ac_cv_path_mkdir+y}; then
2976    MKDIR_P="$ac_cv_path_mkdir -p"
2977  else
2978    # As a last resort, use the slow shell script.  Don't cache a
2979    # value for MKDIR_P within a source directory, because that will
2980    # break other packages using the cache if that directory is
2981    # removed, or if the value is a relative name.
2982    MKDIR_P="$ac_install_sh -d"
2983  fi
2984fi
2985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2986printf "%s\n" "$MKDIR_P" >&6; }
2987
2988for ac_prog in gawk mawk nawk awk
2989do
2990  # Extract the first word of "$ac_prog", so it can be a program name with args.
2991set dummy $ac_prog; ac_word=$2
2992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993printf %s "checking for $ac_word... " >&6; }
2994if test ${ac_cv_prog_AWK+y}
2995then :
2996  printf %s "(cached) " >&6
2997else $as_nop
2998  if test -n "$AWK"; then
2999  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3000else
3001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002for as_dir in $PATH
3003do
3004  IFS=$as_save_IFS
3005  case $as_dir in #(((
3006    '') as_dir=./ ;;
3007    */) ;;
3008    *) as_dir=$as_dir/ ;;
3009  esac
3010    for ac_exec_ext in '' $ac_executable_extensions; do
3011  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3012    ac_cv_prog_AWK="$ac_prog"
3013    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3014    break 2
3015  fi
3016done
3017  done
3018IFS=$as_save_IFS
3019
3020fi
3021fi
3022AWK=$ac_cv_prog_AWK
3023if test -n "$AWK"; then
3024  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3025printf "%s\n" "$AWK" >&6; }
3026else
3027  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028printf "%s\n" "no" >&6; }
3029fi
3030
3031
3032  test -n "$AWK" && break
3033done
3034
3035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3036printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3037set x ${MAKE-make}
3038ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3039if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3040then :
3041  printf %s "(cached) " >&6
3042else $as_nop
3043  cat >conftest.make <<\_ACEOF
3044SHELL = /bin/sh
3045all:
3046	@echo '@@@%%%=$(MAKE)=@@@%%%'
3047_ACEOF
3048# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3049case `${MAKE-make} -f conftest.make 2>/dev/null` in
3050  *@@@%%%=?*=@@@%%%*)
3051    eval ac_cv_prog_make_${ac_make}_set=yes;;
3052  *)
3053    eval ac_cv_prog_make_${ac_make}_set=no;;
3054esac
3055rm -f conftest.make
3056fi
3057if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3058  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3059printf "%s\n" "yes" >&6; }
3060  SET_MAKE=
3061else
3062  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063printf "%s\n" "no" >&6; }
3064  SET_MAKE="MAKE=${MAKE-make}"
3065fi
3066
3067rm -rf .tst 2>/dev/null
3068mkdir .tst 2>/dev/null
3069if test -d .tst; then
3070  am__leading_dot=.
3071else
3072  am__leading_dot=_
3073fi
3074rmdir .tst 2>/dev/null
3075
3076# Check whether --enable-silent-rules was given.
3077if test ${enable_silent_rules+y}
3078then :
3079  enableval=$enable_silent_rules;
3080fi
3081
3082case $enable_silent_rules in # (((
3083  yes) AM_DEFAULT_VERBOSITY=0;;
3084   no) AM_DEFAULT_VERBOSITY=1;;
3085    *) AM_DEFAULT_VERBOSITY=1;;
3086esac
3087am_make=${MAKE-make}
3088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3089printf %s "checking whether $am_make supports nested variables... " >&6; }
3090if test ${am_cv_make_support_nested_variables+y}
3091then :
3092  printf %s "(cached) " >&6
3093else $as_nop
3094  if printf "%s\n" 'TRUE=$(BAR$(V))
3095BAR0=false
3096BAR1=true
3097V=1
3098am__doit:
3099	@$(TRUE)
3100.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3101  am_cv_make_support_nested_variables=yes
3102else
3103  am_cv_make_support_nested_variables=no
3104fi
3105fi
3106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3107printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3108if test $am_cv_make_support_nested_variables = yes; then
3109    AM_V='$(V)'
3110  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3111else
3112  AM_V=$AM_DEFAULT_VERBOSITY
3113  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3114fi
3115AM_BACKSLASH='\'
3116
3117if test "`cd $srcdir && pwd`" != "`pwd`"; then
3118  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3119  # is not polluted with repeated "-I."
3120  am__isrc=' -I$(srcdir)'
3121  # test to see if srcdir already configured
3122  if test -f $srcdir/config.status; then
3123    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3124  fi
3125fi
3126
3127# test whether we have cygpath
3128if test -z "$CYGPATH_W"; then
3129  if (cygpath --version) >/dev/null 2>/dev/null; then
3130    CYGPATH_W='cygpath -w'
3131  else
3132    CYGPATH_W=echo
3133  fi
3134fi
3135
3136
3137# Define the identity of the package.
3138 PACKAGE='xf86-input-keyboard'
3139 VERSION='2.0.0'
3140
3141
3142printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3143
3144
3145printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3146
3147# Some tools Automake needs.
3148
3149ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3150
3151
3152AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3153
3154
3155AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3156
3157
3158AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3159
3160
3161MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3162
3163# For better backward compatibility.  To be removed once Automake 1.9.x
3164# dies out for good.  For more background, see:
3165# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3166# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3167mkdir_p='$(MKDIR_P)'
3168
3169# We need awk for the "check" target (and possibly the TAP driver).  The
3170# system "awk" is bad on some platforms.
3171# Always define AMTAR for backward compatibility.  Yes, it's still used
3172# in the wild :-(  We should find a proper way to deprecate it ...
3173AMTAR='$${TAR-tar}'
3174
3175
3176# We'll loop over all known methods to create a tar archive until one works.
3177_am_tools='gnutar  pax cpio none'
3178
3179am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3180
3181
3182
3183
3184
3185# Variables for tags utilities; see am/tags.am
3186if test -z "$CTAGS"; then
3187  CTAGS=ctags
3188fi
3189
3190if test -z "$ETAGS"; then
3191  ETAGS=etags
3192fi
3193
3194if test -z "$CSCOPE"; then
3195  CSCOPE=cscope
3196fi
3197
3198
3199
3200# POSIX will say in a future version that running "rm -f" with no argument
3201# is OK; and we want to be able to make that assumption in our Makefile
3202# recipes.  So use an aggressive probe to check that the usage we want is
3203# actually supported "in the wild" to an acceptable degree.
3204# See automake bug#10828.
3205# To make any issue more visible, cause the running configure to be aborted
3206# by default if the 'rm' program in use doesn't match our expectations; the
3207# user can still override this though.
3208if rm -f && rm -fr && rm -rf; then : OK; else
3209  cat >&2 <<'END'
3210Oops!
3211
3212Your 'rm' program seems unable to run without file operands specified
3213on the command line, even when the '-f' option is present.  This is contrary
3214to the behaviour of most rm programs out there, and not conforming with
3215the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3216
3217Please tell bug-automake@gnu.org about your system, including the value
3218of your $PATH and any error possibly output before this message.  This
3219can help us improve future automake versions.
3220
3221END
3222  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3223    echo 'Configuration will proceed anyway, since you have set the' >&2
3224    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3225    echo >&2
3226  else
3227    cat >&2 <<'END'
3228Aborting the configuration process, to ensure you take notice of the issue.
3229
3230You can download and install GNU coreutils to get an 'rm' implementation
3231that behaves properly: <https://www.gnu.org/software/coreutils/>.
3232
3233If you want to complete the configuration process using your problematic
3234'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3235to "yes", and re-run configure.
3236
3237END
3238    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3239  fi
3240fi
3241
3242
3243# Initialize libtool
3244# Check whether --enable-static was given.
3245if test ${enable_static+y}
3246then :
3247  enableval=$enable_static; p=${PACKAGE-default}
3248    case $enableval in
3249    yes) enable_static=yes ;;
3250    no) enable_static=no ;;
3251    *)
3252     enable_static=no
3253      # Look at the argument we got.  We use all the common list separators.
3254      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
3255      for pkg in $enableval; do
3256	IFS=$lt_save_ifs
3257	if test "X$pkg" = "X$p"; then
3258	  enable_static=yes
3259	fi
3260      done
3261      IFS=$lt_save_ifs
3262      ;;
3263    esac
3264else $as_nop
3265  enable_static=no
3266fi
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276case `pwd` in
3277  *\ * | *\	*)
3278    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3279printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3280esac
3281
3282
3283
3284macro_version='2.4.7'
3285macro_revision='2.4.7'
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300ltmain=$ac_aux_dir/ltmain.sh
3301
3302
3303
3304  # Make sure we can run config.sub.
3305$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3306  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3307
3308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3309printf %s "checking build system type... " >&6; }
3310if test ${ac_cv_build+y}
3311then :
3312  printf %s "(cached) " >&6
3313else $as_nop
3314  ac_build_alias=$build_alias
3315test "x$ac_build_alias" = x &&
3316  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3317test "x$ac_build_alias" = x &&
3318  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3319ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3320  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3321
3322fi
3323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3324printf "%s\n" "$ac_cv_build" >&6; }
3325case $ac_cv_build in
3326*-*-*) ;;
3327*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3328esac
3329build=$ac_cv_build
3330ac_save_IFS=$IFS; IFS='-'
3331set x $ac_cv_build
3332shift
3333build_cpu=$1
3334build_vendor=$2
3335shift; shift
3336# Remember, the first character of IFS is used to create $*,
3337# except with old shells:
3338build_os=$*
3339IFS=$ac_save_IFS
3340case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3341
3342
3343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3344printf %s "checking host system type... " >&6; }
3345if test ${ac_cv_host+y}
3346then :
3347  printf %s "(cached) " >&6
3348else $as_nop
3349  if test "x$host_alias" = x; then
3350  ac_cv_host=$ac_cv_build
3351else
3352  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3353    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3354fi
3355
3356fi
3357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3358printf "%s\n" "$ac_cv_host" >&6; }
3359case $ac_cv_host in
3360*-*-*) ;;
3361*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3362esac
3363host=$ac_cv_host
3364ac_save_IFS=$IFS; IFS='-'
3365set x $ac_cv_host
3366shift
3367host_cpu=$1
3368host_vendor=$2
3369shift; shift
3370# Remember, the first character of IFS is used to create $*,
3371# except with old shells:
3372host_os=$*
3373IFS=$ac_save_IFS
3374case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3375
3376
3377# Backslashify metacharacters that are still active within
3378# double-quoted strings.
3379sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3380
3381# Same as above, but do not quote variable references.
3382double_quote_subst='s/\(["`\\]\)/\\\1/g'
3383
3384# Sed substitution to delay expansion of an escaped shell variable in a
3385# double_quote_subst'ed string.
3386delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3387
3388# Sed substitution to delay expansion of an escaped single quote.
3389delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3390
3391# Sed substitution to avoid accidental globbing in evaled expressions
3392no_glob_subst='s/\*/\\\*/g'
3393
3394ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3395ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3396ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3397
3398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3399printf %s "checking how to print strings... " >&6; }
3400# Test print first, because it will be a builtin if present.
3401if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3402   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3403  ECHO='print -r --'
3404elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3405  ECHO='printf %s\n'
3406else
3407  # Use this function as a fallback that always works.
3408  func_fallback_echo ()
3409  {
3410    eval 'cat <<_LTECHO_EOF
3411$1
3412_LTECHO_EOF'
3413  }
3414  ECHO='func_fallback_echo'
3415fi
3416
3417# func_echo_all arg...
3418# Invoke $ECHO with all args, space-separated.
3419func_echo_all ()
3420{
3421    $ECHO ""
3422}
3423
3424case $ECHO in
3425  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3426printf "%s\n" "printf" >&6; } ;;
3427  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3428printf "%s\n" "print -r" >&6; } ;;
3429  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3430printf "%s\n" "cat" >&6; } ;;
3431esac
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455DEPDIR="${am__leading_dot}deps"
3456
3457ac_config_commands="$ac_config_commands depfiles"
3458
3459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3460printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3461cat > confinc.mk << 'END'
3462am__doit:
3463	@echo this is the am__doit target >confinc.out
3464.PHONY: am__doit
3465END
3466am__include="#"
3467am__quote=
3468# BSD make does it like this.
3469echo '.include "confinc.mk" # ignored' > confmf.BSD
3470# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3471echo 'include confinc.mk # ignored' > confmf.GNU
3472_am_result=no
3473for s in GNU BSD; do
3474  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3475   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3476   ac_status=$?
3477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478   (exit $ac_status); }
3479  case $?:`cat confinc.out 2>/dev/null` in #(
3480  '0:this is the am__doit target') :
3481    case $s in #(
3482  BSD) :
3483    am__include='.include' am__quote='"' ;; #(
3484  *) :
3485    am__include='include' am__quote='' ;;
3486esac ;; #(
3487  *) :
3488     ;;
3489esac
3490  if test "$am__include" != "#"; then
3491    _am_result="yes ($s style)"
3492    break
3493  fi
3494done
3495rm -f confinc.* confmf.*
3496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3497printf "%s\n" "${_am_result}" >&6; }
3498
3499# Check whether --enable-dependency-tracking was given.
3500if test ${enable_dependency_tracking+y}
3501then :
3502  enableval=$enable_dependency_tracking;
3503fi
3504
3505if test "x$enable_dependency_tracking" != xno; then
3506  am_depcomp="$ac_aux_dir/depcomp"
3507  AMDEPBACKSLASH='\'
3508  am__nodep='_no'
3509fi
3510 if test "x$enable_dependency_tracking" != xno; then
3511  AMDEP_TRUE=
3512  AMDEP_FALSE='#'
3513else
3514  AMDEP_TRUE='#'
3515  AMDEP_FALSE=
3516fi
3517
3518
3519ac_ext=c
3520ac_cpp='$CPP $CPPFLAGS'
3521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3523ac_compiler_gnu=$ac_cv_c_compiler_gnu
3524if test -n "$ac_tool_prefix"; then
3525  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3526set dummy ${ac_tool_prefix}gcc; ac_word=$2
3527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3528printf %s "checking for $ac_word... " >&6; }
3529if test ${ac_cv_prog_CC+y}
3530then :
3531  printf %s "(cached) " >&6
3532else $as_nop
3533  if test -n "$CC"; then
3534  ac_cv_prog_CC="$CC" # Let the user override the test.
3535else
3536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537for as_dir in $PATH
3538do
3539  IFS=$as_save_IFS
3540  case $as_dir in #(((
3541    '') as_dir=./ ;;
3542    */) ;;
3543    *) as_dir=$as_dir/ ;;
3544  esac
3545    for ac_exec_ext in '' $ac_executable_extensions; do
3546  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3547    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3548    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3549    break 2
3550  fi
3551done
3552  done
3553IFS=$as_save_IFS
3554
3555fi
3556fi
3557CC=$ac_cv_prog_CC
3558if test -n "$CC"; then
3559  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3560printf "%s\n" "$CC" >&6; }
3561else
3562  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563printf "%s\n" "no" >&6; }
3564fi
3565
3566
3567fi
3568if test -z "$ac_cv_prog_CC"; then
3569  ac_ct_CC=$CC
3570  # Extract the first word of "gcc", so it can be a program name with args.
3571set dummy gcc; ac_word=$2
3572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3573printf %s "checking for $ac_word... " >&6; }
3574if test ${ac_cv_prog_ac_ct_CC+y}
3575then :
3576  printf %s "(cached) " >&6
3577else $as_nop
3578  if test -n "$ac_ct_CC"; then
3579  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3580else
3581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582for as_dir in $PATH
3583do
3584  IFS=$as_save_IFS
3585  case $as_dir in #(((
3586    '') as_dir=./ ;;
3587    */) ;;
3588    *) as_dir=$as_dir/ ;;
3589  esac
3590    for ac_exec_ext in '' $ac_executable_extensions; do
3591  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3592    ac_cv_prog_ac_ct_CC="gcc"
3593    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3594    break 2
3595  fi
3596done
3597  done
3598IFS=$as_save_IFS
3599
3600fi
3601fi
3602ac_ct_CC=$ac_cv_prog_ac_ct_CC
3603if test -n "$ac_ct_CC"; then
3604  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3605printf "%s\n" "$ac_ct_CC" >&6; }
3606else
3607  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608printf "%s\n" "no" >&6; }
3609fi
3610
3611  if test "x$ac_ct_CC" = x; then
3612    CC=""
3613  else
3614    case $cross_compiling:$ac_tool_warned in
3615yes:)
3616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3617printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3618ac_tool_warned=yes ;;
3619esac
3620    CC=$ac_ct_CC
3621  fi
3622else
3623  CC="$ac_cv_prog_CC"
3624fi
3625
3626if test -z "$CC"; then
3627          if test -n "$ac_tool_prefix"; then
3628    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3629set dummy ${ac_tool_prefix}cc; ac_word=$2
3630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631printf %s "checking for $ac_word... " >&6; }
3632if test ${ac_cv_prog_CC+y}
3633then :
3634  printf %s "(cached) " >&6
3635else $as_nop
3636  if test -n "$CC"; then
3637  ac_cv_prog_CC="$CC" # Let the user override the test.
3638else
3639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640for as_dir in $PATH
3641do
3642  IFS=$as_save_IFS
3643  case $as_dir in #(((
3644    '') as_dir=./ ;;
3645    */) ;;
3646    *) as_dir=$as_dir/ ;;
3647  esac
3648    for ac_exec_ext in '' $ac_executable_extensions; do
3649  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3650    ac_cv_prog_CC="${ac_tool_prefix}cc"
3651    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3652    break 2
3653  fi
3654done
3655  done
3656IFS=$as_save_IFS
3657
3658fi
3659fi
3660CC=$ac_cv_prog_CC
3661if test -n "$CC"; then
3662  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3663printf "%s\n" "$CC" >&6; }
3664else
3665  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666printf "%s\n" "no" >&6; }
3667fi
3668
3669
3670  fi
3671fi
3672if test -z "$CC"; then
3673  # Extract the first word of "cc", so it can be a program name with args.
3674set dummy cc; ac_word=$2
3675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3676printf %s "checking for $ac_word... " >&6; }
3677if test ${ac_cv_prog_CC+y}
3678then :
3679  printf %s "(cached) " >&6
3680else $as_nop
3681  if test -n "$CC"; then
3682  ac_cv_prog_CC="$CC" # Let the user override the test.
3683else
3684  ac_prog_rejected=no
3685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686for as_dir in $PATH
3687do
3688  IFS=$as_save_IFS
3689  case $as_dir in #(((
3690    '') as_dir=./ ;;
3691    */) ;;
3692    *) as_dir=$as_dir/ ;;
3693  esac
3694    for ac_exec_ext in '' $ac_executable_extensions; do
3695  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3696    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3697       ac_prog_rejected=yes
3698       continue
3699     fi
3700    ac_cv_prog_CC="cc"
3701    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3702    break 2
3703  fi
3704done
3705  done
3706IFS=$as_save_IFS
3707
3708if test $ac_prog_rejected = yes; then
3709  # We found a bogon in the path, so make sure we never use it.
3710  set dummy $ac_cv_prog_CC
3711  shift
3712  if test $# != 0; then
3713    # We chose a different compiler from the bogus one.
3714    # However, it has the same basename, so the bogon will be chosen
3715    # first if we set CC to just the basename; use the full file name.
3716    shift
3717    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3718  fi
3719fi
3720fi
3721fi
3722CC=$ac_cv_prog_CC
3723if test -n "$CC"; then
3724  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3725printf "%s\n" "$CC" >&6; }
3726else
3727  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728printf "%s\n" "no" >&6; }
3729fi
3730
3731
3732fi
3733if test -z "$CC"; then
3734  if test -n "$ac_tool_prefix"; then
3735  for ac_prog in cl.exe
3736  do
3737    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3738set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3740printf %s "checking for $ac_word... " >&6; }
3741if test ${ac_cv_prog_CC+y}
3742then :
3743  printf %s "(cached) " >&6
3744else $as_nop
3745  if test -n "$CC"; then
3746  ac_cv_prog_CC="$CC" # Let the user override the test.
3747else
3748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749for as_dir in $PATH
3750do
3751  IFS=$as_save_IFS
3752  case $as_dir in #(((
3753    '') as_dir=./ ;;
3754    */) ;;
3755    *) as_dir=$as_dir/ ;;
3756  esac
3757    for ac_exec_ext in '' $ac_executable_extensions; do
3758  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3759    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3760    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3761    break 2
3762  fi
3763done
3764  done
3765IFS=$as_save_IFS
3766
3767fi
3768fi
3769CC=$ac_cv_prog_CC
3770if test -n "$CC"; then
3771  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3772printf "%s\n" "$CC" >&6; }
3773else
3774  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775printf "%s\n" "no" >&6; }
3776fi
3777
3778
3779    test -n "$CC" && break
3780  done
3781fi
3782if test -z "$CC"; then
3783  ac_ct_CC=$CC
3784  for ac_prog in cl.exe
3785do
3786  # Extract the first word of "$ac_prog", so it can be a program name with args.
3787set dummy $ac_prog; ac_word=$2
3788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3789printf %s "checking for $ac_word... " >&6; }
3790if test ${ac_cv_prog_ac_ct_CC+y}
3791then :
3792  printf %s "(cached) " >&6
3793else $as_nop
3794  if test -n "$ac_ct_CC"; then
3795  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3796else
3797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798for as_dir in $PATH
3799do
3800  IFS=$as_save_IFS
3801  case $as_dir in #(((
3802    '') as_dir=./ ;;
3803    */) ;;
3804    *) as_dir=$as_dir/ ;;
3805  esac
3806    for ac_exec_ext in '' $ac_executable_extensions; do
3807  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3808    ac_cv_prog_ac_ct_CC="$ac_prog"
3809    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3810    break 2
3811  fi
3812done
3813  done
3814IFS=$as_save_IFS
3815
3816fi
3817fi
3818ac_ct_CC=$ac_cv_prog_ac_ct_CC
3819if test -n "$ac_ct_CC"; then
3820  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3821printf "%s\n" "$ac_ct_CC" >&6; }
3822else
3823  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3824printf "%s\n" "no" >&6; }
3825fi
3826
3827
3828  test -n "$ac_ct_CC" && break
3829done
3830
3831  if test "x$ac_ct_CC" = x; then
3832    CC=""
3833  else
3834    case $cross_compiling:$ac_tool_warned in
3835yes:)
3836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3837printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3838ac_tool_warned=yes ;;
3839esac
3840    CC=$ac_ct_CC
3841  fi
3842fi
3843
3844fi
3845if test -z "$CC"; then
3846  if test -n "$ac_tool_prefix"; then
3847  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3848set dummy ${ac_tool_prefix}clang; ac_word=$2
3849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3850printf %s "checking for $ac_word... " >&6; }
3851if test ${ac_cv_prog_CC+y}
3852then :
3853  printf %s "(cached) " >&6
3854else $as_nop
3855  if test -n "$CC"; then
3856  ac_cv_prog_CC="$CC" # Let the user override the test.
3857else
3858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859for as_dir in $PATH
3860do
3861  IFS=$as_save_IFS
3862  case $as_dir in #(((
3863    '') as_dir=./ ;;
3864    */) ;;
3865    *) as_dir=$as_dir/ ;;
3866  esac
3867    for ac_exec_ext in '' $ac_executable_extensions; do
3868  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3869    ac_cv_prog_CC="${ac_tool_prefix}clang"
3870    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3871    break 2
3872  fi
3873done
3874  done
3875IFS=$as_save_IFS
3876
3877fi
3878fi
3879CC=$ac_cv_prog_CC
3880if test -n "$CC"; then
3881  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3882printf "%s\n" "$CC" >&6; }
3883else
3884  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885printf "%s\n" "no" >&6; }
3886fi
3887
3888
3889fi
3890if test -z "$ac_cv_prog_CC"; then
3891  ac_ct_CC=$CC
3892  # Extract the first word of "clang", so it can be a program name with args.
3893set dummy clang; ac_word=$2
3894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895printf %s "checking for $ac_word... " >&6; }
3896if test ${ac_cv_prog_ac_ct_CC+y}
3897then :
3898  printf %s "(cached) " >&6
3899else $as_nop
3900  if test -n "$ac_ct_CC"; then
3901  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3902else
3903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904for as_dir in $PATH
3905do
3906  IFS=$as_save_IFS
3907  case $as_dir in #(((
3908    '') as_dir=./ ;;
3909    */) ;;
3910    *) as_dir=$as_dir/ ;;
3911  esac
3912    for ac_exec_ext in '' $ac_executable_extensions; do
3913  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3914    ac_cv_prog_ac_ct_CC="clang"
3915    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3916    break 2
3917  fi
3918done
3919  done
3920IFS=$as_save_IFS
3921
3922fi
3923fi
3924ac_ct_CC=$ac_cv_prog_ac_ct_CC
3925if test -n "$ac_ct_CC"; then
3926  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3927printf "%s\n" "$ac_ct_CC" >&6; }
3928else
3929  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930printf "%s\n" "no" >&6; }
3931fi
3932
3933  if test "x$ac_ct_CC" = x; then
3934    CC=""
3935  else
3936    case $cross_compiling:$ac_tool_warned in
3937yes:)
3938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3939printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3940ac_tool_warned=yes ;;
3941esac
3942    CC=$ac_ct_CC
3943  fi
3944else
3945  CC="$ac_cv_prog_CC"
3946fi
3947
3948fi
3949
3950
3951test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3952printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3953as_fn_error $? "no acceptable C compiler found in \$PATH
3954See \`config.log' for more details" "$LINENO" 5; }
3955
3956# Provide some information about the compiler.
3957printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3958set X $ac_compile
3959ac_compiler=$2
3960for ac_option in --version -v -V -qversion -version; do
3961  { { ac_try="$ac_compiler $ac_option >&5"
3962case "(($ac_try" in
3963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964  *) ac_try_echo=$ac_try;;
3965esac
3966eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3967printf "%s\n" "$ac_try_echo"; } >&5
3968  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3969  ac_status=$?
3970  if test -s conftest.err; then
3971    sed '10a\
3972... rest of stderr output deleted ...
3973         10q' conftest.err >conftest.er1
3974    cat conftest.er1 >&5
3975  fi
3976  rm -f conftest.er1 conftest.err
3977  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3978  test $ac_status = 0; }
3979done
3980
3981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982/* end confdefs.h.  */
3983
3984int
3985main (void)
3986{
3987
3988  ;
3989  return 0;
3990}
3991_ACEOF
3992ac_clean_files_save=$ac_clean_files
3993ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3994# Try to create an executable without -o first, disregard a.out.
3995# It will help us diagnose broken compilers, and finding out an intuition
3996# of exeext.
3997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3998printf %s "checking whether the C compiler works... " >&6; }
3999ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4000
4001# The possible output files:
4002ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4003
4004ac_rmfiles=
4005for ac_file in $ac_files
4006do
4007  case $ac_file in
4008    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4009    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4010  esac
4011done
4012rm -f $ac_rmfiles
4013
4014if { { ac_try="$ac_link_default"
4015case "(($ac_try" in
4016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017  *) ac_try_echo=$ac_try;;
4018esac
4019eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4020printf "%s\n" "$ac_try_echo"; } >&5
4021  (eval "$ac_link_default") 2>&5
4022  ac_status=$?
4023  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4024  test $ac_status = 0; }
4025then :
4026  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4027# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4028# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4029# so that the user can short-circuit this test for compilers unknown to
4030# Autoconf.
4031for ac_file in $ac_files ''
4032do
4033  test -f "$ac_file" || continue
4034  case $ac_file in
4035    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4036	;;
4037    [ab].out )
4038	# We found the default executable, but exeext='' is most
4039	# certainly right.
4040	break;;
4041    *.* )
4042	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4043	then :; else
4044	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4045	fi
4046	# We set ac_cv_exeext here because the later test for it is not
4047	# safe: cross compilers may not add the suffix if given an `-o'
4048	# argument, so we may need to know it at that point already.
4049	# Even if this section looks crufty: it has the advantage of
4050	# actually working.
4051	break;;
4052    * )
4053	break;;
4054  esac
4055done
4056test "$ac_cv_exeext" = no && ac_cv_exeext=
4057
4058else $as_nop
4059  ac_file=''
4060fi
4061if test -z "$ac_file"
4062then :
4063  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4064printf "%s\n" "no" >&6; }
4065printf "%s\n" "$as_me: failed program was:" >&5
4066sed 's/^/| /' conftest.$ac_ext >&5
4067
4068{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4069printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4070as_fn_error 77 "C compiler cannot create executables
4071See \`config.log' for more details" "$LINENO" 5; }
4072else $as_nop
4073  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4074printf "%s\n" "yes" >&6; }
4075fi
4076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4077printf %s "checking for C compiler default output file name... " >&6; }
4078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4079printf "%s\n" "$ac_file" >&6; }
4080ac_exeext=$ac_cv_exeext
4081
4082rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4083ac_clean_files=$ac_clean_files_save
4084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4085printf %s "checking for suffix of executables... " >&6; }
4086if { { ac_try="$ac_link"
4087case "(($ac_try" in
4088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089  *) ac_try_echo=$ac_try;;
4090esac
4091eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4092printf "%s\n" "$ac_try_echo"; } >&5
4093  (eval "$ac_link") 2>&5
4094  ac_status=$?
4095  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4096  test $ac_status = 0; }
4097then :
4098  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4099# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4100# work properly (i.e., refer to `conftest.exe'), while it won't with
4101# `rm'.
4102for ac_file in conftest.exe conftest conftest.*; do
4103  test -f "$ac_file" || continue
4104  case $ac_file in
4105    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4106    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4107	  break;;
4108    * ) break;;
4109  esac
4110done
4111else $as_nop
4112  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4113printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4114as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4115See \`config.log' for more details" "$LINENO" 5; }
4116fi
4117rm -f conftest conftest$ac_cv_exeext
4118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4119printf "%s\n" "$ac_cv_exeext" >&6; }
4120
4121rm -f conftest.$ac_ext
4122EXEEXT=$ac_cv_exeext
4123ac_exeext=$EXEEXT
4124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125/* end confdefs.h.  */
4126#include <stdio.h>
4127int
4128main (void)
4129{
4130FILE *f = fopen ("conftest.out", "w");
4131 return ferror (f) || fclose (f) != 0;
4132
4133  ;
4134  return 0;
4135}
4136_ACEOF
4137ac_clean_files="$ac_clean_files conftest.out"
4138# Check that the compiler produces executables we can run.  If not, either
4139# the compiler is broken, or we cross compile.
4140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4141printf %s "checking whether we are cross compiling... " >&6; }
4142if test "$cross_compiling" != yes; then
4143  { { ac_try="$ac_link"
4144case "(($ac_try" in
4145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4146  *) ac_try_echo=$ac_try;;
4147esac
4148eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4149printf "%s\n" "$ac_try_echo"; } >&5
4150  (eval "$ac_link") 2>&5
4151  ac_status=$?
4152  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4153  test $ac_status = 0; }
4154  if { ac_try='./conftest$ac_cv_exeext'
4155  { { case "(($ac_try" in
4156  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157  *) ac_try_echo=$ac_try;;
4158esac
4159eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4160printf "%s\n" "$ac_try_echo"; } >&5
4161  (eval "$ac_try") 2>&5
4162  ac_status=$?
4163  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4164  test $ac_status = 0; }; }; then
4165    cross_compiling=no
4166  else
4167    if test "$cross_compiling" = maybe; then
4168	cross_compiling=yes
4169    else
4170	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4171printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4172as_fn_error 77 "cannot run C compiled programs.
4173If you meant to cross compile, use \`--host'.
4174See \`config.log' for more details" "$LINENO" 5; }
4175    fi
4176  fi
4177fi
4178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4179printf "%s\n" "$cross_compiling" >&6; }
4180
4181rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4182ac_clean_files=$ac_clean_files_save
4183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4184printf %s "checking for suffix of object files... " >&6; }
4185if test ${ac_cv_objext+y}
4186then :
4187  printf %s "(cached) " >&6
4188else $as_nop
4189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190/* end confdefs.h.  */
4191
4192int
4193main (void)
4194{
4195
4196  ;
4197  return 0;
4198}
4199_ACEOF
4200rm -f conftest.o conftest.obj
4201if { { ac_try="$ac_compile"
4202case "(($ac_try" in
4203  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204  *) ac_try_echo=$ac_try;;
4205esac
4206eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4207printf "%s\n" "$ac_try_echo"; } >&5
4208  (eval "$ac_compile") 2>&5
4209  ac_status=$?
4210  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4211  test $ac_status = 0; }
4212then :
4213  for ac_file in conftest.o conftest.obj conftest.*; do
4214  test -f "$ac_file" || continue;
4215  case $ac_file in
4216    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4217    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4218       break;;
4219  esac
4220done
4221else $as_nop
4222  printf "%s\n" "$as_me: failed program was:" >&5
4223sed 's/^/| /' conftest.$ac_ext >&5
4224
4225{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4226printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4227as_fn_error $? "cannot compute suffix of object files: cannot compile
4228See \`config.log' for more details" "$LINENO" 5; }
4229fi
4230rm -f conftest.$ac_cv_objext conftest.$ac_ext
4231fi
4232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4233printf "%s\n" "$ac_cv_objext" >&6; }
4234OBJEXT=$ac_cv_objext
4235ac_objext=$OBJEXT
4236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4237printf %s "checking whether the compiler supports GNU C... " >&6; }
4238if test ${ac_cv_c_compiler_gnu+y}
4239then :
4240  printf %s "(cached) " >&6
4241else $as_nop
4242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243/* end confdefs.h.  */
4244
4245int
4246main (void)
4247{
4248#ifndef __GNUC__
4249       choke me
4250#endif
4251
4252  ;
4253  return 0;
4254}
4255_ACEOF
4256if ac_fn_c_try_compile "$LINENO"
4257then :
4258  ac_compiler_gnu=yes
4259else $as_nop
4260  ac_compiler_gnu=no
4261fi
4262rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4263ac_cv_c_compiler_gnu=$ac_compiler_gnu
4264
4265fi
4266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4267printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4268ac_compiler_gnu=$ac_cv_c_compiler_gnu
4269
4270if test $ac_compiler_gnu = yes; then
4271  GCC=yes
4272else
4273  GCC=
4274fi
4275ac_test_CFLAGS=${CFLAGS+y}
4276ac_save_CFLAGS=$CFLAGS
4277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4278printf %s "checking whether $CC accepts -g... " >&6; }
4279if test ${ac_cv_prog_cc_g+y}
4280then :
4281  printf %s "(cached) " >&6
4282else $as_nop
4283  ac_save_c_werror_flag=$ac_c_werror_flag
4284   ac_c_werror_flag=yes
4285   ac_cv_prog_cc_g=no
4286   CFLAGS="-g"
4287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288/* end confdefs.h.  */
4289
4290int
4291main (void)
4292{
4293
4294  ;
4295  return 0;
4296}
4297_ACEOF
4298if ac_fn_c_try_compile "$LINENO"
4299then :
4300  ac_cv_prog_cc_g=yes
4301else $as_nop
4302  CFLAGS=""
4303      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304/* end confdefs.h.  */
4305
4306int
4307main (void)
4308{
4309
4310  ;
4311  return 0;
4312}
4313_ACEOF
4314if ac_fn_c_try_compile "$LINENO"
4315then :
4316
4317else $as_nop
4318  ac_c_werror_flag=$ac_save_c_werror_flag
4319	 CFLAGS="-g"
4320	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321/* end confdefs.h.  */
4322
4323int
4324main (void)
4325{
4326
4327  ;
4328  return 0;
4329}
4330_ACEOF
4331if ac_fn_c_try_compile "$LINENO"
4332then :
4333  ac_cv_prog_cc_g=yes
4334fi
4335rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4336fi
4337rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4338fi
4339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4340   ac_c_werror_flag=$ac_save_c_werror_flag
4341fi
4342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4343printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4344if test $ac_test_CFLAGS; then
4345  CFLAGS=$ac_save_CFLAGS
4346elif test $ac_cv_prog_cc_g = yes; then
4347  if test "$GCC" = yes; then
4348    CFLAGS="-g -O2"
4349  else
4350    CFLAGS="-g"
4351  fi
4352else
4353  if test "$GCC" = yes; then
4354    CFLAGS="-O2"
4355  else
4356    CFLAGS=
4357  fi
4358fi
4359ac_prog_cc_stdc=no
4360if test x$ac_prog_cc_stdc = xno
4361then :
4362  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4363printf %s "checking for $CC option to enable C11 features... " >&6; }
4364if test ${ac_cv_prog_cc_c11+y}
4365then :
4366  printf %s "(cached) " >&6
4367else $as_nop
4368  ac_cv_prog_cc_c11=no
4369ac_save_CC=$CC
4370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371/* end confdefs.h.  */
4372$ac_c_conftest_c11_program
4373_ACEOF
4374for ac_arg in '' -std=gnu11
4375do
4376  CC="$ac_save_CC $ac_arg"
4377  if ac_fn_c_try_compile "$LINENO"
4378then :
4379  ac_cv_prog_cc_c11=$ac_arg
4380fi
4381rm -f core conftest.err conftest.$ac_objext conftest.beam
4382  test "x$ac_cv_prog_cc_c11" != "xno" && break
4383done
4384rm -f conftest.$ac_ext
4385CC=$ac_save_CC
4386fi
4387
4388if test "x$ac_cv_prog_cc_c11" = xno
4389then :
4390  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4391printf "%s\n" "unsupported" >&6; }
4392else $as_nop
4393  if test "x$ac_cv_prog_cc_c11" = x
4394then :
4395  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4396printf "%s\n" "none needed" >&6; }
4397else $as_nop
4398  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4399printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4400     CC="$CC $ac_cv_prog_cc_c11"
4401fi
4402  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4403  ac_prog_cc_stdc=c11
4404fi
4405fi
4406if test x$ac_prog_cc_stdc = xno
4407then :
4408  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4409printf %s "checking for $CC option to enable C99 features... " >&6; }
4410if test ${ac_cv_prog_cc_c99+y}
4411then :
4412  printf %s "(cached) " >&6
4413else $as_nop
4414  ac_cv_prog_cc_c99=no
4415ac_save_CC=$CC
4416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417/* end confdefs.h.  */
4418$ac_c_conftest_c99_program
4419_ACEOF
4420for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4421do
4422  CC="$ac_save_CC $ac_arg"
4423  if ac_fn_c_try_compile "$LINENO"
4424then :
4425  ac_cv_prog_cc_c99=$ac_arg
4426fi
4427rm -f core conftest.err conftest.$ac_objext conftest.beam
4428  test "x$ac_cv_prog_cc_c99" != "xno" && break
4429done
4430rm -f conftest.$ac_ext
4431CC=$ac_save_CC
4432fi
4433
4434if test "x$ac_cv_prog_cc_c99" = xno
4435then :
4436  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4437printf "%s\n" "unsupported" >&6; }
4438else $as_nop
4439  if test "x$ac_cv_prog_cc_c99" = x
4440then :
4441  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4442printf "%s\n" "none needed" >&6; }
4443else $as_nop
4444  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4445printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4446     CC="$CC $ac_cv_prog_cc_c99"
4447fi
4448  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4449  ac_prog_cc_stdc=c99
4450fi
4451fi
4452if test x$ac_prog_cc_stdc = xno
4453then :
4454  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4455printf %s "checking for $CC option to enable C89 features... " >&6; }
4456if test ${ac_cv_prog_cc_c89+y}
4457then :
4458  printf %s "(cached) " >&6
4459else $as_nop
4460  ac_cv_prog_cc_c89=no
4461ac_save_CC=$CC
4462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463/* end confdefs.h.  */
4464$ac_c_conftest_c89_program
4465_ACEOF
4466for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4467do
4468  CC="$ac_save_CC $ac_arg"
4469  if ac_fn_c_try_compile "$LINENO"
4470then :
4471  ac_cv_prog_cc_c89=$ac_arg
4472fi
4473rm -f core conftest.err conftest.$ac_objext conftest.beam
4474  test "x$ac_cv_prog_cc_c89" != "xno" && break
4475done
4476rm -f conftest.$ac_ext
4477CC=$ac_save_CC
4478fi
4479
4480if test "x$ac_cv_prog_cc_c89" = xno
4481then :
4482  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4483printf "%s\n" "unsupported" >&6; }
4484else $as_nop
4485  if test "x$ac_cv_prog_cc_c89" = x
4486then :
4487  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4488printf "%s\n" "none needed" >&6; }
4489else $as_nop
4490  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4491printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4492     CC="$CC $ac_cv_prog_cc_c89"
4493fi
4494  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4495  ac_prog_cc_stdc=c89
4496fi
4497fi
4498
4499ac_ext=c
4500ac_cpp='$CPP $CPPFLAGS'
4501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4503ac_compiler_gnu=$ac_cv_c_compiler_gnu
4504
4505
4506  ac_ext=c
4507ac_cpp='$CPP $CPPFLAGS'
4508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4510ac_compiler_gnu=$ac_cv_c_compiler_gnu
4511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4512printf %s "checking whether $CC understands -c and -o together... " >&6; }
4513if test ${am_cv_prog_cc_c_o+y}
4514then :
4515  printf %s "(cached) " >&6
4516else $as_nop
4517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518/* end confdefs.h.  */
4519
4520int
4521main (void)
4522{
4523
4524  ;
4525  return 0;
4526}
4527_ACEOF
4528  # Make sure it works both with $CC and with simple cc.
4529  # Following AC_PROG_CC_C_O, we do the test twice because some
4530  # compilers refuse to overwrite an existing .o file with -o,
4531  # though they will create one.
4532  am_cv_prog_cc_c_o=yes
4533  for am_i in 1 2; do
4534    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4535   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4536   ac_status=$?
4537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538   (exit $ac_status); } \
4539         && test -f conftest2.$ac_objext; then
4540      : OK
4541    else
4542      am_cv_prog_cc_c_o=no
4543      break
4544    fi
4545  done
4546  rm -f core conftest*
4547  unset am_i
4548fi
4549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4550printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4551if test "$am_cv_prog_cc_c_o" != yes; then
4552   # Losing compiler, so override with the script.
4553   # FIXME: It is wrong to rewrite CC.
4554   # But if we don't then we get into trouble of one sort or another.
4555   # A longer-term fix would be to have automake use am__CC in this case,
4556   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4557   CC="$am_aux_dir/compile $CC"
4558fi
4559ac_ext=c
4560ac_cpp='$CPP $CPPFLAGS'
4561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4563ac_compiler_gnu=$ac_cv_c_compiler_gnu
4564
4565
4566depcc="$CC"   am_compiler_list=
4567
4568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4569printf %s "checking dependency style of $depcc... " >&6; }
4570if test ${am_cv_CC_dependencies_compiler_type+y}
4571then :
4572  printf %s "(cached) " >&6
4573else $as_nop
4574  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4575  # We make a subdir and do the tests there.  Otherwise we can end up
4576  # making bogus files that we don't know about and never remove.  For
4577  # instance it was reported that on HP-UX the gcc test will end up
4578  # making a dummy file named 'D' -- because '-MD' means "put the output
4579  # in D".
4580  rm -rf conftest.dir
4581  mkdir conftest.dir
4582  # Copy depcomp to subdir because otherwise we won't find it if we're
4583  # using a relative directory.
4584  cp "$am_depcomp" conftest.dir
4585  cd conftest.dir
4586  # We will build objects and dependencies in a subdirectory because
4587  # it helps to detect inapplicable dependency modes.  For instance
4588  # both Tru64's cc and ICC support -MD to output dependencies as a
4589  # side effect of compilation, but ICC will put the dependencies in
4590  # the current directory while Tru64 will put them in the object
4591  # directory.
4592  mkdir sub
4593
4594  am_cv_CC_dependencies_compiler_type=none
4595  if test "$am_compiler_list" = ""; then
4596     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4597  fi
4598  am__universal=false
4599  case " $depcc " in #(
4600     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4601     esac
4602
4603  for depmode in $am_compiler_list; do
4604    # Setup a source with many dependencies, because some compilers
4605    # like to wrap large dependency lists on column 80 (with \), and
4606    # we should not choose a depcomp mode which is confused by this.
4607    #
4608    # We need to recreate these files for each test, as the compiler may
4609    # overwrite some of them when testing with obscure command lines.
4610    # This happens at least with the AIX C compiler.
4611    : > sub/conftest.c
4612    for i in 1 2 3 4 5 6; do
4613      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4614      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4615      # Solaris 10 /bin/sh.
4616      echo '/* dummy */' > sub/conftst$i.h
4617    done
4618    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4619
4620    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4621    # mode.  It turns out that the SunPro C++ compiler does not properly
4622    # handle '-M -o', and we need to detect this.  Also, some Intel
4623    # versions had trouble with output in subdirs.
4624    am__obj=sub/conftest.${OBJEXT-o}
4625    am__minus_obj="-o $am__obj"
4626    case $depmode in
4627    gcc)
4628      # This depmode causes a compiler race in universal mode.
4629      test "$am__universal" = false || continue
4630      ;;
4631    nosideeffect)
4632      # After this tag, mechanisms are not by side-effect, so they'll
4633      # only be used when explicitly requested.
4634      if test "x$enable_dependency_tracking" = xyes; then
4635	continue
4636      else
4637	break
4638      fi
4639      ;;
4640    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4641      # This compiler won't grok '-c -o', but also, the minuso test has
4642      # not run yet.  These depmodes are late enough in the game, and
4643      # so weak that their functioning should not be impacted.
4644      am__obj=conftest.${OBJEXT-o}
4645      am__minus_obj=
4646      ;;
4647    none) break ;;
4648    esac
4649    if depmode=$depmode \
4650       source=sub/conftest.c object=$am__obj \
4651       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4652       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4653         >/dev/null 2>conftest.err &&
4654       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4655       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4656       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4657       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4658      # icc doesn't choke on unknown options, it will just issue warnings
4659      # or remarks (even with -Werror).  So we grep stderr for any message
4660      # that says an option was ignored or not supported.
4661      # When given -MP, icc 7.0 and 7.1 complain thusly:
4662      #   icc: Command line warning: ignoring option '-M'; no argument required
4663      # The diagnosis changed in icc 8.0:
4664      #   icc: Command line remark: option '-MP' not supported
4665      if (grep 'ignoring option' conftest.err ||
4666          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4667        am_cv_CC_dependencies_compiler_type=$depmode
4668        break
4669      fi
4670    fi
4671  done
4672
4673  cd ..
4674  rm -rf conftest.dir
4675else
4676  am_cv_CC_dependencies_compiler_type=none
4677fi
4678
4679fi
4680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4681printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4682CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4683
4684 if
4685  test "x$enable_dependency_tracking" != xno \
4686  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4687  am__fastdepCC_TRUE=
4688  am__fastdepCC_FALSE='#'
4689else
4690  am__fastdepCC_TRUE='#'
4691  am__fastdepCC_FALSE=
4692fi
4693
4694
4695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4696printf %s "checking for a sed that does not truncate output... " >&6; }
4697if test ${ac_cv_path_SED+y}
4698then :
4699  printf %s "(cached) " >&6
4700else $as_nop
4701            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4702     for ac_i in 1 2 3 4 5 6 7; do
4703       ac_script="$ac_script$as_nl$ac_script"
4704     done
4705     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4706     { ac_script=; unset ac_script;}
4707     if test -z "$SED"; then
4708  ac_path_SED_found=false
4709  # Loop through the user's path and test for each of PROGNAME-LIST
4710  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711for as_dir in $PATH
4712do
4713  IFS=$as_save_IFS
4714  case $as_dir in #(((
4715    '') as_dir=./ ;;
4716    */) ;;
4717    *) as_dir=$as_dir/ ;;
4718  esac
4719    for ac_prog in sed gsed
4720   do
4721    for ac_exec_ext in '' $ac_executable_extensions; do
4722      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4723      as_fn_executable_p "$ac_path_SED" || continue
4724# Check for GNU ac_path_SED and select it if it is found.
4725  # Check for GNU $ac_path_SED
4726case `"$ac_path_SED" --version 2>&1` in
4727*GNU*)
4728  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4729*)
4730  ac_count=0
4731  printf %s 0123456789 >"conftest.in"
4732  while :
4733  do
4734    cat "conftest.in" "conftest.in" >"conftest.tmp"
4735    mv "conftest.tmp" "conftest.in"
4736    cp "conftest.in" "conftest.nl"
4737    printf "%s\n" '' >> "conftest.nl"
4738    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4739    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4740    as_fn_arith $ac_count + 1 && ac_count=$as_val
4741    if test $ac_count -gt ${ac_path_SED_max-0}; then
4742      # Best one so far, save it but keep looking for a better one
4743      ac_cv_path_SED="$ac_path_SED"
4744      ac_path_SED_max=$ac_count
4745    fi
4746    # 10*(2^10) chars as input seems more than enough
4747    test $ac_count -gt 10 && break
4748  done
4749  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4750esac
4751
4752      $ac_path_SED_found && break 3
4753    done
4754  done
4755  done
4756IFS=$as_save_IFS
4757  if test -z "$ac_cv_path_SED"; then
4758    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4759  fi
4760else
4761  ac_cv_path_SED=$SED
4762fi
4763
4764fi
4765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4766printf "%s\n" "$ac_cv_path_SED" >&6; }
4767 SED="$ac_cv_path_SED"
4768  rm -f conftest.sed
4769
4770test -z "$SED" && SED=sed
4771Xsed="$SED -e 1s/^X//"
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4784printf %s "checking for grep that handles long lines and -e... " >&6; }
4785if test ${ac_cv_path_GREP+y}
4786then :
4787  printf %s "(cached) " >&6
4788else $as_nop
4789  if test -z "$GREP"; then
4790  ac_path_GREP_found=false
4791  # Loop through the user's path and test for each of PROGNAME-LIST
4792  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4794do
4795  IFS=$as_save_IFS
4796  case $as_dir in #(((
4797    '') as_dir=./ ;;
4798    */) ;;
4799    *) as_dir=$as_dir/ ;;
4800  esac
4801    for ac_prog in grep ggrep
4802   do
4803    for ac_exec_ext in '' $ac_executable_extensions; do
4804      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4805      as_fn_executable_p "$ac_path_GREP" || continue
4806# Check for GNU ac_path_GREP and select it if it is found.
4807  # Check for GNU $ac_path_GREP
4808case `"$ac_path_GREP" --version 2>&1` in
4809*GNU*)
4810  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4811*)
4812  ac_count=0
4813  printf %s 0123456789 >"conftest.in"
4814  while :
4815  do
4816    cat "conftest.in" "conftest.in" >"conftest.tmp"
4817    mv "conftest.tmp" "conftest.in"
4818    cp "conftest.in" "conftest.nl"
4819    printf "%s\n" 'GREP' >> "conftest.nl"
4820    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4821    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4822    as_fn_arith $ac_count + 1 && ac_count=$as_val
4823    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4824      # Best one so far, save it but keep looking for a better one
4825      ac_cv_path_GREP="$ac_path_GREP"
4826      ac_path_GREP_max=$ac_count
4827    fi
4828    # 10*(2^10) chars as input seems more than enough
4829    test $ac_count -gt 10 && break
4830  done
4831  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4832esac
4833
4834      $ac_path_GREP_found && break 3
4835    done
4836  done
4837  done
4838IFS=$as_save_IFS
4839  if test -z "$ac_cv_path_GREP"; then
4840    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4841  fi
4842else
4843  ac_cv_path_GREP=$GREP
4844fi
4845
4846fi
4847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4848printf "%s\n" "$ac_cv_path_GREP" >&6; }
4849 GREP="$ac_cv_path_GREP"
4850
4851
4852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4853printf %s "checking for egrep... " >&6; }
4854if test ${ac_cv_path_EGREP+y}
4855then :
4856  printf %s "(cached) " >&6
4857else $as_nop
4858  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4859   then ac_cv_path_EGREP="$GREP -E"
4860   else
4861     if test -z "$EGREP"; then
4862  ac_path_EGREP_found=false
4863  # Loop through the user's path and test for each of PROGNAME-LIST
4864  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4866do
4867  IFS=$as_save_IFS
4868  case $as_dir in #(((
4869    '') as_dir=./ ;;
4870    */) ;;
4871    *) as_dir=$as_dir/ ;;
4872  esac
4873    for ac_prog in egrep
4874   do
4875    for ac_exec_ext in '' $ac_executable_extensions; do
4876      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4877      as_fn_executable_p "$ac_path_EGREP" || continue
4878# Check for GNU ac_path_EGREP and select it if it is found.
4879  # Check for GNU $ac_path_EGREP
4880case `"$ac_path_EGREP" --version 2>&1` in
4881*GNU*)
4882  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4883*)
4884  ac_count=0
4885  printf %s 0123456789 >"conftest.in"
4886  while :
4887  do
4888    cat "conftest.in" "conftest.in" >"conftest.tmp"
4889    mv "conftest.tmp" "conftest.in"
4890    cp "conftest.in" "conftest.nl"
4891    printf "%s\n" 'EGREP' >> "conftest.nl"
4892    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4893    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4894    as_fn_arith $ac_count + 1 && ac_count=$as_val
4895    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4896      # Best one so far, save it but keep looking for a better one
4897      ac_cv_path_EGREP="$ac_path_EGREP"
4898      ac_path_EGREP_max=$ac_count
4899    fi
4900    # 10*(2^10) chars as input seems more than enough
4901    test $ac_count -gt 10 && break
4902  done
4903  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4904esac
4905
4906      $ac_path_EGREP_found && break 3
4907    done
4908  done
4909  done
4910IFS=$as_save_IFS
4911  if test -z "$ac_cv_path_EGREP"; then
4912    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4913  fi
4914else
4915  ac_cv_path_EGREP=$EGREP
4916fi
4917
4918   fi
4919fi
4920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4921printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4922 EGREP="$ac_cv_path_EGREP"
4923
4924
4925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4926printf %s "checking for fgrep... " >&6; }
4927if test ${ac_cv_path_FGREP+y}
4928then :
4929  printf %s "(cached) " >&6
4930else $as_nop
4931  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4932   then ac_cv_path_FGREP="$GREP -F"
4933   else
4934     if test -z "$FGREP"; then
4935  ac_path_FGREP_found=false
4936  # Loop through the user's path and test for each of PROGNAME-LIST
4937  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4939do
4940  IFS=$as_save_IFS
4941  case $as_dir in #(((
4942    '') as_dir=./ ;;
4943    */) ;;
4944    *) as_dir=$as_dir/ ;;
4945  esac
4946    for ac_prog in fgrep
4947   do
4948    for ac_exec_ext in '' $ac_executable_extensions; do
4949      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4950      as_fn_executable_p "$ac_path_FGREP" || continue
4951# Check for GNU ac_path_FGREP and select it if it is found.
4952  # Check for GNU $ac_path_FGREP
4953case `"$ac_path_FGREP" --version 2>&1` in
4954*GNU*)
4955  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4956*)
4957  ac_count=0
4958  printf %s 0123456789 >"conftest.in"
4959  while :
4960  do
4961    cat "conftest.in" "conftest.in" >"conftest.tmp"
4962    mv "conftest.tmp" "conftest.in"
4963    cp "conftest.in" "conftest.nl"
4964    printf "%s\n" 'FGREP' >> "conftest.nl"
4965    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4966    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4967    as_fn_arith $ac_count + 1 && ac_count=$as_val
4968    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4969      # Best one so far, save it but keep looking for a better one
4970      ac_cv_path_FGREP="$ac_path_FGREP"
4971      ac_path_FGREP_max=$ac_count
4972    fi
4973    # 10*(2^10) chars as input seems more than enough
4974    test $ac_count -gt 10 && break
4975  done
4976  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4977esac
4978
4979      $ac_path_FGREP_found && break 3
4980    done
4981  done
4982  done
4983IFS=$as_save_IFS
4984  if test -z "$ac_cv_path_FGREP"; then
4985    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4986  fi
4987else
4988  ac_cv_path_FGREP=$FGREP
4989fi
4990
4991   fi
4992fi
4993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4994printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4995 FGREP="$ac_cv_path_FGREP"
4996
4997
4998test -z "$GREP" && GREP=grep
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018# Check whether --with-gnu-ld was given.
5019if test ${with_gnu_ld+y}
5020then :
5021  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5022else $as_nop
5023  with_gnu_ld=no
5024fi
5025
5026ac_prog=ld
5027if test yes = "$GCC"; then
5028  # Check if gcc -print-prog-name=ld gives a path.
5029  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5030printf %s "checking for ld used by $CC... " >&6; }
5031  case $host in
5032  *-*-mingw*)
5033    # gcc leaves a trailing carriage return, which upsets mingw
5034    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5035  *)
5036    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5037  esac
5038  case $ac_prog in
5039    # Accept absolute paths.
5040    [\\/]* | ?:[\\/]*)
5041      re_direlt='/[^/][^/]*/\.\./'
5042      # Canonicalize the pathname of ld
5043      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5044      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5045	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5046      done
5047      test -z "$LD" && LD=$ac_prog
5048      ;;
5049  "")
5050    # If it fails, then pretend we aren't using GCC.
5051    ac_prog=ld
5052    ;;
5053  *)
5054    # If it is relative, then search for the first ld in PATH.
5055    with_gnu_ld=unknown
5056    ;;
5057  esac
5058elif test yes = "$with_gnu_ld"; then
5059  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5060printf %s "checking for GNU ld... " >&6; }
5061else
5062  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5063printf %s "checking for non-GNU ld... " >&6; }
5064fi
5065if test ${lt_cv_path_LD+y}
5066then :
5067  printf %s "(cached) " >&6
5068else $as_nop
5069  if test -z "$LD"; then
5070  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5071  for ac_dir in $PATH; do
5072    IFS=$lt_save_ifs
5073    test -z "$ac_dir" && ac_dir=.
5074    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5075      lt_cv_path_LD=$ac_dir/$ac_prog
5076      # Check to see if the program is GNU ld.  I'd rather use --version,
5077      # but apparently some variants of GNU ld only accept -v.
5078      # Break only if it was the GNU/non-GNU ld that we prefer.
5079      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5080      *GNU* | *'with BFD'*)
5081	test no != "$with_gnu_ld" && break
5082	;;
5083      *)
5084	test yes != "$with_gnu_ld" && break
5085	;;
5086      esac
5087    fi
5088  done
5089  IFS=$lt_save_ifs
5090else
5091  lt_cv_path_LD=$LD # Let the user override the test with a path.
5092fi
5093fi
5094
5095LD=$lt_cv_path_LD
5096if test -n "$LD"; then
5097  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5098printf "%s\n" "$LD" >&6; }
5099else
5100  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5101printf "%s\n" "no" >&6; }
5102fi
5103test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5105printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5106if test ${lt_cv_prog_gnu_ld+y}
5107then :
5108  printf %s "(cached) " >&6
5109else $as_nop
5110  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5111case `$LD -v 2>&1 </dev/null` in
5112*GNU* | *'with BFD'*)
5113  lt_cv_prog_gnu_ld=yes
5114  ;;
5115*)
5116  lt_cv_prog_gnu_ld=no
5117  ;;
5118esac
5119fi
5120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5121printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5122with_gnu_ld=$lt_cv_prog_gnu_ld
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5133printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5134if test ${lt_cv_path_NM+y}
5135then :
5136  printf %s "(cached) " >&6
5137else $as_nop
5138  if test -n "$NM"; then
5139  # Let the user override the test.
5140  lt_cv_path_NM=$NM
5141else
5142  lt_nm_to_check=${ac_tool_prefix}nm
5143  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5144    lt_nm_to_check="$lt_nm_to_check nm"
5145  fi
5146  for lt_tmp_nm in $lt_nm_to_check; do
5147    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5148    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5149      IFS=$lt_save_ifs
5150      test -z "$ac_dir" && ac_dir=.
5151      tmp_nm=$ac_dir/$lt_tmp_nm
5152      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5153	# Check to see if the nm accepts a BSD-compat flag.
5154	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5155	#   nm: unknown option "B" ignored
5156	# Tru64's nm complains that /dev/null is an invalid object file
5157	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5158	case $build_os in
5159	mingw*) lt_bad_file=conftest.nm/nofile ;;
5160	*) lt_bad_file=/dev/null ;;
5161	esac
5162	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5163	*$lt_bad_file* | *'Invalid file or object type'*)
5164	  lt_cv_path_NM="$tmp_nm -B"
5165	  break 2
5166	  ;;
5167	*)
5168	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5169	  */dev/null*)
5170	    lt_cv_path_NM="$tmp_nm -p"
5171	    break 2
5172	    ;;
5173	  *)
5174	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5175	    continue # so that we can try to find one that supports BSD flags
5176	    ;;
5177	  esac
5178	  ;;
5179	esac
5180      fi
5181    done
5182    IFS=$lt_save_ifs
5183  done
5184  : ${lt_cv_path_NM=no}
5185fi
5186fi
5187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5188printf "%s\n" "$lt_cv_path_NM" >&6; }
5189if test no != "$lt_cv_path_NM"; then
5190  NM=$lt_cv_path_NM
5191else
5192  # Didn't find any BSD compatible name lister, look for dumpbin.
5193  if test -n "$DUMPBIN"; then :
5194    # Let the user override the test.
5195  else
5196    if test -n "$ac_tool_prefix"; then
5197  for ac_prog in dumpbin "link -dump"
5198  do
5199    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5200set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5202printf %s "checking for $ac_word... " >&6; }
5203if test ${ac_cv_prog_DUMPBIN+y}
5204then :
5205  printf %s "(cached) " >&6
5206else $as_nop
5207  if test -n "$DUMPBIN"; then
5208  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5209else
5210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211for as_dir in $PATH
5212do
5213  IFS=$as_save_IFS
5214  case $as_dir in #(((
5215    '') as_dir=./ ;;
5216    */) ;;
5217    *) as_dir=$as_dir/ ;;
5218  esac
5219    for ac_exec_ext in '' $ac_executable_extensions; do
5220  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5221    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5222    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5223    break 2
5224  fi
5225done
5226  done
5227IFS=$as_save_IFS
5228
5229fi
5230fi
5231DUMPBIN=$ac_cv_prog_DUMPBIN
5232if test -n "$DUMPBIN"; then
5233  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5234printf "%s\n" "$DUMPBIN" >&6; }
5235else
5236  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5237printf "%s\n" "no" >&6; }
5238fi
5239
5240
5241    test -n "$DUMPBIN" && break
5242  done
5243fi
5244if test -z "$DUMPBIN"; then
5245  ac_ct_DUMPBIN=$DUMPBIN
5246  for ac_prog in dumpbin "link -dump"
5247do
5248  # Extract the first word of "$ac_prog", so it can be a program name with args.
5249set dummy $ac_prog; ac_word=$2
5250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5251printf %s "checking for $ac_word... " >&6; }
5252if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5253then :
5254  printf %s "(cached) " >&6
5255else $as_nop
5256  if test -n "$ac_ct_DUMPBIN"; then
5257  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5258else
5259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260for as_dir in $PATH
5261do
5262  IFS=$as_save_IFS
5263  case $as_dir in #(((
5264    '') as_dir=./ ;;
5265    */) ;;
5266    *) as_dir=$as_dir/ ;;
5267  esac
5268    for ac_exec_ext in '' $ac_executable_extensions; do
5269  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5270    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5271    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5272    break 2
5273  fi
5274done
5275  done
5276IFS=$as_save_IFS
5277
5278fi
5279fi
5280ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5281if test -n "$ac_ct_DUMPBIN"; then
5282  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5283printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5284else
5285  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286printf "%s\n" "no" >&6; }
5287fi
5288
5289
5290  test -n "$ac_ct_DUMPBIN" && break
5291done
5292
5293  if test "x$ac_ct_DUMPBIN" = x; then
5294    DUMPBIN=":"
5295  else
5296    case $cross_compiling:$ac_tool_warned in
5297yes:)
5298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5299printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5300ac_tool_warned=yes ;;
5301esac
5302    DUMPBIN=$ac_ct_DUMPBIN
5303  fi
5304fi
5305
5306    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5307    *COFF*)
5308      DUMPBIN="$DUMPBIN -symbols -headers"
5309      ;;
5310    *)
5311      DUMPBIN=:
5312      ;;
5313    esac
5314  fi
5315
5316  if test : != "$DUMPBIN"; then
5317    NM=$DUMPBIN
5318  fi
5319fi
5320test -z "$NM" && NM=nm
5321
5322
5323
5324
5325
5326
5327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5328printf %s "checking the name lister ($NM) interface... " >&6; }
5329if test ${lt_cv_nm_interface+y}
5330then :
5331  printf %s "(cached) " >&6
5332else $as_nop
5333  lt_cv_nm_interface="BSD nm"
5334  echo "int some_variable = 0;" > conftest.$ac_ext
5335  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5336  (eval "$ac_compile" 2>conftest.err)
5337  cat conftest.err >&5
5338  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5339  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5340  cat conftest.err >&5
5341  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5342  cat conftest.out >&5
5343  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5344    lt_cv_nm_interface="MS dumpbin"
5345  fi
5346  rm -f conftest*
5347fi
5348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5349printf "%s\n" "$lt_cv_nm_interface" >&6; }
5350
5351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5352printf %s "checking whether ln -s works... " >&6; }
5353LN_S=$as_ln_s
5354if test "$LN_S" = "ln -s"; then
5355  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5356printf "%s\n" "yes" >&6; }
5357else
5358  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5359printf "%s\n" "no, using $LN_S" >&6; }
5360fi
5361
5362# find the maximum length of command line arguments
5363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5364printf %s "checking the maximum length of command line arguments... " >&6; }
5365if test ${lt_cv_sys_max_cmd_len+y}
5366then :
5367  printf %s "(cached) " >&6
5368else $as_nop
5369    i=0
5370  teststring=ABCD
5371
5372  case $build_os in
5373  msdosdjgpp*)
5374    # On DJGPP, this test can blow up pretty badly due to problems in libc
5375    # (any single argument exceeding 2000 bytes causes a buffer overrun
5376    # during glob expansion).  Even if it were fixed, the result of this
5377    # check would be larger than it should be.
5378    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5379    ;;
5380
5381  gnu*)
5382    # Under GNU Hurd, this test is not required because there is
5383    # no limit to the length of command line arguments.
5384    # Libtool will interpret -1 as no limit whatsoever
5385    lt_cv_sys_max_cmd_len=-1;
5386    ;;
5387
5388  cygwin* | mingw* | cegcc*)
5389    # On Win9x/ME, this test blows up -- it succeeds, but takes
5390    # about 5 minutes as the teststring grows exponentially.
5391    # Worse, since 9x/ME are not pre-emptively multitasking,
5392    # you end up with a "frozen" computer, even though with patience
5393    # the test eventually succeeds (with a max line length of 256k).
5394    # Instead, let's just punt: use the minimum linelength reported by
5395    # all of the supported platforms: 8192 (on NT/2K/XP).
5396    lt_cv_sys_max_cmd_len=8192;
5397    ;;
5398
5399  mint*)
5400    # On MiNT this can take a long time and run out of memory.
5401    lt_cv_sys_max_cmd_len=8192;
5402    ;;
5403
5404  amigaos*)
5405    # On AmigaOS with pdksh, this test takes hours, literally.
5406    # So we just punt and use a minimum line length of 8192.
5407    lt_cv_sys_max_cmd_len=8192;
5408    ;;
5409
5410  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5411    # This has been around since 386BSD, at least.  Likely further.
5412    if test -x /sbin/sysctl; then
5413      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5414    elif test -x /usr/sbin/sysctl; then
5415      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5416    else
5417      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5418    fi
5419    # And add a safety zone
5420    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5421    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5422    ;;
5423
5424  interix*)
5425    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5426    lt_cv_sys_max_cmd_len=196608
5427    ;;
5428
5429  os2*)
5430    # The test takes a long time on OS/2.
5431    lt_cv_sys_max_cmd_len=8192
5432    ;;
5433
5434  osf*)
5435    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5436    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5437    # nice to cause kernel panics so lets avoid the loop below.
5438    # First set a reasonable default.
5439    lt_cv_sys_max_cmd_len=16384
5440    #
5441    if test -x /sbin/sysconfig; then
5442      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5443        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5444      esac
5445    fi
5446    ;;
5447  sco3.2v5*)
5448    lt_cv_sys_max_cmd_len=102400
5449    ;;
5450  sysv5* | sco5v6* | sysv4.2uw2*)
5451    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5452    if test -n "$kargmax"; then
5453      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
5454    else
5455      lt_cv_sys_max_cmd_len=32768
5456    fi
5457    ;;
5458  *)
5459    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5460    if test -n "$lt_cv_sys_max_cmd_len" && \
5461       test undefined != "$lt_cv_sys_max_cmd_len"; then
5462      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5463      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5464    else
5465      # Make teststring a little bigger before we do anything with it.
5466      # a 1K string should be a reasonable start.
5467      for i in 1 2 3 4 5 6 7 8; do
5468        teststring=$teststring$teststring
5469      done
5470      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5471      # If test is not a shell built-in, we'll probably end up computing a
5472      # maximum length that is only half of the actual maximum length, but
5473      # we can't tell.
5474      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5475	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5476	      test 17 != "$i" # 1/2 MB should be enough
5477      do
5478        i=`expr $i + 1`
5479        teststring=$teststring$teststring
5480      done
5481      # Only check the string length outside the loop.
5482      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5483      teststring=
5484      # Add a significant safety factor because C++ compilers can tack on
5485      # massive amounts of additional arguments before passing them to the
5486      # linker.  It appears as though 1/2 is a usable value.
5487      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5488    fi
5489    ;;
5490  esac
5491
5492fi
5493
5494if test -n "$lt_cv_sys_max_cmd_len"; then
5495  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5496printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5497else
5498  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5499printf "%s\n" "none" >&6; }
5500fi
5501max_cmd_len=$lt_cv_sys_max_cmd_len
5502
5503
5504
5505
5506
5507
5508: ${CP="cp -f"}
5509: ${MV="mv -f"}
5510: ${RM="rm -f"}
5511
5512if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5513  lt_unset=unset
5514else
5515  lt_unset=false
5516fi
5517
5518
5519
5520
5521
5522# test EBCDIC or ASCII
5523case `echo X|tr X '\101'` in
5524 A) # ASCII based system
5525    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5526  lt_SP2NL='tr \040 \012'
5527  lt_NL2SP='tr \015\012 \040\040'
5528  ;;
5529 *) # EBCDIC based system
5530  lt_SP2NL='tr \100 \n'
5531  lt_NL2SP='tr \r\n \100\100'
5532  ;;
5533esac
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5544printf %s "checking how to convert $build file names to $host format... " >&6; }
5545if test ${lt_cv_to_host_file_cmd+y}
5546then :
5547  printf %s "(cached) " >&6
5548else $as_nop
5549  case $host in
5550  *-*-mingw* )
5551    case $build in
5552      *-*-mingw* ) # actually msys
5553        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5554        ;;
5555      *-*-cygwin* )
5556        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5557        ;;
5558      * ) # otherwise, assume *nix
5559        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5560        ;;
5561    esac
5562    ;;
5563  *-*-cygwin* )
5564    case $build in
5565      *-*-mingw* ) # actually msys
5566        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5567        ;;
5568      *-*-cygwin* )
5569        lt_cv_to_host_file_cmd=func_convert_file_noop
5570        ;;
5571      * ) # otherwise, assume *nix
5572        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5573        ;;
5574    esac
5575    ;;
5576  * ) # unhandled hosts (and "normal" native builds)
5577    lt_cv_to_host_file_cmd=func_convert_file_noop
5578    ;;
5579esac
5580
5581fi
5582
5583to_host_file_cmd=$lt_cv_to_host_file_cmd
5584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5585printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5586
5587
5588
5589
5590
5591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5592printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5593if test ${lt_cv_to_tool_file_cmd+y}
5594then :
5595  printf %s "(cached) " >&6
5596else $as_nop
5597  #assume ordinary cross tools, or native build.
5598lt_cv_to_tool_file_cmd=func_convert_file_noop
5599case $host in
5600  *-*-mingw* )
5601    case $build in
5602      *-*-mingw* ) # actually msys
5603        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5604        ;;
5605    esac
5606    ;;
5607esac
5608
5609fi
5610
5611to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5613printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5614
5615
5616
5617
5618
5619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5620printf %s "checking for $LD option to reload object files... " >&6; }
5621if test ${lt_cv_ld_reload_flag+y}
5622then :
5623  printf %s "(cached) " >&6
5624else $as_nop
5625  lt_cv_ld_reload_flag='-r'
5626fi
5627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5628printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5629reload_flag=$lt_cv_ld_reload_flag
5630case $reload_flag in
5631"" | " "*) ;;
5632*) reload_flag=" $reload_flag" ;;
5633esac
5634reload_cmds='$LD$reload_flag -o $output$reload_objs'
5635case $host_os in
5636  cygwin* | mingw* | pw32* | cegcc*)
5637    if test yes != "$GCC"; then
5638      reload_cmds=false
5639    fi
5640    ;;
5641  darwin*)
5642    if test yes = "$GCC"; then
5643      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5644    else
5645      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5646    fi
5647    ;;
5648esac
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658if test -n "$ac_tool_prefix"; then
5659  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5660set dummy ${ac_tool_prefix}file; ac_word=$2
5661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5662printf %s "checking for $ac_word... " >&6; }
5663if test ${ac_cv_prog_FILECMD+y}
5664then :
5665  printf %s "(cached) " >&6
5666else $as_nop
5667  if test -n "$FILECMD"; then
5668  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5669else
5670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671for as_dir in $PATH
5672do
5673  IFS=$as_save_IFS
5674  case $as_dir in #(((
5675    '') as_dir=./ ;;
5676    */) ;;
5677    *) as_dir=$as_dir/ ;;
5678  esac
5679    for ac_exec_ext in '' $ac_executable_extensions; do
5680  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5681    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5682    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5683    break 2
5684  fi
5685done
5686  done
5687IFS=$as_save_IFS
5688
5689fi
5690fi
5691FILECMD=$ac_cv_prog_FILECMD
5692if test -n "$FILECMD"; then
5693  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5694printf "%s\n" "$FILECMD" >&6; }
5695else
5696  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697printf "%s\n" "no" >&6; }
5698fi
5699
5700
5701fi
5702if test -z "$ac_cv_prog_FILECMD"; then
5703  ac_ct_FILECMD=$FILECMD
5704  # Extract the first word of "file", so it can be a program name with args.
5705set dummy file; ac_word=$2
5706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5707printf %s "checking for $ac_word... " >&6; }
5708if test ${ac_cv_prog_ac_ct_FILECMD+y}
5709then :
5710  printf %s "(cached) " >&6
5711else $as_nop
5712  if test -n "$ac_ct_FILECMD"; then
5713  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5714else
5715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716for as_dir in $PATH
5717do
5718  IFS=$as_save_IFS
5719  case $as_dir in #(((
5720    '') as_dir=./ ;;
5721    */) ;;
5722    *) as_dir=$as_dir/ ;;
5723  esac
5724    for ac_exec_ext in '' $ac_executable_extensions; do
5725  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5726    ac_cv_prog_ac_ct_FILECMD="file"
5727    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5728    break 2
5729  fi
5730done
5731  done
5732IFS=$as_save_IFS
5733
5734fi
5735fi
5736ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5737if test -n "$ac_ct_FILECMD"; then
5738  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5739printf "%s\n" "$ac_ct_FILECMD" >&6; }
5740else
5741  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742printf "%s\n" "no" >&6; }
5743fi
5744
5745  if test "x$ac_ct_FILECMD" = x; then
5746    FILECMD=":"
5747  else
5748    case $cross_compiling:$ac_tool_warned in
5749yes:)
5750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5751printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5752ac_tool_warned=yes ;;
5753esac
5754    FILECMD=$ac_ct_FILECMD
5755  fi
5756else
5757  FILECMD="$ac_cv_prog_FILECMD"
5758fi
5759
5760
5761
5762
5763
5764
5765
5766if test -n "$ac_tool_prefix"; then
5767  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5768set dummy ${ac_tool_prefix}objdump; ac_word=$2
5769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5770printf %s "checking for $ac_word... " >&6; }
5771if test ${ac_cv_prog_OBJDUMP+y}
5772then :
5773  printf %s "(cached) " >&6
5774else $as_nop
5775  if test -n "$OBJDUMP"; then
5776  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5777else
5778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779for as_dir in $PATH
5780do
5781  IFS=$as_save_IFS
5782  case $as_dir in #(((
5783    '') as_dir=./ ;;
5784    */) ;;
5785    *) as_dir=$as_dir/ ;;
5786  esac
5787    for ac_exec_ext in '' $ac_executable_extensions; do
5788  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5789    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5790    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5791    break 2
5792  fi
5793done
5794  done
5795IFS=$as_save_IFS
5796
5797fi
5798fi
5799OBJDUMP=$ac_cv_prog_OBJDUMP
5800if test -n "$OBJDUMP"; then
5801  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5802printf "%s\n" "$OBJDUMP" >&6; }
5803else
5804  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5805printf "%s\n" "no" >&6; }
5806fi
5807
5808
5809fi
5810if test -z "$ac_cv_prog_OBJDUMP"; then
5811  ac_ct_OBJDUMP=$OBJDUMP
5812  # Extract the first word of "objdump", so it can be a program name with args.
5813set dummy objdump; ac_word=$2
5814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5815printf %s "checking for $ac_word... " >&6; }
5816if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5817then :
5818  printf %s "(cached) " >&6
5819else $as_nop
5820  if test -n "$ac_ct_OBJDUMP"; then
5821  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5822else
5823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824for as_dir in $PATH
5825do
5826  IFS=$as_save_IFS
5827  case $as_dir in #(((
5828    '') as_dir=./ ;;
5829    */) ;;
5830    *) as_dir=$as_dir/ ;;
5831  esac
5832    for ac_exec_ext in '' $ac_executable_extensions; do
5833  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5834    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5835    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5836    break 2
5837  fi
5838done
5839  done
5840IFS=$as_save_IFS
5841
5842fi
5843fi
5844ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5845if test -n "$ac_ct_OBJDUMP"; then
5846  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5847printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5848else
5849  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850printf "%s\n" "no" >&6; }
5851fi
5852
5853  if test "x$ac_ct_OBJDUMP" = x; then
5854    OBJDUMP="false"
5855  else
5856    case $cross_compiling:$ac_tool_warned in
5857yes:)
5858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5859printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5860ac_tool_warned=yes ;;
5861esac
5862    OBJDUMP=$ac_ct_OBJDUMP
5863  fi
5864else
5865  OBJDUMP="$ac_cv_prog_OBJDUMP"
5866fi
5867
5868test -z "$OBJDUMP" && OBJDUMP=objdump
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5879printf %s "checking how to recognize dependent libraries... " >&6; }
5880if test ${lt_cv_deplibs_check_method+y}
5881then :
5882  printf %s "(cached) " >&6
5883else $as_nop
5884  lt_cv_file_magic_cmd='$MAGIC_CMD'
5885lt_cv_file_magic_test_file=
5886lt_cv_deplibs_check_method='unknown'
5887# Need to set the preceding variable on all platforms that support
5888# interlibrary dependencies.
5889# 'none' -- dependencies not supported.
5890# 'unknown' -- same as none, but documents that we really don't know.
5891# 'pass_all' -- all dependencies passed with no checks.
5892# 'test_compile' -- check by making test program.
5893# 'file_magic [[regex]]' -- check by looking for files in library path
5894# that responds to the $file_magic_cmd with a given extended regex.
5895# If you have 'file' or equivalent on your system and you're not sure
5896# whether 'pass_all' will *always* work, you probably want this one.
5897
5898case $host_os in
5899aix[4-9]*)
5900  lt_cv_deplibs_check_method=pass_all
5901  ;;
5902
5903beos*)
5904  lt_cv_deplibs_check_method=pass_all
5905  ;;
5906
5907bsdi[45]*)
5908  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5909  lt_cv_file_magic_cmd='$FILECMD -L'
5910  lt_cv_file_magic_test_file=/shlib/libc.so
5911  ;;
5912
5913cygwin*)
5914  # func_win32_libid is a shell function defined in ltmain.sh
5915  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5916  lt_cv_file_magic_cmd='func_win32_libid'
5917  ;;
5918
5919mingw* | pw32*)
5920  # Base MSYS/MinGW do not provide the 'file' command needed by
5921  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5922  # unless we find 'file', for example because we are cross-compiling.
5923  if ( file / ) >/dev/null 2>&1; then
5924    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5925    lt_cv_file_magic_cmd='func_win32_libid'
5926  else
5927    # Keep this pattern in sync with the one in func_win32_libid.
5928    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5929    lt_cv_file_magic_cmd='$OBJDUMP -f'
5930  fi
5931  ;;
5932
5933cegcc*)
5934  # use the weaker test based on 'objdump'. See mingw*.
5935  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5936  lt_cv_file_magic_cmd='$OBJDUMP -f'
5937  ;;
5938
5939darwin* | rhapsody*)
5940  lt_cv_deplibs_check_method=pass_all
5941  ;;
5942
5943freebsd* | dragonfly* | midnightbsd*)
5944  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5945    case $host_cpu in
5946    i*86 )
5947      # Not sure whether the presence of OpenBSD here was a mistake.
5948      # Let's accept both of them until this is cleared up.
5949      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5950      lt_cv_file_magic_cmd=$FILECMD
5951      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5952      ;;
5953    esac
5954  else
5955    lt_cv_deplibs_check_method=pass_all
5956  fi
5957  ;;
5958
5959haiku*)
5960  lt_cv_deplibs_check_method=pass_all
5961  ;;
5962
5963hpux10.20* | hpux11*)
5964  lt_cv_file_magic_cmd=$FILECMD
5965  case $host_cpu in
5966  ia64*)
5967    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5968    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5969    ;;
5970  hppa*64*)
5971    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]'
5972    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5973    ;;
5974  *)
5975    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5976    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5977    ;;
5978  esac
5979  ;;
5980
5981interix[3-9]*)
5982  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5983  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5984  ;;
5985
5986irix5* | irix6* | nonstopux*)
5987  case $LD in
5988  *-32|*"-32 ") libmagic=32-bit;;
5989  *-n32|*"-n32 ") libmagic=N32;;
5990  *-64|*"-64 ") libmagic=64-bit;;
5991  *) libmagic=never-match;;
5992  esac
5993  lt_cv_deplibs_check_method=pass_all
5994  ;;
5995
5996# This must be glibc/ELF.
5997linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5998  lt_cv_deplibs_check_method=pass_all
5999  ;;
6000
6001netbsd*)
6002  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6003    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6004  else
6005    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6006  fi
6007  ;;
6008
6009newos6*)
6010  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6011  lt_cv_file_magic_cmd=$FILECMD
6012  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6013  ;;
6014
6015*nto* | *qnx*)
6016  lt_cv_deplibs_check_method=pass_all
6017  ;;
6018
6019openbsd* | bitrig*)
6020  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6021    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6022  else
6023    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6024  fi
6025  ;;
6026
6027osf3* | osf4* | osf5*)
6028  lt_cv_deplibs_check_method=pass_all
6029  ;;
6030
6031rdos*)
6032  lt_cv_deplibs_check_method=pass_all
6033  ;;
6034
6035solaris*)
6036  lt_cv_deplibs_check_method=pass_all
6037  ;;
6038
6039sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6040  lt_cv_deplibs_check_method=pass_all
6041  ;;
6042
6043sysv4 | sysv4.3*)
6044  case $host_vendor in
6045  motorola)
6046    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]'
6047    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6048    ;;
6049  ncr)
6050    lt_cv_deplibs_check_method=pass_all
6051    ;;
6052  sequent)
6053    lt_cv_file_magic_cmd='/bin/file'
6054    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6055    ;;
6056  sni)
6057    lt_cv_file_magic_cmd='/bin/file'
6058    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6059    lt_cv_file_magic_test_file=/lib/libc.so
6060    ;;
6061  siemens)
6062    lt_cv_deplibs_check_method=pass_all
6063    ;;
6064  pc)
6065    lt_cv_deplibs_check_method=pass_all
6066    ;;
6067  esac
6068  ;;
6069
6070tpf*)
6071  lt_cv_deplibs_check_method=pass_all
6072  ;;
6073os2*)
6074  lt_cv_deplibs_check_method=pass_all
6075  ;;
6076esac
6077
6078fi
6079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6080printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6081
6082file_magic_glob=
6083want_nocaseglob=no
6084if test "$build" = "$host"; then
6085  case $host_os in
6086  mingw* | pw32*)
6087    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6088      want_nocaseglob=yes
6089    else
6090      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6091    fi
6092    ;;
6093  esac
6094fi
6095
6096file_magic_cmd=$lt_cv_file_magic_cmd
6097deplibs_check_method=$lt_cv_deplibs_check_method
6098test -z "$deplibs_check_method" && deplibs_check_method=unknown
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121if test -n "$ac_tool_prefix"; then
6122  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6123set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6125printf %s "checking for $ac_word... " >&6; }
6126if test ${ac_cv_prog_DLLTOOL+y}
6127then :
6128  printf %s "(cached) " >&6
6129else $as_nop
6130  if test -n "$DLLTOOL"; then
6131  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6132else
6133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134for as_dir in $PATH
6135do
6136  IFS=$as_save_IFS
6137  case $as_dir in #(((
6138    '') as_dir=./ ;;
6139    */) ;;
6140    *) as_dir=$as_dir/ ;;
6141  esac
6142    for ac_exec_ext in '' $ac_executable_extensions; do
6143  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6144    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6145    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6146    break 2
6147  fi
6148done
6149  done
6150IFS=$as_save_IFS
6151
6152fi
6153fi
6154DLLTOOL=$ac_cv_prog_DLLTOOL
6155if test -n "$DLLTOOL"; then
6156  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6157printf "%s\n" "$DLLTOOL" >&6; }
6158else
6159  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6160printf "%s\n" "no" >&6; }
6161fi
6162
6163
6164fi
6165if test -z "$ac_cv_prog_DLLTOOL"; then
6166  ac_ct_DLLTOOL=$DLLTOOL
6167  # Extract the first word of "dlltool", so it can be a program name with args.
6168set dummy dlltool; ac_word=$2
6169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6170printf %s "checking for $ac_word... " >&6; }
6171if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6172then :
6173  printf %s "(cached) " >&6
6174else $as_nop
6175  if test -n "$ac_ct_DLLTOOL"; then
6176  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6177else
6178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179for as_dir in $PATH
6180do
6181  IFS=$as_save_IFS
6182  case $as_dir in #(((
6183    '') as_dir=./ ;;
6184    */) ;;
6185    *) as_dir=$as_dir/ ;;
6186  esac
6187    for ac_exec_ext in '' $ac_executable_extensions; do
6188  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6189    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6190    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6191    break 2
6192  fi
6193done
6194  done
6195IFS=$as_save_IFS
6196
6197fi
6198fi
6199ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6200if test -n "$ac_ct_DLLTOOL"; then
6201  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6202printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6203else
6204  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6205printf "%s\n" "no" >&6; }
6206fi
6207
6208  if test "x$ac_ct_DLLTOOL" = x; then
6209    DLLTOOL="false"
6210  else
6211    case $cross_compiling:$ac_tool_warned in
6212yes:)
6213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6214printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6215ac_tool_warned=yes ;;
6216esac
6217    DLLTOOL=$ac_ct_DLLTOOL
6218  fi
6219else
6220  DLLTOOL="$ac_cv_prog_DLLTOOL"
6221fi
6222
6223test -z "$DLLTOOL" && DLLTOOL=dlltool
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6235printf %s "checking how to associate runtime and link libraries... " >&6; }
6236if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6237then :
6238  printf %s "(cached) " >&6
6239else $as_nop
6240  lt_cv_sharedlib_from_linklib_cmd='unknown'
6241
6242case $host_os in
6243cygwin* | mingw* | pw32* | cegcc*)
6244  # two different shell functions defined in ltmain.sh;
6245  # decide which one to use based on capabilities of $DLLTOOL
6246  case `$DLLTOOL --help 2>&1` in
6247  *--identify-strict*)
6248    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6249    ;;
6250  *)
6251    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6252    ;;
6253  esac
6254  ;;
6255*)
6256  # fallback: assume linklib IS sharedlib
6257  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6258  ;;
6259esac
6260
6261fi
6262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6263printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6264sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6265test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6266
6267
6268
6269
6270
6271
6272
6273
6274if test -n "$ac_tool_prefix"; then
6275  for ac_prog in ar
6276  do
6277    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6278set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6280printf %s "checking for $ac_word... " >&6; }
6281if test ${ac_cv_prog_AR+y}
6282then :
6283  printf %s "(cached) " >&6
6284else $as_nop
6285  if test -n "$AR"; then
6286  ac_cv_prog_AR="$AR" # Let the user override the test.
6287else
6288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289for as_dir in $PATH
6290do
6291  IFS=$as_save_IFS
6292  case $as_dir in #(((
6293    '') as_dir=./ ;;
6294    */) ;;
6295    *) as_dir=$as_dir/ ;;
6296  esac
6297    for ac_exec_ext in '' $ac_executable_extensions; do
6298  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6299    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6300    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6301    break 2
6302  fi
6303done
6304  done
6305IFS=$as_save_IFS
6306
6307fi
6308fi
6309AR=$ac_cv_prog_AR
6310if test -n "$AR"; then
6311  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6312printf "%s\n" "$AR" >&6; }
6313else
6314  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315printf "%s\n" "no" >&6; }
6316fi
6317
6318
6319    test -n "$AR" && break
6320  done
6321fi
6322if test -z "$AR"; then
6323  ac_ct_AR=$AR
6324  for ac_prog in ar
6325do
6326  # Extract the first word of "$ac_prog", so it can be a program name with args.
6327set dummy $ac_prog; ac_word=$2
6328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6329printf %s "checking for $ac_word... " >&6; }
6330if test ${ac_cv_prog_ac_ct_AR+y}
6331then :
6332  printf %s "(cached) " >&6
6333else $as_nop
6334  if test -n "$ac_ct_AR"; then
6335  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6336else
6337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338for as_dir in $PATH
6339do
6340  IFS=$as_save_IFS
6341  case $as_dir in #(((
6342    '') as_dir=./ ;;
6343    */) ;;
6344    *) as_dir=$as_dir/ ;;
6345  esac
6346    for ac_exec_ext in '' $ac_executable_extensions; do
6347  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6348    ac_cv_prog_ac_ct_AR="$ac_prog"
6349    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6350    break 2
6351  fi
6352done
6353  done
6354IFS=$as_save_IFS
6355
6356fi
6357fi
6358ac_ct_AR=$ac_cv_prog_ac_ct_AR
6359if test -n "$ac_ct_AR"; then
6360  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6361printf "%s\n" "$ac_ct_AR" >&6; }
6362else
6363  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6364printf "%s\n" "no" >&6; }
6365fi
6366
6367
6368  test -n "$ac_ct_AR" && break
6369done
6370
6371  if test "x$ac_ct_AR" = x; then
6372    AR="false"
6373  else
6374    case $cross_compiling:$ac_tool_warned in
6375yes:)
6376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6377printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6378ac_tool_warned=yes ;;
6379esac
6380    AR=$ac_ct_AR
6381  fi
6382fi
6383
6384: ${AR=ar}
6385
6386
6387
6388
6389
6390
6391# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6392# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6393# higher priority because thats what people were doing historically (setting
6394# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6395# variable obsoleted/removed.
6396
6397test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6398lt_ar_flags=$AR_FLAGS
6399
6400
6401
6402
6403
6404
6405# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6406# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6407
6408
6409
6410
6411
6412
6413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6414printf %s "checking for archiver @FILE support... " >&6; }
6415if test ${lt_cv_ar_at_file+y}
6416then :
6417  printf %s "(cached) " >&6
6418else $as_nop
6419  lt_cv_ar_at_file=no
6420   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421/* end confdefs.h.  */
6422
6423int
6424main (void)
6425{
6426
6427  ;
6428  return 0;
6429}
6430_ACEOF
6431if ac_fn_c_try_compile "$LINENO"
6432then :
6433  echo conftest.$ac_objext > conftest.lst
6434      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6435      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6436  (eval $lt_ar_try) 2>&5
6437  ac_status=$?
6438  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6439  test $ac_status = 0; }
6440      if test 0 -eq "$ac_status"; then
6441	# Ensure the archiver fails upon bogus file names.
6442	rm -f conftest.$ac_objext libconftest.a
6443	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6444  (eval $lt_ar_try) 2>&5
6445  ac_status=$?
6446  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6447  test $ac_status = 0; }
6448	if test 0 -ne "$ac_status"; then
6449          lt_cv_ar_at_file=@
6450        fi
6451      fi
6452      rm -f conftest.* libconftest.a
6453
6454fi
6455rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6456
6457fi
6458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6459printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6460
6461if test no = "$lt_cv_ar_at_file"; then
6462  archiver_list_spec=
6463else
6464  archiver_list_spec=$lt_cv_ar_at_file
6465fi
6466
6467
6468
6469
6470
6471
6472
6473if test -n "$ac_tool_prefix"; then
6474  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6475set dummy ${ac_tool_prefix}strip; ac_word=$2
6476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6477printf %s "checking for $ac_word... " >&6; }
6478if test ${ac_cv_prog_STRIP+y}
6479then :
6480  printf %s "(cached) " >&6
6481else $as_nop
6482  if test -n "$STRIP"; then
6483  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6484else
6485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486for as_dir in $PATH
6487do
6488  IFS=$as_save_IFS
6489  case $as_dir in #(((
6490    '') as_dir=./ ;;
6491    */) ;;
6492    *) as_dir=$as_dir/ ;;
6493  esac
6494    for ac_exec_ext in '' $ac_executable_extensions; do
6495  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6496    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6497    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6498    break 2
6499  fi
6500done
6501  done
6502IFS=$as_save_IFS
6503
6504fi
6505fi
6506STRIP=$ac_cv_prog_STRIP
6507if test -n "$STRIP"; then
6508  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6509printf "%s\n" "$STRIP" >&6; }
6510else
6511  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6512printf "%s\n" "no" >&6; }
6513fi
6514
6515
6516fi
6517if test -z "$ac_cv_prog_STRIP"; then
6518  ac_ct_STRIP=$STRIP
6519  # Extract the first word of "strip", so it can be a program name with args.
6520set dummy strip; ac_word=$2
6521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6522printf %s "checking for $ac_word... " >&6; }
6523if test ${ac_cv_prog_ac_ct_STRIP+y}
6524then :
6525  printf %s "(cached) " >&6
6526else $as_nop
6527  if test -n "$ac_ct_STRIP"; then
6528  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6529else
6530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531for as_dir in $PATH
6532do
6533  IFS=$as_save_IFS
6534  case $as_dir in #(((
6535    '') as_dir=./ ;;
6536    */) ;;
6537    *) as_dir=$as_dir/ ;;
6538  esac
6539    for ac_exec_ext in '' $ac_executable_extensions; do
6540  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6541    ac_cv_prog_ac_ct_STRIP="strip"
6542    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6543    break 2
6544  fi
6545done
6546  done
6547IFS=$as_save_IFS
6548
6549fi
6550fi
6551ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6552if test -n "$ac_ct_STRIP"; then
6553  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6554printf "%s\n" "$ac_ct_STRIP" >&6; }
6555else
6556  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6557printf "%s\n" "no" >&6; }
6558fi
6559
6560  if test "x$ac_ct_STRIP" = x; then
6561    STRIP=":"
6562  else
6563    case $cross_compiling:$ac_tool_warned in
6564yes:)
6565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6566printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6567ac_tool_warned=yes ;;
6568esac
6569    STRIP=$ac_ct_STRIP
6570  fi
6571else
6572  STRIP="$ac_cv_prog_STRIP"
6573fi
6574
6575test -z "$STRIP" && STRIP=:
6576
6577
6578
6579
6580
6581
6582if test -n "$ac_tool_prefix"; then
6583  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6584set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6586printf %s "checking for $ac_word... " >&6; }
6587if test ${ac_cv_prog_RANLIB+y}
6588then :
6589  printf %s "(cached) " >&6
6590else $as_nop
6591  if test -n "$RANLIB"; then
6592  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6593else
6594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595for as_dir in $PATH
6596do
6597  IFS=$as_save_IFS
6598  case $as_dir in #(((
6599    '') as_dir=./ ;;
6600    */) ;;
6601    *) as_dir=$as_dir/ ;;
6602  esac
6603    for ac_exec_ext in '' $ac_executable_extensions; do
6604  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6605    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6606    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6607    break 2
6608  fi
6609done
6610  done
6611IFS=$as_save_IFS
6612
6613fi
6614fi
6615RANLIB=$ac_cv_prog_RANLIB
6616if test -n "$RANLIB"; then
6617  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6618printf "%s\n" "$RANLIB" >&6; }
6619else
6620  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6621printf "%s\n" "no" >&6; }
6622fi
6623
6624
6625fi
6626if test -z "$ac_cv_prog_RANLIB"; then
6627  ac_ct_RANLIB=$RANLIB
6628  # Extract the first word of "ranlib", so it can be a program name with args.
6629set dummy ranlib; ac_word=$2
6630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6631printf %s "checking for $ac_word... " >&6; }
6632if test ${ac_cv_prog_ac_ct_RANLIB+y}
6633then :
6634  printf %s "(cached) " >&6
6635else $as_nop
6636  if test -n "$ac_ct_RANLIB"; then
6637  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6638else
6639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640for as_dir in $PATH
6641do
6642  IFS=$as_save_IFS
6643  case $as_dir in #(((
6644    '') as_dir=./ ;;
6645    */) ;;
6646    *) as_dir=$as_dir/ ;;
6647  esac
6648    for ac_exec_ext in '' $ac_executable_extensions; do
6649  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6650    ac_cv_prog_ac_ct_RANLIB="ranlib"
6651    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6652    break 2
6653  fi
6654done
6655  done
6656IFS=$as_save_IFS
6657
6658fi
6659fi
6660ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6661if test -n "$ac_ct_RANLIB"; then
6662  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6663printf "%s\n" "$ac_ct_RANLIB" >&6; }
6664else
6665  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666printf "%s\n" "no" >&6; }
6667fi
6668
6669  if test "x$ac_ct_RANLIB" = x; then
6670    RANLIB=":"
6671  else
6672    case $cross_compiling:$ac_tool_warned in
6673yes:)
6674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6675printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6676ac_tool_warned=yes ;;
6677esac
6678    RANLIB=$ac_ct_RANLIB
6679  fi
6680else
6681  RANLIB="$ac_cv_prog_RANLIB"
6682fi
6683
6684test -z "$RANLIB" && RANLIB=:
6685
6686
6687
6688
6689
6690
6691# Determine commands to create old-style static archives.
6692old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6693old_postinstall_cmds='chmod 644 $oldlib'
6694old_postuninstall_cmds=
6695
6696if test -n "$RANLIB"; then
6697  case $host_os in
6698  bitrig* | openbsd*)
6699    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6700    ;;
6701  *)
6702    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6703    ;;
6704  esac
6705  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6706fi
6707
6708case $host_os in
6709  darwin*)
6710    lock_old_archive_extraction=yes ;;
6711  *)
6712    lock_old_archive_extraction=no ;;
6713esac
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753# If no C compiler was specified, use CC.
6754LTCC=${LTCC-"$CC"}
6755
6756# If no C compiler flags were specified, use CFLAGS.
6757LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6758
6759# Allow CC to be a program name with arguments.
6760compiler=$CC
6761
6762
6763# Check for command to grab the raw symbol name followed by C symbol from nm.
6764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6765printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6766if test ${lt_cv_sys_global_symbol_pipe+y}
6767then :
6768  printf %s "(cached) " >&6
6769else $as_nop
6770
6771# These are sane defaults that work on at least a few old systems.
6772# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6773
6774# Character class describing NM global symbol codes.
6775symcode='[BCDEGRST]'
6776
6777# Regexp to match symbols that can be accessed directly from C.
6778sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6779
6780# Define system-specific variables.
6781case $host_os in
6782aix*)
6783  symcode='[BCDT]'
6784  ;;
6785cygwin* | mingw* | pw32* | cegcc*)
6786  symcode='[ABCDGISTW]'
6787  ;;
6788hpux*)
6789  if test ia64 = "$host_cpu"; then
6790    symcode='[ABCDEGRST]'
6791  fi
6792  ;;
6793irix* | nonstopux*)
6794  symcode='[BCDEGRST]'
6795  ;;
6796osf*)
6797  symcode='[BCDEGQRST]'
6798  ;;
6799solaris*)
6800  symcode='[BDRT]'
6801  ;;
6802sco3.2v5*)
6803  symcode='[DT]'
6804  ;;
6805sysv4.2uw2*)
6806  symcode='[DT]'
6807  ;;
6808sysv5* | sco5v6* | unixware* | OpenUNIX*)
6809  symcode='[ABDT]'
6810  ;;
6811sysv4)
6812  symcode='[DFNSTU]'
6813  ;;
6814esac
6815
6816# If we're using GNU nm, then use its standard symbol codes.
6817case `$NM -V 2>&1` in
6818*GNU* | *'with BFD'*)
6819  symcode='[ABCDGIRSTW]' ;;
6820esac
6821
6822if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6823  # Gets list of data symbols to import.
6824  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6825  # Adjust the below global symbol transforms to fixup imported variables.
6826  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6827  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6828  lt_c_name_lib_hook="\
6829  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6830  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6831else
6832  # Disable hooks by default.
6833  lt_cv_sys_global_symbol_to_import=
6834  lt_cdecl_hook=
6835  lt_c_name_hook=
6836  lt_c_name_lib_hook=
6837fi
6838
6839# Transform an extracted symbol line into a proper C declaration.
6840# Some systems (esp. on ia64) link data and code symbols differently,
6841# so use this general approach.
6842lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6843$lt_cdecl_hook\
6844" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6845" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6846
6847# Transform an extracted symbol line into symbol name and symbol address
6848lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6849$lt_c_name_hook\
6850" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6851" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6852
6853# Transform an extracted symbol line into symbol name with lib prefix and
6854# symbol address.
6855lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6856$lt_c_name_lib_hook\
6857" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6858" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6859" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6860
6861# Handle CRLF in mingw tool chain
6862opt_cr=
6863case $build_os in
6864mingw*)
6865  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6866  ;;
6867esac
6868
6869# Try without a prefix underscore, then with it.
6870for ac_symprfx in "" "_"; do
6871
6872  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6873  symxfrm="\\1 $ac_symprfx\\2 \\2"
6874
6875  # Write the raw and C identifiers.
6876  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6877    # Fake it for dumpbin and say T for any non-static function,
6878    # D for any global variable and I for any imported variable.
6879    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6880    # which start with @ or ?.
6881    lt_cv_sys_global_symbol_pipe="$AWK '"\
6882"     {last_section=section; section=\$ 3};"\
6883"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6884"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6885"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6886"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6887"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6888"     \$ 0!~/External *\|/{next};"\
6889"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6890"     {if(hide[section]) next};"\
6891"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6892"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6893"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6894"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6895"     ' prfx=^$ac_symprfx"
6896  else
6897    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6898  fi
6899  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6900
6901  # Check to see that the pipe works correctly.
6902  pipe_works=no
6903
6904  rm -f conftest*
6905  cat > conftest.$ac_ext <<_LT_EOF
6906#ifdef __cplusplus
6907extern "C" {
6908#endif
6909char nm_test_var;
6910void nm_test_func(void);
6911void nm_test_func(void){}
6912#ifdef __cplusplus
6913}
6914#endif
6915int main(){nm_test_var='a';nm_test_func();return(0);}
6916_LT_EOF
6917
6918  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6919  (eval $ac_compile) 2>&5
6920  ac_status=$?
6921  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6922  test $ac_status = 0; }; then
6923    # Now try to grab the symbols.
6924    nlist=conftest.nm
6925    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6926  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6927  ac_status=$?
6928  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6929  test $ac_status = 0; } && test -s "$nlist"; then
6930      # Try sorting and uniquifying the output.
6931      if sort "$nlist" | uniq > "$nlist"T; then
6932	mv -f "$nlist"T "$nlist"
6933      else
6934	rm -f "$nlist"T
6935      fi
6936
6937      # Make sure that we snagged all the symbols we need.
6938      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6939	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6940	  cat <<_LT_EOF > conftest.$ac_ext
6941/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6942#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6943/* DATA imports from DLLs on WIN32 can't be const, because runtime
6944   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6945# define LT_DLSYM_CONST
6946#elif defined __osf__
6947/* This system does not cope well with relocations in const data.  */
6948# define LT_DLSYM_CONST
6949#else
6950# define LT_DLSYM_CONST const
6951#endif
6952
6953#ifdef __cplusplus
6954extern "C" {
6955#endif
6956
6957_LT_EOF
6958	  # Now generate the symbol file.
6959	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6960
6961	  cat <<_LT_EOF >> conftest.$ac_ext
6962
6963/* The mapping between symbol names and symbols.  */
6964LT_DLSYM_CONST struct {
6965  const char *name;
6966  void       *address;
6967}
6968lt__PROGRAM__LTX_preloaded_symbols[] =
6969{
6970  { "@PROGRAM@", (void *) 0 },
6971_LT_EOF
6972	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6973	  cat <<\_LT_EOF >> conftest.$ac_ext
6974  {0, (void *) 0}
6975};
6976
6977/* This works around a problem in FreeBSD linker */
6978#ifdef FREEBSD_WORKAROUND
6979static const void *lt_preloaded_setup() {
6980  return lt__PROGRAM__LTX_preloaded_symbols;
6981}
6982#endif
6983
6984#ifdef __cplusplus
6985}
6986#endif
6987_LT_EOF
6988	  # Now try linking the two files.
6989	  mv conftest.$ac_objext conftstm.$ac_objext
6990	  lt_globsym_save_LIBS=$LIBS
6991	  lt_globsym_save_CFLAGS=$CFLAGS
6992	  LIBS=conftstm.$ac_objext
6993	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6994	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6995  (eval $ac_link) 2>&5
6996  ac_status=$?
6997  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6998  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6999	    pipe_works=yes
7000	  fi
7001	  LIBS=$lt_globsym_save_LIBS
7002	  CFLAGS=$lt_globsym_save_CFLAGS
7003	else
7004	  echo "cannot find nm_test_func in $nlist" >&5
7005	fi
7006      else
7007	echo "cannot find nm_test_var in $nlist" >&5
7008      fi
7009    else
7010      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7011    fi
7012  else
7013    echo "$progname: failed program was:" >&5
7014    cat conftest.$ac_ext >&5
7015  fi
7016  rm -rf conftest* conftst*
7017
7018  # Do not use the global_symbol_pipe unless it works.
7019  if test yes = "$pipe_works"; then
7020    break
7021  else
7022    lt_cv_sys_global_symbol_pipe=
7023  fi
7024done
7025
7026fi
7027
7028if test -z "$lt_cv_sys_global_symbol_pipe"; then
7029  lt_cv_sys_global_symbol_to_cdecl=
7030fi
7031if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7032  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7033printf "%s\n" "failed" >&6; }
7034else
7035  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7036printf "%s\n" "ok" >&6; }
7037fi
7038
7039# Response file support.
7040if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7041  nm_file_list_spec='@'
7042elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7043  nm_file_list_spec='@'
7044fi
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7083printf %s "checking for sysroot... " >&6; }
7084
7085# Check whether --with-sysroot was given.
7086if test ${with_sysroot+y}
7087then :
7088  withval=$with_sysroot;
7089else $as_nop
7090  with_sysroot=no
7091fi
7092
7093
7094lt_sysroot=
7095case $with_sysroot in #(
7096 yes)
7097   if test yes = "$GCC"; then
7098     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7099   fi
7100   ;; #(
7101 /*)
7102   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7103   ;; #(
7104 no|'')
7105   ;; #(
7106 *)
7107   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7108printf "%s\n" "$with_sysroot" >&6; }
7109   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7110   ;;
7111esac
7112
7113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7114printf "%s\n" "${lt_sysroot:-no}" >&6; }
7115
7116
7117
7118
7119
7120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7121printf %s "checking for a working dd... " >&6; }
7122if test ${ac_cv_path_lt_DD+y}
7123then :
7124  printf %s "(cached) " >&6
7125else $as_nop
7126  printf 0123456789abcdef0123456789abcdef >conftest.i
7127cat conftest.i conftest.i >conftest2.i
7128: ${lt_DD:=$DD}
7129if test -z "$lt_DD"; then
7130  ac_path_lt_DD_found=false
7131  # Loop through the user's path and test for each of PROGNAME-LIST
7132  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133for as_dir in $PATH
7134do
7135  IFS=$as_save_IFS
7136  case $as_dir in #(((
7137    '') as_dir=./ ;;
7138    */) ;;
7139    *) as_dir=$as_dir/ ;;
7140  esac
7141    for ac_prog in dd
7142   do
7143    for ac_exec_ext in '' $ac_executable_extensions; do
7144      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7145      as_fn_executable_p "$ac_path_lt_DD" || continue
7146if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7147  cmp -s conftest.i conftest.out \
7148  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7149fi
7150      $ac_path_lt_DD_found && break 3
7151    done
7152  done
7153  done
7154IFS=$as_save_IFS
7155  if test -z "$ac_cv_path_lt_DD"; then
7156    :
7157  fi
7158else
7159  ac_cv_path_lt_DD=$lt_DD
7160fi
7161
7162rm -f conftest.i conftest2.i conftest.out
7163fi
7164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7165printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7166
7167
7168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7169printf %s "checking how to truncate binary pipes... " >&6; }
7170if test ${lt_cv_truncate_bin+y}
7171then :
7172  printf %s "(cached) " >&6
7173else $as_nop
7174  printf 0123456789abcdef0123456789abcdef >conftest.i
7175cat conftest.i conftest.i >conftest2.i
7176lt_cv_truncate_bin=
7177if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7178  cmp -s conftest.i conftest.out \
7179  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7180fi
7181rm -f conftest.i conftest2.i conftest.out
7182test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7183fi
7184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7185printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7186
7187
7188
7189
7190
7191
7192
7193# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7194func_cc_basename ()
7195{
7196    for cc_temp in $*""; do
7197      case $cc_temp in
7198        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7199        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7200        \-*) ;;
7201        *) break;;
7202      esac
7203    done
7204    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7205}
7206
7207# Check whether --enable-libtool-lock was given.
7208if test ${enable_libtool_lock+y}
7209then :
7210  enableval=$enable_libtool_lock;
7211fi
7212
7213test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7214
7215# Some flags need to be propagated to the compiler or linker for good
7216# libtool support.
7217case $host in
7218ia64-*-hpux*)
7219  # Find out what ABI is being produced by ac_compile, and set mode
7220  # options accordingly.
7221  echo 'int i;' > conftest.$ac_ext
7222  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7223  (eval $ac_compile) 2>&5
7224  ac_status=$?
7225  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7226  test $ac_status = 0; }; then
7227    case `$FILECMD conftest.$ac_objext` in
7228      *ELF-32*)
7229	HPUX_IA64_MODE=32
7230	;;
7231      *ELF-64*)
7232	HPUX_IA64_MODE=64
7233	;;
7234    esac
7235  fi
7236  rm -rf conftest*
7237  ;;
7238*-*-irix6*)
7239  # Find out what ABI is being produced by ac_compile, and set linker
7240  # options accordingly.
7241  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7242  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7243  (eval $ac_compile) 2>&5
7244  ac_status=$?
7245  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7246  test $ac_status = 0; }; then
7247    if test yes = "$lt_cv_prog_gnu_ld"; then
7248      case `$FILECMD conftest.$ac_objext` in
7249	*32-bit*)
7250	  LD="${LD-ld} -melf32bsmip"
7251	  ;;
7252	*N32*)
7253	  LD="${LD-ld} -melf32bmipn32"
7254	  ;;
7255	*64-bit*)
7256	  LD="${LD-ld} -melf64bmip"
7257	;;
7258      esac
7259    else
7260      case `$FILECMD conftest.$ac_objext` in
7261	*32-bit*)
7262	  LD="${LD-ld} -32"
7263	  ;;
7264	*N32*)
7265	  LD="${LD-ld} -n32"
7266	  ;;
7267	*64-bit*)
7268	  LD="${LD-ld} -64"
7269	  ;;
7270      esac
7271    fi
7272  fi
7273  rm -rf conftest*
7274  ;;
7275
7276mips64*-*linux*)
7277  # Find out what ABI is being produced by ac_compile, and set linker
7278  # options accordingly.
7279  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7280  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7281  (eval $ac_compile) 2>&5
7282  ac_status=$?
7283  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7284  test $ac_status = 0; }; then
7285    emul=elf
7286    case `$FILECMD conftest.$ac_objext` in
7287      *32-bit*)
7288	emul="${emul}32"
7289	;;
7290      *64-bit*)
7291	emul="${emul}64"
7292	;;
7293    esac
7294    case `$FILECMD conftest.$ac_objext` in
7295      *MSB*)
7296	emul="${emul}btsmip"
7297	;;
7298      *LSB*)
7299	emul="${emul}ltsmip"
7300	;;
7301    esac
7302    case `$FILECMD conftest.$ac_objext` in
7303      *N32*)
7304	emul="${emul}n32"
7305	;;
7306    esac
7307    LD="${LD-ld} -m $emul"
7308  fi
7309  rm -rf conftest*
7310  ;;
7311
7312x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7313s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7314  # Find out what ABI is being produced by ac_compile, and set linker
7315  # options accordingly.  Note that the listed cases only cover the
7316  # situations where additional linker options are needed (such as when
7317  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7318  # vice versa); the common cases where no linker options are needed do
7319  # not appear in the list.
7320  echo 'int i;' > conftest.$ac_ext
7321  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7322  (eval $ac_compile) 2>&5
7323  ac_status=$?
7324  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7325  test $ac_status = 0; }; then
7326    case `$FILECMD conftest.o` in
7327      *32-bit*)
7328	case $host in
7329	  x86_64-*kfreebsd*-gnu)
7330	    LD="${LD-ld} -m elf_i386_fbsd"
7331	    ;;
7332	  x86_64-*linux*)
7333	    case `$FILECMD conftest.o` in
7334	      *x86-64*)
7335		LD="${LD-ld} -m elf32_x86_64"
7336		;;
7337	      *)
7338		LD="${LD-ld} -m elf_i386"
7339		;;
7340	    esac
7341	    ;;
7342	  powerpc64le-*linux*)
7343	    LD="${LD-ld} -m elf32lppclinux"
7344	    ;;
7345	  powerpc64-*linux*)
7346	    LD="${LD-ld} -m elf32ppclinux"
7347	    ;;
7348	  s390x-*linux*)
7349	    LD="${LD-ld} -m elf_s390"
7350	    ;;
7351	  sparc64-*linux*)
7352	    LD="${LD-ld} -m elf32_sparc"
7353	    ;;
7354	esac
7355	;;
7356      *64-bit*)
7357	case $host in
7358	  x86_64-*kfreebsd*-gnu)
7359	    LD="${LD-ld} -m elf_x86_64_fbsd"
7360	    ;;
7361	  x86_64-*linux*)
7362	    LD="${LD-ld} -m elf_x86_64"
7363	    ;;
7364	  powerpcle-*linux*)
7365	    LD="${LD-ld} -m elf64lppc"
7366	    ;;
7367	  powerpc-*linux*)
7368	    LD="${LD-ld} -m elf64ppc"
7369	    ;;
7370	  s390*-*linux*|s390*-*tpf*)
7371	    LD="${LD-ld} -m elf64_s390"
7372	    ;;
7373	  sparc*-*linux*)
7374	    LD="${LD-ld} -m elf64_sparc"
7375	    ;;
7376	esac
7377	;;
7378    esac
7379  fi
7380  rm -rf conftest*
7381  ;;
7382
7383*-*-sco3.2v5*)
7384  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7385  SAVE_CFLAGS=$CFLAGS
7386  CFLAGS="$CFLAGS -belf"
7387  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7388printf %s "checking whether the C compiler needs -belf... " >&6; }
7389if test ${lt_cv_cc_needs_belf+y}
7390then :
7391  printf %s "(cached) " >&6
7392else $as_nop
7393  ac_ext=c
7394ac_cpp='$CPP $CPPFLAGS'
7395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7397ac_compiler_gnu=$ac_cv_c_compiler_gnu
7398
7399     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400/* end confdefs.h.  */
7401
7402int
7403main (void)
7404{
7405
7406  ;
7407  return 0;
7408}
7409_ACEOF
7410if ac_fn_c_try_link "$LINENO"
7411then :
7412  lt_cv_cc_needs_belf=yes
7413else $as_nop
7414  lt_cv_cc_needs_belf=no
7415fi
7416rm -f core conftest.err conftest.$ac_objext conftest.beam \
7417    conftest$ac_exeext conftest.$ac_ext
7418     ac_ext=c
7419ac_cpp='$CPP $CPPFLAGS'
7420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7422ac_compiler_gnu=$ac_cv_c_compiler_gnu
7423
7424fi
7425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7426printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7427  if test yes != "$lt_cv_cc_needs_belf"; then
7428    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7429    CFLAGS=$SAVE_CFLAGS
7430  fi
7431  ;;
7432*-*solaris*)
7433  # Find out what ABI is being produced by ac_compile, and set linker
7434  # options accordingly.
7435  echo 'int i;' > conftest.$ac_ext
7436  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7437  (eval $ac_compile) 2>&5
7438  ac_status=$?
7439  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7440  test $ac_status = 0; }; then
7441    case `$FILECMD conftest.o` in
7442    *64-bit*)
7443      case $lt_cv_prog_gnu_ld in
7444      yes*)
7445        case $host in
7446        i?86-*-solaris*|x86_64-*-solaris*)
7447          LD="${LD-ld} -m elf_x86_64"
7448          ;;
7449        sparc*-*-solaris*)
7450          LD="${LD-ld} -m elf64_sparc"
7451          ;;
7452        esac
7453        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7454        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7455          LD=${LD-ld}_sol2
7456        fi
7457        ;;
7458      *)
7459	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7460	  LD="${LD-ld} -64"
7461	fi
7462	;;
7463      esac
7464      ;;
7465    esac
7466  fi
7467  rm -rf conftest*
7468  ;;
7469esac
7470
7471need_locks=$enable_libtool_lock
7472
7473if test -n "$ac_tool_prefix"; then
7474  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7475set dummy ${ac_tool_prefix}mt; ac_word=$2
7476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477printf %s "checking for $ac_word... " >&6; }
7478if test ${ac_cv_prog_MANIFEST_TOOL+y}
7479then :
7480  printf %s "(cached) " >&6
7481else $as_nop
7482  if test -n "$MANIFEST_TOOL"; then
7483  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7484else
7485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486for as_dir in $PATH
7487do
7488  IFS=$as_save_IFS
7489  case $as_dir in #(((
7490    '') as_dir=./ ;;
7491    */) ;;
7492    *) as_dir=$as_dir/ ;;
7493  esac
7494    for ac_exec_ext in '' $ac_executable_extensions; do
7495  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7496    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7497    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7498    break 2
7499  fi
7500done
7501  done
7502IFS=$as_save_IFS
7503
7504fi
7505fi
7506MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7507if test -n "$MANIFEST_TOOL"; then
7508  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7509printf "%s\n" "$MANIFEST_TOOL" >&6; }
7510else
7511  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7512printf "%s\n" "no" >&6; }
7513fi
7514
7515
7516fi
7517if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7518  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7519  # Extract the first word of "mt", so it can be a program name with args.
7520set dummy mt; ac_word=$2
7521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7522printf %s "checking for $ac_word... " >&6; }
7523if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7524then :
7525  printf %s "(cached) " >&6
7526else $as_nop
7527  if test -n "$ac_ct_MANIFEST_TOOL"; then
7528  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7529else
7530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531for as_dir in $PATH
7532do
7533  IFS=$as_save_IFS
7534  case $as_dir in #(((
7535    '') as_dir=./ ;;
7536    */) ;;
7537    *) as_dir=$as_dir/ ;;
7538  esac
7539    for ac_exec_ext in '' $ac_executable_extensions; do
7540  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7541    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7542    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7543    break 2
7544  fi
7545done
7546  done
7547IFS=$as_save_IFS
7548
7549fi
7550fi
7551ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7552if test -n "$ac_ct_MANIFEST_TOOL"; then
7553  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7554printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7555else
7556  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557printf "%s\n" "no" >&6; }
7558fi
7559
7560  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7561    MANIFEST_TOOL=":"
7562  else
7563    case $cross_compiling:$ac_tool_warned in
7564yes:)
7565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7566printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7567ac_tool_warned=yes ;;
7568esac
7569    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7570  fi
7571else
7572  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7573fi
7574
7575test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7577printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7578if test ${lt_cv_path_mainfest_tool+y}
7579then :
7580  printf %s "(cached) " >&6
7581else $as_nop
7582  lt_cv_path_mainfest_tool=no
7583  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7584  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7585  cat conftest.err >&5
7586  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7587    lt_cv_path_mainfest_tool=yes
7588  fi
7589  rm -f conftest*
7590fi
7591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7592printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7593if test yes != "$lt_cv_path_mainfest_tool"; then
7594  MANIFEST_TOOL=:
7595fi
7596
7597
7598
7599
7600
7601
7602  case $host_os in
7603    rhapsody* | darwin*)
7604    if test -n "$ac_tool_prefix"; then
7605  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7606set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7608printf %s "checking for $ac_word... " >&6; }
7609if test ${ac_cv_prog_DSYMUTIL+y}
7610then :
7611  printf %s "(cached) " >&6
7612else $as_nop
7613  if test -n "$DSYMUTIL"; then
7614  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7615else
7616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617for as_dir in $PATH
7618do
7619  IFS=$as_save_IFS
7620  case $as_dir in #(((
7621    '') as_dir=./ ;;
7622    */) ;;
7623    *) as_dir=$as_dir/ ;;
7624  esac
7625    for ac_exec_ext in '' $ac_executable_extensions; do
7626  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7627    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7628    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7629    break 2
7630  fi
7631done
7632  done
7633IFS=$as_save_IFS
7634
7635fi
7636fi
7637DSYMUTIL=$ac_cv_prog_DSYMUTIL
7638if test -n "$DSYMUTIL"; then
7639  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7640printf "%s\n" "$DSYMUTIL" >&6; }
7641else
7642  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643printf "%s\n" "no" >&6; }
7644fi
7645
7646
7647fi
7648if test -z "$ac_cv_prog_DSYMUTIL"; then
7649  ac_ct_DSYMUTIL=$DSYMUTIL
7650  # Extract the first word of "dsymutil", so it can be a program name with args.
7651set dummy dsymutil; ac_word=$2
7652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7653printf %s "checking for $ac_word... " >&6; }
7654if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7655then :
7656  printf %s "(cached) " >&6
7657else $as_nop
7658  if test -n "$ac_ct_DSYMUTIL"; then
7659  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7660else
7661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7662for as_dir in $PATH
7663do
7664  IFS=$as_save_IFS
7665  case $as_dir in #(((
7666    '') as_dir=./ ;;
7667    */) ;;
7668    *) as_dir=$as_dir/ ;;
7669  esac
7670    for ac_exec_ext in '' $ac_executable_extensions; do
7671  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7672    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7673    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7674    break 2
7675  fi
7676done
7677  done
7678IFS=$as_save_IFS
7679
7680fi
7681fi
7682ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7683if test -n "$ac_ct_DSYMUTIL"; then
7684  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7685printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7686else
7687  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7688printf "%s\n" "no" >&6; }
7689fi
7690
7691  if test "x$ac_ct_DSYMUTIL" = x; then
7692    DSYMUTIL=":"
7693  else
7694    case $cross_compiling:$ac_tool_warned in
7695yes:)
7696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7697printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7698ac_tool_warned=yes ;;
7699esac
7700    DSYMUTIL=$ac_ct_DSYMUTIL
7701  fi
7702else
7703  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7704fi
7705
7706    if test -n "$ac_tool_prefix"; then
7707  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7708set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7710printf %s "checking for $ac_word... " >&6; }
7711if test ${ac_cv_prog_NMEDIT+y}
7712then :
7713  printf %s "(cached) " >&6
7714else $as_nop
7715  if test -n "$NMEDIT"; then
7716  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7717else
7718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719for as_dir in $PATH
7720do
7721  IFS=$as_save_IFS
7722  case $as_dir in #(((
7723    '') as_dir=./ ;;
7724    */) ;;
7725    *) as_dir=$as_dir/ ;;
7726  esac
7727    for ac_exec_ext in '' $ac_executable_extensions; do
7728  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7729    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7730    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7731    break 2
7732  fi
7733done
7734  done
7735IFS=$as_save_IFS
7736
7737fi
7738fi
7739NMEDIT=$ac_cv_prog_NMEDIT
7740if test -n "$NMEDIT"; then
7741  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7742printf "%s\n" "$NMEDIT" >&6; }
7743else
7744  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7745printf "%s\n" "no" >&6; }
7746fi
7747
7748
7749fi
7750if test -z "$ac_cv_prog_NMEDIT"; then
7751  ac_ct_NMEDIT=$NMEDIT
7752  # Extract the first word of "nmedit", so it can be a program name with args.
7753set dummy nmedit; ac_word=$2
7754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7755printf %s "checking for $ac_word... " >&6; }
7756if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7757then :
7758  printf %s "(cached) " >&6
7759else $as_nop
7760  if test -n "$ac_ct_NMEDIT"; then
7761  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7762else
7763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764for as_dir in $PATH
7765do
7766  IFS=$as_save_IFS
7767  case $as_dir in #(((
7768    '') as_dir=./ ;;
7769    */) ;;
7770    *) as_dir=$as_dir/ ;;
7771  esac
7772    for ac_exec_ext in '' $ac_executable_extensions; do
7773  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7774    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7775    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7776    break 2
7777  fi
7778done
7779  done
7780IFS=$as_save_IFS
7781
7782fi
7783fi
7784ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7785if test -n "$ac_ct_NMEDIT"; then
7786  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7787printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7788else
7789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790printf "%s\n" "no" >&6; }
7791fi
7792
7793  if test "x$ac_ct_NMEDIT" = x; then
7794    NMEDIT=":"
7795  else
7796    case $cross_compiling:$ac_tool_warned in
7797yes:)
7798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7799printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7800ac_tool_warned=yes ;;
7801esac
7802    NMEDIT=$ac_ct_NMEDIT
7803  fi
7804else
7805  NMEDIT="$ac_cv_prog_NMEDIT"
7806fi
7807
7808    if test -n "$ac_tool_prefix"; then
7809  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7810set dummy ${ac_tool_prefix}lipo; ac_word=$2
7811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812printf %s "checking for $ac_word... " >&6; }
7813if test ${ac_cv_prog_LIPO+y}
7814then :
7815  printf %s "(cached) " >&6
7816else $as_nop
7817  if test -n "$LIPO"; then
7818  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7819else
7820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821for as_dir in $PATH
7822do
7823  IFS=$as_save_IFS
7824  case $as_dir in #(((
7825    '') as_dir=./ ;;
7826    */) ;;
7827    *) as_dir=$as_dir/ ;;
7828  esac
7829    for ac_exec_ext in '' $ac_executable_extensions; do
7830  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7831    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7832    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7833    break 2
7834  fi
7835done
7836  done
7837IFS=$as_save_IFS
7838
7839fi
7840fi
7841LIPO=$ac_cv_prog_LIPO
7842if test -n "$LIPO"; then
7843  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7844printf "%s\n" "$LIPO" >&6; }
7845else
7846  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847printf "%s\n" "no" >&6; }
7848fi
7849
7850
7851fi
7852if test -z "$ac_cv_prog_LIPO"; then
7853  ac_ct_LIPO=$LIPO
7854  # Extract the first word of "lipo", so it can be a program name with args.
7855set dummy lipo; ac_word=$2
7856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7857printf %s "checking for $ac_word... " >&6; }
7858if test ${ac_cv_prog_ac_ct_LIPO+y}
7859then :
7860  printf %s "(cached) " >&6
7861else $as_nop
7862  if test -n "$ac_ct_LIPO"; then
7863  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7864else
7865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7866for as_dir in $PATH
7867do
7868  IFS=$as_save_IFS
7869  case $as_dir in #(((
7870    '') as_dir=./ ;;
7871    */) ;;
7872    *) as_dir=$as_dir/ ;;
7873  esac
7874    for ac_exec_ext in '' $ac_executable_extensions; do
7875  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7876    ac_cv_prog_ac_ct_LIPO="lipo"
7877    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7878    break 2
7879  fi
7880done
7881  done
7882IFS=$as_save_IFS
7883
7884fi
7885fi
7886ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7887if test -n "$ac_ct_LIPO"; then
7888  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7889printf "%s\n" "$ac_ct_LIPO" >&6; }
7890else
7891  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7892printf "%s\n" "no" >&6; }
7893fi
7894
7895  if test "x$ac_ct_LIPO" = x; then
7896    LIPO=":"
7897  else
7898    case $cross_compiling:$ac_tool_warned in
7899yes:)
7900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7901printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7902ac_tool_warned=yes ;;
7903esac
7904    LIPO=$ac_ct_LIPO
7905  fi
7906else
7907  LIPO="$ac_cv_prog_LIPO"
7908fi
7909
7910    if test -n "$ac_tool_prefix"; then
7911  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7912set dummy ${ac_tool_prefix}otool; ac_word=$2
7913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7914printf %s "checking for $ac_word... " >&6; }
7915if test ${ac_cv_prog_OTOOL+y}
7916then :
7917  printf %s "(cached) " >&6
7918else $as_nop
7919  if test -n "$OTOOL"; then
7920  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7921else
7922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923for as_dir in $PATH
7924do
7925  IFS=$as_save_IFS
7926  case $as_dir in #(((
7927    '') as_dir=./ ;;
7928    */) ;;
7929    *) as_dir=$as_dir/ ;;
7930  esac
7931    for ac_exec_ext in '' $ac_executable_extensions; do
7932  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7933    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7934    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7935    break 2
7936  fi
7937done
7938  done
7939IFS=$as_save_IFS
7940
7941fi
7942fi
7943OTOOL=$ac_cv_prog_OTOOL
7944if test -n "$OTOOL"; then
7945  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7946printf "%s\n" "$OTOOL" >&6; }
7947else
7948  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7949printf "%s\n" "no" >&6; }
7950fi
7951
7952
7953fi
7954if test -z "$ac_cv_prog_OTOOL"; then
7955  ac_ct_OTOOL=$OTOOL
7956  # Extract the first word of "otool", so it can be a program name with args.
7957set dummy otool; ac_word=$2
7958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7959printf %s "checking for $ac_word... " >&6; }
7960if test ${ac_cv_prog_ac_ct_OTOOL+y}
7961then :
7962  printf %s "(cached) " >&6
7963else $as_nop
7964  if test -n "$ac_ct_OTOOL"; then
7965  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7966else
7967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968for as_dir in $PATH
7969do
7970  IFS=$as_save_IFS
7971  case $as_dir in #(((
7972    '') as_dir=./ ;;
7973    */) ;;
7974    *) as_dir=$as_dir/ ;;
7975  esac
7976    for ac_exec_ext in '' $ac_executable_extensions; do
7977  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7978    ac_cv_prog_ac_ct_OTOOL="otool"
7979    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7980    break 2
7981  fi
7982done
7983  done
7984IFS=$as_save_IFS
7985
7986fi
7987fi
7988ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7989if test -n "$ac_ct_OTOOL"; then
7990  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7991printf "%s\n" "$ac_ct_OTOOL" >&6; }
7992else
7993  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7994printf "%s\n" "no" >&6; }
7995fi
7996
7997  if test "x$ac_ct_OTOOL" = x; then
7998    OTOOL=":"
7999  else
8000    case $cross_compiling:$ac_tool_warned in
8001yes:)
8002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8003printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8004ac_tool_warned=yes ;;
8005esac
8006    OTOOL=$ac_ct_OTOOL
8007  fi
8008else
8009  OTOOL="$ac_cv_prog_OTOOL"
8010fi
8011
8012    if test -n "$ac_tool_prefix"; then
8013  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8014set dummy ${ac_tool_prefix}otool64; ac_word=$2
8015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016printf %s "checking for $ac_word... " >&6; }
8017if test ${ac_cv_prog_OTOOL64+y}
8018then :
8019  printf %s "(cached) " >&6
8020else $as_nop
8021  if test -n "$OTOOL64"; then
8022  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8023else
8024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025for as_dir in $PATH
8026do
8027  IFS=$as_save_IFS
8028  case $as_dir in #(((
8029    '') as_dir=./ ;;
8030    */) ;;
8031    *) as_dir=$as_dir/ ;;
8032  esac
8033    for ac_exec_ext in '' $ac_executable_extensions; do
8034  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8035    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8036    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8037    break 2
8038  fi
8039done
8040  done
8041IFS=$as_save_IFS
8042
8043fi
8044fi
8045OTOOL64=$ac_cv_prog_OTOOL64
8046if test -n "$OTOOL64"; then
8047  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8048printf "%s\n" "$OTOOL64" >&6; }
8049else
8050  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051printf "%s\n" "no" >&6; }
8052fi
8053
8054
8055fi
8056if test -z "$ac_cv_prog_OTOOL64"; then
8057  ac_ct_OTOOL64=$OTOOL64
8058  # Extract the first word of "otool64", so it can be a program name with args.
8059set dummy otool64; ac_word=$2
8060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8061printf %s "checking for $ac_word... " >&6; }
8062if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8063then :
8064  printf %s "(cached) " >&6
8065else $as_nop
8066  if test -n "$ac_ct_OTOOL64"; then
8067  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8068else
8069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070for as_dir in $PATH
8071do
8072  IFS=$as_save_IFS
8073  case $as_dir in #(((
8074    '') as_dir=./ ;;
8075    */) ;;
8076    *) as_dir=$as_dir/ ;;
8077  esac
8078    for ac_exec_ext in '' $ac_executable_extensions; do
8079  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8080    ac_cv_prog_ac_ct_OTOOL64="otool64"
8081    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8082    break 2
8083  fi
8084done
8085  done
8086IFS=$as_save_IFS
8087
8088fi
8089fi
8090ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8091if test -n "$ac_ct_OTOOL64"; then
8092  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8093printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8094else
8095  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096printf "%s\n" "no" >&6; }
8097fi
8098
8099  if test "x$ac_ct_OTOOL64" = x; then
8100    OTOOL64=":"
8101  else
8102    case $cross_compiling:$ac_tool_warned in
8103yes:)
8104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8105printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8106ac_tool_warned=yes ;;
8107esac
8108    OTOOL64=$ac_ct_OTOOL64
8109  fi
8110else
8111  OTOOL64="$ac_cv_prog_OTOOL64"
8112fi
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8141printf %s "checking for -single_module linker flag... " >&6; }
8142if test ${lt_cv_apple_cc_single_mod+y}
8143then :
8144  printf %s "(cached) " >&6
8145else $as_nop
8146  lt_cv_apple_cc_single_mod=no
8147      if test -z "$LT_MULTI_MODULE"; then
8148	# By default we will add the -single_module flag. You can override
8149	# by either setting the environment variable LT_MULTI_MODULE
8150	# non-empty at configure time, or by adding -multi_module to the
8151	# link flags.
8152	rm -rf libconftest.dylib*
8153	echo "int foo(void){return 1;}" > conftest.c
8154	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8155-dynamiclib -Wl,-single_module conftest.c" >&5
8156	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8157	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8158        _lt_result=$?
8159	# If there is a non-empty error log, and "single_module"
8160	# appears in it, assume the flag caused a linker warning
8161        if test -s conftest.err && $GREP single_module conftest.err; then
8162	  cat conftest.err >&5
8163	# Otherwise, if the output was created with a 0 exit code from
8164	# the compiler, it worked.
8165	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8166	  lt_cv_apple_cc_single_mod=yes
8167	else
8168	  cat conftest.err >&5
8169	fi
8170	rm -rf libconftest.dylib*
8171	rm -f conftest.*
8172      fi
8173fi
8174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8175printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8176
8177    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8178printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8179if test ${lt_cv_ld_exported_symbols_list+y}
8180then :
8181  printf %s "(cached) " >&6
8182else $as_nop
8183  lt_cv_ld_exported_symbols_list=no
8184      save_LDFLAGS=$LDFLAGS
8185      echo "_main" > conftest.sym
8186      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8187      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8188/* end confdefs.h.  */
8189
8190int
8191main (void)
8192{
8193
8194  ;
8195  return 0;
8196}
8197_ACEOF
8198if ac_fn_c_try_link "$LINENO"
8199then :
8200  lt_cv_ld_exported_symbols_list=yes
8201else $as_nop
8202  lt_cv_ld_exported_symbols_list=no
8203fi
8204rm -f core conftest.err conftest.$ac_objext conftest.beam \
8205    conftest$ac_exeext conftest.$ac_ext
8206	LDFLAGS=$save_LDFLAGS
8207
8208fi
8209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8210printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8211
8212    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8213printf %s "checking for -force_load linker flag... " >&6; }
8214if test ${lt_cv_ld_force_load+y}
8215then :
8216  printf %s "(cached) " >&6
8217else $as_nop
8218  lt_cv_ld_force_load=no
8219      cat > conftest.c << _LT_EOF
8220int forced_loaded() { return 2;}
8221_LT_EOF
8222      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8223      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8224      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8225      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8226      echo "$RANLIB libconftest.a" >&5
8227      $RANLIB libconftest.a 2>&5
8228      cat > conftest.c << _LT_EOF
8229int main() { return 0;}
8230_LT_EOF
8231      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8232      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8233      _lt_result=$?
8234      if test -s conftest.err && $GREP force_load conftest.err; then
8235	cat conftest.err >&5
8236      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8237	lt_cv_ld_force_load=yes
8238      else
8239	cat conftest.err >&5
8240      fi
8241        rm -f conftest.err libconftest.a conftest conftest.c
8242        rm -rf conftest.dSYM
8243
8244fi
8245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8246printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8247    case $host_os in
8248    rhapsody* | darwin1.[012])
8249      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8250    darwin1.*)
8251      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8252    darwin*)
8253      case $MACOSX_DEPLOYMENT_TARGET,$host in
8254        10.[012],*|,*powerpc*-darwin[5-8]*)
8255          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8256        *)
8257          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8258      esac
8259    ;;
8260  esac
8261    if test yes = "$lt_cv_apple_cc_single_mod"; then
8262      _lt_dar_single_mod='$single_module'
8263    fi
8264    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8265      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8266    else
8267      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8268    fi
8269    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8270      _lt_dsymutil='~$DSYMUTIL $lib || :'
8271    else
8272      _lt_dsymutil=
8273    fi
8274    ;;
8275  esac
8276
8277# func_munge_path_list VARIABLE PATH
8278# -----------------------------------
8279# VARIABLE is name of variable containing _space_ separated list of
8280# directories to be munged by the contents of PATH, which is string
8281# having a format:
8282# "DIR[:DIR]:"
8283#       string "DIR[ DIR]" will be prepended to VARIABLE
8284# ":DIR[:DIR]"
8285#       string "DIR[ DIR]" will be appended to VARIABLE
8286# "DIRP[:DIRP]::[DIRA:]DIRA"
8287#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8288#       "DIRA[ DIRA]" will be appended to VARIABLE
8289# "DIR[:DIR]"
8290#       VARIABLE will be replaced by "DIR[ DIR]"
8291func_munge_path_list ()
8292{
8293    case x$2 in
8294    x)
8295        ;;
8296    *:)
8297        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8298        ;;
8299    x:*)
8300        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8301        ;;
8302    *::*)
8303        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8304        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8305        ;;
8306    *)
8307        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8308        ;;
8309    esac
8310}
8311
8312ac_header= ac_cache=
8313for ac_item in $ac_header_c_list
8314do
8315  if test $ac_cache; then
8316    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8317    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8318      printf "%s\n" "#define $ac_item 1" >> confdefs.h
8319    fi
8320    ac_header= ac_cache=
8321  elif test $ac_header; then
8322    ac_cache=$ac_item
8323  else
8324    ac_header=$ac_item
8325  fi
8326done
8327
8328
8329
8330
8331
8332
8333
8334
8335if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8336then :
8337
8338printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8339
8340fi
8341ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8342"
8343if test "x$ac_cv_header_dlfcn_h" = xyes
8344then :
8345  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8346
8347fi
8348
8349
8350
8351
8352
8353# Set options
8354
8355
8356
8357        enable_dlopen=no
8358
8359
8360  enable_win32_dll=no
8361
8362
8363            # Check whether --enable-shared was given.
8364if test ${enable_shared+y}
8365then :
8366  enableval=$enable_shared; p=${PACKAGE-default}
8367    case $enableval in
8368    yes) enable_shared=yes ;;
8369    no) enable_shared=no ;;
8370    *)
8371      enable_shared=no
8372      # Look at the argument we got.  We use all the common list separators.
8373      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8374      for pkg in $enableval; do
8375	IFS=$lt_save_ifs
8376	if test "X$pkg" = "X$p"; then
8377	  enable_shared=yes
8378	fi
8379      done
8380      IFS=$lt_save_ifs
8381      ;;
8382    esac
8383else $as_nop
8384  enable_shared=yes
8385fi
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397# Check whether --with-pic was given.
8398if test ${with_pic+y}
8399then :
8400  withval=$with_pic; lt_p=${PACKAGE-default}
8401    case $withval in
8402    yes|no) pic_mode=$withval ;;
8403    *)
8404      pic_mode=default
8405      # Look at the argument we got.  We use all the common list separators.
8406      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8407      for lt_pkg in $withval; do
8408	IFS=$lt_save_ifs
8409	if test "X$lt_pkg" = "X$lt_p"; then
8410	  pic_mode=yes
8411	fi
8412      done
8413      IFS=$lt_save_ifs
8414      ;;
8415    esac
8416else $as_nop
8417  pic_mode=default
8418fi
8419
8420
8421
8422
8423
8424
8425
8426
8427  # Check whether --enable-fast-install was given.
8428if test ${enable_fast_install+y}
8429then :
8430  enableval=$enable_fast_install; p=${PACKAGE-default}
8431    case $enableval in
8432    yes) enable_fast_install=yes ;;
8433    no) enable_fast_install=no ;;
8434    *)
8435      enable_fast_install=no
8436      # Look at the argument we got.  We use all the common list separators.
8437      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8438      for pkg in $enableval; do
8439	IFS=$lt_save_ifs
8440	if test "X$pkg" = "X$p"; then
8441	  enable_fast_install=yes
8442	fi
8443      done
8444      IFS=$lt_save_ifs
8445      ;;
8446    esac
8447else $as_nop
8448  enable_fast_install=yes
8449fi
8450
8451
8452
8453
8454
8455
8456
8457
8458  shared_archive_member_spec=
8459case $host,$enable_shared in
8460power*-*-aix[5-9]*,yes)
8461  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8462printf %s "checking which variant of shared library versioning to provide... " >&6; }
8463
8464# Check whether --with-aix-soname was given.
8465if test ${with_aix_soname+y}
8466then :
8467  withval=$with_aix_soname; case $withval in
8468    aix|svr4|both)
8469      ;;
8470    *)
8471      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8472      ;;
8473    esac
8474    lt_cv_with_aix_soname=$with_aix_soname
8475else $as_nop
8476  if test ${lt_cv_with_aix_soname+y}
8477then :
8478  printf %s "(cached) " >&6
8479else $as_nop
8480  lt_cv_with_aix_soname=aix
8481fi
8482
8483    with_aix_soname=$lt_cv_with_aix_soname
8484fi
8485
8486  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8487printf "%s\n" "$with_aix_soname" >&6; }
8488  if test aix != "$with_aix_soname"; then
8489    # For the AIX way of multilib, we name the shared archive member
8490    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8491    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8492    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8493    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8494    if test 64 = "${OBJECT_MODE-32}"; then
8495      shared_archive_member_spec=shr_64
8496    else
8497      shared_archive_member_spec=shr
8498    fi
8499  fi
8500  ;;
8501*)
8502  with_aix_soname=aix
8503  ;;
8504esac
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515# This can be used to rebuild libtool when needed
8516LIBTOOL_DEPS=$ltmain
8517
8518# Always use our own libtool.
8519LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550test -z "$LN_S" && LN_S="ln -s"
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565if test -n "${ZSH_VERSION+set}"; then
8566   setopt NO_GLOB_SUBST
8567fi
8568
8569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8570printf %s "checking for objdir... " >&6; }
8571if test ${lt_cv_objdir+y}
8572then :
8573  printf %s "(cached) " >&6
8574else $as_nop
8575  rm -f .libs 2>/dev/null
8576mkdir .libs 2>/dev/null
8577if test -d .libs; then
8578  lt_cv_objdir=.libs
8579else
8580  # MS-DOS does not allow filenames that begin with a dot.
8581  lt_cv_objdir=_libs
8582fi
8583rmdir .libs 2>/dev/null
8584fi
8585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8586printf "%s\n" "$lt_cv_objdir" >&6; }
8587objdir=$lt_cv_objdir
8588
8589
8590
8591
8592
8593printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8594
8595
8596
8597
8598case $host_os in
8599aix3*)
8600  # AIX sometimes has problems with the GCC collect2 program.  For some
8601  # reason, if we set the COLLECT_NAMES environment variable, the problems
8602  # vanish in a puff of smoke.
8603  if test set != "${COLLECT_NAMES+set}"; then
8604    COLLECT_NAMES=
8605    export COLLECT_NAMES
8606  fi
8607  ;;
8608esac
8609
8610# Global variables:
8611ofile=libtool
8612can_build_shared=yes
8613
8614# All known linkers require a '.a' archive for static linking (except MSVC and
8615# ICC, which need '.lib').
8616libext=a
8617
8618with_gnu_ld=$lt_cv_prog_gnu_ld
8619
8620old_CC=$CC
8621old_CFLAGS=$CFLAGS
8622
8623# Set sane defaults for various variables
8624test -z "$CC" && CC=cc
8625test -z "$LTCC" && LTCC=$CC
8626test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8627test -z "$LD" && LD=ld
8628test -z "$ac_objext" && ac_objext=o
8629
8630func_cc_basename $compiler
8631cc_basename=$func_cc_basename_result
8632
8633
8634# Only perform the check for file, if the check method requires it
8635test -z "$MAGIC_CMD" && MAGIC_CMD=file
8636case $deplibs_check_method in
8637file_magic*)
8638  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8639    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8640printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8641if test ${lt_cv_path_MAGIC_CMD+y}
8642then :
8643  printf %s "(cached) " >&6
8644else $as_nop
8645  case $MAGIC_CMD in
8646[\\/*] |  ?:[\\/]*)
8647  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8648  ;;
8649*)
8650  lt_save_MAGIC_CMD=$MAGIC_CMD
8651  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8652  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8653  for ac_dir in $ac_dummy; do
8654    IFS=$lt_save_ifs
8655    test -z "$ac_dir" && ac_dir=.
8656    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8657      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8658      if test -n "$file_magic_test_file"; then
8659	case $deplibs_check_method in
8660	"file_magic "*)
8661	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8662	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8663	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8664	    $EGREP "$file_magic_regex" > /dev/null; then
8665	    :
8666	  else
8667	    cat <<_LT_EOF 1>&2
8668
8669*** Warning: the command libtool uses to detect shared libraries,
8670*** $file_magic_cmd, produces output that libtool cannot recognize.
8671*** The result is that libtool may fail to recognize shared libraries
8672*** as such.  This will affect the creation of libtool libraries that
8673*** depend on shared libraries, but programs linked with such libtool
8674*** libraries will work regardless of this problem.  Nevertheless, you
8675*** may want to report the problem to your system manager and/or to
8676*** bug-libtool@gnu.org
8677
8678_LT_EOF
8679	  fi ;;
8680	esac
8681      fi
8682      break
8683    fi
8684  done
8685  IFS=$lt_save_ifs
8686  MAGIC_CMD=$lt_save_MAGIC_CMD
8687  ;;
8688esac
8689fi
8690
8691MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8692if test -n "$MAGIC_CMD"; then
8693  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8694printf "%s\n" "$MAGIC_CMD" >&6; }
8695else
8696  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8697printf "%s\n" "no" >&6; }
8698fi
8699
8700
8701
8702
8703
8704if test -z "$lt_cv_path_MAGIC_CMD"; then
8705  if test -n "$ac_tool_prefix"; then
8706    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8707printf %s "checking for file... " >&6; }
8708if test ${lt_cv_path_MAGIC_CMD+y}
8709then :
8710  printf %s "(cached) " >&6
8711else $as_nop
8712  case $MAGIC_CMD in
8713[\\/*] |  ?:[\\/]*)
8714  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8715  ;;
8716*)
8717  lt_save_MAGIC_CMD=$MAGIC_CMD
8718  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8719  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8720  for ac_dir in $ac_dummy; do
8721    IFS=$lt_save_ifs
8722    test -z "$ac_dir" && ac_dir=.
8723    if test -f "$ac_dir/file"; then
8724      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8725      if test -n "$file_magic_test_file"; then
8726	case $deplibs_check_method in
8727	"file_magic "*)
8728	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8729	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8730	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8731	    $EGREP "$file_magic_regex" > /dev/null; then
8732	    :
8733	  else
8734	    cat <<_LT_EOF 1>&2
8735
8736*** Warning: the command libtool uses to detect shared libraries,
8737*** $file_magic_cmd, produces output that libtool cannot recognize.
8738*** The result is that libtool may fail to recognize shared libraries
8739*** as such.  This will affect the creation of libtool libraries that
8740*** depend on shared libraries, but programs linked with such libtool
8741*** libraries will work regardless of this problem.  Nevertheless, you
8742*** may want to report the problem to your system manager and/or to
8743*** bug-libtool@gnu.org
8744
8745_LT_EOF
8746	  fi ;;
8747	esac
8748      fi
8749      break
8750    fi
8751  done
8752  IFS=$lt_save_ifs
8753  MAGIC_CMD=$lt_save_MAGIC_CMD
8754  ;;
8755esac
8756fi
8757
8758MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8759if test -n "$MAGIC_CMD"; then
8760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8761printf "%s\n" "$MAGIC_CMD" >&6; }
8762else
8763  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8764printf "%s\n" "no" >&6; }
8765fi
8766
8767
8768  else
8769    MAGIC_CMD=:
8770  fi
8771fi
8772
8773  fi
8774  ;;
8775esac
8776
8777# Use C for the default configuration in the libtool script
8778
8779lt_save_CC=$CC
8780ac_ext=c
8781ac_cpp='$CPP $CPPFLAGS'
8782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8784ac_compiler_gnu=$ac_cv_c_compiler_gnu
8785
8786
8787# Source file extension for C test sources.
8788ac_ext=c
8789
8790# Object file extension for compiled C test sources.
8791objext=o
8792objext=$objext
8793
8794# Code to be used in simple compile tests
8795lt_simple_compile_test_code="int some_variable = 0;"
8796
8797# Code to be used in simple link tests
8798lt_simple_link_test_code='int main(){return(0);}'
8799
8800
8801
8802
8803
8804
8805
8806# If no C compiler was specified, use CC.
8807LTCC=${LTCC-"$CC"}
8808
8809# If no C compiler flags were specified, use CFLAGS.
8810LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8811
8812# Allow CC to be a program name with arguments.
8813compiler=$CC
8814
8815# Save the default compiler, since it gets overwritten when the other
8816# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8817compiler_DEFAULT=$CC
8818
8819# save warnings/boilerplate of simple test code
8820ac_outfile=conftest.$ac_objext
8821echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8822eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8823_lt_compiler_boilerplate=`cat conftest.err`
8824$RM conftest*
8825
8826ac_outfile=conftest.$ac_objext
8827echo "$lt_simple_link_test_code" >conftest.$ac_ext
8828eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8829_lt_linker_boilerplate=`cat conftest.err`
8830$RM -r conftest*
8831
8832
8833if test -n "$compiler"; then
8834
8835lt_prog_compiler_no_builtin_flag=
8836
8837if test yes = "$GCC"; then
8838  case $cc_basename in
8839  nvcc*)
8840    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8841  *)
8842    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8843  esac
8844
8845  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8846printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8847if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8848then :
8849  printf %s "(cached) " >&6
8850else $as_nop
8851  lt_cv_prog_compiler_rtti_exceptions=no
8852   ac_outfile=conftest.$ac_objext
8853   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8854   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8855   # Insert the option either (1) after the last *FLAGS variable, or
8856   # (2) before a word containing "conftest.", or (3) at the end.
8857   # Note that $ac_compile itself does not contain backslashes and begins
8858   # with a dollar sign (not a hyphen), so the echo should work correctly.
8859   # The option is referenced via a variable to avoid confusing sed.
8860   lt_compile=`echo "$ac_compile" | $SED \
8861   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8862   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8863   -e 's:$: $lt_compiler_flag:'`
8864   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8865   (eval "$lt_compile" 2>conftest.err)
8866   ac_status=$?
8867   cat conftest.err >&5
8868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869   if (exit $ac_status) && test -s "$ac_outfile"; then
8870     # The compiler can only warn and ignore the option if not recognized
8871     # So say no if there are warnings other than the usual output.
8872     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8873     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8874     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8875       lt_cv_prog_compiler_rtti_exceptions=yes
8876     fi
8877   fi
8878   $RM conftest*
8879
8880fi
8881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8882printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8883
8884if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8885    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8886else
8887    :
8888fi
8889
8890fi
8891
8892
8893
8894
8895
8896
8897  lt_prog_compiler_wl=
8898lt_prog_compiler_pic=
8899lt_prog_compiler_static=
8900
8901
8902  if test yes = "$GCC"; then
8903    lt_prog_compiler_wl='-Wl,'
8904    lt_prog_compiler_static='-static'
8905
8906    case $host_os in
8907      aix*)
8908      # All AIX code is PIC.
8909      if test ia64 = "$host_cpu"; then
8910	# AIX 5 now supports IA64 processor
8911	lt_prog_compiler_static='-Bstatic'
8912      fi
8913      lt_prog_compiler_pic='-fPIC'
8914      ;;
8915
8916    amigaos*)
8917      case $host_cpu in
8918      powerpc)
8919            # see comment about AmigaOS4 .so support
8920            lt_prog_compiler_pic='-fPIC'
8921        ;;
8922      m68k)
8923            # FIXME: we need at least 68020 code to build shared libraries, but
8924            # adding the '-m68020' flag to GCC prevents building anything better,
8925            # like '-m68040'.
8926            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8927        ;;
8928      esac
8929      ;;
8930
8931    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8932      # PIC is the default for these OSes.
8933      ;;
8934
8935    mingw* | cygwin* | pw32* | os2* | cegcc*)
8936      # This hack is so that the source file can tell whether it is being
8937      # built for inclusion in a dll (and should export symbols for example).
8938      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8939      # (--disable-auto-import) libraries
8940      lt_prog_compiler_pic='-DDLL_EXPORT'
8941      case $host_os in
8942      os2*)
8943	lt_prog_compiler_static='$wl-static'
8944	;;
8945      esac
8946      ;;
8947
8948    darwin* | rhapsody*)
8949      # PIC is the default on this platform
8950      # Common symbols not allowed in MH_DYLIB files
8951      lt_prog_compiler_pic='-fno-common'
8952      ;;
8953
8954    haiku*)
8955      # PIC is the default for Haiku.
8956      # The "-static" flag exists, but is broken.
8957      lt_prog_compiler_static=
8958      ;;
8959
8960    hpux*)
8961      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8962      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8963      # sets the default TLS model and affects inlining.
8964      case $host_cpu in
8965      hppa*64*)
8966	# +Z the default
8967	;;
8968      *)
8969	lt_prog_compiler_pic='-fPIC'
8970	;;
8971      esac
8972      ;;
8973
8974    interix[3-9]*)
8975      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8976      # Instead, we relocate shared libraries at runtime.
8977      ;;
8978
8979    msdosdjgpp*)
8980      # Just because we use GCC doesn't mean we suddenly get shared libraries
8981      # on systems that don't support them.
8982      lt_prog_compiler_can_build_shared=no
8983      enable_shared=no
8984      ;;
8985
8986    *nto* | *qnx*)
8987      # QNX uses GNU C++, but need to define -shared option too, otherwise
8988      # it will coredump.
8989      lt_prog_compiler_pic='-fPIC -shared'
8990      ;;
8991
8992    sysv4*MP*)
8993      if test -d /usr/nec; then
8994	lt_prog_compiler_pic=-Kconform_pic
8995      fi
8996      ;;
8997
8998    *)
8999      lt_prog_compiler_pic='-fPIC'
9000      ;;
9001    esac
9002
9003    case $cc_basename in
9004    nvcc*) # Cuda Compiler Driver 2.2
9005      lt_prog_compiler_wl='-Xlinker '
9006      if test -n "$lt_prog_compiler_pic"; then
9007        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9008      fi
9009      ;;
9010    esac
9011  else
9012    # PORTME Check for flag to pass linker flags through the system compiler.
9013    case $host_os in
9014    aix*)
9015      lt_prog_compiler_wl='-Wl,'
9016      if test ia64 = "$host_cpu"; then
9017	# AIX 5 now supports IA64 processor
9018	lt_prog_compiler_static='-Bstatic'
9019      else
9020	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9021      fi
9022      ;;
9023
9024    darwin* | rhapsody*)
9025      # PIC is the default on this platform
9026      # Common symbols not allowed in MH_DYLIB files
9027      lt_prog_compiler_pic='-fno-common'
9028      case $cc_basename in
9029      nagfor*)
9030        # NAG Fortran compiler
9031        lt_prog_compiler_wl='-Wl,-Wl,,'
9032        lt_prog_compiler_pic='-PIC'
9033        lt_prog_compiler_static='-Bstatic'
9034        ;;
9035      esac
9036      ;;
9037
9038    mingw* | cygwin* | pw32* | os2* | cegcc*)
9039      # This hack is so that the source file can tell whether it is being
9040      # built for inclusion in a dll (and should export symbols for example).
9041      lt_prog_compiler_pic='-DDLL_EXPORT'
9042      case $host_os in
9043      os2*)
9044	lt_prog_compiler_static='$wl-static'
9045	;;
9046      esac
9047      ;;
9048
9049    hpux9* | hpux10* | hpux11*)
9050      lt_prog_compiler_wl='-Wl,'
9051      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9052      # not for PA HP-UX.
9053      case $host_cpu in
9054      hppa*64*|ia64*)
9055	# +Z the default
9056	;;
9057      *)
9058	lt_prog_compiler_pic='+Z'
9059	;;
9060      esac
9061      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9062      lt_prog_compiler_static='$wl-a ${wl}archive'
9063      ;;
9064
9065    irix5* | irix6* | nonstopux*)
9066      lt_prog_compiler_wl='-Wl,'
9067      # PIC (with -KPIC) is the default.
9068      lt_prog_compiler_static='-non_shared'
9069      ;;
9070
9071    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9072      case $cc_basename in
9073      # old Intel for x86_64, which still supported -KPIC.
9074      ecc*)
9075	lt_prog_compiler_wl='-Wl,'
9076	lt_prog_compiler_pic='-KPIC'
9077	lt_prog_compiler_static='-static'
9078        ;;
9079      # icc used to be incompatible with GCC.
9080      # ICC 10 doesn't accept -KPIC any more.
9081      icc* | ifort*)
9082	lt_prog_compiler_wl='-Wl,'
9083	lt_prog_compiler_pic='-fPIC'
9084	lt_prog_compiler_static='-static'
9085        ;;
9086      # Lahey Fortran 8.1.
9087      lf95*)
9088	lt_prog_compiler_wl='-Wl,'
9089	lt_prog_compiler_pic='--shared'
9090	lt_prog_compiler_static='--static'
9091	;;
9092      nagfor*)
9093	# NAG Fortran compiler
9094	lt_prog_compiler_wl='-Wl,-Wl,,'
9095	lt_prog_compiler_pic='-PIC'
9096	lt_prog_compiler_static='-Bstatic'
9097	;;
9098      tcc*)
9099	# Fabrice Bellard et al's Tiny C Compiler
9100	lt_prog_compiler_wl='-Wl,'
9101	lt_prog_compiler_pic='-fPIC'
9102	lt_prog_compiler_static='-static'
9103	;;
9104      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9105        # Portland Group compilers (*not* the Pentium gcc compiler,
9106	# which looks to be a dead project)
9107	lt_prog_compiler_wl='-Wl,'
9108	lt_prog_compiler_pic='-fpic'
9109	lt_prog_compiler_static='-Bstatic'
9110        ;;
9111      ccc*)
9112        lt_prog_compiler_wl='-Wl,'
9113        # All Alpha code is PIC.
9114        lt_prog_compiler_static='-non_shared'
9115        ;;
9116      xl* | bgxl* | bgf* | mpixl*)
9117	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9118	lt_prog_compiler_wl='-Wl,'
9119	lt_prog_compiler_pic='-qpic'
9120	lt_prog_compiler_static='-qstaticlink'
9121	;;
9122      *)
9123	case `$CC -V 2>&1 | $SED 5q` in
9124	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9125	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9126	  lt_prog_compiler_pic='-KPIC'
9127	  lt_prog_compiler_static='-Bstatic'
9128	  lt_prog_compiler_wl=''
9129	  ;;
9130	*Sun\ F* | *Sun*Fortran*)
9131	  lt_prog_compiler_pic='-KPIC'
9132	  lt_prog_compiler_static='-Bstatic'
9133	  lt_prog_compiler_wl='-Qoption ld '
9134	  ;;
9135	*Sun\ C*)
9136	  # Sun C 5.9
9137	  lt_prog_compiler_pic='-KPIC'
9138	  lt_prog_compiler_static='-Bstatic'
9139	  lt_prog_compiler_wl='-Wl,'
9140	  ;;
9141        *Intel*\ [CF]*Compiler*)
9142	  lt_prog_compiler_wl='-Wl,'
9143	  lt_prog_compiler_pic='-fPIC'
9144	  lt_prog_compiler_static='-static'
9145	  ;;
9146	*Portland\ Group*)
9147	  lt_prog_compiler_wl='-Wl,'
9148	  lt_prog_compiler_pic='-fpic'
9149	  lt_prog_compiler_static='-Bstatic'
9150	  ;;
9151	esac
9152	;;
9153      esac
9154      ;;
9155
9156    newsos6)
9157      lt_prog_compiler_pic='-KPIC'
9158      lt_prog_compiler_static='-Bstatic'
9159      ;;
9160
9161    *nto* | *qnx*)
9162      # QNX uses GNU C++, but need to define -shared option too, otherwise
9163      # it will coredump.
9164      lt_prog_compiler_pic='-fPIC -shared'
9165      ;;
9166
9167    osf3* | osf4* | osf5*)
9168      lt_prog_compiler_wl='-Wl,'
9169      # All OSF/1 code is PIC.
9170      lt_prog_compiler_static='-non_shared'
9171      ;;
9172
9173    rdos*)
9174      lt_prog_compiler_static='-non_shared'
9175      ;;
9176
9177    solaris*)
9178      lt_prog_compiler_pic='-KPIC'
9179      lt_prog_compiler_static='-Bstatic'
9180      case $cc_basename in
9181      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9182	lt_prog_compiler_wl='-Qoption ld ';;
9183      *)
9184	lt_prog_compiler_wl='-Wl,';;
9185      esac
9186      ;;
9187
9188    sunos4*)
9189      lt_prog_compiler_wl='-Qoption ld '
9190      lt_prog_compiler_pic='-PIC'
9191      lt_prog_compiler_static='-Bstatic'
9192      ;;
9193
9194    sysv4 | sysv4.2uw2* | sysv4.3*)
9195      lt_prog_compiler_wl='-Wl,'
9196      lt_prog_compiler_pic='-KPIC'
9197      lt_prog_compiler_static='-Bstatic'
9198      ;;
9199
9200    sysv4*MP*)
9201      if test -d /usr/nec; then
9202	lt_prog_compiler_pic='-Kconform_pic'
9203	lt_prog_compiler_static='-Bstatic'
9204      fi
9205      ;;
9206
9207    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9208      lt_prog_compiler_wl='-Wl,'
9209      lt_prog_compiler_pic='-KPIC'
9210      lt_prog_compiler_static='-Bstatic'
9211      ;;
9212
9213    unicos*)
9214      lt_prog_compiler_wl='-Wl,'
9215      lt_prog_compiler_can_build_shared=no
9216      ;;
9217
9218    uts4*)
9219      lt_prog_compiler_pic='-pic'
9220      lt_prog_compiler_static='-Bstatic'
9221      ;;
9222
9223    *)
9224      lt_prog_compiler_can_build_shared=no
9225      ;;
9226    esac
9227  fi
9228
9229case $host_os in
9230  # For platforms that do not support PIC, -DPIC is meaningless:
9231  *djgpp*)
9232    lt_prog_compiler_pic=
9233    ;;
9234  *)
9235    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9236    ;;
9237esac
9238
9239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9240printf %s "checking for $compiler option to produce PIC... " >&6; }
9241if test ${lt_cv_prog_compiler_pic+y}
9242then :
9243  printf %s "(cached) " >&6
9244else $as_nop
9245  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9246fi
9247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9248printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9249lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9250
9251#
9252# Check to make sure the PIC flag actually works.
9253#
9254if test -n "$lt_prog_compiler_pic"; then
9255  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9256printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9257if test ${lt_cv_prog_compiler_pic_works+y}
9258then :
9259  printf %s "(cached) " >&6
9260else $as_nop
9261  lt_cv_prog_compiler_pic_works=no
9262   ac_outfile=conftest.$ac_objext
9263   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9264   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9265   # Insert the option either (1) after the last *FLAGS variable, or
9266   # (2) before a word containing "conftest.", or (3) at the end.
9267   # Note that $ac_compile itself does not contain backslashes and begins
9268   # with a dollar sign (not a hyphen), so the echo should work correctly.
9269   # The option is referenced via a variable to avoid confusing sed.
9270   lt_compile=`echo "$ac_compile" | $SED \
9271   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9272   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9273   -e 's:$: $lt_compiler_flag:'`
9274   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9275   (eval "$lt_compile" 2>conftest.err)
9276   ac_status=$?
9277   cat conftest.err >&5
9278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279   if (exit $ac_status) && test -s "$ac_outfile"; then
9280     # The compiler can only warn and ignore the option if not recognized
9281     # So say no if there are warnings other than the usual output.
9282     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9283     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9284     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9285       lt_cv_prog_compiler_pic_works=yes
9286     fi
9287   fi
9288   $RM conftest*
9289
9290fi
9291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9292printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9293
9294if test yes = "$lt_cv_prog_compiler_pic_works"; then
9295    case $lt_prog_compiler_pic in
9296     "" | " "*) ;;
9297     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9298     esac
9299else
9300    lt_prog_compiler_pic=
9301     lt_prog_compiler_can_build_shared=no
9302fi
9303
9304fi
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316#
9317# Check to make sure the static flag actually works.
9318#
9319wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9321printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9322if test ${lt_cv_prog_compiler_static_works+y}
9323then :
9324  printf %s "(cached) " >&6
9325else $as_nop
9326  lt_cv_prog_compiler_static_works=no
9327   save_LDFLAGS=$LDFLAGS
9328   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9329   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9330   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9331     # The linker can only warn and ignore the option if not recognized
9332     # So say no if there are warnings
9333     if test -s conftest.err; then
9334       # Append any errors to the config.log.
9335       cat conftest.err 1>&5
9336       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9337       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9338       if diff conftest.exp conftest.er2 >/dev/null; then
9339         lt_cv_prog_compiler_static_works=yes
9340       fi
9341     else
9342       lt_cv_prog_compiler_static_works=yes
9343     fi
9344   fi
9345   $RM -r conftest*
9346   LDFLAGS=$save_LDFLAGS
9347
9348fi
9349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9350printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9351
9352if test yes = "$lt_cv_prog_compiler_static_works"; then
9353    :
9354else
9355    lt_prog_compiler_static=
9356fi
9357
9358
9359
9360
9361
9362
9363
9364  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9365printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9366if test ${lt_cv_prog_compiler_c_o+y}
9367then :
9368  printf %s "(cached) " >&6
9369else $as_nop
9370  lt_cv_prog_compiler_c_o=no
9371   $RM -r conftest 2>/dev/null
9372   mkdir conftest
9373   cd conftest
9374   mkdir out
9375   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9376
9377   lt_compiler_flag="-o out/conftest2.$ac_objext"
9378   # Insert the option either (1) after the last *FLAGS variable, or
9379   # (2) before a word containing "conftest.", or (3) at the end.
9380   # Note that $ac_compile itself does not contain backslashes and begins
9381   # with a dollar sign (not a hyphen), so the echo should work correctly.
9382   lt_compile=`echo "$ac_compile" | $SED \
9383   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9384   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9385   -e 's:$: $lt_compiler_flag:'`
9386   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9387   (eval "$lt_compile" 2>out/conftest.err)
9388   ac_status=$?
9389   cat out/conftest.err >&5
9390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9392   then
9393     # The compiler can only warn and ignore the option if not recognized
9394     # So say no if there are warnings
9395     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9396     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9397     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9398       lt_cv_prog_compiler_c_o=yes
9399     fi
9400   fi
9401   chmod u+w . 2>&5
9402   $RM conftest*
9403   # SGI C++ compiler will create directory out/ii_files/ for
9404   # template instantiation
9405   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9406   $RM out/* && rmdir out
9407   cd ..
9408   $RM -r conftest
9409   $RM conftest*
9410
9411fi
9412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9413printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9414
9415
9416
9417
9418
9419
9420  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9421printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9422if test ${lt_cv_prog_compiler_c_o+y}
9423then :
9424  printf %s "(cached) " >&6
9425else $as_nop
9426  lt_cv_prog_compiler_c_o=no
9427   $RM -r conftest 2>/dev/null
9428   mkdir conftest
9429   cd conftest
9430   mkdir out
9431   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9432
9433   lt_compiler_flag="-o out/conftest2.$ac_objext"
9434   # Insert the option either (1) after the last *FLAGS variable, or
9435   # (2) before a word containing "conftest.", or (3) at the end.
9436   # Note that $ac_compile itself does not contain backslashes and begins
9437   # with a dollar sign (not a hyphen), so the echo should work correctly.
9438   lt_compile=`echo "$ac_compile" | $SED \
9439   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9440   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9441   -e 's:$: $lt_compiler_flag:'`
9442   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9443   (eval "$lt_compile" 2>out/conftest.err)
9444   ac_status=$?
9445   cat out/conftest.err >&5
9446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9448   then
9449     # The compiler can only warn and ignore the option if not recognized
9450     # So say no if there are warnings
9451     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9452     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9453     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9454       lt_cv_prog_compiler_c_o=yes
9455     fi
9456   fi
9457   chmod u+w . 2>&5
9458   $RM conftest*
9459   # SGI C++ compiler will create directory out/ii_files/ for
9460   # template instantiation
9461   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9462   $RM out/* && rmdir out
9463   cd ..
9464   $RM -r conftest
9465   $RM conftest*
9466
9467fi
9468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9469printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9470
9471
9472
9473
9474hard_links=nottested
9475if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9476  # do not overwrite the value of need_locks provided by the user
9477  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9478printf %s "checking if we can lock with hard links... " >&6; }
9479  hard_links=yes
9480  $RM conftest*
9481  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9482  touch conftest.a
9483  ln conftest.a conftest.b 2>&5 || hard_links=no
9484  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9485  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9486printf "%s\n" "$hard_links" >&6; }
9487  if test no = "$hard_links"; then
9488    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9489printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9490    need_locks=warn
9491  fi
9492else
9493  need_locks=no
9494fi
9495
9496
9497
9498
9499
9500
9501  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9502printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9503
9504  runpath_var=
9505  allow_undefined_flag=
9506  always_export_symbols=no
9507  archive_cmds=
9508  archive_expsym_cmds=
9509  compiler_needs_object=no
9510  enable_shared_with_static_runtimes=no
9511  export_dynamic_flag_spec=
9512  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9513  hardcode_automatic=no
9514  hardcode_direct=no
9515  hardcode_direct_absolute=no
9516  hardcode_libdir_flag_spec=
9517  hardcode_libdir_separator=
9518  hardcode_minus_L=no
9519  hardcode_shlibpath_var=unsupported
9520  inherit_rpath=no
9521  link_all_deplibs=unknown
9522  module_cmds=
9523  module_expsym_cmds=
9524  old_archive_from_new_cmds=
9525  old_archive_from_expsyms_cmds=
9526  thread_safe_flag_spec=
9527  whole_archive_flag_spec=
9528  # include_expsyms should be a list of space-separated symbols to be *always*
9529  # included in the symbol list
9530  include_expsyms=
9531  # exclude_expsyms can be an extended regexp of symbols to exclude
9532  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9533  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9534  # as well as any symbol that contains 'd'.
9535  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9536  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9537  # platforms (ab)use it in PIC code, but their linkers get confused if
9538  # the symbol is explicitly referenced.  Since portable code cannot
9539  # rely on this symbol name, it's probably fine to never include it in
9540  # preloaded symbol tables.
9541  # Exclude shared library initialization/finalization symbols.
9542  extract_expsyms_cmds=
9543
9544  case $host_os in
9545  cygwin* | mingw* | pw32* | cegcc*)
9546    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9547    # When not using gcc, we currently assume that we are using
9548    # Microsoft Visual C++ or Intel C++ Compiler.
9549    if test yes != "$GCC"; then
9550      with_gnu_ld=no
9551    fi
9552    ;;
9553  interix*)
9554    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9555    with_gnu_ld=yes
9556    ;;
9557  openbsd* | bitrig*)
9558    with_gnu_ld=no
9559    ;;
9560  esac
9561
9562  ld_shlibs=yes
9563
9564  # On some targets, GNU ld is compatible enough with the native linker
9565  # that we're better off using the native interface for both.
9566  lt_use_gnu_ld_interface=no
9567  if test yes = "$with_gnu_ld"; then
9568    case $host_os in
9569      aix*)
9570	# The AIX port of GNU ld has always aspired to compatibility
9571	# with the native linker.  However, as the warning in the GNU ld
9572	# block says, versions before 2.19.5* couldn't really create working
9573	# shared libraries, regardless of the interface used.
9574	case `$LD -v 2>&1` in
9575	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9576	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9577	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9578	  *)
9579	    lt_use_gnu_ld_interface=yes
9580	    ;;
9581	esac
9582	;;
9583      *)
9584	lt_use_gnu_ld_interface=yes
9585	;;
9586    esac
9587  fi
9588
9589  if test yes = "$lt_use_gnu_ld_interface"; then
9590    # If archive_cmds runs LD, not CC, wlarc should be empty
9591    wlarc='$wl'
9592
9593    # Set some defaults for GNU ld with shared library support. These
9594    # are reset later if shared libraries are not supported. Putting them
9595    # here allows them to be overridden if necessary.
9596    runpath_var=LD_RUN_PATH
9597    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9598    export_dynamic_flag_spec='$wl--export-dynamic'
9599    # ancient GNU ld didn't support --whole-archive et. al.
9600    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9601      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9602    else
9603      whole_archive_flag_spec=
9604    fi
9605    supports_anon_versioning=no
9606    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9607      *GNU\ gold*) supports_anon_versioning=yes ;;
9608      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9609      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9610      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9611      *\ 2.11.*) ;; # other 2.11 versions
9612      *) supports_anon_versioning=yes ;;
9613    esac
9614
9615    # See if GNU ld supports shared libraries.
9616    case $host_os in
9617    aix[3-9]*)
9618      # On AIX/PPC, the GNU linker is very broken
9619      if test ia64 != "$host_cpu"; then
9620	ld_shlibs=no
9621	cat <<_LT_EOF 1>&2
9622
9623*** Warning: the GNU linker, at least up to release 2.19, is reported
9624*** to be unable to reliably create shared libraries on AIX.
9625*** Therefore, libtool is disabling shared libraries support.  If you
9626*** really care for shared libraries, you may want to install binutils
9627*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9628*** You will then need to restart the configuration process.
9629
9630_LT_EOF
9631      fi
9632      ;;
9633
9634    amigaos*)
9635      case $host_cpu in
9636      powerpc)
9637            # see comment about AmigaOS4 .so support
9638            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9639            archive_expsym_cmds=''
9640        ;;
9641      m68k)
9642            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)'
9643            hardcode_libdir_flag_spec='-L$libdir'
9644            hardcode_minus_L=yes
9645        ;;
9646      esac
9647      ;;
9648
9649    beos*)
9650      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9651	allow_undefined_flag=unsupported
9652	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9653	# support --undefined.  This deserves some investigation.  FIXME
9654	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9655      else
9656	ld_shlibs=no
9657      fi
9658      ;;
9659
9660    cygwin* | mingw* | pw32* | cegcc*)
9661      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9662      # as there is no search path for DLLs.
9663      hardcode_libdir_flag_spec='-L$libdir'
9664      export_dynamic_flag_spec='$wl--export-all-symbols'
9665      allow_undefined_flag=unsupported
9666      always_export_symbols=no
9667      enable_shared_with_static_runtimes=yes
9668      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'
9669      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9670
9671      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9672        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9673	# If the export-symbols file already is a .def file, use it as
9674	# is; otherwise, prepend EXPORTS...
9675	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9676          cp $export_symbols $output_objdir/$soname.def;
9677        else
9678          echo EXPORTS > $output_objdir/$soname.def;
9679          cat $export_symbols >> $output_objdir/$soname.def;
9680        fi~
9681        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9682      else
9683	ld_shlibs=no
9684      fi
9685      ;;
9686
9687    haiku*)
9688      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9689      link_all_deplibs=yes
9690      ;;
9691
9692    os2*)
9693      hardcode_libdir_flag_spec='-L$libdir'
9694      hardcode_minus_L=yes
9695      allow_undefined_flag=unsupported
9696      shrext_cmds=.dll
9697      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9698	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9699	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9700	$ECHO EXPORTS >> $output_objdir/$libname.def~
9701	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9702	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9703	emximp -o $lib $output_objdir/$libname.def'
9704      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9705	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9706	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9707	$ECHO EXPORTS >> $output_objdir/$libname.def~
9708	prefix_cmds="$SED"~
9709	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9710	  prefix_cmds="$prefix_cmds -e 1d";
9711	fi~
9712	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9713	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9714	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9715	emximp -o $lib $output_objdir/$libname.def'
9716      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9717      enable_shared_with_static_runtimes=yes
9718      file_list_spec='@'
9719      ;;
9720
9721    interix[3-9]*)
9722      hardcode_direct=no
9723      hardcode_shlibpath_var=no
9724      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9725      export_dynamic_flag_spec='$wl-E'
9726      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9727      # Instead, shared libraries are loaded at an image base (0x10000000 by
9728      # default) and relocated if they conflict, which is a slow very memory
9729      # consuming and fragmenting process.  To avoid this, we pick a random,
9730      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9731      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9732      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9733      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'
9734      ;;
9735
9736    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9737      tmp_diet=no
9738      if test linux-dietlibc = "$host_os"; then
9739	case $cc_basename in
9740	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9741	esac
9742      fi
9743      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9744	 && test no = "$tmp_diet"
9745      then
9746	tmp_addflag=' $pic_flag'
9747	tmp_sharedflag='-shared'
9748	case $cc_basename,$host_cpu in
9749        pgcc*)				# Portland Group C compiler
9750	  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'
9751	  tmp_addflag=' $pic_flag'
9752	  ;;
9753	pgf77* | pgf90* | pgf95* | pgfortran*)
9754					# Portland Group f77 and f90 compilers
9755	  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'
9756	  tmp_addflag=' $pic_flag -Mnomain' ;;
9757	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9758	  tmp_addflag=' -i_dynamic' ;;
9759	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9760	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9761	ifc* | ifort*)			# Intel Fortran compiler
9762	  tmp_addflag=' -nofor_main' ;;
9763	lf95*)				# Lahey Fortran 8.1
9764	  whole_archive_flag_spec=
9765	  tmp_sharedflag='--shared' ;;
9766        nagfor*)                        # NAGFOR 5.3
9767          tmp_sharedflag='-Wl,-shared' ;;
9768	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9769	  tmp_sharedflag='-qmkshrobj'
9770	  tmp_addflag= ;;
9771	nvcc*)	# Cuda Compiler Driver 2.2
9772	  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'
9773	  compiler_needs_object=yes
9774	  ;;
9775	esac
9776	case `$CC -V 2>&1 | $SED 5q` in
9777	*Sun\ C*)			# Sun C 5.9
9778	  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'
9779	  compiler_needs_object=yes
9780	  tmp_sharedflag='-G' ;;
9781	*Sun\ F*)			# Sun Fortran 8.3
9782	  tmp_sharedflag='-G' ;;
9783	esac
9784	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9785
9786        if test yes = "$supports_anon_versioning"; then
9787          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9788            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9789            echo "local: *; };" >> $output_objdir/$libname.ver~
9790            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9791        fi
9792
9793	case $cc_basename in
9794	tcc*)
9795	  export_dynamic_flag_spec='-rdynamic'
9796	  ;;
9797	xlf* | bgf* | bgxlf* | mpixlf*)
9798	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9799	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9800	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9801	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9802	  if test yes = "$supports_anon_versioning"; then
9803	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9804              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9805              echo "local: *; };" >> $output_objdir/$libname.ver~
9806              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9807	  fi
9808	  ;;
9809	esac
9810      else
9811        ld_shlibs=no
9812      fi
9813      ;;
9814
9815    netbsd*)
9816      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9817	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9818	wlarc=
9819      else
9820	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9821	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9822      fi
9823      ;;
9824
9825    solaris*)
9826      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9827	ld_shlibs=no
9828	cat <<_LT_EOF 1>&2
9829
9830*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9831*** create shared libraries on Solaris systems.  Therefore, libtool
9832*** is disabling shared libraries support.  We urge you to upgrade GNU
9833*** binutils to release 2.9.1 or newer.  Another option is to modify
9834*** your PATH or compiler configuration so that the native linker is
9835*** used, and then restart.
9836
9837_LT_EOF
9838      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9839	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9840	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9841      else
9842	ld_shlibs=no
9843      fi
9844      ;;
9845
9846    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9847      case `$LD -v 2>&1` in
9848        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9849	ld_shlibs=no
9850	cat <<_LT_EOF 1>&2
9851
9852*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9853*** reliably create shared libraries on SCO systems.  Therefore, libtool
9854*** is disabling shared libraries support.  We urge you to upgrade GNU
9855*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9856*** your PATH or compiler configuration so that the native linker is
9857*** used, and then restart.
9858
9859_LT_EOF
9860	;;
9861	*)
9862	  # For security reasons, it is highly recommended that you always
9863	  # use absolute paths for naming shared libraries, and exclude the
9864	  # DT_RUNPATH tag from executables and libraries.  But doing so
9865	  # requires that you compile everything twice, which is a pain.
9866	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9867	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9868	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9869	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9870	  else
9871	    ld_shlibs=no
9872	  fi
9873	;;
9874      esac
9875      ;;
9876
9877    sunos4*)
9878      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9879      wlarc=
9880      hardcode_direct=yes
9881      hardcode_shlibpath_var=no
9882      ;;
9883
9884    *)
9885      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9886	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9887	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9888      else
9889	ld_shlibs=no
9890      fi
9891      ;;
9892    esac
9893
9894    if test no = "$ld_shlibs"; then
9895      runpath_var=
9896      hardcode_libdir_flag_spec=
9897      export_dynamic_flag_spec=
9898      whole_archive_flag_spec=
9899    fi
9900  else
9901    # PORTME fill in a description of your system's linker (not GNU ld)
9902    case $host_os in
9903    aix3*)
9904      allow_undefined_flag=unsupported
9905      always_export_symbols=yes
9906      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'
9907      # Note: this linker hardcodes the directories in LIBPATH if there
9908      # are no directories specified by -L.
9909      hardcode_minus_L=yes
9910      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9911	# Neither direct hardcoding nor static linking is supported with a
9912	# broken collect2.
9913	hardcode_direct=unsupported
9914      fi
9915      ;;
9916
9917    aix[4-9]*)
9918      if test ia64 = "$host_cpu"; then
9919	# On IA64, the linker does run time linking by default, so we don't
9920	# have to do anything special.
9921	aix_use_runtimelinking=no
9922	exp_sym_flag='-Bexport'
9923	no_entry_flag=
9924      else
9925	# If we're using GNU nm, then we don't want the "-C" option.
9926	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9927	# Without the "-l" option, or with the "-B" option, AIX nm treats
9928	# weak defined symbols like other global defined symbols, whereas
9929	# GNU nm marks them as "W".
9930	# While the 'weak' keyword is ignored in the Export File, we need
9931	# it in the Import File for the 'aix-soname' feature, so we have
9932	# to replace the "-B" option with "-P" for AIX nm.
9933	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9934	  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'
9935	else
9936	  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'
9937	fi
9938	aix_use_runtimelinking=no
9939
9940	# Test if we are trying to use run time linking or normal
9941	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9942	# have runtime linking enabled, and use it for executables.
9943	# For shared libraries, we enable/disable runtime linking
9944	# depending on the kind of the shared library created -
9945	# when "with_aix_soname,aix_use_runtimelinking" is:
9946	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9947	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9948	#            lib.a           static archive
9949	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9950	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9951	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9952	#            lib.a(lib.so.V) shared, rtl:no
9953	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9954	#            lib.a           static archive
9955	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9956	  for ld_flag in $LDFLAGS; do
9957	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9958	    aix_use_runtimelinking=yes
9959	    break
9960	  fi
9961	  done
9962	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9963	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9964	    # so we don't have lib.a shared libs to link our executables.
9965	    # We have to force runtime linking in this case.
9966	    aix_use_runtimelinking=yes
9967	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9968	  fi
9969	  ;;
9970	esac
9971
9972	exp_sym_flag='-bexport'
9973	no_entry_flag='-bnoentry'
9974      fi
9975
9976      # When large executables or shared objects are built, AIX ld can
9977      # have problems creating the table of contents.  If linking a library
9978      # or program results in "error TOC overflow" add -mminimal-toc to
9979      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9980      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9981
9982      archive_cmds=''
9983      hardcode_direct=yes
9984      hardcode_direct_absolute=yes
9985      hardcode_libdir_separator=':'
9986      link_all_deplibs=yes
9987      file_list_spec='$wl-f,'
9988      case $with_aix_soname,$aix_use_runtimelinking in
9989      aix,*) ;; # traditional, no import file
9990      svr4,* | *,yes) # use import file
9991	# The Import File defines what to hardcode.
9992	hardcode_direct=no
9993	hardcode_direct_absolute=no
9994	;;
9995      esac
9996
9997      if test yes = "$GCC"; then
9998	case $host_os in aix4.[012]|aix4.[012].*)
9999	# We only want to do this on AIX 4.2 and lower, the check
10000	# below for broken collect2 doesn't work under 4.3+
10001	  collect2name=`$CC -print-prog-name=collect2`
10002	  if test -f "$collect2name" &&
10003	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10004	  then
10005	  # We have reworked collect2
10006	  :
10007	  else
10008	  # We have old collect2
10009	  hardcode_direct=unsupported
10010	  # It fails to find uninstalled libraries when the uninstalled
10011	  # path is not listed in the libpath.  Setting hardcode_minus_L
10012	  # to unsupported forces relinking
10013	  hardcode_minus_L=yes
10014	  hardcode_libdir_flag_spec='-L$libdir'
10015	  hardcode_libdir_separator=
10016	  fi
10017	  ;;
10018	esac
10019	shared_flag='-shared'
10020	if test yes = "$aix_use_runtimelinking"; then
10021	  shared_flag="$shared_flag "'$wl-G'
10022	fi
10023	# Need to ensure runtime linking is disabled for the traditional
10024	# shared library, or the linker may eventually find shared libraries
10025	# /with/ Import File - we do not want to mix them.
10026	shared_flag_aix='-shared'
10027	shared_flag_svr4='-shared $wl-G'
10028      else
10029	# not using gcc
10030	if test ia64 = "$host_cpu"; then
10031	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10032	# chokes on -Wl,-G. The following line is correct:
10033	  shared_flag='-G'
10034	else
10035	  if test yes = "$aix_use_runtimelinking"; then
10036	    shared_flag='$wl-G'
10037	  else
10038	    shared_flag='$wl-bM:SRE'
10039	  fi
10040	  shared_flag_aix='$wl-bM:SRE'
10041	  shared_flag_svr4='$wl-G'
10042	fi
10043      fi
10044
10045      export_dynamic_flag_spec='$wl-bexpall'
10046      # It seems that -bexpall does not export symbols beginning with
10047      # underscore (_), so it is better to generate a list of symbols to export.
10048      always_export_symbols=yes
10049      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10050	# Warning - without using the other runtime loading flags (-brtl),
10051	# -berok will link without error, but may produce a broken library.
10052	allow_undefined_flag='-berok'
10053        # Determine the default libpath from the value encoded in an
10054        # empty executable.
10055        if test set = "${lt_cv_aix_libpath+set}"; then
10056  aix_libpath=$lt_cv_aix_libpath
10057else
10058  if test ${lt_cv_aix_libpath_+y}
10059then :
10060  printf %s "(cached) " >&6
10061else $as_nop
10062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10063/* end confdefs.h.  */
10064
10065int
10066main (void)
10067{
10068
10069  ;
10070  return 0;
10071}
10072_ACEOF
10073if ac_fn_c_try_link "$LINENO"
10074then :
10075
10076  lt_aix_libpath_sed='
10077      /Import File Strings/,/^$/ {
10078	  /^0/ {
10079	      s/^0  *\([^ ]*\) *$/\1/
10080	      p
10081	  }
10082      }'
10083  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10084  # Check for a 64-bit object if we didn't find anything.
10085  if test -z "$lt_cv_aix_libpath_"; then
10086    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10087  fi
10088fi
10089rm -f core conftest.err conftest.$ac_objext conftest.beam \
10090    conftest$ac_exeext conftest.$ac_ext
10091  if test -z "$lt_cv_aix_libpath_"; then
10092    lt_cv_aix_libpath_=/usr/lib:/lib
10093  fi
10094
10095fi
10096
10097  aix_libpath=$lt_cv_aix_libpath_
10098fi
10099
10100        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10101        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
10102      else
10103	if test ia64 = "$host_cpu"; then
10104	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10105	  allow_undefined_flag="-z nodefs"
10106	  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"
10107	else
10108	 # Determine the default libpath from the value encoded in an
10109	 # empty executable.
10110	 if test set = "${lt_cv_aix_libpath+set}"; then
10111  aix_libpath=$lt_cv_aix_libpath
10112else
10113  if test ${lt_cv_aix_libpath_+y}
10114then :
10115  printf %s "(cached) " >&6
10116else $as_nop
10117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118/* end confdefs.h.  */
10119
10120int
10121main (void)
10122{
10123
10124  ;
10125  return 0;
10126}
10127_ACEOF
10128if ac_fn_c_try_link "$LINENO"
10129then :
10130
10131  lt_aix_libpath_sed='
10132      /Import File Strings/,/^$/ {
10133	  /^0/ {
10134	      s/^0  *\([^ ]*\) *$/\1/
10135	      p
10136	  }
10137      }'
10138  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10139  # Check for a 64-bit object if we didn't find anything.
10140  if test -z "$lt_cv_aix_libpath_"; then
10141    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10142  fi
10143fi
10144rm -f core conftest.err conftest.$ac_objext conftest.beam \
10145    conftest$ac_exeext conftest.$ac_ext
10146  if test -z "$lt_cv_aix_libpath_"; then
10147    lt_cv_aix_libpath_=/usr/lib:/lib
10148  fi
10149
10150fi
10151
10152  aix_libpath=$lt_cv_aix_libpath_
10153fi
10154
10155	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10156	  # Warning - without using the other run time loading flags,
10157	  # -berok will link without error, but may produce a broken library.
10158	  no_undefined_flag=' $wl-bernotok'
10159	  allow_undefined_flag=' $wl-berok'
10160	  if test yes = "$with_gnu_ld"; then
10161	    # We only use this code for GNU lds that support --whole-archive.
10162	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10163	  else
10164	    # Exported symbols can be pulled into shared objects from archives
10165	    whole_archive_flag_spec='$convenience'
10166	  fi
10167	  archive_cmds_need_lc=yes
10168	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10169	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10170	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10171	  if test svr4 != "$with_aix_soname"; then
10172	    # This is similar to how AIX traditionally builds its shared libraries.
10173	    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'
10174	  fi
10175	  if test aix != "$with_aix_soname"; then
10176	    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'
10177	  else
10178	    # used by -dlpreopen to get the symbols
10179	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10180	  fi
10181	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10182	fi
10183      fi
10184      ;;
10185
10186    amigaos*)
10187      case $host_cpu in
10188      powerpc)
10189            # see comment about AmigaOS4 .so support
10190            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10191            archive_expsym_cmds=''
10192        ;;
10193      m68k)
10194            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)'
10195            hardcode_libdir_flag_spec='-L$libdir'
10196            hardcode_minus_L=yes
10197        ;;
10198      esac
10199      ;;
10200
10201    bsdi[45]*)
10202      export_dynamic_flag_spec=-rdynamic
10203      ;;
10204
10205    cygwin* | mingw* | pw32* | cegcc*)
10206      # When not using gcc, we currently assume that we are using
10207      # Microsoft Visual C++ or Intel C++ Compiler.
10208      # hardcode_libdir_flag_spec is actually meaningless, as there is
10209      # no search path for DLLs.
10210      case $cc_basename in
10211      cl* | icl*)
10212	# Native MSVC or ICC
10213	hardcode_libdir_flag_spec=' '
10214	allow_undefined_flag=unsupported
10215	always_export_symbols=yes
10216	file_list_spec='@'
10217	# Tell ltmain to make .lib files, not .a files.
10218	libext=lib
10219	# Tell ltmain to make .dll files, not .so files.
10220	shrext_cmds=.dll
10221	# FIXME: Setting linknames here is a bad hack.
10222	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10223	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10224            cp "$export_symbols" "$output_objdir/$soname.def";
10225            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10226          else
10227            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10228          fi~
10229          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10230          linknames='
10231	# The linker will not automatically build a static lib if we build a DLL.
10232	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10233	enable_shared_with_static_runtimes=yes
10234	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10235	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10236	# Don't use ranlib
10237	old_postinstall_cmds='chmod 644 $oldlib'
10238	postlink_cmds='lt_outputfile="@OUTPUT@"~
10239          lt_tool_outputfile="@TOOL_OUTPUT@"~
10240          case $lt_outputfile in
10241            *.exe|*.EXE) ;;
10242            *)
10243              lt_outputfile=$lt_outputfile.exe
10244              lt_tool_outputfile=$lt_tool_outputfile.exe
10245              ;;
10246          esac~
10247          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10248            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10249            $RM "$lt_outputfile.manifest";
10250          fi'
10251	;;
10252      *)
10253	# Assume MSVC and ICC wrapper
10254	hardcode_libdir_flag_spec=' '
10255	allow_undefined_flag=unsupported
10256	# Tell ltmain to make .lib files, not .a files.
10257	libext=lib
10258	# Tell ltmain to make .dll files, not .so files.
10259	shrext_cmds=.dll
10260	# FIXME: Setting linknames here is a bad hack.
10261	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10262	# The linker will automatically build a .lib file if we build a DLL.
10263	old_archive_from_new_cmds='true'
10264	# FIXME: Should let the user specify the lib program.
10265	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10266	enable_shared_with_static_runtimes=yes
10267	;;
10268      esac
10269      ;;
10270
10271    darwin* | rhapsody*)
10272
10273
10274  archive_cmds_need_lc=no
10275  hardcode_direct=no
10276  hardcode_automatic=yes
10277  hardcode_shlibpath_var=unsupported
10278  if test yes = "$lt_cv_ld_force_load"; then
10279    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\"`'
10280
10281  else
10282    whole_archive_flag_spec=''
10283  fi
10284  link_all_deplibs=yes
10285  allow_undefined_flag=$_lt_dar_allow_undefined
10286  case $cc_basename in
10287     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10288     *) _lt_dar_can_shared=$GCC ;;
10289  esac
10290  if test yes = "$_lt_dar_can_shared"; then
10291    output_verbose_link_cmd=func_echo_all
10292    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10293    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10294    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"
10295    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"
10296
10297  else
10298  ld_shlibs=no
10299  fi
10300
10301      ;;
10302
10303    dgux*)
10304      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10305      hardcode_libdir_flag_spec='-L$libdir'
10306      hardcode_shlibpath_var=no
10307      ;;
10308
10309    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10310    # support.  Future versions do this automatically, but an explicit c++rt0.o
10311    # does not break anything, and helps significantly (at the cost of a little
10312    # extra space).
10313    freebsd2.2*)
10314      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10315      hardcode_libdir_flag_spec='-R$libdir'
10316      hardcode_direct=yes
10317      hardcode_shlibpath_var=no
10318      ;;
10319
10320    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10321    freebsd2.*)
10322      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10323      hardcode_direct=yes
10324      hardcode_minus_L=yes
10325      hardcode_shlibpath_var=no
10326      ;;
10327
10328    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10329    freebsd* | dragonfly* | midnightbsd*)
10330      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10331      hardcode_libdir_flag_spec='-R$libdir'
10332      hardcode_direct=yes
10333      hardcode_shlibpath_var=no
10334      ;;
10335
10336    hpux9*)
10337      if test yes = "$GCC"; then
10338	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'
10339      else
10340	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'
10341      fi
10342      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10343      hardcode_libdir_separator=:
10344      hardcode_direct=yes
10345
10346      # hardcode_minus_L: Not really in the search PATH,
10347      # but as the default location of the library.
10348      hardcode_minus_L=yes
10349      export_dynamic_flag_spec='$wl-E'
10350      ;;
10351
10352    hpux10*)
10353      if test yes,no = "$GCC,$with_gnu_ld"; then
10354	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10355      else
10356	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10357      fi
10358      if test no = "$with_gnu_ld"; then
10359	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10360	hardcode_libdir_separator=:
10361	hardcode_direct=yes
10362	hardcode_direct_absolute=yes
10363	export_dynamic_flag_spec='$wl-E'
10364	# hardcode_minus_L: Not really in the search PATH,
10365	# but as the default location of the library.
10366	hardcode_minus_L=yes
10367      fi
10368      ;;
10369
10370    hpux11*)
10371      if test yes,no = "$GCC,$with_gnu_ld"; then
10372	case $host_cpu in
10373	hppa*64*)
10374	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10375	  ;;
10376	ia64*)
10377	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10378	  ;;
10379	*)
10380	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10381	  ;;
10382	esac
10383      else
10384	case $host_cpu in
10385	hppa*64*)
10386	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10387	  ;;
10388	ia64*)
10389	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10390	  ;;
10391	*)
10392
10393	  # Older versions of the 11.00 compiler do not understand -b yet
10394	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10395	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10396printf %s "checking if $CC understands -b... " >&6; }
10397if test ${lt_cv_prog_compiler__b+y}
10398then :
10399  printf %s "(cached) " >&6
10400else $as_nop
10401  lt_cv_prog_compiler__b=no
10402   save_LDFLAGS=$LDFLAGS
10403   LDFLAGS="$LDFLAGS -b"
10404   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10405   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10406     # The linker can only warn and ignore the option if not recognized
10407     # So say no if there are warnings
10408     if test -s conftest.err; then
10409       # Append any errors to the config.log.
10410       cat conftest.err 1>&5
10411       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10412       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10413       if diff conftest.exp conftest.er2 >/dev/null; then
10414         lt_cv_prog_compiler__b=yes
10415       fi
10416     else
10417       lt_cv_prog_compiler__b=yes
10418     fi
10419   fi
10420   $RM -r conftest*
10421   LDFLAGS=$save_LDFLAGS
10422
10423fi
10424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10425printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10426
10427if test yes = "$lt_cv_prog_compiler__b"; then
10428    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10429else
10430    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10431fi
10432
10433	  ;;
10434	esac
10435      fi
10436      if test no = "$with_gnu_ld"; then
10437	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10438	hardcode_libdir_separator=:
10439
10440	case $host_cpu in
10441	hppa*64*|ia64*)
10442	  hardcode_direct=no
10443	  hardcode_shlibpath_var=no
10444	  ;;
10445	*)
10446	  hardcode_direct=yes
10447	  hardcode_direct_absolute=yes
10448	  export_dynamic_flag_spec='$wl-E'
10449
10450	  # hardcode_minus_L: Not really in the search PATH,
10451	  # but as the default location of the library.
10452	  hardcode_minus_L=yes
10453	  ;;
10454	esac
10455      fi
10456      ;;
10457
10458    irix5* | irix6* | nonstopux*)
10459      if test yes = "$GCC"; then
10460	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'
10461	# Try to use the -exported_symbol ld option, if it does not
10462	# work, assume that -exports_file does not work either and
10463	# implicitly export all symbols.
10464	# This should be the same for all languages, so no per-tag cache variable.
10465	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10466printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10467if test ${lt_cv_irix_exported_symbol+y}
10468then :
10469  printf %s "(cached) " >&6
10470else $as_nop
10471  save_LDFLAGS=$LDFLAGS
10472	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10473	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10474/* end confdefs.h.  */
10475int foo (void) { return 0; }
10476_ACEOF
10477if ac_fn_c_try_link "$LINENO"
10478then :
10479  lt_cv_irix_exported_symbol=yes
10480else $as_nop
10481  lt_cv_irix_exported_symbol=no
10482fi
10483rm -f core conftest.err conftest.$ac_objext conftest.beam \
10484    conftest$ac_exeext conftest.$ac_ext
10485           LDFLAGS=$save_LDFLAGS
10486fi
10487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10488printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10489	if test yes = "$lt_cv_irix_exported_symbol"; then
10490          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'
10491	fi
10492      else
10493	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'
10494	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'
10495      fi
10496      archive_cmds_need_lc='no'
10497      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10498      hardcode_libdir_separator=:
10499      inherit_rpath=yes
10500      link_all_deplibs=yes
10501      ;;
10502
10503    linux*)
10504      case $cc_basename in
10505      tcc*)
10506	# Fabrice Bellard et al's Tiny C Compiler
10507	ld_shlibs=yes
10508	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10509	;;
10510      esac
10511      ;;
10512
10513    netbsd*)
10514      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10515	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10516      else
10517	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10518      fi
10519      hardcode_libdir_flag_spec='-R$libdir'
10520      hardcode_direct=yes
10521      hardcode_shlibpath_var=no
10522      ;;
10523
10524    newsos6)
10525      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10526      hardcode_direct=yes
10527      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10528      hardcode_libdir_separator=:
10529      hardcode_shlibpath_var=no
10530      ;;
10531
10532    *nto* | *qnx*)
10533      ;;
10534
10535    openbsd* | bitrig*)
10536      if test -f /usr/libexec/ld.so; then
10537	hardcode_direct=yes
10538	hardcode_shlibpath_var=no
10539	hardcode_direct_absolute=yes
10540	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10541	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10542	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10543	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10544	  export_dynamic_flag_spec='$wl-E'
10545	else
10546	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10547	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10548	fi
10549      else
10550	ld_shlibs=no
10551      fi
10552      ;;
10553
10554    os2*)
10555      hardcode_libdir_flag_spec='-L$libdir'
10556      hardcode_minus_L=yes
10557      allow_undefined_flag=unsupported
10558      shrext_cmds=.dll
10559      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10560	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10561	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10562	$ECHO EXPORTS >> $output_objdir/$libname.def~
10563	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10564	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10565	emximp -o $lib $output_objdir/$libname.def'
10566      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10567	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10568	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10569	$ECHO EXPORTS >> $output_objdir/$libname.def~
10570	prefix_cmds="$SED"~
10571	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10572	  prefix_cmds="$prefix_cmds -e 1d";
10573	fi~
10574	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10575	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10576	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10577	emximp -o $lib $output_objdir/$libname.def'
10578      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10579      enable_shared_with_static_runtimes=yes
10580      file_list_spec='@'
10581      ;;
10582
10583    osf3*)
10584      if test yes = "$GCC"; then
10585	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10586	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'
10587      else
10588	allow_undefined_flag=' -expect_unresolved \*'
10589	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'
10590      fi
10591      archive_cmds_need_lc='no'
10592      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10593      hardcode_libdir_separator=:
10594      ;;
10595
10596    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10597      if test yes = "$GCC"; then
10598	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10599	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'
10600	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10601      else
10602	allow_undefined_flag=' -expect_unresolved \*'
10603	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'
10604	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~
10605          $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'
10606
10607	# Both c and cxx compiler support -rpath directly
10608	hardcode_libdir_flag_spec='-rpath $libdir'
10609      fi
10610      archive_cmds_need_lc='no'
10611      hardcode_libdir_separator=:
10612      ;;
10613
10614    solaris*)
10615      no_undefined_flag=' -z defs'
10616      if test yes = "$GCC"; then
10617	wlarc='$wl'
10618	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10619	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10620          $CC -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'
10621      else
10622	case `$CC -V 2>&1` in
10623	*"Compilers 5.0"*)
10624	  wlarc=''
10625	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10626	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10627            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10628	  ;;
10629	*)
10630	  wlarc='$wl'
10631	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10632	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10633            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10634	  ;;
10635	esac
10636      fi
10637      hardcode_libdir_flag_spec='-R$libdir'
10638      hardcode_shlibpath_var=no
10639      case $host_os in
10640      solaris2.[0-5] | solaris2.[0-5].*) ;;
10641      *)
10642	# The compiler driver will combine and reorder linker options,
10643	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10644	# but is careful enough not to reorder.
10645	# Supported since Solaris 2.6 (maybe 2.5.1?)
10646	if test yes = "$GCC"; then
10647	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10648	else
10649	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10650	fi
10651	;;
10652      esac
10653      link_all_deplibs=yes
10654      ;;
10655
10656    sunos4*)
10657      if test sequent = "$host_vendor"; then
10658	# Use $CC to link under sequent, because it throws in some extra .o
10659	# files that make .init and .fini sections work.
10660	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10661      else
10662	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10663      fi
10664      hardcode_libdir_flag_spec='-L$libdir'
10665      hardcode_direct=yes
10666      hardcode_minus_L=yes
10667      hardcode_shlibpath_var=no
10668      ;;
10669
10670    sysv4)
10671      case $host_vendor in
10672	sni)
10673	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10674	  hardcode_direct=yes # is this really true???
10675	;;
10676	siemens)
10677	  ## LD is ld it makes a PLAMLIB
10678	  ## CC just makes a GrossModule.
10679	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10680	  reload_cmds='$CC -r -o $output$reload_objs'
10681	  hardcode_direct=no
10682        ;;
10683	motorola)
10684	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10685	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10686	;;
10687      esac
10688      runpath_var='LD_RUN_PATH'
10689      hardcode_shlibpath_var=no
10690      ;;
10691
10692    sysv4.3*)
10693      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10694      hardcode_shlibpath_var=no
10695      export_dynamic_flag_spec='-Bexport'
10696      ;;
10697
10698    sysv4*MP*)
10699      if test -d /usr/nec; then
10700	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10701	hardcode_shlibpath_var=no
10702	runpath_var=LD_RUN_PATH
10703	hardcode_runpath_var=yes
10704	ld_shlibs=yes
10705      fi
10706      ;;
10707
10708    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10709      no_undefined_flag='$wl-z,text'
10710      archive_cmds_need_lc=no
10711      hardcode_shlibpath_var=no
10712      runpath_var='LD_RUN_PATH'
10713
10714      if test yes = "$GCC"; then
10715	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10716	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10717      else
10718	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10719	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10720      fi
10721      ;;
10722
10723    sysv5* | sco3.2v5* | sco5v6*)
10724      # Note: We CANNOT use -z defs as we might desire, because we do not
10725      # link with -lc, and that would cause any symbols used from libc to
10726      # always be unresolved, which means just about no library would
10727      # ever link correctly.  If we're not using GNU ld we use -z text
10728      # though, which does catch some bad symbols but isn't as heavy-handed
10729      # as -z defs.
10730      no_undefined_flag='$wl-z,text'
10731      allow_undefined_flag='$wl-z,nodefs'
10732      archive_cmds_need_lc=no
10733      hardcode_shlibpath_var=no
10734      hardcode_libdir_flag_spec='$wl-R,$libdir'
10735      hardcode_libdir_separator=':'
10736      link_all_deplibs=yes
10737      export_dynamic_flag_spec='$wl-Bexport'
10738      runpath_var='LD_RUN_PATH'
10739
10740      if test yes = "$GCC"; then
10741	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10742	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10743      else
10744	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10745	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10746      fi
10747      ;;
10748
10749    uts4*)
10750      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10751      hardcode_libdir_flag_spec='-L$libdir'
10752      hardcode_shlibpath_var=no
10753      ;;
10754
10755    *)
10756      ld_shlibs=no
10757      ;;
10758    esac
10759
10760    if test sni = "$host_vendor"; then
10761      case $host in
10762      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10763	export_dynamic_flag_spec='$wl-Blargedynsym'
10764	;;
10765      esac
10766    fi
10767  fi
10768
10769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10770printf "%s\n" "$ld_shlibs" >&6; }
10771test no = "$ld_shlibs" && can_build_shared=no
10772
10773with_gnu_ld=$with_gnu_ld
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789#
10790# Do we need to explicitly link libc?
10791#
10792case "x$archive_cmds_need_lc" in
10793x|xyes)
10794  # Assume -lc should be added
10795  archive_cmds_need_lc=yes
10796
10797  if test yes,yes = "$GCC,$enable_shared"; then
10798    case $archive_cmds in
10799    *'~'*)
10800      # FIXME: we may have to deal with multi-command sequences.
10801      ;;
10802    '$CC '*)
10803      # Test whether the compiler implicitly links with -lc since on some
10804      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10805      # to ld, don't add -lc before -lgcc.
10806      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10807printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10808if test ${lt_cv_archive_cmds_need_lc+y}
10809then :
10810  printf %s "(cached) " >&6
10811else $as_nop
10812  $RM conftest*
10813	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10814
10815	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10816  (eval $ac_compile) 2>&5
10817  ac_status=$?
10818  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10819  test $ac_status = 0; } 2>conftest.err; then
10820	  soname=conftest
10821	  lib=conftest
10822	  libobjs=conftest.$ac_objext
10823	  deplibs=
10824	  wl=$lt_prog_compiler_wl
10825	  pic_flag=$lt_prog_compiler_pic
10826	  compiler_flags=-v
10827	  linker_flags=-v
10828	  verstring=
10829	  output_objdir=.
10830	  libname=conftest
10831	  lt_save_allow_undefined_flag=$allow_undefined_flag
10832	  allow_undefined_flag=
10833	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10834  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10835  ac_status=$?
10836  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10837  test $ac_status = 0; }
10838	  then
10839	    lt_cv_archive_cmds_need_lc=no
10840	  else
10841	    lt_cv_archive_cmds_need_lc=yes
10842	  fi
10843	  allow_undefined_flag=$lt_save_allow_undefined_flag
10844	else
10845	  cat conftest.err 1>&5
10846	fi
10847	$RM conftest*
10848
10849fi
10850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10851printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10852      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10853      ;;
10854    esac
10855  fi
10856  ;;
10857esac
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11011printf %s "checking dynamic linker characteristics... " >&6; }
11012
11013if test yes = "$GCC"; then
11014  case $host_os in
11015    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11016    *) lt_awk_arg='/^libraries:/' ;;
11017  esac
11018  case $host_os in
11019    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11020    *) lt_sed_strip_eq='s|=/|/|g' ;;
11021  esac
11022  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11023  case $lt_search_path_spec in
11024  *\;*)
11025    # if the path contains ";" then we assume it to be the separator
11026    # otherwise default to the standard path separator (i.e. ":") - it is
11027    # assumed that no part of a normal pathname contains ";" but that should
11028    # okay in the real world where ";" in dirpaths is itself problematic.
11029    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11030    ;;
11031  *)
11032    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11033    ;;
11034  esac
11035  # Ok, now we have the path, separated by spaces, we can step through it
11036  # and add multilib dir if necessary...
11037  lt_tmp_lt_search_path_spec=
11038  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11039  # ...but if some path component already ends with the multilib dir we assume
11040  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11041  case "$lt_multi_os_dir; $lt_search_path_spec " in
11042  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11043    lt_multi_os_dir=
11044    ;;
11045  esac
11046  for lt_sys_path in $lt_search_path_spec; do
11047    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11048      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11049    elif test -n "$lt_multi_os_dir"; then
11050      test -d "$lt_sys_path" && \
11051	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11052    fi
11053  done
11054  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11055BEGIN {RS = " "; FS = "/|\n";} {
11056  lt_foo = "";
11057  lt_count = 0;
11058  for (lt_i = NF; lt_i > 0; lt_i--) {
11059    if ($lt_i != "" && $lt_i != ".") {
11060      if ($lt_i == "..") {
11061        lt_count++;
11062      } else {
11063        if (lt_count == 0) {
11064          lt_foo = "/" $lt_i lt_foo;
11065        } else {
11066          lt_count--;
11067        }
11068      }
11069    }
11070  }
11071  if (lt_foo != "") { lt_freq[lt_foo]++; }
11072  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11073}'`
11074  # AWK program above erroneously prepends '/' to C:/dos/paths
11075  # for these hosts.
11076  case $host_os in
11077    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11078      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11079  esac
11080  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11081else
11082  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11083fi
11084library_names_spec=
11085libname_spec='lib$name'
11086soname_spec=
11087shrext_cmds=.so
11088postinstall_cmds=
11089postuninstall_cmds=
11090finish_cmds=
11091finish_eval=
11092shlibpath_var=
11093shlibpath_overrides_runpath=unknown
11094version_type=none
11095dynamic_linker="$host_os ld.so"
11096sys_lib_dlsearch_path_spec="/lib /usr/lib"
11097need_lib_prefix=unknown
11098hardcode_into_libs=no
11099
11100# when you set need_version to no, make sure it does not cause -set_version
11101# flags to be left without arguments
11102need_version=unknown
11103
11104
11105
11106case $host_os in
11107aix3*)
11108  version_type=linux # correct to gnu/linux during the next big refactor
11109  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11110  shlibpath_var=LIBPATH
11111
11112  # AIX 3 has no versioning support, so we append a major version to the name.
11113  soname_spec='$libname$release$shared_ext$major'
11114  ;;
11115
11116aix[4-9]*)
11117  version_type=linux # correct to gnu/linux during the next big refactor
11118  need_lib_prefix=no
11119  need_version=no
11120  hardcode_into_libs=yes
11121  if test ia64 = "$host_cpu"; then
11122    # AIX 5 supports IA64
11123    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11124    shlibpath_var=LD_LIBRARY_PATH
11125  else
11126    # With GCC up to 2.95.x, collect2 would create an import file
11127    # for dependence libraries.  The import file would start with
11128    # the line '#! .'.  This would cause the generated library to
11129    # depend on '.', always an invalid library.  This was fixed in
11130    # development snapshots of GCC prior to 3.0.
11131    case $host_os in
11132      aix4 | aix4.[01] | aix4.[01].*)
11133      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11134	   echo ' yes '
11135	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11136	:
11137      else
11138	can_build_shared=no
11139      fi
11140      ;;
11141    esac
11142    # Using Import Files as archive members, it is possible to support
11143    # filename-based versioning of shared library archives on AIX. While
11144    # this would work for both with and without runtime linking, it will
11145    # prevent static linking of such archives. So we do filename-based
11146    # shared library versioning with .so extension only, which is used
11147    # when both runtime linking and shared linking is enabled.
11148    # Unfortunately, runtime linking may impact performance, so we do
11149    # not want this to be the default eventually. Also, we use the
11150    # versioned .so libs for executables only if there is the -brtl
11151    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11152    # To allow for filename-based versioning support, we need to create
11153    # libNAME.so.V as an archive file, containing:
11154    # *) an Import File, referring to the versioned filename of the
11155    #    archive as well as the shared archive member, telling the
11156    #    bitwidth (32 or 64) of that shared object, and providing the
11157    #    list of exported symbols of that shared object, eventually
11158    #    decorated with the 'weak' keyword
11159    # *) the shared object with the F_LOADONLY flag set, to really avoid
11160    #    it being seen by the linker.
11161    # At run time we better use the real file rather than another symlink,
11162    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11163
11164    case $with_aix_soname,$aix_use_runtimelinking in
11165    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11166    # soname into executable. Probably we can add versioning support to
11167    # collect2, so additional links can be useful in future.
11168    aix,yes) # traditional libtool
11169      dynamic_linker='AIX unversionable lib.so'
11170      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11171      # instead of lib<name>.a to let people know that these are not
11172      # typical AIX shared libraries.
11173      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11174      ;;
11175    aix,no) # traditional AIX only
11176      dynamic_linker='AIX lib.a(lib.so.V)'
11177      # We preserve .a as extension for shared libraries through AIX4.2
11178      # and later when we are not doing run time linking.
11179      library_names_spec='$libname$release.a $libname.a'
11180      soname_spec='$libname$release$shared_ext$major'
11181      ;;
11182    svr4,*) # full svr4 only
11183      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11184      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11185      # We do not specify a path in Import Files, so LIBPATH fires.
11186      shlibpath_overrides_runpath=yes
11187      ;;
11188    *,yes) # both, prefer svr4
11189      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11190      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11191      # unpreferred sharedlib libNAME.a needs extra handling
11192      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"'
11193      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"'
11194      # We do not specify a path in Import Files, so LIBPATH fires.
11195      shlibpath_overrides_runpath=yes
11196      ;;
11197    *,no) # both, prefer aix
11198      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11199      library_names_spec='$libname$release.a $libname.a'
11200      soname_spec='$libname$release$shared_ext$major'
11201      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11202      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)'
11203      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"'
11204      ;;
11205    esac
11206    shlibpath_var=LIBPATH
11207  fi
11208  ;;
11209
11210amigaos*)
11211  case $host_cpu in
11212  powerpc)
11213    # Since July 2007 AmigaOS4 officially supports .so libraries.
11214    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11215    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11216    ;;
11217  m68k)
11218    library_names_spec='$libname.ixlibrary $libname.a'
11219    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11220    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'
11221    ;;
11222  esac
11223  ;;
11224
11225beos*)
11226  library_names_spec='$libname$shared_ext'
11227  dynamic_linker="$host_os ld.so"
11228  shlibpath_var=LIBRARY_PATH
11229  ;;
11230
11231bsdi[45]*)
11232  version_type=linux # correct to gnu/linux during the next big refactor
11233  need_version=no
11234  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11235  soname_spec='$libname$release$shared_ext$major'
11236  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11237  shlibpath_var=LD_LIBRARY_PATH
11238  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11239  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11240  # the default ld.so.conf also contains /usr/contrib/lib and
11241  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11242  # libtool to hard-code these into programs
11243  ;;
11244
11245cygwin* | mingw* | pw32* | cegcc*)
11246  version_type=windows
11247  shrext_cmds=.dll
11248  need_version=no
11249  need_lib_prefix=no
11250
11251  case $GCC,$cc_basename in
11252  yes,*)
11253    # gcc
11254    library_names_spec='$libname.dll.a'
11255    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11256    postinstall_cmds='base_file=`basename \$file`~
11257      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11258      dldir=$destdir/`dirname \$dlpath`~
11259      test -d \$dldir || mkdir -p \$dldir~
11260      $install_prog $dir/$dlname \$dldir/$dlname~
11261      chmod a+x \$dldir/$dlname~
11262      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11263        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11264      fi'
11265    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11266      dlpath=$dir/\$dldll~
11267       $RM \$dlpath'
11268    shlibpath_overrides_runpath=yes
11269
11270    case $host_os in
11271    cygwin*)
11272      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11273      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11274
11275      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11276      ;;
11277    mingw* | cegcc*)
11278      # MinGW DLLs use traditional 'lib' prefix
11279      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11280      ;;
11281    pw32*)
11282      # pw32 DLLs use 'pw' prefix rather than 'lib'
11283      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11284      ;;
11285    esac
11286    dynamic_linker='Win32 ld.exe'
11287    ;;
11288
11289  *,cl* | *,icl*)
11290    # Native MSVC or ICC
11291    libname_spec='$name'
11292    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11293    library_names_spec='$libname.dll.lib'
11294
11295    case $build_os in
11296    mingw*)
11297      sys_lib_search_path_spec=
11298      lt_save_ifs=$IFS
11299      IFS=';'
11300      for lt_path in $LIB
11301      do
11302        IFS=$lt_save_ifs
11303        # Let DOS variable expansion print the short 8.3 style file name.
11304        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11305        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11306      done
11307      IFS=$lt_save_ifs
11308      # Convert to MSYS style.
11309      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11310      ;;
11311    cygwin*)
11312      # Convert to unix form, then to dos form, then back to unix form
11313      # but this time dos style (no spaces!) so that the unix form looks
11314      # like /cygdrive/c/PROGRA~1:/cygdr...
11315      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11316      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11317      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11318      ;;
11319    *)
11320      sys_lib_search_path_spec=$LIB
11321      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11322        # It is most probably a Windows format PATH.
11323        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11324      else
11325        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11326      fi
11327      # FIXME: find the short name or the path components, as spaces are
11328      # common. (e.g. "Program Files" -> "PROGRA~1")
11329      ;;
11330    esac
11331
11332    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11333    postinstall_cmds='base_file=`basename \$file`~
11334      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11335      dldir=$destdir/`dirname \$dlpath`~
11336      test -d \$dldir || mkdir -p \$dldir~
11337      $install_prog $dir/$dlname \$dldir/$dlname'
11338    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11339      dlpath=$dir/\$dldll~
11340       $RM \$dlpath'
11341    shlibpath_overrides_runpath=yes
11342    dynamic_linker='Win32 link.exe'
11343    ;;
11344
11345  *)
11346    # Assume MSVC and ICC wrapper
11347    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11348    dynamic_linker='Win32 ld.exe'
11349    ;;
11350  esac
11351  # FIXME: first we should search . and the directory the executable is in
11352  shlibpath_var=PATH
11353  ;;
11354
11355darwin* | rhapsody*)
11356  dynamic_linker="$host_os dyld"
11357  version_type=darwin
11358  need_lib_prefix=no
11359  need_version=no
11360  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11361  soname_spec='$libname$release$major$shared_ext'
11362  shlibpath_overrides_runpath=yes
11363  shlibpath_var=DYLD_LIBRARY_PATH
11364  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11365
11366  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11367  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11368  ;;
11369
11370dgux*)
11371  version_type=linux # correct to gnu/linux during the next big refactor
11372  need_lib_prefix=no
11373  need_version=no
11374  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11375  soname_spec='$libname$release$shared_ext$major'
11376  shlibpath_var=LD_LIBRARY_PATH
11377  ;;
11378
11379freebsd* | dragonfly* | midnightbsd*)
11380  # DragonFly does not have aout.  When/if they implement a new
11381  # versioning mechanism, adjust this.
11382  if test -x /usr/bin/objformat; then
11383    objformat=`/usr/bin/objformat`
11384  else
11385    case $host_os in
11386    freebsd[23].*) objformat=aout ;;
11387    *) objformat=elf ;;
11388    esac
11389  fi
11390  version_type=freebsd-$objformat
11391  case $version_type in
11392    freebsd-elf*)
11393      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11394      soname_spec='$libname$release$shared_ext$major'
11395      need_version=no
11396      need_lib_prefix=no
11397      ;;
11398    freebsd-*)
11399      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11400      need_version=yes
11401      ;;
11402  esac
11403  shlibpath_var=LD_LIBRARY_PATH
11404  case $host_os in
11405  freebsd2.*)
11406    shlibpath_overrides_runpath=yes
11407    ;;
11408  freebsd3.[01]* | freebsdelf3.[01]*)
11409    shlibpath_overrides_runpath=yes
11410    hardcode_into_libs=yes
11411    ;;
11412  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11413  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11414    shlibpath_overrides_runpath=no
11415    hardcode_into_libs=yes
11416    ;;
11417  *) # from 4.6 on, and DragonFly
11418    shlibpath_overrides_runpath=yes
11419    hardcode_into_libs=yes
11420    ;;
11421  esac
11422  ;;
11423
11424haiku*)
11425  version_type=linux # correct to gnu/linux during the next big refactor
11426  need_lib_prefix=no
11427  need_version=no
11428  dynamic_linker="$host_os runtime_loader"
11429  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11430  soname_spec='$libname$release$shared_ext$major'
11431  shlibpath_var=LIBRARY_PATH
11432  shlibpath_overrides_runpath=no
11433  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11434  hardcode_into_libs=yes
11435  ;;
11436
11437hpux9* | hpux10* | hpux11*)
11438  # Give a soname corresponding to the major version so that dld.sl refuses to
11439  # link against other versions.
11440  version_type=sunos
11441  need_lib_prefix=no
11442  need_version=no
11443  case $host_cpu in
11444  ia64*)
11445    shrext_cmds='.so'
11446    hardcode_into_libs=yes
11447    dynamic_linker="$host_os dld.so"
11448    shlibpath_var=LD_LIBRARY_PATH
11449    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11450    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11451    soname_spec='$libname$release$shared_ext$major'
11452    if test 32 = "$HPUX_IA64_MODE"; then
11453      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11454      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11455    else
11456      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11457      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11458    fi
11459    ;;
11460  hppa*64*)
11461    shrext_cmds='.sl'
11462    hardcode_into_libs=yes
11463    dynamic_linker="$host_os dld.sl"
11464    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11465    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11466    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11467    soname_spec='$libname$release$shared_ext$major'
11468    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11469    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11470    ;;
11471  *)
11472    shrext_cmds='.sl'
11473    dynamic_linker="$host_os dld.sl"
11474    shlibpath_var=SHLIB_PATH
11475    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11476    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11477    soname_spec='$libname$release$shared_ext$major'
11478    ;;
11479  esac
11480  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11481  postinstall_cmds='chmod 555 $lib'
11482  # or fails outright, so override atomically:
11483  install_override_mode=555
11484  ;;
11485
11486interix[3-9]*)
11487  version_type=linux # correct to gnu/linux during the next big refactor
11488  need_lib_prefix=no
11489  need_version=no
11490  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11491  soname_spec='$libname$release$shared_ext$major'
11492  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11493  shlibpath_var=LD_LIBRARY_PATH
11494  shlibpath_overrides_runpath=no
11495  hardcode_into_libs=yes
11496  ;;
11497
11498irix5* | irix6* | nonstopux*)
11499  case $host_os in
11500    nonstopux*) version_type=nonstopux ;;
11501    *)
11502	if test yes = "$lt_cv_prog_gnu_ld"; then
11503		version_type=linux # correct to gnu/linux during the next big refactor
11504	else
11505		version_type=irix
11506	fi ;;
11507  esac
11508  need_lib_prefix=no
11509  need_version=no
11510  soname_spec='$libname$release$shared_ext$major'
11511  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11512  case $host_os in
11513  irix5* | nonstopux*)
11514    libsuff= shlibsuff=
11515    ;;
11516  *)
11517    case $LD in # libtool.m4 will add one of these switches to LD
11518    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11519      libsuff= shlibsuff= libmagic=32-bit;;
11520    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11521      libsuff=32 shlibsuff=N32 libmagic=N32;;
11522    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11523      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11524    *) libsuff= shlibsuff= libmagic=never-match;;
11525    esac
11526    ;;
11527  esac
11528  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11529  shlibpath_overrides_runpath=no
11530  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11531  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11532  hardcode_into_libs=yes
11533  ;;
11534
11535# No shared lib support for Linux oldld, aout, or coff.
11536linux*oldld* | linux*aout* | linux*coff*)
11537  dynamic_linker=no
11538  ;;
11539
11540linux*android*)
11541  version_type=none # Android doesn't support versioned libraries.
11542  need_lib_prefix=no
11543  need_version=no
11544  library_names_spec='$libname$release$shared_ext'
11545  soname_spec='$libname$release$shared_ext'
11546  finish_cmds=
11547  shlibpath_var=LD_LIBRARY_PATH
11548  shlibpath_overrides_runpath=yes
11549
11550  # This implies no fast_install, which is unacceptable.
11551  # Some rework will be needed to allow for fast_install
11552  # before this can be enabled.
11553  hardcode_into_libs=yes
11554
11555  dynamic_linker='Android linker'
11556  # Don't embed -rpath directories since the linker doesn't support them.
11557  hardcode_libdir_flag_spec='-L$libdir'
11558  ;;
11559
11560# This must be glibc/ELF.
11561linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11562  version_type=linux # correct to gnu/linux during the next big refactor
11563  need_lib_prefix=no
11564  need_version=no
11565  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11566  soname_spec='$libname$release$shared_ext$major'
11567  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11568  shlibpath_var=LD_LIBRARY_PATH
11569  shlibpath_overrides_runpath=no
11570
11571  # Some binutils ld are patched to set DT_RUNPATH
11572  if test ${lt_cv_shlibpath_overrides_runpath+y}
11573then :
11574  printf %s "(cached) " >&6
11575else $as_nop
11576  lt_cv_shlibpath_overrides_runpath=no
11577    save_LDFLAGS=$LDFLAGS
11578    save_libdir=$libdir
11579    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11580	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11581    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11582/* end confdefs.h.  */
11583
11584int
11585main (void)
11586{
11587
11588  ;
11589  return 0;
11590}
11591_ACEOF
11592if ac_fn_c_try_link "$LINENO"
11593then :
11594  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11595then :
11596  lt_cv_shlibpath_overrides_runpath=yes
11597fi
11598fi
11599rm -f core conftest.err conftest.$ac_objext conftest.beam \
11600    conftest$ac_exeext conftest.$ac_ext
11601    LDFLAGS=$save_LDFLAGS
11602    libdir=$save_libdir
11603
11604fi
11605
11606  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11607
11608  # This implies no fast_install, which is unacceptable.
11609  # Some rework will be needed to allow for fast_install
11610  # before this can be enabled.
11611  hardcode_into_libs=yes
11612
11613  # Ideally, we could use ldconfig to report *all* directores which are
11614  # searched for libraries, however this is still not possible.  Aside from not
11615  # being certain /sbin/ldconfig is available, command
11616  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11617  # even though it is searched at run-time.  Try to do the best guess by
11618  # appending ld.so.conf contents (and includes) to the search path.
11619  if test -f /etc/ld.so.conf; then
11620    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' ' '`
11621    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11622  fi
11623
11624  # We used to test for /lib/ld.so.1 and disable shared libraries on
11625  # powerpc, because MkLinux only supported shared libraries with the
11626  # GNU dynamic linker.  Since this was broken with cross compilers,
11627  # most powerpc-linux boxes support dynamic linking these days and
11628  # people can always --disable-shared, the test was removed, and we
11629  # assume the GNU/Linux dynamic linker is in use.
11630  dynamic_linker='GNU/Linux ld.so'
11631  ;;
11632
11633netbsd*)
11634  version_type=sunos
11635  need_lib_prefix=no
11636  need_version=no
11637  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11638    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11639    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11640    dynamic_linker='NetBSD (a.out) ld.so'
11641  else
11642    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11643    soname_spec='$libname$release$shared_ext$major'
11644    dynamic_linker='NetBSD ld.elf_so'
11645  fi
11646  shlibpath_var=LD_LIBRARY_PATH
11647  shlibpath_overrides_runpath=yes
11648  hardcode_into_libs=yes
11649  ;;
11650
11651newsos6)
11652  version_type=linux # correct to gnu/linux during the next big refactor
11653  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11654  shlibpath_var=LD_LIBRARY_PATH
11655  shlibpath_overrides_runpath=yes
11656  ;;
11657
11658*nto* | *qnx*)
11659  version_type=qnx
11660  need_lib_prefix=no
11661  need_version=no
11662  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11663  soname_spec='$libname$release$shared_ext$major'
11664  shlibpath_var=LD_LIBRARY_PATH
11665  shlibpath_overrides_runpath=no
11666  hardcode_into_libs=yes
11667  dynamic_linker='ldqnx.so'
11668  ;;
11669
11670openbsd* | bitrig*)
11671  version_type=sunos
11672  sys_lib_dlsearch_path_spec=/usr/lib
11673  need_lib_prefix=no
11674  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11675    need_version=no
11676  else
11677    need_version=yes
11678  fi
11679  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11680  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11681  shlibpath_var=LD_LIBRARY_PATH
11682  shlibpath_overrides_runpath=yes
11683  ;;
11684
11685os2*)
11686  libname_spec='$name'
11687  version_type=windows
11688  shrext_cmds=.dll
11689  need_version=no
11690  need_lib_prefix=no
11691  # OS/2 can only load a DLL with a base name of 8 characters or less.
11692  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11693    v=$($ECHO $release$versuffix | tr -d .-);
11694    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11695    $ECHO $n$v`$shared_ext'
11696  library_names_spec='${libname}_dll.$libext'
11697  dynamic_linker='OS/2 ld.exe'
11698  shlibpath_var=BEGINLIBPATH
11699  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11700  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11701  postinstall_cmds='base_file=`basename \$file`~
11702    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11703    dldir=$destdir/`dirname \$dlpath`~
11704    test -d \$dldir || mkdir -p \$dldir~
11705    $install_prog $dir/$dlname \$dldir/$dlname~
11706    chmod a+x \$dldir/$dlname~
11707    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11708      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11709    fi'
11710  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11711    dlpath=$dir/\$dldll~
11712    $RM \$dlpath'
11713  ;;
11714
11715osf3* | osf4* | osf5*)
11716  version_type=osf
11717  need_lib_prefix=no
11718  need_version=no
11719  soname_spec='$libname$release$shared_ext$major'
11720  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11721  shlibpath_var=LD_LIBRARY_PATH
11722  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11723  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11724  ;;
11725
11726rdos*)
11727  dynamic_linker=no
11728  ;;
11729
11730solaris*)
11731  version_type=linux # correct to gnu/linux during the next big refactor
11732  need_lib_prefix=no
11733  need_version=no
11734  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11735  soname_spec='$libname$release$shared_ext$major'
11736  shlibpath_var=LD_LIBRARY_PATH
11737  shlibpath_overrides_runpath=yes
11738  hardcode_into_libs=yes
11739  # ldd complains unless libraries are executable
11740  postinstall_cmds='chmod +x $lib'
11741  ;;
11742
11743sunos4*)
11744  version_type=sunos
11745  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11746  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11747  shlibpath_var=LD_LIBRARY_PATH
11748  shlibpath_overrides_runpath=yes
11749  if test yes = "$with_gnu_ld"; then
11750    need_lib_prefix=no
11751  fi
11752  need_version=yes
11753  ;;
11754
11755sysv4 | sysv4.3*)
11756  version_type=linux # correct to gnu/linux during the next big refactor
11757  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11758  soname_spec='$libname$release$shared_ext$major'
11759  shlibpath_var=LD_LIBRARY_PATH
11760  case $host_vendor in
11761    sni)
11762      shlibpath_overrides_runpath=no
11763      need_lib_prefix=no
11764      runpath_var=LD_RUN_PATH
11765      ;;
11766    siemens)
11767      need_lib_prefix=no
11768      ;;
11769    motorola)
11770      need_lib_prefix=no
11771      need_version=no
11772      shlibpath_overrides_runpath=no
11773      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11774      ;;
11775  esac
11776  ;;
11777
11778sysv4*MP*)
11779  if test -d /usr/nec; then
11780    version_type=linux # correct to gnu/linux during the next big refactor
11781    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11782    soname_spec='$libname$shared_ext.$major'
11783    shlibpath_var=LD_LIBRARY_PATH
11784  fi
11785  ;;
11786
11787sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11788  version_type=sco
11789  need_lib_prefix=no
11790  need_version=no
11791  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11792  soname_spec='$libname$release$shared_ext$major'
11793  shlibpath_var=LD_LIBRARY_PATH
11794  shlibpath_overrides_runpath=yes
11795  hardcode_into_libs=yes
11796  if test yes = "$with_gnu_ld"; then
11797    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11798  else
11799    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11800    case $host_os in
11801      sco3.2v5*)
11802        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11803	;;
11804    esac
11805  fi
11806  sys_lib_dlsearch_path_spec='/usr/lib'
11807  ;;
11808
11809tpf*)
11810  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11811  version_type=linux # correct to gnu/linux during the next big refactor
11812  need_lib_prefix=no
11813  need_version=no
11814  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11815  shlibpath_var=LD_LIBRARY_PATH
11816  shlibpath_overrides_runpath=no
11817  hardcode_into_libs=yes
11818  ;;
11819
11820uts4*)
11821  version_type=linux # correct to gnu/linux during the next big refactor
11822  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11823  soname_spec='$libname$release$shared_ext$major'
11824  shlibpath_var=LD_LIBRARY_PATH
11825  ;;
11826
11827*)
11828  dynamic_linker=no
11829  ;;
11830esac
11831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11832printf "%s\n" "$dynamic_linker" >&6; }
11833test no = "$dynamic_linker" && can_build_shared=no
11834
11835variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11836if test yes = "$GCC"; then
11837  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11838fi
11839
11840if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11841  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11842fi
11843
11844if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11845  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11846fi
11847
11848# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11849configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11850
11851# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11852func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11853
11854# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11855configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11954printf %s "checking how to hardcode library paths into programs... " >&6; }
11955hardcode_action=
11956if test -n "$hardcode_libdir_flag_spec" ||
11957   test -n "$runpath_var" ||
11958   test yes = "$hardcode_automatic"; then
11959
11960  # We can hardcode non-existent directories.
11961  if test no != "$hardcode_direct" &&
11962     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11963     # have to relink, otherwise we might link with an installed library
11964     # when we should be linking with a yet-to-be-installed one
11965     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11966     test no != "$hardcode_minus_L"; then
11967    # Linking always hardcodes the temporary library directory.
11968    hardcode_action=relink
11969  else
11970    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11971    hardcode_action=immediate
11972  fi
11973else
11974  # We cannot hardcode anything, or else we can only hardcode existing
11975  # directories.
11976  hardcode_action=unsupported
11977fi
11978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11979printf "%s\n" "$hardcode_action" >&6; }
11980
11981if test relink = "$hardcode_action" ||
11982   test yes = "$inherit_rpath"; then
11983  # Fast installation is not supported
11984  enable_fast_install=no
11985elif test yes = "$shlibpath_overrides_runpath" ||
11986     test no = "$enable_shared"; then
11987  # Fast installation is not necessary
11988  enable_fast_install=needless
11989fi
11990
11991
11992
11993
11994
11995
11996  if test yes != "$enable_dlopen"; then
11997  enable_dlopen=unknown
11998  enable_dlopen_self=unknown
11999  enable_dlopen_self_static=unknown
12000else
12001  lt_cv_dlopen=no
12002  lt_cv_dlopen_libs=
12003
12004  case $host_os in
12005  beos*)
12006    lt_cv_dlopen=load_add_on
12007    lt_cv_dlopen_libs=
12008    lt_cv_dlopen_self=yes
12009    ;;
12010
12011  mingw* | pw32* | cegcc*)
12012    lt_cv_dlopen=LoadLibrary
12013    lt_cv_dlopen_libs=
12014    ;;
12015
12016  cygwin*)
12017    lt_cv_dlopen=dlopen
12018    lt_cv_dlopen_libs=
12019    ;;
12020
12021  darwin*)
12022    # if libdl is installed we need to link against it
12023    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12024printf %s "checking for dlopen in -ldl... " >&6; }
12025if test ${ac_cv_lib_dl_dlopen+y}
12026then :
12027  printf %s "(cached) " >&6
12028else $as_nop
12029  ac_check_lib_save_LIBS=$LIBS
12030LIBS="-ldl  $LIBS"
12031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12032/* end confdefs.h.  */
12033
12034/* Override any GCC internal prototype to avoid an error.
12035   Use char because int might match the return type of a GCC
12036   builtin and then its argument prototype would still apply.  */
12037char dlopen ();
12038int
12039main (void)
12040{
12041return dlopen ();
12042  ;
12043  return 0;
12044}
12045_ACEOF
12046if ac_fn_c_try_link "$LINENO"
12047then :
12048  ac_cv_lib_dl_dlopen=yes
12049else $as_nop
12050  ac_cv_lib_dl_dlopen=no
12051fi
12052rm -f core conftest.err conftest.$ac_objext conftest.beam \
12053    conftest$ac_exeext conftest.$ac_ext
12054LIBS=$ac_check_lib_save_LIBS
12055fi
12056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12057printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12058if test "x$ac_cv_lib_dl_dlopen" = xyes
12059then :
12060  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12061else $as_nop
12062
12063    lt_cv_dlopen=dyld
12064    lt_cv_dlopen_libs=
12065    lt_cv_dlopen_self=yes
12066
12067fi
12068
12069    ;;
12070
12071  tpf*)
12072    # Don't try to run any link tests for TPF.  We know it's impossible
12073    # because TPF is a cross-compiler, and we know how we open DSOs.
12074    lt_cv_dlopen=dlopen
12075    lt_cv_dlopen_libs=
12076    lt_cv_dlopen_self=no
12077    ;;
12078
12079  *)
12080    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12081if test "x$ac_cv_func_shl_load" = xyes
12082then :
12083  lt_cv_dlopen=shl_load
12084else $as_nop
12085  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12086printf %s "checking for shl_load in -ldld... " >&6; }
12087if test ${ac_cv_lib_dld_shl_load+y}
12088then :
12089  printf %s "(cached) " >&6
12090else $as_nop
12091  ac_check_lib_save_LIBS=$LIBS
12092LIBS="-ldld  $LIBS"
12093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12094/* end confdefs.h.  */
12095
12096/* Override any GCC internal prototype to avoid an error.
12097   Use char because int might match the return type of a GCC
12098   builtin and then its argument prototype would still apply.  */
12099char shl_load ();
12100int
12101main (void)
12102{
12103return shl_load ();
12104  ;
12105  return 0;
12106}
12107_ACEOF
12108if ac_fn_c_try_link "$LINENO"
12109then :
12110  ac_cv_lib_dld_shl_load=yes
12111else $as_nop
12112  ac_cv_lib_dld_shl_load=no
12113fi
12114rm -f core conftest.err conftest.$ac_objext conftest.beam \
12115    conftest$ac_exeext conftest.$ac_ext
12116LIBS=$ac_check_lib_save_LIBS
12117fi
12118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12119printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12120if test "x$ac_cv_lib_dld_shl_load" = xyes
12121then :
12122  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12123else $as_nop
12124  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12125if test "x$ac_cv_func_dlopen" = xyes
12126then :
12127  lt_cv_dlopen=dlopen
12128else $as_nop
12129  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12130printf %s "checking for dlopen in -ldl... " >&6; }
12131if test ${ac_cv_lib_dl_dlopen+y}
12132then :
12133  printf %s "(cached) " >&6
12134else $as_nop
12135  ac_check_lib_save_LIBS=$LIBS
12136LIBS="-ldl  $LIBS"
12137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138/* end confdefs.h.  */
12139
12140/* Override any GCC internal prototype to avoid an error.
12141   Use char because int might match the return type of a GCC
12142   builtin and then its argument prototype would still apply.  */
12143char dlopen ();
12144int
12145main (void)
12146{
12147return dlopen ();
12148  ;
12149  return 0;
12150}
12151_ACEOF
12152if ac_fn_c_try_link "$LINENO"
12153then :
12154  ac_cv_lib_dl_dlopen=yes
12155else $as_nop
12156  ac_cv_lib_dl_dlopen=no
12157fi
12158rm -f core conftest.err conftest.$ac_objext conftest.beam \
12159    conftest$ac_exeext conftest.$ac_ext
12160LIBS=$ac_check_lib_save_LIBS
12161fi
12162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12163printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12164if test "x$ac_cv_lib_dl_dlopen" = xyes
12165then :
12166  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12167else $as_nop
12168  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12169printf %s "checking for dlopen in -lsvld... " >&6; }
12170if test ${ac_cv_lib_svld_dlopen+y}
12171then :
12172  printf %s "(cached) " >&6
12173else $as_nop
12174  ac_check_lib_save_LIBS=$LIBS
12175LIBS="-lsvld  $LIBS"
12176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12177/* end confdefs.h.  */
12178
12179/* Override any GCC internal prototype to avoid an error.
12180   Use char because int might match the return type of a GCC
12181   builtin and then its argument prototype would still apply.  */
12182char dlopen ();
12183int
12184main (void)
12185{
12186return dlopen ();
12187  ;
12188  return 0;
12189}
12190_ACEOF
12191if ac_fn_c_try_link "$LINENO"
12192then :
12193  ac_cv_lib_svld_dlopen=yes
12194else $as_nop
12195  ac_cv_lib_svld_dlopen=no
12196fi
12197rm -f core conftest.err conftest.$ac_objext conftest.beam \
12198    conftest$ac_exeext conftest.$ac_ext
12199LIBS=$ac_check_lib_save_LIBS
12200fi
12201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12202printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12203if test "x$ac_cv_lib_svld_dlopen" = xyes
12204then :
12205  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12206else $as_nop
12207  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12208printf %s "checking for dld_link in -ldld... " >&6; }
12209if test ${ac_cv_lib_dld_dld_link+y}
12210then :
12211  printf %s "(cached) " >&6
12212else $as_nop
12213  ac_check_lib_save_LIBS=$LIBS
12214LIBS="-ldld  $LIBS"
12215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12216/* end confdefs.h.  */
12217
12218/* Override any GCC internal prototype to avoid an error.
12219   Use char because int might match the return type of a GCC
12220   builtin and then its argument prototype would still apply.  */
12221char dld_link ();
12222int
12223main (void)
12224{
12225return dld_link ();
12226  ;
12227  return 0;
12228}
12229_ACEOF
12230if ac_fn_c_try_link "$LINENO"
12231then :
12232  ac_cv_lib_dld_dld_link=yes
12233else $as_nop
12234  ac_cv_lib_dld_dld_link=no
12235fi
12236rm -f core conftest.err conftest.$ac_objext conftest.beam \
12237    conftest$ac_exeext conftest.$ac_ext
12238LIBS=$ac_check_lib_save_LIBS
12239fi
12240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12241printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12242if test "x$ac_cv_lib_dld_dld_link" = xyes
12243then :
12244  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12245fi
12246
12247
12248fi
12249
12250
12251fi
12252
12253
12254fi
12255
12256
12257fi
12258
12259
12260fi
12261
12262    ;;
12263  esac
12264
12265  if test no = "$lt_cv_dlopen"; then
12266    enable_dlopen=no
12267  else
12268    enable_dlopen=yes
12269  fi
12270
12271  case $lt_cv_dlopen in
12272  dlopen)
12273    save_CPPFLAGS=$CPPFLAGS
12274    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12275
12276    save_LDFLAGS=$LDFLAGS
12277    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12278
12279    save_LIBS=$LIBS
12280    LIBS="$lt_cv_dlopen_libs $LIBS"
12281
12282    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12283printf %s "checking whether a program can dlopen itself... " >&6; }
12284if test ${lt_cv_dlopen_self+y}
12285then :
12286  printf %s "(cached) " >&6
12287else $as_nop
12288  	  if test yes = "$cross_compiling"; then :
12289  lt_cv_dlopen_self=cross
12290else
12291  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12292  lt_status=$lt_dlunknown
12293  cat > conftest.$ac_ext <<_LT_EOF
12294#line $LINENO "configure"
12295#include "confdefs.h"
12296
12297#if HAVE_DLFCN_H
12298#include <dlfcn.h>
12299#endif
12300
12301#include <stdio.h>
12302
12303#ifdef RTLD_GLOBAL
12304#  define LT_DLGLOBAL		RTLD_GLOBAL
12305#else
12306#  ifdef DL_GLOBAL
12307#    define LT_DLGLOBAL		DL_GLOBAL
12308#  else
12309#    define LT_DLGLOBAL		0
12310#  endif
12311#endif
12312
12313/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12314   find out it does not work in some platform. */
12315#ifndef LT_DLLAZY_OR_NOW
12316#  ifdef RTLD_LAZY
12317#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12318#  else
12319#    ifdef DL_LAZY
12320#      define LT_DLLAZY_OR_NOW		DL_LAZY
12321#    else
12322#      ifdef RTLD_NOW
12323#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12324#      else
12325#        ifdef DL_NOW
12326#          define LT_DLLAZY_OR_NOW	DL_NOW
12327#        else
12328#          define LT_DLLAZY_OR_NOW	0
12329#        endif
12330#      endif
12331#    endif
12332#  endif
12333#endif
12334
12335/* When -fvisibility=hidden is used, assume the code has been annotated
12336   correspondingly for the symbols needed.  */
12337#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12338int fnord () __attribute__((visibility("default")));
12339#endif
12340
12341int fnord () { return 42; }
12342int main ()
12343{
12344  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12345  int status = $lt_dlunknown;
12346
12347  if (self)
12348    {
12349      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12350      else
12351        {
12352	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12353          else puts (dlerror ());
12354	}
12355      /* dlclose (self); */
12356    }
12357  else
12358    puts (dlerror ());
12359
12360  return status;
12361}
12362_LT_EOF
12363  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12364  (eval $ac_link) 2>&5
12365  ac_status=$?
12366  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12367  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12368    (./conftest; exit; ) >&5 2>/dev/null
12369    lt_status=$?
12370    case x$lt_status in
12371      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12372      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12373      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12374    esac
12375  else :
12376    # compilation failed
12377    lt_cv_dlopen_self=no
12378  fi
12379fi
12380rm -fr conftest*
12381
12382
12383fi
12384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12385printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12386
12387    if test yes = "$lt_cv_dlopen_self"; then
12388      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12389      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12390printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12391if test ${lt_cv_dlopen_self_static+y}
12392then :
12393  printf %s "(cached) " >&6
12394else $as_nop
12395  	  if test yes = "$cross_compiling"; then :
12396  lt_cv_dlopen_self_static=cross
12397else
12398  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12399  lt_status=$lt_dlunknown
12400  cat > conftest.$ac_ext <<_LT_EOF
12401#line $LINENO "configure"
12402#include "confdefs.h"
12403
12404#if HAVE_DLFCN_H
12405#include <dlfcn.h>
12406#endif
12407
12408#include <stdio.h>
12409
12410#ifdef RTLD_GLOBAL
12411#  define LT_DLGLOBAL		RTLD_GLOBAL
12412#else
12413#  ifdef DL_GLOBAL
12414#    define LT_DLGLOBAL		DL_GLOBAL
12415#  else
12416#    define LT_DLGLOBAL		0
12417#  endif
12418#endif
12419
12420/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12421   find out it does not work in some platform. */
12422#ifndef LT_DLLAZY_OR_NOW
12423#  ifdef RTLD_LAZY
12424#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12425#  else
12426#    ifdef DL_LAZY
12427#      define LT_DLLAZY_OR_NOW		DL_LAZY
12428#    else
12429#      ifdef RTLD_NOW
12430#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12431#      else
12432#        ifdef DL_NOW
12433#          define LT_DLLAZY_OR_NOW	DL_NOW
12434#        else
12435#          define LT_DLLAZY_OR_NOW	0
12436#        endif
12437#      endif
12438#    endif
12439#  endif
12440#endif
12441
12442/* When -fvisibility=hidden is used, assume the code has been annotated
12443   correspondingly for the symbols needed.  */
12444#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12445int fnord () __attribute__((visibility("default")));
12446#endif
12447
12448int fnord () { return 42; }
12449int main ()
12450{
12451  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12452  int status = $lt_dlunknown;
12453
12454  if (self)
12455    {
12456      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12457      else
12458        {
12459	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12460          else puts (dlerror ());
12461	}
12462      /* dlclose (self); */
12463    }
12464  else
12465    puts (dlerror ());
12466
12467  return status;
12468}
12469_LT_EOF
12470  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12471  (eval $ac_link) 2>&5
12472  ac_status=$?
12473  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12474  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12475    (./conftest; exit; ) >&5 2>/dev/null
12476    lt_status=$?
12477    case x$lt_status in
12478      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12479      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12480      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12481    esac
12482  else :
12483    # compilation failed
12484    lt_cv_dlopen_self_static=no
12485  fi
12486fi
12487rm -fr conftest*
12488
12489
12490fi
12491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12492printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12493    fi
12494
12495    CPPFLAGS=$save_CPPFLAGS
12496    LDFLAGS=$save_LDFLAGS
12497    LIBS=$save_LIBS
12498    ;;
12499  esac
12500
12501  case $lt_cv_dlopen_self in
12502  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12503  *) enable_dlopen_self=unknown ;;
12504  esac
12505
12506  case $lt_cv_dlopen_self_static in
12507  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12508  *) enable_dlopen_self_static=unknown ;;
12509  esac
12510fi
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528striplib=
12529old_striplib=
12530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12531printf %s "checking whether stripping libraries is possible... " >&6; }
12532if test -z "$STRIP"; then
12533  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12534printf "%s\n" "no" >&6; }
12535else
12536  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12537    old_striplib="$STRIP --strip-debug"
12538    striplib="$STRIP --strip-unneeded"
12539    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12540printf "%s\n" "yes" >&6; }
12541  else
12542    case $host_os in
12543    darwin*)
12544      # FIXME - insert some real tests, host_os isn't really good enough
12545      striplib="$STRIP -x"
12546      old_striplib="$STRIP -S"
12547      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12548printf "%s\n" "yes" >&6; }
12549      ;;
12550    freebsd*)
12551      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12552        old_striplib="$STRIP --strip-debug"
12553        striplib="$STRIP --strip-unneeded"
12554        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12555printf "%s\n" "yes" >&6; }
12556      else
12557        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12558printf "%s\n" "no" >&6; }
12559      fi
12560      ;;
12561    *)
12562      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12563printf "%s\n" "no" >&6; }
12564      ;;
12565    esac
12566  fi
12567fi
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580  # Report what library types will actually be built
12581  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12582printf %s "checking if libtool supports shared libraries... " >&6; }
12583  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12584printf "%s\n" "$can_build_shared" >&6; }
12585
12586  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12587printf %s "checking whether to build shared libraries... " >&6; }
12588  test no = "$can_build_shared" && enable_shared=no
12589
12590  # On AIX, shared libraries and static libraries use the same namespace, and
12591  # are all built from PIC.
12592  case $host_os in
12593  aix3*)
12594    test yes = "$enable_shared" && enable_static=no
12595    if test -n "$RANLIB"; then
12596      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12597      postinstall_cmds='$RANLIB $lib'
12598    fi
12599    ;;
12600
12601  aix[4-9]*)
12602    if test ia64 != "$host_cpu"; then
12603      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12604      yes,aix,yes) ;;			# shared object as lib.so file only
12605      yes,svr4,*) ;;			# shared object as lib.so archive member only
12606      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12607      esac
12608    fi
12609    ;;
12610  esac
12611  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12612printf "%s\n" "$enable_shared" >&6; }
12613
12614  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12615printf %s "checking whether to build static libraries... " >&6; }
12616  # Make sure either enable_shared or enable_static is yes.
12617  test yes = "$enable_shared" || enable_static=yes
12618  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12619printf "%s\n" "$enable_static" >&6; }
12620
12621
12622
12623
12624fi
12625ac_ext=c
12626ac_cpp='$CPP $CPPFLAGS'
12627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12629ac_compiler_gnu=$ac_cv_c_compiler_gnu
12630
12631CC=$lt_save_CC
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647        ac_config_commands="$ac_config_commands libtool"
12648
12649
12650
12651
12652# Only expand once:
12653
12654
12655
12656# Initialize X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12670printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12671if test ${ac_cv_c_undeclared_builtin_options+y}
12672then :
12673  printf %s "(cached) " >&6
12674else $as_nop
12675  ac_save_CFLAGS=$CFLAGS
12676   ac_cv_c_undeclared_builtin_options='cannot detect'
12677   for ac_arg in '' -fno-builtin; do
12678     CFLAGS="$ac_save_CFLAGS $ac_arg"
12679     # This test program should *not* compile successfully.
12680     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12681/* end confdefs.h.  */
12682
12683int
12684main (void)
12685{
12686(void) strchr;
12687  ;
12688  return 0;
12689}
12690_ACEOF
12691if ac_fn_c_try_compile "$LINENO"
12692then :
12693
12694else $as_nop
12695  # This test program should compile successfully.
12696        # No library function is consistently available on
12697        # freestanding implementations, so test against a dummy
12698        # declaration.  Include always-available headers on the
12699        # off chance that they somehow elicit warnings.
12700        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12701/* end confdefs.h.  */
12702#include <float.h>
12703#include <limits.h>
12704#include <stdarg.h>
12705#include <stddef.h>
12706extern void ac_decl (int, char *);
12707
12708int
12709main (void)
12710{
12711(void) ac_decl (0, (char *) 0);
12712  (void) ac_decl;
12713
12714  ;
12715  return 0;
12716}
12717_ACEOF
12718if ac_fn_c_try_compile "$LINENO"
12719then :
12720  if test x"$ac_arg" = x
12721then :
12722  ac_cv_c_undeclared_builtin_options='none needed'
12723else $as_nop
12724  ac_cv_c_undeclared_builtin_options=$ac_arg
12725fi
12726          break
12727fi
12728rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12729fi
12730rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12731    done
12732    CFLAGS=$ac_save_CFLAGS
12733
12734fi
12735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12736printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12737  case $ac_cv_c_undeclared_builtin_options in #(
12738  'cannot detect') :
12739    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12740printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12741as_fn_error $? "cannot make $CC report undeclared builtins
12742See \`config.log' for more details" "$LINENO" 5; } ;; #(
12743  'none needed') :
12744    ac_c_undeclared_builtin_options='' ;; #(
12745  *) :
12746    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12747esac
12748
12749
12750
12751
12752
12753ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12754if test "x$ac_cv_have_decl___clang__" = xyes
12755then :
12756  CLANGCC="yes"
12757else $as_nop
12758  CLANGCC="no"
12759fi
12760ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12761if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
12762then :
12763  INTELCC="yes"
12764else $as_nop
12765  INTELCC="no"
12766fi
12767ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12768if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
12769then :
12770  SUNCC="yes"
12771else $as_nop
12772  SUNCC="no"
12773fi
12774
12775
12776
12777
12778
12779
12780
12781
12782if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12783	if test -n "$ac_tool_prefix"; then
12784  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12785set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12787printf %s "checking for $ac_word... " >&6; }
12788if test ${ac_cv_path_PKG_CONFIG+y}
12789then :
12790  printf %s "(cached) " >&6
12791else $as_nop
12792  case $PKG_CONFIG in
12793  [\\/]* | ?:[\\/]*)
12794  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12795  ;;
12796  *)
12797  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12798for as_dir in $PATH
12799do
12800  IFS=$as_save_IFS
12801  case $as_dir in #(((
12802    '') as_dir=./ ;;
12803    */) ;;
12804    *) as_dir=$as_dir/ ;;
12805  esac
12806    for ac_exec_ext in '' $ac_executable_extensions; do
12807  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12808    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12809    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12810    break 2
12811  fi
12812done
12813  done
12814IFS=$as_save_IFS
12815
12816  ;;
12817esac
12818fi
12819PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12820if test -n "$PKG_CONFIG"; then
12821  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12822printf "%s\n" "$PKG_CONFIG" >&6; }
12823else
12824  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12825printf "%s\n" "no" >&6; }
12826fi
12827
12828
12829fi
12830if test -z "$ac_cv_path_PKG_CONFIG"; then
12831  ac_pt_PKG_CONFIG=$PKG_CONFIG
12832  # Extract the first word of "pkg-config", so it can be a program name with args.
12833set dummy pkg-config; ac_word=$2
12834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12835printf %s "checking for $ac_word... " >&6; }
12836if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12837then :
12838  printf %s "(cached) " >&6
12839else $as_nop
12840  case $ac_pt_PKG_CONFIG in
12841  [\\/]* | ?:[\\/]*)
12842  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12843  ;;
12844  *)
12845  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12846for as_dir in $PATH
12847do
12848  IFS=$as_save_IFS
12849  case $as_dir in #(((
12850    '') as_dir=./ ;;
12851    */) ;;
12852    *) as_dir=$as_dir/ ;;
12853  esac
12854    for ac_exec_ext in '' $ac_executable_extensions; do
12855  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12856    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12857    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12858    break 2
12859  fi
12860done
12861  done
12862IFS=$as_save_IFS
12863
12864  ;;
12865esac
12866fi
12867ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12868if test -n "$ac_pt_PKG_CONFIG"; then
12869  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12870printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
12871else
12872  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12873printf "%s\n" "no" >&6; }
12874fi
12875
12876  if test "x$ac_pt_PKG_CONFIG" = x; then
12877    PKG_CONFIG=""
12878  else
12879    case $cross_compiling:$ac_tool_warned in
12880yes:)
12881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12882printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12883ac_tool_warned=yes ;;
12884esac
12885    PKG_CONFIG=$ac_pt_PKG_CONFIG
12886  fi
12887else
12888  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12889fi
12890
12891fi
12892if test -n "$PKG_CONFIG"; then
12893	_pkg_min_version=0.9.0
12894	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12895printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12896	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12897		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12898printf "%s\n" "yes" >&6; }
12899	else
12900		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12901printf "%s\n" "no" >&6; }
12902		PKG_CONFIG=""
12903	fi
12904fi
12905
12906
12907
12908
12909
12910# Check whether --enable-selective-werror was given.
12911if test ${enable_selective_werror+y}
12912then :
12913  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12914else $as_nop
12915  SELECTIVE_WERROR=yes
12916fi
12917
12918
12919
12920
12921
12922# -v is too short to test reliably with XORG_TESTSET_CFLAG
12923if test "x$SUNCC" = "xyes"; then
12924    BASE_CFLAGS="-v"
12925else
12926    BASE_CFLAGS=""
12927fi
12928
12929# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943xorg_testset_save_CFLAGS="$CFLAGS"
12944
12945if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12946	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12947	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12948printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12949if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12950then :
12951  printf %s "(cached) " >&6
12952else $as_nop
12953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12954/* end confdefs.h.  */
12955int i;
12956_ACEOF
12957if ac_fn_c_try_compile "$LINENO"
12958then :
12959  xorg_cv_cc_flag_unknown_warning_option=yes
12960else $as_nop
12961  xorg_cv_cc_flag_unknown_warning_option=no
12962fi
12963rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12964fi
12965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12966printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12967	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12968	CFLAGS="$xorg_testset_save_CFLAGS"
12969fi
12970
12971if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12972	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12973		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12974	fi
12975	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12976	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12977printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12978if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
12979then :
12980  printf %s "(cached) " >&6
12981else $as_nop
12982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12983/* end confdefs.h.  */
12984int i;
12985_ACEOF
12986if ac_fn_c_try_compile "$LINENO"
12987then :
12988  xorg_cv_cc_flag_unused_command_line_argument=yes
12989else $as_nop
12990  xorg_cv_cc_flag_unused_command_line_argument=no
12991fi
12992rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12993fi
12994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12995printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12996	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12997	CFLAGS="$xorg_testset_save_CFLAGS"
12998fi
12999
13000found="no"
13001
13002	if test $found = "no" ; then
13003		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13004			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13005		fi
13006
13007		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13008			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13009		fi
13010
13011		CFLAGS="$CFLAGS -Wall"
13012
13013		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13014printf %s "checking if $CC supports -Wall... " >&6; }
13015		cacheid=xorg_cv_cc_flag__Wall
13016		if eval test \${$cacheid+y}
13017then :
13018  printf %s "(cached) " >&6
13019else $as_nop
13020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13021/* end confdefs.h.  */
13022int i;
13023int
13024main (void)
13025{
13026
13027  ;
13028  return 0;
13029}
13030_ACEOF
13031if ac_fn_c_try_link "$LINENO"
13032then :
13033  eval $cacheid=yes
13034else $as_nop
13035  eval $cacheid=no
13036fi
13037rm -f core conftest.err conftest.$ac_objext conftest.beam \
13038    conftest$ac_exeext conftest.$ac_ext
13039fi
13040
13041
13042		CFLAGS="$xorg_testset_save_CFLAGS"
13043
13044		eval supported=\$$cacheid
13045		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13046printf "%s\n" "$supported" >&6; }
13047		if test "$supported" = "yes" ; then
13048			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13049			found="yes"
13050		fi
13051	fi
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067xorg_testset_save_CFLAGS="$CFLAGS"
13068
13069if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13070	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13071	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13072printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13073if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13074then :
13075  printf %s "(cached) " >&6
13076else $as_nop
13077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078/* end confdefs.h.  */
13079int i;
13080_ACEOF
13081if ac_fn_c_try_compile "$LINENO"
13082then :
13083  xorg_cv_cc_flag_unknown_warning_option=yes
13084else $as_nop
13085  xorg_cv_cc_flag_unknown_warning_option=no
13086fi
13087rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13088fi
13089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13090printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13091	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13092	CFLAGS="$xorg_testset_save_CFLAGS"
13093fi
13094
13095if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13096	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13097		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13098	fi
13099	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13100	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13101printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13102if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13103then :
13104  printf %s "(cached) " >&6
13105else $as_nop
13106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13107/* end confdefs.h.  */
13108int i;
13109_ACEOF
13110if ac_fn_c_try_compile "$LINENO"
13111then :
13112  xorg_cv_cc_flag_unused_command_line_argument=yes
13113else $as_nop
13114  xorg_cv_cc_flag_unused_command_line_argument=no
13115fi
13116rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13117fi
13118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13119printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13120	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13121	CFLAGS="$xorg_testset_save_CFLAGS"
13122fi
13123
13124found="no"
13125
13126	if test $found = "no" ; then
13127		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13128			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13129		fi
13130
13131		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13132			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13133		fi
13134
13135		CFLAGS="$CFLAGS -Wpointer-arith"
13136
13137		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13138printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13139		cacheid=xorg_cv_cc_flag__Wpointer_arith
13140		if eval test \${$cacheid+y}
13141then :
13142  printf %s "(cached) " >&6
13143else $as_nop
13144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13145/* end confdefs.h.  */
13146int i;
13147int
13148main (void)
13149{
13150
13151  ;
13152  return 0;
13153}
13154_ACEOF
13155if ac_fn_c_try_link "$LINENO"
13156then :
13157  eval $cacheid=yes
13158else $as_nop
13159  eval $cacheid=no
13160fi
13161rm -f core conftest.err conftest.$ac_objext conftest.beam \
13162    conftest$ac_exeext conftest.$ac_ext
13163fi
13164
13165
13166		CFLAGS="$xorg_testset_save_CFLAGS"
13167
13168		eval supported=\$$cacheid
13169		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13170printf "%s\n" "$supported" >&6; }
13171		if test "$supported" = "yes" ; then
13172			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13173			found="yes"
13174		fi
13175	fi
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191xorg_testset_save_CFLAGS="$CFLAGS"
13192
13193if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13194	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13195	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13196printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13197if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13198then :
13199  printf %s "(cached) " >&6
13200else $as_nop
13201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202/* end confdefs.h.  */
13203int i;
13204_ACEOF
13205if ac_fn_c_try_compile "$LINENO"
13206then :
13207  xorg_cv_cc_flag_unknown_warning_option=yes
13208else $as_nop
13209  xorg_cv_cc_flag_unknown_warning_option=no
13210fi
13211rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13212fi
13213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13214printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13215	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13216	CFLAGS="$xorg_testset_save_CFLAGS"
13217fi
13218
13219if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13220	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13221		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13222	fi
13223	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13224	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13225printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13226if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13227then :
13228  printf %s "(cached) " >&6
13229else $as_nop
13230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13231/* end confdefs.h.  */
13232int i;
13233_ACEOF
13234if ac_fn_c_try_compile "$LINENO"
13235then :
13236  xorg_cv_cc_flag_unused_command_line_argument=yes
13237else $as_nop
13238  xorg_cv_cc_flag_unused_command_line_argument=no
13239fi
13240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13241fi
13242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13243printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13244	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13245	CFLAGS="$xorg_testset_save_CFLAGS"
13246fi
13247
13248found="no"
13249
13250	if test $found = "no" ; then
13251		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13252			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13253		fi
13254
13255		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13256			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13257		fi
13258
13259		CFLAGS="$CFLAGS -Wmissing-declarations"
13260
13261		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13262printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13263		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13264		if eval test \${$cacheid+y}
13265then :
13266  printf %s "(cached) " >&6
13267else $as_nop
13268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13269/* end confdefs.h.  */
13270int i;
13271int
13272main (void)
13273{
13274
13275  ;
13276  return 0;
13277}
13278_ACEOF
13279if ac_fn_c_try_link "$LINENO"
13280then :
13281  eval $cacheid=yes
13282else $as_nop
13283  eval $cacheid=no
13284fi
13285rm -f core conftest.err conftest.$ac_objext conftest.beam \
13286    conftest$ac_exeext conftest.$ac_ext
13287fi
13288
13289
13290		CFLAGS="$xorg_testset_save_CFLAGS"
13291
13292		eval supported=\$$cacheid
13293		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13294printf "%s\n" "$supported" >&6; }
13295		if test "$supported" = "yes" ; then
13296			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13297			found="yes"
13298		fi
13299	fi
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315xorg_testset_save_CFLAGS="$CFLAGS"
13316
13317if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13318	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13319	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13320printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13321if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13322then :
13323  printf %s "(cached) " >&6
13324else $as_nop
13325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13326/* end confdefs.h.  */
13327int i;
13328_ACEOF
13329if ac_fn_c_try_compile "$LINENO"
13330then :
13331  xorg_cv_cc_flag_unknown_warning_option=yes
13332else $as_nop
13333  xorg_cv_cc_flag_unknown_warning_option=no
13334fi
13335rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13336fi
13337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13338printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13339	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13340	CFLAGS="$xorg_testset_save_CFLAGS"
13341fi
13342
13343if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13344	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13345		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13346	fi
13347	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13348	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13349printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13350if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13351then :
13352  printf %s "(cached) " >&6
13353else $as_nop
13354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355/* end confdefs.h.  */
13356int i;
13357_ACEOF
13358if ac_fn_c_try_compile "$LINENO"
13359then :
13360  xorg_cv_cc_flag_unused_command_line_argument=yes
13361else $as_nop
13362  xorg_cv_cc_flag_unused_command_line_argument=no
13363fi
13364rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13365fi
13366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13367printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13368	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13369	CFLAGS="$xorg_testset_save_CFLAGS"
13370fi
13371
13372found="no"
13373
13374	if test $found = "no" ; then
13375		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13376			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13377		fi
13378
13379		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13380			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13381		fi
13382
13383		CFLAGS="$CFLAGS -Wformat=2"
13384
13385		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13386printf %s "checking if $CC supports -Wformat=2... " >&6; }
13387		cacheid=xorg_cv_cc_flag__Wformat_2
13388		if eval test \${$cacheid+y}
13389then :
13390  printf %s "(cached) " >&6
13391else $as_nop
13392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13393/* end confdefs.h.  */
13394int i;
13395int
13396main (void)
13397{
13398
13399  ;
13400  return 0;
13401}
13402_ACEOF
13403if ac_fn_c_try_link "$LINENO"
13404then :
13405  eval $cacheid=yes
13406else $as_nop
13407  eval $cacheid=no
13408fi
13409rm -f core conftest.err conftest.$ac_objext conftest.beam \
13410    conftest$ac_exeext conftest.$ac_ext
13411fi
13412
13413
13414		CFLAGS="$xorg_testset_save_CFLAGS"
13415
13416		eval supported=\$$cacheid
13417		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13418printf "%s\n" "$supported" >&6; }
13419		if test "$supported" = "yes" ; then
13420			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13421			found="yes"
13422		fi
13423	fi
13424
13425	if test $found = "no" ; then
13426		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13427			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13428		fi
13429
13430		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13431			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13432		fi
13433
13434		CFLAGS="$CFLAGS -Wformat"
13435
13436		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13437printf %s "checking if $CC supports -Wformat... " >&6; }
13438		cacheid=xorg_cv_cc_flag__Wformat
13439		if eval test \${$cacheid+y}
13440then :
13441  printf %s "(cached) " >&6
13442else $as_nop
13443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13444/* end confdefs.h.  */
13445int i;
13446int
13447main (void)
13448{
13449
13450  ;
13451  return 0;
13452}
13453_ACEOF
13454if ac_fn_c_try_link "$LINENO"
13455then :
13456  eval $cacheid=yes
13457else $as_nop
13458  eval $cacheid=no
13459fi
13460rm -f core conftest.err conftest.$ac_objext conftest.beam \
13461    conftest$ac_exeext conftest.$ac_ext
13462fi
13463
13464
13465		CFLAGS="$xorg_testset_save_CFLAGS"
13466
13467		eval supported=\$$cacheid
13468		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13469printf "%s\n" "$supported" >&6; }
13470		if test "$supported" = "yes" ; then
13471			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13472			found="yes"
13473		fi
13474	fi
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492xorg_testset_save_CFLAGS="$CFLAGS"
13493
13494if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13495	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13496	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13497printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13498if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13499then :
13500  printf %s "(cached) " >&6
13501else $as_nop
13502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13503/* end confdefs.h.  */
13504int i;
13505_ACEOF
13506if ac_fn_c_try_compile "$LINENO"
13507then :
13508  xorg_cv_cc_flag_unknown_warning_option=yes
13509else $as_nop
13510  xorg_cv_cc_flag_unknown_warning_option=no
13511fi
13512rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13513fi
13514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13515printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13516	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13517	CFLAGS="$xorg_testset_save_CFLAGS"
13518fi
13519
13520if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13521	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13522		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13523	fi
13524	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13525	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13526printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13527if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13528then :
13529  printf %s "(cached) " >&6
13530else $as_nop
13531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13532/* end confdefs.h.  */
13533int i;
13534_ACEOF
13535if ac_fn_c_try_compile "$LINENO"
13536then :
13537  xorg_cv_cc_flag_unused_command_line_argument=yes
13538else $as_nop
13539  xorg_cv_cc_flag_unused_command_line_argument=no
13540fi
13541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13542fi
13543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13544printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13545	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13546	CFLAGS="$xorg_testset_save_CFLAGS"
13547fi
13548
13549found="no"
13550
13551	if test $found = "no" ; then
13552		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13553			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13554		fi
13555
13556		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13557			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13558		fi
13559
13560		CFLAGS="$CFLAGS -Wstrict-prototypes"
13561
13562		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13563printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13564		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13565		if eval test \${$cacheid+y}
13566then :
13567  printf %s "(cached) " >&6
13568else $as_nop
13569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13570/* end confdefs.h.  */
13571int i;
13572int
13573main (void)
13574{
13575
13576  ;
13577  return 0;
13578}
13579_ACEOF
13580if ac_fn_c_try_link "$LINENO"
13581then :
13582  eval $cacheid=yes
13583else $as_nop
13584  eval $cacheid=no
13585fi
13586rm -f core conftest.err conftest.$ac_objext conftest.beam \
13587    conftest$ac_exeext conftest.$ac_ext
13588fi
13589
13590
13591		CFLAGS="$xorg_testset_save_CFLAGS"
13592
13593		eval supported=\$$cacheid
13594		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13595printf "%s\n" "$supported" >&6; }
13596		if test "$supported" = "yes" ; then
13597			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13598			found="yes"
13599		fi
13600	fi
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616xorg_testset_save_CFLAGS="$CFLAGS"
13617
13618if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13619	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13620	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13621printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13622if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13623then :
13624  printf %s "(cached) " >&6
13625else $as_nop
13626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13627/* end confdefs.h.  */
13628int i;
13629_ACEOF
13630if ac_fn_c_try_compile "$LINENO"
13631then :
13632  xorg_cv_cc_flag_unknown_warning_option=yes
13633else $as_nop
13634  xorg_cv_cc_flag_unknown_warning_option=no
13635fi
13636rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13637fi
13638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13639printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13640	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13641	CFLAGS="$xorg_testset_save_CFLAGS"
13642fi
13643
13644if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13645	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13646		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13647	fi
13648	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13649	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13650printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13651if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13652then :
13653  printf %s "(cached) " >&6
13654else $as_nop
13655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13656/* end confdefs.h.  */
13657int i;
13658_ACEOF
13659if ac_fn_c_try_compile "$LINENO"
13660then :
13661  xorg_cv_cc_flag_unused_command_line_argument=yes
13662else $as_nop
13663  xorg_cv_cc_flag_unused_command_line_argument=no
13664fi
13665rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13666fi
13667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13668printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13669	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13670	CFLAGS="$xorg_testset_save_CFLAGS"
13671fi
13672
13673found="no"
13674
13675	if test $found = "no" ; then
13676		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13677			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13678		fi
13679
13680		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13681			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13682		fi
13683
13684		CFLAGS="$CFLAGS -Wmissing-prototypes"
13685
13686		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13687printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13688		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13689		if eval test \${$cacheid+y}
13690then :
13691  printf %s "(cached) " >&6
13692else $as_nop
13693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13694/* end confdefs.h.  */
13695int i;
13696int
13697main (void)
13698{
13699
13700  ;
13701  return 0;
13702}
13703_ACEOF
13704if ac_fn_c_try_link "$LINENO"
13705then :
13706  eval $cacheid=yes
13707else $as_nop
13708  eval $cacheid=no
13709fi
13710rm -f core conftest.err conftest.$ac_objext conftest.beam \
13711    conftest$ac_exeext conftest.$ac_ext
13712fi
13713
13714
13715		CFLAGS="$xorg_testset_save_CFLAGS"
13716
13717		eval supported=\$$cacheid
13718		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13719printf "%s\n" "$supported" >&6; }
13720		if test "$supported" = "yes" ; then
13721			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13722			found="yes"
13723		fi
13724	fi
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740xorg_testset_save_CFLAGS="$CFLAGS"
13741
13742if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13743	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13744	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13745printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13746if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13747then :
13748  printf %s "(cached) " >&6
13749else $as_nop
13750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13751/* end confdefs.h.  */
13752int i;
13753_ACEOF
13754if ac_fn_c_try_compile "$LINENO"
13755then :
13756  xorg_cv_cc_flag_unknown_warning_option=yes
13757else $as_nop
13758  xorg_cv_cc_flag_unknown_warning_option=no
13759fi
13760rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13761fi
13762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13763printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13764	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13765	CFLAGS="$xorg_testset_save_CFLAGS"
13766fi
13767
13768if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13769	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13770		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13771	fi
13772	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13773	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13774printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13775if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13776then :
13777  printf %s "(cached) " >&6
13778else $as_nop
13779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13780/* end confdefs.h.  */
13781int i;
13782_ACEOF
13783if ac_fn_c_try_compile "$LINENO"
13784then :
13785  xorg_cv_cc_flag_unused_command_line_argument=yes
13786else $as_nop
13787  xorg_cv_cc_flag_unused_command_line_argument=no
13788fi
13789rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13790fi
13791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13792printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13793	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13794	CFLAGS="$xorg_testset_save_CFLAGS"
13795fi
13796
13797found="no"
13798
13799	if test $found = "no" ; then
13800		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13801			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13802		fi
13803
13804		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13805			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13806		fi
13807
13808		CFLAGS="$CFLAGS -Wnested-externs"
13809
13810		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13811printf %s "checking if $CC supports -Wnested-externs... " >&6; }
13812		cacheid=xorg_cv_cc_flag__Wnested_externs
13813		if eval test \${$cacheid+y}
13814then :
13815  printf %s "(cached) " >&6
13816else $as_nop
13817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13818/* end confdefs.h.  */
13819int i;
13820int
13821main (void)
13822{
13823
13824  ;
13825  return 0;
13826}
13827_ACEOF
13828if ac_fn_c_try_link "$LINENO"
13829then :
13830  eval $cacheid=yes
13831else $as_nop
13832  eval $cacheid=no
13833fi
13834rm -f core conftest.err conftest.$ac_objext conftest.beam \
13835    conftest$ac_exeext conftest.$ac_ext
13836fi
13837
13838
13839		CFLAGS="$xorg_testset_save_CFLAGS"
13840
13841		eval supported=\$$cacheid
13842		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13843printf "%s\n" "$supported" >&6; }
13844		if test "$supported" = "yes" ; then
13845			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13846			found="yes"
13847		fi
13848	fi
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864xorg_testset_save_CFLAGS="$CFLAGS"
13865
13866if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13867	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13868	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13869printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13870if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13871then :
13872  printf %s "(cached) " >&6
13873else $as_nop
13874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13875/* end confdefs.h.  */
13876int i;
13877_ACEOF
13878if ac_fn_c_try_compile "$LINENO"
13879then :
13880  xorg_cv_cc_flag_unknown_warning_option=yes
13881else $as_nop
13882  xorg_cv_cc_flag_unknown_warning_option=no
13883fi
13884rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13885fi
13886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13887printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13888	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13889	CFLAGS="$xorg_testset_save_CFLAGS"
13890fi
13891
13892if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13893	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13894		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13895	fi
13896	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13897	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13898printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13899if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13900then :
13901  printf %s "(cached) " >&6
13902else $as_nop
13903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13904/* end confdefs.h.  */
13905int i;
13906_ACEOF
13907if ac_fn_c_try_compile "$LINENO"
13908then :
13909  xorg_cv_cc_flag_unused_command_line_argument=yes
13910else $as_nop
13911  xorg_cv_cc_flag_unused_command_line_argument=no
13912fi
13913rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13914fi
13915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13916printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13917	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13918	CFLAGS="$xorg_testset_save_CFLAGS"
13919fi
13920
13921found="no"
13922
13923	if test $found = "no" ; then
13924		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13925			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13926		fi
13927
13928		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13929			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13930		fi
13931
13932		CFLAGS="$CFLAGS -Wbad-function-cast"
13933
13934		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13935printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
13936		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13937		if eval test \${$cacheid+y}
13938then :
13939  printf %s "(cached) " >&6
13940else $as_nop
13941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942/* end confdefs.h.  */
13943int i;
13944int
13945main (void)
13946{
13947
13948  ;
13949  return 0;
13950}
13951_ACEOF
13952if ac_fn_c_try_link "$LINENO"
13953then :
13954  eval $cacheid=yes
13955else $as_nop
13956  eval $cacheid=no
13957fi
13958rm -f core conftest.err conftest.$ac_objext conftest.beam \
13959    conftest$ac_exeext conftest.$ac_ext
13960fi
13961
13962
13963		CFLAGS="$xorg_testset_save_CFLAGS"
13964
13965		eval supported=\$$cacheid
13966		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13967printf "%s\n" "$supported" >&6; }
13968		if test "$supported" = "yes" ; then
13969			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13970			found="yes"
13971		fi
13972	fi
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988xorg_testset_save_CFLAGS="$CFLAGS"
13989
13990if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13991	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13992	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13993printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13994if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13995then :
13996  printf %s "(cached) " >&6
13997else $as_nop
13998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13999/* end confdefs.h.  */
14000int i;
14001_ACEOF
14002if ac_fn_c_try_compile "$LINENO"
14003then :
14004  xorg_cv_cc_flag_unknown_warning_option=yes
14005else $as_nop
14006  xorg_cv_cc_flag_unknown_warning_option=no
14007fi
14008rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14009fi
14010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14011printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14012	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14013	CFLAGS="$xorg_testset_save_CFLAGS"
14014fi
14015
14016if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14017	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14018		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14019	fi
14020	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14021	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14022printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14023if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14024then :
14025  printf %s "(cached) " >&6
14026else $as_nop
14027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14028/* end confdefs.h.  */
14029int i;
14030_ACEOF
14031if ac_fn_c_try_compile "$LINENO"
14032then :
14033  xorg_cv_cc_flag_unused_command_line_argument=yes
14034else $as_nop
14035  xorg_cv_cc_flag_unused_command_line_argument=no
14036fi
14037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14038fi
14039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14040printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14041	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14042	CFLAGS="$xorg_testset_save_CFLAGS"
14043fi
14044
14045found="no"
14046
14047	if test $found = "no" ; then
14048		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14049			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14050		fi
14051
14052		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14053			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14054		fi
14055
14056		CFLAGS="$CFLAGS -Wold-style-definition"
14057
14058		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14059printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14060		cacheid=xorg_cv_cc_flag__Wold_style_definition
14061		if eval test \${$cacheid+y}
14062then :
14063  printf %s "(cached) " >&6
14064else $as_nop
14065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14066/* end confdefs.h.  */
14067int i;
14068int
14069main (void)
14070{
14071
14072  ;
14073  return 0;
14074}
14075_ACEOF
14076if ac_fn_c_try_link "$LINENO"
14077then :
14078  eval $cacheid=yes
14079else $as_nop
14080  eval $cacheid=no
14081fi
14082rm -f core conftest.err conftest.$ac_objext conftest.beam \
14083    conftest$ac_exeext conftest.$ac_ext
14084fi
14085
14086
14087		CFLAGS="$xorg_testset_save_CFLAGS"
14088
14089		eval supported=\$$cacheid
14090		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14091printf "%s\n" "$supported" >&6; }
14092		if test "$supported" = "yes" ; then
14093			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14094			found="yes"
14095		fi
14096	fi
14097
14098	if test $found = "no" ; then
14099		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14100			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14101		fi
14102
14103		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14104			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14105		fi
14106
14107		CFLAGS="$CFLAGS -fd"
14108
14109		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14110printf %s "checking if $CC supports -fd... " >&6; }
14111		cacheid=xorg_cv_cc_flag__fd
14112		if eval test \${$cacheid+y}
14113then :
14114  printf %s "(cached) " >&6
14115else $as_nop
14116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14117/* end confdefs.h.  */
14118int i;
14119int
14120main (void)
14121{
14122
14123  ;
14124  return 0;
14125}
14126_ACEOF
14127if ac_fn_c_try_link "$LINENO"
14128then :
14129  eval $cacheid=yes
14130else $as_nop
14131  eval $cacheid=no
14132fi
14133rm -f core conftest.err conftest.$ac_objext conftest.beam \
14134    conftest$ac_exeext conftest.$ac_ext
14135fi
14136
14137
14138		CFLAGS="$xorg_testset_save_CFLAGS"
14139
14140		eval supported=\$$cacheid
14141		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14142printf "%s\n" "$supported" >&6; }
14143		if test "$supported" = "yes" ; then
14144			BASE_CFLAGS="$BASE_CFLAGS -fd"
14145			found="yes"
14146		fi
14147	fi
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163xorg_testset_save_CFLAGS="$CFLAGS"
14164
14165if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14166	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14167	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14168printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14169if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14170then :
14171  printf %s "(cached) " >&6
14172else $as_nop
14173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14174/* end confdefs.h.  */
14175int i;
14176_ACEOF
14177if ac_fn_c_try_compile "$LINENO"
14178then :
14179  xorg_cv_cc_flag_unknown_warning_option=yes
14180else $as_nop
14181  xorg_cv_cc_flag_unknown_warning_option=no
14182fi
14183rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14184fi
14185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14186printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14187	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14188	CFLAGS="$xorg_testset_save_CFLAGS"
14189fi
14190
14191if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14192	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14193		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14194	fi
14195	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14196	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14197printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14198if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14199then :
14200  printf %s "(cached) " >&6
14201else $as_nop
14202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14203/* end confdefs.h.  */
14204int i;
14205_ACEOF
14206if ac_fn_c_try_compile "$LINENO"
14207then :
14208  xorg_cv_cc_flag_unused_command_line_argument=yes
14209else $as_nop
14210  xorg_cv_cc_flag_unused_command_line_argument=no
14211fi
14212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14213fi
14214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14215printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14216	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14217	CFLAGS="$xorg_testset_save_CFLAGS"
14218fi
14219
14220found="no"
14221
14222	if test $found = "no" ; then
14223		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14224			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14225		fi
14226
14227		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14228			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14229		fi
14230
14231		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14232
14233		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14234printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14235		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14236		if eval test \${$cacheid+y}
14237then :
14238  printf %s "(cached) " >&6
14239else $as_nop
14240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14241/* end confdefs.h.  */
14242int i;
14243int
14244main (void)
14245{
14246
14247  ;
14248  return 0;
14249}
14250_ACEOF
14251if ac_fn_c_try_link "$LINENO"
14252then :
14253  eval $cacheid=yes
14254else $as_nop
14255  eval $cacheid=no
14256fi
14257rm -f core conftest.err conftest.$ac_objext conftest.beam \
14258    conftest$ac_exeext conftest.$ac_ext
14259fi
14260
14261
14262		CFLAGS="$xorg_testset_save_CFLAGS"
14263
14264		eval supported=\$$cacheid
14265		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14266printf "%s\n" "$supported" >&6; }
14267		if test "$supported" = "yes" ; then
14268			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14269			found="yes"
14270		fi
14271	fi
14272
14273
14274
14275
14276
14277# This chunk adds additional warnings that could catch undesired effects.
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291xorg_testset_save_CFLAGS="$CFLAGS"
14292
14293if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14294	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14295	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14296printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14297if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14298then :
14299  printf %s "(cached) " >&6
14300else $as_nop
14301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14302/* end confdefs.h.  */
14303int i;
14304_ACEOF
14305if ac_fn_c_try_compile "$LINENO"
14306then :
14307  xorg_cv_cc_flag_unknown_warning_option=yes
14308else $as_nop
14309  xorg_cv_cc_flag_unknown_warning_option=no
14310fi
14311rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14312fi
14313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14314printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14315	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14316	CFLAGS="$xorg_testset_save_CFLAGS"
14317fi
14318
14319if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14320	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14321		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14322	fi
14323	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14324	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14325printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14326if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14327then :
14328  printf %s "(cached) " >&6
14329else $as_nop
14330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14331/* end confdefs.h.  */
14332int i;
14333_ACEOF
14334if ac_fn_c_try_compile "$LINENO"
14335then :
14336  xorg_cv_cc_flag_unused_command_line_argument=yes
14337else $as_nop
14338  xorg_cv_cc_flag_unused_command_line_argument=no
14339fi
14340rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14341fi
14342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14343printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14344	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14345	CFLAGS="$xorg_testset_save_CFLAGS"
14346fi
14347
14348found="no"
14349
14350	if test $found = "no" ; then
14351		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14352			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14353		fi
14354
14355		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14356			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14357		fi
14358
14359		CFLAGS="$CFLAGS -Wunused"
14360
14361		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14362printf %s "checking if $CC supports -Wunused... " >&6; }
14363		cacheid=xorg_cv_cc_flag__Wunused
14364		if eval test \${$cacheid+y}
14365then :
14366  printf %s "(cached) " >&6
14367else $as_nop
14368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14369/* end confdefs.h.  */
14370int i;
14371int
14372main (void)
14373{
14374
14375  ;
14376  return 0;
14377}
14378_ACEOF
14379if ac_fn_c_try_link "$LINENO"
14380then :
14381  eval $cacheid=yes
14382else $as_nop
14383  eval $cacheid=no
14384fi
14385rm -f core conftest.err conftest.$ac_objext conftest.beam \
14386    conftest$ac_exeext conftest.$ac_ext
14387fi
14388
14389
14390		CFLAGS="$xorg_testset_save_CFLAGS"
14391
14392		eval supported=\$$cacheid
14393		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14394printf "%s\n" "$supported" >&6; }
14395		if test "$supported" = "yes" ; then
14396			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14397			found="yes"
14398		fi
14399	fi
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415xorg_testset_save_CFLAGS="$CFLAGS"
14416
14417if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14418	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14419	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14420printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14421if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14422then :
14423  printf %s "(cached) " >&6
14424else $as_nop
14425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14426/* end confdefs.h.  */
14427int i;
14428_ACEOF
14429if ac_fn_c_try_compile "$LINENO"
14430then :
14431  xorg_cv_cc_flag_unknown_warning_option=yes
14432else $as_nop
14433  xorg_cv_cc_flag_unknown_warning_option=no
14434fi
14435rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14436fi
14437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14438printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14439	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14440	CFLAGS="$xorg_testset_save_CFLAGS"
14441fi
14442
14443if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14444	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14445		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14446	fi
14447	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14448	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14449printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14450if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14451then :
14452  printf %s "(cached) " >&6
14453else $as_nop
14454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14455/* end confdefs.h.  */
14456int i;
14457_ACEOF
14458if ac_fn_c_try_compile "$LINENO"
14459then :
14460  xorg_cv_cc_flag_unused_command_line_argument=yes
14461else $as_nop
14462  xorg_cv_cc_flag_unused_command_line_argument=no
14463fi
14464rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14465fi
14466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14467printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14468	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14469	CFLAGS="$xorg_testset_save_CFLAGS"
14470fi
14471
14472found="no"
14473
14474	if test $found = "no" ; then
14475		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14476			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14477		fi
14478
14479		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14480			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14481		fi
14482
14483		CFLAGS="$CFLAGS -Wuninitialized"
14484
14485		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14486printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14487		cacheid=xorg_cv_cc_flag__Wuninitialized
14488		if eval test \${$cacheid+y}
14489then :
14490  printf %s "(cached) " >&6
14491else $as_nop
14492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14493/* end confdefs.h.  */
14494int i;
14495int
14496main (void)
14497{
14498
14499  ;
14500  return 0;
14501}
14502_ACEOF
14503if ac_fn_c_try_link "$LINENO"
14504then :
14505  eval $cacheid=yes
14506else $as_nop
14507  eval $cacheid=no
14508fi
14509rm -f core conftest.err conftest.$ac_objext conftest.beam \
14510    conftest$ac_exeext conftest.$ac_ext
14511fi
14512
14513
14514		CFLAGS="$xorg_testset_save_CFLAGS"
14515
14516		eval supported=\$$cacheid
14517		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14518printf "%s\n" "$supported" >&6; }
14519		if test "$supported" = "yes" ; then
14520			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14521			found="yes"
14522		fi
14523	fi
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539xorg_testset_save_CFLAGS="$CFLAGS"
14540
14541if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14542	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14543	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14544printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14545if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14546then :
14547  printf %s "(cached) " >&6
14548else $as_nop
14549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14550/* end confdefs.h.  */
14551int i;
14552_ACEOF
14553if ac_fn_c_try_compile "$LINENO"
14554then :
14555  xorg_cv_cc_flag_unknown_warning_option=yes
14556else $as_nop
14557  xorg_cv_cc_flag_unknown_warning_option=no
14558fi
14559rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14560fi
14561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14562printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14563	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14564	CFLAGS="$xorg_testset_save_CFLAGS"
14565fi
14566
14567if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14568	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14569		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14570	fi
14571	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14572	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14573printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14574if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14575then :
14576  printf %s "(cached) " >&6
14577else $as_nop
14578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14579/* end confdefs.h.  */
14580int i;
14581_ACEOF
14582if ac_fn_c_try_compile "$LINENO"
14583then :
14584  xorg_cv_cc_flag_unused_command_line_argument=yes
14585else $as_nop
14586  xorg_cv_cc_flag_unused_command_line_argument=no
14587fi
14588rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14589fi
14590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14591printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14592	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14593	CFLAGS="$xorg_testset_save_CFLAGS"
14594fi
14595
14596found="no"
14597
14598	if test $found = "no" ; then
14599		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14600			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14601		fi
14602
14603		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14604			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14605		fi
14606
14607		CFLAGS="$CFLAGS -Wshadow"
14608
14609		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14610printf %s "checking if $CC supports -Wshadow... " >&6; }
14611		cacheid=xorg_cv_cc_flag__Wshadow
14612		if eval test \${$cacheid+y}
14613then :
14614  printf %s "(cached) " >&6
14615else $as_nop
14616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14617/* end confdefs.h.  */
14618int i;
14619int
14620main (void)
14621{
14622
14623  ;
14624  return 0;
14625}
14626_ACEOF
14627if ac_fn_c_try_link "$LINENO"
14628then :
14629  eval $cacheid=yes
14630else $as_nop
14631  eval $cacheid=no
14632fi
14633rm -f core conftest.err conftest.$ac_objext conftest.beam \
14634    conftest$ac_exeext conftest.$ac_ext
14635fi
14636
14637
14638		CFLAGS="$xorg_testset_save_CFLAGS"
14639
14640		eval supported=\$$cacheid
14641		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14642printf "%s\n" "$supported" >&6; }
14643		if test "$supported" = "yes" ; then
14644			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14645			found="yes"
14646		fi
14647	fi
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663xorg_testset_save_CFLAGS="$CFLAGS"
14664
14665if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14666	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14667	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14668printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14669if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14670then :
14671  printf %s "(cached) " >&6
14672else $as_nop
14673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14674/* end confdefs.h.  */
14675int i;
14676_ACEOF
14677if ac_fn_c_try_compile "$LINENO"
14678then :
14679  xorg_cv_cc_flag_unknown_warning_option=yes
14680else $as_nop
14681  xorg_cv_cc_flag_unknown_warning_option=no
14682fi
14683rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14684fi
14685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14686printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14687	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14688	CFLAGS="$xorg_testset_save_CFLAGS"
14689fi
14690
14691if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14692	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14693		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14694	fi
14695	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14696	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14697printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14698if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14699then :
14700  printf %s "(cached) " >&6
14701else $as_nop
14702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14703/* end confdefs.h.  */
14704int i;
14705_ACEOF
14706if ac_fn_c_try_compile "$LINENO"
14707then :
14708  xorg_cv_cc_flag_unused_command_line_argument=yes
14709else $as_nop
14710  xorg_cv_cc_flag_unused_command_line_argument=no
14711fi
14712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14713fi
14714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14715printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14716	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14717	CFLAGS="$xorg_testset_save_CFLAGS"
14718fi
14719
14720found="no"
14721
14722	if test $found = "no" ; then
14723		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14724			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14725		fi
14726
14727		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14728			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14729		fi
14730
14731		CFLAGS="$CFLAGS -Wmissing-noreturn"
14732
14733		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14734printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14735		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14736		if eval test \${$cacheid+y}
14737then :
14738  printf %s "(cached) " >&6
14739else $as_nop
14740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14741/* end confdefs.h.  */
14742int i;
14743int
14744main (void)
14745{
14746
14747  ;
14748  return 0;
14749}
14750_ACEOF
14751if ac_fn_c_try_link "$LINENO"
14752then :
14753  eval $cacheid=yes
14754else $as_nop
14755  eval $cacheid=no
14756fi
14757rm -f core conftest.err conftest.$ac_objext conftest.beam \
14758    conftest$ac_exeext conftest.$ac_ext
14759fi
14760
14761
14762		CFLAGS="$xorg_testset_save_CFLAGS"
14763
14764		eval supported=\$$cacheid
14765		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14766printf "%s\n" "$supported" >&6; }
14767		if test "$supported" = "yes" ; then
14768			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14769			found="yes"
14770		fi
14771	fi
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787xorg_testset_save_CFLAGS="$CFLAGS"
14788
14789if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14790	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14791	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14792printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14793if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14794then :
14795  printf %s "(cached) " >&6
14796else $as_nop
14797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14798/* end confdefs.h.  */
14799int i;
14800_ACEOF
14801if ac_fn_c_try_compile "$LINENO"
14802then :
14803  xorg_cv_cc_flag_unknown_warning_option=yes
14804else $as_nop
14805  xorg_cv_cc_flag_unknown_warning_option=no
14806fi
14807rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14808fi
14809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14810printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14811	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14812	CFLAGS="$xorg_testset_save_CFLAGS"
14813fi
14814
14815if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14816	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14817		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14818	fi
14819	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14820	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14821printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14822if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14823then :
14824  printf %s "(cached) " >&6
14825else $as_nop
14826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14827/* end confdefs.h.  */
14828int i;
14829_ACEOF
14830if ac_fn_c_try_compile "$LINENO"
14831then :
14832  xorg_cv_cc_flag_unused_command_line_argument=yes
14833else $as_nop
14834  xorg_cv_cc_flag_unused_command_line_argument=no
14835fi
14836rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14837fi
14838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14839printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14840	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14841	CFLAGS="$xorg_testset_save_CFLAGS"
14842fi
14843
14844found="no"
14845
14846	if test $found = "no" ; then
14847		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14848			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14849		fi
14850
14851		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14852			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14853		fi
14854
14855		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14856
14857		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14858printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14859		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14860		if eval test \${$cacheid+y}
14861then :
14862  printf %s "(cached) " >&6
14863else $as_nop
14864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14865/* end confdefs.h.  */
14866int i;
14867int
14868main (void)
14869{
14870
14871  ;
14872  return 0;
14873}
14874_ACEOF
14875if ac_fn_c_try_link "$LINENO"
14876then :
14877  eval $cacheid=yes
14878else $as_nop
14879  eval $cacheid=no
14880fi
14881rm -f core conftest.err conftest.$ac_objext conftest.beam \
14882    conftest$ac_exeext conftest.$ac_ext
14883fi
14884
14885
14886		CFLAGS="$xorg_testset_save_CFLAGS"
14887
14888		eval supported=\$$cacheid
14889		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14890printf "%s\n" "$supported" >&6; }
14891		if test "$supported" = "yes" ; then
14892			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14893			found="yes"
14894		fi
14895	fi
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911xorg_testset_save_CFLAGS="$CFLAGS"
14912
14913if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14914	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14915	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14916printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14917if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14918then :
14919  printf %s "(cached) " >&6
14920else $as_nop
14921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14922/* end confdefs.h.  */
14923int i;
14924_ACEOF
14925if ac_fn_c_try_compile "$LINENO"
14926then :
14927  xorg_cv_cc_flag_unknown_warning_option=yes
14928else $as_nop
14929  xorg_cv_cc_flag_unknown_warning_option=no
14930fi
14931rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14932fi
14933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14934printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14935	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14936	CFLAGS="$xorg_testset_save_CFLAGS"
14937fi
14938
14939if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14940	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14941		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14942	fi
14943	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14944	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14945printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14946if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14947then :
14948  printf %s "(cached) " >&6
14949else $as_nop
14950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14951/* end confdefs.h.  */
14952int i;
14953_ACEOF
14954if ac_fn_c_try_compile "$LINENO"
14955then :
14956  xorg_cv_cc_flag_unused_command_line_argument=yes
14957else $as_nop
14958  xorg_cv_cc_flag_unused_command_line_argument=no
14959fi
14960rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14961fi
14962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14963printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14964	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14965	CFLAGS="$xorg_testset_save_CFLAGS"
14966fi
14967
14968found="no"
14969
14970	if test $found = "no" ; then
14971		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14972			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14973		fi
14974
14975		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14976			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14977		fi
14978
14979		CFLAGS="$CFLAGS -Wredundant-decls"
14980
14981		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14982printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
14983		cacheid=xorg_cv_cc_flag__Wredundant_decls
14984		if eval test \${$cacheid+y}
14985then :
14986  printf %s "(cached) " >&6
14987else $as_nop
14988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14989/* end confdefs.h.  */
14990int i;
14991int
14992main (void)
14993{
14994
14995  ;
14996  return 0;
14997}
14998_ACEOF
14999if ac_fn_c_try_link "$LINENO"
15000then :
15001  eval $cacheid=yes
15002else $as_nop
15003  eval $cacheid=no
15004fi
15005rm -f core conftest.err conftest.$ac_objext conftest.beam \
15006    conftest$ac_exeext conftest.$ac_ext
15007fi
15008
15009
15010		CFLAGS="$xorg_testset_save_CFLAGS"
15011
15012		eval supported=\$$cacheid
15013		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15014printf "%s\n" "$supported" >&6; }
15015		if test "$supported" = "yes" ; then
15016			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15017			found="yes"
15018		fi
15019	fi
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035xorg_testset_save_CFLAGS="$CFLAGS"
15036
15037if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15038	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15039	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15040printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15041if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15042then :
15043  printf %s "(cached) " >&6
15044else $as_nop
15045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15046/* end confdefs.h.  */
15047int i;
15048_ACEOF
15049if ac_fn_c_try_compile "$LINENO"
15050then :
15051  xorg_cv_cc_flag_unknown_warning_option=yes
15052else $as_nop
15053  xorg_cv_cc_flag_unknown_warning_option=no
15054fi
15055rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15056fi
15057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15058printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15059	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15060	CFLAGS="$xorg_testset_save_CFLAGS"
15061fi
15062
15063if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15064	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15065		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15066	fi
15067	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15068	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15069printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15070if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15071then :
15072  printf %s "(cached) " >&6
15073else $as_nop
15074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15075/* end confdefs.h.  */
15076int i;
15077_ACEOF
15078if ac_fn_c_try_compile "$LINENO"
15079then :
15080  xorg_cv_cc_flag_unused_command_line_argument=yes
15081else $as_nop
15082  xorg_cv_cc_flag_unused_command_line_argument=no
15083fi
15084rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15085fi
15086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15087printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15088	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15089	CFLAGS="$xorg_testset_save_CFLAGS"
15090fi
15091
15092found="no"
15093
15094	if test $found = "no" ; then
15095		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15096			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15097		fi
15098
15099		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15100			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15101		fi
15102
15103		CFLAGS="$CFLAGS -Wlogical-op"
15104
15105		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15106printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15107		cacheid=xorg_cv_cc_flag__Wlogical_op
15108		if eval test \${$cacheid+y}
15109then :
15110  printf %s "(cached) " >&6
15111else $as_nop
15112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15113/* end confdefs.h.  */
15114int i;
15115int
15116main (void)
15117{
15118
15119  ;
15120  return 0;
15121}
15122_ACEOF
15123if ac_fn_c_try_link "$LINENO"
15124then :
15125  eval $cacheid=yes
15126else $as_nop
15127  eval $cacheid=no
15128fi
15129rm -f core conftest.err conftest.$ac_objext conftest.beam \
15130    conftest$ac_exeext conftest.$ac_ext
15131fi
15132
15133
15134		CFLAGS="$xorg_testset_save_CFLAGS"
15135
15136		eval supported=\$$cacheid
15137		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15138printf "%s\n" "$supported" >&6; }
15139		if test "$supported" = "yes" ; then
15140			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15141			found="yes"
15142		fi
15143	fi
15144
15145
15146
15147# These are currently disabled because they are noisy.  They will be enabled
15148# in the future once the codebase is sufficiently modernized to silence
15149# them.  For now, I don't want them to drown out the other warnings.
15150# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15151# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15152# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15153
15154# Turn some warnings into errors, so we don't accidently get successful builds
15155# when there are problems that should be fixed.
15156
15157if test "x$SELECTIVE_WERROR" = "xyes" ; then
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171xorg_testset_save_CFLAGS="$CFLAGS"
15172
15173if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15174	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15175	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15176printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15177if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15178then :
15179  printf %s "(cached) " >&6
15180else $as_nop
15181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15182/* end confdefs.h.  */
15183int i;
15184_ACEOF
15185if ac_fn_c_try_compile "$LINENO"
15186then :
15187  xorg_cv_cc_flag_unknown_warning_option=yes
15188else $as_nop
15189  xorg_cv_cc_flag_unknown_warning_option=no
15190fi
15191rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15192fi
15193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15194printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15195	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15196	CFLAGS="$xorg_testset_save_CFLAGS"
15197fi
15198
15199if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15200	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15201		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15202	fi
15203	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15204	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15205printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15206if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15207then :
15208  printf %s "(cached) " >&6
15209else $as_nop
15210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15211/* end confdefs.h.  */
15212int i;
15213_ACEOF
15214if ac_fn_c_try_compile "$LINENO"
15215then :
15216  xorg_cv_cc_flag_unused_command_line_argument=yes
15217else $as_nop
15218  xorg_cv_cc_flag_unused_command_line_argument=no
15219fi
15220rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15221fi
15222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15223printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15224	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15225	CFLAGS="$xorg_testset_save_CFLAGS"
15226fi
15227
15228found="no"
15229
15230	if test $found = "no" ; then
15231		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15232			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15233		fi
15234
15235		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15236			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15237		fi
15238
15239		CFLAGS="$CFLAGS -Werror=implicit"
15240
15241		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15242printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15243		cacheid=xorg_cv_cc_flag__Werror_implicit
15244		if eval test \${$cacheid+y}
15245then :
15246  printf %s "(cached) " >&6
15247else $as_nop
15248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15249/* end confdefs.h.  */
15250int i;
15251int
15252main (void)
15253{
15254
15255  ;
15256  return 0;
15257}
15258_ACEOF
15259if ac_fn_c_try_link "$LINENO"
15260then :
15261  eval $cacheid=yes
15262else $as_nop
15263  eval $cacheid=no
15264fi
15265rm -f core conftest.err conftest.$ac_objext conftest.beam \
15266    conftest$ac_exeext conftest.$ac_ext
15267fi
15268
15269
15270		CFLAGS="$xorg_testset_save_CFLAGS"
15271
15272		eval supported=\$$cacheid
15273		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15274printf "%s\n" "$supported" >&6; }
15275		if test "$supported" = "yes" ; then
15276			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15277			found="yes"
15278		fi
15279	fi
15280
15281	if test $found = "no" ; then
15282		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15283			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15284		fi
15285
15286		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15287			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15288		fi
15289
15290		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15291
15292		{ 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
15293printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15294		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15295		if eval test \${$cacheid+y}
15296then :
15297  printf %s "(cached) " >&6
15298else $as_nop
15299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15300/* end confdefs.h.  */
15301int i;
15302int
15303main (void)
15304{
15305
15306  ;
15307  return 0;
15308}
15309_ACEOF
15310if ac_fn_c_try_link "$LINENO"
15311then :
15312  eval $cacheid=yes
15313else $as_nop
15314  eval $cacheid=no
15315fi
15316rm -f core conftest.err conftest.$ac_objext conftest.beam \
15317    conftest$ac_exeext conftest.$ac_ext
15318fi
15319
15320
15321		CFLAGS="$xorg_testset_save_CFLAGS"
15322
15323		eval supported=\$$cacheid
15324		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15325printf "%s\n" "$supported" >&6; }
15326		if test "$supported" = "yes" ; then
15327			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15328			found="yes"
15329		fi
15330	fi
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346xorg_testset_save_CFLAGS="$CFLAGS"
15347
15348if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15349	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15350	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15351printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15352if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15353then :
15354  printf %s "(cached) " >&6
15355else $as_nop
15356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357/* end confdefs.h.  */
15358int i;
15359_ACEOF
15360if ac_fn_c_try_compile "$LINENO"
15361then :
15362  xorg_cv_cc_flag_unknown_warning_option=yes
15363else $as_nop
15364  xorg_cv_cc_flag_unknown_warning_option=no
15365fi
15366rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15367fi
15368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15369printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15370	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15371	CFLAGS="$xorg_testset_save_CFLAGS"
15372fi
15373
15374if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15375	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15376		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15377	fi
15378	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15379	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15380printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15381if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15382then :
15383  printf %s "(cached) " >&6
15384else $as_nop
15385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15386/* end confdefs.h.  */
15387int i;
15388_ACEOF
15389if ac_fn_c_try_compile "$LINENO"
15390then :
15391  xorg_cv_cc_flag_unused_command_line_argument=yes
15392else $as_nop
15393  xorg_cv_cc_flag_unused_command_line_argument=no
15394fi
15395rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15396fi
15397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15398printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15399	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15400	CFLAGS="$xorg_testset_save_CFLAGS"
15401fi
15402
15403found="no"
15404
15405	if test $found = "no" ; then
15406		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15407			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15408		fi
15409
15410		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15411			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15412		fi
15413
15414		CFLAGS="$CFLAGS -Werror=nonnull"
15415
15416		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15417printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15418		cacheid=xorg_cv_cc_flag__Werror_nonnull
15419		if eval test \${$cacheid+y}
15420then :
15421  printf %s "(cached) " >&6
15422else $as_nop
15423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15424/* end confdefs.h.  */
15425int i;
15426int
15427main (void)
15428{
15429
15430  ;
15431  return 0;
15432}
15433_ACEOF
15434if ac_fn_c_try_link "$LINENO"
15435then :
15436  eval $cacheid=yes
15437else $as_nop
15438  eval $cacheid=no
15439fi
15440rm -f core conftest.err conftest.$ac_objext conftest.beam \
15441    conftest$ac_exeext conftest.$ac_ext
15442fi
15443
15444
15445		CFLAGS="$xorg_testset_save_CFLAGS"
15446
15447		eval supported=\$$cacheid
15448		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15449printf "%s\n" "$supported" >&6; }
15450		if test "$supported" = "yes" ; then
15451			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15452			found="yes"
15453		fi
15454	fi
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470xorg_testset_save_CFLAGS="$CFLAGS"
15471
15472if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15473	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15474	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15475printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15476if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15477then :
15478  printf %s "(cached) " >&6
15479else $as_nop
15480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15481/* end confdefs.h.  */
15482int i;
15483_ACEOF
15484if ac_fn_c_try_compile "$LINENO"
15485then :
15486  xorg_cv_cc_flag_unknown_warning_option=yes
15487else $as_nop
15488  xorg_cv_cc_flag_unknown_warning_option=no
15489fi
15490rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15491fi
15492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15493printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15494	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15495	CFLAGS="$xorg_testset_save_CFLAGS"
15496fi
15497
15498if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15499	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15500		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15501	fi
15502	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15503	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15504printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15505if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15506then :
15507  printf %s "(cached) " >&6
15508else $as_nop
15509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15510/* end confdefs.h.  */
15511int i;
15512_ACEOF
15513if ac_fn_c_try_compile "$LINENO"
15514then :
15515  xorg_cv_cc_flag_unused_command_line_argument=yes
15516else $as_nop
15517  xorg_cv_cc_flag_unused_command_line_argument=no
15518fi
15519rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15520fi
15521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15522printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15523	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15524	CFLAGS="$xorg_testset_save_CFLAGS"
15525fi
15526
15527found="no"
15528
15529	if test $found = "no" ; then
15530		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15531			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15532		fi
15533
15534		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15535			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15536		fi
15537
15538		CFLAGS="$CFLAGS -Werror=init-self"
15539
15540		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15541printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15542		cacheid=xorg_cv_cc_flag__Werror_init_self
15543		if eval test \${$cacheid+y}
15544then :
15545  printf %s "(cached) " >&6
15546else $as_nop
15547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15548/* end confdefs.h.  */
15549int i;
15550int
15551main (void)
15552{
15553
15554  ;
15555  return 0;
15556}
15557_ACEOF
15558if ac_fn_c_try_link "$LINENO"
15559then :
15560  eval $cacheid=yes
15561else $as_nop
15562  eval $cacheid=no
15563fi
15564rm -f core conftest.err conftest.$ac_objext conftest.beam \
15565    conftest$ac_exeext conftest.$ac_ext
15566fi
15567
15568
15569		CFLAGS="$xorg_testset_save_CFLAGS"
15570
15571		eval supported=\$$cacheid
15572		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15573printf "%s\n" "$supported" >&6; }
15574		if test "$supported" = "yes" ; then
15575			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15576			found="yes"
15577		fi
15578	fi
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594xorg_testset_save_CFLAGS="$CFLAGS"
15595
15596if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15597	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15598	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15599printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15600if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15601then :
15602  printf %s "(cached) " >&6
15603else $as_nop
15604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15605/* end confdefs.h.  */
15606int i;
15607_ACEOF
15608if ac_fn_c_try_compile "$LINENO"
15609then :
15610  xorg_cv_cc_flag_unknown_warning_option=yes
15611else $as_nop
15612  xorg_cv_cc_flag_unknown_warning_option=no
15613fi
15614rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15615fi
15616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15617printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15618	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15619	CFLAGS="$xorg_testset_save_CFLAGS"
15620fi
15621
15622if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15623	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15624		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15625	fi
15626	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15627	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15628printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15629if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15630then :
15631  printf %s "(cached) " >&6
15632else $as_nop
15633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15634/* end confdefs.h.  */
15635int i;
15636_ACEOF
15637if ac_fn_c_try_compile "$LINENO"
15638then :
15639  xorg_cv_cc_flag_unused_command_line_argument=yes
15640else $as_nop
15641  xorg_cv_cc_flag_unused_command_line_argument=no
15642fi
15643rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15644fi
15645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15646printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15647	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15648	CFLAGS="$xorg_testset_save_CFLAGS"
15649fi
15650
15651found="no"
15652
15653	if test $found = "no" ; then
15654		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15655			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15656		fi
15657
15658		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15659			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15660		fi
15661
15662		CFLAGS="$CFLAGS -Werror=main"
15663
15664		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15665printf %s "checking if $CC supports -Werror=main... " >&6; }
15666		cacheid=xorg_cv_cc_flag__Werror_main
15667		if eval test \${$cacheid+y}
15668then :
15669  printf %s "(cached) " >&6
15670else $as_nop
15671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15672/* end confdefs.h.  */
15673int i;
15674int
15675main (void)
15676{
15677
15678  ;
15679  return 0;
15680}
15681_ACEOF
15682if ac_fn_c_try_link "$LINENO"
15683then :
15684  eval $cacheid=yes
15685else $as_nop
15686  eval $cacheid=no
15687fi
15688rm -f core conftest.err conftest.$ac_objext conftest.beam \
15689    conftest$ac_exeext conftest.$ac_ext
15690fi
15691
15692
15693		CFLAGS="$xorg_testset_save_CFLAGS"
15694
15695		eval supported=\$$cacheid
15696		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15697printf "%s\n" "$supported" >&6; }
15698		if test "$supported" = "yes" ; then
15699			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15700			found="yes"
15701		fi
15702	fi
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718xorg_testset_save_CFLAGS="$CFLAGS"
15719
15720if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15721	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15722	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15723printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15724if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15725then :
15726  printf %s "(cached) " >&6
15727else $as_nop
15728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15729/* end confdefs.h.  */
15730int i;
15731_ACEOF
15732if ac_fn_c_try_compile "$LINENO"
15733then :
15734  xorg_cv_cc_flag_unknown_warning_option=yes
15735else $as_nop
15736  xorg_cv_cc_flag_unknown_warning_option=no
15737fi
15738rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15739fi
15740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15741printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15742	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15743	CFLAGS="$xorg_testset_save_CFLAGS"
15744fi
15745
15746if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15747	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15748		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15749	fi
15750	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15751	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15752printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15753if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15754then :
15755  printf %s "(cached) " >&6
15756else $as_nop
15757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15758/* end confdefs.h.  */
15759int i;
15760_ACEOF
15761if ac_fn_c_try_compile "$LINENO"
15762then :
15763  xorg_cv_cc_flag_unused_command_line_argument=yes
15764else $as_nop
15765  xorg_cv_cc_flag_unused_command_line_argument=no
15766fi
15767rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15768fi
15769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15770printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15771	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15772	CFLAGS="$xorg_testset_save_CFLAGS"
15773fi
15774
15775found="no"
15776
15777	if test $found = "no" ; then
15778		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15779			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15780		fi
15781
15782		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15783			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15784		fi
15785
15786		CFLAGS="$CFLAGS -Werror=missing-braces"
15787
15788		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15789printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
15790		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15791		if eval test \${$cacheid+y}
15792then :
15793  printf %s "(cached) " >&6
15794else $as_nop
15795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15796/* end confdefs.h.  */
15797int i;
15798int
15799main (void)
15800{
15801
15802  ;
15803  return 0;
15804}
15805_ACEOF
15806if ac_fn_c_try_link "$LINENO"
15807then :
15808  eval $cacheid=yes
15809else $as_nop
15810  eval $cacheid=no
15811fi
15812rm -f core conftest.err conftest.$ac_objext conftest.beam \
15813    conftest$ac_exeext conftest.$ac_ext
15814fi
15815
15816
15817		CFLAGS="$xorg_testset_save_CFLAGS"
15818
15819		eval supported=\$$cacheid
15820		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15821printf "%s\n" "$supported" >&6; }
15822		if test "$supported" = "yes" ; then
15823			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15824			found="yes"
15825		fi
15826	fi
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842xorg_testset_save_CFLAGS="$CFLAGS"
15843
15844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15845	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15846	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15847printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15848if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15849then :
15850  printf %s "(cached) " >&6
15851else $as_nop
15852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15853/* end confdefs.h.  */
15854int i;
15855_ACEOF
15856if ac_fn_c_try_compile "$LINENO"
15857then :
15858  xorg_cv_cc_flag_unknown_warning_option=yes
15859else $as_nop
15860  xorg_cv_cc_flag_unknown_warning_option=no
15861fi
15862rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15863fi
15864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15865printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15866	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15867	CFLAGS="$xorg_testset_save_CFLAGS"
15868fi
15869
15870if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15871	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15872		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15873	fi
15874	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15875	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15876printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15877if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15878then :
15879  printf %s "(cached) " >&6
15880else $as_nop
15881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15882/* end confdefs.h.  */
15883int i;
15884_ACEOF
15885if ac_fn_c_try_compile "$LINENO"
15886then :
15887  xorg_cv_cc_flag_unused_command_line_argument=yes
15888else $as_nop
15889  xorg_cv_cc_flag_unused_command_line_argument=no
15890fi
15891rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15892fi
15893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15894printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15895	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15896	CFLAGS="$xorg_testset_save_CFLAGS"
15897fi
15898
15899found="no"
15900
15901	if test $found = "no" ; then
15902		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15903			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15904		fi
15905
15906		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15907			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15908		fi
15909
15910		CFLAGS="$CFLAGS -Werror=sequence-point"
15911
15912		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15913printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
15914		cacheid=xorg_cv_cc_flag__Werror_sequence_point
15915		if eval test \${$cacheid+y}
15916then :
15917  printf %s "(cached) " >&6
15918else $as_nop
15919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15920/* end confdefs.h.  */
15921int i;
15922int
15923main (void)
15924{
15925
15926  ;
15927  return 0;
15928}
15929_ACEOF
15930if ac_fn_c_try_link "$LINENO"
15931then :
15932  eval $cacheid=yes
15933else $as_nop
15934  eval $cacheid=no
15935fi
15936rm -f core conftest.err conftest.$ac_objext conftest.beam \
15937    conftest$ac_exeext conftest.$ac_ext
15938fi
15939
15940
15941		CFLAGS="$xorg_testset_save_CFLAGS"
15942
15943		eval supported=\$$cacheid
15944		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15945printf "%s\n" "$supported" >&6; }
15946		if test "$supported" = "yes" ; then
15947			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15948			found="yes"
15949		fi
15950	fi
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966xorg_testset_save_CFLAGS="$CFLAGS"
15967
15968if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15969	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15970	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15971printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15972if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15973then :
15974  printf %s "(cached) " >&6
15975else $as_nop
15976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15977/* end confdefs.h.  */
15978int i;
15979_ACEOF
15980if ac_fn_c_try_compile "$LINENO"
15981then :
15982  xorg_cv_cc_flag_unknown_warning_option=yes
15983else $as_nop
15984  xorg_cv_cc_flag_unknown_warning_option=no
15985fi
15986rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15987fi
15988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15989printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15990	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15991	CFLAGS="$xorg_testset_save_CFLAGS"
15992fi
15993
15994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15995	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15996		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15997	fi
15998	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15999	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16000printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16001if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16002then :
16003  printf %s "(cached) " >&6
16004else $as_nop
16005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16006/* end confdefs.h.  */
16007int i;
16008_ACEOF
16009if ac_fn_c_try_compile "$LINENO"
16010then :
16011  xorg_cv_cc_flag_unused_command_line_argument=yes
16012else $as_nop
16013  xorg_cv_cc_flag_unused_command_line_argument=no
16014fi
16015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16016fi
16017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16018printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16019	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16020	CFLAGS="$xorg_testset_save_CFLAGS"
16021fi
16022
16023found="no"
16024
16025	if test $found = "no" ; then
16026		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16027			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16028		fi
16029
16030		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16031			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16032		fi
16033
16034		CFLAGS="$CFLAGS -Werror=return-type"
16035
16036		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16037printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16038		cacheid=xorg_cv_cc_flag__Werror_return_type
16039		if eval test \${$cacheid+y}
16040then :
16041  printf %s "(cached) " >&6
16042else $as_nop
16043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16044/* end confdefs.h.  */
16045int i;
16046int
16047main (void)
16048{
16049
16050  ;
16051  return 0;
16052}
16053_ACEOF
16054if ac_fn_c_try_link "$LINENO"
16055then :
16056  eval $cacheid=yes
16057else $as_nop
16058  eval $cacheid=no
16059fi
16060rm -f core conftest.err conftest.$ac_objext conftest.beam \
16061    conftest$ac_exeext conftest.$ac_ext
16062fi
16063
16064
16065		CFLAGS="$xorg_testset_save_CFLAGS"
16066
16067		eval supported=\$$cacheid
16068		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16069printf "%s\n" "$supported" >&6; }
16070		if test "$supported" = "yes" ; then
16071			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16072			found="yes"
16073		fi
16074	fi
16075
16076	if test $found = "no" ; then
16077		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16078			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16079		fi
16080
16081		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16082			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16083		fi
16084
16085		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16086
16087		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16088printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16089		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16090		if eval test \${$cacheid+y}
16091then :
16092  printf %s "(cached) " >&6
16093else $as_nop
16094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16095/* end confdefs.h.  */
16096int i;
16097int
16098main (void)
16099{
16100
16101  ;
16102  return 0;
16103}
16104_ACEOF
16105if ac_fn_c_try_link "$LINENO"
16106then :
16107  eval $cacheid=yes
16108else $as_nop
16109  eval $cacheid=no
16110fi
16111rm -f core conftest.err conftest.$ac_objext conftest.beam \
16112    conftest$ac_exeext conftest.$ac_ext
16113fi
16114
16115
16116		CFLAGS="$xorg_testset_save_CFLAGS"
16117
16118		eval supported=\$$cacheid
16119		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16120printf "%s\n" "$supported" >&6; }
16121		if test "$supported" = "yes" ; then
16122			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16123			found="yes"
16124		fi
16125	fi
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141xorg_testset_save_CFLAGS="$CFLAGS"
16142
16143if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16144	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16145	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16146printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16147if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16148then :
16149  printf %s "(cached) " >&6
16150else $as_nop
16151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16152/* end confdefs.h.  */
16153int i;
16154_ACEOF
16155if ac_fn_c_try_compile "$LINENO"
16156then :
16157  xorg_cv_cc_flag_unknown_warning_option=yes
16158else $as_nop
16159  xorg_cv_cc_flag_unknown_warning_option=no
16160fi
16161rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16162fi
16163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16164printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16165	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16166	CFLAGS="$xorg_testset_save_CFLAGS"
16167fi
16168
16169if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16170	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16171		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16172	fi
16173	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16174	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16175printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16176if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16177then :
16178  printf %s "(cached) " >&6
16179else $as_nop
16180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16181/* end confdefs.h.  */
16182int i;
16183_ACEOF
16184if ac_fn_c_try_compile "$LINENO"
16185then :
16186  xorg_cv_cc_flag_unused_command_line_argument=yes
16187else $as_nop
16188  xorg_cv_cc_flag_unused_command_line_argument=no
16189fi
16190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16191fi
16192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16193printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16194	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16195	CFLAGS="$xorg_testset_save_CFLAGS"
16196fi
16197
16198found="no"
16199
16200	if test $found = "no" ; then
16201		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16202			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16203		fi
16204
16205		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16206			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16207		fi
16208
16209		CFLAGS="$CFLAGS -Werror=trigraphs"
16210
16211		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16212printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16213		cacheid=xorg_cv_cc_flag__Werror_trigraphs
16214		if eval test \${$cacheid+y}
16215then :
16216  printf %s "(cached) " >&6
16217else $as_nop
16218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16219/* end confdefs.h.  */
16220int i;
16221int
16222main (void)
16223{
16224
16225  ;
16226  return 0;
16227}
16228_ACEOF
16229if ac_fn_c_try_link "$LINENO"
16230then :
16231  eval $cacheid=yes
16232else $as_nop
16233  eval $cacheid=no
16234fi
16235rm -f core conftest.err conftest.$ac_objext conftest.beam \
16236    conftest$ac_exeext conftest.$ac_ext
16237fi
16238
16239
16240		CFLAGS="$xorg_testset_save_CFLAGS"
16241
16242		eval supported=\$$cacheid
16243		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16244printf "%s\n" "$supported" >&6; }
16245		if test "$supported" = "yes" ; then
16246			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16247			found="yes"
16248		fi
16249	fi
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265xorg_testset_save_CFLAGS="$CFLAGS"
16266
16267if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16268	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16269	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16270printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16271if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16272then :
16273  printf %s "(cached) " >&6
16274else $as_nop
16275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16276/* end confdefs.h.  */
16277int i;
16278_ACEOF
16279if ac_fn_c_try_compile "$LINENO"
16280then :
16281  xorg_cv_cc_flag_unknown_warning_option=yes
16282else $as_nop
16283  xorg_cv_cc_flag_unknown_warning_option=no
16284fi
16285rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16286fi
16287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16288printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16289	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16290	CFLAGS="$xorg_testset_save_CFLAGS"
16291fi
16292
16293if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16294	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16295		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16296	fi
16297	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16298	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16299printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16300if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16301then :
16302  printf %s "(cached) " >&6
16303else $as_nop
16304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16305/* end confdefs.h.  */
16306int i;
16307_ACEOF
16308if ac_fn_c_try_compile "$LINENO"
16309then :
16310  xorg_cv_cc_flag_unused_command_line_argument=yes
16311else $as_nop
16312  xorg_cv_cc_flag_unused_command_line_argument=no
16313fi
16314rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16315fi
16316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16317printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16318	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16319	CFLAGS="$xorg_testset_save_CFLAGS"
16320fi
16321
16322found="no"
16323
16324	if test $found = "no" ; then
16325		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16326			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16327		fi
16328
16329		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16330			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16331		fi
16332
16333		CFLAGS="$CFLAGS -Werror=array-bounds"
16334
16335		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16336printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16337		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16338		if eval test \${$cacheid+y}
16339then :
16340  printf %s "(cached) " >&6
16341else $as_nop
16342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16343/* end confdefs.h.  */
16344int i;
16345int
16346main (void)
16347{
16348
16349  ;
16350  return 0;
16351}
16352_ACEOF
16353if ac_fn_c_try_link "$LINENO"
16354then :
16355  eval $cacheid=yes
16356else $as_nop
16357  eval $cacheid=no
16358fi
16359rm -f core conftest.err conftest.$ac_objext conftest.beam \
16360    conftest$ac_exeext conftest.$ac_ext
16361fi
16362
16363
16364		CFLAGS="$xorg_testset_save_CFLAGS"
16365
16366		eval supported=\$$cacheid
16367		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16368printf "%s\n" "$supported" >&6; }
16369		if test "$supported" = "yes" ; then
16370			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16371			found="yes"
16372		fi
16373	fi
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389xorg_testset_save_CFLAGS="$CFLAGS"
16390
16391if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16392	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16393	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16394printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16395if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16396then :
16397  printf %s "(cached) " >&6
16398else $as_nop
16399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16400/* end confdefs.h.  */
16401int i;
16402_ACEOF
16403if ac_fn_c_try_compile "$LINENO"
16404then :
16405  xorg_cv_cc_flag_unknown_warning_option=yes
16406else $as_nop
16407  xorg_cv_cc_flag_unknown_warning_option=no
16408fi
16409rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16410fi
16411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16412printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16413	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16414	CFLAGS="$xorg_testset_save_CFLAGS"
16415fi
16416
16417if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16418	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16419		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16420	fi
16421	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16422	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16423printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16424if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16425then :
16426  printf %s "(cached) " >&6
16427else $as_nop
16428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16429/* end confdefs.h.  */
16430int i;
16431_ACEOF
16432if ac_fn_c_try_compile "$LINENO"
16433then :
16434  xorg_cv_cc_flag_unused_command_line_argument=yes
16435else $as_nop
16436  xorg_cv_cc_flag_unused_command_line_argument=no
16437fi
16438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16439fi
16440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16441printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16442	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16443	CFLAGS="$xorg_testset_save_CFLAGS"
16444fi
16445
16446found="no"
16447
16448	if test $found = "no" ; then
16449		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16450			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16451		fi
16452
16453		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16454			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16455		fi
16456
16457		CFLAGS="$CFLAGS -Werror=write-strings"
16458
16459		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16460printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16461		cacheid=xorg_cv_cc_flag__Werror_write_strings
16462		if eval test \${$cacheid+y}
16463then :
16464  printf %s "(cached) " >&6
16465else $as_nop
16466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16467/* end confdefs.h.  */
16468int i;
16469int
16470main (void)
16471{
16472
16473  ;
16474  return 0;
16475}
16476_ACEOF
16477if ac_fn_c_try_link "$LINENO"
16478then :
16479  eval $cacheid=yes
16480else $as_nop
16481  eval $cacheid=no
16482fi
16483rm -f core conftest.err conftest.$ac_objext conftest.beam \
16484    conftest$ac_exeext conftest.$ac_ext
16485fi
16486
16487
16488		CFLAGS="$xorg_testset_save_CFLAGS"
16489
16490		eval supported=\$$cacheid
16491		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16492printf "%s\n" "$supported" >&6; }
16493		if test "$supported" = "yes" ; then
16494			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16495			found="yes"
16496		fi
16497	fi
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513xorg_testset_save_CFLAGS="$CFLAGS"
16514
16515if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16516	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16517	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16518printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16519if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16520then :
16521  printf %s "(cached) " >&6
16522else $as_nop
16523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16524/* end confdefs.h.  */
16525int i;
16526_ACEOF
16527if ac_fn_c_try_compile "$LINENO"
16528then :
16529  xorg_cv_cc_flag_unknown_warning_option=yes
16530else $as_nop
16531  xorg_cv_cc_flag_unknown_warning_option=no
16532fi
16533rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16534fi
16535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16536printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16537	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16538	CFLAGS="$xorg_testset_save_CFLAGS"
16539fi
16540
16541if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16542	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16543		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16544	fi
16545	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16546	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16547printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16548if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16549then :
16550  printf %s "(cached) " >&6
16551else $as_nop
16552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16553/* end confdefs.h.  */
16554int i;
16555_ACEOF
16556if ac_fn_c_try_compile "$LINENO"
16557then :
16558  xorg_cv_cc_flag_unused_command_line_argument=yes
16559else $as_nop
16560  xorg_cv_cc_flag_unused_command_line_argument=no
16561fi
16562rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16563fi
16564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16565printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16566	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16567	CFLAGS="$xorg_testset_save_CFLAGS"
16568fi
16569
16570found="no"
16571
16572	if test $found = "no" ; then
16573		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16574			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16575		fi
16576
16577		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16578			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16579		fi
16580
16581		CFLAGS="$CFLAGS -Werror=address"
16582
16583		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16584printf %s "checking if $CC supports -Werror=address... " >&6; }
16585		cacheid=xorg_cv_cc_flag__Werror_address
16586		if eval test \${$cacheid+y}
16587then :
16588  printf %s "(cached) " >&6
16589else $as_nop
16590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16591/* end confdefs.h.  */
16592int i;
16593int
16594main (void)
16595{
16596
16597  ;
16598  return 0;
16599}
16600_ACEOF
16601if ac_fn_c_try_link "$LINENO"
16602then :
16603  eval $cacheid=yes
16604else $as_nop
16605  eval $cacheid=no
16606fi
16607rm -f core conftest.err conftest.$ac_objext conftest.beam \
16608    conftest$ac_exeext conftest.$ac_ext
16609fi
16610
16611
16612		CFLAGS="$xorg_testset_save_CFLAGS"
16613
16614		eval supported=\$$cacheid
16615		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16616printf "%s\n" "$supported" >&6; }
16617		if test "$supported" = "yes" ; then
16618			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16619			found="yes"
16620		fi
16621	fi
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637xorg_testset_save_CFLAGS="$CFLAGS"
16638
16639if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16640	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16641	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16642printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16643if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16644then :
16645  printf %s "(cached) " >&6
16646else $as_nop
16647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16648/* end confdefs.h.  */
16649int i;
16650_ACEOF
16651if ac_fn_c_try_compile "$LINENO"
16652then :
16653  xorg_cv_cc_flag_unknown_warning_option=yes
16654else $as_nop
16655  xorg_cv_cc_flag_unknown_warning_option=no
16656fi
16657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16658fi
16659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16660printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16661	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16662	CFLAGS="$xorg_testset_save_CFLAGS"
16663fi
16664
16665if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16666	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16667		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16668	fi
16669	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16670	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16671printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16672if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16673then :
16674  printf %s "(cached) " >&6
16675else $as_nop
16676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16677/* end confdefs.h.  */
16678int i;
16679_ACEOF
16680if ac_fn_c_try_compile "$LINENO"
16681then :
16682  xorg_cv_cc_flag_unused_command_line_argument=yes
16683else $as_nop
16684  xorg_cv_cc_flag_unused_command_line_argument=no
16685fi
16686rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16687fi
16688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16689printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16690	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16691	CFLAGS="$xorg_testset_save_CFLAGS"
16692fi
16693
16694found="no"
16695
16696	if test $found = "no" ; then
16697		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16698			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16699		fi
16700
16701		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16702			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16703		fi
16704
16705		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16706
16707		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16708printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16709		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16710		if eval test \${$cacheid+y}
16711then :
16712  printf %s "(cached) " >&6
16713else $as_nop
16714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16715/* end confdefs.h.  */
16716int i;
16717int
16718main (void)
16719{
16720
16721  ;
16722  return 0;
16723}
16724_ACEOF
16725if ac_fn_c_try_link "$LINENO"
16726then :
16727  eval $cacheid=yes
16728else $as_nop
16729  eval $cacheid=no
16730fi
16731rm -f core conftest.err conftest.$ac_objext conftest.beam \
16732    conftest$ac_exeext conftest.$ac_ext
16733fi
16734
16735
16736		CFLAGS="$xorg_testset_save_CFLAGS"
16737
16738		eval supported=\$$cacheid
16739		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16740printf "%s\n" "$supported" >&6; }
16741		if test "$supported" = "yes" ; then
16742			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16743			found="yes"
16744		fi
16745	fi
16746
16747	if test $found = "no" ; then
16748		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16749			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16750		fi
16751
16752		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16753			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16754		fi
16755
16756		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16757
16758		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16759printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16760		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16761		if eval test \${$cacheid+y}
16762then :
16763  printf %s "(cached) " >&6
16764else $as_nop
16765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16766/* end confdefs.h.  */
16767int i;
16768int
16769main (void)
16770{
16771
16772  ;
16773  return 0;
16774}
16775_ACEOF
16776if ac_fn_c_try_link "$LINENO"
16777then :
16778  eval $cacheid=yes
16779else $as_nop
16780  eval $cacheid=no
16781fi
16782rm -f core conftest.err conftest.$ac_objext conftest.beam \
16783    conftest$ac_exeext conftest.$ac_ext
16784fi
16785
16786
16787		CFLAGS="$xorg_testset_save_CFLAGS"
16788
16789		eval supported=\$$cacheid
16790		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16791printf "%s\n" "$supported" >&6; }
16792		if test "$supported" = "yes" ; then
16793			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16794			found="yes"
16795		fi
16796	fi
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812xorg_testset_save_CFLAGS="$CFLAGS"
16813
16814if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16815	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16816	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16817printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16818if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16819then :
16820  printf %s "(cached) " >&6
16821else $as_nop
16822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16823/* end confdefs.h.  */
16824int i;
16825_ACEOF
16826if ac_fn_c_try_compile "$LINENO"
16827then :
16828  xorg_cv_cc_flag_unknown_warning_option=yes
16829else $as_nop
16830  xorg_cv_cc_flag_unknown_warning_option=no
16831fi
16832rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16833fi
16834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16835printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16836	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16837	CFLAGS="$xorg_testset_save_CFLAGS"
16838fi
16839
16840if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16841	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16842		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16843	fi
16844	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16845	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16846printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16847if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16848then :
16849  printf %s "(cached) " >&6
16850else $as_nop
16851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16852/* end confdefs.h.  */
16853int i;
16854_ACEOF
16855if ac_fn_c_try_compile "$LINENO"
16856then :
16857  xorg_cv_cc_flag_unused_command_line_argument=yes
16858else $as_nop
16859  xorg_cv_cc_flag_unused_command_line_argument=no
16860fi
16861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16862fi
16863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16864printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16865	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16866	CFLAGS="$xorg_testset_save_CFLAGS"
16867fi
16868
16869found="no"
16870
16871	if test $found = "no" ; then
16872		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16873			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16874		fi
16875
16876		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16877			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16878		fi
16879
16880		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16881
16882		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16883printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16884		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16885		if eval test \${$cacheid+y}
16886then :
16887  printf %s "(cached) " >&6
16888else $as_nop
16889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16890/* end confdefs.h.  */
16891int i;
16892int
16893main (void)
16894{
16895
16896  ;
16897  return 0;
16898}
16899_ACEOF
16900if ac_fn_c_try_link "$LINENO"
16901then :
16902  eval $cacheid=yes
16903else $as_nop
16904  eval $cacheid=no
16905fi
16906rm -f core conftest.err conftest.$ac_objext conftest.beam \
16907    conftest$ac_exeext conftest.$ac_ext
16908fi
16909
16910
16911		CFLAGS="$xorg_testset_save_CFLAGS"
16912
16913		eval supported=\$$cacheid
16914		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16915printf "%s\n" "$supported" >&6; }
16916		if test "$supported" = "yes" ; then
16917			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16918			found="yes"
16919		fi
16920	fi
16921
16922 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16923else
16924{ 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
16925printf "%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;}
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939xorg_testset_save_CFLAGS="$CFLAGS"
16940
16941if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16942	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16943	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16944printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16945if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16946then :
16947  printf %s "(cached) " >&6
16948else $as_nop
16949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16950/* end confdefs.h.  */
16951int i;
16952_ACEOF
16953if ac_fn_c_try_compile "$LINENO"
16954then :
16955  xorg_cv_cc_flag_unknown_warning_option=yes
16956else $as_nop
16957  xorg_cv_cc_flag_unknown_warning_option=no
16958fi
16959rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16960fi
16961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16962printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16963	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16964	CFLAGS="$xorg_testset_save_CFLAGS"
16965fi
16966
16967if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16968	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16969		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16970	fi
16971	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16972	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16973printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16974if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16975then :
16976  printf %s "(cached) " >&6
16977else $as_nop
16978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16979/* end confdefs.h.  */
16980int i;
16981_ACEOF
16982if ac_fn_c_try_compile "$LINENO"
16983then :
16984  xorg_cv_cc_flag_unused_command_line_argument=yes
16985else $as_nop
16986  xorg_cv_cc_flag_unused_command_line_argument=no
16987fi
16988rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16989fi
16990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16991printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16992	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16993	CFLAGS="$xorg_testset_save_CFLAGS"
16994fi
16995
16996found="no"
16997
16998	if test $found = "no" ; then
16999		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17000			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17001		fi
17002
17003		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17004			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17005		fi
17006
17007		CFLAGS="$CFLAGS -Wimplicit"
17008
17009		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17010printf %s "checking if $CC supports -Wimplicit... " >&6; }
17011		cacheid=xorg_cv_cc_flag__Wimplicit
17012		if eval test \${$cacheid+y}
17013then :
17014  printf %s "(cached) " >&6
17015else $as_nop
17016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17017/* end confdefs.h.  */
17018int i;
17019int
17020main (void)
17021{
17022
17023  ;
17024  return 0;
17025}
17026_ACEOF
17027if ac_fn_c_try_link "$LINENO"
17028then :
17029  eval $cacheid=yes
17030else $as_nop
17031  eval $cacheid=no
17032fi
17033rm -f core conftest.err conftest.$ac_objext conftest.beam \
17034    conftest$ac_exeext conftest.$ac_ext
17035fi
17036
17037
17038		CFLAGS="$xorg_testset_save_CFLAGS"
17039
17040		eval supported=\$$cacheid
17041		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17042printf "%s\n" "$supported" >&6; }
17043		if test "$supported" = "yes" ; then
17044			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17045			found="yes"
17046		fi
17047	fi
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063xorg_testset_save_CFLAGS="$CFLAGS"
17064
17065if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17066	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17067	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17068printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17069if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17070then :
17071  printf %s "(cached) " >&6
17072else $as_nop
17073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17074/* end confdefs.h.  */
17075int i;
17076_ACEOF
17077if ac_fn_c_try_compile "$LINENO"
17078then :
17079  xorg_cv_cc_flag_unknown_warning_option=yes
17080else $as_nop
17081  xorg_cv_cc_flag_unknown_warning_option=no
17082fi
17083rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17084fi
17085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17086printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17087	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17088	CFLAGS="$xorg_testset_save_CFLAGS"
17089fi
17090
17091if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17092	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17093		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17094	fi
17095	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17096	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17097printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17098if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17099then :
17100  printf %s "(cached) " >&6
17101else $as_nop
17102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17103/* end confdefs.h.  */
17104int i;
17105_ACEOF
17106if ac_fn_c_try_compile "$LINENO"
17107then :
17108  xorg_cv_cc_flag_unused_command_line_argument=yes
17109else $as_nop
17110  xorg_cv_cc_flag_unused_command_line_argument=no
17111fi
17112rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17113fi
17114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17115printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17116	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17117	CFLAGS="$xorg_testset_save_CFLAGS"
17118fi
17119
17120found="no"
17121
17122	if test $found = "no" ; then
17123		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17124			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17125		fi
17126
17127		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17128			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17129		fi
17130
17131		CFLAGS="$CFLAGS -Wnonnull"
17132
17133		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17134printf %s "checking if $CC supports -Wnonnull... " >&6; }
17135		cacheid=xorg_cv_cc_flag__Wnonnull
17136		if eval test \${$cacheid+y}
17137then :
17138  printf %s "(cached) " >&6
17139else $as_nop
17140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17141/* end confdefs.h.  */
17142int i;
17143int
17144main (void)
17145{
17146
17147  ;
17148  return 0;
17149}
17150_ACEOF
17151if ac_fn_c_try_link "$LINENO"
17152then :
17153  eval $cacheid=yes
17154else $as_nop
17155  eval $cacheid=no
17156fi
17157rm -f core conftest.err conftest.$ac_objext conftest.beam \
17158    conftest$ac_exeext conftest.$ac_ext
17159fi
17160
17161
17162		CFLAGS="$xorg_testset_save_CFLAGS"
17163
17164		eval supported=\$$cacheid
17165		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17166printf "%s\n" "$supported" >&6; }
17167		if test "$supported" = "yes" ; then
17168			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17169			found="yes"
17170		fi
17171	fi
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187xorg_testset_save_CFLAGS="$CFLAGS"
17188
17189if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17190	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17191	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17192printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17193if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17194then :
17195  printf %s "(cached) " >&6
17196else $as_nop
17197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17198/* end confdefs.h.  */
17199int i;
17200_ACEOF
17201if ac_fn_c_try_compile "$LINENO"
17202then :
17203  xorg_cv_cc_flag_unknown_warning_option=yes
17204else $as_nop
17205  xorg_cv_cc_flag_unknown_warning_option=no
17206fi
17207rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17208fi
17209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17210printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17211	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17212	CFLAGS="$xorg_testset_save_CFLAGS"
17213fi
17214
17215if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17216	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17217		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17218	fi
17219	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17220	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17221printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17222if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17223then :
17224  printf %s "(cached) " >&6
17225else $as_nop
17226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17227/* end confdefs.h.  */
17228int i;
17229_ACEOF
17230if ac_fn_c_try_compile "$LINENO"
17231then :
17232  xorg_cv_cc_flag_unused_command_line_argument=yes
17233else $as_nop
17234  xorg_cv_cc_flag_unused_command_line_argument=no
17235fi
17236rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17237fi
17238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17239printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17240	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17241	CFLAGS="$xorg_testset_save_CFLAGS"
17242fi
17243
17244found="no"
17245
17246	if test $found = "no" ; then
17247		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17248			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17249		fi
17250
17251		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17252			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17253		fi
17254
17255		CFLAGS="$CFLAGS -Winit-self"
17256
17257		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17258printf %s "checking if $CC supports -Winit-self... " >&6; }
17259		cacheid=xorg_cv_cc_flag__Winit_self
17260		if eval test \${$cacheid+y}
17261then :
17262  printf %s "(cached) " >&6
17263else $as_nop
17264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17265/* end confdefs.h.  */
17266int i;
17267int
17268main (void)
17269{
17270
17271  ;
17272  return 0;
17273}
17274_ACEOF
17275if ac_fn_c_try_link "$LINENO"
17276then :
17277  eval $cacheid=yes
17278else $as_nop
17279  eval $cacheid=no
17280fi
17281rm -f core conftest.err conftest.$ac_objext conftest.beam \
17282    conftest$ac_exeext conftest.$ac_ext
17283fi
17284
17285
17286		CFLAGS="$xorg_testset_save_CFLAGS"
17287
17288		eval supported=\$$cacheid
17289		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17290printf "%s\n" "$supported" >&6; }
17291		if test "$supported" = "yes" ; then
17292			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17293			found="yes"
17294		fi
17295	fi
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311xorg_testset_save_CFLAGS="$CFLAGS"
17312
17313if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17314	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17315	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17316printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17317if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17318then :
17319  printf %s "(cached) " >&6
17320else $as_nop
17321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17322/* end confdefs.h.  */
17323int i;
17324_ACEOF
17325if ac_fn_c_try_compile "$LINENO"
17326then :
17327  xorg_cv_cc_flag_unknown_warning_option=yes
17328else $as_nop
17329  xorg_cv_cc_flag_unknown_warning_option=no
17330fi
17331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17332fi
17333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17334printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17335	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17336	CFLAGS="$xorg_testset_save_CFLAGS"
17337fi
17338
17339if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17340	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17341		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17342	fi
17343	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17344	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17345printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17346if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17347then :
17348  printf %s "(cached) " >&6
17349else $as_nop
17350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17351/* end confdefs.h.  */
17352int i;
17353_ACEOF
17354if ac_fn_c_try_compile "$LINENO"
17355then :
17356  xorg_cv_cc_flag_unused_command_line_argument=yes
17357else $as_nop
17358  xorg_cv_cc_flag_unused_command_line_argument=no
17359fi
17360rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17361fi
17362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17363printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17364	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17365	CFLAGS="$xorg_testset_save_CFLAGS"
17366fi
17367
17368found="no"
17369
17370	if test $found = "no" ; then
17371		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17372			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17373		fi
17374
17375		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17376			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17377		fi
17378
17379		CFLAGS="$CFLAGS -Wmain"
17380
17381		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17382printf %s "checking if $CC supports -Wmain... " >&6; }
17383		cacheid=xorg_cv_cc_flag__Wmain
17384		if eval test \${$cacheid+y}
17385then :
17386  printf %s "(cached) " >&6
17387else $as_nop
17388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17389/* end confdefs.h.  */
17390int i;
17391int
17392main (void)
17393{
17394
17395  ;
17396  return 0;
17397}
17398_ACEOF
17399if ac_fn_c_try_link "$LINENO"
17400then :
17401  eval $cacheid=yes
17402else $as_nop
17403  eval $cacheid=no
17404fi
17405rm -f core conftest.err conftest.$ac_objext conftest.beam \
17406    conftest$ac_exeext conftest.$ac_ext
17407fi
17408
17409
17410		CFLAGS="$xorg_testset_save_CFLAGS"
17411
17412		eval supported=\$$cacheid
17413		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17414printf "%s\n" "$supported" >&6; }
17415		if test "$supported" = "yes" ; then
17416			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17417			found="yes"
17418		fi
17419	fi
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435xorg_testset_save_CFLAGS="$CFLAGS"
17436
17437if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17438	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17439	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17440printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17441if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17442then :
17443  printf %s "(cached) " >&6
17444else $as_nop
17445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17446/* end confdefs.h.  */
17447int i;
17448_ACEOF
17449if ac_fn_c_try_compile "$LINENO"
17450then :
17451  xorg_cv_cc_flag_unknown_warning_option=yes
17452else $as_nop
17453  xorg_cv_cc_flag_unknown_warning_option=no
17454fi
17455rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17456fi
17457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17458printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17459	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17460	CFLAGS="$xorg_testset_save_CFLAGS"
17461fi
17462
17463if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17464	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17465		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17466	fi
17467	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17468	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17469printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17470if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17471then :
17472  printf %s "(cached) " >&6
17473else $as_nop
17474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17475/* end confdefs.h.  */
17476int i;
17477_ACEOF
17478if ac_fn_c_try_compile "$LINENO"
17479then :
17480  xorg_cv_cc_flag_unused_command_line_argument=yes
17481else $as_nop
17482  xorg_cv_cc_flag_unused_command_line_argument=no
17483fi
17484rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17485fi
17486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17487printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17488	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17489	CFLAGS="$xorg_testset_save_CFLAGS"
17490fi
17491
17492found="no"
17493
17494	if test $found = "no" ; then
17495		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17496			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17497		fi
17498
17499		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17500			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17501		fi
17502
17503		CFLAGS="$CFLAGS -Wmissing-braces"
17504
17505		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17506printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17507		cacheid=xorg_cv_cc_flag__Wmissing_braces
17508		if eval test \${$cacheid+y}
17509then :
17510  printf %s "(cached) " >&6
17511else $as_nop
17512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17513/* end confdefs.h.  */
17514int i;
17515int
17516main (void)
17517{
17518
17519  ;
17520  return 0;
17521}
17522_ACEOF
17523if ac_fn_c_try_link "$LINENO"
17524then :
17525  eval $cacheid=yes
17526else $as_nop
17527  eval $cacheid=no
17528fi
17529rm -f core conftest.err conftest.$ac_objext conftest.beam \
17530    conftest$ac_exeext conftest.$ac_ext
17531fi
17532
17533
17534		CFLAGS="$xorg_testset_save_CFLAGS"
17535
17536		eval supported=\$$cacheid
17537		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17538printf "%s\n" "$supported" >&6; }
17539		if test "$supported" = "yes" ; then
17540			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17541			found="yes"
17542		fi
17543	fi
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559xorg_testset_save_CFLAGS="$CFLAGS"
17560
17561if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17562	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17563	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17564printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17565if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17566then :
17567  printf %s "(cached) " >&6
17568else $as_nop
17569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17570/* end confdefs.h.  */
17571int i;
17572_ACEOF
17573if ac_fn_c_try_compile "$LINENO"
17574then :
17575  xorg_cv_cc_flag_unknown_warning_option=yes
17576else $as_nop
17577  xorg_cv_cc_flag_unknown_warning_option=no
17578fi
17579rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17580fi
17581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17582printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17583	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17584	CFLAGS="$xorg_testset_save_CFLAGS"
17585fi
17586
17587if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17588	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17589		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17590	fi
17591	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17592	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17593printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17594if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17595then :
17596  printf %s "(cached) " >&6
17597else $as_nop
17598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17599/* end confdefs.h.  */
17600int i;
17601_ACEOF
17602if ac_fn_c_try_compile "$LINENO"
17603then :
17604  xorg_cv_cc_flag_unused_command_line_argument=yes
17605else $as_nop
17606  xorg_cv_cc_flag_unused_command_line_argument=no
17607fi
17608rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17609fi
17610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17611printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17612	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17613	CFLAGS="$xorg_testset_save_CFLAGS"
17614fi
17615
17616found="no"
17617
17618	if test $found = "no" ; then
17619		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17620			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17621		fi
17622
17623		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17624			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17625		fi
17626
17627		CFLAGS="$CFLAGS -Wsequence-point"
17628
17629		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17630printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17631		cacheid=xorg_cv_cc_flag__Wsequence_point
17632		if eval test \${$cacheid+y}
17633then :
17634  printf %s "(cached) " >&6
17635else $as_nop
17636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17637/* end confdefs.h.  */
17638int i;
17639int
17640main (void)
17641{
17642
17643  ;
17644  return 0;
17645}
17646_ACEOF
17647if ac_fn_c_try_link "$LINENO"
17648then :
17649  eval $cacheid=yes
17650else $as_nop
17651  eval $cacheid=no
17652fi
17653rm -f core conftest.err conftest.$ac_objext conftest.beam \
17654    conftest$ac_exeext conftest.$ac_ext
17655fi
17656
17657
17658		CFLAGS="$xorg_testset_save_CFLAGS"
17659
17660		eval supported=\$$cacheid
17661		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17662printf "%s\n" "$supported" >&6; }
17663		if test "$supported" = "yes" ; then
17664			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17665			found="yes"
17666		fi
17667	fi
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683xorg_testset_save_CFLAGS="$CFLAGS"
17684
17685if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17686	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17687	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17688printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17689if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17690then :
17691  printf %s "(cached) " >&6
17692else $as_nop
17693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17694/* end confdefs.h.  */
17695int i;
17696_ACEOF
17697if ac_fn_c_try_compile "$LINENO"
17698then :
17699  xorg_cv_cc_flag_unknown_warning_option=yes
17700else $as_nop
17701  xorg_cv_cc_flag_unknown_warning_option=no
17702fi
17703rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17704fi
17705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17706printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17707	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17708	CFLAGS="$xorg_testset_save_CFLAGS"
17709fi
17710
17711if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17712	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17713		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17714	fi
17715	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17716	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17717printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17718if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17719then :
17720  printf %s "(cached) " >&6
17721else $as_nop
17722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17723/* end confdefs.h.  */
17724int i;
17725_ACEOF
17726if ac_fn_c_try_compile "$LINENO"
17727then :
17728  xorg_cv_cc_flag_unused_command_line_argument=yes
17729else $as_nop
17730  xorg_cv_cc_flag_unused_command_line_argument=no
17731fi
17732rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17733fi
17734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17735printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17736	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17737	CFLAGS="$xorg_testset_save_CFLAGS"
17738fi
17739
17740found="no"
17741
17742	if test $found = "no" ; then
17743		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17744			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17745		fi
17746
17747		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17748			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17749		fi
17750
17751		CFLAGS="$CFLAGS -Wreturn-type"
17752
17753		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17754printf %s "checking if $CC supports -Wreturn-type... " >&6; }
17755		cacheid=xorg_cv_cc_flag__Wreturn_type
17756		if eval test \${$cacheid+y}
17757then :
17758  printf %s "(cached) " >&6
17759else $as_nop
17760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17761/* end confdefs.h.  */
17762int i;
17763int
17764main (void)
17765{
17766
17767  ;
17768  return 0;
17769}
17770_ACEOF
17771if ac_fn_c_try_link "$LINENO"
17772then :
17773  eval $cacheid=yes
17774else $as_nop
17775  eval $cacheid=no
17776fi
17777rm -f core conftest.err conftest.$ac_objext conftest.beam \
17778    conftest$ac_exeext conftest.$ac_ext
17779fi
17780
17781
17782		CFLAGS="$xorg_testset_save_CFLAGS"
17783
17784		eval supported=\$$cacheid
17785		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17786printf "%s\n" "$supported" >&6; }
17787		if test "$supported" = "yes" ; then
17788			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17789			found="yes"
17790		fi
17791	fi
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807xorg_testset_save_CFLAGS="$CFLAGS"
17808
17809if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17810	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17811	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17812printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17813if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17814then :
17815  printf %s "(cached) " >&6
17816else $as_nop
17817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17818/* end confdefs.h.  */
17819int i;
17820_ACEOF
17821if ac_fn_c_try_compile "$LINENO"
17822then :
17823  xorg_cv_cc_flag_unknown_warning_option=yes
17824else $as_nop
17825  xorg_cv_cc_flag_unknown_warning_option=no
17826fi
17827rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17828fi
17829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17830printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17831	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17832	CFLAGS="$xorg_testset_save_CFLAGS"
17833fi
17834
17835if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17836	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17837		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17838	fi
17839	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17840	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17841printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17842if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17843then :
17844  printf %s "(cached) " >&6
17845else $as_nop
17846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17847/* end confdefs.h.  */
17848int i;
17849_ACEOF
17850if ac_fn_c_try_compile "$LINENO"
17851then :
17852  xorg_cv_cc_flag_unused_command_line_argument=yes
17853else $as_nop
17854  xorg_cv_cc_flag_unused_command_line_argument=no
17855fi
17856rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17857fi
17858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17859printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17860	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17861	CFLAGS="$xorg_testset_save_CFLAGS"
17862fi
17863
17864found="no"
17865
17866	if test $found = "no" ; then
17867		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17868			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17869		fi
17870
17871		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17872			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17873		fi
17874
17875		CFLAGS="$CFLAGS -Wtrigraphs"
17876
17877		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17878printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
17879		cacheid=xorg_cv_cc_flag__Wtrigraphs
17880		if eval test \${$cacheid+y}
17881then :
17882  printf %s "(cached) " >&6
17883else $as_nop
17884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17885/* end confdefs.h.  */
17886int i;
17887int
17888main (void)
17889{
17890
17891  ;
17892  return 0;
17893}
17894_ACEOF
17895if ac_fn_c_try_link "$LINENO"
17896then :
17897  eval $cacheid=yes
17898else $as_nop
17899  eval $cacheid=no
17900fi
17901rm -f core conftest.err conftest.$ac_objext conftest.beam \
17902    conftest$ac_exeext conftest.$ac_ext
17903fi
17904
17905
17906		CFLAGS="$xorg_testset_save_CFLAGS"
17907
17908		eval supported=\$$cacheid
17909		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17910printf "%s\n" "$supported" >&6; }
17911		if test "$supported" = "yes" ; then
17912			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17913			found="yes"
17914		fi
17915	fi
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931xorg_testset_save_CFLAGS="$CFLAGS"
17932
17933if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17934	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17935	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17936printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17937if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17938then :
17939  printf %s "(cached) " >&6
17940else $as_nop
17941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17942/* end confdefs.h.  */
17943int i;
17944_ACEOF
17945if ac_fn_c_try_compile "$LINENO"
17946then :
17947  xorg_cv_cc_flag_unknown_warning_option=yes
17948else $as_nop
17949  xorg_cv_cc_flag_unknown_warning_option=no
17950fi
17951rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17952fi
17953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17954printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17955	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17956	CFLAGS="$xorg_testset_save_CFLAGS"
17957fi
17958
17959if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17960	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17961		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17962	fi
17963	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17964	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17965printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17966if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17967then :
17968  printf %s "(cached) " >&6
17969else $as_nop
17970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17971/* end confdefs.h.  */
17972int i;
17973_ACEOF
17974if ac_fn_c_try_compile "$LINENO"
17975then :
17976  xorg_cv_cc_flag_unused_command_line_argument=yes
17977else $as_nop
17978  xorg_cv_cc_flag_unused_command_line_argument=no
17979fi
17980rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17981fi
17982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17983printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17984	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17985	CFLAGS="$xorg_testset_save_CFLAGS"
17986fi
17987
17988found="no"
17989
17990	if test $found = "no" ; then
17991		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17992			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17993		fi
17994
17995		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17996			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17997		fi
17998
17999		CFLAGS="$CFLAGS -Warray-bounds"
18000
18001		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18002printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18003		cacheid=xorg_cv_cc_flag__Warray_bounds
18004		if eval test \${$cacheid+y}
18005then :
18006  printf %s "(cached) " >&6
18007else $as_nop
18008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18009/* end confdefs.h.  */
18010int i;
18011int
18012main (void)
18013{
18014
18015  ;
18016  return 0;
18017}
18018_ACEOF
18019if ac_fn_c_try_link "$LINENO"
18020then :
18021  eval $cacheid=yes
18022else $as_nop
18023  eval $cacheid=no
18024fi
18025rm -f core conftest.err conftest.$ac_objext conftest.beam \
18026    conftest$ac_exeext conftest.$ac_ext
18027fi
18028
18029
18030		CFLAGS="$xorg_testset_save_CFLAGS"
18031
18032		eval supported=\$$cacheid
18033		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18034printf "%s\n" "$supported" >&6; }
18035		if test "$supported" = "yes" ; then
18036			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18037			found="yes"
18038		fi
18039	fi
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055xorg_testset_save_CFLAGS="$CFLAGS"
18056
18057if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18058	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18059	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18060printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18061if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18062then :
18063  printf %s "(cached) " >&6
18064else $as_nop
18065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18066/* end confdefs.h.  */
18067int i;
18068_ACEOF
18069if ac_fn_c_try_compile "$LINENO"
18070then :
18071  xorg_cv_cc_flag_unknown_warning_option=yes
18072else $as_nop
18073  xorg_cv_cc_flag_unknown_warning_option=no
18074fi
18075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18076fi
18077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18078printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18079	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18080	CFLAGS="$xorg_testset_save_CFLAGS"
18081fi
18082
18083if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18084	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18085		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18086	fi
18087	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18088	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18089printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18090if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18091then :
18092  printf %s "(cached) " >&6
18093else $as_nop
18094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18095/* end confdefs.h.  */
18096int i;
18097_ACEOF
18098if ac_fn_c_try_compile "$LINENO"
18099then :
18100  xorg_cv_cc_flag_unused_command_line_argument=yes
18101else $as_nop
18102  xorg_cv_cc_flag_unused_command_line_argument=no
18103fi
18104rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18105fi
18106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18107printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18108	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18109	CFLAGS="$xorg_testset_save_CFLAGS"
18110fi
18111
18112found="no"
18113
18114	if test $found = "no" ; then
18115		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18116			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18117		fi
18118
18119		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18120			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18121		fi
18122
18123		CFLAGS="$CFLAGS -Wwrite-strings"
18124
18125		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18126printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18127		cacheid=xorg_cv_cc_flag__Wwrite_strings
18128		if eval test \${$cacheid+y}
18129then :
18130  printf %s "(cached) " >&6
18131else $as_nop
18132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18133/* end confdefs.h.  */
18134int i;
18135int
18136main (void)
18137{
18138
18139  ;
18140  return 0;
18141}
18142_ACEOF
18143if ac_fn_c_try_link "$LINENO"
18144then :
18145  eval $cacheid=yes
18146else $as_nop
18147  eval $cacheid=no
18148fi
18149rm -f core conftest.err conftest.$ac_objext conftest.beam \
18150    conftest$ac_exeext conftest.$ac_ext
18151fi
18152
18153
18154		CFLAGS="$xorg_testset_save_CFLAGS"
18155
18156		eval supported=\$$cacheid
18157		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18158printf "%s\n" "$supported" >&6; }
18159		if test "$supported" = "yes" ; then
18160			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18161			found="yes"
18162		fi
18163	fi
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179xorg_testset_save_CFLAGS="$CFLAGS"
18180
18181if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18182	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18183	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18184printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18185if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18186then :
18187  printf %s "(cached) " >&6
18188else $as_nop
18189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18190/* end confdefs.h.  */
18191int i;
18192_ACEOF
18193if ac_fn_c_try_compile "$LINENO"
18194then :
18195  xorg_cv_cc_flag_unknown_warning_option=yes
18196else $as_nop
18197  xorg_cv_cc_flag_unknown_warning_option=no
18198fi
18199rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18200fi
18201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18202printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18203	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18204	CFLAGS="$xorg_testset_save_CFLAGS"
18205fi
18206
18207if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18208	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18209		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18210	fi
18211	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18212	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18213printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18214if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18215then :
18216  printf %s "(cached) " >&6
18217else $as_nop
18218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18219/* end confdefs.h.  */
18220int i;
18221_ACEOF
18222if ac_fn_c_try_compile "$LINENO"
18223then :
18224  xorg_cv_cc_flag_unused_command_line_argument=yes
18225else $as_nop
18226  xorg_cv_cc_flag_unused_command_line_argument=no
18227fi
18228rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18229fi
18230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18231printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18232	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18233	CFLAGS="$xorg_testset_save_CFLAGS"
18234fi
18235
18236found="no"
18237
18238	if test $found = "no" ; then
18239		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18240			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18241		fi
18242
18243		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18244			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18245		fi
18246
18247		CFLAGS="$CFLAGS -Waddress"
18248
18249		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18250printf %s "checking if $CC supports -Waddress... " >&6; }
18251		cacheid=xorg_cv_cc_flag__Waddress
18252		if eval test \${$cacheid+y}
18253then :
18254  printf %s "(cached) " >&6
18255else $as_nop
18256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18257/* end confdefs.h.  */
18258int i;
18259int
18260main (void)
18261{
18262
18263  ;
18264  return 0;
18265}
18266_ACEOF
18267if ac_fn_c_try_link "$LINENO"
18268then :
18269  eval $cacheid=yes
18270else $as_nop
18271  eval $cacheid=no
18272fi
18273rm -f core conftest.err conftest.$ac_objext conftest.beam \
18274    conftest$ac_exeext conftest.$ac_ext
18275fi
18276
18277
18278		CFLAGS="$xorg_testset_save_CFLAGS"
18279
18280		eval supported=\$$cacheid
18281		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18282printf "%s\n" "$supported" >&6; }
18283		if test "$supported" = "yes" ; then
18284			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18285			found="yes"
18286		fi
18287	fi
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303xorg_testset_save_CFLAGS="$CFLAGS"
18304
18305if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18306	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18307	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18308printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18309if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18310then :
18311  printf %s "(cached) " >&6
18312else $as_nop
18313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18314/* end confdefs.h.  */
18315int i;
18316_ACEOF
18317if ac_fn_c_try_compile "$LINENO"
18318then :
18319  xorg_cv_cc_flag_unknown_warning_option=yes
18320else $as_nop
18321  xorg_cv_cc_flag_unknown_warning_option=no
18322fi
18323rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18324fi
18325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18326printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18327	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18328	CFLAGS="$xorg_testset_save_CFLAGS"
18329fi
18330
18331if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18332	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18333		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18334	fi
18335	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18336	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18337printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18338if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18339then :
18340  printf %s "(cached) " >&6
18341else $as_nop
18342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18343/* end confdefs.h.  */
18344int i;
18345_ACEOF
18346if ac_fn_c_try_compile "$LINENO"
18347then :
18348  xorg_cv_cc_flag_unused_command_line_argument=yes
18349else $as_nop
18350  xorg_cv_cc_flag_unused_command_line_argument=no
18351fi
18352rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18353fi
18354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18355printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18356	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18357	CFLAGS="$xorg_testset_save_CFLAGS"
18358fi
18359
18360found="no"
18361
18362	if test $found = "no" ; then
18363		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18364			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18365		fi
18366
18367		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18368			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18369		fi
18370
18371		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18372
18373		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18374printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18375		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18376		if eval test \${$cacheid+y}
18377then :
18378  printf %s "(cached) " >&6
18379else $as_nop
18380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18381/* end confdefs.h.  */
18382int i;
18383int
18384main (void)
18385{
18386
18387  ;
18388  return 0;
18389}
18390_ACEOF
18391if ac_fn_c_try_link "$LINENO"
18392then :
18393  eval $cacheid=yes
18394else $as_nop
18395  eval $cacheid=no
18396fi
18397rm -f core conftest.err conftest.$ac_objext conftest.beam \
18398    conftest$ac_exeext conftest.$ac_ext
18399fi
18400
18401
18402		CFLAGS="$xorg_testset_save_CFLAGS"
18403
18404		eval supported=\$$cacheid
18405		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18406printf "%s\n" "$supported" >&6; }
18407		if test "$supported" = "yes" ; then
18408			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18409			found="yes"
18410		fi
18411	fi
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427xorg_testset_save_CFLAGS="$CFLAGS"
18428
18429if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18430	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18431	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18432printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18433if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18434then :
18435  printf %s "(cached) " >&6
18436else $as_nop
18437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18438/* end confdefs.h.  */
18439int i;
18440_ACEOF
18441if ac_fn_c_try_compile "$LINENO"
18442then :
18443  xorg_cv_cc_flag_unknown_warning_option=yes
18444else $as_nop
18445  xorg_cv_cc_flag_unknown_warning_option=no
18446fi
18447rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18448fi
18449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18450printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18451	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18452	CFLAGS="$xorg_testset_save_CFLAGS"
18453fi
18454
18455if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18456	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18457		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18458	fi
18459	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18460	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18461printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18462if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18463then :
18464  printf %s "(cached) " >&6
18465else $as_nop
18466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18467/* end confdefs.h.  */
18468int i;
18469_ACEOF
18470if ac_fn_c_try_compile "$LINENO"
18471then :
18472  xorg_cv_cc_flag_unused_command_line_argument=yes
18473else $as_nop
18474  xorg_cv_cc_flag_unused_command_line_argument=no
18475fi
18476rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18477fi
18478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18479printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18480	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18481	CFLAGS="$xorg_testset_save_CFLAGS"
18482fi
18483
18484found="no"
18485
18486	if test $found = "no" ; then
18487		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18488			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18489		fi
18490
18491		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18492			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18493		fi
18494
18495		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18496
18497		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18498printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18499		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18500		if eval test \${$cacheid+y}
18501then :
18502  printf %s "(cached) " >&6
18503else $as_nop
18504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18505/* end confdefs.h.  */
18506int i;
18507int
18508main (void)
18509{
18510
18511  ;
18512  return 0;
18513}
18514_ACEOF
18515if ac_fn_c_try_link "$LINENO"
18516then :
18517  eval $cacheid=yes
18518else $as_nop
18519  eval $cacheid=no
18520fi
18521rm -f core conftest.err conftest.$ac_objext conftest.beam \
18522    conftest$ac_exeext conftest.$ac_ext
18523fi
18524
18525
18526		CFLAGS="$xorg_testset_save_CFLAGS"
18527
18528		eval supported=\$$cacheid
18529		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18530printf "%s\n" "$supported" >&6; }
18531		if test "$supported" = "yes" ; then
18532			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18533			found="yes"
18534		fi
18535	fi
18536
18537
18538fi
18539
18540
18541
18542
18543
18544
18545
18546		CWARNFLAGS="$BASE_CFLAGS"
18547		if  test "x$GCC" = xyes ; then
18548		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18549		fi
18550
18551
18552
18553
18554
18555
18556
18557
18558# Check whether --enable-strict-compilation was given.
18559if test ${enable_strict_compilation+y}
18560then :
18561  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18562else $as_nop
18563  STRICT_COMPILE=no
18564fi
18565
18566
18567
18568
18569
18570
18571STRICT_CFLAGS=""
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585xorg_testset_save_CFLAGS="$CFLAGS"
18586
18587if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18588	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18589	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18590printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18591if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18592then :
18593  printf %s "(cached) " >&6
18594else $as_nop
18595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18596/* end confdefs.h.  */
18597int i;
18598_ACEOF
18599if ac_fn_c_try_compile "$LINENO"
18600then :
18601  xorg_cv_cc_flag_unknown_warning_option=yes
18602else $as_nop
18603  xorg_cv_cc_flag_unknown_warning_option=no
18604fi
18605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18606fi
18607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18608printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18609	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18610	CFLAGS="$xorg_testset_save_CFLAGS"
18611fi
18612
18613if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18614	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18615		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18616	fi
18617	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18618	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18619printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18620if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18621then :
18622  printf %s "(cached) " >&6
18623else $as_nop
18624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18625/* end confdefs.h.  */
18626int i;
18627_ACEOF
18628if ac_fn_c_try_compile "$LINENO"
18629then :
18630  xorg_cv_cc_flag_unused_command_line_argument=yes
18631else $as_nop
18632  xorg_cv_cc_flag_unused_command_line_argument=no
18633fi
18634rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18635fi
18636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18637printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18638	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18639	CFLAGS="$xorg_testset_save_CFLAGS"
18640fi
18641
18642found="no"
18643
18644	if test $found = "no" ; then
18645		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18646			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18647		fi
18648
18649		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18650			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18651		fi
18652
18653		CFLAGS="$CFLAGS -pedantic"
18654
18655		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18656printf %s "checking if $CC supports -pedantic... " >&6; }
18657		cacheid=xorg_cv_cc_flag__pedantic
18658		if eval test \${$cacheid+y}
18659then :
18660  printf %s "(cached) " >&6
18661else $as_nop
18662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18663/* end confdefs.h.  */
18664int i;
18665int
18666main (void)
18667{
18668
18669  ;
18670  return 0;
18671}
18672_ACEOF
18673if ac_fn_c_try_link "$LINENO"
18674then :
18675  eval $cacheid=yes
18676else $as_nop
18677  eval $cacheid=no
18678fi
18679rm -f core conftest.err conftest.$ac_objext conftest.beam \
18680    conftest$ac_exeext conftest.$ac_ext
18681fi
18682
18683
18684		CFLAGS="$xorg_testset_save_CFLAGS"
18685
18686		eval supported=\$$cacheid
18687		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18688printf "%s\n" "$supported" >&6; }
18689		if test "$supported" = "yes" ; then
18690			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18691			found="yes"
18692		fi
18693	fi
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709xorg_testset_save_CFLAGS="$CFLAGS"
18710
18711if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18712	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18713	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18714printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18715if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18716then :
18717  printf %s "(cached) " >&6
18718else $as_nop
18719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18720/* end confdefs.h.  */
18721int i;
18722_ACEOF
18723if ac_fn_c_try_compile "$LINENO"
18724then :
18725  xorg_cv_cc_flag_unknown_warning_option=yes
18726else $as_nop
18727  xorg_cv_cc_flag_unknown_warning_option=no
18728fi
18729rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18730fi
18731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18732printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18733	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18734	CFLAGS="$xorg_testset_save_CFLAGS"
18735fi
18736
18737if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18738	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18739		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18740	fi
18741	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18742	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18743printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18744if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18745then :
18746  printf %s "(cached) " >&6
18747else $as_nop
18748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18749/* end confdefs.h.  */
18750int i;
18751_ACEOF
18752if ac_fn_c_try_compile "$LINENO"
18753then :
18754  xorg_cv_cc_flag_unused_command_line_argument=yes
18755else $as_nop
18756  xorg_cv_cc_flag_unused_command_line_argument=no
18757fi
18758rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18759fi
18760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18761printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18762	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18763	CFLAGS="$xorg_testset_save_CFLAGS"
18764fi
18765
18766found="no"
18767
18768	if test $found = "no" ; then
18769		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18770			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18771		fi
18772
18773		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18774			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18775		fi
18776
18777		CFLAGS="$CFLAGS -Werror"
18778
18779		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18780printf %s "checking if $CC supports -Werror... " >&6; }
18781		cacheid=xorg_cv_cc_flag__Werror
18782		if eval test \${$cacheid+y}
18783then :
18784  printf %s "(cached) " >&6
18785else $as_nop
18786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18787/* end confdefs.h.  */
18788int i;
18789int
18790main (void)
18791{
18792
18793  ;
18794  return 0;
18795}
18796_ACEOF
18797if ac_fn_c_try_link "$LINENO"
18798then :
18799  eval $cacheid=yes
18800else $as_nop
18801  eval $cacheid=no
18802fi
18803rm -f core conftest.err conftest.$ac_objext conftest.beam \
18804    conftest$ac_exeext conftest.$ac_ext
18805fi
18806
18807
18808		CFLAGS="$xorg_testset_save_CFLAGS"
18809
18810		eval supported=\$$cacheid
18811		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18812printf "%s\n" "$supported" >&6; }
18813		if test "$supported" = "yes" ; then
18814			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18815			found="yes"
18816		fi
18817	fi
18818
18819	if test $found = "no" ; then
18820		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18821			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18822		fi
18823
18824		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18825			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18826		fi
18827
18828		CFLAGS="$CFLAGS -errwarn"
18829
18830		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18831printf %s "checking if $CC supports -errwarn... " >&6; }
18832		cacheid=xorg_cv_cc_flag__errwarn
18833		if eval test \${$cacheid+y}
18834then :
18835  printf %s "(cached) " >&6
18836else $as_nop
18837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18838/* end confdefs.h.  */
18839int i;
18840int
18841main (void)
18842{
18843
18844  ;
18845  return 0;
18846}
18847_ACEOF
18848if ac_fn_c_try_link "$LINENO"
18849then :
18850  eval $cacheid=yes
18851else $as_nop
18852  eval $cacheid=no
18853fi
18854rm -f core conftest.err conftest.$ac_objext conftest.beam \
18855    conftest$ac_exeext conftest.$ac_ext
18856fi
18857
18858
18859		CFLAGS="$xorg_testset_save_CFLAGS"
18860
18861		eval supported=\$$cacheid
18862		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18863printf "%s\n" "$supported" >&6; }
18864		if test "$supported" = "yes" ; then
18865			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18866			found="yes"
18867		fi
18868	fi
18869
18870
18871
18872# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18873# activate it with -Werror, so we add it here explicitly.
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887xorg_testset_save_CFLAGS="$CFLAGS"
18888
18889if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18890	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18891	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18892printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18893if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18894then :
18895  printf %s "(cached) " >&6
18896else $as_nop
18897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18898/* end confdefs.h.  */
18899int i;
18900_ACEOF
18901if ac_fn_c_try_compile "$LINENO"
18902then :
18903  xorg_cv_cc_flag_unknown_warning_option=yes
18904else $as_nop
18905  xorg_cv_cc_flag_unknown_warning_option=no
18906fi
18907rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18908fi
18909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18910printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18911	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18912	CFLAGS="$xorg_testset_save_CFLAGS"
18913fi
18914
18915if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18916	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18917		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18918	fi
18919	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18920	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18921printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18922if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18923then :
18924  printf %s "(cached) " >&6
18925else $as_nop
18926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18927/* end confdefs.h.  */
18928int i;
18929_ACEOF
18930if ac_fn_c_try_compile "$LINENO"
18931then :
18932  xorg_cv_cc_flag_unused_command_line_argument=yes
18933else $as_nop
18934  xorg_cv_cc_flag_unused_command_line_argument=no
18935fi
18936rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18937fi
18938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18939printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18940	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18941	CFLAGS="$xorg_testset_save_CFLAGS"
18942fi
18943
18944found="no"
18945
18946	if test $found = "no" ; then
18947		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18948			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18949		fi
18950
18951		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18952			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18953		fi
18954
18955		CFLAGS="$CFLAGS -Werror=attributes"
18956
18957		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18958printf %s "checking if $CC supports -Werror=attributes... " >&6; }
18959		cacheid=xorg_cv_cc_flag__Werror_attributes
18960		if eval test \${$cacheid+y}
18961then :
18962  printf %s "(cached) " >&6
18963else $as_nop
18964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18965/* end confdefs.h.  */
18966int i;
18967int
18968main (void)
18969{
18970
18971  ;
18972  return 0;
18973}
18974_ACEOF
18975if ac_fn_c_try_link "$LINENO"
18976then :
18977  eval $cacheid=yes
18978else $as_nop
18979  eval $cacheid=no
18980fi
18981rm -f core conftest.err conftest.$ac_objext conftest.beam \
18982    conftest$ac_exeext conftest.$ac_ext
18983fi
18984
18985
18986		CFLAGS="$xorg_testset_save_CFLAGS"
18987
18988		eval supported=\$$cacheid
18989		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18990printf "%s\n" "$supported" >&6; }
18991		if test "$supported" = "yes" ; then
18992			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18993			found="yes"
18994		fi
18995	fi
18996
18997
18998
18999if test "x$STRICT_COMPILE" = "xyes"; then
19000    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19001    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19002fi
19003
19004
19005
19006
19007
19008
19009cat >>confdefs.h <<_ACEOF
19010#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19011_ACEOF
19012
19013	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19014	if test "x$PVM" = "x"; then
19015		PVM="0"
19016	fi
19017
19018printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19019
19020	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19021	if test "x$PVP" = "x"; then
19022		PVP="0"
19023	fi
19024
19025printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19026
19027
19028
19029CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19030mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19031|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19032touch \$(top_srcdir)/ChangeLog; \
19033echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19034
19035
19036
19037
19038macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19039INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19040mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19041|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19042touch \$(top_srcdir)/INSTALL; \
19043echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19044
19045
19046
19047
19048
19049
19050case $host_os in
19051    solaris*)
19052        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19053        # check for a man page file found in later versions that use
19054        # traditional section numbers instead
19055        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19056printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19057if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19058then :
19059  printf %s "(cached) " >&6
19060else $as_nop
19061  test "$cross_compiling" = yes &&
19062  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19063if test -r "/usr/share/man/man7/attributes.7"; then
19064  ac_cv_file__usr_share_man_man7_attributes_7=yes
19065else
19066  ac_cv_file__usr_share_man_man7_attributes_7=no
19067fi
19068fi
19069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19070printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19071if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19072then :
19073  SYSV_MAN_SECTIONS=false
19074else $as_nop
19075  SYSV_MAN_SECTIONS=true
19076fi
19077
19078        ;;
19079    *) SYSV_MAN_SECTIONS=false ;;
19080esac
19081
19082if test x$APP_MAN_SUFFIX = x    ; then
19083    APP_MAN_SUFFIX=1
19084fi
19085if test x$APP_MAN_DIR = x    ; then
19086    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19087fi
19088
19089if test x$LIB_MAN_SUFFIX = x    ; then
19090    LIB_MAN_SUFFIX=3
19091fi
19092if test x$LIB_MAN_DIR = x    ; then
19093    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19094fi
19095
19096if test x$FILE_MAN_SUFFIX = x    ; then
19097    case $SYSV_MAN_SECTIONS in
19098	true)				FILE_MAN_SUFFIX=4  ;;
19099	*)				FILE_MAN_SUFFIX=5  ;;
19100    esac
19101fi
19102if test x$FILE_MAN_DIR = x    ; then
19103    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19104fi
19105
19106if test x$MISC_MAN_SUFFIX = x    ; then
19107    case $SYSV_MAN_SECTIONS in
19108	true)				MISC_MAN_SUFFIX=5  ;;
19109	*)				MISC_MAN_SUFFIX=7  ;;
19110    esac
19111fi
19112if test x$MISC_MAN_DIR = x    ; then
19113    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19114fi
19115
19116if test x$DRIVER_MAN_SUFFIX = x    ; then
19117    case $SYSV_MAN_SECTIONS in
19118	true)				DRIVER_MAN_SUFFIX=7  ;;
19119	*)				DRIVER_MAN_SUFFIX=4  ;;
19120    esac
19121fi
19122if test x$DRIVER_MAN_DIR = x    ; then
19123    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19124fi
19125
19126if test x$ADMIN_MAN_SUFFIX = x    ; then
19127    case $SYSV_MAN_SECTIONS in
19128	true)				ADMIN_MAN_SUFFIX=1m ;;
19129	*)				ADMIN_MAN_SUFFIX=8  ;;
19130    esac
19131fi
19132if test x$ADMIN_MAN_DIR = x    ; then
19133    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19134fi
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150XORG_MAN_PAGE="X Version 11"
19151
19152MAN_SUBSTS="\
19153	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19154	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19155	-e 's|__xservername__|Xorg|g' \
19156	-e 's|__xconfigfile__|xorg.conf|g' \
19157	-e 's|__projectroot__|\$(prefix)|g' \
19158	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
19159	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19160	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19161	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19162	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19163	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19164	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19165
19166
19167
19168# Check whether --enable-silent-rules was given.
19169if test ${enable_silent_rules+y}
19170then :
19171  enableval=$enable_silent_rules;
19172fi
19173
19174case $enable_silent_rules in # (((
19175  yes) AM_DEFAULT_VERBOSITY=0;;
19176   no) AM_DEFAULT_VERBOSITY=1;;
19177    *) AM_DEFAULT_VERBOSITY=0;;
19178esac
19179am_make=${MAKE-make}
19180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19181printf %s "checking whether $am_make supports nested variables... " >&6; }
19182if test ${am_cv_make_support_nested_variables+y}
19183then :
19184  printf %s "(cached) " >&6
19185else $as_nop
19186  if printf "%s\n" 'TRUE=$(BAR$(V))
19187BAR0=false
19188BAR1=true
19189V=1
19190am__doit:
19191	@$(TRUE)
19192.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19193  am_cv_make_support_nested_variables=yes
19194else
19195  am_cv_make_support_nested_variables=no
19196fi
19197fi
19198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19199printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19200if test $am_cv_make_support_nested_variables = yes; then
19201    AM_V='$(V)'
19202  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19203else
19204  AM_V=$AM_DEFAULT_VERBOSITY
19205  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19206fi
19207AM_BACKSLASH='\'
19208
19209
19210
19211# Obtain compiler/linker options from server and required extensions
19212
19213pkg_failed=no
19214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
19215printf %s "checking for XORG... " >&6; }
19216
19217if test -n "$XORG_CFLAGS"; then
19218    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19219 elif test -n "$PKG_CONFIG"; then
19220    if test -n "$PKG_CONFIG" && \
19221    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.10 xproto inputproto\""; } >&5
19222  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.10 xproto inputproto") 2>&5
19223  ac_status=$?
19224  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19225  test $ac_status = 0; }; then
19226  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.10 xproto inputproto" 2>/dev/null`
19227		      test "x$?" != "x0" && pkg_failed=yes
19228else
19229  pkg_failed=yes
19230fi
19231 else
19232    pkg_failed=untried
19233fi
19234if test -n "$XORG_LIBS"; then
19235    pkg_cv_XORG_LIBS="$XORG_LIBS"
19236 elif test -n "$PKG_CONFIG"; then
19237    if test -n "$PKG_CONFIG" && \
19238    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.10 xproto inputproto\""; } >&5
19239  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.10 xproto inputproto") 2>&5
19240  ac_status=$?
19241  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19242  test $ac_status = 0; }; then
19243  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.10 xproto inputproto" 2>/dev/null`
19244		      test "x$?" != "x0" && pkg_failed=yes
19245else
19246  pkg_failed=yes
19247fi
19248 else
19249    pkg_failed=untried
19250fi
19251
19252
19253
19254if test $pkg_failed = yes; then
19255   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19256printf "%s\n" "no" >&6; }
19257
19258if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19259        _pkg_short_errors_supported=yes
19260else
19261        _pkg_short_errors_supported=no
19262fi
19263        if test $_pkg_short_errors_supported = yes; then
19264	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.10 xproto inputproto" 2>&1`
19265        else
19266	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.10 xproto inputproto" 2>&1`
19267        fi
19268	# Put the nasty error message in config.log where it belongs
19269	echo "$XORG_PKG_ERRORS" >&5
19270
19271	as_fn_error $? "Package requirements (xorg-server >= 1.10 xproto inputproto) were not met:
19272
19273$XORG_PKG_ERRORS
19274
19275Consider adjusting the PKG_CONFIG_PATH environment variable if you
19276installed software in a non-standard prefix.
19277
19278Alternatively, you may set the environment variables XORG_CFLAGS
19279and XORG_LIBS to avoid the need to call pkg-config.
19280See the pkg-config man page for more details." "$LINENO" 5
19281elif test $pkg_failed = untried; then
19282     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19283printf "%s\n" "no" >&6; }
19284	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19285printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19286as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19287is in your PATH or set the PKG_CONFIG environment variable to the full
19288path to pkg-config.
19289
19290Alternatively, you may set the environment variables XORG_CFLAGS
19291and XORG_LIBS to avoid the need to call pkg-config.
19292See the pkg-config man page for more details.
19293
19294To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19295See \`config.log' for more details" "$LINENO" 5; }
19296else
19297	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19298	XORG_LIBS=$pkg_cv_XORG_LIBS
19299        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19300printf "%s\n" "yes" >&6; }
19301
19302fi
19303
19304# Define a configure option for an alternate input module directory
19305
19306# Check whether --with-xorg-module-dir was given.
19307if test ${with_xorg_module_dir+y}
19308then :
19309  withval=$with_xorg_module_dir; moduledir="$withval"
19310else $as_nop
19311  moduledir="$libdir/xorg/modules"
19312fi
19313
19314inputdir=${moduledir}/input
19315
19316
19317# The keyboard driver code is O/S specific
19318case $host_os in
19319  linux*)
19320    as_fn_error $? "This is not the keyboard driver you are looking for. Use evdev or libinput." "$LINENO" 5
19321    ;;
19322
19323  freebsd* | kfreebsd-gnu* | netbsd* | openbsd* | dragonfly*)
19324    IS_BSD="yes"
19325    ;;
19326
19327  solaris*)
19328    IS_SOLARIS="yes"
19329    ;;
19330
19331  gnu*)
19332    IS_HURD="yes"
19333    ;;
19334
19335  *)
19336    as_fn_error $? "Your operating system is not supported by the kbd driver.
19337                  Contact xorg@lists.freedesktop.org if you are interested in
19338                  porting it." "$LINENO" 5
19339    ;;
19340esac
19341case $host_os in
19342  netbsd*)
19343    case $host in
19344      *powerpc-*|*sparc-*|*sparc64-*|*vax-*)
19345        OS_FLAGS="$OS_FLAGS -DDEFAULT_TO_WSKBD"
19346        ;;
19347    esac
19348    case "$(uname -m 2>&1)" in
19349      evbarm|sgimips|shark)
19350        OS_FLAGS="$OS_FLAGS -DDEFAULT_TO_WSKBD"
19351        ;;
19352    esac
19353    ;;
19354esac
19355
19356
19357 if test "x$IS_BSD" = xyes; then
19358  BSD_TRUE=
19359  BSD_FALSE='#'
19360else
19361  BSD_TRUE='#'
19362  BSD_FALSE=
19363fi
19364
19365 if test "x$IS_SOLARIS" = xyes; then
19366  SOLARIS_TRUE=
19367  SOLARIS_FALSE='#'
19368else
19369  SOLARIS_TRUE='#'
19370  SOLARIS_FALSE=
19371fi
19372
19373 if test "x$IS_HURD" = xyes; then
19374  HURD_TRUE=
19375  HURD_FALSE='#'
19376else
19377  HURD_TRUE='#'
19378  HURD_FALSE=
19379fi
19380
19381
19382DRIVER_NAME=kbd
19383
19384
19385ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
19386
19387cat >confcache <<\_ACEOF
19388# This file is a shell script that caches the results of configure
19389# tests run on this system so they can be shared between configure
19390# scripts and configure runs, see configure's option --config-cache.
19391# It is not useful on other systems.  If it contains results you don't
19392# want to keep, you may remove or edit it.
19393#
19394# config.status only pays attention to the cache file if you give it
19395# the --recheck option to rerun configure.
19396#
19397# `ac_cv_env_foo' variables (set or unset) will be overridden when
19398# loading this file, other *unset* `ac_cv_foo' will be assigned the
19399# following values.
19400
19401_ACEOF
19402
19403# The following way of writing the cache mishandles newlines in values,
19404# but we know of no workaround that is simple, portable, and efficient.
19405# So, we kill variables containing newlines.
19406# Ultrix sh set writes to stderr and can't be redirected directly,
19407# and sets the high bit in the cache file unless we assign to the vars.
19408(
19409  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19410    eval ac_val=\$$ac_var
19411    case $ac_val in #(
19412    *${as_nl}*)
19413      case $ac_var in #(
19414      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19415printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19416      esac
19417      case $ac_var in #(
19418      _ | IFS | as_nl) ;; #(
19419      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19420      *) { eval $ac_var=; unset $ac_var;} ;;
19421      esac ;;
19422    esac
19423  done
19424
19425  (set) 2>&1 |
19426    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19427    *${as_nl}ac_space=\ *)
19428      # `set' does not quote correctly, so add quotes: double-quote
19429      # substitution turns \\\\ into \\, and sed turns \\ into \.
19430      sed -n \
19431	"s/'/'\\\\''/g;
19432	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19433      ;; #(
19434    *)
19435      # `set' quotes correctly as required by POSIX, so do not add quotes.
19436      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19437      ;;
19438    esac |
19439    sort
19440) |
19441  sed '
19442     /^ac_cv_env_/b end
19443     t clear
19444     :clear
19445     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19446     t end
19447     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19448     :end' >>confcache
19449if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19450  if test -w "$cache_file"; then
19451    if test "x$cache_file" != "x/dev/null"; then
19452      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19453printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19454      if test ! -f "$cache_file" || test -h "$cache_file"; then
19455	cat confcache >"$cache_file"
19456      else
19457        case $cache_file in #(
19458        */* | ?:*)
19459	  mv -f confcache "$cache_file"$$ &&
19460	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19461        *)
19462	  mv -f confcache "$cache_file" ;;
19463	esac
19464      fi
19465    fi
19466  else
19467    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19468printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19469  fi
19470fi
19471rm -f confcache
19472
19473test "x$prefix" = xNONE && prefix=$ac_default_prefix
19474# Let make expand exec_prefix.
19475test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19476
19477DEFS=-DHAVE_CONFIG_H
19478
19479ac_libobjs=
19480ac_ltlibobjs=
19481U=
19482for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19483  # 1. Remove the extension, and $U if already installed.
19484  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19485  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19486  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19487  #    will be set to the directory where LIBOBJS objects are built.
19488  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19489  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19490done
19491LIBOBJS=$ac_libobjs
19492
19493LTLIBOBJS=$ac_ltlibobjs
19494
19495
19496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19497printf %s "checking that generated files are newer than configure... " >&6; }
19498   if test -n "$am_sleep_pid"; then
19499     # Hide warnings about reused PIDs.
19500     wait $am_sleep_pid 2>/dev/null
19501   fi
19502   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19503printf "%s\n" "done" >&6; }
19504 if test -n "$EXEEXT"; then
19505  am__EXEEXT_TRUE=
19506  am__EXEEXT_FALSE='#'
19507else
19508  am__EXEEXT_TRUE='#'
19509  am__EXEEXT_FALSE=
19510fi
19511
19512if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19513  as_fn_error $? "conditional \"AMDEP\" was never defined.
19514Usually this means the macro was only invoked conditionally." "$LINENO" 5
19515fi
19516if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19517  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19518Usually this means the macro was only invoked conditionally." "$LINENO" 5
19519fi
19520if test -z "${BSD_TRUE}" && test -z "${BSD_FALSE}"; then
19521  as_fn_error $? "conditional \"BSD\" was never defined.
19522Usually this means the macro was only invoked conditionally." "$LINENO" 5
19523fi
19524if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
19525  as_fn_error $? "conditional \"SOLARIS\" was never defined.
19526Usually this means the macro was only invoked conditionally." "$LINENO" 5
19527fi
19528if test -z "${HURD_TRUE}" && test -z "${HURD_FALSE}"; then
19529  as_fn_error $? "conditional \"HURD\" was never defined.
19530Usually this means the macro was only invoked conditionally." "$LINENO" 5
19531fi
19532
19533: "${CONFIG_STATUS=./config.status}"
19534ac_write_fail=0
19535ac_clean_files_save=$ac_clean_files
19536ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19538printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19539as_write_fail=0
19540cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19541#! $SHELL
19542# Generated by $as_me.
19543# Run this file to recreate the current configuration.
19544# Compiler output produced by configure, useful for debugging
19545# configure, is in config.log if it exists.
19546
19547debug=false
19548ac_cs_recheck=false
19549ac_cs_silent=false
19550
19551SHELL=\${CONFIG_SHELL-$SHELL}
19552export SHELL
19553_ASEOF
19554cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19555## -------------------- ##
19556## M4sh Initialization. ##
19557## -------------------- ##
19558
19559# Be more Bourne compatible
19560DUALCASE=1; export DUALCASE # for MKS sh
19561as_nop=:
19562if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19563then :
19564  emulate sh
19565  NULLCMD=:
19566  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19567  # is contrary to our usage.  Disable this feature.
19568  alias -g '${1+"$@"}'='"$@"'
19569  setopt NO_GLOB_SUBST
19570else $as_nop
19571  case `(set -o) 2>/dev/null` in #(
19572  *posix*) :
19573    set -o posix ;; #(
19574  *) :
19575     ;;
19576esac
19577fi
19578
19579
19580
19581# Reset variables that may have inherited troublesome values from
19582# the environment.
19583
19584# IFS needs to be set, to space, tab, and newline, in precisely that order.
19585# (If _AS_PATH_WALK were called with IFS unset, it would have the
19586# side effect of setting IFS to empty, thus disabling word splitting.)
19587# Quoting is to prevent editors from complaining about space-tab.
19588as_nl='
19589'
19590export as_nl
19591IFS=" ""	$as_nl"
19592
19593PS1='$ '
19594PS2='> '
19595PS4='+ '
19596
19597# Ensure predictable behavior from utilities with locale-dependent output.
19598LC_ALL=C
19599export LC_ALL
19600LANGUAGE=C
19601export LANGUAGE
19602
19603# We cannot yet rely on "unset" to work, but we need these variables
19604# to be unset--not just set to an empty or harmless value--now, to
19605# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
19606# also avoids known problems related to "unset" and subshell syntax
19607# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19608for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19609do eval test \${$as_var+y} \
19610  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19611done
19612
19613# Ensure that fds 0, 1, and 2 are open.
19614if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19615if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19616if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
19617
19618# The user is always right.
19619if ${PATH_SEPARATOR+false} :; then
19620  PATH_SEPARATOR=:
19621  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19622    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19623      PATH_SEPARATOR=';'
19624  }
19625fi
19626
19627
19628# Find who we are.  Look in the path if we contain no directory separator.
19629as_myself=
19630case $0 in #((
19631  *[\\/]* ) as_myself=$0 ;;
19632  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19633for as_dir in $PATH
19634do
19635  IFS=$as_save_IFS
19636  case $as_dir in #(((
19637    '') as_dir=./ ;;
19638    */) ;;
19639    *) as_dir=$as_dir/ ;;
19640  esac
19641    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19642  done
19643IFS=$as_save_IFS
19644
19645     ;;
19646esac
19647# We did not find ourselves, most probably we were run as `sh COMMAND'
19648# in which case we are not to be found in the path.
19649if test "x$as_myself" = x; then
19650  as_myself=$0
19651fi
19652if test ! -f "$as_myself"; then
19653  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19654  exit 1
19655fi
19656
19657
19658
19659# as_fn_error STATUS ERROR [LINENO LOG_FD]
19660# ----------------------------------------
19661# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19662# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19663# script with STATUS, using 1 if that was 0.
19664as_fn_error ()
19665{
19666  as_status=$1; test $as_status -eq 0 && as_status=1
19667  if test "$4"; then
19668    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19669    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19670  fi
19671  printf "%s\n" "$as_me: error: $2" >&2
19672  as_fn_exit $as_status
19673} # as_fn_error
19674
19675
19676
19677# as_fn_set_status STATUS
19678# -----------------------
19679# Set $? to STATUS, without forking.
19680as_fn_set_status ()
19681{
19682  return $1
19683} # as_fn_set_status
19684
19685# as_fn_exit STATUS
19686# -----------------
19687# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19688as_fn_exit ()
19689{
19690  set +e
19691  as_fn_set_status $1
19692  exit $1
19693} # as_fn_exit
19694
19695# as_fn_unset VAR
19696# ---------------
19697# Portably unset VAR.
19698as_fn_unset ()
19699{
19700  { eval $1=; unset $1;}
19701}
19702as_unset=as_fn_unset
19703
19704# as_fn_append VAR VALUE
19705# ----------------------
19706# Append the text in VALUE to the end of the definition contained in VAR. Take
19707# advantage of any shell optimizations that allow amortized linear growth over
19708# repeated appends, instead of the typical quadratic growth present in naive
19709# implementations.
19710if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19711then :
19712  eval 'as_fn_append ()
19713  {
19714    eval $1+=\$2
19715  }'
19716else $as_nop
19717  as_fn_append ()
19718  {
19719    eval $1=\$$1\$2
19720  }
19721fi # as_fn_append
19722
19723# as_fn_arith ARG...
19724# ------------------
19725# Perform arithmetic evaluation on the ARGs, and store the result in the
19726# global $as_val. Take advantage of shells that can avoid forks. The arguments
19727# must be portable across $(()) and expr.
19728if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19729then :
19730  eval 'as_fn_arith ()
19731  {
19732    as_val=$(( $* ))
19733  }'
19734else $as_nop
19735  as_fn_arith ()
19736  {
19737    as_val=`expr "$@" || test $? -eq 1`
19738  }
19739fi # as_fn_arith
19740
19741
19742if expr a : '\(a\)' >/dev/null 2>&1 &&
19743   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19744  as_expr=expr
19745else
19746  as_expr=false
19747fi
19748
19749if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19750  as_basename=basename
19751else
19752  as_basename=false
19753fi
19754
19755if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19756  as_dirname=dirname
19757else
19758  as_dirname=false
19759fi
19760
19761as_me=`$as_basename -- "$0" ||
19762$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19763	 X"$0" : 'X\(//\)$' \| \
19764	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19765printf "%s\n" X/"$0" |
19766    sed '/^.*\/\([^/][^/]*\)\/*$/{
19767	    s//\1/
19768	    q
19769	  }
19770	  /^X\/\(\/\/\)$/{
19771	    s//\1/
19772	    q
19773	  }
19774	  /^X\/\(\/\).*/{
19775	    s//\1/
19776	    q
19777	  }
19778	  s/.*/./; q'`
19779
19780# Avoid depending upon Character Ranges.
19781as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19782as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19783as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19784as_cr_digits='0123456789'
19785as_cr_alnum=$as_cr_Letters$as_cr_digits
19786
19787
19788# Determine whether it's possible to make 'echo' print without a newline.
19789# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19790# for compatibility with existing Makefiles.
19791ECHO_C= ECHO_N= ECHO_T=
19792case `echo -n x` in #(((((
19793-n*)
19794  case `echo 'xy\c'` in
19795  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19796  xy)  ECHO_C='\c';;
19797  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19798       ECHO_T='	';;
19799  esac;;
19800*)
19801  ECHO_N='-n';;
19802esac
19803
19804# For backward compatibility with old third-party macros, we provide
19805# the shell variables $as_echo and $as_echo_n.  New code should use
19806# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19807as_echo='printf %s\n'
19808as_echo_n='printf %s'
19809
19810rm -f conf$$ conf$$.exe conf$$.file
19811if test -d conf$$.dir; then
19812  rm -f conf$$.dir/conf$$.file
19813else
19814  rm -f conf$$.dir
19815  mkdir conf$$.dir 2>/dev/null
19816fi
19817if (echo >conf$$.file) 2>/dev/null; then
19818  if ln -s conf$$.file conf$$ 2>/dev/null; then
19819    as_ln_s='ln -s'
19820    # ... but there are two gotchas:
19821    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19822    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19823    # In both cases, we have to default to `cp -pR'.
19824    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19825      as_ln_s='cp -pR'
19826  elif ln conf$$.file conf$$ 2>/dev/null; then
19827    as_ln_s=ln
19828  else
19829    as_ln_s='cp -pR'
19830  fi
19831else
19832  as_ln_s='cp -pR'
19833fi
19834rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19835rmdir conf$$.dir 2>/dev/null
19836
19837
19838# as_fn_mkdir_p
19839# -------------
19840# Create "$as_dir" as a directory, including parents if necessary.
19841as_fn_mkdir_p ()
19842{
19843
19844  case $as_dir in #(
19845  -*) as_dir=./$as_dir;;
19846  esac
19847  test -d "$as_dir" || eval $as_mkdir_p || {
19848    as_dirs=
19849    while :; do
19850      case $as_dir in #(
19851      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19852      *) as_qdir=$as_dir;;
19853      esac
19854      as_dirs="'$as_qdir' $as_dirs"
19855      as_dir=`$as_dirname -- "$as_dir" ||
19856$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19857	 X"$as_dir" : 'X\(//\)[^/]' \| \
19858	 X"$as_dir" : 'X\(//\)$' \| \
19859	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19860printf "%s\n" X"$as_dir" |
19861    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19862	    s//\1/
19863	    q
19864	  }
19865	  /^X\(\/\/\)[^/].*/{
19866	    s//\1/
19867	    q
19868	  }
19869	  /^X\(\/\/\)$/{
19870	    s//\1/
19871	    q
19872	  }
19873	  /^X\(\/\).*/{
19874	    s//\1/
19875	    q
19876	  }
19877	  s/.*/./; q'`
19878      test -d "$as_dir" && break
19879    done
19880    test -z "$as_dirs" || eval "mkdir $as_dirs"
19881  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19882
19883
19884} # as_fn_mkdir_p
19885if mkdir -p . 2>/dev/null; then
19886  as_mkdir_p='mkdir -p "$as_dir"'
19887else
19888  test -d ./-p && rmdir ./-p
19889  as_mkdir_p=false
19890fi
19891
19892
19893# as_fn_executable_p FILE
19894# -----------------------
19895# Test if FILE is an executable regular file.
19896as_fn_executable_p ()
19897{
19898  test -f "$1" && test -x "$1"
19899} # as_fn_executable_p
19900as_test_x='test -x'
19901as_executable_p=as_fn_executable_p
19902
19903# Sed expression to map a string onto a valid CPP name.
19904as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19905
19906# Sed expression to map a string onto a valid variable name.
19907as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19908
19909
19910exec 6>&1
19911## ----------------------------------- ##
19912## Main body of $CONFIG_STATUS script. ##
19913## ----------------------------------- ##
19914_ASEOF
19915test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19916
19917cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19918# Save the log message, to keep $0 and so on meaningful, and to
19919# report actual input values of CONFIG_FILES etc. instead of their
19920# values after options handling.
19921ac_log="
19922This file was extended by xf86-input-keyboard $as_me 2.0.0, which was
19923generated by GNU Autoconf 2.71.  Invocation command line was
19924
19925  CONFIG_FILES    = $CONFIG_FILES
19926  CONFIG_HEADERS  = $CONFIG_HEADERS
19927  CONFIG_LINKS    = $CONFIG_LINKS
19928  CONFIG_COMMANDS = $CONFIG_COMMANDS
19929  $ $0 $@
19930
19931on `(hostname || uname -n) 2>/dev/null | sed 1q`
19932"
19933
19934_ACEOF
19935
19936case $ac_config_files in *"
19937"*) set x $ac_config_files; shift; ac_config_files=$*;;
19938esac
19939
19940case $ac_config_headers in *"
19941"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19942esac
19943
19944
19945cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19946# Files that config.status was made for.
19947config_files="$ac_config_files"
19948config_headers="$ac_config_headers"
19949config_commands="$ac_config_commands"
19950
19951_ACEOF
19952
19953cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19954ac_cs_usage="\
19955\`$as_me' instantiates files and other configuration actions
19956from templates according to the current configuration.  Unless the files
19957and actions are specified as TAGs, all are instantiated by default.
19958
19959Usage: $0 [OPTION]... [TAG]...
19960
19961  -h, --help       print this help, then exit
19962  -V, --version    print version number and configuration settings, then exit
19963      --config     print configuration, then exit
19964  -q, --quiet, --silent
19965                   do not print progress messages
19966  -d, --debug      don't remove temporary files
19967      --recheck    update $as_me by reconfiguring in the same conditions
19968      --file=FILE[:TEMPLATE]
19969                   instantiate the configuration file FILE
19970      --header=FILE[:TEMPLATE]
19971                   instantiate the configuration header FILE
19972
19973Configuration files:
19974$config_files
19975
19976Configuration headers:
19977$config_headers
19978
19979Configuration commands:
19980$config_commands
19981
19982Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-input-keyboard/issues>."
19983
19984_ACEOF
19985ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
19986ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
19987cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19988ac_cs_config='$ac_cs_config_escaped'
19989ac_cs_version="\\
19990xf86-input-keyboard config.status 2.0.0
19991configured by $0, generated by GNU Autoconf 2.71,
19992  with options \\"\$ac_cs_config\\"
19993
19994Copyright (C) 2021 Free Software Foundation, Inc.
19995This config.status script is free software; the Free Software Foundation
19996gives unlimited permission to copy, distribute and modify it."
19997
19998ac_pwd='$ac_pwd'
19999srcdir='$srcdir'
20000INSTALL='$INSTALL'
20001MKDIR_P='$MKDIR_P'
20002AWK='$AWK'
20003test -n "\$AWK" || AWK=awk
20004_ACEOF
20005
20006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20007# The default lists apply if the user does not specify any file.
20008ac_need_defaults=:
20009while test $# != 0
20010do
20011  case $1 in
20012  --*=?*)
20013    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20014    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20015    ac_shift=:
20016    ;;
20017  --*=)
20018    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20019    ac_optarg=
20020    ac_shift=:
20021    ;;
20022  *)
20023    ac_option=$1
20024    ac_optarg=$2
20025    ac_shift=shift
20026    ;;
20027  esac
20028
20029  case $ac_option in
20030  # Handling of the options.
20031  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20032    ac_cs_recheck=: ;;
20033  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20034    printf "%s\n" "$ac_cs_version"; exit ;;
20035  --config | --confi | --conf | --con | --co | --c )
20036    printf "%s\n" "$ac_cs_config"; exit ;;
20037  --debug | --debu | --deb | --de | --d | -d )
20038    debug=: ;;
20039  --file | --fil | --fi | --f )
20040    $ac_shift
20041    case $ac_optarg in
20042    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20043    '') as_fn_error $? "missing file argument" ;;
20044    esac
20045    as_fn_append CONFIG_FILES " '$ac_optarg'"
20046    ac_need_defaults=false;;
20047  --header | --heade | --head | --hea )
20048    $ac_shift
20049    case $ac_optarg in
20050    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20051    esac
20052    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20053    ac_need_defaults=false;;
20054  --he | --h)
20055    # Conflict between --help and --header
20056    as_fn_error $? "ambiguous option: \`$1'
20057Try \`$0 --help' for more information.";;
20058  --help | --hel | -h )
20059    printf "%s\n" "$ac_cs_usage"; exit ;;
20060  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20061  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20062    ac_cs_silent=: ;;
20063
20064  # This is an error.
20065  -*) as_fn_error $? "unrecognized option: \`$1'
20066Try \`$0 --help' for more information." ;;
20067
20068  *) as_fn_append ac_config_targets " $1"
20069     ac_need_defaults=false ;;
20070
20071  esac
20072  shift
20073done
20074
20075ac_configure_extra_args=
20076
20077if $ac_cs_silent; then
20078  exec 6>/dev/null
20079  ac_configure_extra_args="$ac_configure_extra_args --silent"
20080fi
20081
20082_ACEOF
20083cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20084if \$ac_cs_recheck; then
20085  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20086  shift
20087  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20088  CONFIG_SHELL='$SHELL'
20089  export CONFIG_SHELL
20090  exec "\$@"
20091fi
20092
20093_ACEOF
20094cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20095exec 5>>config.log
20096{
20097  echo
20098  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20099## Running $as_me. ##
20100_ASBOX
20101  printf "%s\n" "$ac_log"
20102} >&5
20103
20104_ACEOF
20105cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20106#
20107# INIT-COMMANDS
20108#
20109AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20110
20111
20112# The HP-UX ksh and POSIX shell print the target directory to stdout
20113# if CDPATH is set.
20114(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20115
20116sed_quote_subst='$sed_quote_subst'
20117double_quote_subst='$double_quote_subst'
20118delay_variable_subst='$delay_variable_subst'
20119enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20120macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20121macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20122enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20123pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20124enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20125shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20126SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20127ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20128PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20129host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20130host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20131host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20132build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20133build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20134build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20135SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20136Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20137GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20138EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20139FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20140LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20141NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20142LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20143max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20144ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20145exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20146lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20147lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20148lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20149lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20150lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20151reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20152reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20153FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20154OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20155deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20156file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20157file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20158want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20159DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20160sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20161AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20162lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20163AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20164archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20165STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20166RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20167old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20168old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20169old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20170lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20171CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20172CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20173compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20174GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20175lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20176lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20177lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20178lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20179lt_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"`'
20180lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20181nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20182lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20183lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20184objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20185MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20186lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20187lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20188lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20189lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20190lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20191need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20192MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20193DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20194NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20195LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20196OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20197OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20198libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20199shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20200extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20201archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20202enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20203export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20204whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20205compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20206old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20207old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20208archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20209archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20210module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20211module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20212with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20213allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20214no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20215hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20216hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20217hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20218hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20219hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20220hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20221hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20222inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20223link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20224always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20225export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20226exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20227include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20228prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20229postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20230file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20231variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20232need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20233need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20234version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20235runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20236shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20237shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20238libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20239library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20240soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20241install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20242postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20243postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20244finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20245finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20246hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20247sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20248configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20249configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20250hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20251enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20252enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20253enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20254old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20255striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20256
20257LTCC='$LTCC'
20258LTCFLAGS='$LTCFLAGS'
20259compiler='$compiler_DEFAULT'
20260
20261# A function that is used when there is no print builtin or printf.
20262func_fallback_echo ()
20263{
20264  eval 'cat <<_LTECHO_EOF
20265\$1
20266_LTECHO_EOF'
20267}
20268
20269# Quote evaled strings.
20270for var in SHELL \
20271ECHO \
20272PATH_SEPARATOR \
20273SED \
20274GREP \
20275EGREP \
20276FGREP \
20277LD \
20278NM \
20279LN_S \
20280lt_SP2NL \
20281lt_NL2SP \
20282reload_flag \
20283FILECMD \
20284OBJDUMP \
20285deplibs_check_method \
20286file_magic_cmd \
20287file_magic_glob \
20288want_nocaseglob \
20289DLLTOOL \
20290sharedlib_from_linklib_cmd \
20291AR \
20292archiver_list_spec \
20293STRIP \
20294RANLIB \
20295CC \
20296CFLAGS \
20297compiler \
20298lt_cv_sys_global_symbol_pipe \
20299lt_cv_sys_global_symbol_to_cdecl \
20300lt_cv_sys_global_symbol_to_import \
20301lt_cv_sys_global_symbol_to_c_name_address \
20302lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20303lt_cv_nm_interface \
20304nm_file_list_spec \
20305lt_cv_truncate_bin \
20306lt_prog_compiler_no_builtin_flag \
20307lt_prog_compiler_pic \
20308lt_prog_compiler_wl \
20309lt_prog_compiler_static \
20310lt_cv_prog_compiler_c_o \
20311need_locks \
20312MANIFEST_TOOL \
20313DSYMUTIL \
20314NMEDIT \
20315LIPO \
20316OTOOL \
20317OTOOL64 \
20318shrext_cmds \
20319export_dynamic_flag_spec \
20320whole_archive_flag_spec \
20321compiler_needs_object \
20322with_gnu_ld \
20323allow_undefined_flag \
20324no_undefined_flag \
20325hardcode_libdir_flag_spec \
20326hardcode_libdir_separator \
20327exclude_expsyms \
20328include_expsyms \
20329file_list_spec \
20330variables_saved_for_relink \
20331libname_spec \
20332library_names_spec \
20333soname_spec \
20334install_override_mode \
20335finish_eval \
20336old_striplib \
20337striplib; do
20338    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20339    *[\\\\\\\`\\"\\\$]*)
20340      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20341      ;;
20342    *)
20343      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20344      ;;
20345    esac
20346done
20347
20348# Double-quote double-evaled strings.
20349for var in reload_cmds \
20350old_postinstall_cmds \
20351old_postuninstall_cmds \
20352old_archive_cmds \
20353extract_expsyms_cmds \
20354old_archive_from_new_cmds \
20355old_archive_from_expsyms_cmds \
20356archive_cmds \
20357archive_expsym_cmds \
20358module_cmds \
20359module_expsym_cmds \
20360export_symbols_cmds \
20361prelink_cmds \
20362postlink_cmds \
20363postinstall_cmds \
20364postuninstall_cmds \
20365finish_cmds \
20366sys_lib_search_path_spec \
20367configure_time_dlsearch_path \
20368configure_time_lt_sys_library_path; do
20369    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20370    *[\\\\\\\`\\"\\\$]*)
20371      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20372      ;;
20373    *)
20374      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20375      ;;
20376    esac
20377done
20378
20379ac_aux_dir='$ac_aux_dir'
20380
20381# See if we are running on zsh, and set the options that allow our
20382# commands through without removal of \ escapes INIT.
20383if test -n "\${ZSH_VERSION+set}"; then
20384   setopt NO_GLOB_SUBST
20385fi
20386
20387
20388    PACKAGE='$PACKAGE'
20389    VERSION='$VERSION'
20390    RM='$RM'
20391    ofile='$ofile'
20392
20393
20394
20395
20396_ACEOF
20397
20398cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20399
20400# Handling of arguments.
20401for ac_config_target in $ac_config_targets
20402do
20403  case $ac_config_target in
20404    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20405    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20406    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20407    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20408    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20409    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20410
20411  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20412  esac
20413done
20414
20415
20416# If the user did not use the arguments to specify the items to instantiate,
20417# then the envvar interface is used.  Set only those that are not.
20418# We use the long form for the default assignment because of an extremely
20419# bizarre bug on SunOS 4.1.3.
20420if $ac_need_defaults; then
20421  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20422  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20423  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20424fi
20425
20426# Have a temporary directory for convenience.  Make it in the build tree
20427# simply because there is no reason against having it here, and in addition,
20428# creating and moving files from /tmp can sometimes cause problems.
20429# Hook for its removal unless debugging.
20430# Note that there is a small window in which the directory will not be cleaned:
20431# after its creation but before its name has been assigned to `$tmp'.
20432$debug ||
20433{
20434  tmp= ac_tmp=
20435  trap 'exit_status=$?
20436  : "${ac_tmp:=$tmp}"
20437  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20438' 0
20439  trap 'as_fn_exit 1' 1 2 13 15
20440}
20441# Create a (secure) tmp directory for tmp files.
20442
20443{
20444  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20445  test -d "$tmp"
20446}  ||
20447{
20448  tmp=./conf$$-$RANDOM
20449  (umask 077 && mkdir "$tmp")
20450} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20451ac_tmp=$tmp
20452
20453# Set up the scripts for CONFIG_FILES section.
20454# No need to generate them if there are no CONFIG_FILES.
20455# This happens for instance with `./config.status config.h'.
20456if test -n "$CONFIG_FILES"; then
20457
20458
20459ac_cr=`echo X | tr X '\015'`
20460# On cygwin, bash can eat \r inside `` if the user requested igncr.
20461# But we know of no other shell where ac_cr would be empty at this
20462# point, so we can use a bashism as a fallback.
20463if test "x$ac_cr" = x; then
20464  eval ac_cr=\$\'\\r\'
20465fi
20466ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20467if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20468  ac_cs_awk_cr='\\r'
20469else
20470  ac_cs_awk_cr=$ac_cr
20471fi
20472
20473echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20474_ACEOF
20475
20476
20477{
20478  echo "cat >conf$$subs.awk <<_ACEOF" &&
20479  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20480  echo "_ACEOF"
20481} >conf$$subs.sh ||
20482  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20483ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20484ac_delim='%!_!# '
20485for ac_last_try in false false false false false :; do
20486  . ./conf$$subs.sh ||
20487    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20488
20489  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20490  if test $ac_delim_n = $ac_delim_num; then
20491    break
20492  elif $ac_last_try; then
20493    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20494  else
20495    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20496  fi
20497done
20498rm -f conf$$subs.sh
20499
20500cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20501cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20502_ACEOF
20503sed -n '
20504h
20505s/^/S["/; s/!.*/"]=/
20506p
20507g
20508s/^[^!]*!//
20509:repl
20510t repl
20511s/'"$ac_delim"'$//
20512t delim
20513:nl
20514h
20515s/\(.\{148\}\)..*/\1/
20516t more1
20517s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20518p
20519n
20520b repl
20521:more1
20522s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20523p
20524g
20525s/.\{148\}//
20526t nl
20527:delim
20528h
20529s/\(.\{148\}\)..*/\1/
20530t more2
20531s/["\\]/\\&/g; s/^/"/; s/$/"/
20532p
20533b
20534:more2
20535s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20536p
20537g
20538s/.\{148\}//
20539t delim
20540' <conf$$subs.awk | sed '
20541/^[^""]/{
20542  N
20543  s/\n//
20544}
20545' >>$CONFIG_STATUS || ac_write_fail=1
20546rm -f conf$$subs.awk
20547cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20548_ACAWK
20549cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20550  for (key in S) S_is_set[key] = 1
20551  FS = ""
20552
20553}
20554{
20555  line = $ 0
20556  nfields = split(line, field, "@")
20557  substed = 0
20558  len = length(field[1])
20559  for (i = 2; i < nfields; i++) {
20560    key = field[i]
20561    keylen = length(key)
20562    if (S_is_set[key]) {
20563      value = S[key]
20564      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20565      len += length(value) + length(field[++i])
20566      substed = 1
20567    } else
20568      len += 1 + keylen
20569  }
20570
20571  print line
20572}
20573
20574_ACAWK
20575_ACEOF
20576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20577if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20578  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20579else
20580  cat
20581fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20582  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20583_ACEOF
20584
20585# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20586# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20587# trailing colons and then remove the whole line if VPATH becomes empty
20588# (actually we leave an empty line to preserve line numbers).
20589if test "x$srcdir" = x.; then
20590  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20591h
20592s///
20593s/^/:/
20594s/[	 ]*$/:/
20595s/:\$(srcdir):/:/g
20596s/:\${srcdir}:/:/g
20597s/:@srcdir@:/:/g
20598s/^:*//
20599s/:*$//
20600x
20601s/\(=[	 ]*\).*/\1/
20602G
20603s/\n//
20604s/^[^=]*=[	 ]*$//
20605}'
20606fi
20607
20608cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20609fi # test -n "$CONFIG_FILES"
20610
20611# Set up the scripts for CONFIG_HEADERS section.
20612# No need to generate them if there are no CONFIG_HEADERS.
20613# This happens for instance with `./config.status Makefile'.
20614if test -n "$CONFIG_HEADERS"; then
20615cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20616BEGIN {
20617_ACEOF
20618
20619# Transform confdefs.h into an awk script `defines.awk', embedded as
20620# here-document in config.status, that substitutes the proper values into
20621# config.h.in to produce config.h.
20622
20623# Create a delimiter string that does not exist in confdefs.h, to ease
20624# handling of long lines.
20625ac_delim='%!_!# '
20626for ac_last_try in false false :; do
20627  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20628  if test -z "$ac_tt"; then
20629    break
20630  elif $ac_last_try; then
20631    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20632  else
20633    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20634  fi
20635done
20636
20637# For the awk script, D is an array of macro values keyed by name,
20638# likewise P contains macro parameters if any.  Preserve backslash
20639# newline sequences.
20640
20641ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20642sed -n '
20643s/.\{148\}/&'"$ac_delim"'/g
20644t rset
20645:rset
20646s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20647t def
20648d
20649:def
20650s/\\$//
20651t bsnl
20652s/["\\]/\\&/g
20653s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20654D["\1"]=" \3"/p
20655s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20656d
20657:bsnl
20658s/["\\]/\\&/g
20659s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20660D["\1"]=" \3\\\\\\n"\\/p
20661t cont
20662s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20663t cont
20664d
20665:cont
20666n
20667s/.\{148\}/&'"$ac_delim"'/g
20668t clear
20669:clear
20670s/\\$//
20671t bsnlc
20672s/["\\]/\\&/g; s/^/"/; s/$/"/p
20673d
20674:bsnlc
20675s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20676b cont
20677' <confdefs.h | sed '
20678s/'"$ac_delim"'/"\\\
20679"/g' >>$CONFIG_STATUS || ac_write_fail=1
20680
20681cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20682  for (key in D) D_is_set[key] = 1
20683  FS = ""
20684}
20685/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20686  line = \$ 0
20687  split(line, arg, " ")
20688  if (arg[1] == "#") {
20689    defundef = arg[2]
20690    mac1 = arg[3]
20691  } else {
20692    defundef = substr(arg[1], 2)
20693    mac1 = arg[2]
20694  }
20695  split(mac1, mac2, "(") #)
20696  macro = mac2[1]
20697  prefix = substr(line, 1, index(line, defundef) - 1)
20698  if (D_is_set[macro]) {
20699    # Preserve the white space surrounding the "#".
20700    print prefix "define", macro P[macro] D[macro]
20701    next
20702  } else {
20703    # Replace #undef with comments.  This is necessary, for example,
20704    # in the case of _POSIX_SOURCE, which is predefined and required
20705    # on some systems where configure will not decide to define it.
20706    if (defundef == "undef") {
20707      print "/*", prefix defundef, macro, "*/"
20708      next
20709    }
20710  }
20711}
20712{ print }
20713_ACAWK
20714_ACEOF
20715cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20716  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20717fi # test -n "$CONFIG_HEADERS"
20718
20719
20720eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20721shift
20722for ac_tag
20723do
20724  case $ac_tag in
20725  :[FHLC]) ac_mode=$ac_tag; continue;;
20726  esac
20727  case $ac_mode$ac_tag in
20728  :[FHL]*:*);;
20729  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20730  :[FH]-) ac_tag=-:-;;
20731  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20732  esac
20733  ac_save_IFS=$IFS
20734  IFS=:
20735  set x $ac_tag
20736  IFS=$ac_save_IFS
20737  shift
20738  ac_file=$1
20739  shift
20740
20741  case $ac_mode in
20742  :L) ac_source=$1;;
20743  :[FH])
20744    ac_file_inputs=
20745    for ac_f
20746    do
20747      case $ac_f in
20748      -) ac_f="$ac_tmp/stdin";;
20749      *) # Look for the file first in the build tree, then in the source tree
20750	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20751	 # because $ac_f cannot contain `:'.
20752	 test -f "$ac_f" ||
20753	   case $ac_f in
20754	   [\\/$]*) false;;
20755	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20756	   esac ||
20757	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20758      esac
20759      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20760      as_fn_append ac_file_inputs " '$ac_f'"
20761    done
20762
20763    # Let's still pretend it is `configure' which instantiates (i.e., don't
20764    # use $as_me), people would be surprised to read:
20765    #    /* config.h.  Generated by config.status.  */
20766    configure_input='Generated from '`
20767	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20768	`' by configure.'
20769    if test x"$ac_file" != x-; then
20770      configure_input="$ac_file.  $configure_input"
20771      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20772printf "%s\n" "$as_me: creating $ac_file" >&6;}
20773    fi
20774    # Neutralize special characters interpreted by sed in replacement strings.
20775    case $configure_input in #(
20776    *\&* | *\|* | *\\* )
20777       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20778       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20779    *) ac_sed_conf_input=$configure_input;;
20780    esac
20781
20782    case $ac_tag in
20783    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20784      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20785    esac
20786    ;;
20787  esac
20788
20789  ac_dir=`$as_dirname -- "$ac_file" ||
20790$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20791	 X"$ac_file" : 'X\(//\)[^/]' \| \
20792	 X"$ac_file" : 'X\(//\)$' \| \
20793	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20794printf "%s\n" X"$ac_file" |
20795    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20796	    s//\1/
20797	    q
20798	  }
20799	  /^X\(\/\/\)[^/].*/{
20800	    s//\1/
20801	    q
20802	  }
20803	  /^X\(\/\/\)$/{
20804	    s//\1/
20805	    q
20806	  }
20807	  /^X\(\/\).*/{
20808	    s//\1/
20809	    q
20810	  }
20811	  s/.*/./; q'`
20812  as_dir="$ac_dir"; as_fn_mkdir_p
20813  ac_builddir=.
20814
20815case "$ac_dir" in
20816.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20817*)
20818  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
20819  # A ".." for each directory in $ac_dir_suffix.
20820  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20821  case $ac_top_builddir_sub in
20822  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20823  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20824  esac ;;
20825esac
20826ac_abs_top_builddir=$ac_pwd
20827ac_abs_builddir=$ac_pwd$ac_dir_suffix
20828# for backward compatibility:
20829ac_top_builddir=$ac_top_build_prefix
20830
20831case $srcdir in
20832  .)  # We are building in place.
20833    ac_srcdir=.
20834    ac_top_srcdir=$ac_top_builddir_sub
20835    ac_abs_top_srcdir=$ac_pwd ;;
20836  [\\/]* | ?:[\\/]* )  # Absolute name.
20837    ac_srcdir=$srcdir$ac_dir_suffix;
20838    ac_top_srcdir=$srcdir
20839    ac_abs_top_srcdir=$srcdir ;;
20840  *) # Relative name.
20841    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20842    ac_top_srcdir=$ac_top_build_prefix$srcdir
20843    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20844esac
20845ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20846
20847
20848  case $ac_mode in
20849  :F)
20850  #
20851  # CONFIG_FILE
20852  #
20853
20854  case $INSTALL in
20855  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20856  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20857  esac
20858  ac_MKDIR_P=$MKDIR_P
20859  case $MKDIR_P in
20860  [\\/$]* | ?:[\\/]* ) ;;
20861  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20862  esac
20863_ACEOF
20864
20865cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20866# If the template does not know about datarootdir, expand it.
20867# FIXME: This hack should be removed a few years after 2.60.
20868ac_datarootdir_hack=; ac_datarootdir_seen=
20869ac_sed_dataroot='
20870/datarootdir/ {
20871  p
20872  q
20873}
20874/@datadir@/p
20875/@docdir@/p
20876/@infodir@/p
20877/@localedir@/p
20878/@mandir@/p'
20879case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20880*datarootdir*) ac_datarootdir_seen=yes;;
20881*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20882  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20883printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20884_ACEOF
20885cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20886  ac_datarootdir_hack='
20887  s&@datadir@&$datadir&g
20888  s&@docdir@&$docdir&g
20889  s&@infodir@&$infodir&g
20890  s&@localedir@&$localedir&g
20891  s&@mandir@&$mandir&g
20892  s&\\\${datarootdir}&$datarootdir&g' ;;
20893esac
20894_ACEOF
20895
20896# Neutralize VPATH when `$srcdir' = `.'.
20897# Shell code in configure.ac might set extrasub.
20898# FIXME: do we really want to maintain this feature?
20899cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20900ac_sed_extra="$ac_vpsub
20901$extrasub
20902_ACEOF
20903cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20904:t
20905/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20906s|@configure_input@|$ac_sed_conf_input|;t t
20907s&@top_builddir@&$ac_top_builddir_sub&;t t
20908s&@top_build_prefix@&$ac_top_build_prefix&;t t
20909s&@srcdir@&$ac_srcdir&;t t
20910s&@abs_srcdir@&$ac_abs_srcdir&;t t
20911s&@top_srcdir@&$ac_top_srcdir&;t t
20912s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20913s&@builddir@&$ac_builddir&;t t
20914s&@abs_builddir@&$ac_abs_builddir&;t t
20915s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20916s&@INSTALL@&$ac_INSTALL&;t t
20917s&@MKDIR_P@&$ac_MKDIR_P&;t t
20918$ac_datarootdir_hack
20919"
20920eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20921  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20922
20923test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20924  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20925  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20926      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20927  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20928which seems to be undefined.  Please make sure it is defined" >&5
20929printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20930which seems to be undefined.  Please make sure it is defined" >&2;}
20931
20932  rm -f "$ac_tmp/stdin"
20933  case $ac_file in
20934  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20935  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20936  esac \
20937  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20938 ;;
20939  :H)
20940  #
20941  # CONFIG_HEADER
20942  #
20943  if test x"$ac_file" != x-; then
20944    {
20945      printf "%s\n" "/* $configure_input  */" >&1 \
20946      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20947    } >"$ac_tmp/config.h" \
20948      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20949    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20950      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20951printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
20952    else
20953      rm -f "$ac_file"
20954      mv "$ac_tmp/config.h" "$ac_file" \
20955	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20956    fi
20957  else
20958    printf "%s\n" "/* $configure_input  */" >&1 \
20959      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20960      || as_fn_error $? "could not create -" "$LINENO" 5
20961  fi
20962# Compute "$ac_file"'s index in $config_headers.
20963_am_arg="$ac_file"
20964_am_stamp_count=1
20965for _am_header in $config_headers :; do
20966  case $_am_header in
20967    $_am_arg | $_am_arg:* )
20968      break ;;
20969    * )
20970      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20971  esac
20972done
20973echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20974$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20975	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20976	 X"$_am_arg" : 'X\(//\)$' \| \
20977	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20978printf "%s\n" X"$_am_arg" |
20979    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20980	    s//\1/
20981	    q
20982	  }
20983	  /^X\(\/\/\)[^/].*/{
20984	    s//\1/
20985	    q
20986	  }
20987	  /^X\(\/\/\)$/{
20988	    s//\1/
20989	    q
20990	  }
20991	  /^X\(\/\).*/{
20992	    s//\1/
20993	    q
20994	  }
20995	  s/.*/./; q'`/stamp-h$_am_stamp_count
20996 ;;
20997
20998  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20999printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21000 ;;
21001  esac
21002
21003
21004  case $ac_file$ac_mode in
21005    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21006  # Older Autoconf quotes --file arguments for eval, but not when files
21007  # are listed without --file.  Let's play safe and only enable the eval
21008  # if we detect the quoting.
21009  # TODO: see whether this extra hack can be removed once we start
21010  # requiring Autoconf 2.70 or later.
21011  case $CONFIG_FILES in #(
21012  *\'*) :
21013    eval set x "$CONFIG_FILES" ;; #(
21014  *) :
21015    set x $CONFIG_FILES ;; #(
21016  *) :
21017     ;;
21018esac
21019  shift
21020  # Used to flag and report bootstrapping failures.
21021  am_rc=0
21022  for am_mf
21023  do
21024    # Strip MF so we end up with the name of the file.
21025    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21026    # Check whether this is an Automake generated Makefile which includes
21027    # dependency-tracking related rules and includes.
21028    # Grep'ing the whole file directly is not great: AIX grep has a line
21029    # limit of 2048, but all sed's we know have understand at least 4000.
21030    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21031      || continue
21032    am_dirpart=`$as_dirname -- "$am_mf" ||
21033$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21034	 X"$am_mf" : 'X\(//\)[^/]' \| \
21035	 X"$am_mf" : 'X\(//\)$' \| \
21036	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21037printf "%s\n" X"$am_mf" |
21038    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21039	    s//\1/
21040	    q
21041	  }
21042	  /^X\(\/\/\)[^/].*/{
21043	    s//\1/
21044	    q
21045	  }
21046	  /^X\(\/\/\)$/{
21047	    s//\1/
21048	    q
21049	  }
21050	  /^X\(\/\).*/{
21051	    s//\1/
21052	    q
21053	  }
21054	  s/.*/./; q'`
21055    am_filepart=`$as_basename -- "$am_mf" ||
21056$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21057	 X"$am_mf" : 'X\(//\)$' \| \
21058	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21059printf "%s\n" X/"$am_mf" |
21060    sed '/^.*\/\([^/][^/]*\)\/*$/{
21061	    s//\1/
21062	    q
21063	  }
21064	  /^X\/\(\/\/\)$/{
21065	    s//\1/
21066	    q
21067	  }
21068	  /^X\/\(\/\).*/{
21069	    s//\1/
21070	    q
21071	  }
21072	  s/.*/./; q'`
21073    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21074      && sed -e '/# am--include-marker/d' "$am_filepart" \
21075        | $MAKE -f - am--depfiles" >&5
21076   (cd "$am_dirpart" \
21077      && sed -e '/# am--include-marker/d' "$am_filepart" \
21078        | $MAKE -f - am--depfiles) >&5 2>&5
21079   ac_status=$?
21080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081   (exit $ac_status); } || am_rc=$?
21082  done
21083  if test $am_rc -ne 0; then
21084    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21085printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21086as_fn_error $? "Something went wrong bootstrapping makefile fragments
21087    for automatic dependency tracking.  If GNU make was not used, consider
21088    re-running the configure script with MAKE=\"gmake\" (or whatever is
21089    necessary).  You can also try re-running configure with the
21090    '--disable-dependency-tracking' option to at least be able to build
21091    the package (albeit without support for automatic dependency tracking).
21092See \`config.log' for more details" "$LINENO" 5; }
21093  fi
21094  { am_dirpart=; unset am_dirpart;}
21095  { am_filepart=; unset am_filepart;}
21096  { am_mf=; unset am_mf;}
21097  { am_rc=; unset am_rc;}
21098  rm -f conftest-deps.mk
21099}
21100 ;;
21101    "libtool":C)
21102
21103    # See if we are running on zsh, and set the options that allow our
21104    # commands through without removal of \ escapes.
21105    if test -n "${ZSH_VERSION+set}"; then
21106      setopt NO_GLOB_SUBST
21107    fi
21108
21109    cfgfile=${ofile}T
21110    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21111    $RM "$cfgfile"
21112
21113    cat <<_LT_EOF >> "$cfgfile"
21114#! $SHELL
21115# Generated automatically by $as_me ($PACKAGE) $VERSION
21116# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21117# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21118
21119# Provide generalized library-building support services.
21120# Written by Gordon Matzigkeit, 1996
21121
21122# Copyright (C) 2014 Free Software Foundation, Inc.
21123# This is free software; see the source for copying conditions.  There is NO
21124# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21125
21126# GNU Libtool is free software; you can redistribute it and/or modify
21127# it under the terms of the GNU General Public License as published by
21128# the Free Software Foundation; either version 2 of of the License, or
21129# (at your option) any later version.
21130#
21131# As a special exception to the GNU General Public License, if you
21132# distribute this file as part of a program or library that is built
21133# using GNU Libtool, you may include this file under the  same
21134# distribution terms that you use for the rest of that program.
21135#
21136# GNU Libtool is distributed in the hope that it will be useful, but
21137# WITHOUT ANY WARRANTY; without even the implied warranty of
21138# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21139# GNU General Public License for more details.
21140#
21141# You should have received a copy of the GNU General Public License
21142# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21143
21144
21145# The names of the tagged configurations supported by this script.
21146available_tags=''
21147
21148# Configured defaults for sys_lib_dlsearch_path munging.
21149: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21150
21151# ### BEGIN LIBTOOL CONFIG
21152
21153# Whether or not to build static libraries.
21154build_old_libs=$enable_static
21155
21156# Which release of libtool.m4 was used?
21157macro_version=$macro_version
21158macro_revision=$macro_revision
21159
21160# Whether or not to build shared libraries.
21161build_libtool_libs=$enable_shared
21162
21163# What type of objects to build.
21164pic_mode=$pic_mode
21165
21166# Whether or not to optimize for fast installation.
21167fast_install=$enable_fast_install
21168
21169# Shared archive member basename,for filename based shared library versioning on AIX.
21170shared_archive_member_spec=$shared_archive_member_spec
21171
21172# Shell to use when invoking shell scripts.
21173SHELL=$lt_SHELL
21174
21175# An echo program that protects backslashes.
21176ECHO=$lt_ECHO
21177
21178# The PATH separator for the build system.
21179PATH_SEPARATOR=$lt_PATH_SEPARATOR
21180
21181# The host system.
21182host_alias=$host_alias
21183host=$host
21184host_os=$host_os
21185
21186# The build system.
21187build_alias=$build_alias
21188build=$build
21189build_os=$build_os
21190
21191# A sed program that does not truncate output.
21192SED=$lt_SED
21193
21194# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21195Xsed="\$SED -e 1s/^X//"
21196
21197# A grep program that handles long lines.
21198GREP=$lt_GREP
21199
21200# An ERE matcher.
21201EGREP=$lt_EGREP
21202
21203# A literal string matcher.
21204FGREP=$lt_FGREP
21205
21206# A BSD- or MS-compatible name lister.
21207NM=$lt_NM
21208
21209# Whether we need soft or hard links.
21210LN_S=$lt_LN_S
21211
21212# What is the maximum length of a command?
21213max_cmd_len=$max_cmd_len
21214
21215# Object file suffix (normally "o").
21216objext=$ac_objext
21217
21218# Executable file suffix (normally "").
21219exeext=$exeext
21220
21221# whether the shell understands "unset".
21222lt_unset=$lt_unset
21223
21224# turn spaces into newlines.
21225SP2NL=$lt_lt_SP2NL
21226
21227# turn newlines into spaces.
21228NL2SP=$lt_lt_NL2SP
21229
21230# convert \$build file names to \$host format.
21231to_host_file_cmd=$lt_cv_to_host_file_cmd
21232
21233# convert \$build files to toolchain format.
21234to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21235
21236# A file(cmd) program that detects file types.
21237FILECMD=$lt_FILECMD
21238
21239# An object symbol dumper.
21240OBJDUMP=$lt_OBJDUMP
21241
21242# Method to check whether dependent libraries are shared objects.
21243deplibs_check_method=$lt_deplibs_check_method
21244
21245# Command to use when deplibs_check_method = "file_magic".
21246file_magic_cmd=$lt_file_magic_cmd
21247
21248# How to find potential files when deplibs_check_method = "file_magic".
21249file_magic_glob=$lt_file_magic_glob
21250
21251# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21252want_nocaseglob=$lt_want_nocaseglob
21253
21254# DLL creation program.
21255DLLTOOL=$lt_DLLTOOL
21256
21257# Command to associate shared and link libraries.
21258sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21259
21260# The archiver.
21261AR=$lt_AR
21262
21263# Flags to create an archive (by configure).
21264lt_ar_flags=$lt_ar_flags
21265
21266# Flags to create an archive.
21267AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21268
21269# How to feed a file listing to the archiver.
21270archiver_list_spec=$lt_archiver_list_spec
21271
21272# A symbol stripping program.
21273STRIP=$lt_STRIP
21274
21275# Commands used to install an old-style archive.
21276RANLIB=$lt_RANLIB
21277old_postinstall_cmds=$lt_old_postinstall_cmds
21278old_postuninstall_cmds=$lt_old_postuninstall_cmds
21279
21280# Whether to use a lock for old archive extraction.
21281lock_old_archive_extraction=$lock_old_archive_extraction
21282
21283# A C compiler.
21284LTCC=$lt_CC
21285
21286# LTCC compiler flags.
21287LTCFLAGS=$lt_CFLAGS
21288
21289# Take the output of nm and produce a listing of raw symbols and C names.
21290global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21291
21292# Transform the output of nm in a proper C declaration.
21293global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21294
21295# Transform the output of nm into a list of symbols to manually relocate.
21296global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21297
21298# Transform the output of nm in a C name address pair.
21299global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21300
21301# Transform the output of nm in a C name address pair when lib prefix is needed.
21302global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21303
21304# The name lister interface.
21305nm_interface=$lt_lt_cv_nm_interface
21306
21307# Specify filename containing input files for \$NM.
21308nm_file_list_spec=$lt_nm_file_list_spec
21309
21310# The root where to search for dependent libraries,and where our libraries should be installed.
21311lt_sysroot=$lt_sysroot
21312
21313# Command to truncate a binary pipe.
21314lt_truncate_bin=$lt_lt_cv_truncate_bin
21315
21316# The name of the directory that contains temporary libtool files.
21317objdir=$objdir
21318
21319# Used to examine libraries when file_magic_cmd begins with "file".
21320MAGIC_CMD=$MAGIC_CMD
21321
21322# Must we lock files when doing compilation?
21323need_locks=$lt_need_locks
21324
21325# Manifest tool.
21326MANIFEST_TOOL=$lt_MANIFEST_TOOL
21327
21328# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21329DSYMUTIL=$lt_DSYMUTIL
21330
21331# Tool to change global to local symbols on Mac OS X.
21332NMEDIT=$lt_NMEDIT
21333
21334# Tool to manipulate fat objects and archives on Mac OS X.
21335LIPO=$lt_LIPO
21336
21337# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21338OTOOL=$lt_OTOOL
21339
21340# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21341OTOOL64=$lt_OTOOL64
21342
21343# Old archive suffix (normally "a").
21344libext=$libext
21345
21346# Shared library suffix (normally ".so").
21347shrext_cmds=$lt_shrext_cmds
21348
21349# The commands to extract the exported symbol list from a shared archive.
21350extract_expsyms_cmds=$lt_extract_expsyms_cmds
21351
21352# Variables whose values should be saved in libtool wrapper scripts and
21353# restored at link time.
21354variables_saved_for_relink=$lt_variables_saved_for_relink
21355
21356# Do we need the "lib" prefix for modules?
21357need_lib_prefix=$need_lib_prefix
21358
21359# Do we need a version for libraries?
21360need_version=$need_version
21361
21362# Library versioning type.
21363version_type=$version_type
21364
21365# Shared library runtime path variable.
21366runpath_var=$runpath_var
21367
21368# Shared library path variable.
21369shlibpath_var=$shlibpath_var
21370
21371# Is shlibpath searched before the hard-coded library search path?
21372shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21373
21374# Format of library name prefix.
21375libname_spec=$lt_libname_spec
21376
21377# List of archive names.  First name is the real one, the rest are links.
21378# The last name is the one that the linker finds with -lNAME
21379library_names_spec=$lt_library_names_spec
21380
21381# The coded name of the library, if different from the real name.
21382soname_spec=$lt_soname_spec
21383
21384# Permission mode override for installation of shared libraries.
21385install_override_mode=$lt_install_override_mode
21386
21387# Command to use after installation of a shared archive.
21388postinstall_cmds=$lt_postinstall_cmds
21389
21390# Command to use after uninstallation of a shared archive.
21391postuninstall_cmds=$lt_postuninstall_cmds
21392
21393# Commands used to finish a libtool library installation in a directory.
21394finish_cmds=$lt_finish_cmds
21395
21396# As "finish_cmds", except a single script fragment to be evaled but
21397# not shown.
21398finish_eval=$lt_finish_eval
21399
21400# Whether we should hardcode library paths into libraries.
21401hardcode_into_libs=$hardcode_into_libs
21402
21403# Compile-time system search path for libraries.
21404sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21405
21406# Detected run-time system search path for libraries.
21407sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21408
21409# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21410configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21411
21412# Whether dlopen is supported.
21413dlopen_support=$enable_dlopen
21414
21415# Whether dlopen of programs is supported.
21416dlopen_self=$enable_dlopen_self
21417
21418# Whether dlopen of statically linked programs is supported.
21419dlopen_self_static=$enable_dlopen_self_static
21420
21421# Commands to strip libraries.
21422old_striplib=$lt_old_striplib
21423striplib=$lt_striplib
21424
21425
21426# The linker used to build libraries.
21427LD=$lt_LD
21428
21429# How to create reloadable object files.
21430reload_flag=$lt_reload_flag
21431reload_cmds=$lt_reload_cmds
21432
21433# Commands used to build an old-style archive.
21434old_archive_cmds=$lt_old_archive_cmds
21435
21436# A language specific compiler.
21437CC=$lt_compiler
21438
21439# Is the compiler the GNU compiler?
21440with_gcc=$GCC
21441
21442# Compiler flag to turn off builtin functions.
21443no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21444
21445# Additional compiler flags for building library objects.
21446pic_flag=$lt_lt_prog_compiler_pic
21447
21448# How to pass a linker flag through the compiler.
21449wl=$lt_lt_prog_compiler_wl
21450
21451# Compiler flag to prevent dynamic linking.
21452link_static_flag=$lt_lt_prog_compiler_static
21453
21454# Does compiler simultaneously support -c and -o options?
21455compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21456
21457# Whether or not to add -lc for building shared libraries.
21458build_libtool_need_lc=$archive_cmds_need_lc
21459
21460# Whether or not to disallow shared libs when runtime libs are static.
21461allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21462
21463# Compiler flag to allow reflexive dlopens.
21464export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21465
21466# Compiler flag to generate shared objects directly from archives.
21467whole_archive_flag_spec=$lt_whole_archive_flag_spec
21468
21469# Whether the compiler copes with passing no objects directly.
21470compiler_needs_object=$lt_compiler_needs_object
21471
21472# Create an old-style archive from a shared archive.
21473old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21474
21475# Create a temporary old-style archive to link instead of a shared archive.
21476old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21477
21478# Commands used to build a shared archive.
21479archive_cmds=$lt_archive_cmds
21480archive_expsym_cmds=$lt_archive_expsym_cmds
21481
21482# Commands used to build a loadable module if different from building
21483# a shared archive.
21484module_cmds=$lt_module_cmds
21485module_expsym_cmds=$lt_module_expsym_cmds
21486
21487# Whether we are building with GNU ld or not.
21488with_gnu_ld=$lt_with_gnu_ld
21489
21490# Flag that allows shared libraries with undefined symbols to be built.
21491allow_undefined_flag=$lt_allow_undefined_flag
21492
21493# Flag that enforces no undefined symbols.
21494no_undefined_flag=$lt_no_undefined_flag
21495
21496# Flag to hardcode \$libdir into a binary during linking.
21497# This must work even if \$libdir does not exist
21498hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21499
21500# Whether we need a single "-rpath" flag with a separated argument.
21501hardcode_libdir_separator=$lt_hardcode_libdir_separator
21502
21503# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21504# DIR into the resulting binary.
21505hardcode_direct=$hardcode_direct
21506
21507# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21508# DIR into the resulting binary and the resulting library dependency is
21509# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21510# library is relocated.
21511hardcode_direct_absolute=$hardcode_direct_absolute
21512
21513# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21514# into the resulting binary.
21515hardcode_minus_L=$hardcode_minus_L
21516
21517# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21518# into the resulting binary.
21519hardcode_shlibpath_var=$hardcode_shlibpath_var
21520
21521# Set to "yes" if building a shared library automatically hardcodes DIR
21522# into the library and all subsequent libraries and executables linked
21523# against it.
21524hardcode_automatic=$hardcode_automatic
21525
21526# Set to yes if linker adds runtime paths of dependent libraries
21527# to runtime path list.
21528inherit_rpath=$inherit_rpath
21529
21530# Whether libtool must link a program against all its dependency libraries.
21531link_all_deplibs=$link_all_deplibs
21532
21533# Set to "yes" if exported symbols are required.
21534always_export_symbols=$always_export_symbols
21535
21536# The commands to list exported symbols.
21537export_symbols_cmds=$lt_export_symbols_cmds
21538
21539# Symbols that should not be listed in the preloaded symbols.
21540exclude_expsyms=$lt_exclude_expsyms
21541
21542# Symbols that must always be exported.
21543include_expsyms=$lt_include_expsyms
21544
21545# Commands necessary for linking programs (against libraries) with templates.
21546prelink_cmds=$lt_prelink_cmds
21547
21548# Commands necessary for finishing linking programs.
21549postlink_cmds=$lt_postlink_cmds
21550
21551# Specify filename containing input files.
21552file_list_spec=$lt_file_list_spec
21553
21554# How to hardcode a shared library path into an executable.
21555hardcode_action=$hardcode_action
21556
21557# ### END LIBTOOL CONFIG
21558
21559_LT_EOF
21560
21561    cat <<'_LT_EOF' >> "$cfgfile"
21562
21563# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21564
21565# func_munge_path_list VARIABLE PATH
21566# -----------------------------------
21567# VARIABLE is name of variable containing _space_ separated list of
21568# directories to be munged by the contents of PATH, which is string
21569# having a format:
21570# "DIR[:DIR]:"
21571#       string "DIR[ DIR]" will be prepended to VARIABLE
21572# ":DIR[:DIR]"
21573#       string "DIR[ DIR]" will be appended to VARIABLE
21574# "DIRP[:DIRP]::[DIRA:]DIRA"
21575#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21576#       "DIRA[ DIRA]" will be appended to VARIABLE
21577# "DIR[:DIR]"
21578#       VARIABLE will be replaced by "DIR[ DIR]"
21579func_munge_path_list ()
21580{
21581    case x$2 in
21582    x)
21583        ;;
21584    *:)
21585        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21586        ;;
21587    x:*)
21588        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21589        ;;
21590    *::*)
21591        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21592        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21593        ;;
21594    *)
21595        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21596        ;;
21597    esac
21598}
21599
21600
21601# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21602func_cc_basename ()
21603{
21604    for cc_temp in $*""; do
21605      case $cc_temp in
21606        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21607        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21608        \-*) ;;
21609        *) break;;
21610      esac
21611    done
21612    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21613}
21614
21615
21616# ### END FUNCTIONS SHARED WITH CONFIGURE
21617
21618_LT_EOF
21619
21620  case $host_os in
21621  aix3*)
21622    cat <<\_LT_EOF >> "$cfgfile"
21623# AIX sometimes has problems with the GCC collect2 program.  For some
21624# reason, if we set the COLLECT_NAMES environment variable, the problems
21625# vanish in a puff of smoke.
21626if test set != "${COLLECT_NAMES+set}"; then
21627  COLLECT_NAMES=
21628  export COLLECT_NAMES
21629fi
21630_LT_EOF
21631    ;;
21632  esac
21633
21634
21635
21636ltmain=$ac_aux_dir/ltmain.sh
21637
21638
21639  # We use sed instead of cat because bash on DJGPP gets confused if
21640  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21641  # text mode, it properly converts lines to CR/LF.  This bash problem
21642  # is reportedly fixed, but why not run on old versions too?
21643  $SED '$q' "$ltmain" >> "$cfgfile" \
21644     || (rm -f "$cfgfile"; exit 1)
21645
21646   mv -f "$cfgfile" "$ofile" ||
21647    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21648  chmod +x "$ofile"
21649
21650 ;;
21651
21652  esac
21653done # for ac_tag
21654
21655
21656as_fn_exit 0
21657_ACEOF
21658ac_clean_files=$ac_clean_files_save
21659
21660test $ac_write_fail = 0 ||
21661  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21662
21663
21664# configure is writing to config.log, and then calls config.status.
21665# config.status does its own redirection, appending to config.log.
21666# Unfortunately, on DOS this fails, as config.log is still kept open
21667# by configure, so config.status won't be able to write to it; its
21668# output is simply discarded.  So we exec the FD to /dev/null,
21669# effectively closing config.log, so it can be properly (re)opened and
21670# appended to by config.status.  When coming back to configure, we
21671# need to make the FD available again.
21672if test "$no_create" != yes; then
21673  ac_cs_success=:
21674  ac_config_status_args=
21675  test "$silent" = yes &&
21676    ac_config_status_args="$ac_config_status_args --quiet"
21677  exec 5>/dev/null
21678  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21679  exec 5>>config.log
21680  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21681  # would make configure fail if this is the last instruction.
21682  $ac_cs_success || as_fn_exit 1
21683fi
21684if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21685  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21686printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21687fi
21688
21689
21690