1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for xf86-input-elographics 1.4.4.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-input-elographics/-/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 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
20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else case e in #(
29  e) case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac ;;
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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144then :
145  emulate sh
146  NULLCMD=:
147  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148  # is contrary to our usage.  Disable this feature.
149  alias -g '\${1+\"\$@\"}'='\"\$@\"'
150  setopt NO_GLOB_SUBST
151else case e in #(
152  e) case \`(set -o) 2>/dev/null\` in #(
153  *posix*) :
154    set -o posix ;; #(
155  *) :
156     ;;
157esac ;;
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 case e in #(
176  e) exitcode=1; echo positional parameters were not saved. ;;
177esac
178fi
179test x\$exitcode = x0 || exit 1
180blah=\$(echo \$(echo blah))
181test x\"\$blah\" = xblah || exit 1
182test -x / || exit 1"
183  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187test \$(( 1 + 1 )) = 2 || exit 1
188
189  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
190    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
191    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
193    PATH=/empty FPATH=/empty; export PATH FPATH
194    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
195      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
196  if (eval "$as_required") 2>/dev/null
197then :
198  as_have_required=yes
199else case e in #(
200  e) as_have_required=no ;;
201esac
202fi
203  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204then :
205
206else case e in #(
207  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208as_found=false
209for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210do
211  IFS=$as_save_IFS
212  case $as_dir in #(((
213    '') as_dir=./ ;;
214    */) ;;
215    *) as_dir=$as_dir/ ;;
216  esac
217  as_found=:
218  case $as_dir in #(
219	 /*)
220	   for as_base in sh bash ksh sh5; do
221	     # Try only shells that exist, to save several forks.
222	     as_shell=$as_dir$as_base
223	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225then :
226  CONFIG_SHELL=$as_shell as_have_required=yes
227		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228then :
229  break 2
230fi
231fi
232	   done;;
233       esac
234  as_found=false
235done
236IFS=$as_save_IFS
237if $as_found
238then :
239
240else case e in #(
241  e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243then :
244  CONFIG_SHELL=$SHELL as_have_required=yes
245fi ;;
246esac
247fi
248
249
250      if test "x$CONFIG_SHELL" != x
251then :
252  export CONFIG_SHELL
253             # We cannot yet assume a decent shell, so we have to provide a
254# neutralization value for shells without unset; and this also
255# works around shells that cannot unset nonexistent variables.
256# Preserve -v and -x to the replacement shell.
257BASH_ENV=/dev/null
258ENV=/dev/null
259(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260case $- in # ((((
261  *v*x* | *x*v* ) as_opts=-vx ;;
262  *v* ) as_opts=-v ;;
263  *x* ) as_opts=-x ;;
264  * ) as_opts= ;;
265esac
266exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267# Admittedly, this is quite paranoid, since all the known shells bail
268# out after a failed 'exec'.
269printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270exit 255
271fi
272
273    if test x$as_have_required = xno
274then :
275  printf "%s\n" "$0: This script requires a shell more modern than all"
276  printf "%s\n" "$0: the shells that I found on your system."
277  if test ${ZSH_VERSION+y} ; then
278    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280  else
281    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
282$0: https://gitlab.freedesktop.org/xorg/driver/xf86-input-elographics/-/issues
283$0: about your system, including any error possibly output
284$0: before this message. Then install a modern shell, or
285$0: manually run the script under such a shell if you do
286$0: have one."
287  fi
288  exit 1
289fi ;;
290esac
291fi
292fi
293SHELL=${CONFIG_SHELL-/bin/sh}
294export SHELL
295# Unset more variables known to interfere with behavior of common tools.
296CLICOLOR_FORCE= GREP_OPTIONS=
297unset CLICOLOR_FORCE GREP_OPTIONS
298
299## --------------------- ##
300## M4sh Shell Functions. ##
301## --------------------- ##
302# as_fn_unset VAR
303# ---------------
304# Portably unset VAR.
305as_fn_unset ()
306{
307  { eval $1=; unset $1;}
308}
309as_unset=as_fn_unset
310
311
312# as_fn_set_status STATUS
313# -----------------------
314# Set $? to STATUS, without forking.
315as_fn_set_status ()
316{
317  return $1
318} # as_fn_set_status
319
320# as_fn_exit STATUS
321# -----------------
322# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
323as_fn_exit ()
324{
325  set +e
326  as_fn_set_status $1
327  exit $1
328} # as_fn_exit
329
330# as_fn_mkdir_p
331# -------------
332# Create "$as_dir" as a directory, including parents if necessary.
333as_fn_mkdir_p ()
334{
335
336  case $as_dir in #(
337  -*) as_dir=./$as_dir;;
338  esac
339  test -d "$as_dir" || eval $as_mkdir_p || {
340    as_dirs=
341    while :; do
342      case $as_dir in #(
343      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344      *) as_qdir=$as_dir;;
345      esac
346      as_dirs="'$as_qdir' $as_dirs"
347      as_dir=`$as_dirname -- "$as_dir" ||
348$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349	 X"$as_dir" : 'X\(//\)[^/]' \| \
350	 X"$as_dir" : 'X\(//\)$' \| \
351	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352printf "%s\n" X"$as_dir" |
353    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354	    s//\1/
355	    q
356	  }
357	  /^X\(\/\/\)[^/].*/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\/\)$/{
362	    s//\1/
363	    q
364	  }
365	  /^X\(\/\).*/{
366	    s//\1/
367	    q
368	  }
369	  s/.*/./; q'`
370      test -d "$as_dir" && break
371    done
372    test -z "$as_dirs" || eval "mkdir $as_dirs"
373  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376} # as_fn_mkdir_p
377
378# as_fn_executable_p FILE
379# -----------------------
380# Test if FILE is an executable regular file.
381as_fn_executable_p ()
382{
383  test -f "$1" && test -x "$1"
384} # as_fn_executable_p
385# as_fn_append VAR VALUE
386# ----------------------
387# Append the text in VALUE to the end of the definition contained in VAR. Take
388# advantage of any shell optimizations that allow amortized linear growth over
389# repeated appends, instead of the typical quadratic growth present in naive
390# implementations.
391if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392then :
393  eval 'as_fn_append ()
394  {
395    eval $1+=\$2
396  }'
397else case e in #(
398  e) as_fn_append ()
399  {
400    eval $1=\$$1\$2
401  } ;;
402esac
403fi # as_fn_append
404
405# as_fn_arith ARG...
406# ------------------
407# Perform arithmetic evaluation on the ARGs, and store the result in the
408# global $as_val. Take advantage of shells that can avoid forks. The arguments
409# must be portable across $(()) and expr.
410if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
411then :
412  eval 'as_fn_arith ()
413  {
414    as_val=$(( $* ))
415  }'
416else case e in #(
417  e) as_fn_arith ()
418  {
419    as_val=`expr "$@" || test $? -eq 1`
420  } ;;
421esac
422fi # as_fn_arith
423
424
425# as_fn_error STATUS ERROR [LINENO LOG_FD]
426# ----------------------------------------
427# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429# script with STATUS, using 1 if that was 0.
430as_fn_error ()
431{
432  as_status=$1; test $as_status -eq 0 && as_status=1
433  if test "$4"; then
434    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
435    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
436  fi
437  printf "%s\n" "$as_me: error: $2" >&2
438  as_fn_exit $as_status
439} # as_fn_error
440
441if expr a : '\(a\)' >/dev/null 2>&1 &&
442   test "X`expr 00001 : '.*\(...\)'`" = X001; then
443  as_expr=expr
444else
445  as_expr=false
446fi
447
448if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
449  as_basename=basename
450else
451  as_basename=false
452fi
453
454if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
455  as_dirname=dirname
456else
457  as_dirname=false
458fi
459
460as_me=`$as_basename -- "$0" ||
461$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462	 X"$0" : 'X\(//\)$' \| \
463	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464printf "%s\n" X/"$0" |
465    sed '/^.*\/\([^/][^/]*\)\/*$/{
466	    s//\1/
467	    q
468	  }
469	  /^X\/\(\/\/\)$/{
470	    s//\1/
471	    q
472	  }
473	  /^X\/\(\/\).*/{
474	    s//\1/
475	    q
476	  }
477	  s/.*/./; q'`
478
479# Avoid depending upon Character Ranges.
480as_cr_letters='abcdefghijklmnopqrstuvwxyz'
481as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482as_cr_Letters=$as_cr_letters$as_cr_LETTERS
483as_cr_digits='0123456789'
484as_cr_alnum=$as_cr_Letters$as_cr_digits
485
486
487  as_lineno_1=$LINENO as_lineno_1a=$LINENO
488  as_lineno_2=$LINENO as_lineno_2a=$LINENO
489  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
491  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
492  sed -n '
493    p
494    /[$]LINENO/=
495  ' <$as_myself |
496    sed '
497      t clear
498      :clear
499      s/[$]LINENO.*/&-/
500      t lineno
501      b
502      :lineno
503      N
504      :loop
505      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506      t loop
507      s/-\n.*//
508    ' >$as_me.lineno &&
509  chmod +x "$as_me.lineno" ||
510    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513  # already done that, so ensure we don't try to do so again and fall
514  # in an infinite loop.  This has already happened in practice.
515  _as_can_reexec=no; export _as_can_reexec
516  # Don't try to exec as it changes $[0], causing all sort of problems
517  # (the dirname of $[0] is not the place where we might find the
518  # original and so on.  Autoconf is especially sensitive to this).
519  . "./$as_me.lineno"
520  # Exit status is that of the last command.
521  exit
522}
523
524
525# Determine whether it's possible to make 'echo' print without a newline.
526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527# for compatibility with existing Makefiles.
528ECHO_C= ECHO_N= ECHO_T=
529case `echo -n x` in #(((((
530-n*)
531  case `echo 'xy\c'` in
532  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
533  xy)  ECHO_C='\c';;
534  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
535       ECHO_T='	';;
536  esac;;
537*)
538  ECHO_N='-n';;
539esac
540
541# For backward compatibility with old third-party macros, we provide
542# the shell variables $as_echo and $as_echo_n.  New code should use
543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544as_echo='printf %s\n'
545as_echo_n='printf %s'
546
547rm -f conf$$ conf$$.exe conf$$.file
548if test -d conf$$.dir; then
549  rm -f conf$$.dir/conf$$.file
550else
551  rm -f conf$$.dir
552  mkdir conf$$.dir 2>/dev/null
553fi
554if (echo >conf$$.file) 2>/dev/null; then
555  if ln -s conf$$.file conf$$ 2>/dev/null; then
556    as_ln_s='ln -s'
557    # ... but there are two gotchas:
558    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
559    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
560    # In both cases, we have to default to 'cp -pR'.
561    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562      as_ln_s='cp -pR'
563  elif ln conf$$.file conf$$ 2>/dev/null; then
564    as_ln_s=ln
565  else
566    as_ln_s='cp -pR'
567  fi
568else
569  as_ln_s='cp -pR'
570fi
571rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572rmdir conf$$.dir 2>/dev/null
573
574if mkdir -p . 2>/dev/null; then
575  as_mkdir_p='mkdir -p "$as_dir"'
576else
577  test -d ./-p && rmdir ./-p
578  as_mkdir_p=false
579fi
580
581as_test_x='test -x'
582as_executable_p=as_fn_executable_p
583
584# Sed expression to map a string onto a valid CPP name.
585as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
586as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
587
588# Sed expression to map a string onto a valid variable name.
589as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
590as_tr_sh="eval sed '$as_sed_sh'" # deprecated
591
592SHELL=${CONFIG_SHELL-/bin/sh}
593
594
595test -n "$DJDIR" || exec 7<&0 </dev/null
596exec 6>&1
597
598# Name of the host.
599# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
600# so uname gets run too.
601ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
602
603#
604# Initializations.
605#
606ac_default_prefix=/usr/local
607ac_clean_files=
608ac_config_libobj_dir=.
609LIBOBJS=
610cross_compiling=no
611subdirs=
612MFLAGS=
613MAKEFLAGS=
614
615# Identity of this package.
616PACKAGE_NAME='xf86-input-elographics'
617PACKAGE_TARNAME='xf86-input-elographics'
618PACKAGE_VERSION='1.4.4'
619PACKAGE_STRING='xf86-input-elographics 1.4.4'
620PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-input-elographics/-/issues'
621PACKAGE_URL=''
622
623ac_unique_file="Makefile.am"
624# Factoring default headers for most tests.
625ac_includes_default="\
626#include <stddef.h>
627#ifdef HAVE_STDIO_H
628# include <stdio.h>
629#endif
630#ifdef HAVE_STDLIB_H
631# include <stdlib.h>
632#endif
633#ifdef HAVE_STRING_H
634# include <string.h>
635#endif
636#ifdef HAVE_INTTYPES_H
637# include <inttypes.h>
638#endif
639#ifdef HAVE_STDINT_H
640# include <stdint.h>
641#endif
642#ifdef HAVE_STRINGS_H
643# include <strings.h>
644#endif
645#ifdef HAVE_SYS_TYPES_H
646# include <sys/types.h>
647#endif
648#ifdef HAVE_SYS_STAT_H
649# include <sys/stat.h>
650#endif
651#ifdef HAVE_UNISTD_H
652# include <unistd.h>
653#endif"
654
655ac_header_c_list=
656ac_subst_vars='am__EXEEXT_FALSE
657am__EXEEXT_TRUE
658LTLIBOBJS
659LIBOBJS
660DRIVER_NAME
661XORG_LIBS
662XORG_CFLAGS
663inputdir
664LT_SYS_LIBRARY_PATH
665OTOOL64
666OTOOL
667LIPO
668NMEDIT
669DSYMUTIL
670MANIFEST_TOOL
671RANLIB
672ac_ct_AR
673AR
674DLLTOOL
675OBJDUMP
676FILECMD
677LN_S
678NM
679ac_ct_DUMPBIN
680DUMPBIN
681LD
682FGREP
683EGREP
684GREP
685LIBTOOL
686MAN_SUBSTS
687XORG_MAN_PAGE
688ADMIN_MAN_DIR
689DRIVER_MAN_DIR
690MISC_MAN_DIR
691FILE_MAN_DIR
692LIB_MAN_DIR
693APP_MAN_DIR
694ADMIN_MAN_SUFFIX
695DRIVER_MAN_SUFFIX
696MISC_MAN_SUFFIX
697FILE_MAN_SUFFIX
698LIB_MAN_SUFFIX
699APP_MAN_SUFFIX
700SED
701host_os
702host_vendor
703host_cpu
704host
705build_os
706build_vendor
707build_cpu
708build
709INSTALL_CMD
710PKG_CONFIG_LIBDIR
711PKG_CONFIG_PATH
712PKG_CONFIG
713CHANGELOG_CMD
714STRICT_CFLAGS
715CWARNFLAGS
716BASE_CFLAGS
717am__fastdepCC_FALSE
718am__fastdepCC_TRUE
719CCDEPMODE
720am__nodep
721AMDEPBACKSLASH
722AMDEP_FALSE
723AMDEP_TRUE
724am__include
725DEPDIR
726OBJEXT
727EXEEXT
728ac_ct_CC
729CPPFLAGS
730LDFLAGS
731CFLAGS
732CC
733AM_BACKSLASH
734AM_DEFAULT_VERBOSITY
735AM_DEFAULT_V
736AM_V
737CSCOPE
738ETAGS
739CTAGS
740am__untar
741am__tar
742AMTAR
743am__leading_dot
744SET_MAKE
745AWK
746mkdir_p
747MKDIR_P
748INSTALL_STRIP_PROGRAM
749STRIP
750install_sh
751MAKEINFO
752AUTOHEADER
753AUTOMAKE
754AUTOCONF
755ACLOCAL
756VERSION
757PACKAGE
758CYGPATH_W
759am__isrc
760INSTALL_DATA
761INSTALL_SCRIPT
762INSTALL_PROGRAM
763target_alias
764host_alias
765build_alias
766LIBS
767ECHO_T
768ECHO_N
769ECHO_C
770DEFS
771mandir
772localedir
773libdir
774psdir
775pdfdir
776dvidir
777htmldir
778infodir
779docdir
780oldincludedir
781includedir
782runstatedir
783localstatedir
784sharedstatedir
785sysconfdir
786datadir
787datarootdir
788libexecdir
789sbindir
790bindir
791program_transform_name
792prefix
793exec_prefix
794PACKAGE_URL
795PACKAGE_BUGREPORT
796PACKAGE_STRING
797PACKAGE_VERSION
798PACKAGE_TARNAME
799PACKAGE_NAME
800PATH_SEPARATOR
801SHELL
802am__quote'
803ac_subst_files=''
804ac_user_opts='
805enable_option_checking
806enable_silent_rules
807enable_dependency_tracking
808enable_selective_werror
809enable_strict_compilation
810enable_static
811enable_shared
812with_pic
813enable_fast_install
814with_aix_soname
815with_gnu_ld
816with_sysroot
817enable_libtool_lock
818with_xorg_module_dir
819'
820      ac_precious_vars='build_alias
821host_alias
822target_alias
823CC
824CFLAGS
825LDFLAGS
826LIBS
827CPPFLAGS
828PKG_CONFIG
829PKG_CONFIG_PATH
830PKG_CONFIG_LIBDIR
831LT_SYS_LIBRARY_PATH
832XORG_CFLAGS
833XORG_LIBS'
834
835
836# Initialize some variables set by options.
837ac_init_help=
838ac_init_version=false
839ac_unrecognized_opts=
840ac_unrecognized_sep=
841# The variables have the same names as the options, with
842# dashes changed to underlines.
843cache_file=/dev/null
844exec_prefix=NONE
845no_create=
846no_recursion=
847prefix=NONE
848program_prefix=NONE
849program_suffix=NONE
850program_transform_name=s,x,x,
851silent=
852site=
853srcdir=
854verbose=
855x_includes=NONE
856x_libraries=NONE
857
858# Installation directory options.
859# These are left unexpanded so users can "make install exec_prefix=/foo"
860# and all the variables that are supposed to be based on exec_prefix
861# by default will actually change.
862# Use braces instead of parens because sh, perl, etc. also accept them.
863# (The list follows the same order as the GNU Coding Standards.)
864bindir='${exec_prefix}/bin'
865sbindir='${exec_prefix}/sbin'
866libexecdir='${exec_prefix}/libexec'
867datarootdir='${prefix}/share'
868datadir='${datarootdir}'
869sysconfdir='${prefix}/etc'
870sharedstatedir='${prefix}/com'
871localstatedir='${prefix}/var'
872runstatedir='${localstatedir}/run'
873includedir='${prefix}/include'
874oldincludedir='/usr/include'
875docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
876infodir='${datarootdir}/info'
877htmldir='${docdir}'
878dvidir='${docdir}'
879pdfdir='${docdir}'
880psdir='${docdir}'
881libdir='${exec_prefix}/lib'
882localedir='${datarootdir}/locale'
883mandir='${datarootdir}/man'
884
885ac_prev=
886ac_dashdash=
887for ac_option
888do
889  # If the previous option needs an argument, assign it.
890  if test -n "$ac_prev"; then
891    eval $ac_prev=\$ac_option
892    ac_prev=
893    continue
894  fi
895
896  case $ac_option in
897  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898  *=)   ac_optarg= ;;
899  *)    ac_optarg=yes ;;
900  esac
901
902  case $ac_dashdash$ac_option in
903  --)
904    ac_dashdash=yes ;;
905
906  -bindir | --bindir | --bindi | --bind | --bin | --bi)
907    ac_prev=bindir ;;
908  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
909    bindir=$ac_optarg ;;
910
911  -build | --build | --buil | --bui | --bu)
912    ac_prev=build_alias ;;
913  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
914    build_alias=$ac_optarg ;;
915
916  -cache-file | --cache-file | --cache-fil | --cache-fi \
917  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
918    ac_prev=cache_file ;;
919  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
920  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
921    cache_file=$ac_optarg ;;
922
923  --config-cache | -C)
924    cache_file=config.cache ;;
925
926  -datadir | --datadir | --datadi | --datad)
927    ac_prev=datadir ;;
928  -datadir=* | --datadir=* | --datadi=* | --datad=*)
929    datadir=$ac_optarg ;;
930
931  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
932  | --dataroo | --dataro | --datar)
933    ac_prev=datarootdir ;;
934  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
935  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
936    datarootdir=$ac_optarg ;;
937
938  -disable-* | --disable-*)
939    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940    # Reject names that are not valid shell variable names.
941    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942      as_fn_error $? "invalid feature name: '$ac_useropt'"
943    ac_useropt_orig=$ac_useropt
944    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
945    case $ac_user_opts in
946      *"
947"enable_$ac_useropt"
948"*) ;;
949      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
950	 ac_unrecognized_sep=', ';;
951    esac
952    eval enable_$ac_useropt=no ;;
953
954  -docdir | --docdir | --docdi | --doc | --do)
955    ac_prev=docdir ;;
956  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
957    docdir=$ac_optarg ;;
958
959  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
960    ac_prev=dvidir ;;
961  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
962    dvidir=$ac_optarg ;;
963
964  -enable-* | --enable-*)
965    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
966    # Reject names that are not valid shell variable names.
967    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968      as_fn_error $? "invalid feature name: '$ac_useropt'"
969    ac_useropt_orig=$ac_useropt
970    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
971    case $ac_user_opts in
972      *"
973"enable_$ac_useropt"
974"*) ;;
975      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
976	 ac_unrecognized_sep=', ';;
977    esac
978    eval enable_$ac_useropt=\$ac_optarg ;;
979
980  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
981  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
982  | --exec | --exe | --ex)
983    ac_prev=exec_prefix ;;
984  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
985  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
986  | --exec=* | --exe=* | --ex=*)
987    exec_prefix=$ac_optarg ;;
988
989  -gas | --gas | --ga | --g)
990    # Obsolete; use --with-gas.
991    with_gas=yes ;;
992
993  -help | --help | --hel | --he | -h)
994    ac_init_help=long ;;
995  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
996    ac_init_help=recursive ;;
997  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
998    ac_init_help=short ;;
999
1000  -host | --host | --hos | --ho)
1001    ac_prev=host_alias ;;
1002  -host=* | --host=* | --hos=* | --ho=*)
1003    host_alias=$ac_optarg ;;
1004
1005  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1006    ac_prev=htmldir ;;
1007  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1008  | --ht=*)
1009    htmldir=$ac_optarg ;;
1010
1011  -includedir | --includedir | --includedi | --included | --include \
1012  | --includ | --inclu | --incl | --inc)
1013    ac_prev=includedir ;;
1014  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1015  | --includ=* | --inclu=* | --incl=* | --inc=*)
1016    includedir=$ac_optarg ;;
1017
1018  -infodir | --infodir | --infodi | --infod | --info | --inf)
1019    ac_prev=infodir ;;
1020  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1021    infodir=$ac_optarg ;;
1022
1023  -libdir | --libdir | --libdi | --libd)
1024    ac_prev=libdir ;;
1025  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1026    libdir=$ac_optarg ;;
1027
1028  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1029  | --libexe | --libex | --libe)
1030    ac_prev=libexecdir ;;
1031  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1032  | --libexe=* | --libex=* | --libe=*)
1033    libexecdir=$ac_optarg ;;
1034
1035  -localedir | --localedir | --localedi | --localed | --locale)
1036    ac_prev=localedir ;;
1037  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1038    localedir=$ac_optarg ;;
1039
1040  -localstatedir | --localstatedir | --localstatedi | --localstated \
1041  | --localstate | --localstat | --localsta | --localst | --locals)
1042    ac_prev=localstatedir ;;
1043  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1044  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1045    localstatedir=$ac_optarg ;;
1046
1047  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1048    ac_prev=mandir ;;
1049  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1050    mandir=$ac_optarg ;;
1051
1052  -nfp | --nfp | --nf)
1053    # Obsolete; use --without-fp.
1054    with_fp=no ;;
1055
1056  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1057  | --no-cr | --no-c | -n)
1058    no_create=yes ;;
1059
1060  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1061  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1062    no_recursion=yes ;;
1063
1064  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1065  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1066  | --oldin | --oldi | --old | --ol | --o)
1067    ac_prev=oldincludedir ;;
1068  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1069  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1070  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1071    oldincludedir=$ac_optarg ;;
1072
1073  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1074    ac_prev=prefix ;;
1075  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1076    prefix=$ac_optarg ;;
1077
1078  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1079  | --program-pre | --program-pr | --program-p)
1080    ac_prev=program_prefix ;;
1081  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1082  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1083    program_prefix=$ac_optarg ;;
1084
1085  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1086  | --program-suf | --program-su | --program-s)
1087    ac_prev=program_suffix ;;
1088  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1089  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1090    program_suffix=$ac_optarg ;;
1091
1092  -program-transform-name | --program-transform-name \
1093  | --program-transform-nam | --program-transform-na \
1094  | --program-transform-n | --program-transform- \
1095  | --program-transform | --program-transfor \
1096  | --program-transfo | --program-transf \
1097  | --program-trans | --program-tran \
1098  | --progr-tra | --program-tr | --program-t)
1099    ac_prev=program_transform_name ;;
1100  -program-transform-name=* | --program-transform-name=* \
1101  | --program-transform-nam=* | --program-transform-na=* \
1102  | --program-transform-n=* | --program-transform-=* \
1103  | --program-transform=* | --program-transfor=* \
1104  | --program-transfo=* | --program-transf=* \
1105  | --program-trans=* | --program-tran=* \
1106  | --progr-tra=* | --program-tr=* | --program-t=*)
1107    program_transform_name=$ac_optarg ;;
1108
1109  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1110    ac_prev=pdfdir ;;
1111  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1112    pdfdir=$ac_optarg ;;
1113
1114  -psdir | --psdir | --psdi | --psd | --ps)
1115    ac_prev=psdir ;;
1116  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1117    psdir=$ac_optarg ;;
1118
1119  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120  | -silent | --silent | --silen | --sile | --sil)
1121    silent=yes ;;
1122
1123  -runstatedir | --runstatedir | --runstatedi | --runstated \
1124  | --runstate | --runstat | --runsta | --runst | --runs \
1125  | --run | --ru | --r)
1126    ac_prev=runstatedir ;;
1127  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1128  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1129  | --run=* | --ru=* | --r=*)
1130    runstatedir=$ac_optarg ;;
1131
1132  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1133    ac_prev=sbindir ;;
1134  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1135  | --sbi=* | --sb=*)
1136    sbindir=$ac_optarg ;;
1137
1138  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1139  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1140  | --sharedst | --shareds | --shared | --share | --shar \
1141  | --sha | --sh)
1142    ac_prev=sharedstatedir ;;
1143  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1144  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1145  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1146  | --sha=* | --sh=*)
1147    sharedstatedir=$ac_optarg ;;
1148
1149  -site | --site | --sit)
1150    ac_prev=site ;;
1151  -site=* | --site=* | --sit=*)
1152    site=$ac_optarg ;;
1153
1154  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1155    ac_prev=srcdir ;;
1156  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1157    srcdir=$ac_optarg ;;
1158
1159  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1160  | --syscon | --sysco | --sysc | --sys | --sy)
1161    ac_prev=sysconfdir ;;
1162  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1163  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1164    sysconfdir=$ac_optarg ;;
1165
1166  -target | --target | --targe | --targ | --tar | --ta | --t)
1167    ac_prev=target_alias ;;
1168  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1169    target_alias=$ac_optarg ;;
1170
1171  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1172    verbose=yes ;;
1173
1174  -version | --version | --versio | --versi | --vers | -V)
1175    ac_init_version=: ;;
1176
1177  -with-* | --with-*)
1178    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1179    # Reject names that are not valid shell variable names.
1180    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181      as_fn_error $? "invalid package name: '$ac_useropt'"
1182    ac_useropt_orig=$ac_useropt
1183    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1184    case $ac_user_opts in
1185      *"
1186"with_$ac_useropt"
1187"*) ;;
1188      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189	 ac_unrecognized_sep=', ';;
1190    esac
1191    eval with_$ac_useropt=\$ac_optarg ;;
1192
1193  -without-* | --without-*)
1194    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195    # Reject names that are not valid shell variable names.
1196    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197      as_fn_error $? "invalid package name: '$ac_useropt'"
1198    ac_useropt_orig=$ac_useropt
1199    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1200    case $ac_user_opts in
1201      *"
1202"with_$ac_useropt"
1203"*) ;;
1204      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205	 ac_unrecognized_sep=', ';;
1206    esac
1207    eval with_$ac_useropt=no ;;
1208
1209  --x)
1210    # Obsolete; use --with-x.
1211    with_x=yes ;;
1212
1213  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1214  | --x-incl | --x-inc | --x-in | --x-i)
1215    ac_prev=x_includes ;;
1216  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1217  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1218    x_includes=$ac_optarg ;;
1219
1220  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1221  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1222    ac_prev=x_libraries ;;
1223  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1224  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1225    x_libraries=$ac_optarg ;;
1226
1227  -*) as_fn_error $? "unrecognized option: '$ac_option'
1228Try '$0 --help' for more information"
1229    ;;
1230
1231  *=*)
1232    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1233    # Reject names that are not valid shell variable names.
1234    case $ac_envvar in #(
1235      '' | [0-9]* | *[!_$as_cr_alnum]* )
1236      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1237    esac
1238    eval $ac_envvar=\$ac_optarg
1239    export $ac_envvar ;;
1240
1241  *)
1242    # FIXME: should be removed in autoconf 3.0.
1243    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1244    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1246    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1247    ;;
1248
1249  esac
1250done
1251
1252if test -n "$ac_prev"; then
1253  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1254  as_fn_error $? "missing argument to $ac_option"
1255fi
1256
1257if test -n "$ac_unrecognized_opts"; then
1258  case $enable_option_checking in
1259    no) ;;
1260    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1261    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1262  esac
1263fi
1264
1265# Check all directory arguments for consistency.
1266for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267		datadir sysconfdir sharedstatedir localstatedir includedir \
1268		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269		libdir localedir mandir runstatedir
1270do
1271  eval ac_val=\$$ac_var
1272  # Remove trailing slashes.
1273  case $ac_val in
1274    */ )
1275      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276      eval $ac_var=\$ac_val;;
1277  esac
1278  # Be sure to have absolute directory names.
1279  case $ac_val in
1280    [\\/$]* | ?:[\\/]* )  continue;;
1281    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1282  esac
1283  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1284done
1285
1286# There might be people who depend on the old broken behavior: '$host'
1287# used to hold the argument of --host etc.
1288# FIXME: To remove some day.
1289build=$build_alias
1290host=$host_alias
1291target=$target_alias
1292
1293# FIXME: To remove some day.
1294if test "x$host_alias" != x; then
1295  if test "x$build_alias" = x; then
1296    cross_compiling=maybe
1297  elif test "x$build_alias" != "x$host_alias"; then
1298    cross_compiling=yes
1299  fi
1300fi
1301
1302ac_tool_prefix=
1303test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304
1305test "$silent" = yes && exec 6>/dev/null
1306
1307
1308ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309ac_ls_di=`ls -di .` &&
1310ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311  as_fn_error $? "working directory cannot be determined"
1312test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313  as_fn_error $? "pwd does not report name of working directory"
1314
1315
1316# Find the source files, if location was not specified.
1317if test -z "$srcdir"; then
1318  ac_srcdir_defaulted=yes
1319  # Try the directory containing this script, then the parent directory.
1320  ac_confdir=`$as_dirname -- "$as_myself" ||
1321$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322	 X"$as_myself" : 'X\(//\)[^/]' \| \
1323	 X"$as_myself" : 'X\(//\)$' \| \
1324	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325printf "%s\n" X"$as_myself" |
1326    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327	    s//\1/
1328	    q
1329	  }
1330	  /^X\(\/\/\)[^/].*/{
1331	    s//\1/
1332	    q
1333	  }
1334	  /^X\(\/\/\)$/{
1335	    s//\1/
1336	    q
1337	  }
1338	  /^X\(\/\).*/{
1339	    s//\1/
1340	    q
1341	  }
1342	  s/.*/./; q'`
1343  srcdir=$ac_confdir
1344  if test ! -r "$srcdir/$ac_unique_file"; then
1345    srcdir=..
1346  fi
1347else
1348  ac_srcdir_defaulted=no
1349fi
1350if test ! -r "$srcdir/$ac_unique_file"; then
1351  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1353fi
1354ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1355ac_abs_confdir=`(
1356	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1357	pwd)`
1358# When building in place, set srcdir=.
1359if test "$ac_abs_confdir" = "$ac_pwd"; then
1360  srcdir=.
1361fi
1362# Remove unnecessary trailing slashes from srcdir.
1363# Double slashes in file names in object file debugging info
1364# mess up M-x gdb in Emacs.
1365case $srcdir in
1366*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367esac
1368for ac_var in $ac_precious_vars; do
1369  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1370  eval ac_env_${ac_var}_value=\$${ac_var}
1371  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1372  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373done
1374
1375#
1376# Report the --help message.
1377#
1378if test "$ac_init_help" = "long"; then
1379  # Omit some internal or obsolete options to make the list less imposing.
1380  # This message is too long to be a string in the A/UX 3.1 sh.
1381  cat <<_ACEOF
1382'configure' configures xf86-input-elographics 1.4.4 to adapt to many kinds of systems.
1383
1384Usage: $0 [OPTION]... [VAR=VALUE]...
1385
1386To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387VAR=VALUE.  See below for descriptions of some of the useful variables.
1388
1389Defaults for the options are specified in brackets.
1390
1391Configuration:
1392  -h, --help              display this help and exit
1393      --help=short        display options specific to this package
1394      --help=recursive    display the short help of all the included packages
1395  -V, --version           display version information and exit
1396  -q, --quiet, --silent   do not print 'checking ...' messages
1397      --cache-file=FILE   cache test results in FILE [disabled]
1398  -C, --config-cache      alias for '--cache-file=config.cache'
1399  -n, --no-create         do not create output files
1400      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1401
1402Installation directories:
1403  --prefix=PREFIX         install architecture-independent files in PREFIX
1404                          [$ac_default_prefix]
1405  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1406                          [PREFIX]
1407
1408By default, 'make install' will install all the files in
1409'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1410an installation prefix other than '$ac_default_prefix' using '--prefix',
1411for instance '--prefix=\$HOME'.
1412
1413For better control, use the options below.
1414
1415Fine tuning of the installation directories:
1416  --bindir=DIR            user executables [EPREFIX/bin]
1417  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1418  --libexecdir=DIR        program executables [EPREFIX/libexec]
1419  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1420  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1421  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1422  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1423  --libdir=DIR            object code libraries [EPREFIX/lib]
1424  --includedir=DIR        C header files [PREFIX/include]
1425  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1426  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1427  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1428  --infodir=DIR           info documentation [DATAROOTDIR/info]
1429  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1430  --mandir=DIR            man documentation [DATAROOTDIR/man]
1431  --docdir=DIR            documentation root
1432                          [DATAROOTDIR/doc/xf86-input-elographics]
1433  --htmldir=DIR           html documentation [DOCDIR]
1434  --dvidir=DIR            dvi documentation [DOCDIR]
1435  --pdfdir=DIR            pdf documentation [DOCDIR]
1436  --psdir=DIR             ps documentation [DOCDIR]
1437_ACEOF
1438
1439  cat <<\_ACEOF
1440
1441Program names:
1442  --program-prefix=PREFIX            prepend PREFIX to installed program names
1443  --program-suffix=SUFFIX            append SUFFIX to installed program names
1444  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1445
1446System types:
1447  --build=BUILD     configure for building on BUILD [guessed]
1448  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1449_ACEOF
1450fi
1451
1452if test -n "$ac_init_help"; then
1453  case $ac_init_help in
1454     short | recursive ) echo "Configuration of xf86-input-elographics 1.4.4:";;
1455   esac
1456  cat <<\_ACEOF
1457
1458Optional Features:
1459  --disable-option-checking  ignore unrecognized --enable/--with options
1460  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1461  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1462  --enable-silent-rules   less verbose build output (undo: "make V=1")
1463  --disable-silent-rules  verbose build output (undo: "make V=0")
1464  --enable-dependency-tracking
1465                          do not reject slow dependency extractors
1466  --disable-dependency-tracking
1467                          speeds up one-time build
1468  --disable-selective-werror
1469                          Turn off selective compiler errors. (default:
1470                          enabled)
1471  --enable-strict-compilation
1472                          Enable all warnings from compiler and make them
1473                          errors (default: disabled)
1474  --enable-static[=PKGS]  build static libraries [default=no]
1475  --enable-shared[=PKGS]  build shared libraries [default=yes]
1476  --enable-fast-install[=PKGS]
1477                          optimize for fast installation [default=yes]
1478  --disable-libtool-lock  avoid locking (might break parallel builds)
1479
1480Optional Packages:
1481  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1482  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1483  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1484                          both]
1485  --with-aix-soname=aix|svr4|both
1486                          shared library versioning (aka "SONAME") variant to
1487                          provide on AIX, [default=aix].
1488  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1489  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1490                          compiler's sysroot if not specified).
1491  --with-xorg-module-dir=DIR
1492                          Default xorg module directory
1493                          [[default=$libdir/xorg/modules]]
1494
1495Some influential environment variables:
1496  CC          C compiler command
1497  CFLAGS      C compiler flags
1498  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1499              nonstandard directory <lib dir>
1500  LIBS        libraries to pass to the linker, e.g. -l<library>
1501  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1502              you have headers in a nonstandard directory <include dir>
1503  PKG_CONFIG  path to pkg-config utility
1504  PKG_CONFIG_PATH
1505              directories to add to pkg-config's search path
1506  PKG_CONFIG_LIBDIR
1507              path overriding pkg-config's built-in search path
1508  LT_SYS_LIBRARY_PATH
1509              User-defined run-time library search path.
1510  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1511  XORG_LIBS   linker flags for XORG, overriding pkg-config
1512
1513Use these variables to override the choices made by 'configure' or to help
1514it to find libraries and programs with nonstandard names/locations.
1515
1516Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-input-elographics/-/issues>.
1517_ACEOF
1518ac_status=$?
1519fi
1520
1521if test "$ac_init_help" = "recursive"; then
1522  # If there are subdirs, report their specific --help.
1523  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1524    test -d "$ac_dir" ||
1525      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1526      continue
1527    ac_builddir=.
1528
1529case "$ac_dir" in
1530.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531*)
1532  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1533  # A ".." for each directory in $ac_dir_suffix.
1534  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1535  case $ac_top_builddir_sub in
1536  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1538  esac ;;
1539esac
1540ac_abs_top_builddir=$ac_pwd
1541ac_abs_builddir=$ac_pwd$ac_dir_suffix
1542# for backward compatibility:
1543ac_top_builddir=$ac_top_build_prefix
1544
1545case $srcdir in
1546  .)  # We are building in place.
1547    ac_srcdir=.
1548    ac_top_srcdir=$ac_top_builddir_sub
1549    ac_abs_top_srcdir=$ac_pwd ;;
1550  [\\/]* | ?:[\\/]* )  # Absolute name.
1551    ac_srcdir=$srcdir$ac_dir_suffix;
1552    ac_top_srcdir=$srcdir
1553    ac_abs_top_srcdir=$srcdir ;;
1554  *) # Relative name.
1555    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1556    ac_top_srcdir=$ac_top_build_prefix$srcdir
1557    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1558esac
1559ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1560
1561    cd "$ac_dir" || { ac_status=$?; continue; }
1562    # Check for configure.gnu first; this name is used for a wrapper for
1563    # Metaconfig's "Configure" on case-insensitive file systems.
1564    if test -f "$ac_srcdir/configure.gnu"; then
1565      echo &&
1566      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567    elif test -f "$ac_srcdir/configure"; then
1568      echo &&
1569      $SHELL "$ac_srcdir/configure" --help=recursive
1570    else
1571      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1572    fi || ac_status=$?
1573    cd "$ac_pwd" || { ac_status=$?; break; }
1574  done
1575fi
1576
1577test -n "$ac_init_help" && exit $ac_status
1578if $ac_init_version; then
1579  cat <<\_ACEOF
1580xf86-input-elographics configure 1.4.4
1581generated by GNU Autoconf 2.72
1582
1583Copyright (C) 2023 Free Software Foundation, Inc.
1584This configure script is free software; the Free Software Foundation
1585gives unlimited permission to copy, distribute and modify it.
1586_ACEOF
1587  exit
1588fi
1589
1590## ------------------------ ##
1591## Autoconf initialization. ##
1592## ------------------------ ##
1593
1594# ac_fn_c_try_compile LINENO
1595# --------------------------
1596# Try to compile conftest.$ac_ext, and return whether this succeeded.
1597ac_fn_c_try_compile ()
1598{
1599  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600  rm -f conftest.$ac_objext conftest.beam
1601  if { { ac_try="$ac_compile"
1602case "(($ac_try" in
1603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604  *) ac_try_echo=$ac_try;;
1605esac
1606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607printf "%s\n" "$ac_try_echo"; } >&5
1608  (eval "$ac_compile") 2>conftest.err
1609  ac_status=$?
1610  if test -s conftest.err; then
1611    grep -v '^ *+' conftest.err >conftest.er1
1612    cat conftest.er1 >&5
1613    mv -f conftest.er1 conftest.err
1614  fi
1615  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616  test $ac_status = 0; } && {
1617	 test -z "$ac_c_werror_flag" ||
1618	 test ! -s conftest.err
1619       } && test -s conftest.$ac_objext
1620then :
1621  ac_retval=0
1622else case e in #(
1623  e) printf "%s\n" "$as_me: failed program was:" >&5
1624sed 's/^/| /' conftest.$ac_ext >&5
1625
1626	ac_retval=1 ;;
1627esac
1628fi
1629  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630  as_fn_set_status $ac_retval
1631
1632} # ac_fn_c_try_compile
1633
1634# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1635# ------------------------------------------------------------------
1636# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1637# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1638ac_fn_check_decl ()
1639{
1640  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641  as_decl_name=`echo $2|sed 's/ *(.*//'`
1642  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1643printf %s "checking whether $as_decl_name is declared... " >&6; }
1644if eval test \${$3+y}
1645then :
1646  printf %s "(cached) " >&6
1647else case e in #(
1648  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1649  eval ac_save_FLAGS=\$$6
1650  as_fn_append $6 " $5"
1651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1652/* end confdefs.h.  */
1653$4
1654int
1655main (void)
1656{
1657#ifndef $as_decl_name
1658#ifdef __cplusplus
1659  (void) $as_decl_use;
1660#else
1661  (void) $as_decl_name;
1662#endif
1663#endif
1664
1665  ;
1666  return 0;
1667}
1668_ACEOF
1669if ac_fn_c_try_compile "$LINENO"
1670then :
1671  eval "$3=yes"
1672else case e in #(
1673  e) eval "$3=no" ;;
1674esac
1675fi
1676rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1677  eval $6=\$ac_save_FLAGS
1678 ;;
1679esac
1680fi
1681eval ac_res=\$$3
1682	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683printf "%s\n" "$ac_res" >&6; }
1684  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685
1686} # ac_fn_check_decl
1687
1688# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1689# -------------------------------------------------------
1690# Tests whether HEADER exists and can be compiled using the include files in
1691# INCLUDES, setting the cache variable VAR accordingly.
1692ac_fn_c_check_header_compile ()
1693{
1694  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696printf %s "checking for $2... " >&6; }
1697if eval test \${$3+y}
1698then :
1699  printf %s "(cached) " >&6
1700else case e in #(
1701  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702/* end confdefs.h.  */
1703$4
1704#include <$2>
1705_ACEOF
1706if ac_fn_c_try_compile "$LINENO"
1707then :
1708  eval "$3=yes"
1709else case e in #(
1710  e) eval "$3=no" ;;
1711esac
1712fi
1713rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1714esac
1715fi
1716eval ac_res=\$$3
1717	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1718printf "%s\n" "$ac_res" >&6; }
1719  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720
1721} # ac_fn_c_check_header_compile
1722
1723# ac_fn_c_try_link LINENO
1724# -----------------------
1725# Try to link conftest.$ac_ext, and return whether this succeeded.
1726ac_fn_c_try_link ()
1727{
1728  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1730  if { { ac_try="$ac_link"
1731case "(($ac_try" in
1732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733  *) ac_try_echo=$ac_try;;
1734esac
1735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736printf "%s\n" "$ac_try_echo"; } >&5
1737  (eval "$ac_link") 2>conftest.err
1738  ac_status=$?
1739  if test -s conftest.err; then
1740    grep -v '^ *+' conftest.err >conftest.er1
1741    cat conftest.er1 >&5
1742    mv -f conftest.er1 conftest.err
1743  fi
1744  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745  test $ac_status = 0; } && {
1746	 test -z "$ac_c_werror_flag" ||
1747	 test ! -s conftest.err
1748       } && test -s conftest$ac_exeext && {
1749	 test "$cross_compiling" = yes ||
1750	 test -x conftest$ac_exeext
1751       }
1752then :
1753  ac_retval=0
1754else case e in #(
1755  e) printf "%s\n" "$as_me: failed program was:" >&5
1756sed 's/^/| /' conftest.$ac_ext >&5
1757
1758	ac_retval=1 ;;
1759esac
1760fi
1761  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1762  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1763  # interfere with the next link command; also delete a directory that is
1764  # left behind by Apple's compiler.  We do this before executing the actions.
1765  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767  as_fn_set_status $ac_retval
1768
1769} # ac_fn_c_try_link
1770
1771# ac_fn_c_check_func LINENO FUNC VAR
1772# ----------------------------------
1773# Tests whether FUNC exists, setting the cache variable VAR accordingly
1774ac_fn_c_check_func ()
1775{
1776  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778printf %s "checking for $2... " >&6; }
1779if eval test \${$3+y}
1780then :
1781  printf %s "(cached) " >&6
1782else case e in #(
1783  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784/* end confdefs.h.  */
1785/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1786   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1787#define $2 innocuous_$2
1788
1789/* System header to define __stub macros and hopefully few prototypes,
1790   which can conflict with char $2 (void); below.  */
1791
1792#include <limits.h>
1793#undef $2
1794
1795/* Override any GCC internal prototype to avoid an error.
1796   Use char because int might match the return type of a GCC
1797   builtin and then its argument prototype would still apply.  */
1798#ifdef __cplusplus
1799extern "C"
1800#endif
1801char $2 (void);
1802/* The GNU C library defines this for functions which it implements
1803    to always fail with ENOSYS.  Some functions are actually named
1804    something starting with __ and the normal name is an alias.  */
1805#if defined __stub_$2 || defined __stub___$2
1806choke me
1807#endif
1808
1809int
1810main (void)
1811{
1812return $2 ();
1813  ;
1814  return 0;
1815}
1816_ACEOF
1817if ac_fn_c_try_link "$LINENO"
1818then :
1819  eval "$3=yes"
1820else case e in #(
1821  e) eval "$3=no" ;;
1822esac
1823fi
1824rm -f core conftest.err conftest.$ac_objext conftest.beam \
1825    conftest$ac_exeext conftest.$ac_ext ;;
1826esac
1827fi
1828eval ac_res=\$$3
1829	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830printf "%s\n" "$ac_res" >&6; }
1831  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832
1833} # ac_fn_c_check_func
1834ac_configure_args_raw=
1835for ac_arg
1836do
1837  case $ac_arg in
1838  *\'*)
1839    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1840  esac
1841  as_fn_append ac_configure_args_raw " '$ac_arg'"
1842done
1843
1844case $ac_configure_args_raw in
1845  *$as_nl*)
1846    ac_safe_unquote= ;;
1847  *)
1848    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1849    ac_unsafe_a="$ac_unsafe_z#~"
1850    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1851    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1852esac
1853
1854cat >config.log <<_ACEOF
1855This file contains any messages produced by compilers while
1856running configure, to aid debugging if configure makes a mistake.
1857
1858It was created by xf86-input-elographics $as_me 1.4.4, which was
1859generated by GNU Autoconf 2.72.  Invocation command line was
1860
1861  $ $0$ac_configure_args_raw
1862
1863_ACEOF
1864exec 5>>config.log
1865{
1866cat <<_ASUNAME
1867## --------- ##
1868## Platform. ##
1869## --------- ##
1870
1871hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1872uname -m = `(uname -m) 2>/dev/null || echo unknown`
1873uname -r = `(uname -r) 2>/dev/null || echo unknown`
1874uname -s = `(uname -s) 2>/dev/null || echo unknown`
1875uname -v = `(uname -v) 2>/dev/null || echo unknown`
1876
1877/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1878/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1879
1880/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1881/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1882/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1883/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1884/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1885/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1886/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1887
1888_ASUNAME
1889
1890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891for as_dir in $PATH
1892do
1893  IFS=$as_save_IFS
1894  case $as_dir in #(((
1895    '') as_dir=./ ;;
1896    */) ;;
1897    *) as_dir=$as_dir/ ;;
1898  esac
1899    printf "%s\n" "PATH: $as_dir"
1900  done
1901IFS=$as_save_IFS
1902
1903} >&5
1904
1905cat >&5 <<_ACEOF
1906
1907
1908## ----------- ##
1909## Core tests. ##
1910## ----------- ##
1911
1912_ACEOF
1913
1914
1915# Keep a trace of the command line.
1916# Strip out --no-create and --no-recursion so they do not pile up.
1917# Strip out --silent because we don't want to record it for future runs.
1918# Also quote any args containing shell meta-characters.
1919# Make two passes to allow for proper duplicate-argument suppression.
1920ac_configure_args=
1921ac_configure_args0=
1922ac_configure_args1=
1923ac_must_keep_next=false
1924for ac_pass in 1 2
1925do
1926  for ac_arg
1927  do
1928    case $ac_arg in
1929    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1930    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1931    | -silent | --silent | --silen | --sile | --sil)
1932      continue ;;
1933    *\'*)
1934      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1935    esac
1936    case $ac_pass in
1937    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1938    2)
1939      as_fn_append ac_configure_args1 " '$ac_arg'"
1940      if test $ac_must_keep_next = true; then
1941	ac_must_keep_next=false # Got value, back to normal.
1942      else
1943	case $ac_arg in
1944	  *=* | --config-cache | -C | -disable-* | --disable-* \
1945	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1946	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1947	  | -with-* | --with-* | -without-* | --without-* | --x)
1948	    case "$ac_configure_args0 " in
1949	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1950	    esac
1951	    ;;
1952	  -* ) ac_must_keep_next=true ;;
1953	esac
1954      fi
1955      as_fn_append ac_configure_args " '$ac_arg'"
1956      ;;
1957    esac
1958  done
1959done
1960{ ac_configure_args0=; unset ac_configure_args0;}
1961{ ac_configure_args1=; unset ac_configure_args1;}
1962
1963# When interrupted or exit'd, cleanup temporary files, and complete
1964# config.log.  We remove comments because anyway the quotes in there
1965# would cause problems or look ugly.
1966# WARNING: Use '\'' to represent an apostrophe within the trap.
1967# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1968trap 'exit_status=$?
1969  # Sanitize IFS.
1970  IFS=" ""	$as_nl"
1971  # Save into config.log some information that might help in debugging.
1972  {
1973    echo
1974
1975    printf "%s\n" "## ---------------- ##
1976## Cache variables. ##
1977## ---------------- ##"
1978    echo
1979    # The following way of writing the cache mishandles newlines in values,
1980(
1981  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1982    eval ac_val=\$$ac_var
1983    case $ac_val in #(
1984    *${as_nl}*)
1985      case $ac_var in #(
1986      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1987printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1988      esac
1989      case $ac_var in #(
1990      _ | IFS | as_nl) ;; #(
1991      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1992      *) { eval $ac_var=; unset $ac_var;} ;;
1993      esac ;;
1994    esac
1995  done
1996  (set) 2>&1 |
1997    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1998    *${as_nl}ac_space=\ *)
1999      sed -n \
2000	"s/'\''/'\''\\\\'\'''\''/g;
2001	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2002      ;; #(
2003    *)
2004      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2005      ;;
2006    esac |
2007    sort
2008)
2009    echo
2010
2011    printf "%s\n" "## ----------------- ##
2012## Output variables. ##
2013## ----------------- ##"
2014    echo
2015    for ac_var in $ac_subst_vars
2016    do
2017      eval ac_val=\$$ac_var
2018      case $ac_val in
2019      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2020      esac
2021      printf "%s\n" "$ac_var='\''$ac_val'\''"
2022    done | sort
2023    echo
2024
2025    if test -n "$ac_subst_files"; then
2026      printf "%s\n" "## ------------------- ##
2027## File substitutions. ##
2028## ------------------- ##"
2029      echo
2030      for ac_var in $ac_subst_files
2031      do
2032	eval ac_val=\$$ac_var
2033	case $ac_val in
2034	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2035	esac
2036	printf "%s\n" "$ac_var='\''$ac_val'\''"
2037      done | sort
2038      echo
2039    fi
2040
2041    if test -s confdefs.h; then
2042      printf "%s\n" "## ----------- ##
2043## confdefs.h. ##
2044## ----------- ##"
2045      echo
2046      cat confdefs.h
2047      echo
2048    fi
2049    test "$ac_signal" != 0 &&
2050      printf "%s\n" "$as_me: caught signal $ac_signal"
2051    printf "%s\n" "$as_me: exit $exit_status"
2052  } >&5
2053  rm -f core *.core core.conftest.* &&
2054    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2055    exit $exit_status
2056' 0
2057for ac_signal in 1 2 13 15; do
2058  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2059done
2060ac_signal=0
2061
2062# confdefs.h avoids OS command line length limits that DEFS can exceed.
2063rm -f -r conftest* confdefs.h
2064
2065printf "%s\n" "/* confdefs.h */" > confdefs.h
2066
2067# Predefined preprocessor variables.
2068
2069printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2070
2071printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2072
2073printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2074
2075printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2076
2077printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2078
2079printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2080
2081
2082# Let the site file select an alternate cache file if it wants to.
2083# Prefer an explicitly selected file to automatically selected ones.
2084if test -n "$CONFIG_SITE"; then
2085  ac_site_files="$CONFIG_SITE"
2086elif test "x$prefix" != xNONE; then
2087  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2088else
2089  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2090fi
2091
2092for ac_site_file in $ac_site_files
2093do
2094  case $ac_site_file in #(
2095  */*) :
2096     ;; #(
2097  *) :
2098    ac_site_file=./$ac_site_file ;;
2099esac
2100  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2101    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2102printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2103    sed 's/^/| /' "$ac_site_file" >&5
2104    . "$ac_site_file" \
2105      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2106printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2107as_fn_error $? "failed to load site script $ac_site_file
2108See 'config.log' for more details" "$LINENO" 5; }
2109  fi
2110done
2111
2112if test -r "$cache_file"; then
2113  # Some versions of bash will fail to source /dev/null (special files
2114  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2115  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2116    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2117printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2118    case $cache_file in
2119      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2120      *)                      . "./$cache_file";;
2121    esac
2122  fi
2123else
2124  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2125printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2126  >$cache_file
2127fi
2128
2129# Test code for whether the C compiler supports C89 (global declarations)
2130ac_c_conftest_c89_globals='
2131/* Does the compiler advertise C89 conformance?
2132   Do not test the value of __STDC__, because some compilers set it to 0
2133   while being otherwise adequately conformant. */
2134#if !defined __STDC__
2135# error "Compiler does not advertise C89 conformance"
2136#endif
2137
2138#include <stddef.h>
2139#include <stdarg.h>
2140struct stat;
2141/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2142struct buf { int x; };
2143struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2144static char *e (char **p, int i)
2145{
2146  return p[i];
2147}
2148static char *f (char * (*g) (char **, int), char **p, ...)
2149{
2150  char *s;
2151  va_list v;
2152  va_start (v,p);
2153  s = g (p, va_arg (v,int));
2154  va_end (v);
2155  return s;
2156}
2157
2158/* C89 style stringification. */
2159#define noexpand_stringify(a) #a
2160const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2161
2162/* C89 style token pasting.  Exercises some of the corner cases that
2163   e.g. old MSVC gets wrong, but not very hard. */
2164#define noexpand_concat(a,b) a##b
2165#define expand_concat(a,b) noexpand_concat(a,b)
2166extern int vA;
2167extern int vbee;
2168#define aye A
2169#define bee B
2170int *pvA = &expand_concat(v,aye);
2171int *pvbee = &noexpand_concat(v,bee);
2172
2173/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2174   function prototypes and stuff, but not \xHH hex character constants.
2175   These do not provoke an error unfortunately, instead are silently treated
2176   as an "x".  The following induces an error, until -std is added to get
2177   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2178   array size at least.  It is necessary to write \x00 == 0 to get something
2179   that is true only with -std.  */
2180int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2181
2182/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2183   inside strings and character constants.  */
2184#define FOO(x) '\''x'\''
2185int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2186
2187int test (int i, double x);
2188struct s1 {int (*f) (int a);};
2189struct s2 {int (*f) (double a);};
2190int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2191               int, int);'
2192
2193# Test code for whether the C compiler supports C89 (body of main).
2194ac_c_conftest_c89_main='
2195ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2196'
2197
2198# Test code for whether the C compiler supports C99 (global declarations)
2199ac_c_conftest_c99_globals='
2200/* Does the compiler advertise C99 conformance? */
2201#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2202# error "Compiler does not advertise C99 conformance"
2203#endif
2204
2205// See if C++-style comments work.
2206
2207#include <stdbool.h>
2208extern int puts (const char *);
2209extern int printf (const char *, ...);
2210extern int dprintf (int, const char *, ...);
2211extern void *malloc (size_t);
2212extern void free (void *);
2213
2214// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2215// dprintf is used instead of fprintf to avoid needing to declare
2216// FILE and stderr.
2217#define debug(...) dprintf (2, __VA_ARGS__)
2218#define showlist(...) puts (#__VA_ARGS__)
2219#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2220static void
2221test_varargs_macros (void)
2222{
2223  int x = 1234;
2224  int y = 5678;
2225  debug ("Flag");
2226  debug ("X = %d\n", x);
2227  showlist (The first, second, and third items.);
2228  report (x>y, "x is %d but y is %d", x, y);
2229}
2230
2231// Check long long types.
2232#define BIG64 18446744073709551615ull
2233#define BIG32 4294967295ul
2234#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2235#if !BIG_OK
2236  #error "your preprocessor is broken"
2237#endif
2238#if BIG_OK
2239#else
2240  #error "your preprocessor is broken"
2241#endif
2242static long long int bignum = -9223372036854775807LL;
2243static unsigned long long int ubignum = BIG64;
2244
2245struct incomplete_array
2246{
2247  int datasize;
2248  double data[];
2249};
2250
2251struct named_init {
2252  int number;
2253  const wchar_t *name;
2254  double average;
2255};
2256
2257typedef const char *ccp;
2258
2259static inline int
2260test_restrict (ccp restrict text)
2261{
2262  // Iterate through items via the restricted pointer.
2263  // Also check for declarations in for loops.
2264  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2265    continue;
2266  return 0;
2267}
2268
2269// Check varargs and va_copy.
2270static bool
2271test_varargs (const char *format, ...)
2272{
2273  va_list args;
2274  va_start (args, format);
2275  va_list args_copy;
2276  va_copy (args_copy, args);
2277
2278  const char *str = "";
2279  int number = 0;
2280  float fnumber = 0;
2281
2282  while (*format)
2283    {
2284      switch (*format++)
2285	{
2286	case '\''s'\'': // string
2287	  str = va_arg (args_copy, const char *);
2288	  break;
2289	case '\''d'\'': // int
2290	  number = va_arg (args_copy, int);
2291	  break;
2292	case '\''f'\'': // float
2293	  fnumber = va_arg (args_copy, double);
2294	  break;
2295	default:
2296	  break;
2297	}
2298    }
2299  va_end (args_copy);
2300  va_end (args);
2301
2302  return *str && number && fnumber;
2303}
2304'
2305
2306# Test code for whether the C compiler supports C99 (body of main).
2307ac_c_conftest_c99_main='
2308  // Check bool.
2309  _Bool success = false;
2310  success |= (argc != 0);
2311
2312  // Check restrict.
2313  if (test_restrict ("String literal") == 0)
2314    success = true;
2315  char *restrict newvar = "Another string";
2316
2317  // Check varargs.
2318  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2319  test_varargs_macros ();
2320
2321  // Check flexible array members.
2322  struct incomplete_array *ia =
2323    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2324  ia->datasize = 10;
2325  for (int i = 0; i < ia->datasize; ++i)
2326    ia->data[i] = i * 1.234;
2327  // Work around memory leak warnings.
2328  free (ia);
2329
2330  // Check named initializers.
2331  struct named_init ni = {
2332    .number = 34,
2333    .name = L"Test wide string",
2334    .average = 543.34343,
2335  };
2336
2337  ni.number = 58;
2338
2339  int dynamic_array[ni.number];
2340  dynamic_array[0] = argv[0][0];
2341  dynamic_array[ni.number - 1] = 543;
2342
2343  // work around unused variable warnings
2344  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2345	 || dynamic_array[ni.number - 1] != 543);
2346'
2347
2348# Test code for whether the C compiler supports C11 (global declarations)
2349ac_c_conftest_c11_globals='
2350/* Does the compiler advertise C11 conformance? */
2351#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2352# error "Compiler does not advertise C11 conformance"
2353#endif
2354
2355// Check _Alignas.
2356char _Alignas (double) aligned_as_double;
2357char _Alignas (0) no_special_alignment;
2358extern char aligned_as_int;
2359char _Alignas (0) _Alignas (int) aligned_as_int;
2360
2361// Check _Alignof.
2362enum
2363{
2364  int_alignment = _Alignof (int),
2365  int_array_alignment = _Alignof (int[100]),
2366  char_alignment = _Alignof (char)
2367};
2368_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2369
2370// Check _Noreturn.
2371int _Noreturn does_not_return (void) { for (;;) continue; }
2372
2373// Check _Static_assert.
2374struct test_static_assert
2375{
2376  int x;
2377  _Static_assert (sizeof (int) <= sizeof (long int),
2378                  "_Static_assert does not work in struct");
2379  long int y;
2380};
2381
2382// Check UTF-8 literals.
2383#define u8 syntax error!
2384char const utf8_literal[] = u8"happens to be ASCII" "another string";
2385
2386// Check duplicate typedefs.
2387typedef long *long_ptr;
2388typedef long int *long_ptr;
2389typedef long_ptr long_ptr;
2390
2391// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2392struct anonymous
2393{
2394  union {
2395    struct { int i; int j; };
2396    struct { int k; long int l; } w;
2397  };
2398  int m;
2399} v1;
2400'
2401
2402# Test code for whether the C compiler supports C11 (body of main).
2403ac_c_conftest_c11_main='
2404  _Static_assert ((offsetof (struct anonymous, i)
2405		   == offsetof (struct anonymous, w.k)),
2406		  "Anonymous union alignment botch");
2407  v1.i = 2;
2408  v1.w.k = 5;
2409  ok |= v1.i != 5;
2410'
2411
2412# Test code for whether the C compiler supports C11 (complete).
2413ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2414${ac_c_conftest_c99_globals}
2415${ac_c_conftest_c11_globals}
2416
2417int
2418main (int argc, char **argv)
2419{
2420  int ok = 0;
2421  ${ac_c_conftest_c89_main}
2422  ${ac_c_conftest_c99_main}
2423  ${ac_c_conftest_c11_main}
2424  return ok;
2425}
2426"
2427
2428# Test code for whether the C compiler supports C99 (complete).
2429ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2430${ac_c_conftest_c99_globals}
2431
2432int
2433main (int argc, char **argv)
2434{
2435  int ok = 0;
2436  ${ac_c_conftest_c89_main}
2437  ${ac_c_conftest_c99_main}
2438  return ok;
2439}
2440"
2441
2442# Test code for whether the C compiler supports C89 (complete).
2443ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2444
2445int
2446main (int argc, char **argv)
2447{
2448  int ok = 0;
2449  ${ac_c_conftest_c89_main}
2450  return ok;
2451}
2452"
2453
2454as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2455as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2456as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2457as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2458as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2459as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2460as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2461as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2462as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2463
2464# Auxiliary files required by this configure script.
2465ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
2466
2467# Locations in which to look for auxiliary files.
2468ac_aux_dir_candidates="${srcdir}/."
2469
2470# Search for a directory containing all of the required auxiliary files,
2471# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2472# If we don't find one directory that contains all the files we need,
2473# we report the set of missing files from the *first* directory in
2474# $ac_aux_dir_candidates and give up.
2475ac_missing_aux_files=""
2476ac_first_candidate=:
2477printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479as_found=false
2480for as_dir in $ac_aux_dir_candidates
2481do
2482  IFS=$as_save_IFS
2483  case $as_dir in #(((
2484    '') as_dir=./ ;;
2485    */) ;;
2486    *) as_dir=$as_dir/ ;;
2487  esac
2488  as_found=:
2489
2490  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2491  ac_aux_dir_found=yes
2492  ac_install_sh=
2493  for ac_aux in $ac_aux_files
2494  do
2495    # As a special case, if "install-sh" is required, that requirement
2496    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2497    # and $ac_install_sh is set appropriately for whichever one is found.
2498    if test x"$ac_aux" = x"install-sh"
2499    then
2500      if test -f "${as_dir}install-sh"; then
2501        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2502        ac_install_sh="${as_dir}install-sh -c"
2503      elif test -f "${as_dir}install.sh"; then
2504        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2505        ac_install_sh="${as_dir}install.sh -c"
2506      elif test -f "${as_dir}shtool"; then
2507        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2508        ac_install_sh="${as_dir}shtool install -c"
2509      else
2510        ac_aux_dir_found=no
2511        if $ac_first_candidate; then
2512          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2513        else
2514          break
2515        fi
2516      fi
2517    else
2518      if test -f "${as_dir}${ac_aux}"; then
2519        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2520      else
2521        ac_aux_dir_found=no
2522        if $ac_first_candidate; then
2523          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2524        else
2525          break
2526        fi
2527      fi
2528    fi
2529  done
2530  if test "$ac_aux_dir_found" = yes; then
2531    ac_aux_dir="$as_dir"
2532    break
2533  fi
2534  ac_first_candidate=false
2535
2536  as_found=false
2537done
2538IFS=$as_save_IFS
2539if $as_found
2540then :
2541
2542else case e in #(
2543  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2544esac
2545fi
2546
2547
2548# These three variables are undocumented and unsupported,
2549# and are intended to be withdrawn in a future Autoconf release.
2550# They can cause serious problems if a builder's source tree is in a directory
2551# whose full name contains unusual characters.
2552if test -f "${ac_aux_dir}config.guess"; then
2553  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2554fi
2555if test -f "${ac_aux_dir}config.sub"; then
2556  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2557fi
2558if test -f "$ac_aux_dir/configure"; then
2559  ac_configure="$SHELL ${ac_aux_dir}configure"
2560fi
2561
2562# Check that the precious variables saved in the cache have kept the same
2563# value.
2564ac_cache_corrupted=false
2565for ac_var in $ac_precious_vars; do
2566  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2567  eval ac_new_set=\$ac_env_${ac_var}_set
2568  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2569  eval ac_new_val=\$ac_env_${ac_var}_value
2570  case $ac_old_set,$ac_new_set in
2571    set,)
2572      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2573printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2574      ac_cache_corrupted=: ;;
2575    ,set)
2576      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2577printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2578      ac_cache_corrupted=: ;;
2579    ,);;
2580    *)
2581      if test "x$ac_old_val" != "x$ac_new_val"; then
2582	# differences in whitespace do not lead to failure.
2583	ac_old_val_w=`echo x $ac_old_val`
2584	ac_new_val_w=`echo x $ac_new_val`
2585	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2586	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2587printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2588	  ac_cache_corrupted=:
2589	else
2590	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2591printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2592	  eval $ac_var=\$ac_old_val
2593	fi
2594	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2595printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2596	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2597printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2598      fi;;
2599  esac
2600  # Pass precious variables to config.status.
2601  if test "$ac_new_set" = set; then
2602    case $ac_new_val in
2603    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2604    *) ac_arg=$ac_var=$ac_new_val ;;
2605    esac
2606    case " $ac_configure_args " in
2607      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2608      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2609    esac
2610  fi
2611done
2612if $ac_cache_corrupted; then
2613  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2614printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2615  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2616printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2617  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2618	    and start over" "$LINENO" 5
2619fi
2620## -------------------- ##
2621## Main body of script. ##
2622## -------------------- ##
2623
2624ac_ext=c
2625ac_cpp='$CPP $CPPFLAGS'
2626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2628ac_compiler_gnu=$ac_cv_c_compiler_gnu
2629
2630
2631
2632
2633ac_config_headers="$ac_config_headers config.h"
2634
2635
2636# Initialize Automake
2637am__api_version='1.16'
2638
2639
2640
2641  # Find a good install program.  We prefer a C program (faster),
2642# so one script is as good as another.  But avoid the broken or
2643# incompatible versions:
2644# SysV /etc/install, /usr/sbin/install
2645# SunOS /usr/etc/install
2646# IRIX /sbin/install
2647# AIX /bin/install
2648# AmigaOS /C/install, which installs bootblocks on floppy discs
2649# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2650# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2651# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2652# OS/2's system install, which has a completely different semantic
2653# ./install, which can be erroneously created by make from ./install.sh.
2654# Reject install programs that cannot install multiple files.
2655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2656printf %s "checking for a BSD-compatible install... " >&6; }
2657if test -z "$INSTALL"; then
2658if test ${ac_cv_path_install+y}
2659then :
2660  printf %s "(cached) " >&6
2661else case e in #(
2662  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663for as_dir in $PATH
2664do
2665  IFS=$as_save_IFS
2666  case $as_dir in #(((
2667    '') as_dir=./ ;;
2668    */) ;;
2669    *) as_dir=$as_dir/ ;;
2670  esac
2671    # Account for fact that we put trailing slashes in our PATH walk.
2672case $as_dir in #((
2673  ./ | /[cC]/* | \
2674  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2675  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2676  /usr/ucb/* ) ;;
2677  *)
2678    # OSF1 and SCO ODT 3.0 have their own names for install.
2679    # Don't use installbsd from OSF since it installs stuff as root
2680    # by default.
2681    for ac_prog in ginstall scoinst install; do
2682      for ac_exec_ext in '' $ac_executable_extensions; do
2683	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2684	  if test $ac_prog = install &&
2685	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2686	    # AIX install.  It has an incompatible calling convention.
2687	    :
2688	  elif test $ac_prog = install &&
2689	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2690	    # program-specific install script used by HP pwplus--don't use.
2691	    :
2692	  else
2693	    rm -rf conftest.one conftest.two conftest.dir
2694	    echo one > conftest.one
2695	    echo two > conftest.two
2696	    mkdir conftest.dir
2697	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2698	      test -s conftest.one && test -s conftest.two &&
2699	      test -s conftest.dir/conftest.one &&
2700	      test -s conftest.dir/conftest.two
2701	    then
2702	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2703	      break 3
2704	    fi
2705	  fi
2706	fi
2707      done
2708    done
2709    ;;
2710esac
2711
2712  done
2713IFS=$as_save_IFS
2714
2715rm -rf conftest.one conftest.two conftest.dir
2716 ;;
2717esac
2718fi
2719  if test ${ac_cv_path_install+y}; then
2720    INSTALL=$ac_cv_path_install
2721  else
2722    # As a last resort, use the slow shell script.  Don't cache a
2723    # value for INSTALL within a source directory, because that will
2724    # break other packages using the cache if that directory is
2725    # removed, or if the value is a relative name.
2726    INSTALL=$ac_install_sh
2727  fi
2728fi
2729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2730printf "%s\n" "$INSTALL" >&6; }
2731
2732# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2733# It thinks the first close brace ends the variable substitution.
2734test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2735
2736test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2737
2738test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2739
2740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2741printf %s "checking whether build environment is sane... " >&6; }
2742# Reject unsafe characters in $srcdir or the absolute working directory
2743# name.  Accept space and tab only in the latter.
2744am_lf='
2745'
2746case `pwd` in
2747  *[\\\"\#\$\&\'\`$am_lf]*)
2748    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2749esac
2750case $srcdir in
2751  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2752    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2753esac
2754
2755# Do 'set' in a subshell so we don't clobber the current shell's
2756# arguments.  Must try -L first in case configure is actually a
2757# symlink; some systems play weird games with the mod time of symlinks
2758# (eg FreeBSD returns the mod time of the symlink's containing
2759# directory).
2760if (
2761   am_has_slept=no
2762   for am_try in 1 2; do
2763     echo "timestamp, slept: $am_has_slept" > conftest.file
2764     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2765     if test "$*" = "X"; then
2766	# -L didn't work.
2767	set X `ls -t "$srcdir/configure" conftest.file`
2768     fi
2769     if test "$*" != "X $srcdir/configure conftest.file" \
2770	&& test "$*" != "X conftest.file $srcdir/configure"; then
2771
2772	# If neither matched, then we have a broken ls.  This can happen
2773	# if, for instance, CONFIG_SHELL is bash and it inherits a
2774	# broken ls alias from the environment.  This has actually
2775	# happened.  Such a system could not be considered "sane".
2776	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2777  alias in your environment" "$LINENO" 5
2778     fi
2779     if test "$2" = conftest.file || test $am_try -eq 2; then
2780       break
2781     fi
2782     # Just in case.
2783     sleep 1
2784     am_has_slept=yes
2785   done
2786   test "$2" = conftest.file
2787   )
2788then
2789   # Ok.
2790   :
2791else
2792   as_fn_error $? "newly created file is older than distributed files!
2793Check your system clock" "$LINENO" 5
2794fi
2795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2796printf "%s\n" "yes" >&6; }
2797# If we didn't sleep, we still need to ensure time stamps of config.status and
2798# generated files are strictly newer.
2799am_sleep_pid=
2800if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2801  ( sleep 1 ) &
2802  am_sleep_pid=$!
2803fi
2804
2805rm -f conftest.file
2806
2807test "$program_prefix" != NONE &&
2808  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2809# Use a double $ so make ignores it.
2810test "$program_suffix" != NONE &&
2811  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2812# Double any \ or $.
2813# By default was 's,x,x', remove it if useless.
2814ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2815program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2816
2817
2818# Expand $ac_aux_dir to an absolute path.
2819am_aux_dir=`cd "$ac_aux_dir" && pwd`
2820
2821
2822  if test x"${MISSING+set}" != xset; then
2823  MISSING="\${SHELL} '$am_aux_dir/missing'"
2824fi
2825# Use eval to expand $SHELL
2826if eval "$MISSING --is-lightweight"; then
2827  am_missing_run="$MISSING "
2828else
2829  am_missing_run=
2830  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2831printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2832fi
2833
2834if test x"${install_sh+set}" != xset; then
2835  case $am_aux_dir in
2836  *\ * | *\	*)
2837    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2838  *)
2839    install_sh="\${SHELL} $am_aux_dir/install-sh"
2840  esac
2841fi
2842
2843# Installed binaries are usually stripped using 'strip' when the user
2844# run "make install-strip".  However 'strip' might not be the right
2845# tool to use in cross-compilation environments, therefore Automake
2846# will honor the 'STRIP' environment variable to overrule this program.
2847if test "$cross_compiling" != no; then
2848  if test -n "$ac_tool_prefix"; then
2849  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2850set dummy ${ac_tool_prefix}strip; ac_word=$2
2851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852printf %s "checking for $ac_word... " >&6; }
2853if test ${ac_cv_prog_STRIP+y}
2854then :
2855  printf %s "(cached) " >&6
2856else case e in #(
2857  e) if test -n "$STRIP"; then
2858  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2859else
2860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861for as_dir in $PATH
2862do
2863  IFS=$as_save_IFS
2864  case $as_dir in #(((
2865    '') as_dir=./ ;;
2866    */) ;;
2867    *) as_dir=$as_dir/ ;;
2868  esac
2869    for ac_exec_ext in '' $ac_executable_extensions; do
2870  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2871    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2872    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2873    break 2
2874  fi
2875done
2876  done
2877IFS=$as_save_IFS
2878
2879fi ;;
2880esac
2881fi
2882STRIP=$ac_cv_prog_STRIP
2883if test -n "$STRIP"; then
2884  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2885printf "%s\n" "$STRIP" >&6; }
2886else
2887  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888printf "%s\n" "no" >&6; }
2889fi
2890
2891
2892fi
2893if test -z "$ac_cv_prog_STRIP"; then
2894  ac_ct_STRIP=$STRIP
2895  # Extract the first word of "strip", so it can be a program name with args.
2896set dummy strip; ac_word=$2
2897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898printf %s "checking for $ac_word... " >&6; }
2899if test ${ac_cv_prog_ac_ct_STRIP+y}
2900then :
2901  printf %s "(cached) " >&6
2902else case e in #(
2903  e) if test -n "$ac_ct_STRIP"; then
2904  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2905else
2906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907for as_dir in $PATH
2908do
2909  IFS=$as_save_IFS
2910  case $as_dir in #(((
2911    '') as_dir=./ ;;
2912    */) ;;
2913    *) as_dir=$as_dir/ ;;
2914  esac
2915    for ac_exec_ext in '' $ac_executable_extensions; do
2916  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2917    ac_cv_prog_ac_ct_STRIP="strip"
2918    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2919    break 2
2920  fi
2921done
2922  done
2923IFS=$as_save_IFS
2924
2925fi ;;
2926esac
2927fi
2928ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2929if test -n "$ac_ct_STRIP"; then
2930  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2931printf "%s\n" "$ac_ct_STRIP" >&6; }
2932else
2933  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934printf "%s\n" "no" >&6; }
2935fi
2936
2937  if test "x$ac_ct_STRIP" = x; then
2938    STRIP=":"
2939  else
2940    case $cross_compiling:$ac_tool_warned in
2941yes:)
2942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2943printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2944ac_tool_warned=yes ;;
2945esac
2946    STRIP=$ac_ct_STRIP
2947  fi
2948else
2949  STRIP="$ac_cv_prog_STRIP"
2950fi
2951
2952fi
2953INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2954
2955
2956  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2957printf %s "checking for a race-free mkdir -p... " >&6; }
2958if test -z "$MKDIR_P"; then
2959  if test ${ac_cv_path_mkdir+y}
2960then :
2961  printf %s "(cached) " >&6
2962else case e in #(
2963  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2965do
2966  IFS=$as_save_IFS
2967  case $as_dir in #(((
2968    '') as_dir=./ ;;
2969    */) ;;
2970    *) as_dir=$as_dir/ ;;
2971  esac
2972    for ac_prog in mkdir gmkdir; do
2973	 for ac_exec_ext in '' $ac_executable_extensions; do
2974	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2975	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2976	     'mkdir ('*'coreutils) '* | \
2977	     *'BusyBox '* | \
2978	     'mkdir (fileutils) '4.1*)
2979	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2980	       break 3;;
2981	   esac
2982	 done
2983       done
2984  done
2985IFS=$as_save_IFS
2986 ;;
2987esac
2988fi
2989
2990  test -d ./--version && rmdir ./--version
2991  if test ${ac_cv_path_mkdir+y}; then
2992    MKDIR_P="$ac_cv_path_mkdir -p"
2993  else
2994    # As a last resort, use plain mkdir -p,
2995    # in the hope it doesn't have the bugs of ancient mkdir.
2996    MKDIR_P='mkdir -p'
2997  fi
2998fi
2999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3000printf "%s\n" "$MKDIR_P" >&6; }
3001
3002for ac_prog in gawk mawk nawk awk
3003do
3004  # Extract the first word of "$ac_prog", so it can be a program name with args.
3005set dummy $ac_prog; ac_word=$2
3006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007printf %s "checking for $ac_word... " >&6; }
3008if test ${ac_cv_prog_AWK+y}
3009then :
3010  printf %s "(cached) " >&6
3011else case e in #(
3012  e) if test -n "$AWK"; then
3013  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3014else
3015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016for as_dir in $PATH
3017do
3018  IFS=$as_save_IFS
3019  case $as_dir in #(((
3020    '') as_dir=./ ;;
3021    */) ;;
3022    *) as_dir=$as_dir/ ;;
3023  esac
3024    for ac_exec_ext in '' $ac_executable_extensions; do
3025  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3026    ac_cv_prog_AWK="$ac_prog"
3027    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3028    break 2
3029  fi
3030done
3031  done
3032IFS=$as_save_IFS
3033
3034fi ;;
3035esac
3036fi
3037AWK=$ac_cv_prog_AWK
3038if test -n "$AWK"; then
3039  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3040printf "%s\n" "$AWK" >&6; }
3041else
3042  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3043printf "%s\n" "no" >&6; }
3044fi
3045
3046
3047  test -n "$AWK" && break
3048done
3049
3050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3051printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3052set x ${MAKE-make}
3053ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3054if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3055then :
3056  printf %s "(cached) " >&6
3057else case e in #(
3058  e) cat >conftest.make <<\_ACEOF
3059SHELL = /bin/sh
3060all:
3061	@echo '@@@%%%=$(MAKE)=@@@%%%'
3062_ACEOF
3063# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3064case `${MAKE-make} -f conftest.make 2>/dev/null` in
3065  *@@@%%%=?*=@@@%%%*)
3066    eval ac_cv_prog_make_${ac_make}_set=yes;;
3067  *)
3068    eval ac_cv_prog_make_${ac_make}_set=no;;
3069esac
3070rm -f conftest.make ;;
3071esac
3072fi
3073if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3074  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3075printf "%s\n" "yes" >&6; }
3076  SET_MAKE=
3077else
3078  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079printf "%s\n" "no" >&6; }
3080  SET_MAKE="MAKE=${MAKE-make}"
3081fi
3082
3083rm -rf .tst 2>/dev/null
3084mkdir .tst 2>/dev/null
3085if test -d .tst; then
3086  am__leading_dot=.
3087else
3088  am__leading_dot=_
3089fi
3090rmdir .tst 2>/dev/null
3091
3092# Check whether --enable-silent-rules was given.
3093if test ${enable_silent_rules+y}
3094then :
3095  enableval=$enable_silent_rules;
3096fi
3097
3098case $enable_silent_rules in # (((
3099  yes) AM_DEFAULT_VERBOSITY=0;;
3100   no) AM_DEFAULT_VERBOSITY=1;;
3101    *) AM_DEFAULT_VERBOSITY=1;;
3102esac
3103am_make=${MAKE-make}
3104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3105printf %s "checking whether $am_make supports nested variables... " >&6; }
3106if test ${am_cv_make_support_nested_variables+y}
3107then :
3108  printf %s "(cached) " >&6
3109else case e in #(
3110  e) if printf "%s\n" 'TRUE=$(BAR$(V))
3111BAR0=false
3112BAR1=true
3113V=1
3114am__doit:
3115	@$(TRUE)
3116.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3117  am_cv_make_support_nested_variables=yes
3118else
3119  am_cv_make_support_nested_variables=no
3120fi ;;
3121esac
3122fi
3123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3124printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3125if test $am_cv_make_support_nested_variables = yes; then
3126    AM_V='$(V)'
3127  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3128else
3129  AM_V=$AM_DEFAULT_VERBOSITY
3130  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3131fi
3132AM_BACKSLASH='\'
3133
3134if test "`cd $srcdir && pwd`" != "`pwd`"; then
3135  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3136  # is not polluted with repeated "-I."
3137  am__isrc=' -I$(srcdir)'
3138  # test to see if srcdir already configured
3139  if test -f $srcdir/config.status; then
3140    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3141  fi
3142fi
3143
3144# test whether we have cygpath
3145if test -z "$CYGPATH_W"; then
3146  if (cygpath --version) >/dev/null 2>/dev/null; then
3147    CYGPATH_W='cygpath -w'
3148  else
3149    CYGPATH_W=echo
3150  fi
3151fi
3152
3153
3154# Define the identity of the package.
3155 PACKAGE='xf86-input-elographics'
3156 VERSION='1.4.4'
3157
3158
3159printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3160
3161
3162printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3163
3164# Some tools Automake needs.
3165
3166ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3167
3168
3169AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3170
3171
3172AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3173
3174
3175AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3176
3177
3178MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3179
3180# For better backward compatibility.  To be removed once Automake 1.9.x
3181# dies out for good.  For more background, see:
3182# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3183# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3184mkdir_p='$(MKDIR_P)'
3185
3186# We need awk for the "check" target (and possibly the TAP driver).  The
3187# system "awk" is bad on some platforms.
3188# Always define AMTAR for backward compatibility.  Yes, it's still used
3189# in the wild :-(  We should find a proper way to deprecate it ...
3190AMTAR='$${TAR-tar}'
3191
3192
3193# We'll loop over all known methods to create a tar archive until one works.
3194_am_tools='gnutar  pax cpio none'
3195
3196am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3197
3198
3199
3200
3201
3202# Variables for tags utilities; see am/tags.am
3203if test -z "$CTAGS"; then
3204  CTAGS=ctags
3205fi
3206
3207if test -z "$ETAGS"; then
3208  ETAGS=etags
3209fi
3210
3211if test -z "$CSCOPE"; then
3212  CSCOPE=cscope
3213fi
3214
3215
3216
3217# POSIX will say in a future version that running "rm -f" with no argument
3218# is OK; and we want to be able to make that assumption in our Makefile
3219# recipes.  So use an aggressive probe to check that the usage we want is
3220# actually supported "in the wild" to an acceptable degree.
3221# See automake bug#10828.
3222# To make any issue more visible, cause the running configure to be aborted
3223# by default if the 'rm' program in use doesn't match our expectations; the
3224# user can still override this though.
3225if rm -f && rm -fr && rm -rf; then : OK; else
3226  cat >&2 <<'END'
3227Oops!
3228
3229Your 'rm' program seems unable to run without file operands specified
3230on the command line, even when the '-f' option is present.  This is contrary
3231to the behaviour of most rm programs out there, and not conforming with
3232the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3233
3234Please tell bug-automake@gnu.org about your system, including the value
3235of your $PATH and any error possibly output before this message.  This
3236can help us improve future automake versions.
3237
3238END
3239  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3240    echo 'Configuration will proceed anyway, since you have set the' >&2
3241    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3242    echo >&2
3243  else
3244    cat >&2 <<'END'
3245Aborting the configuration process, to ensure you take notice of the issue.
3246
3247You can download and install GNU coreutils to get an 'rm' implementation
3248that behaves properly: <https://www.gnu.org/software/coreutils/>.
3249
3250If you want to complete the configuration process using your problematic
3251'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3252to "yes", and re-run configure.
3253
3254END
3255    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3256  fi
3257fi
3258
3259
3260# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281DEPDIR="${am__leading_dot}deps"
3282
3283ac_config_commands="$ac_config_commands depfiles"
3284
3285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3286printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3287cat > confinc.mk << 'END'
3288am__doit:
3289	@echo this is the am__doit target >confinc.out
3290.PHONY: am__doit
3291END
3292am__include="#"
3293am__quote=
3294# BSD make does it like this.
3295echo '.include "confinc.mk" # ignored' > confmf.BSD
3296# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3297echo 'include confinc.mk # ignored' > confmf.GNU
3298_am_result=no
3299for s in GNU BSD; do
3300  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3301   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3302   ac_status=$?
3303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304   (exit $ac_status); }
3305  case $?:`cat confinc.out 2>/dev/null` in #(
3306  '0:this is the am__doit target') :
3307    case $s in #(
3308  BSD) :
3309    am__include='.include' am__quote='"' ;; #(
3310  *) :
3311    am__include='include' am__quote='' ;;
3312esac ;; #(
3313  *) :
3314     ;;
3315esac
3316  if test "$am__include" != "#"; then
3317    _am_result="yes ($s style)"
3318    break
3319  fi
3320done
3321rm -f confinc.* confmf.*
3322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3323printf "%s\n" "${_am_result}" >&6; }
3324
3325# Check whether --enable-dependency-tracking was given.
3326if test ${enable_dependency_tracking+y}
3327then :
3328  enableval=$enable_dependency_tracking;
3329fi
3330
3331if test "x$enable_dependency_tracking" != xno; then
3332  am_depcomp="$ac_aux_dir/depcomp"
3333  AMDEPBACKSLASH='\'
3334  am__nodep='_no'
3335fi
3336 if test "x$enable_dependency_tracking" != xno; then
3337  AMDEP_TRUE=
3338  AMDEP_FALSE='#'
3339else
3340  AMDEP_TRUE='#'
3341  AMDEP_FALSE=
3342fi
3343
3344
3345ac_ext=c
3346ac_cpp='$CPP $CPPFLAGS'
3347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3349ac_compiler_gnu=$ac_cv_c_compiler_gnu
3350if test -n "$ac_tool_prefix"; then
3351  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3352set dummy ${ac_tool_prefix}gcc; ac_word=$2
3353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354printf %s "checking for $ac_word... " >&6; }
3355if test ${ac_cv_prog_CC+y}
3356then :
3357  printf %s "(cached) " >&6
3358else case e in #(
3359  e) if test -n "$CC"; then
3360  ac_cv_prog_CC="$CC" # Let the user override the test.
3361else
3362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363for as_dir in $PATH
3364do
3365  IFS=$as_save_IFS
3366  case $as_dir in #(((
3367    '') as_dir=./ ;;
3368    */) ;;
3369    *) as_dir=$as_dir/ ;;
3370  esac
3371    for ac_exec_ext in '' $ac_executable_extensions; do
3372  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3373    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3374    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3375    break 2
3376  fi
3377done
3378  done
3379IFS=$as_save_IFS
3380
3381fi ;;
3382esac
3383fi
3384CC=$ac_cv_prog_CC
3385if test -n "$CC"; then
3386  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3387printf "%s\n" "$CC" >&6; }
3388else
3389  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390printf "%s\n" "no" >&6; }
3391fi
3392
3393
3394fi
3395if test -z "$ac_cv_prog_CC"; then
3396  ac_ct_CC=$CC
3397  # Extract the first word of "gcc", so it can be a program name with args.
3398set dummy gcc; ac_word=$2
3399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400printf %s "checking for $ac_word... " >&6; }
3401if test ${ac_cv_prog_ac_ct_CC+y}
3402then :
3403  printf %s "(cached) " >&6
3404else case e in #(
3405  e) if test -n "$ac_ct_CC"; then
3406  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3407else
3408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409for as_dir in $PATH
3410do
3411  IFS=$as_save_IFS
3412  case $as_dir in #(((
3413    '') as_dir=./ ;;
3414    */) ;;
3415    *) as_dir=$as_dir/ ;;
3416  esac
3417    for ac_exec_ext in '' $ac_executable_extensions; do
3418  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3419    ac_cv_prog_ac_ct_CC="gcc"
3420    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3421    break 2
3422  fi
3423done
3424  done
3425IFS=$as_save_IFS
3426
3427fi ;;
3428esac
3429fi
3430ac_ct_CC=$ac_cv_prog_ac_ct_CC
3431if test -n "$ac_ct_CC"; then
3432  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3433printf "%s\n" "$ac_ct_CC" >&6; }
3434else
3435  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436printf "%s\n" "no" >&6; }
3437fi
3438
3439  if test "x$ac_ct_CC" = x; then
3440    CC=""
3441  else
3442    case $cross_compiling:$ac_tool_warned in
3443yes:)
3444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3445printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3446ac_tool_warned=yes ;;
3447esac
3448    CC=$ac_ct_CC
3449  fi
3450else
3451  CC="$ac_cv_prog_CC"
3452fi
3453
3454if test -z "$CC"; then
3455          if test -n "$ac_tool_prefix"; then
3456    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3457set dummy ${ac_tool_prefix}cc; ac_word=$2
3458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3459printf %s "checking for $ac_word... " >&6; }
3460if test ${ac_cv_prog_CC+y}
3461then :
3462  printf %s "(cached) " >&6
3463else case e in #(
3464  e) if test -n "$CC"; then
3465  ac_cv_prog_CC="$CC" # Let the user override the test.
3466else
3467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468for as_dir in $PATH
3469do
3470  IFS=$as_save_IFS
3471  case $as_dir in #(((
3472    '') as_dir=./ ;;
3473    */) ;;
3474    *) as_dir=$as_dir/ ;;
3475  esac
3476    for ac_exec_ext in '' $ac_executable_extensions; do
3477  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3478    ac_cv_prog_CC="${ac_tool_prefix}cc"
3479    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3480    break 2
3481  fi
3482done
3483  done
3484IFS=$as_save_IFS
3485
3486fi ;;
3487esac
3488fi
3489CC=$ac_cv_prog_CC
3490if test -n "$CC"; then
3491  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3492printf "%s\n" "$CC" >&6; }
3493else
3494  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495printf "%s\n" "no" >&6; }
3496fi
3497
3498
3499  fi
3500fi
3501if test -z "$CC"; then
3502  # Extract the first word of "cc", so it can be a program name with args.
3503set dummy cc; ac_word=$2
3504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3505printf %s "checking for $ac_word... " >&6; }
3506if test ${ac_cv_prog_CC+y}
3507then :
3508  printf %s "(cached) " >&6
3509else case e in #(
3510  e) if test -n "$CC"; then
3511  ac_cv_prog_CC="$CC" # Let the user override the test.
3512else
3513  ac_prog_rejected=no
3514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515for as_dir in $PATH
3516do
3517  IFS=$as_save_IFS
3518  case $as_dir in #(((
3519    '') as_dir=./ ;;
3520    */) ;;
3521    *) as_dir=$as_dir/ ;;
3522  esac
3523    for ac_exec_ext in '' $ac_executable_extensions; do
3524  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3525    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3526       ac_prog_rejected=yes
3527       continue
3528     fi
3529    ac_cv_prog_CC="cc"
3530    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3531    break 2
3532  fi
3533done
3534  done
3535IFS=$as_save_IFS
3536
3537if test $ac_prog_rejected = yes; then
3538  # We found a bogon in the path, so make sure we never use it.
3539  set dummy $ac_cv_prog_CC
3540  shift
3541  if test $# != 0; then
3542    # We chose a different compiler from the bogus one.
3543    # However, it has the same basename, so the bogon will be chosen
3544    # first if we set CC to just the basename; use the full file name.
3545    shift
3546    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3547  fi
3548fi
3549fi ;;
3550esac
3551fi
3552CC=$ac_cv_prog_CC
3553if test -n "$CC"; then
3554  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3555printf "%s\n" "$CC" >&6; }
3556else
3557  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558printf "%s\n" "no" >&6; }
3559fi
3560
3561
3562fi
3563if test -z "$CC"; then
3564  if test -n "$ac_tool_prefix"; then
3565  for ac_prog in cl.exe
3566  do
3567    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3568set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3570printf %s "checking for $ac_word... " >&6; }
3571if test ${ac_cv_prog_CC+y}
3572then :
3573  printf %s "(cached) " >&6
3574else case e in #(
3575  e) if test -n "$CC"; then
3576  ac_cv_prog_CC="$CC" # Let the user override the test.
3577else
3578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579for as_dir in $PATH
3580do
3581  IFS=$as_save_IFS
3582  case $as_dir in #(((
3583    '') as_dir=./ ;;
3584    */) ;;
3585    *) as_dir=$as_dir/ ;;
3586  esac
3587    for ac_exec_ext in '' $ac_executable_extensions; do
3588  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3589    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3590    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3591    break 2
3592  fi
3593done
3594  done
3595IFS=$as_save_IFS
3596
3597fi ;;
3598esac
3599fi
3600CC=$ac_cv_prog_CC
3601if test -n "$CC"; then
3602  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3603printf "%s\n" "$CC" >&6; }
3604else
3605  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3606printf "%s\n" "no" >&6; }
3607fi
3608
3609
3610    test -n "$CC" && break
3611  done
3612fi
3613if test -z "$CC"; then
3614  ac_ct_CC=$CC
3615  for ac_prog in cl.exe
3616do
3617  # Extract the first word of "$ac_prog", so it can be a program name with args.
3618set dummy $ac_prog; ac_word=$2
3619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3620printf %s "checking for $ac_word... " >&6; }
3621if test ${ac_cv_prog_ac_ct_CC+y}
3622then :
3623  printf %s "(cached) " >&6
3624else case e in #(
3625  e) if test -n "$ac_ct_CC"; then
3626  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3627else
3628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629for as_dir in $PATH
3630do
3631  IFS=$as_save_IFS
3632  case $as_dir in #(((
3633    '') as_dir=./ ;;
3634    */) ;;
3635    *) as_dir=$as_dir/ ;;
3636  esac
3637    for ac_exec_ext in '' $ac_executable_extensions; do
3638  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3639    ac_cv_prog_ac_ct_CC="$ac_prog"
3640    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3641    break 2
3642  fi
3643done
3644  done
3645IFS=$as_save_IFS
3646
3647fi ;;
3648esac
3649fi
3650ac_ct_CC=$ac_cv_prog_ac_ct_CC
3651if test -n "$ac_ct_CC"; then
3652  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3653printf "%s\n" "$ac_ct_CC" >&6; }
3654else
3655  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656printf "%s\n" "no" >&6; }
3657fi
3658
3659
3660  test -n "$ac_ct_CC" && break
3661done
3662
3663  if test "x$ac_ct_CC" = x; then
3664    CC=""
3665  else
3666    case $cross_compiling:$ac_tool_warned in
3667yes:)
3668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3669printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3670ac_tool_warned=yes ;;
3671esac
3672    CC=$ac_ct_CC
3673  fi
3674fi
3675
3676fi
3677if test -z "$CC"; then
3678  if test -n "$ac_tool_prefix"; then
3679  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3680set dummy ${ac_tool_prefix}clang; ac_word=$2
3681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3682printf %s "checking for $ac_word... " >&6; }
3683if test ${ac_cv_prog_CC+y}
3684then :
3685  printf %s "(cached) " >&6
3686else case e in #(
3687  e) if test -n "$CC"; then
3688  ac_cv_prog_CC="$CC" # Let the user override the test.
3689else
3690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691for as_dir in $PATH
3692do
3693  IFS=$as_save_IFS
3694  case $as_dir in #(((
3695    '') as_dir=./ ;;
3696    */) ;;
3697    *) as_dir=$as_dir/ ;;
3698  esac
3699    for ac_exec_ext in '' $ac_executable_extensions; do
3700  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3701    ac_cv_prog_CC="${ac_tool_prefix}clang"
3702    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3703    break 2
3704  fi
3705done
3706  done
3707IFS=$as_save_IFS
3708
3709fi ;;
3710esac
3711fi
3712CC=$ac_cv_prog_CC
3713if test -n "$CC"; then
3714  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3715printf "%s\n" "$CC" >&6; }
3716else
3717  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718printf "%s\n" "no" >&6; }
3719fi
3720
3721
3722fi
3723if test -z "$ac_cv_prog_CC"; then
3724  ac_ct_CC=$CC
3725  # Extract the first word of "clang", so it can be a program name with args.
3726set dummy clang; ac_word=$2
3727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3728printf %s "checking for $ac_word... " >&6; }
3729if test ${ac_cv_prog_ac_ct_CC+y}
3730then :
3731  printf %s "(cached) " >&6
3732else case e in #(
3733  e) if test -n "$ac_ct_CC"; then
3734  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3735else
3736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737for as_dir in $PATH
3738do
3739  IFS=$as_save_IFS
3740  case $as_dir in #(((
3741    '') as_dir=./ ;;
3742    */) ;;
3743    *) as_dir=$as_dir/ ;;
3744  esac
3745    for ac_exec_ext in '' $ac_executable_extensions; do
3746  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3747    ac_cv_prog_ac_ct_CC="clang"
3748    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3749    break 2
3750  fi
3751done
3752  done
3753IFS=$as_save_IFS
3754
3755fi ;;
3756esac
3757fi
3758ac_ct_CC=$ac_cv_prog_ac_ct_CC
3759if test -n "$ac_ct_CC"; then
3760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3761printf "%s\n" "$ac_ct_CC" >&6; }
3762else
3763  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764printf "%s\n" "no" >&6; }
3765fi
3766
3767  if test "x$ac_ct_CC" = x; then
3768    CC=""
3769  else
3770    case $cross_compiling:$ac_tool_warned in
3771yes:)
3772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3773printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3774ac_tool_warned=yes ;;
3775esac
3776    CC=$ac_ct_CC
3777  fi
3778else
3779  CC="$ac_cv_prog_CC"
3780fi
3781
3782fi
3783
3784
3785test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3786printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3787as_fn_error $? "no acceptable C compiler found in \$PATH
3788See 'config.log' for more details" "$LINENO" 5; }
3789
3790# Provide some information about the compiler.
3791printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3792set X $ac_compile
3793ac_compiler=$2
3794for ac_option in --version -v -V -qversion -version; do
3795  { { ac_try="$ac_compiler $ac_option >&5"
3796case "(($ac_try" in
3797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798  *) ac_try_echo=$ac_try;;
3799esac
3800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3801printf "%s\n" "$ac_try_echo"; } >&5
3802  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3803  ac_status=$?
3804  if test -s conftest.err; then
3805    sed '10a\
3806... rest of stderr output deleted ...
3807         10q' conftest.err >conftest.er1
3808    cat conftest.er1 >&5
3809  fi
3810  rm -f conftest.er1 conftest.err
3811  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3812  test $ac_status = 0; }
3813done
3814
3815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816/* end confdefs.h.  */
3817
3818int
3819main (void)
3820{
3821
3822  ;
3823  return 0;
3824}
3825_ACEOF
3826ac_clean_files_save=$ac_clean_files
3827ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3828# Try to create an executable without -o first, disregard a.out.
3829# It will help us diagnose broken compilers, and finding out an intuition
3830# of exeext.
3831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3832printf %s "checking whether the C compiler works... " >&6; }
3833ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3834
3835# The possible output files:
3836ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3837
3838ac_rmfiles=
3839for ac_file in $ac_files
3840do
3841  case $ac_file in
3842    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3843    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3844  esac
3845done
3846rm -f $ac_rmfiles
3847
3848if { { ac_try="$ac_link_default"
3849case "(($ac_try" in
3850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3851  *) ac_try_echo=$ac_try;;
3852esac
3853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3854printf "%s\n" "$ac_try_echo"; } >&5
3855  (eval "$ac_link_default") 2>&5
3856  ac_status=$?
3857  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3858  test $ac_status = 0; }
3859then :
3860  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3861# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3862# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3863# so that the user can short-circuit this test for compilers unknown to
3864# Autoconf.
3865for ac_file in $ac_files ''
3866do
3867  test -f "$ac_file" || continue
3868  case $ac_file in
3869    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3870	;;
3871    [ab].out )
3872	# We found the default executable, but exeext='' is most
3873	# certainly right.
3874	break;;
3875    *.* )
3876	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3877	then :; else
3878	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3879	fi
3880	# We set ac_cv_exeext here because the later test for it is not
3881	# safe: cross compilers may not add the suffix if given an '-o'
3882	# argument, so we may need to know it at that point already.
3883	# Even if this section looks crufty: it has the advantage of
3884	# actually working.
3885	break;;
3886    * )
3887	break;;
3888  esac
3889done
3890test "$ac_cv_exeext" = no && ac_cv_exeext=
3891
3892else case e in #(
3893  e) ac_file='' ;;
3894esac
3895fi
3896if test -z "$ac_file"
3897then :
3898  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3899printf "%s\n" "no" >&6; }
3900printf "%s\n" "$as_me: failed program was:" >&5
3901sed 's/^/| /' conftest.$ac_ext >&5
3902
3903{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3904printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3905as_fn_error 77 "C compiler cannot create executables
3906See 'config.log' for more details" "$LINENO" 5; }
3907else case e in #(
3908  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3909printf "%s\n" "yes" >&6; } ;;
3910esac
3911fi
3912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3913printf %s "checking for C compiler default output file name... " >&6; }
3914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3915printf "%s\n" "$ac_file" >&6; }
3916ac_exeext=$ac_cv_exeext
3917
3918rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3919ac_clean_files=$ac_clean_files_save
3920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3921printf %s "checking for suffix of executables... " >&6; }
3922if { { ac_try="$ac_link"
3923case "(($ac_try" in
3924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925  *) ac_try_echo=$ac_try;;
3926esac
3927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3928printf "%s\n" "$ac_try_echo"; } >&5
3929  (eval "$ac_link") 2>&5
3930  ac_status=$?
3931  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3932  test $ac_status = 0; }
3933then :
3934  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3935# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
3936# work properly (i.e., refer to 'conftest.exe'), while it won't with
3937# 'rm'.
3938for ac_file in conftest.exe conftest conftest.*; do
3939  test -f "$ac_file" || continue
3940  case $ac_file in
3941    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3942    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3943	  break;;
3944    * ) break;;
3945  esac
3946done
3947else case e in #(
3948  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3949printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3950as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3951See 'config.log' for more details" "$LINENO" 5; } ;;
3952esac
3953fi
3954rm -f conftest conftest$ac_cv_exeext
3955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3956printf "%s\n" "$ac_cv_exeext" >&6; }
3957
3958rm -f conftest.$ac_ext
3959EXEEXT=$ac_cv_exeext
3960ac_exeext=$EXEEXT
3961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962/* end confdefs.h.  */
3963#include <stdio.h>
3964int
3965main (void)
3966{
3967FILE *f = fopen ("conftest.out", "w");
3968 if (!f)
3969  return 1;
3970 return ferror (f) || fclose (f) != 0;
3971
3972  ;
3973  return 0;
3974}
3975_ACEOF
3976ac_clean_files="$ac_clean_files conftest.out"
3977# Check that the compiler produces executables we can run.  If not, either
3978# the compiler is broken, or we cross compile.
3979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3980printf %s "checking whether we are cross compiling... " >&6; }
3981if test "$cross_compiling" != yes; then
3982  { { ac_try="$ac_link"
3983case "(($ac_try" in
3984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3985  *) ac_try_echo=$ac_try;;
3986esac
3987eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3988printf "%s\n" "$ac_try_echo"; } >&5
3989  (eval "$ac_link") 2>&5
3990  ac_status=$?
3991  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3992  test $ac_status = 0; }
3993  if { ac_try='./conftest$ac_cv_exeext'
3994  { { case "(($ac_try" in
3995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3996  *) ac_try_echo=$ac_try;;
3997esac
3998eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3999printf "%s\n" "$ac_try_echo"; } >&5
4000  (eval "$ac_try") 2>&5
4001  ac_status=$?
4002  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4003  test $ac_status = 0; }; }; then
4004    cross_compiling=no
4005  else
4006    if test "$cross_compiling" = maybe; then
4007	cross_compiling=yes
4008    else
4009	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4010printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4011as_fn_error 77 "cannot run C compiled programs.
4012If you meant to cross compile, use '--host'.
4013See 'config.log' for more details" "$LINENO" 5; }
4014    fi
4015  fi
4016fi
4017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4018printf "%s\n" "$cross_compiling" >&6; }
4019
4020rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4021  conftest.o conftest.obj conftest.out
4022ac_clean_files=$ac_clean_files_save
4023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4024printf %s "checking for suffix of object files... " >&6; }
4025if test ${ac_cv_objext+y}
4026then :
4027  printf %s "(cached) " >&6
4028else case e in #(
4029  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030/* end confdefs.h.  */
4031
4032int
4033main (void)
4034{
4035
4036  ;
4037  return 0;
4038}
4039_ACEOF
4040rm -f conftest.o conftest.obj
4041if { { ac_try="$ac_compile"
4042case "(($ac_try" in
4043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044  *) ac_try_echo=$ac_try;;
4045esac
4046eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4047printf "%s\n" "$ac_try_echo"; } >&5
4048  (eval "$ac_compile") 2>&5
4049  ac_status=$?
4050  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4051  test $ac_status = 0; }
4052then :
4053  for ac_file in conftest.o conftest.obj conftest.*; do
4054  test -f "$ac_file" || continue;
4055  case $ac_file in
4056    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4057    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4058       break;;
4059  esac
4060done
4061else case e in #(
4062  e) printf "%s\n" "$as_me: failed program was:" >&5
4063sed 's/^/| /' conftest.$ac_ext >&5
4064
4065{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4066printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4067as_fn_error $? "cannot compute suffix of object files: cannot compile
4068See 'config.log' for more details" "$LINENO" 5; } ;;
4069esac
4070fi
4071rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4072esac
4073fi
4074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4075printf "%s\n" "$ac_cv_objext" >&6; }
4076OBJEXT=$ac_cv_objext
4077ac_objext=$OBJEXT
4078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4079printf %s "checking whether the compiler supports GNU C... " >&6; }
4080if test ${ac_cv_c_compiler_gnu+y}
4081then :
4082  printf %s "(cached) " >&6
4083else case e in #(
4084  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085/* end confdefs.h.  */
4086
4087int
4088main (void)
4089{
4090#ifndef __GNUC__
4091       choke me
4092#endif
4093
4094  ;
4095  return 0;
4096}
4097_ACEOF
4098if ac_fn_c_try_compile "$LINENO"
4099then :
4100  ac_compiler_gnu=yes
4101else case e in #(
4102  e) ac_compiler_gnu=no ;;
4103esac
4104fi
4105rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4106ac_cv_c_compiler_gnu=$ac_compiler_gnu
4107 ;;
4108esac
4109fi
4110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4111printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4112ac_compiler_gnu=$ac_cv_c_compiler_gnu
4113
4114if test $ac_compiler_gnu = yes; then
4115  GCC=yes
4116else
4117  GCC=
4118fi
4119ac_test_CFLAGS=${CFLAGS+y}
4120ac_save_CFLAGS=$CFLAGS
4121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4122printf %s "checking whether $CC accepts -g... " >&6; }
4123if test ${ac_cv_prog_cc_g+y}
4124then :
4125  printf %s "(cached) " >&6
4126else case e in #(
4127  e) ac_save_c_werror_flag=$ac_c_werror_flag
4128   ac_c_werror_flag=yes
4129   ac_cv_prog_cc_g=no
4130   CFLAGS="-g"
4131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132/* end confdefs.h.  */
4133
4134int
4135main (void)
4136{
4137
4138  ;
4139  return 0;
4140}
4141_ACEOF
4142if ac_fn_c_try_compile "$LINENO"
4143then :
4144  ac_cv_prog_cc_g=yes
4145else case e in #(
4146  e) CFLAGS=""
4147      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148/* end confdefs.h.  */
4149
4150int
4151main (void)
4152{
4153
4154  ;
4155  return 0;
4156}
4157_ACEOF
4158if ac_fn_c_try_compile "$LINENO"
4159then :
4160
4161else case e in #(
4162  e) ac_c_werror_flag=$ac_save_c_werror_flag
4163	 CFLAGS="-g"
4164	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165/* end confdefs.h.  */
4166
4167int
4168main (void)
4169{
4170
4171  ;
4172  return 0;
4173}
4174_ACEOF
4175if ac_fn_c_try_compile "$LINENO"
4176then :
4177  ac_cv_prog_cc_g=yes
4178fi
4179rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4180esac
4181fi
4182rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4183esac
4184fi
4185rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4186   ac_c_werror_flag=$ac_save_c_werror_flag ;;
4187esac
4188fi
4189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4190printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4191if test $ac_test_CFLAGS; then
4192  CFLAGS=$ac_save_CFLAGS
4193elif test $ac_cv_prog_cc_g = yes; then
4194  if test "$GCC" = yes; then
4195    CFLAGS="-g -O2"
4196  else
4197    CFLAGS="-g"
4198  fi
4199else
4200  if test "$GCC" = yes; then
4201    CFLAGS="-O2"
4202  else
4203    CFLAGS=
4204  fi
4205fi
4206ac_prog_cc_stdc=no
4207if test x$ac_prog_cc_stdc = xno
4208then :
4209  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4210printf %s "checking for $CC option to enable C11 features... " >&6; }
4211if test ${ac_cv_prog_cc_c11+y}
4212then :
4213  printf %s "(cached) " >&6
4214else case e in #(
4215  e) ac_cv_prog_cc_c11=no
4216ac_save_CC=$CC
4217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218/* end confdefs.h.  */
4219$ac_c_conftest_c11_program
4220_ACEOF
4221for ac_arg in '' -std=gnu11
4222do
4223  CC="$ac_save_CC $ac_arg"
4224  if ac_fn_c_try_compile "$LINENO"
4225then :
4226  ac_cv_prog_cc_c11=$ac_arg
4227fi
4228rm -f core conftest.err conftest.$ac_objext conftest.beam
4229  test "x$ac_cv_prog_cc_c11" != "xno" && break
4230done
4231rm -f conftest.$ac_ext
4232CC=$ac_save_CC ;;
4233esac
4234fi
4235
4236if test "x$ac_cv_prog_cc_c11" = xno
4237then :
4238  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4239printf "%s\n" "unsupported" >&6; }
4240else case e in #(
4241  e) if test "x$ac_cv_prog_cc_c11" = x
4242then :
4243  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4244printf "%s\n" "none needed" >&6; }
4245else case e in #(
4246  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4247printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4248     CC="$CC $ac_cv_prog_cc_c11" ;;
4249esac
4250fi
4251  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4252  ac_prog_cc_stdc=c11 ;;
4253esac
4254fi
4255fi
4256if test x$ac_prog_cc_stdc = xno
4257then :
4258  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4259printf %s "checking for $CC option to enable C99 features... " >&6; }
4260if test ${ac_cv_prog_cc_c99+y}
4261then :
4262  printf %s "(cached) " >&6
4263else case e in #(
4264  e) ac_cv_prog_cc_c99=no
4265ac_save_CC=$CC
4266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267/* end confdefs.h.  */
4268$ac_c_conftest_c99_program
4269_ACEOF
4270for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4271do
4272  CC="$ac_save_CC $ac_arg"
4273  if ac_fn_c_try_compile "$LINENO"
4274then :
4275  ac_cv_prog_cc_c99=$ac_arg
4276fi
4277rm -f core conftest.err conftest.$ac_objext conftest.beam
4278  test "x$ac_cv_prog_cc_c99" != "xno" && break
4279done
4280rm -f conftest.$ac_ext
4281CC=$ac_save_CC ;;
4282esac
4283fi
4284
4285if test "x$ac_cv_prog_cc_c99" = xno
4286then :
4287  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4288printf "%s\n" "unsupported" >&6; }
4289else case e in #(
4290  e) if test "x$ac_cv_prog_cc_c99" = x
4291then :
4292  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4293printf "%s\n" "none needed" >&6; }
4294else case e in #(
4295  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4296printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4297     CC="$CC $ac_cv_prog_cc_c99" ;;
4298esac
4299fi
4300  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4301  ac_prog_cc_stdc=c99 ;;
4302esac
4303fi
4304fi
4305if test x$ac_prog_cc_stdc = xno
4306then :
4307  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4308printf %s "checking for $CC option to enable C89 features... " >&6; }
4309if test ${ac_cv_prog_cc_c89+y}
4310then :
4311  printf %s "(cached) " >&6
4312else case e in #(
4313  e) ac_cv_prog_cc_c89=no
4314ac_save_CC=$CC
4315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316/* end confdefs.h.  */
4317$ac_c_conftest_c89_program
4318_ACEOF
4319for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4320do
4321  CC="$ac_save_CC $ac_arg"
4322  if ac_fn_c_try_compile "$LINENO"
4323then :
4324  ac_cv_prog_cc_c89=$ac_arg
4325fi
4326rm -f core conftest.err conftest.$ac_objext conftest.beam
4327  test "x$ac_cv_prog_cc_c89" != "xno" && break
4328done
4329rm -f conftest.$ac_ext
4330CC=$ac_save_CC ;;
4331esac
4332fi
4333
4334if test "x$ac_cv_prog_cc_c89" = xno
4335then :
4336  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4337printf "%s\n" "unsupported" >&6; }
4338else case e in #(
4339  e) if test "x$ac_cv_prog_cc_c89" = x
4340then :
4341  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4342printf "%s\n" "none needed" >&6; }
4343else case e in #(
4344  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4345printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4346     CC="$CC $ac_cv_prog_cc_c89" ;;
4347esac
4348fi
4349  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4350  ac_prog_cc_stdc=c89 ;;
4351esac
4352fi
4353fi
4354
4355ac_ext=c
4356ac_cpp='$CPP $CPPFLAGS'
4357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4359ac_compiler_gnu=$ac_cv_c_compiler_gnu
4360
4361
4362  ac_ext=c
4363ac_cpp='$CPP $CPPFLAGS'
4364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4366ac_compiler_gnu=$ac_cv_c_compiler_gnu
4367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4368printf %s "checking whether $CC understands -c and -o together... " >&6; }
4369if test ${am_cv_prog_cc_c_o+y}
4370then :
4371  printf %s "(cached) " >&6
4372else case e in #(
4373  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374/* end confdefs.h.  */
4375
4376int
4377main (void)
4378{
4379
4380  ;
4381  return 0;
4382}
4383_ACEOF
4384  # Make sure it works both with $CC and with simple cc.
4385  # Following AC_PROG_CC_C_O, we do the test twice because some
4386  # compilers refuse to overwrite an existing .o file with -o,
4387  # though they will create one.
4388  am_cv_prog_cc_c_o=yes
4389  for am_i in 1 2; do
4390    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4391   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4392   ac_status=$?
4393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394   (exit $ac_status); } \
4395         && test -f conftest2.$ac_objext; then
4396      : OK
4397    else
4398      am_cv_prog_cc_c_o=no
4399      break
4400    fi
4401  done
4402  rm -f core conftest*
4403  unset am_i ;;
4404esac
4405fi
4406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4407printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4408if test "$am_cv_prog_cc_c_o" != yes; then
4409   # Losing compiler, so override with the script.
4410   # FIXME: It is wrong to rewrite CC.
4411   # But if we don't then we get into trouble of one sort or another.
4412   # A longer-term fix would be to have automake use am__CC in this case,
4413   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4414   CC="$am_aux_dir/compile $CC"
4415fi
4416ac_ext=c
4417ac_cpp='$CPP $CPPFLAGS'
4418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4420ac_compiler_gnu=$ac_cv_c_compiler_gnu
4421
4422
4423depcc="$CC"   am_compiler_list=
4424
4425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4426printf %s "checking dependency style of $depcc... " >&6; }
4427if test ${am_cv_CC_dependencies_compiler_type+y}
4428then :
4429  printf %s "(cached) " >&6
4430else case e in #(
4431  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4432  # We make a subdir and do the tests there.  Otherwise we can end up
4433  # making bogus files that we don't know about and never remove.  For
4434  # instance it was reported that on HP-UX the gcc test will end up
4435  # making a dummy file named 'D' -- because '-MD' means "put the output
4436  # in D".
4437  rm -rf conftest.dir
4438  mkdir conftest.dir
4439  # Copy depcomp to subdir because otherwise we won't find it if we're
4440  # using a relative directory.
4441  cp "$am_depcomp" conftest.dir
4442  cd conftest.dir
4443  # We will build objects and dependencies in a subdirectory because
4444  # it helps to detect inapplicable dependency modes.  For instance
4445  # both Tru64's cc and ICC support -MD to output dependencies as a
4446  # side effect of compilation, but ICC will put the dependencies in
4447  # the current directory while Tru64 will put them in the object
4448  # directory.
4449  mkdir sub
4450
4451  am_cv_CC_dependencies_compiler_type=none
4452  if test "$am_compiler_list" = ""; then
4453     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4454  fi
4455  am__universal=false
4456  case " $depcc " in #(
4457     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4458     esac
4459
4460  for depmode in $am_compiler_list; do
4461    # Setup a source with many dependencies, because some compilers
4462    # like to wrap large dependency lists on column 80 (with \), and
4463    # we should not choose a depcomp mode which is confused by this.
4464    #
4465    # We need to recreate these files for each test, as the compiler may
4466    # overwrite some of them when testing with obscure command lines.
4467    # This happens at least with the AIX C compiler.
4468    : > sub/conftest.c
4469    for i in 1 2 3 4 5 6; do
4470      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4471      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4472      # Solaris 10 /bin/sh.
4473      echo '/* dummy */' > sub/conftst$i.h
4474    done
4475    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4476
4477    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4478    # mode.  It turns out that the SunPro C++ compiler does not properly
4479    # handle '-M -o', and we need to detect this.  Also, some Intel
4480    # versions had trouble with output in subdirs.
4481    am__obj=sub/conftest.${OBJEXT-o}
4482    am__minus_obj="-o $am__obj"
4483    case $depmode in
4484    gcc)
4485      # This depmode causes a compiler race in universal mode.
4486      test "$am__universal" = false || continue
4487      ;;
4488    nosideeffect)
4489      # After this tag, mechanisms are not by side-effect, so they'll
4490      # only be used when explicitly requested.
4491      if test "x$enable_dependency_tracking" = xyes; then
4492	continue
4493      else
4494	break
4495      fi
4496      ;;
4497    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4498      # This compiler won't grok '-c -o', but also, the minuso test has
4499      # not run yet.  These depmodes are late enough in the game, and
4500      # so weak that their functioning should not be impacted.
4501      am__obj=conftest.${OBJEXT-o}
4502      am__minus_obj=
4503      ;;
4504    none) break ;;
4505    esac
4506    if depmode=$depmode \
4507       source=sub/conftest.c object=$am__obj \
4508       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4509       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4510         >/dev/null 2>conftest.err &&
4511       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4512       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4513       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4514       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4515      # icc doesn't choke on unknown options, it will just issue warnings
4516      # or remarks (even with -Werror).  So we grep stderr for any message
4517      # that says an option was ignored or not supported.
4518      # When given -MP, icc 7.0 and 7.1 complain thusly:
4519      #   icc: Command line warning: ignoring option '-M'; no argument required
4520      # The diagnosis changed in icc 8.0:
4521      #   icc: Command line remark: option '-MP' not supported
4522      if (grep 'ignoring option' conftest.err ||
4523          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4524        am_cv_CC_dependencies_compiler_type=$depmode
4525        break
4526      fi
4527    fi
4528  done
4529
4530  cd ..
4531  rm -rf conftest.dir
4532else
4533  am_cv_CC_dependencies_compiler_type=none
4534fi
4535 ;;
4536esac
4537fi
4538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4539printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4540CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4541
4542 if
4543  test "x$enable_dependency_tracking" != xno \
4544  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4545  am__fastdepCC_TRUE=
4546  am__fastdepCC_FALSE='#'
4547else
4548  am__fastdepCC_TRUE='#'
4549  am__fastdepCC_FALSE=
4550fi
4551
4552
4553
4554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4555printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4556if test ${ac_cv_c_undeclared_builtin_options+y}
4557then :
4558  printf %s "(cached) " >&6
4559else case e in #(
4560  e) ac_save_CFLAGS=$CFLAGS
4561   ac_cv_c_undeclared_builtin_options='cannot detect'
4562   for ac_arg in '' -fno-builtin; do
4563     CFLAGS="$ac_save_CFLAGS $ac_arg"
4564     # This test program should *not* compile successfully.
4565     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566/* end confdefs.h.  */
4567
4568int
4569main (void)
4570{
4571(void) strchr;
4572  ;
4573  return 0;
4574}
4575_ACEOF
4576if ac_fn_c_try_compile "$LINENO"
4577then :
4578
4579else case e in #(
4580  e) # This test program should compile successfully.
4581        # No library function is consistently available on
4582        # freestanding implementations, so test against a dummy
4583        # declaration.  Include always-available headers on the
4584        # off chance that they somehow elicit warnings.
4585        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586/* end confdefs.h.  */
4587#include <float.h>
4588#include <limits.h>
4589#include <stdarg.h>
4590#include <stddef.h>
4591extern void ac_decl (int, char *);
4592
4593int
4594main (void)
4595{
4596(void) ac_decl (0, (char *) 0);
4597  (void) ac_decl;
4598
4599  ;
4600  return 0;
4601}
4602_ACEOF
4603if ac_fn_c_try_compile "$LINENO"
4604then :
4605  if test x"$ac_arg" = x
4606then :
4607  ac_cv_c_undeclared_builtin_options='none needed'
4608else case e in #(
4609  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4610esac
4611fi
4612          break
4613fi
4614rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4615esac
4616fi
4617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4618    done
4619    CFLAGS=$ac_save_CFLAGS
4620   ;;
4621esac
4622fi
4623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4624printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4625  case $ac_cv_c_undeclared_builtin_options in #(
4626  'cannot detect') :
4627    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4628printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4629as_fn_error $? "cannot make $CC report undeclared builtins
4630See 'config.log' for more details" "$LINENO" 5; } ;; #(
4631  'none needed') :
4632    ac_c_undeclared_builtin_options='' ;; #(
4633  *) :
4634    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4635esac
4636
4637ac_header= ac_cache=
4638for ac_item in $ac_header_c_list
4639do
4640  if test $ac_cache; then
4641    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4642    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4643      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4644    fi
4645    ac_header= ac_cache=
4646  elif test $ac_header; then
4647    ac_cache=$ac_item
4648  else
4649    ac_header=$ac_item
4650  fi
4651done
4652
4653
4654
4655
4656
4657
4658
4659
4660if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4661then :
4662
4663printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4664
4665fi
4666
4667
4668
4669
4670ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4671if test "x$ac_cv_have_decl___clang__" = xyes
4672then :
4673  CLANGCC="yes"
4674else case e in #(
4675  e) CLANGCC="no" ;;
4676esac
4677fi
4678ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4679if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4680then :
4681  INTELCC="yes"
4682else case e in #(
4683  e) INTELCC="no" ;;
4684esac
4685fi
4686ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4687if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4688then :
4689  SUNCC="yes"
4690else case e in #(
4691  e) SUNCC="no" ;;
4692esac
4693fi
4694
4695
4696
4697
4698
4699
4700
4701
4702if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4703	if test -n "$ac_tool_prefix"; then
4704  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4705set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4707printf %s "checking for $ac_word... " >&6; }
4708if test ${ac_cv_path_PKG_CONFIG+y}
4709then :
4710  printf %s "(cached) " >&6
4711else case e in #(
4712  e) case $PKG_CONFIG in
4713  [\\/]* | ?:[\\/]*)
4714  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4715  ;;
4716  *)
4717  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718for as_dir in $PATH
4719do
4720  IFS=$as_save_IFS
4721  case $as_dir in #(((
4722    '') as_dir=./ ;;
4723    */) ;;
4724    *) as_dir=$as_dir/ ;;
4725  esac
4726    for ac_exec_ext in '' $ac_executable_extensions; do
4727  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4728    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4729    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4730    break 2
4731  fi
4732done
4733  done
4734IFS=$as_save_IFS
4735
4736  ;;
4737esac ;;
4738esac
4739fi
4740PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4741if test -n "$PKG_CONFIG"; then
4742  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4743printf "%s\n" "$PKG_CONFIG" >&6; }
4744else
4745  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746printf "%s\n" "no" >&6; }
4747fi
4748
4749
4750fi
4751if test -z "$ac_cv_path_PKG_CONFIG"; then
4752  ac_pt_PKG_CONFIG=$PKG_CONFIG
4753  # Extract the first word of "pkg-config", so it can be a program name with args.
4754set dummy pkg-config; ac_word=$2
4755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756printf %s "checking for $ac_word... " >&6; }
4757if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4758then :
4759  printf %s "(cached) " >&6
4760else case e in #(
4761  e) case $ac_pt_PKG_CONFIG in
4762  [\\/]* | ?:[\\/]*)
4763  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4764  ;;
4765  *)
4766  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767for as_dir in $PATH
4768do
4769  IFS=$as_save_IFS
4770  case $as_dir in #(((
4771    '') as_dir=./ ;;
4772    */) ;;
4773    *) as_dir=$as_dir/ ;;
4774  esac
4775    for ac_exec_ext in '' $ac_executable_extensions; do
4776  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4777    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4778    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4779    break 2
4780  fi
4781done
4782  done
4783IFS=$as_save_IFS
4784
4785  ;;
4786esac ;;
4787esac
4788fi
4789ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4790if test -n "$ac_pt_PKG_CONFIG"; then
4791  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4792printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4793else
4794  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795printf "%s\n" "no" >&6; }
4796fi
4797
4798  if test "x$ac_pt_PKG_CONFIG" = x; then
4799    PKG_CONFIG=""
4800  else
4801    case $cross_compiling:$ac_tool_warned in
4802yes:)
4803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4804printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4805ac_tool_warned=yes ;;
4806esac
4807    PKG_CONFIG=$ac_pt_PKG_CONFIG
4808  fi
4809else
4810  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4811fi
4812
4813fi
4814if test -n "$PKG_CONFIG"; then
4815	_pkg_min_version=0.9.0
4816	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4817printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4818	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4819		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4820printf "%s\n" "yes" >&6; }
4821	else
4822		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4823printf "%s\n" "no" >&6; }
4824		PKG_CONFIG=""
4825	fi
4826fi
4827
4828
4829  # Make sure we can run config.sub.
4830$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4831  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4832
4833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4834printf %s "checking build system type... " >&6; }
4835if test ${ac_cv_build+y}
4836then :
4837  printf %s "(cached) " >&6
4838else case e in #(
4839  e) ac_build_alias=$build_alias
4840test "x$ac_build_alias" = x &&
4841  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4842test "x$ac_build_alias" = x &&
4843  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4844ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4845  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4846 ;;
4847esac
4848fi
4849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4850printf "%s\n" "$ac_cv_build" >&6; }
4851case $ac_cv_build in
4852*-*-*) ;;
4853*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4854esac
4855build=$ac_cv_build
4856ac_save_IFS=$IFS; IFS='-'
4857set x $ac_cv_build
4858shift
4859build_cpu=$1
4860build_vendor=$2
4861shift; shift
4862# Remember, the first character of IFS is used to create $*,
4863# except with old shells:
4864build_os=$*
4865IFS=$ac_save_IFS
4866case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4867
4868
4869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4870printf %s "checking host system type... " >&6; }
4871if test ${ac_cv_host+y}
4872then :
4873  printf %s "(cached) " >&6
4874else case e in #(
4875  e) if test "x$host_alias" = x; then
4876  ac_cv_host=$ac_cv_build
4877else
4878  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4879    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4880fi
4881 ;;
4882esac
4883fi
4884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4885printf "%s\n" "$ac_cv_host" >&6; }
4886case $ac_cv_host in
4887*-*-*) ;;
4888*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4889esac
4890host=$ac_cv_host
4891ac_save_IFS=$IFS; IFS='-'
4892set x $ac_cv_host
4893shift
4894host_cpu=$1
4895host_vendor=$2
4896shift; shift
4897# Remember, the first character of IFS is used to create $*,
4898# except with old shells:
4899host_os=$*
4900IFS=$ac_save_IFS
4901case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4902
4903
4904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4905printf %s "checking for a sed that does not truncate output... " >&6; }
4906if test ${ac_cv_path_SED+y}
4907then :
4908  printf %s "(cached) " >&6
4909else case e in #(
4910  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4911     for ac_i in 1 2 3 4 5 6 7; do
4912       ac_script="$ac_script$as_nl$ac_script"
4913     done
4914     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4915     { ac_script=; unset ac_script;}
4916     if test -z "$SED"; then
4917  ac_path_SED_found=false
4918  # Loop through the user's path and test for each of PROGNAME-LIST
4919  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920for as_dir in $PATH
4921do
4922  IFS=$as_save_IFS
4923  case $as_dir in #(((
4924    '') as_dir=./ ;;
4925    */) ;;
4926    *) as_dir=$as_dir/ ;;
4927  esac
4928    for ac_prog in sed gsed
4929   do
4930    for ac_exec_ext in '' $ac_executable_extensions; do
4931      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4932      as_fn_executable_p "$ac_path_SED" || continue
4933# Check for GNU ac_path_SED and select it if it is found.
4934  # Check for GNU $ac_path_SED
4935case `"$ac_path_SED" --version 2>&1` in #(
4936*GNU*)
4937  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4938#(
4939*)
4940  ac_count=0
4941  printf %s 0123456789 >"conftest.in"
4942  while :
4943  do
4944    cat "conftest.in" "conftest.in" >"conftest.tmp"
4945    mv "conftest.tmp" "conftest.in"
4946    cp "conftest.in" "conftest.nl"
4947    printf "%s\n" '' >> "conftest.nl"
4948    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4949    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4950    as_fn_arith $ac_count + 1 && ac_count=$as_val
4951    if test $ac_count -gt ${ac_path_SED_max-0}; then
4952      # Best one so far, save it but keep looking for a better one
4953      ac_cv_path_SED="$ac_path_SED"
4954      ac_path_SED_max=$ac_count
4955    fi
4956    # 10*(2^10) chars as input seems more than enough
4957    test $ac_count -gt 10 && break
4958  done
4959  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4960esac
4961
4962      $ac_path_SED_found && break 3
4963    done
4964  done
4965  done
4966IFS=$as_save_IFS
4967  if test -z "$ac_cv_path_SED"; then
4968    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4969  fi
4970else
4971  ac_cv_path_SED=$SED
4972fi
4973 ;;
4974esac
4975fi
4976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4977printf "%s\n" "$ac_cv_path_SED" >&6; }
4978 SED="$ac_cv_path_SED"
4979  rm -f conftest.sed
4980
4981
4982
4983
4984
4985
4986# Check whether --enable-selective-werror was given.
4987if test ${enable_selective_werror+y}
4988then :
4989  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4990else case e in #(
4991  e) SELECTIVE_WERROR=yes ;;
4992esac
4993fi
4994
4995
4996
4997
4998
4999# -v is too short to test reliably with XORG_TESTSET_CFLAG
5000if test "x$SUNCC" = "xyes"; then
5001    BASE_CFLAGS="-v"
5002else
5003    BASE_CFLAGS=""
5004fi
5005
5006# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020xorg_testset_save_CFLAGS="$CFLAGS"
5021
5022if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5023	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5024	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5025printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5026if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5027then :
5028  printf %s "(cached) " >&6
5029else case e in #(
5030  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031/* end confdefs.h.  */
5032int i;
5033_ACEOF
5034if ac_fn_c_try_compile "$LINENO"
5035then :
5036  xorg_cv_cc_flag_unknown_warning_option=yes
5037else case e in #(
5038  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5039esac
5040fi
5041rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5042esac
5043fi
5044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5045printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5046	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5047	CFLAGS="$xorg_testset_save_CFLAGS"
5048fi
5049
5050if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5051	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5052		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5053	fi
5054	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5055	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5056printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5057if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5058then :
5059  printf %s "(cached) " >&6
5060else case e in #(
5061  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062/* end confdefs.h.  */
5063int i;
5064_ACEOF
5065if ac_fn_c_try_compile "$LINENO"
5066then :
5067  xorg_cv_cc_flag_unused_command_line_argument=yes
5068else case e in #(
5069  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5070esac
5071fi
5072rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5073esac
5074fi
5075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5076printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5077	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5078	CFLAGS="$xorg_testset_save_CFLAGS"
5079fi
5080
5081found="no"
5082
5083	if test $found = "no" ; then
5084		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5085			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5086		fi
5087
5088		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5089			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5090		fi
5091
5092		CFLAGS="$CFLAGS -Wall"
5093
5094		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5095printf %s "checking if $CC supports -Wall... " >&6; }
5096		cacheid=xorg_cv_cc_flag__Wall
5097		if eval test \${$cacheid+y}
5098then :
5099  printf %s "(cached) " >&6
5100else case e in #(
5101  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102/* end confdefs.h.  */
5103int i;
5104int
5105main (void)
5106{
5107
5108  ;
5109  return 0;
5110}
5111_ACEOF
5112if ac_fn_c_try_link "$LINENO"
5113then :
5114  eval $cacheid=yes
5115else case e in #(
5116  e) eval $cacheid=no ;;
5117esac
5118fi
5119rm -f core conftest.err conftest.$ac_objext conftest.beam \
5120    conftest$ac_exeext conftest.$ac_ext ;;
5121esac
5122fi
5123
5124
5125		CFLAGS="$xorg_testset_save_CFLAGS"
5126
5127		eval supported=\$$cacheid
5128		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5129printf "%s\n" "$supported" >&6; }
5130		if test "$supported" = "yes" ; then
5131			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5132			found="yes"
5133		fi
5134	fi
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150xorg_testset_save_CFLAGS="$CFLAGS"
5151
5152if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5153	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5154	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5155printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5156if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5157then :
5158  printf %s "(cached) " >&6
5159else case e in #(
5160  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161/* end confdefs.h.  */
5162int i;
5163_ACEOF
5164if ac_fn_c_try_compile "$LINENO"
5165then :
5166  xorg_cv_cc_flag_unknown_warning_option=yes
5167else case e in #(
5168  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5169esac
5170fi
5171rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5172esac
5173fi
5174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5175printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5176	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5177	CFLAGS="$xorg_testset_save_CFLAGS"
5178fi
5179
5180if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5181	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5182		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5183	fi
5184	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5185	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5186printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5187if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5188then :
5189  printf %s "(cached) " >&6
5190else case e in #(
5191  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192/* end confdefs.h.  */
5193int i;
5194_ACEOF
5195if ac_fn_c_try_compile "$LINENO"
5196then :
5197  xorg_cv_cc_flag_unused_command_line_argument=yes
5198else case e in #(
5199  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5200esac
5201fi
5202rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5203esac
5204fi
5205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5206printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5207	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5208	CFLAGS="$xorg_testset_save_CFLAGS"
5209fi
5210
5211found="no"
5212
5213	if test $found = "no" ; then
5214		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5215			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5216		fi
5217
5218		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5219			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5220		fi
5221
5222		CFLAGS="$CFLAGS -Wpointer-arith"
5223
5224		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5225printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5226		cacheid=xorg_cv_cc_flag__Wpointer_arith
5227		if eval test \${$cacheid+y}
5228then :
5229  printf %s "(cached) " >&6
5230else case e in #(
5231  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232/* end confdefs.h.  */
5233int i;
5234int
5235main (void)
5236{
5237
5238  ;
5239  return 0;
5240}
5241_ACEOF
5242if ac_fn_c_try_link "$LINENO"
5243then :
5244  eval $cacheid=yes
5245else case e in #(
5246  e) eval $cacheid=no ;;
5247esac
5248fi
5249rm -f core conftest.err conftest.$ac_objext conftest.beam \
5250    conftest$ac_exeext conftest.$ac_ext ;;
5251esac
5252fi
5253
5254
5255		CFLAGS="$xorg_testset_save_CFLAGS"
5256
5257		eval supported=\$$cacheid
5258		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5259printf "%s\n" "$supported" >&6; }
5260		if test "$supported" = "yes" ; then
5261			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5262			found="yes"
5263		fi
5264	fi
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280xorg_testset_save_CFLAGS="$CFLAGS"
5281
5282if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5283	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5284	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5285printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5286if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5287then :
5288  printf %s "(cached) " >&6
5289else case e in #(
5290  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291/* end confdefs.h.  */
5292int i;
5293_ACEOF
5294if ac_fn_c_try_compile "$LINENO"
5295then :
5296  xorg_cv_cc_flag_unknown_warning_option=yes
5297else case e in #(
5298  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5299esac
5300fi
5301rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5302esac
5303fi
5304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5305printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5306	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5307	CFLAGS="$xorg_testset_save_CFLAGS"
5308fi
5309
5310if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5311	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5312		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5313	fi
5314	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5315	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5316printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5317if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5318then :
5319  printf %s "(cached) " >&6
5320else case e in #(
5321  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322/* end confdefs.h.  */
5323int i;
5324_ACEOF
5325if ac_fn_c_try_compile "$LINENO"
5326then :
5327  xorg_cv_cc_flag_unused_command_line_argument=yes
5328else case e in #(
5329  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5330esac
5331fi
5332rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5333esac
5334fi
5335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5336printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5337	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5338	CFLAGS="$xorg_testset_save_CFLAGS"
5339fi
5340
5341found="no"
5342
5343	if test $found = "no" ; then
5344		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5345			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5346		fi
5347
5348		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5349			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5350		fi
5351
5352		CFLAGS="$CFLAGS -Wmissing-declarations"
5353
5354		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5355printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5356		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5357		if eval test \${$cacheid+y}
5358then :
5359  printf %s "(cached) " >&6
5360else case e in #(
5361  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5362/* end confdefs.h.  */
5363int i;
5364int
5365main (void)
5366{
5367
5368  ;
5369  return 0;
5370}
5371_ACEOF
5372if ac_fn_c_try_link "$LINENO"
5373then :
5374  eval $cacheid=yes
5375else case e in #(
5376  e) eval $cacheid=no ;;
5377esac
5378fi
5379rm -f core conftest.err conftest.$ac_objext conftest.beam \
5380    conftest$ac_exeext conftest.$ac_ext ;;
5381esac
5382fi
5383
5384
5385		CFLAGS="$xorg_testset_save_CFLAGS"
5386
5387		eval supported=\$$cacheid
5388		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5389printf "%s\n" "$supported" >&6; }
5390		if test "$supported" = "yes" ; then
5391			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5392			found="yes"
5393		fi
5394	fi
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410xorg_testset_save_CFLAGS="$CFLAGS"
5411
5412if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5413	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5414	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5415printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5416if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5417then :
5418  printf %s "(cached) " >&6
5419else case e in #(
5420  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421/* end confdefs.h.  */
5422int i;
5423_ACEOF
5424if ac_fn_c_try_compile "$LINENO"
5425then :
5426  xorg_cv_cc_flag_unknown_warning_option=yes
5427else case e in #(
5428  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5429esac
5430fi
5431rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5432esac
5433fi
5434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5435printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5436	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5437	CFLAGS="$xorg_testset_save_CFLAGS"
5438fi
5439
5440if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5441	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5442		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5443	fi
5444	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5445	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5446printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5447if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5448then :
5449  printf %s "(cached) " >&6
5450else case e in #(
5451  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452/* end confdefs.h.  */
5453int i;
5454_ACEOF
5455if ac_fn_c_try_compile "$LINENO"
5456then :
5457  xorg_cv_cc_flag_unused_command_line_argument=yes
5458else case e in #(
5459  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5460esac
5461fi
5462rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5463esac
5464fi
5465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5466printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5467	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5468	CFLAGS="$xorg_testset_save_CFLAGS"
5469fi
5470
5471found="no"
5472
5473	if test $found = "no" ; then
5474		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5475			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5476		fi
5477
5478		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5479			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5480		fi
5481
5482		CFLAGS="$CFLAGS -Wformat=2"
5483
5484		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5485printf %s "checking if $CC supports -Wformat=2... " >&6; }
5486		cacheid=xorg_cv_cc_flag__Wformat_2
5487		if eval test \${$cacheid+y}
5488then :
5489  printf %s "(cached) " >&6
5490else case e in #(
5491  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492/* end confdefs.h.  */
5493int i;
5494int
5495main (void)
5496{
5497
5498  ;
5499  return 0;
5500}
5501_ACEOF
5502if ac_fn_c_try_link "$LINENO"
5503then :
5504  eval $cacheid=yes
5505else case e in #(
5506  e) eval $cacheid=no ;;
5507esac
5508fi
5509rm -f core conftest.err conftest.$ac_objext conftest.beam \
5510    conftest$ac_exeext conftest.$ac_ext ;;
5511esac
5512fi
5513
5514
5515		CFLAGS="$xorg_testset_save_CFLAGS"
5516
5517		eval supported=\$$cacheid
5518		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5519printf "%s\n" "$supported" >&6; }
5520		if test "$supported" = "yes" ; then
5521			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5522			found="yes"
5523		fi
5524	fi
5525
5526	if test $found = "no" ; then
5527		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5528			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5529		fi
5530
5531		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5532			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5533		fi
5534
5535		CFLAGS="$CFLAGS -Wformat"
5536
5537		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5538printf %s "checking if $CC supports -Wformat... " >&6; }
5539		cacheid=xorg_cv_cc_flag__Wformat
5540		if eval test \${$cacheid+y}
5541then :
5542  printf %s "(cached) " >&6
5543else case e in #(
5544  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545/* end confdefs.h.  */
5546int i;
5547int
5548main (void)
5549{
5550
5551  ;
5552  return 0;
5553}
5554_ACEOF
5555if ac_fn_c_try_link "$LINENO"
5556then :
5557  eval $cacheid=yes
5558else case e in #(
5559  e) eval $cacheid=no ;;
5560esac
5561fi
5562rm -f core conftest.err conftest.$ac_objext conftest.beam \
5563    conftest$ac_exeext conftest.$ac_ext ;;
5564esac
5565fi
5566
5567
5568		CFLAGS="$xorg_testset_save_CFLAGS"
5569
5570		eval supported=\$$cacheid
5571		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5572printf "%s\n" "$supported" >&6; }
5573		if test "$supported" = "yes" ; then
5574			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5575			found="yes"
5576		fi
5577	fi
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595xorg_testset_save_CFLAGS="$CFLAGS"
5596
5597if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5598	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5599	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5600printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5601if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5602then :
5603  printf %s "(cached) " >&6
5604else case e in #(
5605  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606/* end confdefs.h.  */
5607int i;
5608_ACEOF
5609if ac_fn_c_try_compile "$LINENO"
5610then :
5611  xorg_cv_cc_flag_unknown_warning_option=yes
5612else case e in #(
5613  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5614esac
5615fi
5616rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5617esac
5618fi
5619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5620printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5621	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5622	CFLAGS="$xorg_testset_save_CFLAGS"
5623fi
5624
5625if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5626	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5627		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5628	fi
5629	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5630	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5631printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5632if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5633then :
5634  printf %s "(cached) " >&6
5635else case e in #(
5636  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637/* end confdefs.h.  */
5638int i;
5639_ACEOF
5640if ac_fn_c_try_compile "$LINENO"
5641then :
5642  xorg_cv_cc_flag_unused_command_line_argument=yes
5643else case e in #(
5644  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5645esac
5646fi
5647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5648esac
5649fi
5650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5651printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5652	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5653	CFLAGS="$xorg_testset_save_CFLAGS"
5654fi
5655
5656found="no"
5657
5658	if test $found = "no" ; then
5659		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5660			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5661		fi
5662
5663		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5664			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5665		fi
5666
5667		CFLAGS="$CFLAGS -Wstrict-prototypes"
5668
5669		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5670printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5671		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5672		if eval test \${$cacheid+y}
5673then :
5674  printf %s "(cached) " >&6
5675else case e in #(
5676  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677/* end confdefs.h.  */
5678int i;
5679int
5680main (void)
5681{
5682
5683  ;
5684  return 0;
5685}
5686_ACEOF
5687if ac_fn_c_try_link "$LINENO"
5688then :
5689  eval $cacheid=yes
5690else case e in #(
5691  e) eval $cacheid=no ;;
5692esac
5693fi
5694rm -f core conftest.err conftest.$ac_objext conftest.beam \
5695    conftest$ac_exeext conftest.$ac_ext ;;
5696esac
5697fi
5698
5699
5700		CFLAGS="$xorg_testset_save_CFLAGS"
5701
5702		eval supported=\$$cacheid
5703		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5704printf "%s\n" "$supported" >&6; }
5705		if test "$supported" = "yes" ; then
5706			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5707			found="yes"
5708		fi
5709	fi
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725xorg_testset_save_CFLAGS="$CFLAGS"
5726
5727if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5728	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5729	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5730printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5731if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5732then :
5733  printf %s "(cached) " >&6
5734else case e in #(
5735  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5736/* end confdefs.h.  */
5737int i;
5738_ACEOF
5739if ac_fn_c_try_compile "$LINENO"
5740then :
5741  xorg_cv_cc_flag_unknown_warning_option=yes
5742else case e in #(
5743  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5744esac
5745fi
5746rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5747esac
5748fi
5749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5750printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5751	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5752	CFLAGS="$xorg_testset_save_CFLAGS"
5753fi
5754
5755if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5756	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5757		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5758	fi
5759	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5760	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5761printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5762if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5763then :
5764  printf %s "(cached) " >&6
5765else case e in #(
5766  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767/* end confdefs.h.  */
5768int i;
5769_ACEOF
5770if ac_fn_c_try_compile "$LINENO"
5771then :
5772  xorg_cv_cc_flag_unused_command_line_argument=yes
5773else case e in #(
5774  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5775esac
5776fi
5777rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5778esac
5779fi
5780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5781printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5782	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5783	CFLAGS="$xorg_testset_save_CFLAGS"
5784fi
5785
5786found="no"
5787
5788	if test $found = "no" ; then
5789		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5790			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5791		fi
5792
5793		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5794			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5795		fi
5796
5797		CFLAGS="$CFLAGS -Wmissing-prototypes"
5798
5799		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5800printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5801		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5802		if eval test \${$cacheid+y}
5803then :
5804  printf %s "(cached) " >&6
5805else case e in #(
5806  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5807/* end confdefs.h.  */
5808int i;
5809int
5810main (void)
5811{
5812
5813  ;
5814  return 0;
5815}
5816_ACEOF
5817if ac_fn_c_try_link "$LINENO"
5818then :
5819  eval $cacheid=yes
5820else case e in #(
5821  e) eval $cacheid=no ;;
5822esac
5823fi
5824rm -f core conftest.err conftest.$ac_objext conftest.beam \
5825    conftest$ac_exeext conftest.$ac_ext ;;
5826esac
5827fi
5828
5829
5830		CFLAGS="$xorg_testset_save_CFLAGS"
5831
5832		eval supported=\$$cacheid
5833		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5834printf "%s\n" "$supported" >&6; }
5835		if test "$supported" = "yes" ; then
5836			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5837			found="yes"
5838		fi
5839	fi
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855xorg_testset_save_CFLAGS="$CFLAGS"
5856
5857if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5858	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5859	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5860printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5861if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5862then :
5863  printf %s "(cached) " >&6
5864else case e in #(
5865  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866/* end confdefs.h.  */
5867int i;
5868_ACEOF
5869if ac_fn_c_try_compile "$LINENO"
5870then :
5871  xorg_cv_cc_flag_unknown_warning_option=yes
5872else case e in #(
5873  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5874esac
5875fi
5876rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5877esac
5878fi
5879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5880printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5881	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5882	CFLAGS="$xorg_testset_save_CFLAGS"
5883fi
5884
5885if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5886	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5887		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5888	fi
5889	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5890	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5891printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5892if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5893then :
5894  printf %s "(cached) " >&6
5895else case e in #(
5896  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897/* end confdefs.h.  */
5898int i;
5899_ACEOF
5900if ac_fn_c_try_compile "$LINENO"
5901then :
5902  xorg_cv_cc_flag_unused_command_line_argument=yes
5903else case e in #(
5904  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5905esac
5906fi
5907rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5908esac
5909fi
5910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5911printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5912	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5913	CFLAGS="$xorg_testset_save_CFLAGS"
5914fi
5915
5916found="no"
5917
5918	if test $found = "no" ; then
5919		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5920			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5921		fi
5922
5923		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5924			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5925		fi
5926
5927		CFLAGS="$CFLAGS -Wnested-externs"
5928
5929		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5930printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5931		cacheid=xorg_cv_cc_flag__Wnested_externs
5932		if eval test \${$cacheid+y}
5933then :
5934  printf %s "(cached) " >&6
5935else case e in #(
5936  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5937/* end confdefs.h.  */
5938int i;
5939int
5940main (void)
5941{
5942
5943  ;
5944  return 0;
5945}
5946_ACEOF
5947if ac_fn_c_try_link "$LINENO"
5948then :
5949  eval $cacheid=yes
5950else case e in #(
5951  e) eval $cacheid=no ;;
5952esac
5953fi
5954rm -f core conftest.err conftest.$ac_objext conftest.beam \
5955    conftest$ac_exeext conftest.$ac_ext ;;
5956esac
5957fi
5958
5959
5960		CFLAGS="$xorg_testset_save_CFLAGS"
5961
5962		eval supported=\$$cacheid
5963		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5964printf "%s\n" "$supported" >&6; }
5965		if test "$supported" = "yes" ; then
5966			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5967			found="yes"
5968		fi
5969	fi
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985xorg_testset_save_CFLAGS="$CFLAGS"
5986
5987if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5988	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5989	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5990printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5991if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5992then :
5993  printf %s "(cached) " >&6
5994else case e in #(
5995  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996/* end confdefs.h.  */
5997int i;
5998_ACEOF
5999if ac_fn_c_try_compile "$LINENO"
6000then :
6001  xorg_cv_cc_flag_unknown_warning_option=yes
6002else case e in #(
6003  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6004esac
6005fi
6006rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6007esac
6008fi
6009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6010printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6011	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6012	CFLAGS="$xorg_testset_save_CFLAGS"
6013fi
6014
6015if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6016	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6017		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6018	fi
6019	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6020	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6021printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6022if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6023then :
6024  printf %s "(cached) " >&6
6025else case e in #(
6026  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6027/* end confdefs.h.  */
6028int i;
6029_ACEOF
6030if ac_fn_c_try_compile "$LINENO"
6031then :
6032  xorg_cv_cc_flag_unused_command_line_argument=yes
6033else case e in #(
6034  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6035esac
6036fi
6037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6038esac
6039fi
6040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6041printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6042	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6043	CFLAGS="$xorg_testset_save_CFLAGS"
6044fi
6045
6046found="no"
6047
6048	if test $found = "no" ; then
6049		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6050			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6051		fi
6052
6053		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6054			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6055		fi
6056
6057		CFLAGS="$CFLAGS -Wbad-function-cast"
6058
6059		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6060printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6061		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6062		if eval test \${$cacheid+y}
6063then :
6064  printf %s "(cached) " >&6
6065else case e in #(
6066  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6067/* end confdefs.h.  */
6068int i;
6069int
6070main (void)
6071{
6072
6073  ;
6074  return 0;
6075}
6076_ACEOF
6077if ac_fn_c_try_link "$LINENO"
6078then :
6079  eval $cacheid=yes
6080else case e in #(
6081  e) eval $cacheid=no ;;
6082esac
6083fi
6084rm -f core conftest.err conftest.$ac_objext conftest.beam \
6085    conftest$ac_exeext conftest.$ac_ext ;;
6086esac
6087fi
6088
6089
6090		CFLAGS="$xorg_testset_save_CFLAGS"
6091
6092		eval supported=\$$cacheid
6093		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6094printf "%s\n" "$supported" >&6; }
6095		if test "$supported" = "yes" ; then
6096			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6097			found="yes"
6098		fi
6099	fi
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115xorg_testset_save_CFLAGS="$CFLAGS"
6116
6117if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6118	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6119	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6120printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6121if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6122then :
6123  printf %s "(cached) " >&6
6124else case e in #(
6125  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126/* end confdefs.h.  */
6127int i;
6128_ACEOF
6129if ac_fn_c_try_compile "$LINENO"
6130then :
6131  xorg_cv_cc_flag_unknown_warning_option=yes
6132else case e in #(
6133  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6134esac
6135fi
6136rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6137esac
6138fi
6139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6140printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6141	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6142	CFLAGS="$xorg_testset_save_CFLAGS"
6143fi
6144
6145if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6146	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6147		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6148	fi
6149	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6150	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6151printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6152if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6153then :
6154  printf %s "(cached) " >&6
6155else case e in #(
6156  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6157/* end confdefs.h.  */
6158int i;
6159_ACEOF
6160if ac_fn_c_try_compile "$LINENO"
6161then :
6162  xorg_cv_cc_flag_unused_command_line_argument=yes
6163else case e in #(
6164  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6165esac
6166fi
6167rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6168esac
6169fi
6170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6171printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6172	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6173	CFLAGS="$xorg_testset_save_CFLAGS"
6174fi
6175
6176found="no"
6177
6178	if test $found = "no" ; then
6179		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6180			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6181		fi
6182
6183		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6184			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6185		fi
6186
6187		CFLAGS="$CFLAGS -Wold-style-definition"
6188
6189		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6190printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6191		cacheid=xorg_cv_cc_flag__Wold_style_definition
6192		if eval test \${$cacheid+y}
6193then :
6194  printf %s "(cached) " >&6
6195else case e in #(
6196  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197/* end confdefs.h.  */
6198int i;
6199int
6200main (void)
6201{
6202
6203  ;
6204  return 0;
6205}
6206_ACEOF
6207if ac_fn_c_try_link "$LINENO"
6208then :
6209  eval $cacheid=yes
6210else case e in #(
6211  e) eval $cacheid=no ;;
6212esac
6213fi
6214rm -f core conftest.err conftest.$ac_objext conftest.beam \
6215    conftest$ac_exeext conftest.$ac_ext ;;
6216esac
6217fi
6218
6219
6220		CFLAGS="$xorg_testset_save_CFLAGS"
6221
6222		eval supported=\$$cacheid
6223		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6224printf "%s\n" "$supported" >&6; }
6225		if test "$supported" = "yes" ; then
6226			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6227			found="yes"
6228		fi
6229	fi
6230
6231	if test $found = "no" ; then
6232		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6233			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6234		fi
6235
6236		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6237			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6238		fi
6239
6240		CFLAGS="$CFLAGS -fd"
6241
6242		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6243printf %s "checking if $CC supports -fd... " >&6; }
6244		cacheid=xorg_cv_cc_flag__fd
6245		if eval test \${$cacheid+y}
6246then :
6247  printf %s "(cached) " >&6
6248else case e in #(
6249  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6250/* end confdefs.h.  */
6251int i;
6252int
6253main (void)
6254{
6255
6256  ;
6257  return 0;
6258}
6259_ACEOF
6260if ac_fn_c_try_link "$LINENO"
6261then :
6262  eval $cacheid=yes
6263else case e in #(
6264  e) eval $cacheid=no ;;
6265esac
6266fi
6267rm -f core conftest.err conftest.$ac_objext conftest.beam \
6268    conftest$ac_exeext conftest.$ac_ext ;;
6269esac
6270fi
6271
6272
6273		CFLAGS="$xorg_testset_save_CFLAGS"
6274
6275		eval supported=\$$cacheid
6276		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6277printf "%s\n" "$supported" >&6; }
6278		if test "$supported" = "yes" ; then
6279			BASE_CFLAGS="$BASE_CFLAGS -fd"
6280			found="yes"
6281		fi
6282	fi
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298xorg_testset_save_CFLAGS="$CFLAGS"
6299
6300if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6301	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6302	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6303printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6304if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6305then :
6306  printf %s "(cached) " >&6
6307else case e in #(
6308  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309/* end confdefs.h.  */
6310int i;
6311_ACEOF
6312if ac_fn_c_try_compile "$LINENO"
6313then :
6314  xorg_cv_cc_flag_unknown_warning_option=yes
6315else case e in #(
6316  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6317esac
6318fi
6319rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6320esac
6321fi
6322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6323printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6324	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6325	CFLAGS="$xorg_testset_save_CFLAGS"
6326fi
6327
6328if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6329	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6330		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6331	fi
6332	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6333	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6334printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6335if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6336then :
6337  printf %s "(cached) " >&6
6338else case e in #(
6339  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6340/* end confdefs.h.  */
6341int i;
6342_ACEOF
6343if ac_fn_c_try_compile "$LINENO"
6344then :
6345  xorg_cv_cc_flag_unused_command_line_argument=yes
6346else case e in #(
6347  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6348esac
6349fi
6350rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6351esac
6352fi
6353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6354printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6355	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6356	CFLAGS="$xorg_testset_save_CFLAGS"
6357fi
6358
6359found="no"
6360
6361	if test $found = "no" ; then
6362		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6363			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6364		fi
6365
6366		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6367			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6368		fi
6369
6370		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6371
6372		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6373printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6374		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6375		if eval test \${$cacheid+y}
6376then :
6377  printf %s "(cached) " >&6
6378else case e in #(
6379  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6380/* end confdefs.h.  */
6381int i;
6382int
6383main (void)
6384{
6385
6386  ;
6387  return 0;
6388}
6389_ACEOF
6390if ac_fn_c_try_link "$LINENO"
6391then :
6392  eval $cacheid=yes
6393else case e in #(
6394  e) eval $cacheid=no ;;
6395esac
6396fi
6397rm -f core conftest.err conftest.$ac_objext conftest.beam \
6398    conftest$ac_exeext conftest.$ac_ext ;;
6399esac
6400fi
6401
6402
6403		CFLAGS="$xorg_testset_save_CFLAGS"
6404
6405		eval supported=\$$cacheid
6406		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6407printf "%s\n" "$supported" >&6; }
6408		if test "$supported" = "yes" ; then
6409			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6410			found="yes"
6411		fi
6412	fi
6413
6414
6415
6416
6417
6418# This chunk adds additional warnings that could catch undesired effects.
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432xorg_testset_save_CFLAGS="$CFLAGS"
6433
6434if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6435	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6436	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6437printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6438if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6439then :
6440  printf %s "(cached) " >&6
6441else case e in #(
6442  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443/* end confdefs.h.  */
6444int i;
6445_ACEOF
6446if ac_fn_c_try_compile "$LINENO"
6447then :
6448  xorg_cv_cc_flag_unknown_warning_option=yes
6449else case e in #(
6450  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6451esac
6452fi
6453rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6454esac
6455fi
6456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6457printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6458	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6459	CFLAGS="$xorg_testset_save_CFLAGS"
6460fi
6461
6462if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6463	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6464		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6465	fi
6466	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6467	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6468printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6469if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6470then :
6471  printf %s "(cached) " >&6
6472else case e in #(
6473  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474/* end confdefs.h.  */
6475int i;
6476_ACEOF
6477if ac_fn_c_try_compile "$LINENO"
6478then :
6479  xorg_cv_cc_flag_unused_command_line_argument=yes
6480else case e in #(
6481  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6482esac
6483fi
6484rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6485esac
6486fi
6487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6488printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6489	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6490	CFLAGS="$xorg_testset_save_CFLAGS"
6491fi
6492
6493found="no"
6494
6495	if test $found = "no" ; then
6496		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6497			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6498		fi
6499
6500		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6501			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6502		fi
6503
6504		CFLAGS="$CFLAGS -Wunused"
6505
6506		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6507printf %s "checking if $CC supports -Wunused... " >&6; }
6508		cacheid=xorg_cv_cc_flag__Wunused
6509		if eval test \${$cacheid+y}
6510then :
6511  printf %s "(cached) " >&6
6512else case e in #(
6513  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514/* end confdefs.h.  */
6515int i;
6516int
6517main (void)
6518{
6519
6520  ;
6521  return 0;
6522}
6523_ACEOF
6524if ac_fn_c_try_link "$LINENO"
6525then :
6526  eval $cacheid=yes
6527else case e in #(
6528  e) eval $cacheid=no ;;
6529esac
6530fi
6531rm -f core conftest.err conftest.$ac_objext conftest.beam \
6532    conftest$ac_exeext conftest.$ac_ext ;;
6533esac
6534fi
6535
6536
6537		CFLAGS="$xorg_testset_save_CFLAGS"
6538
6539		eval supported=\$$cacheid
6540		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6541printf "%s\n" "$supported" >&6; }
6542		if test "$supported" = "yes" ; then
6543			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6544			found="yes"
6545		fi
6546	fi
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562xorg_testset_save_CFLAGS="$CFLAGS"
6563
6564if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6565	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6566	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6567printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6568if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6569then :
6570  printf %s "(cached) " >&6
6571else case e in #(
6572  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573/* end confdefs.h.  */
6574int i;
6575_ACEOF
6576if ac_fn_c_try_compile "$LINENO"
6577then :
6578  xorg_cv_cc_flag_unknown_warning_option=yes
6579else case e in #(
6580  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6581esac
6582fi
6583rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6584esac
6585fi
6586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6587printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6588	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6589	CFLAGS="$xorg_testset_save_CFLAGS"
6590fi
6591
6592if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6593	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6594		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6595	fi
6596	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6597	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6598printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6599if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6600then :
6601  printf %s "(cached) " >&6
6602else case e in #(
6603  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6604/* end confdefs.h.  */
6605int i;
6606_ACEOF
6607if ac_fn_c_try_compile "$LINENO"
6608then :
6609  xorg_cv_cc_flag_unused_command_line_argument=yes
6610else case e in #(
6611  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6612esac
6613fi
6614rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6615esac
6616fi
6617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6618printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6619	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6620	CFLAGS="$xorg_testset_save_CFLAGS"
6621fi
6622
6623found="no"
6624
6625	if test $found = "no" ; then
6626		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6627			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6628		fi
6629
6630		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6631			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6632		fi
6633
6634		CFLAGS="$CFLAGS -Wuninitialized"
6635
6636		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6637printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6638		cacheid=xorg_cv_cc_flag__Wuninitialized
6639		if eval test \${$cacheid+y}
6640then :
6641  printf %s "(cached) " >&6
6642else case e in #(
6643  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6644/* end confdefs.h.  */
6645int i;
6646int
6647main (void)
6648{
6649
6650  ;
6651  return 0;
6652}
6653_ACEOF
6654if ac_fn_c_try_link "$LINENO"
6655then :
6656  eval $cacheid=yes
6657else case e in #(
6658  e) eval $cacheid=no ;;
6659esac
6660fi
6661rm -f core conftest.err conftest.$ac_objext conftest.beam \
6662    conftest$ac_exeext conftest.$ac_ext ;;
6663esac
6664fi
6665
6666
6667		CFLAGS="$xorg_testset_save_CFLAGS"
6668
6669		eval supported=\$$cacheid
6670		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6671printf "%s\n" "$supported" >&6; }
6672		if test "$supported" = "yes" ; then
6673			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6674			found="yes"
6675		fi
6676	fi
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692xorg_testset_save_CFLAGS="$CFLAGS"
6693
6694if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6695	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6696	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6697printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6698if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6699then :
6700  printf %s "(cached) " >&6
6701else case e in #(
6702  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703/* end confdefs.h.  */
6704int i;
6705_ACEOF
6706if ac_fn_c_try_compile "$LINENO"
6707then :
6708  xorg_cv_cc_flag_unknown_warning_option=yes
6709else case e in #(
6710  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6711esac
6712fi
6713rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6714esac
6715fi
6716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6717printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6718	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6719	CFLAGS="$xorg_testset_save_CFLAGS"
6720fi
6721
6722if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6723	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6724		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6725	fi
6726	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6727	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6728printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6729if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6730then :
6731  printf %s "(cached) " >&6
6732else case e in #(
6733  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734/* end confdefs.h.  */
6735int i;
6736_ACEOF
6737if ac_fn_c_try_compile "$LINENO"
6738then :
6739  xorg_cv_cc_flag_unused_command_line_argument=yes
6740else case e in #(
6741  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6742esac
6743fi
6744rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6745esac
6746fi
6747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6748printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6749	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6750	CFLAGS="$xorg_testset_save_CFLAGS"
6751fi
6752
6753found="no"
6754
6755	if test $found = "no" ; then
6756		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6757			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6758		fi
6759
6760		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6761			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6762		fi
6763
6764		CFLAGS="$CFLAGS -Wshadow"
6765
6766		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6767printf %s "checking if $CC supports -Wshadow... " >&6; }
6768		cacheid=xorg_cv_cc_flag__Wshadow
6769		if eval test \${$cacheid+y}
6770then :
6771  printf %s "(cached) " >&6
6772else case e in #(
6773  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6774/* end confdefs.h.  */
6775int i;
6776int
6777main (void)
6778{
6779
6780  ;
6781  return 0;
6782}
6783_ACEOF
6784if ac_fn_c_try_link "$LINENO"
6785then :
6786  eval $cacheid=yes
6787else case e in #(
6788  e) eval $cacheid=no ;;
6789esac
6790fi
6791rm -f core conftest.err conftest.$ac_objext conftest.beam \
6792    conftest$ac_exeext conftest.$ac_ext ;;
6793esac
6794fi
6795
6796
6797		CFLAGS="$xorg_testset_save_CFLAGS"
6798
6799		eval supported=\$$cacheid
6800		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6801printf "%s\n" "$supported" >&6; }
6802		if test "$supported" = "yes" ; then
6803			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6804			found="yes"
6805		fi
6806	fi
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822xorg_testset_save_CFLAGS="$CFLAGS"
6823
6824if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6825	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6826	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6827printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6828if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6829then :
6830  printf %s "(cached) " >&6
6831else case e in #(
6832  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833/* end confdefs.h.  */
6834int i;
6835_ACEOF
6836if ac_fn_c_try_compile "$LINENO"
6837then :
6838  xorg_cv_cc_flag_unknown_warning_option=yes
6839else case e in #(
6840  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6841esac
6842fi
6843rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6844esac
6845fi
6846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6847printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6848	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6849	CFLAGS="$xorg_testset_save_CFLAGS"
6850fi
6851
6852if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6853	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6854		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6855	fi
6856	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6857	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6858printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6859if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6860then :
6861  printf %s "(cached) " >&6
6862else case e in #(
6863  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864/* end confdefs.h.  */
6865int i;
6866_ACEOF
6867if ac_fn_c_try_compile "$LINENO"
6868then :
6869  xorg_cv_cc_flag_unused_command_line_argument=yes
6870else case e in #(
6871  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6872esac
6873fi
6874rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6875esac
6876fi
6877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6878printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6879	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6880	CFLAGS="$xorg_testset_save_CFLAGS"
6881fi
6882
6883found="no"
6884
6885	if test $found = "no" ; then
6886		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6887			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6888		fi
6889
6890		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6891			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6892		fi
6893
6894		CFLAGS="$CFLAGS -Wmissing-noreturn"
6895
6896		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6897printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6898		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6899		if eval test \${$cacheid+y}
6900then :
6901  printf %s "(cached) " >&6
6902else case e in #(
6903  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904/* end confdefs.h.  */
6905int i;
6906int
6907main (void)
6908{
6909
6910  ;
6911  return 0;
6912}
6913_ACEOF
6914if ac_fn_c_try_link "$LINENO"
6915then :
6916  eval $cacheid=yes
6917else case e in #(
6918  e) eval $cacheid=no ;;
6919esac
6920fi
6921rm -f core conftest.err conftest.$ac_objext conftest.beam \
6922    conftest$ac_exeext conftest.$ac_ext ;;
6923esac
6924fi
6925
6926
6927		CFLAGS="$xorg_testset_save_CFLAGS"
6928
6929		eval supported=\$$cacheid
6930		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6931printf "%s\n" "$supported" >&6; }
6932		if test "$supported" = "yes" ; then
6933			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6934			found="yes"
6935		fi
6936	fi
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952xorg_testset_save_CFLAGS="$CFLAGS"
6953
6954if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6955	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6956	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6957printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6958if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6959then :
6960  printf %s "(cached) " >&6
6961else case e in #(
6962  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963/* end confdefs.h.  */
6964int i;
6965_ACEOF
6966if ac_fn_c_try_compile "$LINENO"
6967then :
6968  xorg_cv_cc_flag_unknown_warning_option=yes
6969else case e in #(
6970  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6971esac
6972fi
6973rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6974esac
6975fi
6976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6977printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6978	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6979	CFLAGS="$xorg_testset_save_CFLAGS"
6980fi
6981
6982if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6983	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6984		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6985	fi
6986	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6987	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6988printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6989if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6990then :
6991  printf %s "(cached) " >&6
6992else case e in #(
6993  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994/* end confdefs.h.  */
6995int i;
6996_ACEOF
6997if ac_fn_c_try_compile "$LINENO"
6998then :
6999  xorg_cv_cc_flag_unused_command_line_argument=yes
7000else case e in #(
7001  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7002esac
7003fi
7004rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7005esac
7006fi
7007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7008printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7009	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7010	CFLAGS="$xorg_testset_save_CFLAGS"
7011fi
7012
7013found="no"
7014
7015	if test $found = "no" ; then
7016		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7017			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7018		fi
7019
7020		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7021			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7022		fi
7023
7024		CFLAGS="$CFLAGS -Wmissing-format-attribute"
7025
7026		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7027printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7028		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7029		if eval test \${$cacheid+y}
7030then :
7031  printf %s "(cached) " >&6
7032else case e in #(
7033  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034/* end confdefs.h.  */
7035int i;
7036int
7037main (void)
7038{
7039
7040  ;
7041  return 0;
7042}
7043_ACEOF
7044if ac_fn_c_try_link "$LINENO"
7045then :
7046  eval $cacheid=yes
7047else case e in #(
7048  e) eval $cacheid=no ;;
7049esac
7050fi
7051rm -f core conftest.err conftest.$ac_objext conftest.beam \
7052    conftest$ac_exeext conftest.$ac_ext ;;
7053esac
7054fi
7055
7056
7057		CFLAGS="$xorg_testset_save_CFLAGS"
7058
7059		eval supported=\$$cacheid
7060		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7061printf "%s\n" "$supported" >&6; }
7062		if test "$supported" = "yes" ; then
7063			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7064			found="yes"
7065		fi
7066	fi
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082xorg_testset_save_CFLAGS="$CFLAGS"
7083
7084if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7085	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7086	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7087printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7088if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7089then :
7090  printf %s "(cached) " >&6
7091else case e in #(
7092  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093/* end confdefs.h.  */
7094int i;
7095_ACEOF
7096if ac_fn_c_try_compile "$LINENO"
7097then :
7098  xorg_cv_cc_flag_unknown_warning_option=yes
7099else case e in #(
7100  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7101esac
7102fi
7103rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7104esac
7105fi
7106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7107printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7108	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7109	CFLAGS="$xorg_testset_save_CFLAGS"
7110fi
7111
7112if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7113	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7114		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7115	fi
7116	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7117	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7118printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7119if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7120then :
7121  printf %s "(cached) " >&6
7122else case e in #(
7123  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124/* end confdefs.h.  */
7125int i;
7126_ACEOF
7127if ac_fn_c_try_compile "$LINENO"
7128then :
7129  xorg_cv_cc_flag_unused_command_line_argument=yes
7130else case e in #(
7131  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7132esac
7133fi
7134rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7135esac
7136fi
7137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7138printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7139	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7140	CFLAGS="$xorg_testset_save_CFLAGS"
7141fi
7142
7143found="no"
7144
7145	if test $found = "no" ; then
7146		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7147			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7148		fi
7149
7150		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7151			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7152		fi
7153
7154		CFLAGS="$CFLAGS -Wredundant-decls"
7155
7156		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7157printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7158		cacheid=xorg_cv_cc_flag__Wredundant_decls
7159		if eval test \${$cacheid+y}
7160then :
7161  printf %s "(cached) " >&6
7162else case e in #(
7163  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164/* end confdefs.h.  */
7165int i;
7166int
7167main (void)
7168{
7169
7170  ;
7171  return 0;
7172}
7173_ACEOF
7174if ac_fn_c_try_link "$LINENO"
7175then :
7176  eval $cacheid=yes
7177else case e in #(
7178  e) eval $cacheid=no ;;
7179esac
7180fi
7181rm -f core conftest.err conftest.$ac_objext conftest.beam \
7182    conftest$ac_exeext conftest.$ac_ext ;;
7183esac
7184fi
7185
7186
7187		CFLAGS="$xorg_testset_save_CFLAGS"
7188
7189		eval supported=\$$cacheid
7190		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7191printf "%s\n" "$supported" >&6; }
7192		if test "$supported" = "yes" ; then
7193			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7194			found="yes"
7195		fi
7196	fi
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212xorg_testset_save_CFLAGS="$CFLAGS"
7213
7214if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7215	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7216	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7217printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7218if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7219then :
7220  printf %s "(cached) " >&6
7221else case e in #(
7222  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223/* end confdefs.h.  */
7224int i;
7225_ACEOF
7226if ac_fn_c_try_compile "$LINENO"
7227then :
7228  xorg_cv_cc_flag_unknown_warning_option=yes
7229else case e in #(
7230  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7231esac
7232fi
7233rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7234esac
7235fi
7236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7237printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7238	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7239	CFLAGS="$xorg_testset_save_CFLAGS"
7240fi
7241
7242if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7243	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7244		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7245	fi
7246	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7247	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7248printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7249if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7250then :
7251  printf %s "(cached) " >&6
7252else case e in #(
7253  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7254/* end confdefs.h.  */
7255int i;
7256_ACEOF
7257if ac_fn_c_try_compile "$LINENO"
7258then :
7259  xorg_cv_cc_flag_unused_command_line_argument=yes
7260else case e in #(
7261  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7262esac
7263fi
7264rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7265esac
7266fi
7267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7268printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7269	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7270	CFLAGS="$xorg_testset_save_CFLAGS"
7271fi
7272
7273found="no"
7274
7275	if test $found = "no" ; then
7276		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7277			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7278		fi
7279
7280		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7281			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7282		fi
7283
7284		CFLAGS="$CFLAGS -Wlogical-op"
7285
7286		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7287printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7288		cacheid=xorg_cv_cc_flag__Wlogical_op
7289		if eval test \${$cacheid+y}
7290then :
7291  printf %s "(cached) " >&6
7292else case e in #(
7293  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7294/* end confdefs.h.  */
7295int i;
7296int
7297main (void)
7298{
7299
7300  ;
7301  return 0;
7302}
7303_ACEOF
7304if ac_fn_c_try_link "$LINENO"
7305then :
7306  eval $cacheid=yes
7307else case e in #(
7308  e) eval $cacheid=no ;;
7309esac
7310fi
7311rm -f core conftest.err conftest.$ac_objext conftest.beam \
7312    conftest$ac_exeext conftest.$ac_ext ;;
7313esac
7314fi
7315
7316
7317		CFLAGS="$xorg_testset_save_CFLAGS"
7318
7319		eval supported=\$$cacheid
7320		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7321printf "%s\n" "$supported" >&6; }
7322		if test "$supported" = "yes" ; then
7323			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7324			found="yes"
7325		fi
7326	fi
7327
7328
7329
7330# These are currently disabled because they are noisy.  They will be enabled
7331# in the future once the codebase is sufficiently modernized to silence
7332# them.  For now, I don't want them to drown out the other warnings.
7333# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7334# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7335# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7336
7337# Turn some warnings into errors, so we don't accidentally get successful builds
7338# when there are problems that should be fixed.
7339
7340if test "x$SELECTIVE_WERROR" = "xyes" ; then
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354xorg_testset_save_CFLAGS="$CFLAGS"
7355
7356if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7357	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7358	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7359printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7360if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7361then :
7362  printf %s "(cached) " >&6
7363else case e in #(
7364  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365/* end confdefs.h.  */
7366int i;
7367_ACEOF
7368if ac_fn_c_try_compile "$LINENO"
7369then :
7370  xorg_cv_cc_flag_unknown_warning_option=yes
7371else case e in #(
7372  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7373esac
7374fi
7375rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7376esac
7377fi
7378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7379printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7380	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7381	CFLAGS="$xorg_testset_save_CFLAGS"
7382fi
7383
7384if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7385	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7386		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7387	fi
7388	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7389	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7390printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7391if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7392then :
7393  printf %s "(cached) " >&6
7394else case e in #(
7395  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7396/* end confdefs.h.  */
7397int i;
7398_ACEOF
7399if ac_fn_c_try_compile "$LINENO"
7400then :
7401  xorg_cv_cc_flag_unused_command_line_argument=yes
7402else case e in #(
7403  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7404esac
7405fi
7406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7407esac
7408fi
7409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7410printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7411	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7412	CFLAGS="$xorg_testset_save_CFLAGS"
7413fi
7414
7415found="no"
7416
7417	if test $found = "no" ; then
7418		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7419			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7420		fi
7421
7422		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7423			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7424		fi
7425
7426		CFLAGS="$CFLAGS -Werror=implicit"
7427
7428		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7429printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7430		cacheid=xorg_cv_cc_flag__Werror_implicit
7431		if eval test \${$cacheid+y}
7432then :
7433  printf %s "(cached) " >&6
7434else case e in #(
7435  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436/* end confdefs.h.  */
7437int i;
7438int
7439main (void)
7440{
7441
7442  ;
7443  return 0;
7444}
7445_ACEOF
7446if ac_fn_c_try_link "$LINENO"
7447then :
7448  eval $cacheid=yes
7449else case e in #(
7450  e) eval $cacheid=no ;;
7451esac
7452fi
7453rm -f core conftest.err conftest.$ac_objext conftest.beam \
7454    conftest$ac_exeext conftest.$ac_ext ;;
7455esac
7456fi
7457
7458
7459		CFLAGS="$xorg_testset_save_CFLAGS"
7460
7461		eval supported=\$$cacheid
7462		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7463printf "%s\n" "$supported" >&6; }
7464		if test "$supported" = "yes" ; then
7465			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7466			found="yes"
7467		fi
7468	fi
7469
7470	if test $found = "no" ; then
7471		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7472			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7473		fi
7474
7475		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7476			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7477		fi
7478
7479		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7480
7481		{ 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
7482printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7483		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7484		if eval test \${$cacheid+y}
7485then :
7486  printf %s "(cached) " >&6
7487else case e in #(
7488  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489/* end confdefs.h.  */
7490int i;
7491int
7492main (void)
7493{
7494
7495  ;
7496  return 0;
7497}
7498_ACEOF
7499if ac_fn_c_try_link "$LINENO"
7500then :
7501  eval $cacheid=yes
7502else case e in #(
7503  e) eval $cacheid=no ;;
7504esac
7505fi
7506rm -f core conftest.err conftest.$ac_objext conftest.beam \
7507    conftest$ac_exeext conftest.$ac_ext ;;
7508esac
7509fi
7510
7511
7512		CFLAGS="$xorg_testset_save_CFLAGS"
7513
7514		eval supported=\$$cacheid
7515		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7516printf "%s\n" "$supported" >&6; }
7517		if test "$supported" = "yes" ; then
7518			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7519			found="yes"
7520		fi
7521	fi
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537xorg_testset_save_CFLAGS="$CFLAGS"
7538
7539if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7540	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7541	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7542printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7543if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7544then :
7545  printf %s "(cached) " >&6
7546else case e in #(
7547  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548/* end confdefs.h.  */
7549int i;
7550_ACEOF
7551if ac_fn_c_try_compile "$LINENO"
7552then :
7553  xorg_cv_cc_flag_unknown_warning_option=yes
7554else case e in #(
7555  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7556esac
7557fi
7558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7559esac
7560fi
7561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7562printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7563	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7564	CFLAGS="$xorg_testset_save_CFLAGS"
7565fi
7566
7567if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7568	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7569		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7570	fi
7571	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7572	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7573printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7574if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7575then :
7576  printf %s "(cached) " >&6
7577else case e in #(
7578  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7579/* end confdefs.h.  */
7580int i;
7581_ACEOF
7582if ac_fn_c_try_compile "$LINENO"
7583then :
7584  xorg_cv_cc_flag_unused_command_line_argument=yes
7585else case e in #(
7586  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7587esac
7588fi
7589rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7590esac
7591fi
7592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7593printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7594	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7595	CFLAGS="$xorg_testset_save_CFLAGS"
7596fi
7597
7598found="no"
7599
7600	if test $found = "no" ; then
7601		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7602			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7603		fi
7604
7605		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7606			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7607		fi
7608
7609		CFLAGS="$CFLAGS -Werror=nonnull"
7610
7611		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7612printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7613		cacheid=xorg_cv_cc_flag__Werror_nonnull
7614		if eval test \${$cacheid+y}
7615then :
7616  printf %s "(cached) " >&6
7617else case e in #(
7618  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619/* end confdefs.h.  */
7620int i;
7621int
7622main (void)
7623{
7624
7625  ;
7626  return 0;
7627}
7628_ACEOF
7629if ac_fn_c_try_link "$LINENO"
7630then :
7631  eval $cacheid=yes
7632else case e in #(
7633  e) eval $cacheid=no ;;
7634esac
7635fi
7636rm -f core conftest.err conftest.$ac_objext conftest.beam \
7637    conftest$ac_exeext conftest.$ac_ext ;;
7638esac
7639fi
7640
7641
7642		CFLAGS="$xorg_testset_save_CFLAGS"
7643
7644		eval supported=\$$cacheid
7645		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7646printf "%s\n" "$supported" >&6; }
7647		if test "$supported" = "yes" ; then
7648			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7649			found="yes"
7650		fi
7651	fi
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667xorg_testset_save_CFLAGS="$CFLAGS"
7668
7669if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7670	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7671	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7672printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7673if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7674then :
7675  printf %s "(cached) " >&6
7676else case e in #(
7677  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7678/* end confdefs.h.  */
7679int i;
7680_ACEOF
7681if ac_fn_c_try_compile "$LINENO"
7682then :
7683  xorg_cv_cc_flag_unknown_warning_option=yes
7684else case e in #(
7685  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7686esac
7687fi
7688rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7689esac
7690fi
7691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7692printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7693	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7694	CFLAGS="$xorg_testset_save_CFLAGS"
7695fi
7696
7697if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7698	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7699		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7700	fi
7701	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7702	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7703printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7704if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7705then :
7706  printf %s "(cached) " >&6
7707else case e in #(
7708  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709/* end confdefs.h.  */
7710int i;
7711_ACEOF
7712if ac_fn_c_try_compile "$LINENO"
7713then :
7714  xorg_cv_cc_flag_unused_command_line_argument=yes
7715else case e in #(
7716  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7717esac
7718fi
7719rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7720esac
7721fi
7722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7723printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7724	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7725	CFLAGS="$xorg_testset_save_CFLAGS"
7726fi
7727
7728found="no"
7729
7730	if test $found = "no" ; then
7731		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7732			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7733		fi
7734
7735		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7736			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7737		fi
7738
7739		CFLAGS="$CFLAGS -Werror=init-self"
7740
7741		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7742printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7743		cacheid=xorg_cv_cc_flag__Werror_init_self
7744		if eval test \${$cacheid+y}
7745then :
7746  printf %s "(cached) " >&6
7747else case e in #(
7748  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7749/* end confdefs.h.  */
7750int i;
7751int
7752main (void)
7753{
7754
7755  ;
7756  return 0;
7757}
7758_ACEOF
7759if ac_fn_c_try_link "$LINENO"
7760then :
7761  eval $cacheid=yes
7762else case e in #(
7763  e) eval $cacheid=no ;;
7764esac
7765fi
7766rm -f core conftest.err conftest.$ac_objext conftest.beam \
7767    conftest$ac_exeext conftest.$ac_ext ;;
7768esac
7769fi
7770
7771
7772		CFLAGS="$xorg_testset_save_CFLAGS"
7773
7774		eval supported=\$$cacheid
7775		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7776printf "%s\n" "$supported" >&6; }
7777		if test "$supported" = "yes" ; then
7778			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7779			found="yes"
7780		fi
7781	fi
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797xorg_testset_save_CFLAGS="$CFLAGS"
7798
7799if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7800	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7801	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7802printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7803if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7804then :
7805  printf %s "(cached) " >&6
7806else case e in #(
7807  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808/* end confdefs.h.  */
7809int i;
7810_ACEOF
7811if ac_fn_c_try_compile "$LINENO"
7812then :
7813  xorg_cv_cc_flag_unknown_warning_option=yes
7814else case e in #(
7815  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7816esac
7817fi
7818rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7819esac
7820fi
7821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7822printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7823	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7824	CFLAGS="$xorg_testset_save_CFLAGS"
7825fi
7826
7827if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7828	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7829		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7830	fi
7831	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7832	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7833printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7834if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7835then :
7836  printf %s "(cached) " >&6
7837else case e in #(
7838  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7839/* end confdefs.h.  */
7840int i;
7841_ACEOF
7842if ac_fn_c_try_compile "$LINENO"
7843then :
7844  xorg_cv_cc_flag_unused_command_line_argument=yes
7845else case e in #(
7846  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7847esac
7848fi
7849rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7850esac
7851fi
7852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7853printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7854	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7855	CFLAGS="$xorg_testset_save_CFLAGS"
7856fi
7857
7858found="no"
7859
7860	if test $found = "no" ; then
7861		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7862			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7863		fi
7864
7865		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7866			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7867		fi
7868
7869		CFLAGS="$CFLAGS -Werror=main"
7870
7871		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7872printf %s "checking if $CC supports -Werror=main... " >&6; }
7873		cacheid=xorg_cv_cc_flag__Werror_main
7874		if eval test \${$cacheid+y}
7875then :
7876  printf %s "(cached) " >&6
7877else case e in #(
7878  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879/* end confdefs.h.  */
7880int i;
7881int
7882main (void)
7883{
7884
7885  ;
7886  return 0;
7887}
7888_ACEOF
7889if ac_fn_c_try_link "$LINENO"
7890then :
7891  eval $cacheid=yes
7892else case e in #(
7893  e) eval $cacheid=no ;;
7894esac
7895fi
7896rm -f core conftest.err conftest.$ac_objext conftest.beam \
7897    conftest$ac_exeext conftest.$ac_ext ;;
7898esac
7899fi
7900
7901
7902		CFLAGS="$xorg_testset_save_CFLAGS"
7903
7904		eval supported=\$$cacheid
7905		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7906printf "%s\n" "$supported" >&6; }
7907		if test "$supported" = "yes" ; then
7908			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7909			found="yes"
7910		fi
7911	fi
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927xorg_testset_save_CFLAGS="$CFLAGS"
7928
7929if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7930	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7931	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7932printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7933if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7934then :
7935  printf %s "(cached) " >&6
7936else case e in #(
7937  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938/* end confdefs.h.  */
7939int i;
7940_ACEOF
7941if ac_fn_c_try_compile "$LINENO"
7942then :
7943  xorg_cv_cc_flag_unknown_warning_option=yes
7944else case e in #(
7945  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7946esac
7947fi
7948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7949esac
7950fi
7951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7952printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7953	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7954	CFLAGS="$xorg_testset_save_CFLAGS"
7955fi
7956
7957if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7958	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7959		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7960	fi
7961	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7962	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7963printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7964if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7965then :
7966  printf %s "(cached) " >&6
7967else case e in #(
7968  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7969/* end confdefs.h.  */
7970int i;
7971_ACEOF
7972if ac_fn_c_try_compile "$LINENO"
7973then :
7974  xorg_cv_cc_flag_unused_command_line_argument=yes
7975else case e in #(
7976  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7977esac
7978fi
7979rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7980esac
7981fi
7982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7983printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7984	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7985	CFLAGS="$xorg_testset_save_CFLAGS"
7986fi
7987
7988found="no"
7989
7990	if test $found = "no" ; then
7991		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7992			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7993		fi
7994
7995		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7996			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7997		fi
7998
7999		CFLAGS="$CFLAGS -Werror=missing-braces"
8000
8001		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8002printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8003		cacheid=xorg_cv_cc_flag__Werror_missing_braces
8004		if eval test \${$cacheid+y}
8005then :
8006  printf %s "(cached) " >&6
8007else case e in #(
8008  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8009/* end confdefs.h.  */
8010int i;
8011int
8012main (void)
8013{
8014
8015  ;
8016  return 0;
8017}
8018_ACEOF
8019if ac_fn_c_try_link "$LINENO"
8020then :
8021  eval $cacheid=yes
8022else case e in #(
8023  e) eval $cacheid=no ;;
8024esac
8025fi
8026rm -f core conftest.err conftest.$ac_objext conftest.beam \
8027    conftest$ac_exeext conftest.$ac_ext ;;
8028esac
8029fi
8030
8031
8032		CFLAGS="$xorg_testset_save_CFLAGS"
8033
8034		eval supported=\$$cacheid
8035		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8036printf "%s\n" "$supported" >&6; }
8037		if test "$supported" = "yes" ; then
8038			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8039			found="yes"
8040		fi
8041	fi
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057xorg_testset_save_CFLAGS="$CFLAGS"
8058
8059if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8060	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8061	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8062printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8063if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8064then :
8065  printf %s "(cached) " >&6
8066else case e in #(
8067  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068/* end confdefs.h.  */
8069int i;
8070_ACEOF
8071if ac_fn_c_try_compile "$LINENO"
8072then :
8073  xorg_cv_cc_flag_unknown_warning_option=yes
8074else case e in #(
8075  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8076esac
8077fi
8078rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8079esac
8080fi
8081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8082printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8083	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8084	CFLAGS="$xorg_testset_save_CFLAGS"
8085fi
8086
8087if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8088	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8089		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8090	fi
8091	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8092	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8093printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8094if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8095then :
8096  printf %s "(cached) " >&6
8097else case e in #(
8098  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099/* end confdefs.h.  */
8100int i;
8101_ACEOF
8102if ac_fn_c_try_compile "$LINENO"
8103then :
8104  xorg_cv_cc_flag_unused_command_line_argument=yes
8105else case e in #(
8106  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8107esac
8108fi
8109rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8110esac
8111fi
8112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8113printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8114	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8115	CFLAGS="$xorg_testset_save_CFLAGS"
8116fi
8117
8118found="no"
8119
8120	if test $found = "no" ; then
8121		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8122			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8123		fi
8124
8125		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8126			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8127		fi
8128
8129		CFLAGS="$CFLAGS -Werror=sequence-point"
8130
8131		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8132printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8133		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8134		if eval test \${$cacheid+y}
8135then :
8136  printf %s "(cached) " >&6
8137else case e in #(
8138  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139/* end confdefs.h.  */
8140int i;
8141int
8142main (void)
8143{
8144
8145  ;
8146  return 0;
8147}
8148_ACEOF
8149if ac_fn_c_try_link "$LINENO"
8150then :
8151  eval $cacheid=yes
8152else case e in #(
8153  e) eval $cacheid=no ;;
8154esac
8155fi
8156rm -f core conftest.err conftest.$ac_objext conftest.beam \
8157    conftest$ac_exeext conftest.$ac_ext ;;
8158esac
8159fi
8160
8161
8162		CFLAGS="$xorg_testset_save_CFLAGS"
8163
8164		eval supported=\$$cacheid
8165		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8166printf "%s\n" "$supported" >&6; }
8167		if test "$supported" = "yes" ; then
8168			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8169			found="yes"
8170		fi
8171	fi
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187xorg_testset_save_CFLAGS="$CFLAGS"
8188
8189if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8190	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8191	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8192printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8193if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8194then :
8195  printf %s "(cached) " >&6
8196else case e in #(
8197  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8198/* end confdefs.h.  */
8199int i;
8200_ACEOF
8201if ac_fn_c_try_compile "$LINENO"
8202then :
8203  xorg_cv_cc_flag_unknown_warning_option=yes
8204else case e in #(
8205  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8206esac
8207fi
8208rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8209esac
8210fi
8211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8212printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8213	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8214	CFLAGS="$xorg_testset_save_CFLAGS"
8215fi
8216
8217if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8218	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8219		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8220	fi
8221	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8222	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8223printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8224if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8225then :
8226  printf %s "(cached) " >&6
8227else case e in #(
8228  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229/* end confdefs.h.  */
8230int i;
8231_ACEOF
8232if ac_fn_c_try_compile "$LINENO"
8233then :
8234  xorg_cv_cc_flag_unused_command_line_argument=yes
8235else case e in #(
8236  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8237esac
8238fi
8239rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8240esac
8241fi
8242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8243printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8244	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8245	CFLAGS="$xorg_testset_save_CFLAGS"
8246fi
8247
8248found="no"
8249
8250	if test $found = "no" ; then
8251		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8252			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8253		fi
8254
8255		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8256			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8257		fi
8258
8259		CFLAGS="$CFLAGS -Werror=return-type"
8260
8261		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8262printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8263		cacheid=xorg_cv_cc_flag__Werror_return_type
8264		if eval test \${$cacheid+y}
8265then :
8266  printf %s "(cached) " >&6
8267else case e in #(
8268  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8269/* end confdefs.h.  */
8270int i;
8271int
8272main (void)
8273{
8274
8275  ;
8276  return 0;
8277}
8278_ACEOF
8279if ac_fn_c_try_link "$LINENO"
8280then :
8281  eval $cacheid=yes
8282else case e in #(
8283  e) eval $cacheid=no ;;
8284esac
8285fi
8286rm -f core conftest.err conftest.$ac_objext conftest.beam \
8287    conftest$ac_exeext conftest.$ac_ext ;;
8288esac
8289fi
8290
8291
8292		CFLAGS="$xorg_testset_save_CFLAGS"
8293
8294		eval supported=\$$cacheid
8295		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8296printf "%s\n" "$supported" >&6; }
8297		if test "$supported" = "yes" ; then
8298			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8299			found="yes"
8300		fi
8301	fi
8302
8303	if test $found = "no" ; then
8304		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8305			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8306		fi
8307
8308		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8309			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8310		fi
8311
8312		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8313
8314		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8315printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8316		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8317		if eval test \${$cacheid+y}
8318then :
8319  printf %s "(cached) " >&6
8320else case e in #(
8321  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322/* end confdefs.h.  */
8323int i;
8324int
8325main (void)
8326{
8327
8328  ;
8329  return 0;
8330}
8331_ACEOF
8332if ac_fn_c_try_link "$LINENO"
8333then :
8334  eval $cacheid=yes
8335else case e in #(
8336  e) eval $cacheid=no ;;
8337esac
8338fi
8339rm -f core conftest.err conftest.$ac_objext conftest.beam \
8340    conftest$ac_exeext conftest.$ac_ext ;;
8341esac
8342fi
8343
8344
8345		CFLAGS="$xorg_testset_save_CFLAGS"
8346
8347		eval supported=\$$cacheid
8348		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8349printf "%s\n" "$supported" >&6; }
8350		if test "$supported" = "yes" ; then
8351			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8352			found="yes"
8353		fi
8354	fi
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370xorg_testset_save_CFLAGS="$CFLAGS"
8371
8372if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8373	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8374	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8375printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8376if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8377then :
8378  printf %s "(cached) " >&6
8379else case e in #(
8380  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8381/* end confdefs.h.  */
8382int i;
8383_ACEOF
8384if ac_fn_c_try_compile "$LINENO"
8385then :
8386  xorg_cv_cc_flag_unknown_warning_option=yes
8387else case e in #(
8388  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8389esac
8390fi
8391rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8392esac
8393fi
8394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8395printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8396	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8397	CFLAGS="$xorg_testset_save_CFLAGS"
8398fi
8399
8400if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8401	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8402		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8403	fi
8404	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8405	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8406printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8407if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8408then :
8409  printf %s "(cached) " >&6
8410else case e in #(
8411  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8412/* end confdefs.h.  */
8413int i;
8414_ACEOF
8415if ac_fn_c_try_compile "$LINENO"
8416then :
8417  xorg_cv_cc_flag_unused_command_line_argument=yes
8418else case e in #(
8419  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8420esac
8421fi
8422rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8423esac
8424fi
8425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8426printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8427	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8428	CFLAGS="$xorg_testset_save_CFLAGS"
8429fi
8430
8431found="no"
8432
8433	if test $found = "no" ; then
8434		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8435			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8436		fi
8437
8438		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8439			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8440		fi
8441
8442		CFLAGS="$CFLAGS -Werror=trigraphs"
8443
8444		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8445printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8446		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8447		if eval test \${$cacheid+y}
8448then :
8449  printf %s "(cached) " >&6
8450else case e in #(
8451  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8452/* end confdefs.h.  */
8453int i;
8454int
8455main (void)
8456{
8457
8458  ;
8459  return 0;
8460}
8461_ACEOF
8462if ac_fn_c_try_link "$LINENO"
8463then :
8464  eval $cacheid=yes
8465else case e in #(
8466  e) eval $cacheid=no ;;
8467esac
8468fi
8469rm -f core conftest.err conftest.$ac_objext conftest.beam \
8470    conftest$ac_exeext conftest.$ac_ext ;;
8471esac
8472fi
8473
8474
8475		CFLAGS="$xorg_testset_save_CFLAGS"
8476
8477		eval supported=\$$cacheid
8478		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8479printf "%s\n" "$supported" >&6; }
8480		if test "$supported" = "yes" ; then
8481			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8482			found="yes"
8483		fi
8484	fi
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500xorg_testset_save_CFLAGS="$CFLAGS"
8501
8502if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8503	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8504	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8505printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8506if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8507then :
8508  printf %s "(cached) " >&6
8509else case e in #(
8510  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511/* end confdefs.h.  */
8512int i;
8513_ACEOF
8514if ac_fn_c_try_compile "$LINENO"
8515then :
8516  xorg_cv_cc_flag_unknown_warning_option=yes
8517else case e in #(
8518  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8519esac
8520fi
8521rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8522esac
8523fi
8524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8525printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8526	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8527	CFLAGS="$xorg_testset_save_CFLAGS"
8528fi
8529
8530if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8531	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8532		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8533	fi
8534	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8535	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8536printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8537if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8538then :
8539  printf %s "(cached) " >&6
8540else case e in #(
8541  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8542/* end confdefs.h.  */
8543int i;
8544_ACEOF
8545if ac_fn_c_try_compile "$LINENO"
8546then :
8547  xorg_cv_cc_flag_unused_command_line_argument=yes
8548else case e in #(
8549  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8550esac
8551fi
8552rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8553esac
8554fi
8555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8556printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8557	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8558	CFLAGS="$xorg_testset_save_CFLAGS"
8559fi
8560
8561found="no"
8562
8563	if test $found = "no" ; then
8564		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8565			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8566		fi
8567
8568		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8569			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8570		fi
8571
8572		CFLAGS="$CFLAGS -Werror=array-bounds"
8573
8574		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8575printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8576		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8577		if eval test \${$cacheid+y}
8578then :
8579  printf %s "(cached) " >&6
8580else case e in #(
8581  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8582/* end confdefs.h.  */
8583int i;
8584int
8585main (void)
8586{
8587
8588  ;
8589  return 0;
8590}
8591_ACEOF
8592if ac_fn_c_try_link "$LINENO"
8593then :
8594  eval $cacheid=yes
8595else case e in #(
8596  e) eval $cacheid=no ;;
8597esac
8598fi
8599rm -f core conftest.err conftest.$ac_objext conftest.beam \
8600    conftest$ac_exeext conftest.$ac_ext ;;
8601esac
8602fi
8603
8604
8605		CFLAGS="$xorg_testset_save_CFLAGS"
8606
8607		eval supported=\$$cacheid
8608		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8609printf "%s\n" "$supported" >&6; }
8610		if test "$supported" = "yes" ; then
8611			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8612			found="yes"
8613		fi
8614	fi
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630xorg_testset_save_CFLAGS="$CFLAGS"
8631
8632if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8633	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8634	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8635printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8636if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8637then :
8638  printf %s "(cached) " >&6
8639else case e in #(
8640  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641/* end confdefs.h.  */
8642int i;
8643_ACEOF
8644if ac_fn_c_try_compile "$LINENO"
8645then :
8646  xorg_cv_cc_flag_unknown_warning_option=yes
8647else case e in #(
8648  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8649esac
8650fi
8651rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8652esac
8653fi
8654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8655printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8656	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8657	CFLAGS="$xorg_testset_save_CFLAGS"
8658fi
8659
8660if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8661	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8662		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8663	fi
8664	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8665	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8666printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8667if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8668then :
8669  printf %s "(cached) " >&6
8670else case e in #(
8671  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672/* end confdefs.h.  */
8673int i;
8674_ACEOF
8675if ac_fn_c_try_compile "$LINENO"
8676then :
8677  xorg_cv_cc_flag_unused_command_line_argument=yes
8678else case e in #(
8679  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8680esac
8681fi
8682rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8683esac
8684fi
8685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8686printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8687	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8688	CFLAGS="$xorg_testset_save_CFLAGS"
8689fi
8690
8691found="no"
8692
8693	if test $found = "no" ; then
8694		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8695			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8696		fi
8697
8698		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8699			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8700		fi
8701
8702		CFLAGS="$CFLAGS -Werror=write-strings"
8703
8704		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8705printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8706		cacheid=xorg_cv_cc_flag__Werror_write_strings
8707		if eval test \${$cacheid+y}
8708then :
8709  printf %s "(cached) " >&6
8710else case e in #(
8711  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8712/* end confdefs.h.  */
8713int i;
8714int
8715main (void)
8716{
8717
8718  ;
8719  return 0;
8720}
8721_ACEOF
8722if ac_fn_c_try_link "$LINENO"
8723then :
8724  eval $cacheid=yes
8725else case e in #(
8726  e) eval $cacheid=no ;;
8727esac
8728fi
8729rm -f core conftest.err conftest.$ac_objext conftest.beam \
8730    conftest$ac_exeext conftest.$ac_ext ;;
8731esac
8732fi
8733
8734
8735		CFLAGS="$xorg_testset_save_CFLAGS"
8736
8737		eval supported=\$$cacheid
8738		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8739printf "%s\n" "$supported" >&6; }
8740		if test "$supported" = "yes" ; then
8741			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8742			found="yes"
8743		fi
8744	fi
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760xorg_testset_save_CFLAGS="$CFLAGS"
8761
8762if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8763	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8764	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8765printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8766if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8767then :
8768  printf %s "(cached) " >&6
8769else case e in #(
8770  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8771/* end confdefs.h.  */
8772int i;
8773_ACEOF
8774if ac_fn_c_try_compile "$LINENO"
8775then :
8776  xorg_cv_cc_flag_unknown_warning_option=yes
8777else case e in #(
8778  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8779esac
8780fi
8781rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8782esac
8783fi
8784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8785printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8786	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8787	CFLAGS="$xorg_testset_save_CFLAGS"
8788fi
8789
8790if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8791	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8792		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8793	fi
8794	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8795	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8796printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8797if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8798then :
8799  printf %s "(cached) " >&6
8800else case e in #(
8801  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8802/* end confdefs.h.  */
8803int i;
8804_ACEOF
8805if ac_fn_c_try_compile "$LINENO"
8806then :
8807  xorg_cv_cc_flag_unused_command_line_argument=yes
8808else case e in #(
8809  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8810esac
8811fi
8812rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8813esac
8814fi
8815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8816printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8817	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8818	CFLAGS="$xorg_testset_save_CFLAGS"
8819fi
8820
8821found="no"
8822
8823	if test $found = "no" ; then
8824		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8825			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8826		fi
8827
8828		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8829			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8830		fi
8831
8832		CFLAGS="$CFLAGS -Werror=address"
8833
8834		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8835printf %s "checking if $CC supports -Werror=address... " >&6; }
8836		cacheid=xorg_cv_cc_flag__Werror_address
8837		if eval test \${$cacheid+y}
8838then :
8839  printf %s "(cached) " >&6
8840else case e in #(
8841  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8842/* end confdefs.h.  */
8843int i;
8844int
8845main (void)
8846{
8847
8848  ;
8849  return 0;
8850}
8851_ACEOF
8852if ac_fn_c_try_link "$LINENO"
8853then :
8854  eval $cacheid=yes
8855else case e in #(
8856  e) eval $cacheid=no ;;
8857esac
8858fi
8859rm -f core conftest.err conftest.$ac_objext conftest.beam \
8860    conftest$ac_exeext conftest.$ac_ext ;;
8861esac
8862fi
8863
8864
8865		CFLAGS="$xorg_testset_save_CFLAGS"
8866
8867		eval supported=\$$cacheid
8868		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8869printf "%s\n" "$supported" >&6; }
8870		if test "$supported" = "yes" ; then
8871			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8872			found="yes"
8873		fi
8874	fi
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890xorg_testset_save_CFLAGS="$CFLAGS"
8891
8892if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8893	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8894	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8895printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8896if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8897then :
8898  printf %s "(cached) " >&6
8899else case e in #(
8900  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8901/* end confdefs.h.  */
8902int i;
8903_ACEOF
8904if ac_fn_c_try_compile "$LINENO"
8905then :
8906  xorg_cv_cc_flag_unknown_warning_option=yes
8907else case e in #(
8908  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8909esac
8910fi
8911rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8912esac
8913fi
8914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8915printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8916	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8917	CFLAGS="$xorg_testset_save_CFLAGS"
8918fi
8919
8920if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8921	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8922		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8923	fi
8924	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8925	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8926printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8927if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8928then :
8929  printf %s "(cached) " >&6
8930else case e in #(
8931  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932/* end confdefs.h.  */
8933int i;
8934_ACEOF
8935if ac_fn_c_try_compile "$LINENO"
8936then :
8937  xorg_cv_cc_flag_unused_command_line_argument=yes
8938else case e in #(
8939  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8940esac
8941fi
8942rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8943esac
8944fi
8945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8946printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8947	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8948	CFLAGS="$xorg_testset_save_CFLAGS"
8949fi
8950
8951found="no"
8952
8953	if test $found = "no" ; then
8954		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8955			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8956		fi
8957
8958		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8959			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8960		fi
8961
8962		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8963
8964		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8965printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8966		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8967		if eval test \${$cacheid+y}
8968then :
8969  printf %s "(cached) " >&6
8970else case e in #(
8971  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8972/* end confdefs.h.  */
8973int i;
8974int
8975main (void)
8976{
8977
8978  ;
8979  return 0;
8980}
8981_ACEOF
8982if ac_fn_c_try_link "$LINENO"
8983then :
8984  eval $cacheid=yes
8985else case e in #(
8986  e) eval $cacheid=no ;;
8987esac
8988fi
8989rm -f core conftest.err conftest.$ac_objext conftest.beam \
8990    conftest$ac_exeext conftest.$ac_ext ;;
8991esac
8992fi
8993
8994
8995		CFLAGS="$xorg_testset_save_CFLAGS"
8996
8997		eval supported=\$$cacheid
8998		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8999printf "%s\n" "$supported" >&6; }
9000		if test "$supported" = "yes" ; then
9001			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9002			found="yes"
9003		fi
9004	fi
9005
9006	if test $found = "no" ; then
9007		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9008			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9009		fi
9010
9011		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9012			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9013		fi
9014
9015		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9016
9017		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9018printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9019		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9020		if eval test \${$cacheid+y}
9021then :
9022  printf %s "(cached) " >&6
9023else case e in #(
9024  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9025/* end confdefs.h.  */
9026int i;
9027int
9028main (void)
9029{
9030
9031  ;
9032  return 0;
9033}
9034_ACEOF
9035if ac_fn_c_try_link "$LINENO"
9036then :
9037  eval $cacheid=yes
9038else case e in #(
9039  e) eval $cacheid=no ;;
9040esac
9041fi
9042rm -f core conftest.err conftest.$ac_objext conftest.beam \
9043    conftest$ac_exeext conftest.$ac_ext ;;
9044esac
9045fi
9046
9047
9048		CFLAGS="$xorg_testset_save_CFLAGS"
9049
9050		eval supported=\$$cacheid
9051		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9052printf "%s\n" "$supported" >&6; }
9053		if test "$supported" = "yes" ; then
9054			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9055			found="yes"
9056		fi
9057	fi
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073xorg_testset_save_CFLAGS="$CFLAGS"
9074
9075if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9076	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9077	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9078printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9079if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9080then :
9081  printf %s "(cached) " >&6
9082else case e in #(
9083  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9084/* end confdefs.h.  */
9085int i;
9086_ACEOF
9087if ac_fn_c_try_compile "$LINENO"
9088then :
9089  xorg_cv_cc_flag_unknown_warning_option=yes
9090else case e in #(
9091  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9092esac
9093fi
9094rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9095esac
9096fi
9097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9098printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9099	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9100	CFLAGS="$xorg_testset_save_CFLAGS"
9101fi
9102
9103if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9104	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9105		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9106	fi
9107	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9108	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9109printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9110if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9111then :
9112  printf %s "(cached) " >&6
9113else case e in #(
9114  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9115/* end confdefs.h.  */
9116int i;
9117_ACEOF
9118if ac_fn_c_try_compile "$LINENO"
9119then :
9120  xorg_cv_cc_flag_unused_command_line_argument=yes
9121else case e in #(
9122  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9123esac
9124fi
9125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9126esac
9127fi
9128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9129printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9130	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9131	CFLAGS="$xorg_testset_save_CFLAGS"
9132fi
9133
9134found="no"
9135
9136	if test $found = "no" ; then
9137		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9138			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9139		fi
9140
9141		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9142			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9143		fi
9144
9145		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9146
9147		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9148printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9149		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9150		if eval test \${$cacheid+y}
9151then :
9152  printf %s "(cached) " >&6
9153else case e in #(
9154  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9155/* end confdefs.h.  */
9156int i;
9157int
9158main (void)
9159{
9160
9161  ;
9162  return 0;
9163}
9164_ACEOF
9165if ac_fn_c_try_link "$LINENO"
9166then :
9167  eval $cacheid=yes
9168else case e in #(
9169  e) eval $cacheid=no ;;
9170esac
9171fi
9172rm -f core conftest.err conftest.$ac_objext conftest.beam \
9173    conftest$ac_exeext conftest.$ac_ext ;;
9174esac
9175fi
9176
9177
9178		CFLAGS="$xorg_testset_save_CFLAGS"
9179
9180		eval supported=\$$cacheid
9181		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9182printf "%s\n" "$supported" >&6; }
9183		if test "$supported" = "yes" ; then
9184			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9185			found="yes"
9186		fi
9187	fi
9188
9189 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9190else
9191{ 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
9192printf "%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;}
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206xorg_testset_save_CFLAGS="$CFLAGS"
9207
9208if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9209	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9210	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9211printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9212if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9213then :
9214  printf %s "(cached) " >&6
9215else case e in #(
9216  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9217/* end confdefs.h.  */
9218int i;
9219_ACEOF
9220if ac_fn_c_try_compile "$LINENO"
9221then :
9222  xorg_cv_cc_flag_unknown_warning_option=yes
9223else case e in #(
9224  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9225esac
9226fi
9227rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9228esac
9229fi
9230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9231printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9232	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9233	CFLAGS="$xorg_testset_save_CFLAGS"
9234fi
9235
9236if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9237	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9238		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9239	fi
9240	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9241	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9242printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9243if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9244then :
9245  printf %s "(cached) " >&6
9246else case e in #(
9247  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9248/* end confdefs.h.  */
9249int i;
9250_ACEOF
9251if ac_fn_c_try_compile "$LINENO"
9252then :
9253  xorg_cv_cc_flag_unused_command_line_argument=yes
9254else case e in #(
9255  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9256esac
9257fi
9258rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9259esac
9260fi
9261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9262printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9263	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9264	CFLAGS="$xorg_testset_save_CFLAGS"
9265fi
9266
9267found="no"
9268
9269	if test $found = "no" ; then
9270		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9271			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9272		fi
9273
9274		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9275			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9276		fi
9277
9278		CFLAGS="$CFLAGS -Wimplicit"
9279
9280		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9281printf %s "checking if $CC supports -Wimplicit... " >&6; }
9282		cacheid=xorg_cv_cc_flag__Wimplicit
9283		if eval test \${$cacheid+y}
9284then :
9285  printf %s "(cached) " >&6
9286else case e in #(
9287  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9288/* end confdefs.h.  */
9289int i;
9290int
9291main (void)
9292{
9293
9294  ;
9295  return 0;
9296}
9297_ACEOF
9298if ac_fn_c_try_link "$LINENO"
9299then :
9300  eval $cacheid=yes
9301else case e in #(
9302  e) eval $cacheid=no ;;
9303esac
9304fi
9305rm -f core conftest.err conftest.$ac_objext conftest.beam \
9306    conftest$ac_exeext conftest.$ac_ext ;;
9307esac
9308fi
9309
9310
9311		CFLAGS="$xorg_testset_save_CFLAGS"
9312
9313		eval supported=\$$cacheid
9314		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9315printf "%s\n" "$supported" >&6; }
9316		if test "$supported" = "yes" ; then
9317			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9318			found="yes"
9319		fi
9320	fi
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336xorg_testset_save_CFLAGS="$CFLAGS"
9337
9338if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9339	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9340	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9341printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9342if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9343then :
9344  printf %s "(cached) " >&6
9345else case e in #(
9346  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9347/* end confdefs.h.  */
9348int i;
9349_ACEOF
9350if ac_fn_c_try_compile "$LINENO"
9351then :
9352  xorg_cv_cc_flag_unknown_warning_option=yes
9353else case e in #(
9354  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9355esac
9356fi
9357rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9358esac
9359fi
9360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9361printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9362	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9363	CFLAGS="$xorg_testset_save_CFLAGS"
9364fi
9365
9366if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9367	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9368		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9369	fi
9370	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9371	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9372printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9373if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9374then :
9375  printf %s "(cached) " >&6
9376else case e in #(
9377  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9378/* end confdefs.h.  */
9379int i;
9380_ACEOF
9381if ac_fn_c_try_compile "$LINENO"
9382then :
9383  xorg_cv_cc_flag_unused_command_line_argument=yes
9384else case e in #(
9385  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9386esac
9387fi
9388rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9389esac
9390fi
9391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9392printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9393	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9394	CFLAGS="$xorg_testset_save_CFLAGS"
9395fi
9396
9397found="no"
9398
9399	if test $found = "no" ; then
9400		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9401			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9402		fi
9403
9404		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9405			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9406		fi
9407
9408		CFLAGS="$CFLAGS -Wnonnull"
9409
9410		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9411printf %s "checking if $CC supports -Wnonnull... " >&6; }
9412		cacheid=xorg_cv_cc_flag__Wnonnull
9413		if eval test \${$cacheid+y}
9414then :
9415  printf %s "(cached) " >&6
9416else case e in #(
9417  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9418/* end confdefs.h.  */
9419int i;
9420int
9421main (void)
9422{
9423
9424  ;
9425  return 0;
9426}
9427_ACEOF
9428if ac_fn_c_try_link "$LINENO"
9429then :
9430  eval $cacheid=yes
9431else case e in #(
9432  e) eval $cacheid=no ;;
9433esac
9434fi
9435rm -f core conftest.err conftest.$ac_objext conftest.beam \
9436    conftest$ac_exeext conftest.$ac_ext ;;
9437esac
9438fi
9439
9440
9441		CFLAGS="$xorg_testset_save_CFLAGS"
9442
9443		eval supported=\$$cacheid
9444		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9445printf "%s\n" "$supported" >&6; }
9446		if test "$supported" = "yes" ; then
9447			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9448			found="yes"
9449		fi
9450	fi
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466xorg_testset_save_CFLAGS="$CFLAGS"
9467
9468if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9469	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9470	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9471printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9472if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9473then :
9474  printf %s "(cached) " >&6
9475else case e in #(
9476  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477/* end confdefs.h.  */
9478int i;
9479_ACEOF
9480if ac_fn_c_try_compile "$LINENO"
9481then :
9482  xorg_cv_cc_flag_unknown_warning_option=yes
9483else case e in #(
9484  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9485esac
9486fi
9487rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9488esac
9489fi
9490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9491printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9492	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9493	CFLAGS="$xorg_testset_save_CFLAGS"
9494fi
9495
9496if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9497	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9498		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9499	fi
9500	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9501	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9502printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9503if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9504then :
9505  printf %s "(cached) " >&6
9506else case e in #(
9507  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9508/* end confdefs.h.  */
9509int i;
9510_ACEOF
9511if ac_fn_c_try_compile "$LINENO"
9512then :
9513  xorg_cv_cc_flag_unused_command_line_argument=yes
9514else case e in #(
9515  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9516esac
9517fi
9518rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9519esac
9520fi
9521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9522printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9523	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9524	CFLAGS="$xorg_testset_save_CFLAGS"
9525fi
9526
9527found="no"
9528
9529	if test $found = "no" ; then
9530		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9531			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9532		fi
9533
9534		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9535			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9536		fi
9537
9538		CFLAGS="$CFLAGS -Winit-self"
9539
9540		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9541printf %s "checking if $CC supports -Winit-self... " >&6; }
9542		cacheid=xorg_cv_cc_flag__Winit_self
9543		if eval test \${$cacheid+y}
9544then :
9545  printf %s "(cached) " >&6
9546else case e in #(
9547  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9548/* end confdefs.h.  */
9549int i;
9550int
9551main (void)
9552{
9553
9554  ;
9555  return 0;
9556}
9557_ACEOF
9558if ac_fn_c_try_link "$LINENO"
9559then :
9560  eval $cacheid=yes
9561else case e in #(
9562  e) eval $cacheid=no ;;
9563esac
9564fi
9565rm -f core conftest.err conftest.$ac_objext conftest.beam \
9566    conftest$ac_exeext conftest.$ac_ext ;;
9567esac
9568fi
9569
9570
9571		CFLAGS="$xorg_testset_save_CFLAGS"
9572
9573		eval supported=\$$cacheid
9574		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9575printf "%s\n" "$supported" >&6; }
9576		if test "$supported" = "yes" ; then
9577			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9578			found="yes"
9579		fi
9580	fi
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596xorg_testset_save_CFLAGS="$CFLAGS"
9597
9598if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9599	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9600	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9601printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9602if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9603then :
9604  printf %s "(cached) " >&6
9605else case e in #(
9606  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9607/* end confdefs.h.  */
9608int i;
9609_ACEOF
9610if ac_fn_c_try_compile "$LINENO"
9611then :
9612  xorg_cv_cc_flag_unknown_warning_option=yes
9613else case e in #(
9614  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9615esac
9616fi
9617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9618esac
9619fi
9620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9621printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9622	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9623	CFLAGS="$xorg_testset_save_CFLAGS"
9624fi
9625
9626if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9627	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9628		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9629	fi
9630	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9631	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9632printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9633if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9634then :
9635  printf %s "(cached) " >&6
9636else case e in #(
9637  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9638/* end confdefs.h.  */
9639int i;
9640_ACEOF
9641if ac_fn_c_try_compile "$LINENO"
9642then :
9643  xorg_cv_cc_flag_unused_command_line_argument=yes
9644else case e in #(
9645  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9646esac
9647fi
9648rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9649esac
9650fi
9651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9652printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9653	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9654	CFLAGS="$xorg_testset_save_CFLAGS"
9655fi
9656
9657found="no"
9658
9659	if test $found = "no" ; then
9660		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9661			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9662		fi
9663
9664		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9665			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9666		fi
9667
9668		CFLAGS="$CFLAGS -Wmain"
9669
9670		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9671printf %s "checking if $CC supports -Wmain... " >&6; }
9672		cacheid=xorg_cv_cc_flag__Wmain
9673		if eval test \${$cacheid+y}
9674then :
9675  printf %s "(cached) " >&6
9676else case e in #(
9677  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9678/* end confdefs.h.  */
9679int i;
9680int
9681main (void)
9682{
9683
9684  ;
9685  return 0;
9686}
9687_ACEOF
9688if ac_fn_c_try_link "$LINENO"
9689then :
9690  eval $cacheid=yes
9691else case e in #(
9692  e) eval $cacheid=no ;;
9693esac
9694fi
9695rm -f core conftest.err conftest.$ac_objext conftest.beam \
9696    conftest$ac_exeext conftest.$ac_ext ;;
9697esac
9698fi
9699
9700
9701		CFLAGS="$xorg_testset_save_CFLAGS"
9702
9703		eval supported=\$$cacheid
9704		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9705printf "%s\n" "$supported" >&6; }
9706		if test "$supported" = "yes" ; then
9707			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9708			found="yes"
9709		fi
9710	fi
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726xorg_testset_save_CFLAGS="$CFLAGS"
9727
9728if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9729	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9730	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9731printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9732if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9733then :
9734  printf %s "(cached) " >&6
9735else case e in #(
9736  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9737/* end confdefs.h.  */
9738int i;
9739_ACEOF
9740if ac_fn_c_try_compile "$LINENO"
9741then :
9742  xorg_cv_cc_flag_unknown_warning_option=yes
9743else case e in #(
9744  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9745esac
9746fi
9747rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9748esac
9749fi
9750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9751printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9752	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9753	CFLAGS="$xorg_testset_save_CFLAGS"
9754fi
9755
9756if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9757	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9758		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9759	fi
9760	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9761	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9762printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9763if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9764then :
9765  printf %s "(cached) " >&6
9766else case e in #(
9767  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768/* end confdefs.h.  */
9769int i;
9770_ACEOF
9771if ac_fn_c_try_compile "$LINENO"
9772then :
9773  xorg_cv_cc_flag_unused_command_line_argument=yes
9774else case e in #(
9775  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9776esac
9777fi
9778rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9779esac
9780fi
9781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9782printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9783	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9784	CFLAGS="$xorg_testset_save_CFLAGS"
9785fi
9786
9787found="no"
9788
9789	if test $found = "no" ; then
9790		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9791			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9792		fi
9793
9794		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9795			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9796		fi
9797
9798		CFLAGS="$CFLAGS -Wmissing-braces"
9799
9800		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9801printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9802		cacheid=xorg_cv_cc_flag__Wmissing_braces
9803		if eval test \${$cacheid+y}
9804then :
9805  printf %s "(cached) " >&6
9806else case e in #(
9807  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9808/* end confdefs.h.  */
9809int i;
9810int
9811main (void)
9812{
9813
9814  ;
9815  return 0;
9816}
9817_ACEOF
9818if ac_fn_c_try_link "$LINENO"
9819then :
9820  eval $cacheid=yes
9821else case e in #(
9822  e) eval $cacheid=no ;;
9823esac
9824fi
9825rm -f core conftest.err conftest.$ac_objext conftest.beam \
9826    conftest$ac_exeext conftest.$ac_ext ;;
9827esac
9828fi
9829
9830
9831		CFLAGS="$xorg_testset_save_CFLAGS"
9832
9833		eval supported=\$$cacheid
9834		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9835printf "%s\n" "$supported" >&6; }
9836		if test "$supported" = "yes" ; then
9837			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9838			found="yes"
9839		fi
9840	fi
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856xorg_testset_save_CFLAGS="$CFLAGS"
9857
9858if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9859	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9860	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9861printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9862if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9863then :
9864  printf %s "(cached) " >&6
9865else case e in #(
9866  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9867/* end confdefs.h.  */
9868int i;
9869_ACEOF
9870if ac_fn_c_try_compile "$LINENO"
9871then :
9872  xorg_cv_cc_flag_unknown_warning_option=yes
9873else case e in #(
9874  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9875esac
9876fi
9877rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9878esac
9879fi
9880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9881printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9882	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9883	CFLAGS="$xorg_testset_save_CFLAGS"
9884fi
9885
9886if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9887	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9888		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9889	fi
9890	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9891	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9892printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9893if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9894then :
9895  printf %s "(cached) " >&6
9896else case e in #(
9897  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898/* end confdefs.h.  */
9899int i;
9900_ACEOF
9901if ac_fn_c_try_compile "$LINENO"
9902then :
9903  xorg_cv_cc_flag_unused_command_line_argument=yes
9904else case e in #(
9905  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9906esac
9907fi
9908rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9909esac
9910fi
9911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9912printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9913	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9914	CFLAGS="$xorg_testset_save_CFLAGS"
9915fi
9916
9917found="no"
9918
9919	if test $found = "no" ; then
9920		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9921			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9922		fi
9923
9924		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9925			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9926		fi
9927
9928		CFLAGS="$CFLAGS -Wsequence-point"
9929
9930		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9931printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9932		cacheid=xorg_cv_cc_flag__Wsequence_point
9933		if eval test \${$cacheid+y}
9934then :
9935  printf %s "(cached) " >&6
9936else case e in #(
9937  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9938/* end confdefs.h.  */
9939int i;
9940int
9941main (void)
9942{
9943
9944  ;
9945  return 0;
9946}
9947_ACEOF
9948if ac_fn_c_try_link "$LINENO"
9949then :
9950  eval $cacheid=yes
9951else case e in #(
9952  e) eval $cacheid=no ;;
9953esac
9954fi
9955rm -f core conftest.err conftest.$ac_objext conftest.beam \
9956    conftest$ac_exeext conftest.$ac_ext ;;
9957esac
9958fi
9959
9960
9961		CFLAGS="$xorg_testset_save_CFLAGS"
9962
9963		eval supported=\$$cacheid
9964		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9965printf "%s\n" "$supported" >&6; }
9966		if test "$supported" = "yes" ; then
9967			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9968			found="yes"
9969		fi
9970	fi
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986xorg_testset_save_CFLAGS="$CFLAGS"
9987
9988if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9989	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9990	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9991printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9992if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9993then :
9994  printf %s "(cached) " >&6
9995else case e in #(
9996  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9997/* end confdefs.h.  */
9998int i;
9999_ACEOF
10000if ac_fn_c_try_compile "$LINENO"
10001then :
10002  xorg_cv_cc_flag_unknown_warning_option=yes
10003else case e in #(
10004  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10005esac
10006fi
10007rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10008esac
10009fi
10010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10011printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10012	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10013	CFLAGS="$xorg_testset_save_CFLAGS"
10014fi
10015
10016if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10017	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10018		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10019	fi
10020	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10021	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10022printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10023if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10024then :
10025  printf %s "(cached) " >&6
10026else case e in #(
10027  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10028/* end confdefs.h.  */
10029int i;
10030_ACEOF
10031if ac_fn_c_try_compile "$LINENO"
10032then :
10033  xorg_cv_cc_flag_unused_command_line_argument=yes
10034else case e in #(
10035  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10036esac
10037fi
10038rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10039esac
10040fi
10041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10042printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10043	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10044	CFLAGS="$xorg_testset_save_CFLAGS"
10045fi
10046
10047found="no"
10048
10049	if test $found = "no" ; then
10050		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10051			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10052		fi
10053
10054		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10055			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10056		fi
10057
10058		CFLAGS="$CFLAGS -Wreturn-type"
10059
10060		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10061printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10062		cacheid=xorg_cv_cc_flag__Wreturn_type
10063		if eval test \${$cacheid+y}
10064then :
10065  printf %s "(cached) " >&6
10066else case e in #(
10067  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10068/* end confdefs.h.  */
10069int i;
10070int
10071main (void)
10072{
10073
10074  ;
10075  return 0;
10076}
10077_ACEOF
10078if ac_fn_c_try_link "$LINENO"
10079then :
10080  eval $cacheid=yes
10081else case e in #(
10082  e) eval $cacheid=no ;;
10083esac
10084fi
10085rm -f core conftest.err conftest.$ac_objext conftest.beam \
10086    conftest$ac_exeext conftest.$ac_ext ;;
10087esac
10088fi
10089
10090
10091		CFLAGS="$xorg_testset_save_CFLAGS"
10092
10093		eval supported=\$$cacheid
10094		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10095printf "%s\n" "$supported" >&6; }
10096		if test "$supported" = "yes" ; then
10097			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10098			found="yes"
10099		fi
10100	fi
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116xorg_testset_save_CFLAGS="$CFLAGS"
10117
10118if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10119	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10120	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10121printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10122if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10123then :
10124  printf %s "(cached) " >&6
10125else case e in #(
10126  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127/* end confdefs.h.  */
10128int i;
10129_ACEOF
10130if ac_fn_c_try_compile "$LINENO"
10131then :
10132  xorg_cv_cc_flag_unknown_warning_option=yes
10133else case e in #(
10134  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10135esac
10136fi
10137rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10138esac
10139fi
10140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10141printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10142	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10143	CFLAGS="$xorg_testset_save_CFLAGS"
10144fi
10145
10146if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10147	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10148		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10149	fi
10150	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10151	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10152printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10153if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10154then :
10155  printf %s "(cached) " >&6
10156else case e in #(
10157  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10158/* end confdefs.h.  */
10159int i;
10160_ACEOF
10161if ac_fn_c_try_compile "$LINENO"
10162then :
10163  xorg_cv_cc_flag_unused_command_line_argument=yes
10164else case e in #(
10165  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10166esac
10167fi
10168rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10169esac
10170fi
10171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10172printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10173	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10174	CFLAGS="$xorg_testset_save_CFLAGS"
10175fi
10176
10177found="no"
10178
10179	if test $found = "no" ; then
10180		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10181			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10182		fi
10183
10184		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10185			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10186		fi
10187
10188		CFLAGS="$CFLAGS -Wtrigraphs"
10189
10190		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10191printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10192		cacheid=xorg_cv_cc_flag__Wtrigraphs
10193		if eval test \${$cacheid+y}
10194then :
10195  printf %s "(cached) " >&6
10196else case e in #(
10197  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10198/* end confdefs.h.  */
10199int i;
10200int
10201main (void)
10202{
10203
10204  ;
10205  return 0;
10206}
10207_ACEOF
10208if ac_fn_c_try_link "$LINENO"
10209then :
10210  eval $cacheid=yes
10211else case e in #(
10212  e) eval $cacheid=no ;;
10213esac
10214fi
10215rm -f core conftest.err conftest.$ac_objext conftest.beam \
10216    conftest$ac_exeext conftest.$ac_ext ;;
10217esac
10218fi
10219
10220
10221		CFLAGS="$xorg_testset_save_CFLAGS"
10222
10223		eval supported=\$$cacheid
10224		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10225printf "%s\n" "$supported" >&6; }
10226		if test "$supported" = "yes" ; then
10227			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10228			found="yes"
10229		fi
10230	fi
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246xorg_testset_save_CFLAGS="$CFLAGS"
10247
10248if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10249	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10250	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10251printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10252if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10253then :
10254  printf %s "(cached) " >&6
10255else case e in #(
10256  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10257/* end confdefs.h.  */
10258int i;
10259_ACEOF
10260if ac_fn_c_try_compile "$LINENO"
10261then :
10262  xorg_cv_cc_flag_unknown_warning_option=yes
10263else case e in #(
10264  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10265esac
10266fi
10267rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10268esac
10269fi
10270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10271printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10272	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10273	CFLAGS="$xorg_testset_save_CFLAGS"
10274fi
10275
10276if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10277	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10278		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10279	fi
10280	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10281	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10282printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10283if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10284then :
10285  printf %s "(cached) " >&6
10286else case e in #(
10287  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10288/* end confdefs.h.  */
10289int i;
10290_ACEOF
10291if ac_fn_c_try_compile "$LINENO"
10292then :
10293  xorg_cv_cc_flag_unused_command_line_argument=yes
10294else case e in #(
10295  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10296esac
10297fi
10298rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10299esac
10300fi
10301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10302printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10303	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10304	CFLAGS="$xorg_testset_save_CFLAGS"
10305fi
10306
10307found="no"
10308
10309	if test $found = "no" ; then
10310		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10311			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10312		fi
10313
10314		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10315			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10316		fi
10317
10318		CFLAGS="$CFLAGS -Warray-bounds"
10319
10320		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10321printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10322		cacheid=xorg_cv_cc_flag__Warray_bounds
10323		if eval test \${$cacheid+y}
10324then :
10325  printf %s "(cached) " >&6
10326else case e in #(
10327  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10328/* end confdefs.h.  */
10329int i;
10330int
10331main (void)
10332{
10333
10334  ;
10335  return 0;
10336}
10337_ACEOF
10338if ac_fn_c_try_link "$LINENO"
10339then :
10340  eval $cacheid=yes
10341else case e in #(
10342  e) eval $cacheid=no ;;
10343esac
10344fi
10345rm -f core conftest.err conftest.$ac_objext conftest.beam \
10346    conftest$ac_exeext conftest.$ac_ext ;;
10347esac
10348fi
10349
10350
10351		CFLAGS="$xorg_testset_save_CFLAGS"
10352
10353		eval supported=\$$cacheid
10354		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10355printf "%s\n" "$supported" >&6; }
10356		if test "$supported" = "yes" ; then
10357			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10358			found="yes"
10359		fi
10360	fi
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376xorg_testset_save_CFLAGS="$CFLAGS"
10377
10378if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10379	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10380	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10381printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10382if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10383then :
10384  printf %s "(cached) " >&6
10385else case e in #(
10386  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387/* end confdefs.h.  */
10388int i;
10389_ACEOF
10390if ac_fn_c_try_compile "$LINENO"
10391then :
10392  xorg_cv_cc_flag_unknown_warning_option=yes
10393else case e in #(
10394  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10395esac
10396fi
10397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10398esac
10399fi
10400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10401printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10402	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10403	CFLAGS="$xorg_testset_save_CFLAGS"
10404fi
10405
10406if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10407	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10408		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10409	fi
10410	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10411	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10412printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10413if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10414then :
10415  printf %s "(cached) " >&6
10416else case e in #(
10417  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10418/* end confdefs.h.  */
10419int i;
10420_ACEOF
10421if ac_fn_c_try_compile "$LINENO"
10422then :
10423  xorg_cv_cc_flag_unused_command_line_argument=yes
10424else case e in #(
10425  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10426esac
10427fi
10428rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10429esac
10430fi
10431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10432printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10433	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10434	CFLAGS="$xorg_testset_save_CFLAGS"
10435fi
10436
10437found="no"
10438
10439	if test $found = "no" ; then
10440		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10441			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10442		fi
10443
10444		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10445			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10446		fi
10447
10448		CFLAGS="$CFLAGS -Wwrite-strings"
10449
10450		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10451printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10452		cacheid=xorg_cv_cc_flag__Wwrite_strings
10453		if eval test \${$cacheid+y}
10454then :
10455  printf %s "(cached) " >&6
10456else case e in #(
10457  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10458/* end confdefs.h.  */
10459int i;
10460int
10461main (void)
10462{
10463
10464  ;
10465  return 0;
10466}
10467_ACEOF
10468if ac_fn_c_try_link "$LINENO"
10469then :
10470  eval $cacheid=yes
10471else case e in #(
10472  e) eval $cacheid=no ;;
10473esac
10474fi
10475rm -f core conftest.err conftest.$ac_objext conftest.beam \
10476    conftest$ac_exeext conftest.$ac_ext ;;
10477esac
10478fi
10479
10480
10481		CFLAGS="$xorg_testset_save_CFLAGS"
10482
10483		eval supported=\$$cacheid
10484		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10485printf "%s\n" "$supported" >&6; }
10486		if test "$supported" = "yes" ; then
10487			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10488			found="yes"
10489		fi
10490	fi
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506xorg_testset_save_CFLAGS="$CFLAGS"
10507
10508if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10509	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10510	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10511printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10512if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10513then :
10514  printf %s "(cached) " >&6
10515else case e in #(
10516  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10517/* end confdefs.h.  */
10518int i;
10519_ACEOF
10520if ac_fn_c_try_compile "$LINENO"
10521then :
10522  xorg_cv_cc_flag_unknown_warning_option=yes
10523else case e in #(
10524  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10525esac
10526fi
10527rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10528esac
10529fi
10530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10531printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10532	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10533	CFLAGS="$xorg_testset_save_CFLAGS"
10534fi
10535
10536if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10537	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10538		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10539	fi
10540	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10541	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10542printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10543if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10544then :
10545  printf %s "(cached) " >&6
10546else case e in #(
10547  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10548/* end confdefs.h.  */
10549int i;
10550_ACEOF
10551if ac_fn_c_try_compile "$LINENO"
10552then :
10553  xorg_cv_cc_flag_unused_command_line_argument=yes
10554else case e in #(
10555  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10556esac
10557fi
10558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10559esac
10560fi
10561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10562printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10563	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10564	CFLAGS="$xorg_testset_save_CFLAGS"
10565fi
10566
10567found="no"
10568
10569	if test $found = "no" ; then
10570		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10571			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10572		fi
10573
10574		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10575			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10576		fi
10577
10578		CFLAGS="$CFLAGS -Waddress"
10579
10580		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10581printf %s "checking if $CC supports -Waddress... " >&6; }
10582		cacheid=xorg_cv_cc_flag__Waddress
10583		if eval test \${$cacheid+y}
10584then :
10585  printf %s "(cached) " >&6
10586else case e in #(
10587  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10588/* end confdefs.h.  */
10589int i;
10590int
10591main (void)
10592{
10593
10594  ;
10595  return 0;
10596}
10597_ACEOF
10598if ac_fn_c_try_link "$LINENO"
10599then :
10600  eval $cacheid=yes
10601else case e in #(
10602  e) eval $cacheid=no ;;
10603esac
10604fi
10605rm -f core conftest.err conftest.$ac_objext conftest.beam \
10606    conftest$ac_exeext conftest.$ac_ext ;;
10607esac
10608fi
10609
10610
10611		CFLAGS="$xorg_testset_save_CFLAGS"
10612
10613		eval supported=\$$cacheid
10614		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10615printf "%s\n" "$supported" >&6; }
10616		if test "$supported" = "yes" ; then
10617			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10618			found="yes"
10619		fi
10620	fi
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636xorg_testset_save_CFLAGS="$CFLAGS"
10637
10638if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10639	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10640	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10641printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10642if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10643then :
10644  printf %s "(cached) " >&6
10645else case e in #(
10646  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10647/* end confdefs.h.  */
10648int i;
10649_ACEOF
10650if ac_fn_c_try_compile "$LINENO"
10651then :
10652  xorg_cv_cc_flag_unknown_warning_option=yes
10653else case e in #(
10654  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10655esac
10656fi
10657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10658esac
10659fi
10660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10661printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10662	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10663	CFLAGS="$xorg_testset_save_CFLAGS"
10664fi
10665
10666if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10667	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10668		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10669	fi
10670	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10671	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10672printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10673if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10674then :
10675  printf %s "(cached) " >&6
10676else case e in #(
10677  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10678/* end confdefs.h.  */
10679int i;
10680_ACEOF
10681if ac_fn_c_try_compile "$LINENO"
10682then :
10683  xorg_cv_cc_flag_unused_command_line_argument=yes
10684else case e in #(
10685  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10686esac
10687fi
10688rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10689esac
10690fi
10691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10692printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10693	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10694	CFLAGS="$xorg_testset_save_CFLAGS"
10695fi
10696
10697found="no"
10698
10699	if test $found = "no" ; then
10700		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10701			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10702		fi
10703
10704		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10705			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10706		fi
10707
10708		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10709
10710		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10711printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10712		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10713		if eval test \${$cacheid+y}
10714then :
10715  printf %s "(cached) " >&6
10716else case e in #(
10717  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10718/* end confdefs.h.  */
10719int i;
10720int
10721main (void)
10722{
10723
10724  ;
10725  return 0;
10726}
10727_ACEOF
10728if ac_fn_c_try_link "$LINENO"
10729then :
10730  eval $cacheid=yes
10731else case e in #(
10732  e) eval $cacheid=no ;;
10733esac
10734fi
10735rm -f core conftest.err conftest.$ac_objext conftest.beam \
10736    conftest$ac_exeext conftest.$ac_ext ;;
10737esac
10738fi
10739
10740
10741		CFLAGS="$xorg_testset_save_CFLAGS"
10742
10743		eval supported=\$$cacheid
10744		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10745printf "%s\n" "$supported" >&6; }
10746		if test "$supported" = "yes" ; then
10747			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10748			found="yes"
10749		fi
10750	fi
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766xorg_testset_save_CFLAGS="$CFLAGS"
10767
10768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10769	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10770	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10771printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10772if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10773then :
10774  printf %s "(cached) " >&6
10775else case e in #(
10776  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777/* end confdefs.h.  */
10778int i;
10779_ACEOF
10780if ac_fn_c_try_compile "$LINENO"
10781then :
10782  xorg_cv_cc_flag_unknown_warning_option=yes
10783else case e in #(
10784  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10785esac
10786fi
10787rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10788esac
10789fi
10790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10791printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10792	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10793	CFLAGS="$xorg_testset_save_CFLAGS"
10794fi
10795
10796if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10797	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10798		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10799	fi
10800	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10801	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10802printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10803if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10804then :
10805  printf %s "(cached) " >&6
10806else case e in #(
10807  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10808/* end confdefs.h.  */
10809int i;
10810_ACEOF
10811if ac_fn_c_try_compile "$LINENO"
10812then :
10813  xorg_cv_cc_flag_unused_command_line_argument=yes
10814else case e in #(
10815  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10816esac
10817fi
10818rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10819esac
10820fi
10821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10822printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10823	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10824	CFLAGS="$xorg_testset_save_CFLAGS"
10825fi
10826
10827found="no"
10828
10829	if test $found = "no" ; then
10830		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10831			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10832		fi
10833
10834		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10835			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10836		fi
10837
10838		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10839
10840		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10841printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10842		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10843		if eval test \${$cacheid+y}
10844then :
10845  printf %s "(cached) " >&6
10846else case e in #(
10847  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10848/* end confdefs.h.  */
10849int i;
10850int
10851main (void)
10852{
10853
10854  ;
10855  return 0;
10856}
10857_ACEOF
10858if ac_fn_c_try_link "$LINENO"
10859then :
10860  eval $cacheid=yes
10861else case e in #(
10862  e) eval $cacheid=no ;;
10863esac
10864fi
10865rm -f core conftest.err conftest.$ac_objext conftest.beam \
10866    conftest$ac_exeext conftest.$ac_ext ;;
10867esac
10868fi
10869
10870
10871		CFLAGS="$xorg_testset_save_CFLAGS"
10872
10873		eval supported=\$$cacheid
10874		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10875printf "%s\n" "$supported" >&6; }
10876		if test "$supported" = "yes" ; then
10877			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10878			found="yes"
10879		fi
10880	fi
10881
10882
10883fi
10884
10885
10886
10887
10888
10889
10890
10891		CWARNFLAGS="$BASE_CFLAGS"
10892		if  test "x$GCC" = xyes ; then
10893		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10894		fi
10895
10896
10897
10898
10899
10900
10901
10902
10903# Check whether --enable-strict-compilation was given.
10904if test ${enable_strict_compilation+y}
10905then :
10906  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10907else case e in #(
10908  e) STRICT_COMPILE=no ;;
10909esac
10910fi
10911
10912
10913
10914
10915
10916
10917STRICT_CFLAGS=""
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931xorg_testset_save_CFLAGS="$CFLAGS"
10932
10933if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10934	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10935	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10936printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10937if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10938then :
10939  printf %s "(cached) " >&6
10940else case e in #(
10941  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10942/* end confdefs.h.  */
10943int i;
10944_ACEOF
10945if ac_fn_c_try_compile "$LINENO"
10946then :
10947  xorg_cv_cc_flag_unknown_warning_option=yes
10948else case e in #(
10949  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10950esac
10951fi
10952rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10953esac
10954fi
10955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10956printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10957	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10958	CFLAGS="$xorg_testset_save_CFLAGS"
10959fi
10960
10961if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10962	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10963		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10964	fi
10965	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10966	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10967printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10968if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10969then :
10970  printf %s "(cached) " >&6
10971else case e in #(
10972  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10973/* end confdefs.h.  */
10974int i;
10975_ACEOF
10976if ac_fn_c_try_compile "$LINENO"
10977then :
10978  xorg_cv_cc_flag_unused_command_line_argument=yes
10979else case e in #(
10980  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10981esac
10982fi
10983rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10984esac
10985fi
10986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10987printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10988	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10989	CFLAGS="$xorg_testset_save_CFLAGS"
10990fi
10991
10992found="no"
10993
10994	if test $found = "no" ; then
10995		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10996			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10997		fi
10998
10999		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11000			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11001		fi
11002
11003		CFLAGS="$CFLAGS -pedantic"
11004
11005		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11006printf %s "checking if $CC supports -pedantic... " >&6; }
11007		cacheid=xorg_cv_cc_flag__pedantic
11008		if eval test \${$cacheid+y}
11009then :
11010  printf %s "(cached) " >&6
11011else case e in #(
11012  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11013/* end confdefs.h.  */
11014int i;
11015int
11016main (void)
11017{
11018
11019  ;
11020  return 0;
11021}
11022_ACEOF
11023if ac_fn_c_try_link "$LINENO"
11024then :
11025  eval $cacheid=yes
11026else case e in #(
11027  e) eval $cacheid=no ;;
11028esac
11029fi
11030rm -f core conftest.err conftest.$ac_objext conftest.beam \
11031    conftest$ac_exeext conftest.$ac_ext ;;
11032esac
11033fi
11034
11035
11036		CFLAGS="$xorg_testset_save_CFLAGS"
11037
11038		eval supported=\$$cacheid
11039		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11040printf "%s\n" "$supported" >&6; }
11041		if test "$supported" = "yes" ; then
11042			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11043			found="yes"
11044		fi
11045	fi
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061xorg_testset_save_CFLAGS="$CFLAGS"
11062
11063if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11064	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11065	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11066printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11067if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11068then :
11069  printf %s "(cached) " >&6
11070else case e in #(
11071  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11072/* end confdefs.h.  */
11073int i;
11074_ACEOF
11075if ac_fn_c_try_compile "$LINENO"
11076then :
11077  xorg_cv_cc_flag_unknown_warning_option=yes
11078else case e in #(
11079  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11080esac
11081fi
11082rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11083esac
11084fi
11085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11086printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11087	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11088	CFLAGS="$xorg_testset_save_CFLAGS"
11089fi
11090
11091if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11092	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11093		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11094	fi
11095	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11096	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11097printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11098if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11099then :
11100  printf %s "(cached) " >&6
11101else case e in #(
11102  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11103/* end confdefs.h.  */
11104int i;
11105_ACEOF
11106if ac_fn_c_try_compile "$LINENO"
11107then :
11108  xorg_cv_cc_flag_unused_command_line_argument=yes
11109else case e in #(
11110  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11111esac
11112fi
11113rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11114esac
11115fi
11116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11117printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11118	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11119	CFLAGS="$xorg_testset_save_CFLAGS"
11120fi
11121
11122found="no"
11123
11124	if test $found = "no" ; then
11125		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11126			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11127		fi
11128
11129		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11130			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11131		fi
11132
11133		CFLAGS="$CFLAGS -Werror"
11134
11135		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11136printf %s "checking if $CC supports -Werror... " >&6; }
11137		cacheid=xorg_cv_cc_flag__Werror
11138		if eval test \${$cacheid+y}
11139then :
11140  printf %s "(cached) " >&6
11141else case e in #(
11142  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11143/* end confdefs.h.  */
11144int i;
11145int
11146main (void)
11147{
11148
11149  ;
11150  return 0;
11151}
11152_ACEOF
11153if ac_fn_c_try_link "$LINENO"
11154then :
11155  eval $cacheid=yes
11156else case e in #(
11157  e) eval $cacheid=no ;;
11158esac
11159fi
11160rm -f core conftest.err conftest.$ac_objext conftest.beam \
11161    conftest$ac_exeext conftest.$ac_ext ;;
11162esac
11163fi
11164
11165
11166		CFLAGS="$xorg_testset_save_CFLAGS"
11167
11168		eval supported=\$$cacheid
11169		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11170printf "%s\n" "$supported" >&6; }
11171		if test "$supported" = "yes" ; then
11172			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11173			found="yes"
11174		fi
11175	fi
11176
11177	if test $found = "no" ; then
11178		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11179			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11180		fi
11181
11182		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11183			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11184		fi
11185
11186		CFLAGS="$CFLAGS -errwarn"
11187
11188		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11189printf %s "checking if $CC supports -errwarn... " >&6; }
11190		cacheid=xorg_cv_cc_flag__errwarn
11191		if eval test \${$cacheid+y}
11192then :
11193  printf %s "(cached) " >&6
11194else case e in #(
11195  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11196/* end confdefs.h.  */
11197int i;
11198int
11199main (void)
11200{
11201
11202  ;
11203  return 0;
11204}
11205_ACEOF
11206if ac_fn_c_try_link "$LINENO"
11207then :
11208  eval $cacheid=yes
11209else case e in #(
11210  e) eval $cacheid=no ;;
11211esac
11212fi
11213rm -f core conftest.err conftest.$ac_objext conftest.beam \
11214    conftest$ac_exeext conftest.$ac_ext ;;
11215esac
11216fi
11217
11218
11219		CFLAGS="$xorg_testset_save_CFLAGS"
11220
11221		eval supported=\$$cacheid
11222		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11223printf "%s\n" "$supported" >&6; }
11224		if test "$supported" = "yes" ; then
11225			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11226			found="yes"
11227		fi
11228	fi
11229
11230
11231
11232# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11233# activate it with -Werror, so we add it here explicitly.
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247xorg_testset_save_CFLAGS="$CFLAGS"
11248
11249if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11250	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11251	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11252printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11253if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11254then :
11255  printf %s "(cached) " >&6
11256else case e in #(
11257  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11258/* end confdefs.h.  */
11259int i;
11260_ACEOF
11261if ac_fn_c_try_compile "$LINENO"
11262then :
11263  xorg_cv_cc_flag_unknown_warning_option=yes
11264else case e in #(
11265  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11266esac
11267fi
11268rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11269esac
11270fi
11271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11272printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11273	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11274	CFLAGS="$xorg_testset_save_CFLAGS"
11275fi
11276
11277if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11278	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11279		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11280	fi
11281	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11282	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11283printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11284if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11285then :
11286  printf %s "(cached) " >&6
11287else case e in #(
11288  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11289/* end confdefs.h.  */
11290int i;
11291_ACEOF
11292if ac_fn_c_try_compile "$LINENO"
11293then :
11294  xorg_cv_cc_flag_unused_command_line_argument=yes
11295else case e in #(
11296  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11297esac
11298fi
11299rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11300esac
11301fi
11302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11303printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11304	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11305	CFLAGS="$xorg_testset_save_CFLAGS"
11306fi
11307
11308found="no"
11309
11310	if test $found = "no" ; then
11311		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11312			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11313		fi
11314
11315		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11316			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11317		fi
11318
11319		CFLAGS="$CFLAGS -Werror=attributes"
11320
11321		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11322printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11323		cacheid=xorg_cv_cc_flag__Werror_attributes
11324		if eval test \${$cacheid+y}
11325then :
11326  printf %s "(cached) " >&6
11327else case e in #(
11328  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11329/* end confdefs.h.  */
11330int i;
11331int
11332main (void)
11333{
11334
11335  ;
11336  return 0;
11337}
11338_ACEOF
11339if ac_fn_c_try_link "$LINENO"
11340then :
11341  eval $cacheid=yes
11342else case e in #(
11343  e) eval $cacheid=no ;;
11344esac
11345fi
11346rm -f core conftest.err conftest.$ac_objext conftest.beam \
11347    conftest$ac_exeext conftest.$ac_ext ;;
11348esac
11349fi
11350
11351
11352		CFLAGS="$xorg_testset_save_CFLAGS"
11353
11354		eval supported=\$$cacheid
11355		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11356printf "%s\n" "$supported" >&6; }
11357		if test "$supported" = "yes" ; then
11358			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11359			found="yes"
11360		fi
11361	fi
11362
11363
11364
11365if test "x$STRICT_COMPILE" = "xyes"; then
11366    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11367    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11368fi
11369
11370
11371
11372
11373
11374
11375
11376
11377cat >>confdefs.h <<_ACEOF
11378#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11379_ACEOF
11380
11381	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11382	if test "x$PVM" = "x"; then
11383		PVM="0"
11384	fi
11385
11386printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11387
11388	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11389	if test "x$PVP" = "x"; then
11390		PVP="0"
11391	fi
11392
11393printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11394
11395
11396
11397CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11398mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11399|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11400touch \$(top_srcdir)/ChangeLog; \
11401echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11402
11403
11404
11405
11406macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11407INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11408mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11409|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11410touch \$(top_srcdir)/INSTALL; \
11411echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11412
11413
11414
11415
11416
11417
11418case $host_os in
11419    solaris*)
11420        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11421        # check for a man page file found in later versions that use
11422        # traditional section numbers instead
11423        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11424printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11425if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11426then :
11427  printf %s "(cached) " >&6
11428else case e in #(
11429  e) test "$cross_compiling" = yes &&
11430  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11431if test -r "/usr/share/man/man7/attributes.7"; then
11432  ac_cv_file__usr_share_man_man7_attributes_7=yes
11433else
11434  ac_cv_file__usr_share_man_man7_attributes_7=no
11435fi ;;
11436esac
11437fi
11438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11439printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11440if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11441then :
11442  SYSV_MAN_SECTIONS=false
11443else case e in #(
11444  e) SYSV_MAN_SECTIONS=true ;;
11445esac
11446fi
11447
11448        ;;
11449    *) SYSV_MAN_SECTIONS=false ;;
11450esac
11451
11452if test x$APP_MAN_SUFFIX = x    ; then
11453    APP_MAN_SUFFIX=1
11454fi
11455if test x$APP_MAN_DIR = x    ; then
11456    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11457fi
11458
11459if test x$LIB_MAN_SUFFIX = x    ; then
11460    LIB_MAN_SUFFIX=3
11461fi
11462if test x$LIB_MAN_DIR = x    ; then
11463    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11464fi
11465
11466if test x$FILE_MAN_SUFFIX = x    ; then
11467    case $SYSV_MAN_SECTIONS in
11468	true)				FILE_MAN_SUFFIX=4  ;;
11469	*)				FILE_MAN_SUFFIX=5  ;;
11470    esac
11471fi
11472if test x$FILE_MAN_DIR = x    ; then
11473    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11474fi
11475
11476if test x$MISC_MAN_SUFFIX = x    ; then
11477    case $SYSV_MAN_SECTIONS in
11478	true)				MISC_MAN_SUFFIX=5  ;;
11479	*)				MISC_MAN_SUFFIX=7  ;;
11480    esac
11481fi
11482if test x$MISC_MAN_DIR = x    ; then
11483    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11484fi
11485
11486if test x$DRIVER_MAN_SUFFIX = x    ; then
11487    case $SYSV_MAN_SECTIONS in
11488	true)				DRIVER_MAN_SUFFIX=7  ;;
11489	*)				DRIVER_MAN_SUFFIX=4  ;;
11490    esac
11491fi
11492if test x$DRIVER_MAN_DIR = x    ; then
11493    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11494fi
11495
11496if test x$ADMIN_MAN_SUFFIX = x    ; then
11497    case $SYSV_MAN_SECTIONS in
11498	true)				ADMIN_MAN_SUFFIX=1m ;;
11499	*)				ADMIN_MAN_SUFFIX=8  ;;
11500    esac
11501fi
11502if test x$ADMIN_MAN_DIR = x    ; then
11503    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11504fi
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520XORG_MAN_PAGE="X Version 11"
11521
11522MAN_SUBSTS="\
11523	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11524	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11525	-e 's|__xservername__|Xorg|g' \
11526	-e 's|__xconfigfile__|xorg.conf|g' \
11527	-e 's|__projectroot__|\$(prefix)|g' \
11528	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11529	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11530	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11531	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11532	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11533	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11534	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11535
11536
11537
11538# Check whether --enable-silent-rules was given.
11539if test ${enable_silent_rules+y}
11540then :
11541  enableval=$enable_silent_rules;
11542fi
11543
11544case $enable_silent_rules in # (((
11545  yes) AM_DEFAULT_VERBOSITY=0;;
11546   no) AM_DEFAULT_VERBOSITY=1;;
11547    *) AM_DEFAULT_VERBOSITY=0;;
11548esac
11549am_make=${MAKE-make}
11550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11551printf %s "checking whether $am_make supports nested variables... " >&6; }
11552if test ${am_cv_make_support_nested_variables+y}
11553then :
11554  printf %s "(cached) " >&6
11555else case e in #(
11556  e) if printf "%s\n" 'TRUE=$(BAR$(V))
11557BAR0=false
11558BAR1=true
11559V=1
11560am__doit:
11561	@$(TRUE)
11562.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11563  am_cv_make_support_nested_variables=yes
11564else
11565  am_cv_make_support_nested_variables=no
11566fi ;;
11567esac
11568fi
11569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11570printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11571if test $am_cv_make_support_nested_variables = yes; then
11572    AM_V='$(V)'
11573  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11574else
11575  AM_V=$AM_DEFAULT_VERBOSITY
11576  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11577fi
11578AM_BACKSLASH='\'
11579
11580
11581
11582
11583# Initialize libtool
11584case `pwd` in
11585  *\ * | *\	*)
11586    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11587printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11588esac
11589
11590
11591
11592macro_version='2.4.7'
11593macro_revision='2.4.7'
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608ltmain=$ac_aux_dir/ltmain.sh
11609
11610# Backslashify metacharacters that are still active within
11611# double-quoted strings.
11612sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11613
11614# Same as above, but do not quote variable references.
11615double_quote_subst='s/\(["`\\]\)/\\\1/g'
11616
11617# Sed substitution to delay expansion of an escaped shell variable in a
11618# double_quote_subst'ed string.
11619delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11620
11621# Sed substitution to delay expansion of an escaped single quote.
11622delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11623
11624# Sed substitution to avoid accidental globbing in evaled expressions
11625no_glob_subst='s/\*/\\\*/g'
11626
11627ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11628ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11629ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11630
11631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11632printf %s "checking how to print strings... " >&6; }
11633# Test print first, because it will be a builtin if present.
11634if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11635   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11636  ECHO='print -r --'
11637elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11638  ECHO='printf %s\n'
11639else
11640  # Use this function as a fallback that always works.
11641  func_fallback_echo ()
11642  {
11643    eval 'cat <<_LTECHO_EOF
11644$1
11645_LTECHO_EOF'
11646  }
11647  ECHO='func_fallback_echo'
11648fi
11649
11650# func_echo_all arg...
11651# Invoke $ECHO with all args, space-separated.
11652func_echo_all ()
11653{
11654    $ECHO ""
11655}
11656
11657case $ECHO in
11658  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11659printf "%s\n" "printf" >&6; } ;;
11660  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11661printf "%s\n" "print -r" >&6; } ;;
11662  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11663printf "%s\n" "cat" >&6; } ;;
11664esac
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11680printf %s "checking for a sed that does not truncate output... " >&6; }
11681if test ${ac_cv_path_SED+y}
11682then :
11683  printf %s "(cached) " >&6
11684else case e in #(
11685  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11686     for ac_i in 1 2 3 4 5 6 7; do
11687       ac_script="$ac_script$as_nl$ac_script"
11688     done
11689     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11690     { ac_script=; unset ac_script;}
11691     if test -z "$SED"; then
11692  ac_path_SED_found=false
11693  # Loop through the user's path and test for each of PROGNAME-LIST
11694  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11695for as_dir in $PATH
11696do
11697  IFS=$as_save_IFS
11698  case $as_dir in #(((
11699    '') as_dir=./ ;;
11700    */) ;;
11701    *) as_dir=$as_dir/ ;;
11702  esac
11703    for ac_prog in sed gsed
11704   do
11705    for ac_exec_ext in '' $ac_executable_extensions; do
11706      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
11707      as_fn_executable_p "$ac_path_SED" || continue
11708# Check for GNU ac_path_SED and select it if it is found.
11709  # Check for GNU $ac_path_SED
11710case `"$ac_path_SED" --version 2>&1` in #(
11711*GNU*)
11712  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11713#(
11714*)
11715  ac_count=0
11716  printf %s 0123456789 >"conftest.in"
11717  while :
11718  do
11719    cat "conftest.in" "conftest.in" >"conftest.tmp"
11720    mv "conftest.tmp" "conftest.in"
11721    cp "conftest.in" "conftest.nl"
11722    printf "%s\n" '' >> "conftest.nl"
11723    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11724    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11725    as_fn_arith $ac_count + 1 && ac_count=$as_val
11726    if test $ac_count -gt ${ac_path_SED_max-0}; then
11727      # Best one so far, save it but keep looking for a better one
11728      ac_cv_path_SED="$ac_path_SED"
11729      ac_path_SED_max=$ac_count
11730    fi
11731    # 10*(2^10) chars as input seems more than enough
11732    test $ac_count -gt 10 && break
11733  done
11734  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11735esac
11736
11737      $ac_path_SED_found && break 3
11738    done
11739  done
11740  done
11741IFS=$as_save_IFS
11742  if test -z "$ac_cv_path_SED"; then
11743    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11744  fi
11745else
11746  ac_cv_path_SED=$SED
11747fi
11748 ;;
11749esac
11750fi
11751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11752printf "%s\n" "$ac_cv_path_SED" >&6; }
11753 SED="$ac_cv_path_SED"
11754  rm -f conftest.sed
11755
11756test -z "$SED" && SED=sed
11757Xsed="$SED -e 1s/^X//"
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11770printf %s "checking for grep that handles long lines and -e... " >&6; }
11771if test ${ac_cv_path_GREP+y}
11772then :
11773  printf %s "(cached) " >&6
11774else case e in #(
11775  e) if test -z "$GREP"; then
11776  ac_path_GREP_found=false
11777  # Loop through the user's path and test for each of PROGNAME-LIST
11778  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11779for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11780do
11781  IFS=$as_save_IFS
11782  case $as_dir in #(((
11783    '') as_dir=./ ;;
11784    */) ;;
11785    *) as_dir=$as_dir/ ;;
11786  esac
11787    for ac_prog in grep ggrep
11788   do
11789    for ac_exec_ext in '' $ac_executable_extensions; do
11790      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
11791      as_fn_executable_p "$ac_path_GREP" || continue
11792# Check for GNU ac_path_GREP and select it if it is found.
11793  # Check for GNU $ac_path_GREP
11794case `"$ac_path_GREP" --version 2>&1` in #(
11795*GNU*)
11796  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11797#(
11798*)
11799  ac_count=0
11800  printf %s 0123456789 >"conftest.in"
11801  while :
11802  do
11803    cat "conftest.in" "conftest.in" >"conftest.tmp"
11804    mv "conftest.tmp" "conftest.in"
11805    cp "conftest.in" "conftest.nl"
11806    printf "%s\n" 'GREP' >> "conftest.nl"
11807    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11808    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11809    as_fn_arith $ac_count + 1 && ac_count=$as_val
11810    if test $ac_count -gt ${ac_path_GREP_max-0}; then
11811      # Best one so far, save it but keep looking for a better one
11812      ac_cv_path_GREP="$ac_path_GREP"
11813      ac_path_GREP_max=$ac_count
11814    fi
11815    # 10*(2^10) chars as input seems more than enough
11816    test $ac_count -gt 10 && break
11817  done
11818  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11819esac
11820
11821      $ac_path_GREP_found && break 3
11822    done
11823  done
11824  done
11825IFS=$as_save_IFS
11826  if test -z "$ac_cv_path_GREP"; then
11827    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11828  fi
11829else
11830  ac_cv_path_GREP=$GREP
11831fi
11832 ;;
11833esac
11834fi
11835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11836printf "%s\n" "$ac_cv_path_GREP" >&6; }
11837 GREP="$ac_cv_path_GREP"
11838
11839
11840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11841printf %s "checking for egrep... " >&6; }
11842if test ${ac_cv_path_EGREP+y}
11843then :
11844  printf %s "(cached) " >&6
11845else case e in #(
11846  e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11847   then ac_cv_path_EGREP="$GREP -E"
11848   else
11849     if test -z "$EGREP"; then
11850  ac_path_EGREP_found=false
11851  # Loop through the user's path and test for each of PROGNAME-LIST
11852  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11853for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11854do
11855  IFS=$as_save_IFS
11856  case $as_dir in #(((
11857    '') as_dir=./ ;;
11858    */) ;;
11859    *) as_dir=$as_dir/ ;;
11860  esac
11861    for ac_prog in egrep
11862   do
11863    for ac_exec_ext in '' $ac_executable_extensions; do
11864      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11865      as_fn_executable_p "$ac_path_EGREP" || continue
11866# Check for GNU ac_path_EGREP and select it if it is found.
11867  # Check for GNU $ac_path_EGREP
11868case `"$ac_path_EGREP" --version 2>&1` in #(
11869*GNU*)
11870  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11871#(
11872*)
11873  ac_count=0
11874  printf %s 0123456789 >"conftest.in"
11875  while :
11876  do
11877    cat "conftest.in" "conftest.in" >"conftest.tmp"
11878    mv "conftest.tmp" "conftest.in"
11879    cp "conftest.in" "conftest.nl"
11880    printf "%s\n" 'EGREP' >> "conftest.nl"
11881    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11882    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11883    as_fn_arith $ac_count + 1 && ac_count=$as_val
11884    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11885      # Best one so far, save it but keep looking for a better one
11886      ac_cv_path_EGREP="$ac_path_EGREP"
11887      ac_path_EGREP_max=$ac_count
11888    fi
11889    # 10*(2^10) chars as input seems more than enough
11890    test $ac_count -gt 10 && break
11891  done
11892  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11893esac
11894
11895      $ac_path_EGREP_found && break 3
11896    done
11897  done
11898  done
11899IFS=$as_save_IFS
11900  if test -z "$ac_cv_path_EGREP"; then
11901    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11902  fi
11903else
11904  ac_cv_path_EGREP=$EGREP
11905fi
11906
11907   fi ;;
11908esac
11909fi
11910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11911printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11912 EGREP="$ac_cv_path_EGREP"
11913
11914         EGREP_TRADITIONAL=$EGREP
11915 ac_cv_path_EGREP_TRADITIONAL=$EGREP
11916
11917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11918printf %s "checking for fgrep... " >&6; }
11919if test ${ac_cv_path_FGREP+y}
11920then :
11921  printf %s "(cached) " >&6
11922else case e in #(
11923  e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11924   then ac_cv_path_FGREP="$GREP -F"
11925   else
11926     if test -z "$FGREP"; then
11927  ac_path_FGREP_found=false
11928  # Loop through the user's path and test for each of PROGNAME-LIST
11929  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11930for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11931do
11932  IFS=$as_save_IFS
11933  case $as_dir in #(((
11934    '') as_dir=./ ;;
11935    */) ;;
11936    *) as_dir=$as_dir/ ;;
11937  esac
11938    for ac_prog in fgrep
11939   do
11940    for ac_exec_ext in '' $ac_executable_extensions; do
11941      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
11942      as_fn_executable_p "$ac_path_FGREP" || continue
11943# Check for GNU ac_path_FGREP and select it if it is found.
11944  # Check for GNU $ac_path_FGREP
11945case `"$ac_path_FGREP" --version 2>&1` in #(
11946*GNU*)
11947  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11948#(
11949*)
11950  ac_count=0
11951  printf %s 0123456789 >"conftest.in"
11952  while :
11953  do
11954    cat "conftest.in" "conftest.in" >"conftest.tmp"
11955    mv "conftest.tmp" "conftest.in"
11956    cp "conftest.in" "conftest.nl"
11957    printf "%s\n" 'FGREP' >> "conftest.nl"
11958    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11959    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11960    as_fn_arith $ac_count + 1 && ac_count=$as_val
11961    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11962      # Best one so far, save it but keep looking for a better one
11963      ac_cv_path_FGREP="$ac_path_FGREP"
11964      ac_path_FGREP_max=$ac_count
11965    fi
11966    # 10*(2^10) chars as input seems more than enough
11967    test $ac_count -gt 10 && break
11968  done
11969  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11970esac
11971
11972      $ac_path_FGREP_found && break 3
11973    done
11974  done
11975  done
11976IFS=$as_save_IFS
11977  if test -z "$ac_cv_path_FGREP"; then
11978    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11979  fi
11980else
11981  ac_cv_path_FGREP=$FGREP
11982fi
11983
11984   fi ;;
11985esac
11986fi
11987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11988printf "%s\n" "$ac_cv_path_FGREP" >&6; }
11989 FGREP="$ac_cv_path_FGREP"
11990
11991
11992test -z "$GREP" && GREP=grep
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012# Check whether --with-gnu-ld was given.
12013if test ${with_gnu_ld+y}
12014then :
12015  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12016else case e in #(
12017  e) with_gnu_ld=no ;;
12018esac
12019fi
12020
12021ac_prog=ld
12022if test yes = "$GCC"; then
12023  # Check if gcc -print-prog-name=ld gives a path.
12024  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12025printf %s "checking for ld used by $CC... " >&6; }
12026  case $host in
12027  *-*-mingw*)
12028    # gcc leaves a trailing carriage return, which upsets mingw
12029    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12030  *)
12031    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12032  esac
12033  case $ac_prog in
12034    # Accept absolute paths.
12035    [\\/]* | ?:[\\/]*)
12036      re_direlt='/[^/][^/]*/\.\./'
12037      # Canonicalize the pathname of ld
12038      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12039      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12040	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12041      done
12042      test -z "$LD" && LD=$ac_prog
12043      ;;
12044  "")
12045    # If it fails, then pretend we aren't using GCC.
12046    ac_prog=ld
12047    ;;
12048  *)
12049    # If it is relative, then search for the first ld in PATH.
12050    with_gnu_ld=unknown
12051    ;;
12052  esac
12053elif test yes = "$with_gnu_ld"; then
12054  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12055printf %s "checking for GNU ld... " >&6; }
12056else
12057  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12058printf %s "checking for non-GNU ld... " >&6; }
12059fi
12060if test ${lt_cv_path_LD+y}
12061then :
12062  printf %s "(cached) " >&6
12063else case e in #(
12064  e) if test -z "$LD"; then
12065  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12066  for ac_dir in $PATH; do
12067    IFS=$lt_save_ifs
12068    test -z "$ac_dir" && ac_dir=.
12069    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12070      lt_cv_path_LD=$ac_dir/$ac_prog
12071      # Check to see if the program is GNU ld.  I'd rather use --version,
12072      # but apparently some variants of GNU ld only accept -v.
12073      # Break only if it was the GNU/non-GNU ld that we prefer.
12074      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12075      *GNU* | *'with BFD'*)
12076	test no != "$with_gnu_ld" && break
12077	;;
12078      *)
12079	test yes != "$with_gnu_ld" && break
12080	;;
12081      esac
12082    fi
12083  done
12084  IFS=$lt_save_ifs
12085else
12086  lt_cv_path_LD=$LD # Let the user override the test with a path.
12087fi ;;
12088esac
12089fi
12090
12091LD=$lt_cv_path_LD
12092if test -n "$LD"; then
12093  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12094printf "%s\n" "$LD" >&6; }
12095else
12096  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12097printf "%s\n" "no" >&6; }
12098fi
12099test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12101printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
12102if test ${lt_cv_prog_gnu_ld+y}
12103then :
12104  printf %s "(cached) " >&6
12105else case e in #(
12106  e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
12107case `$LD -v 2>&1 </dev/null` in
12108*GNU* | *'with BFD'*)
12109  lt_cv_prog_gnu_ld=yes
12110  ;;
12111*)
12112  lt_cv_prog_gnu_ld=no
12113  ;;
12114esac ;;
12115esac
12116fi
12117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12118printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
12119with_gnu_ld=$lt_cv_prog_gnu_ld
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12130printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12131if test ${lt_cv_path_NM+y}
12132then :
12133  printf %s "(cached) " >&6
12134else case e in #(
12135  e) if test -n "$NM"; then
12136  # Let the user override the test.
12137  lt_cv_path_NM=$NM
12138else
12139  lt_nm_to_check=${ac_tool_prefix}nm
12140  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12141    lt_nm_to_check="$lt_nm_to_check nm"
12142  fi
12143  for lt_tmp_nm in $lt_nm_to_check; do
12144    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12145    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12146      IFS=$lt_save_ifs
12147      test -z "$ac_dir" && ac_dir=.
12148      tmp_nm=$ac_dir/$lt_tmp_nm
12149      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
12150	# Check to see if the nm accepts a BSD-compat flag.
12151	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
12152	#   nm: unknown option "B" ignored
12153	# Tru64's nm complains that /dev/null is an invalid object file
12154	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
12155	case $build_os in
12156	mingw*) lt_bad_file=conftest.nm/nofile ;;
12157	*) lt_bad_file=/dev/null ;;
12158	esac
12159	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
12160	*$lt_bad_file* | *'Invalid file or object type'*)
12161	  lt_cv_path_NM="$tmp_nm -B"
12162	  break 2
12163	  ;;
12164	*)
12165	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
12166	  */dev/null*)
12167	    lt_cv_path_NM="$tmp_nm -p"
12168	    break 2
12169	    ;;
12170	  *)
12171	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12172	    continue # so that we can try to find one that supports BSD flags
12173	    ;;
12174	  esac
12175	  ;;
12176	esac
12177      fi
12178    done
12179    IFS=$lt_save_ifs
12180  done
12181  : ${lt_cv_path_NM=no}
12182fi ;;
12183esac
12184fi
12185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12186printf "%s\n" "$lt_cv_path_NM" >&6; }
12187if test no != "$lt_cv_path_NM"; then
12188  NM=$lt_cv_path_NM
12189else
12190  # Didn't find any BSD compatible name lister, look for dumpbin.
12191  if test -n "$DUMPBIN"; then :
12192    # Let the user override the test.
12193  else
12194    if test -n "$ac_tool_prefix"; then
12195  for ac_prog in dumpbin "link -dump"
12196  do
12197    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12198set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12200printf %s "checking for $ac_word... " >&6; }
12201if test ${ac_cv_prog_DUMPBIN+y}
12202then :
12203  printf %s "(cached) " >&6
12204else case e in #(
12205  e) if test -n "$DUMPBIN"; then
12206  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12207else
12208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12209for as_dir in $PATH
12210do
12211  IFS=$as_save_IFS
12212  case $as_dir in #(((
12213    '') as_dir=./ ;;
12214    */) ;;
12215    *) as_dir=$as_dir/ ;;
12216  esac
12217    for ac_exec_ext in '' $ac_executable_extensions; do
12218  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12219    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12220    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12221    break 2
12222  fi
12223done
12224  done
12225IFS=$as_save_IFS
12226
12227fi ;;
12228esac
12229fi
12230DUMPBIN=$ac_cv_prog_DUMPBIN
12231if test -n "$DUMPBIN"; then
12232  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12233printf "%s\n" "$DUMPBIN" >&6; }
12234else
12235  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12236printf "%s\n" "no" >&6; }
12237fi
12238
12239
12240    test -n "$DUMPBIN" && break
12241  done
12242fi
12243if test -z "$DUMPBIN"; then
12244  ac_ct_DUMPBIN=$DUMPBIN
12245  for ac_prog in dumpbin "link -dump"
12246do
12247  # Extract the first word of "$ac_prog", so it can be a program name with args.
12248set dummy $ac_prog; ac_word=$2
12249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12250printf %s "checking for $ac_word... " >&6; }
12251if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
12252then :
12253  printf %s "(cached) " >&6
12254else case e in #(
12255  e) if test -n "$ac_ct_DUMPBIN"; then
12256  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12257else
12258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12259for as_dir in $PATH
12260do
12261  IFS=$as_save_IFS
12262  case $as_dir in #(((
12263    '') as_dir=./ ;;
12264    */) ;;
12265    *) as_dir=$as_dir/ ;;
12266  esac
12267    for ac_exec_ext in '' $ac_executable_extensions; do
12268  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12269    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12270    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12271    break 2
12272  fi
12273done
12274  done
12275IFS=$as_save_IFS
12276
12277fi ;;
12278esac
12279fi
12280ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12281if test -n "$ac_ct_DUMPBIN"; then
12282  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12283printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
12284else
12285  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12286printf "%s\n" "no" >&6; }
12287fi
12288
12289
12290  test -n "$ac_ct_DUMPBIN" && break
12291done
12292
12293  if test "x$ac_ct_DUMPBIN" = x; then
12294    DUMPBIN=":"
12295  else
12296    case $cross_compiling:$ac_tool_warned in
12297yes:)
12298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12299printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12300ac_tool_warned=yes ;;
12301esac
12302    DUMPBIN=$ac_ct_DUMPBIN
12303  fi
12304fi
12305
12306    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
12307    *COFF*)
12308      DUMPBIN="$DUMPBIN -symbols -headers"
12309      ;;
12310    *)
12311      DUMPBIN=:
12312      ;;
12313    esac
12314  fi
12315
12316  if test : != "$DUMPBIN"; then
12317    NM=$DUMPBIN
12318  fi
12319fi
12320test -z "$NM" && NM=nm
12321
12322
12323
12324
12325
12326
12327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12328printf %s "checking the name lister ($NM) interface... " >&6; }
12329if test ${lt_cv_nm_interface+y}
12330then :
12331  printf %s "(cached) " >&6
12332else case e in #(
12333  e) lt_cv_nm_interface="BSD nm"
12334  echo "int some_variable = 0;" > conftest.$ac_ext
12335  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12336  (eval "$ac_compile" 2>conftest.err)
12337  cat conftest.err >&5
12338  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12339  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12340  cat conftest.err >&5
12341  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12342  cat conftest.out >&5
12343  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12344    lt_cv_nm_interface="MS dumpbin"
12345  fi
12346  rm -f conftest* ;;
12347esac
12348fi
12349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12350printf "%s\n" "$lt_cv_nm_interface" >&6; }
12351
12352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12353printf %s "checking whether ln -s works... " >&6; }
12354LN_S=$as_ln_s
12355if test "$LN_S" = "ln -s"; then
12356  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12357printf "%s\n" "yes" >&6; }
12358else
12359  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12360printf "%s\n" "no, using $LN_S" >&6; }
12361fi
12362
12363# find the maximum length of command line arguments
12364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12365printf %s "checking the maximum length of command line arguments... " >&6; }
12366if test ${lt_cv_sys_max_cmd_len+y}
12367then :
12368  printf %s "(cached) " >&6
12369else case e in #(
12370  e)   i=0
12371  teststring=ABCD
12372
12373  case $build_os in
12374  msdosdjgpp*)
12375    # On DJGPP, this test can blow up pretty badly due to problems in libc
12376    # (any single argument exceeding 2000 bytes causes a buffer overrun
12377    # during glob expansion).  Even if it were fixed, the result of this
12378    # check would be larger than it should be.
12379    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12380    ;;
12381
12382  gnu*)
12383    # Under GNU Hurd, this test is not required because there is
12384    # no limit to the length of command line arguments.
12385    # Libtool will interpret -1 as no limit whatsoever
12386    lt_cv_sys_max_cmd_len=-1;
12387    ;;
12388
12389  cygwin* | mingw* | cegcc*)
12390    # On Win9x/ME, this test blows up -- it succeeds, but takes
12391    # about 5 minutes as the teststring grows exponentially.
12392    # Worse, since 9x/ME are not pre-emptively multitasking,
12393    # you end up with a "frozen" computer, even though with patience
12394    # the test eventually succeeds (with a max line length of 256k).
12395    # Instead, let's just punt: use the minimum linelength reported by
12396    # all of the supported platforms: 8192 (on NT/2K/XP).
12397    lt_cv_sys_max_cmd_len=8192;
12398    ;;
12399
12400  mint*)
12401    # On MiNT this can take a long time and run out of memory.
12402    lt_cv_sys_max_cmd_len=8192;
12403    ;;
12404
12405  amigaos*)
12406    # On AmigaOS with pdksh, this test takes hours, literally.
12407    # So we just punt and use a minimum line length of 8192.
12408    lt_cv_sys_max_cmd_len=8192;
12409    ;;
12410
12411  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
12412    # This has been around since 386BSD, at least.  Likely further.
12413    if test -x /sbin/sysctl; then
12414      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12415    elif test -x /usr/sbin/sysctl; then
12416      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12417    else
12418      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
12419    fi
12420    # And add a safety zone
12421    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12422    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12423    ;;
12424
12425  interix*)
12426    # We know the value 262144 and hardcode it with a safety zone (like BSD)
12427    lt_cv_sys_max_cmd_len=196608
12428    ;;
12429
12430  os2*)
12431    # The test takes a long time on OS/2.
12432    lt_cv_sys_max_cmd_len=8192
12433    ;;
12434
12435  osf*)
12436    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12437    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12438    # nice to cause kernel panics so lets avoid the loop below.
12439    # First set a reasonable default.
12440    lt_cv_sys_max_cmd_len=16384
12441    #
12442    if test -x /sbin/sysconfig; then
12443      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12444        *1*) lt_cv_sys_max_cmd_len=-1 ;;
12445      esac
12446    fi
12447    ;;
12448  sco3.2v5*)
12449    lt_cv_sys_max_cmd_len=102400
12450    ;;
12451  sysv5* | sco5v6* | sysv4.2uw2*)
12452    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12453    if test -n "$kargmax"; then
12454      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
12455    else
12456      lt_cv_sys_max_cmd_len=32768
12457    fi
12458    ;;
12459  *)
12460    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12461    if test -n "$lt_cv_sys_max_cmd_len" && \
12462       test undefined != "$lt_cv_sys_max_cmd_len"; then
12463      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12464      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12465    else
12466      # Make teststring a little bigger before we do anything with it.
12467      # a 1K string should be a reasonable start.
12468      for i in 1 2 3 4 5 6 7 8; do
12469        teststring=$teststring$teststring
12470      done
12471      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12472      # If test is not a shell built-in, we'll probably end up computing a
12473      # maximum length that is only half of the actual maximum length, but
12474      # we can't tell.
12475      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
12476	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12477	      test 17 != "$i" # 1/2 MB should be enough
12478      do
12479        i=`expr $i + 1`
12480        teststring=$teststring$teststring
12481      done
12482      # Only check the string length outside the loop.
12483      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12484      teststring=
12485      # Add a significant safety factor because C++ compilers can tack on
12486      # massive amounts of additional arguments before passing them to the
12487      # linker.  It appears as though 1/2 is a usable value.
12488      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12489    fi
12490    ;;
12491  esac
12492 ;;
12493esac
12494fi
12495
12496if test -n "$lt_cv_sys_max_cmd_len"; then
12497  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12498printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
12499else
12500  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
12501printf "%s\n" "none" >&6; }
12502fi
12503max_cmd_len=$lt_cv_sys_max_cmd_len
12504
12505
12506
12507
12508
12509
12510: ${CP="cp -f"}
12511: ${MV="mv -f"}
12512: ${RM="rm -f"}
12513
12514if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12515  lt_unset=unset
12516else
12517  lt_unset=false
12518fi
12519
12520
12521
12522
12523
12524# test EBCDIC or ASCII
12525case `echo X|tr X '\101'` in
12526 A) # ASCII based system
12527    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12528  lt_SP2NL='tr \040 \012'
12529  lt_NL2SP='tr \015\012 \040\040'
12530  ;;
12531 *) # EBCDIC based system
12532  lt_SP2NL='tr \100 \n'
12533  lt_NL2SP='tr \r\n \100\100'
12534  ;;
12535esac
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12546printf %s "checking how to convert $build file names to $host format... " >&6; }
12547if test ${lt_cv_to_host_file_cmd+y}
12548then :
12549  printf %s "(cached) " >&6
12550else case e in #(
12551  e) case $host in
12552  *-*-mingw* )
12553    case $build in
12554      *-*-mingw* ) # actually msys
12555        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12556        ;;
12557      *-*-cygwin* )
12558        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12559        ;;
12560      * ) # otherwise, assume *nix
12561        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12562        ;;
12563    esac
12564    ;;
12565  *-*-cygwin* )
12566    case $build in
12567      *-*-mingw* ) # actually msys
12568        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12569        ;;
12570      *-*-cygwin* )
12571        lt_cv_to_host_file_cmd=func_convert_file_noop
12572        ;;
12573      * ) # otherwise, assume *nix
12574        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12575        ;;
12576    esac
12577    ;;
12578  * ) # unhandled hosts (and "normal" native builds)
12579    lt_cv_to_host_file_cmd=func_convert_file_noop
12580    ;;
12581esac
12582 ;;
12583esac
12584fi
12585
12586to_host_file_cmd=$lt_cv_to_host_file_cmd
12587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12588printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
12589
12590
12591
12592
12593
12594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12595printf %s "checking how to convert $build file names to toolchain format... " >&6; }
12596if test ${lt_cv_to_tool_file_cmd+y}
12597then :
12598  printf %s "(cached) " >&6
12599else case e in #(
12600  e) #assume ordinary cross tools, or native build.
12601lt_cv_to_tool_file_cmd=func_convert_file_noop
12602case $host in
12603  *-*-mingw* )
12604    case $build in
12605      *-*-mingw* ) # actually msys
12606        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12607        ;;
12608    esac
12609    ;;
12610esac
12611 ;;
12612esac
12613fi
12614
12615to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12617printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
12618
12619
12620
12621
12622
12623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12624printf %s "checking for $LD option to reload object files... " >&6; }
12625if test ${lt_cv_ld_reload_flag+y}
12626then :
12627  printf %s "(cached) " >&6
12628else case e in #(
12629  e) lt_cv_ld_reload_flag='-r' ;;
12630esac
12631fi
12632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12633printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
12634reload_flag=$lt_cv_ld_reload_flag
12635case $reload_flag in
12636"" | " "*) ;;
12637*) reload_flag=" $reload_flag" ;;
12638esac
12639reload_cmds='$LD$reload_flag -o $output$reload_objs'
12640case $host_os in
12641  cygwin* | mingw* | pw32* | cegcc*)
12642    if test yes != "$GCC"; then
12643      reload_cmds=false
12644    fi
12645    ;;
12646  darwin*)
12647    if test yes = "$GCC"; then
12648      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12649    else
12650      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12651    fi
12652    ;;
12653esac
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663if test -n "$ac_tool_prefix"; then
12664  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
12665set dummy ${ac_tool_prefix}file; ac_word=$2
12666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12667printf %s "checking for $ac_word... " >&6; }
12668if test ${ac_cv_prog_FILECMD+y}
12669then :
12670  printf %s "(cached) " >&6
12671else case e in #(
12672  e) if test -n "$FILECMD"; then
12673  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
12674else
12675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12676for as_dir in $PATH
12677do
12678  IFS=$as_save_IFS
12679  case $as_dir in #(((
12680    '') as_dir=./ ;;
12681    */) ;;
12682    *) as_dir=$as_dir/ ;;
12683  esac
12684    for ac_exec_ext in '' $ac_executable_extensions; do
12685  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12686    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
12687    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12688    break 2
12689  fi
12690done
12691  done
12692IFS=$as_save_IFS
12693
12694fi ;;
12695esac
12696fi
12697FILECMD=$ac_cv_prog_FILECMD
12698if test -n "$FILECMD"; then
12699  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
12700printf "%s\n" "$FILECMD" >&6; }
12701else
12702  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12703printf "%s\n" "no" >&6; }
12704fi
12705
12706
12707fi
12708if test -z "$ac_cv_prog_FILECMD"; then
12709  ac_ct_FILECMD=$FILECMD
12710  # Extract the first word of "file", so it can be a program name with args.
12711set dummy file; ac_word=$2
12712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12713printf %s "checking for $ac_word... " >&6; }
12714if test ${ac_cv_prog_ac_ct_FILECMD+y}
12715then :
12716  printf %s "(cached) " >&6
12717else case e in #(
12718  e) if test -n "$ac_ct_FILECMD"; then
12719  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
12720else
12721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12722for as_dir in $PATH
12723do
12724  IFS=$as_save_IFS
12725  case $as_dir in #(((
12726    '') as_dir=./ ;;
12727    */) ;;
12728    *) as_dir=$as_dir/ ;;
12729  esac
12730    for ac_exec_ext in '' $ac_executable_extensions; do
12731  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12732    ac_cv_prog_ac_ct_FILECMD="file"
12733    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12734    break 2
12735  fi
12736done
12737  done
12738IFS=$as_save_IFS
12739
12740fi ;;
12741esac
12742fi
12743ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
12744if test -n "$ac_ct_FILECMD"; then
12745  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
12746printf "%s\n" "$ac_ct_FILECMD" >&6; }
12747else
12748  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12749printf "%s\n" "no" >&6; }
12750fi
12751
12752  if test "x$ac_ct_FILECMD" = x; then
12753    FILECMD=":"
12754  else
12755    case $cross_compiling:$ac_tool_warned in
12756yes:)
12757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12758printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12759ac_tool_warned=yes ;;
12760esac
12761    FILECMD=$ac_ct_FILECMD
12762  fi
12763else
12764  FILECMD="$ac_cv_prog_FILECMD"
12765fi
12766
12767
12768
12769
12770
12771
12772
12773if test -n "$ac_tool_prefix"; then
12774  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12775set dummy ${ac_tool_prefix}objdump; ac_word=$2
12776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12777printf %s "checking for $ac_word... " >&6; }
12778if test ${ac_cv_prog_OBJDUMP+y}
12779then :
12780  printf %s "(cached) " >&6
12781else case e in #(
12782  e) if test -n "$OBJDUMP"; then
12783  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12784else
12785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12786for as_dir in $PATH
12787do
12788  IFS=$as_save_IFS
12789  case $as_dir in #(((
12790    '') as_dir=./ ;;
12791    */) ;;
12792    *) as_dir=$as_dir/ ;;
12793  esac
12794    for ac_exec_ext in '' $ac_executable_extensions; do
12795  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12796    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12797    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12798    break 2
12799  fi
12800done
12801  done
12802IFS=$as_save_IFS
12803
12804fi ;;
12805esac
12806fi
12807OBJDUMP=$ac_cv_prog_OBJDUMP
12808if test -n "$OBJDUMP"; then
12809  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12810printf "%s\n" "$OBJDUMP" >&6; }
12811else
12812  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12813printf "%s\n" "no" >&6; }
12814fi
12815
12816
12817fi
12818if test -z "$ac_cv_prog_OBJDUMP"; then
12819  ac_ct_OBJDUMP=$OBJDUMP
12820  # Extract the first word of "objdump", so it can be a program name with args.
12821set dummy objdump; ac_word=$2
12822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12823printf %s "checking for $ac_word... " >&6; }
12824if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12825then :
12826  printf %s "(cached) " >&6
12827else case e in #(
12828  e) if test -n "$ac_ct_OBJDUMP"; then
12829  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12830else
12831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12832for as_dir in $PATH
12833do
12834  IFS=$as_save_IFS
12835  case $as_dir in #(((
12836    '') as_dir=./ ;;
12837    */) ;;
12838    *) as_dir=$as_dir/ ;;
12839  esac
12840    for ac_exec_ext in '' $ac_executable_extensions; do
12841  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12842    ac_cv_prog_ac_ct_OBJDUMP="objdump"
12843    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12844    break 2
12845  fi
12846done
12847  done
12848IFS=$as_save_IFS
12849
12850fi ;;
12851esac
12852fi
12853ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12854if test -n "$ac_ct_OBJDUMP"; then
12855  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12856printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12857else
12858  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12859printf "%s\n" "no" >&6; }
12860fi
12861
12862  if test "x$ac_ct_OBJDUMP" = x; then
12863    OBJDUMP="false"
12864  else
12865    case $cross_compiling:$ac_tool_warned in
12866yes:)
12867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12868printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12869ac_tool_warned=yes ;;
12870esac
12871    OBJDUMP=$ac_ct_OBJDUMP
12872  fi
12873else
12874  OBJDUMP="$ac_cv_prog_OBJDUMP"
12875fi
12876
12877test -z "$OBJDUMP" && OBJDUMP=objdump
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12888printf %s "checking how to recognize dependent libraries... " >&6; }
12889if test ${lt_cv_deplibs_check_method+y}
12890then :
12891  printf %s "(cached) " >&6
12892else case e in #(
12893  e) lt_cv_file_magic_cmd='$MAGIC_CMD'
12894lt_cv_file_magic_test_file=
12895lt_cv_deplibs_check_method='unknown'
12896# Need to set the preceding variable on all platforms that support
12897# interlibrary dependencies.
12898# 'none' -- dependencies not supported.
12899# 'unknown' -- same as none, but documents that we really don't know.
12900# 'pass_all' -- all dependencies passed with no checks.
12901# 'test_compile' -- check by making test program.
12902# 'file_magic [[regex]]' -- check by looking for files in library path
12903# that responds to the $file_magic_cmd with a given extended regex.
12904# If you have 'file' or equivalent on your system and you're not sure
12905# whether 'pass_all' will *always* work, you probably want this one.
12906
12907case $host_os in
12908aix[4-9]*)
12909  lt_cv_deplibs_check_method=pass_all
12910  ;;
12911
12912beos*)
12913  lt_cv_deplibs_check_method=pass_all
12914  ;;
12915
12916bsdi[45]*)
12917  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12918  lt_cv_file_magic_cmd='$FILECMD -L'
12919  lt_cv_file_magic_test_file=/shlib/libc.so
12920  ;;
12921
12922cygwin*)
12923  # func_win32_libid is a shell function defined in ltmain.sh
12924  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12925  lt_cv_file_magic_cmd='func_win32_libid'
12926  ;;
12927
12928mingw* | pw32*)
12929  # Base MSYS/MinGW do not provide the 'file' command needed by
12930  # func_win32_libid shell function, so use a weaker test based on 'objdump',
12931  # unless we find 'file', for example because we are cross-compiling.
12932  if ( file / ) >/dev/null 2>&1; then
12933    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12934    lt_cv_file_magic_cmd='func_win32_libid'
12935  else
12936    # Keep this pattern in sync with the one in func_win32_libid.
12937    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12938    lt_cv_file_magic_cmd='$OBJDUMP -f'
12939  fi
12940  ;;
12941
12942cegcc*)
12943  # use the weaker test based on 'objdump'. See mingw*.
12944  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12945  lt_cv_file_magic_cmd='$OBJDUMP -f'
12946  ;;
12947
12948darwin* | rhapsody*)
12949  lt_cv_deplibs_check_method=pass_all
12950  ;;
12951
12952freebsd* | dragonfly* | midnightbsd*)
12953  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12954    case $host_cpu in
12955    i*86 )
12956      # Not sure whether the presence of OpenBSD here was a mistake.
12957      # Let's accept both of them until this is cleared up.
12958      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12959      lt_cv_file_magic_cmd=$FILECMD
12960      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12961      ;;
12962    esac
12963  else
12964    lt_cv_deplibs_check_method=pass_all
12965  fi
12966  ;;
12967
12968haiku*)
12969  lt_cv_deplibs_check_method=pass_all
12970  ;;
12971
12972hpux10.20* | hpux11*)
12973  lt_cv_file_magic_cmd=$FILECMD
12974  case $host_cpu in
12975  ia64*)
12976    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12977    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12978    ;;
12979  hppa*64*)
12980    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]'
12981    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12982    ;;
12983  *)
12984    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12985    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12986    ;;
12987  esac
12988  ;;
12989
12990interix[3-9]*)
12991  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12992  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12993  ;;
12994
12995irix5* | irix6* | nonstopux*)
12996  case $LD in
12997  *-32|*"-32 ") libmagic=32-bit;;
12998  *-n32|*"-n32 ") libmagic=N32;;
12999  *-64|*"-64 ") libmagic=64-bit;;
13000  *) libmagic=never-match;;
13001  esac
13002  lt_cv_deplibs_check_method=pass_all
13003  ;;
13004
13005# This must be glibc/ELF.
13006linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13007  lt_cv_deplibs_check_method=pass_all
13008  ;;
13009
13010netbsd*)
13011  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13012    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13013  else
13014    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13015  fi
13016  ;;
13017
13018newos6*)
13019  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13020  lt_cv_file_magic_cmd=$FILECMD
13021  lt_cv_file_magic_test_file=/usr/lib/libnls.so
13022  ;;
13023
13024*nto* | *qnx*)
13025  lt_cv_deplibs_check_method=pass_all
13026  ;;
13027
13028openbsd* | bitrig*)
13029  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13030    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13031  else
13032    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13033  fi
13034  ;;
13035
13036osf3* | osf4* | osf5*)
13037  lt_cv_deplibs_check_method=pass_all
13038  ;;
13039
13040rdos*)
13041  lt_cv_deplibs_check_method=pass_all
13042  ;;
13043
13044solaris*)
13045  lt_cv_deplibs_check_method=pass_all
13046  ;;
13047
13048sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13049  lt_cv_deplibs_check_method=pass_all
13050  ;;
13051
13052sysv4 | sysv4.3*)
13053  case $host_vendor in
13054  motorola)
13055    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]'
13056    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13057    ;;
13058  ncr)
13059    lt_cv_deplibs_check_method=pass_all
13060    ;;
13061  sequent)
13062    lt_cv_file_magic_cmd='/bin/file'
13063    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13064    ;;
13065  sni)
13066    lt_cv_file_magic_cmd='/bin/file'
13067    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13068    lt_cv_file_magic_test_file=/lib/libc.so
13069    ;;
13070  siemens)
13071    lt_cv_deplibs_check_method=pass_all
13072    ;;
13073  pc)
13074    lt_cv_deplibs_check_method=pass_all
13075    ;;
13076  esac
13077  ;;
13078
13079tpf*)
13080  lt_cv_deplibs_check_method=pass_all
13081  ;;
13082os2*)
13083  lt_cv_deplibs_check_method=pass_all
13084  ;;
13085esac
13086 ;;
13087esac
13088fi
13089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13090printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
13091
13092file_magic_glob=
13093want_nocaseglob=no
13094if test "$build" = "$host"; then
13095  case $host_os in
13096  mingw* | pw32*)
13097    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
13098      want_nocaseglob=yes
13099    else
13100      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
13101    fi
13102    ;;
13103  esac
13104fi
13105
13106file_magic_cmd=$lt_cv_file_magic_cmd
13107deplibs_check_method=$lt_cv_deplibs_check_method
13108test -z "$deplibs_check_method" && deplibs_check_method=unknown
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131if test -n "$ac_tool_prefix"; then
13132  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13133set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13135printf %s "checking for $ac_word... " >&6; }
13136if test ${ac_cv_prog_DLLTOOL+y}
13137then :
13138  printf %s "(cached) " >&6
13139else case e in #(
13140  e) if test -n "$DLLTOOL"; then
13141  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13142else
13143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13144for as_dir in $PATH
13145do
13146  IFS=$as_save_IFS
13147  case $as_dir in #(((
13148    '') as_dir=./ ;;
13149    */) ;;
13150    *) as_dir=$as_dir/ ;;
13151  esac
13152    for ac_exec_ext in '' $ac_executable_extensions; do
13153  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13154    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13155    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13156    break 2
13157  fi
13158done
13159  done
13160IFS=$as_save_IFS
13161
13162fi ;;
13163esac
13164fi
13165DLLTOOL=$ac_cv_prog_DLLTOOL
13166if test -n "$DLLTOOL"; then
13167  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13168printf "%s\n" "$DLLTOOL" >&6; }
13169else
13170  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13171printf "%s\n" "no" >&6; }
13172fi
13173
13174
13175fi
13176if test -z "$ac_cv_prog_DLLTOOL"; then
13177  ac_ct_DLLTOOL=$DLLTOOL
13178  # Extract the first word of "dlltool", so it can be a program name with args.
13179set dummy dlltool; ac_word=$2
13180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13181printf %s "checking for $ac_word... " >&6; }
13182if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
13183then :
13184  printf %s "(cached) " >&6
13185else case e in #(
13186  e) if test -n "$ac_ct_DLLTOOL"; then
13187  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13188else
13189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13190for as_dir in $PATH
13191do
13192  IFS=$as_save_IFS
13193  case $as_dir in #(((
13194    '') as_dir=./ ;;
13195    */) ;;
13196    *) as_dir=$as_dir/ ;;
13197  esac
13198    for ac_exec_ext in '' $ac_executable_extensions; do
13199  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13200    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13201    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13202    break 2
13203  fi
13204done
13205  done
13206IFS=$as_save_IFS
13207
13208fi ;;
13209esac
13210fi
13211ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13212if test -n "$ac_ct_DLLTOOL"; then
13213  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13214printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
13215else
13216  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13217printf "%s\n" "no" >&6; }
13218fi
13219
13220  if test "x$ac_ct_DLLTOOL" = x; then
13221    DLLTOOL="false"
13222  else
13223    case $cross_compiling:$ac_tool_warned in
13224yes:)
13225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13226printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13227ac_tool_warned=yes ;;
13228esac
13229    DLLTOOL=$ac_ct_DLLTOOL
13230  fi
13231else
13232  DLLTOOL="$ac_cv_prog_DLLTOOL"
13233fi
13234
13235test -z "$DLLTOOL" && DLLTOOL=dlltool
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
13247printf %s "checking how to associate runtime and link libraries... " >&6; }
13248if test ${lt_cv_sharedlib_from_linklib_cmd+y}
13249then :
13250  printf %s "(cached) " >&6
13251else case e in #(
13252  e) lt_cv_sharedlib_from_linklib_cmd='unknown'
13253
13254case $host_os in
13255cygwin* | mingw* | pw32* | cegcc*)
13256  # two different shell functions defined in ltmain.sh;
13257  # decide which one to use based on capabilities of $DLLTOOL
13258  case `$DLLTOOL --help 2>&1` in
13259  *--identify-strict*)
13260    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
13261    ;;
13262  *)
13263    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
13264    ;;
13265  esac
13266  ;;
13267*)
13268  # fallback: assume linklib IS sharedlib
13269  lt_cv_sharedlib_from_linklib_cmd=$ECHO
13270  ;;
13271esac
13272 ;;
13273esac
13274fi
13275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
13276printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
13277sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
13278test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
13279
13280
13281
13282
13283
13284
13285
13286if test -n "$ac_tool_prefix"; then
13287  for ac_prog in ar
13288  do
13289    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13290set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13292printf %s "checking for $ac_word... " >&6; }
13293if test ${ac_cv_prog_AR+y}
13294then :
13295  printf %s "(cached) " >&6
13296else case e in #(
13297  e) if test -n "$AR"; then
13298  ac_cv_prog_AR="$AR" # Let the user override the test.
13299else
13300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13301for as_dir in $PATH
13302do
13303  IFS=$as_save_IFS
13304  case $as_dir in #(((
13305    '') as_dir=./ ;;
13306    */) ;;
13307    *) as_dir=$as_dir/ ;;
13308  esac
13309    for ac_exec_ext in '' $ac_executable_extensions; do
13310  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13311    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
13312    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13313    break 2
13314  fi
13315done
13316  done
13317IFS=$as_save_IFS
13318
13319fi ;;
13320esac
13321fi
13322AR=$ac_cv_prog_AR
13323if test -n "$AR"; then
13324  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13325printf "%s\n" "$AR" >&6; }
13326else
13327  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13328printf "%s\n" "no" >&6; }
13329fi
13330
13331
13332    test -n "$AR" && break
13333  done
13334fi
13335if test -z "$AR"; then
13336  ac_ct_AR=$AR
13337  for ac_prog in ar
13338do
13339  # Extract the first word of "$ac_prog", so it can be a program name with args.
13340set dummy $ac_prog; ac_word=$2
13341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13342printf %s "checking for $ac_word... " >&6; }
13343if test ${ac_cv_prog_ac_ct_AR+y}
13344then :
13345  printf %s "(cached) " >&6
13346else case e in #(
13347  e) if test -n "$ac_ct_AR"; then
13348  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13349else
13350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13351for as_dir in $PATH
13352do
13353  IFS=$as_save_IFS
13354  case $as_dir in #(((
13355    '') as_dir=./ ;;
13356    */) ;;
13357    *) as_dir=$as_dir/ ;;
13358  esac
13359    for ac_exec_ext in '' $ac_executable_extensions; do
13360  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13361    ac_cv_prog_ac_ct_AR="$ac_prog"
13362    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13363    break 2
13364  fi
13365done
13366  done
13367IFS=$as_save_IFS
13368
13369fi ;;
13370esac
13371fi
13372ac_ct_AR=$ac_cv_prog_ac_ct_AR
13373if test -n "$ac_ct_AR"; then
13374  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13375printf "%s\n" "$ac_ct_AR" >&6; }
13376else
13377  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13378printf "%s\n" "no" >&6; }
13379fi
13380
13381
13382  test -n "$ac_ct_AR" && break
13383done
13384
13385  if test "x$ac_ct_AR" = x; then
13386    AR="false"
13387  else
13388    case $cross_compiling:$ac_tool_warned in
13389yes:)
13390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13391printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13392ac_tool_warned=yes ;;
13393esac
13394    AR=$ac_ct_AR
13395  fi
13396fi
13397
13398: ${AR=ar}
13399
13400
13401
13402
13403
13404
13405# Use ARFLAGS variable as AR's operation code to sync the variable naming with
13406# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
13407# higher priority because thats what people were doing historically (setting
13408# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
13409# variable obsoleted/removed.
13410
13411test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
13412lt_ar_flags=$AR_FLAGS
13413
13414
13415
13416
13417
13418
13419# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
13420# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
13421
13422
13423
13424
13425
13426
13427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13428printf %s "checking for archiver @FILE support... " >&6; }
13429if test ${lt_cv_ar_at_file+y}
13430then :
13431  printf %s "(cached) " >&6
13432else case e in #(
13433  e) lt_cv_ar_at_file=no
13434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13435/* end confdefs.h.  */
13436
13437int
13438main (void)
13439{
13440
13441  ;
13442  return 0;
13443}
13444_ACEOF
13445if ac_fn_c_try_compile "$LINENO"
13446then :
13447  echo conftest.$ac_objext > conftest.lst
13448      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13449      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13450  (eval $lt_ar_try) 2>&5
13451  ac_status=$?
13452  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13453  test $ac_status = 0; }
13454      if test 0 -eq "$ac_status"; then
13455	# Ensure the archiver fails upon bogus file names.
13456	rm -f conftest.$ac_objext libconftest.a
13457	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13458  (eval $lt_ar_try) 2>&5
13459  ac_status=$?
13460  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13461  test $ac_status = 0; }
13462	if test 0 -ne "$ac_status"; then
13463          lt_cv_ar_at_file=@
13464        fi
13465      fi
13466      rm -f conftest.* libconftest.a
13467
13468fi
13469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13470   ;;
13471esac
13472fi
13473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13474printf "%s\n" "$lt_cv_ar_at_file" >&6; }
13475
13476if test no = "$lt_cv_ar_at_file"; then
13477  archiver_list_spec=
13478else
13479  archiver_list_spec=$lt_cv_ar_at_file
13480fi
13481
13482
13483
13484
13485
13486
13487
13488if test -n "$ac_tool_prefix"; then
13489  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13490set dummy ${ac_tool_prefix}strip; ac_word=$2
13491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13492printf %s "checking for $ac_word... " >&6; }
13493if test ${ac_cv_prog_STRIP+y}
13494then :
13495  printf %s "(cached) " >&6
13496else case e in #(
13497  e) if test -n "$STRIP"; then
13498  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13499else
13500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13501for as_dir in $PATH
13502do
13503  IFS=$as_save_IFS
13504  case $as_dir in #(((
13505    '') as_dir=./ ;;
13506    */) ;;
13507    *) as_dir=$as_dir/ ;;
13508  esac
13509    for ac_exec_ext in '' $ac_executable_extensions; do
13510  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13511    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13512    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13513    break 2
13514  fi
13515done
13516  done
13517IFS=$as_save_IFS
13518
13519fi ;;
13520esac
13521fi
13522STRIP=$ac_cv_prog_STRIP
13523if test -n "$STRIP"; then
13524  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13525printf "%s\n" "$STRIP" >&6; }
13526else
13527  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13528printf "%s\n" "no" >&6; }
13529fi
13530
13531
13532fi
13533if test -z "$ac_cv_prog_STRIP"; then
13534  ac_ct_STRIP=$STRIP
13535  # Extract the first word of "strip", so it can be a program name with args.
13536set dummy strip; ac_word=$2
13537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13538printf %s "checking for $ac_word... " >&6; }
13539if test ${ac_cv_prog_ac_ct_STRIP+y}
13540then :
13541  printf %s "(cached) " >&6
13542else case e in #(
13543  e) if test -n "$ac_ct_STRIP"; then
13544  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13545else
13546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13547for as_dir in $PATH
13548do
13549  IFS=$as_save_IFS
13550  case $as_dir in #(((
13551    '') as_dir=./ ;;
13552    */) ;;
13553    *) as_dir=$as_dir/ ;;
13554  esac
13555    for ac_exec_ext in '' $ac_executable_extensions; do
13556  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13557    ac_cv_prog_ac_ct_STRIP="strip"
13558    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13559    break 2
13560  fi
13561done
13562  done
13563IFS=$as_save_IFS
13564
13565fi ;;
13566esac
13567fi
13568ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13569if test -n "$ac_ct_STRIP"; then
13570  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13571printf "%s\n" "$ac_ct_STRIP" >&6; }
13572else
13573  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13574printf "%s\n" "no" >&6; }
13575fi
13576
13577  if test "x$ac_ct_STRIP" = x; then
13578    STRIP=":"
13579  else
13580    case $cross_compiling:$ac_tool_warned in
13581yes:)
13582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13583printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13584ac_tool_warned=yes ;;
13585esac
13586    STRIP=$ac_ct_STRIP
13587  fi
13588else
13589  STRIP="$ac_cv_prog_STRIP"
13590fi
13591
13592test -z "$STRIP" && STRIP=:
13593
13594
13595
13596
13597
13598
13599if test -n "$ac_tool_prefix"; then
13600  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13601set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13603printf %s "checking for $ac_word... " >&6; }
13604if test ${ac_cv_prog_RANLIB+y}
13605then :
13606  printf %s "(cached) " >&6
13607else case e in #(
13608  e) if test -n "$RANLIB"; then
13609  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13610else
13611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13612for as_dir in $PATH
13613do
13614  IFS=$as_save_IFS
13615  case $as_dir in #(((
13616    '') as_dir=./ ;;
13617    */) ;;
13618    *) as_dir=$as_dir/ ;;
13619  esac
13620    for ac_exec_ext in '' $ac_executable_extensions; do
13621  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13622    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13623    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13624    break 2
13625  fi
13626done
13627  done
13628IFS=$as_save_IFS
13629
13630fi ;;
13631esac
13632fi
13633RANLIB=$ac_cv_prog_RANLIB
13634if test -n "$RANLIB"; then
13635  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13636printf "%s\n" "$RANLIB" >&6; }
13637else
13638  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13639printf "%s\n" "no" >&6; }
13640fi
13641
13642
13643fi
13644if test -z "$ac_cv_prog_RANLIB"; then
13645  ac_ct_RANLIB=$RANLIB
13646  # Extract the first word of "ranlib", so it can be a program name with args.
13647set dummy ranlib; ac_word=$2
13648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13649printf %s "checking for $ac_word... " >&6; }
13650if test ${ac_cv_prog_ac_ct_RANLIB+y}
13651then :
13652  printf %s "(cached) " >&6
13653else case e in #(
13654  e) if test -n "$ac_ct_RANLIB"; then
13655  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13656else
13657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13658for as_dir in $PATH
13659do
13660  IFS=$as_save_IFS
13661  case $as_dir in #(((
13662    '') as_dir=./ ;;
13663    */) ;;
13664    *) as_dir=$as_dir/ ;;
13665  esac
13666    for ac_exec_ext in '' $ac_executable_extensions; do
13667  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13668    ac_cv_prog_ac_ct_RANLIB="ranlib"
13669    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13670    break 2
13671  fi
13672done
13673  done
13674IFS=$as_save_IFS
13675
13676fi ;;
13677esac
13678fi
13679ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13680if test -n "$ac_ct_RANLIB"; then
13681  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13682printf "%s\n" "$ac_ct_RANLIB" >&6; }
13683else
13684  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13685printf "%s\n" "no" >&6; }
13686fi
13687
13688  if test "x$ac_ct_RANLIB" = x; then
13689    RANLIB=":"
13690  else
13691    case $cross_compiling:$ac_tool_warned in
13692yes:)
13693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13694printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13695ac_tool_warned=yes ;;
13696esac
13697    RANLIB=$ac_ct_RANLIB
13698  fi
13699else
13700  RANLIB="$ac_cv_prog_RANLIB"
13701fi
13702
13703test -z "$RANLIB" && RANLIB=:
13704
13705
13706
13707
13708
13709
13710# Determine commands to create old-style static archives.
13711old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13712old_postinstall_cmds='chmod 644 $oldlib'
13713old_postuninstall_cmds=
13714
13715if test -n "$RANLIB"; then
13716  case $host_os in
13717  bitrig* | openbsd*)
13718    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13719    ;;
13720  *)
13721    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13722    ;;
13723  esac
13724  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13725fi
13726
13727case $host_os in
13728  darwin*)
13729    lock_old_archive_extraction=yes ;;
13730  *)
13731    lock_old_archive_extraction=no ;;
13732esac
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772# If no C compiler was specified, use CC.
13773LTCC=${LTCC-"$CC"}
13774
13775# If no C compiler flags were specified, use CFLAGS.
13776LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13777
13778# Allow CC to be a program name with arguments.
13779compiler=$CC
13780
13781
13782# Check for command to grab the raw symbol name followed by C symbol from nm.
13783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13784printf %s "checking command to parse $NM output from $compiler object... " >&6; }
13785if test ${lt_cv_sys_global_symbol_pipe+y}
13786then :
13787  printf %s "(cached) " >&6
13788else case e in #(
13789  e)
13790# These are sane defaults that work on at least a few old systems.
13791# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13792
13793# Character class describing NM global symbol codes.
13794symcode='[BCDEGRST]'
13795
13796# Regexp to match symbols that can be accessed directly from C.
13797sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13798
13799# Define system-specific variables.
13800case $host_os in
13801aix*)
13802  symcode='[BCDT]'
13803  ;;
13804cygwin* | mingw* | pw32* | cegcc*)
13805  symcode='[ABCDGISTW]'
13806  ;;
13807hpux*)
13808  if test ia64 = "$host_cpu"; then
13809    symcode='[ABCDEGRST]'
13810  fi
13811  ;;
13812irix* | nonstopux*)
13813  symcode='[BCDEGRST]'
13814  ;;
13815osf*)
13816  symcode='[BCDEGQRST]'
13817  ;;
13818solaris*)
13819  symcode='[BDRT]'
13820  ;;
13821sco3.2v5*)
13822  symcode='[DT]'
13823  ;;
13824sysv4.2uw2*)
13825  symcode='[DT]'
13826  ;;
13827sysv5* | sco5v6* | unixware* | OpenUNIX*)
13828  symcode='[ABDT]'
13829  ;;
13830sysv4)
13831  symcode='[DFNSTU]'
13832  ;;
13833esac
13834
13835# If we're using GNU nm, then use its standard symbol codes.
13836case `$NM -V 2>&1` in
13837*GNU* | *'with BFD'*)
13838  symcode='[ABCDGIRSTW]' ;;
13839esac
13840
13841if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13842  # Gets list of data symbols to import.
13843  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
13844  # Adjust the below global symbol transforms to fixup imported variables.
13845  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13846  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
13847  lt_c_name_lib_hook="\
13848  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
13849  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
13850else
13851  # Disable hooks by default.
13852  lt_cv_sys_global_symbol_to_import=
13853  lt_cdecl_hook=
13854  lt_c_name_hook=
13855  lt_c_name_lib_hook=
13856fi
13857
13858# Transform an extracted symbol line into a proper C declaration.
13859# Some systems (esp. on ia64) link data and code symbols differently,
13860# so use this general approach.
13861lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
13862$lt_cdecl_hook\
13863" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13864" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13865
13866# Transform an extracted symbol line into symbol name and symbol address
13867lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
13868$lt_c_name_hook\
13869" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13870" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
13871
13872# Transform an extracted symbol line into symbol name with lib prefix and
13873# symbol address.
13874lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
13875$lt_c_name_lib_hook\
13876" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13877" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
13878" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
13879
13880# Handle CRLF in mingw tool chain
13881opt_cr=
13882case $build_os in
13883mingw*)
13884  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13885  ;;
13886esac
13887
13888# Try without a prefix underscore, then with it.
13889for ac_symprfx in "" "_"; do
13890
13891  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13892  symxfrm="\\1 $ac_symprfx\\2 \\2"
13893
13894  # Write the raw and C identifiers.
13895  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13896    # Fake it for dumpbin and say T for any non-static function,
13897    # D for any global variable and I for any imported variable.
13898    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
13899    # which start with @ or ?.
13900    lt_cv_sys_global_symbol_pipe="$AWK '"\
13901"     {last_section=section; section=\$ 3};"\
13902"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13903"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13904"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13905"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13906"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13907"     \$ 0!~/External *\|/{next};"\
13908"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13909"     {if(hide[section]) next};"\
13910"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13911"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13912"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13913"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13914"     ' prfx=^$ac_symprfx"
13915  else
13916    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13917  fi
13918  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
13919
13920  # Check to see that the pipe works correctly.
13921  pipe_works=no
13922
13923  rm -f conftest*
13924  cat > conftest.$ac_ext <<_LT_EOF
13925#ifdef __cplusplus
13926extern "C" {
13927#endif
13928char nm_test_var;
13929void nm_test_func(void);
13930void nm_test_func(void){}
13931#ifdef __cplusplus
13932}
13933#endif
13934int main(){nm_test_var='a';nm_test_func();return(0);}
13935_LT_EOF
13936
13937  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13938  (eval $ac_compile) 2>&5
13939  ac_status=$?
13940  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13941  test $ac_status = 0; }; then
13942    # Now try to grab the symbols.
13943    nlist=conftest.nm
13944    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13945  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13946  ac_status=$?
13947  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13948  test $ac_status = 0; } && test -s "$nlist"; then
13949      # Try sorting and uniquifying the output.
13950      if sort "$nlist" | uniq > "$nlist"T; then
13951	mv -f "$nlist"T "$nlist"
13952      else
13953	rm -f "$nlist"T
13954      fi
13955
13956      # Make sure that we snagged all the symbols we need.
13957      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13958	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13959	  cat <<_LT_EOF > conftest.$ac_ext
13960/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
13961#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13962/* DATA imports from DLLs on WIN32 can't be const, because runtime
13963   relocations are performed -- see ld's documentation on pseudo-relocs.  */
13964# define LT_DLSYM_CONST
13965#elif defined __osf__
13966/* This system does not cope well with relocations in const data.  */
13967# define LT_DLSYM_CONST
13968#else
13969# define LT_DLSYM_CONST const
13970#endif
13971
13972#ifdef __cplusplus
13973extern "C" {
13974#endif
13975
13976_LT_EOF
13977	  # Now generate the symbol file.
13978	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13979
13980	  cat <<_LT_EOF >> conftest.$ac_ext
13981
13982/* The mapping between symbol names and symbols.  */
13983LT_DLSYM_CONST struct {
13984  const char *name;
13985  void       *address;
13986}
13987lt__PROGRAM__LTX_preloaded_symbols[] =
13988{
13989  { "@PROGRAM@", (void *) 0 },
13990_LT_EOF
13991	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13992	  cat <<\_LT_EOF >> conftest.$ac_ext
13993  {0, (void *) 0}
13994};
13995
13996/* This works around a problem in FreeBSD linker */
13997#ifdef FREEBSD_WORKAROUND
13998static const void *lt_preloaded_setup() {
13999  return lt__PROGRAM__LTX_preloaded_symbols;
14000}
14001#endif
14002
14003#ifdef __cplusplus
14004}
14005#endif
14006_LT_EOF
14007	  # Now try linking the two files.
14008	  mv conftest.$ac_objext conftstm.$ac_objext
14009	  lt_globsym_save_LIBS=$LIBS
14010	  lt_globsym_save_CFLAGS=$CFLAGS
14011	  LIBS=conftstm.$ac_objext
14012	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14013	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14014  (eval $ac_link) 2>&5
14015  ac_status=$?
14016  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14017  test $ac_status = 0; } && test -s conftest$ac_exeext; then
14018	    pipe_works=yes
14019	  fi
14020	  LIBS=$lt_globsym_save_LIBS
14021	  CFLAGS=$lt_globsym_save_CFLAGS
14022	else
14023	  echo "cannot find nm_test_func in $nlist" >&5
14024	fi
14025      else
14026	echo "cannot find nm_test_var in $nlist" >&5
14027      fi
14028    else
14029      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14030    fi
14031  else
14032    echo "$progname: failed program was:" >&5
14033    cat conftest.$ac_ext >&5
14034  fi
14035  rm -rf conftest* conftst*
14036
14037  # Do not use the global_symbol_pipe unless it works.
14038  if test yes = "$pipe_works"; then
14039    break
14040  else
14041    lt_cv_sys_global_symbol_pipe=
14042  fi
14043done
14044 ;;
14045esac
14046fi
14047
14048if test -z "$lt_cv_sys_global_symbol_pipe"; then
14049  lt_cv_sys_global_symbol_to_cdecl=
14050fi
14051if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14052  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14053printf "%s\n" "failed" >&6; }
14054else
14055  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14056printf "%s\n" "ok" >&6; }
14057fi
14058
14059# Response file support.
14060if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14061  nm_file_list_spec='@'
14062elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
14063  nm_file_list_spec='@'
14064fi
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
14103printf %s "checking for sysroot... " >&6; }
14104
14105# Check whether --with-sysroot was given.
14106if test ${with_sysroot+y}
14107then :
14108  withval=$with_sysroot;
14109else case e in #(
14110  e) with_sysroot=no ;;
14111esac
14112fi
14113
14114
14115lt_sysroot=
14116case $with_sysroot in #(
14117 yes)
14118   if test yes = "$GCC"; then
14119     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
14120   fi
14121   ;; #(
14122 /*)
14123   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
14124   ;; #(
14125 no|'')
14126   ;; #(
14127 *)
14128   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
14129printf "%s\n" "$with_sysroot" >&6; }
14130   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
14131   ;;
14132esac
14133
14134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
14135printf "%s\n" "${lt_sysroot:-no}" >&6; }
14136
14137
14138
14139
14140
14141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
14142printf %s "checking for a working dd... " >&6; }
14143if test ${ac_cv_path_lt_DD+y}
14144then :
14145  printf %s "(cached) " >&6
14146else case e in #(
14147  e) printf 0123456789abcdef0123456789abcdef >conftest.i
14148cat conftest.i conftest.i >conftest2.i
14149: ${lt_DD:=$DD}
14150if test -z "$lt_DD"; then
14151  ac_path_lt_DD_found=false
14152  # Loop through the user's path and test for each of PROGNAME-LIST
14153  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14154for as_dir in $PATH
14155do
14156  IFS=$as_save_IFS
14157  case $as_dir in #(((
14158    '') as_dir=./ ;;
14159    */) ;;
14160    *) as_dir=$as_dir/ ;;
14161  esac
14162    for ac_prog in dd
14163   do
14164    for ac_exec_ext in '' $ac_executable_extensions; do
14165      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
14166      as_fn_executable_p "$ac_path_lt_DD" || continue
14167if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
14168  cmp -s conftest.i conftest.out \
14169  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
14170fi
14171      $ac_path_lt_DD_found && break 3
14172    done
14173  done
14174  done
14175IFS=$as_save_IFS
14176  if test -z "$ac_cv_path_lt_DD"; then
14177    :
14178  fi
14179else
14180  ac_cv_path_lt_DD=$lt_DD
14181fi
14182
14183rm -f conftest.i conftest2.i conftest.out ;;
14184esac
14185fi
14186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
14187printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
14188
14189
14190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
14191printf %s "checking how to truncate binary pipes... " >&6; }
14192if test ${lt_cv_truncate_bin+y}
14193then :
14194  printf %s "(cached) " >&6
14195else case e in #(
14196  e) printf 0123456789abcdef0123456789abcdef >conftest.i
14197cat conftest.i conftest.i >conftest2.i
14198lt_cv_truncate_bin=
14199if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
14200  cmp -s conftest.i conftest.out \
14201  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
14202fi
14203rm -f conftest.i conftest2.i conftest.out
14204test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
14205esac
14206fi
14207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
14208printf "%s\n" "$lt_cv_truncate_bin" >&6; }
14209
14210
14211
14212
14213
14214
14215
14216# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
14217func_cc_basename ()
14218{
14219    for cc_temp in $*""; do
14220      case $cc_temp in
14221        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14222        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14223        \-*) ;;
14224        *) break;;
14225      esac
14226    done
14227    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14228}
14229
14230# Check whether --enable-libtool-lock was given.
14231if test ${enable_libtool_lock+y}
14232then :
14233  enableval=$enable_libtool_lock;
14234fi
14235
14236test no = "$enable_libtool_lock" || enable_libtool_lock=yes
14237
14238# Some flags need to be propagated to the compiler or linker for good
14239# libtool support.
14240case $host in
14241ia64-*-hpux*)
14242  # Find out what ABI is being produced by ac_compile, and set mode
14243  # options accordingly.
14244  echo 'int i;' > conftest.$ac_ext
14245  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14246  (eval $ac_compile) 2>&5
14247  ac_status=$?
14248  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14249  test $ac_status = 0; }; then
14250    case `$FILECMD conftest.$ac_objext` in
14251      *ELF-32*)
14252	HPUX_IA64_MODE=32
14253	;;
14254      *ELF-64*)
14255	HPUX_IA64_MODE=64
14256	;;
14257    esac
14258  fi
14259  rm -rf conftest*
14260  ;;
14261*-*-irix6*)
14262  # Find out what ABI is being produced by ac_compile, and set linker
14263  # options accordingly.
14264  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14265  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14266  (eval $ac_compile) 2>&5
14267  ac_status=$?
14268  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14269  test $ac_status = 0; }; then
14270    if test yes = "$lt_cv_prog_gnu_ld"; then
14271      case `$FILECMD conftest.$ac_objext` in
14272	*32-bit*)
14273	  LD="${LD-ld} -melf32bsmip"
14274	  ;;
14275	*N32*)
14276	  LD="${LD-ld} -melf32bmipn32"
14277	  ;;
14278	*64-bit*)
14279	  LD="${LD-ld} -melf64bmip"
14280	;;
14281      esac
14282    else
14283      case `$FILECMD conftest.$ac_objext` in
14284	*32-bit*)
14285	  LD="${LD-ld} -32"
14286	  ;;
14287	*N32*)
14288	  LD="${LD-ld} -n32"
14289	  ;;
14290	*64-bit*)
14291	  LD="${LD-ld} -64"
14292	  ;;
14293      esac
14294    fi
14295  fi
14296  rm -rf conftest*
14297  ;;
14298
14299mips64*-*linux*)
14300  # Find out what ABI is being produced by ac_compile, and set linker
14301  # options accordingly.
14302  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14303  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14304  (eval $ac_compile) 2>&5
14305  ac_status=$?
14306  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14307  test $ac_status = 0; }; then
14308    emul=elf
14309    case `$FILECMD conftest.$ac_objext` in
14310      *32-bit*)
14311	emul="${emul}32"
14312	;;
14313      *64-bit*)
14314	emul="${emul}64"
14315	;;
14316    esac
14317    case `$FILECMD conftest.$ac_objext` in
14318      *MSB*)
14319	emul="${emul}btsmip"
14320	;;
14321      *LSB*)
14322	emul="${emul}ltsmip"
14323	;;
14324    esac
14325    case `$FILECMD conftest.$ac_objext` in
14326      *N32*)
14327	emul="${emul}n32"
14328	;;
14329    esac
14330    LD="${LD-ld} -m $emul"
14331  fi
14332  rm -rf conftest*
14333  ;;
14334
14335x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14336s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14337  # Find out what ABI is being produced by ac_compile, and set linker
14338  # options accordingly.  Note that the listed cases only cover the
14339  # situations where additional linker options are needed (such as when
14340  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
14341  # vice versa); the common cases where no linker options are needed do
14342  # not appear in the list.
14343  echo 'int i;' > conftest.$ac_ext
14344  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14345  (eval $ac_compile) 2>&5
14346  ac_status=$?
14347  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14348  test $ac_status = 0; }; then
14349    case `$FILECMD conftest.o` in
14350      *32-bit*)
14351	case $host in
14352	  x86_64-*kfreebsd*-gnu)
14353	    LD="${LD-ld} -m elf_i386_fbsd"
14354	    ;;
14355	  x86_64-*linux*)
14356	    case `$FILECMD conftest.o` in
14357	      *x86-64*)
14358		LD="${LD-ld} -m elf32_x86_64"
14359		;;
14360	      *)
14361		LD="${LD-ld} -m elf_i386"
14362		;;
14363	    esac
14364	    ;;
14365	  powerpc64le-*linux*)
14366	    LD="${LD-ld} -m elf32lppclinux"
14367	    ;;
14368	  powerpc64-*linux*)
14369	    LD="${LD-ld} -m elf32ppclinux"
14370	    ;;
14371	  s390x-*linux*)
14372	    LD="${LD-ld} -m elf_s390"
14373	    ;;
14374	  sparc64-*linux*)
14375	    LD="${LD-ld} -m elf32_sparc"
14376	    ;;
14377	esac
14378	;;
14379      *64-bit*)
14380	case $host in
14381	  x86_64-*kfreebsd*-gnu)
14382	    LD="${LD-ld} -m elf_x86_64_fbsd"
14383	    ;;
14384	  x86_64-*linux*)
14385	    LD="${LD-ld} -m elf_x86_64"
14386	    ;;
14387	  powerpcle-*linux*)
14388	    LD="${LD-ld} -m elf64lppc"
14389	    ;;
14390	  powerpc-*linux*)
14391	    LD="${LD-ld} -m elf64ppc"
14392	    ;;
14393	  s390*-*linux*|s390*-*tpf*)
14394	    LD="${LD-ld} -m elf64_s390"
14395	    ;;
14396	  sparc*-*linux*)
14397	    LD="${LD-ld} -m elf64_sparc"
14398	    ;;
14399	esac
14400	;;
14401    esac
14402  fi
14403  rm -rf conftest*
14404  ;;
14405
14406*-*-sco3.2v5*)
14407  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14408  SAVE_CFLAGS=$CFLAGS
14409  CFLAGS="$CFLAGS -belf"
14410  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14411printf %s "checking whether the C compiler needs -belf... " >&6; }
14412if test ${lt_cv_cc_needs_belf+y}
14413then :
14414  printf %s "(cached) " >&6
14415else case e in #(
14416  e) ac_ext=c
14417ac_cpp='$CPP $CPPFLAGS'
14418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14420ac_compiler_gnu=$ac_cv_c_compiler_gnu
14421
14422     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14423/* end confdefs.h.  */
14424
14425int
14426main (void)
14427{
14428
14429  ;
14430  return 0;
14431}
14432_ACEOF
14433if ac_fn_c_try_link "$LINENO"
14434then :
14435  lt_cv_cc_needs_belf=yes
14436else case e in #(
14437  e) lt_cv_cc_needs_belf=no ;;
14438esac
14439fi
14440rm -f core conftest.err conftest.$ac_objext conftest.beam \
14441    conftest$ac_exeext conftest.$ac_ext
14442     ac_ext=c
14443ac_cpp='$CPP $CPPFLAGS'
14444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14446ac_compiler_gnu=$ac_cv_c_compiler_gnu
14447 ;;
14448esac
14449fi
14450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14451printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
14452  if test yes != "$lt_cv_cc_needs_belf"; then
14453    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14454    CFLAGS=$SAVE_CFLAGS
14455  fi
14456  ;;
14457*-*solaris*)
14458  # Find out what ABI is being produced by ac_compile, and set linker
14459  # options accordingly.
14460  echo 'int i;' > conftest.$ac_ext
14461  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14462  (eval $ac_compile) 2>&5
14463  ac_status=$?
14464  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14465  test $ac_status = 0; }; then
14466    case `$FILECMD conftest.o` in
14467    *64-bit*)
14468      case $lt_cv_prog_gnu_ld in
14469      yes*)
14470        case $host in
14471        i?86-*-solaris*|x86_64-*-solaris*)
14472          LD="${LD-ld} -m elf_x86_64"
14473          ;;
14474        sparc*-*-solaris*)
14475          LD="${LD-ld} -m elf64_sparc"
14476          ;;
14477        esac
14478        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
14479        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
14480          LD=${LD-ld}_sol2
14481        fi
14482        ;;
14483      *)
14484	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14485	  LD="${LD-ld} -64"
14486	fi
14487	;;
14488      esac
14489      ;;
14490    esac
14491  fi
14492  rm -rf conftest*
14493  ;;
14494esac
14495
14496need_locks=$enable_libtool_lock
14497
14498if test -n "$ac_tool_prefix"; then
14499  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14500set dummy ${ac_tool_prefix}mt; ac_word=$2
14501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14502printf %s "checking for $ac_word... " >&6; }
14503if test ${ac_cv_prog_MANIFEST_TOOL+y}
14504then :
14505  printf %s "(cached) " >&6
14506else case e in #(
14507  e) if test -n "$MANIFEST_TOOL"; then
14508  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14509else
14510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14511for as_dir in $PATH
14512do
14513  IFS=$as_save_IFS
14514  case $as_dir in #(((
14515    '') as_dir=./ ;;
14516    */) ;;
14517    *) as_dir=$as_dir/ ;;
14518  esac
14519    for ac_exec_ext in '' $ac_executable_extensions; do
14520  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14521    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14522    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14523    break 2
14524  fi
14525done
14526  done
14527IFS=$as_save_IFS
14528
14529fi ;;
14530esac
14531fi
14532MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14533if test -n "$MANIFEST_TOOL"; then
14534  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14535printf "%s\n" "$MANIFEST_TOOL" >&6; }
14536else
14537  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14538printf "%s\n" "no" >&6; }
14539fi
14540
14541
14542fi
14543if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14544  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14545  # Extract the first word of "mt", so it can be a program name with args.
14546set dummy mt; ac_word=$2
14547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14548printf %s "checking for $ac_word... " >&6; }
14549if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
14550then :
14551  printf %s "(cached) " >&6
14552else case e in #(
14553  e) if test -n "$ac_ct_MANIFEST_TOOL"; then
14554  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
14555else
14556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14557for as_dir in $PATH
14558do
14559  IFS=$as_save_IFS
14560  case $as_dir in #(((
14561    '') as_dir=./ ;;
14562    */) ;;
14563    *) as_dir=$as_dir/ ;;
14564  esac
14565    for ac_exec_ext in '' $ac_executable_extensions; do
14566  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14567    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
14568    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14569    break 2
14570  fi
14571done
14572  done
14573IFS=$as_save_IFS
14574
14575fi ;;
14576esac
14577fi
14578ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14579if test -n "$ac_ct_MANIFEST_TOOL"; then
14580  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14581printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
14582else
14583  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14584printf "%s\n" "no" >&6; }
14585fi
14586
14587  if test "x$ac_ct_MANIFEST_TOOL" = x; then
14588    MANIFEST_TOOL=":"
14589  else
14590    case $cross_compiling:$ac_tool_warned in
14591yes:)
14592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14593printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14594ac_tool_warned=yes ;;
14595esac
14596    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14597  fi
14598else
14599  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14600fi
14601
14602test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14604printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14605if test ${lt_cv_path_mainfest_tool+y}
14606then :
14607  printf %s "(cached) " >&6
14608else case e in #(
14609  e) lt_cv_path_mainfest_tool=no
14610  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14611  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14612  cat conftest.err >&5
14613  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14614    lt_cv_path_mainfest_tool=yes
14615  fi
14616  rm -f conftest* ;;
14617esac
14618fi
14619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
14620printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
14621if test yes != "$lt_cv_path_mainfest_tool"; then
14622  MANIFEST_TOOL=:
14623fi
14624
14625
14626
14627
14628
14629
14630  case $host_os in
14631    rhapsody* | darwin*)
14632    if test -n "$ac_tool_prefix"; then
14633  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14634set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14636printf %s "checking for $ac_word... " >&6; }
14637if test ${ac_cv_prog_DSYMUTIL+y}
14638then :
14639  printf %s "(cached) " >&6
14640else case e in #(
14641  e) if test -n "$DSYMUTIL"; then
14642  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14643else
14644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14645for as_dir in $PATH
14646do
14647  IFS=$as_save_IFS
14648  case $as_dir in #(((
14649    '') as_dir=./ ;;
14650    */) ;;
14651    *) as_dir=$as_dir/ ;;
14652  esac
14653    for ac_exec_ext in '' $ac_executable_extensions; do
14654  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14655    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14656    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14657    break 2
14658  fi
14659done
14660  done
14661IFS=$as_save_IFS
14662
14663fi ;;
14664esac
14665fi
14666DSYMUTIL=$ac_cv_prog_DSYMUTIL
14667if test -n "$DSYMUTIL"; then
14668  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14669printf "%s\n" "$DSYMUTIL" >&6; }
14670else
14671  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14672printf "%s\n" "no" >&6; }
14673fi
14674
14675
14676fi
14677if test -z "$ac_cv_prog_DSYMUTIL"; then
14678  ac_ct_DSYMUTIL=$DSYMUTIL
14679  # Extract the first word of "dsymutil", so it can be a program name with args.
14680set dummy dsymutil; ac_word=$2
14681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14682printf %s "checking for $ac_word... " >&6; }
14683if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
14684then :
14685  printf %s "(cached) " >&6
14686else case e in #(
14687  e) if test -n "$ac_ct_DSYMUTIL"; then
14688  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14689else
14690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14691for as_dir in $PATH
14692do
14693  IFS=$as_save_IFS
14694  case $as_dir in #(((
14695    '') as_dir=./ ;;
14696    */) ;;
14697    *) as_dir=$as_dir/ ;;
14698  esac
14699    for ac_exec_ext in '' $ac_executable_extensions; do
14700  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14701    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14702    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14703    break 2
14704  fi
14705done
14706  done
14707IFS=$as_save_IFS
14708
14709fi ;;
14710esac
14711fi
14712ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14713if test -n "$ac_ct_DSYMUTIL"; then
14714  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14715printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
14716else
14717  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14718printf "%s\n" "no" >&6; }
14719fi
14720
14721  if test "x$ac_ct_DSYMUTIL" = x; then
14722    DSYMUTIL=":"
14723  else
14724    case $cross_compiling:$ac_tool_warned in
14725yes:)
14726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14727printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14728ac_tool_warned=yes ;;
14729esac
14730    DSYMUTIL=$ac_ct_DSYMUTIL
14731  fi
14732else
14733  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14734fi
14735
14736    if test -n "$ac_tool_prefix"; then
14737  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14738set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14740printf %s "checking for $ac_word... " >&6; }
14741if test ${ac_cv_prog_NMEDIT+y}
14742then :
14743  printf %s "(cached) " >&6
14744else case e in #(
14745  e) if test -n "$NMEDIT"; then
14746  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14747else
14748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14749for as_dir in $PATH
14750do
14751  IFS=$as_save_IFS
14752  case $as_dir in #(((
14753    '') as_dir=./ ;;
14754    */) ;;
14755    *) as_dir=$as_dir/ ;;
14756  esac
14757    for ac_exec_ext in '' $ac_executable_extensions; do
14758  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14759    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14760    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14761    break 2
14762  fi
14763done
14764  done
14765IFS=$as_save_IFS
14766
14767fi ;;
14768esac
14769fi
14770NMEDIT=$ac_cv_prog_NMEDIT
14771if test -n "$NMEDIT"; then
14772  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14773printf "%s\n" "$NMEDIT" >&6; }
14774else
14775  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14776printf "%s\n" "no" >&6; }
14777fi
14778
14779
14780fi
14781if test -z "$ac_cv_prog_NMEDIT"; then
14782  ac_ct_NMEDIT=$NMEDIT
14783  # Extract the first word of "nmedit", so it can be a program name with args.
14784set dummy nmedit; ac_word=$2
14785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14786printf %s "checking for $ac_word... " >&6; }
14787if test ${ac_cv_prog_ac_ct_NMEDIT+y}
14788then :
14789  printf %s "(cached) " >&6
14790else case e in #(
14791  e) if test -n "$ac_ct_NMEDIT"; then
14792  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14793else
14794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14795for as_dir in $PATH
14796do
14797  IFS=$as_save_IFS
14798  case $as_dir in #(((
14799    '') as_dir=./ ;;
14800    */) ;;
14801    *) as_dir=$as_dir/ ;;
14802  esac
14803    for ac_exec_ext in '' $ac_executable_extensions; do
14804  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14805    ac_cv_prog_ac_ct_NMEDIT="nmedit"
14806    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14807    break 2
14808  fi
14809done
14810  done
14811IFS=$as_save_IFS
14812
14813fi ;;
14814esac
14815fi
14816ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14817if test -n "$ac_ct_NMEDIT"; then
14818  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14819printf "%s\n" "$ac_ct_NMEDIT" >&6; }
14820else
14821  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14822printf "%s\n" "no" >&6; }
14823fi
14824
14825  if test "x$ac_ct_NMEDIT" = x; then
14826    NMEDIT=":"
14827  else
14828    case $cross_compiling:$ac_tool_warned in
14829yes:)
14830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14831printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14832ac_tool_warned=yes ;;
14833esac
14834    NMEDIT=$ac_ct_NMEDIT
14835  fi
14836else
14837  NMEDIT="$ac_cv_prog_NMEDIT"
14838fi
14839
14840    if test -n "$ac_tool_prefix"; then
14841  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14842set dummy ${ac_tool_prefix}lipo; ac_word=$2
14843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14844printf %s "checking for $ac_word... " >&6; }
14845if test ${ac_cv_prog_LIPO+y}
14846then :
14847  printf %s "(cached) " >&6
14848else case e in #(
14849  e) if test -n "$LIPO"; then
14850  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14851else
14852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14853for as_dir in $PATH
14854do
14855  IFS=$as_save_IFS
14856  case $as_dir in #(((
14857    '') as_dir=./ ;;
14858    */) ;;
14859    *) as_dir=$as_dir/ ;;
14860  esac
14861    for ac_exec_ext in '' $ac_executable_extensions; do
14862  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14863    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14864    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14865    break 2
14866  fi
14867done
14868  done
14869IFS=$as_save_IFS
14870
14871fi ;;
14872esac
14873fi
14874LIPO=$ac_cv_prog_LIPO
14875if test -n "$LIPO"; then
14876  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14877printf "%s\n" "$LIPO" >&6; }
14878else
14879  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14880printf "%s\n" "no" >&6; }
14881fi
14882
14883
14884fi
14885if test -z "$ac_cv_prog_LIPO"; then
14886  ac_ct_LIPO=$LIPO
14887  # Extract the first word of "lipo", so it can be a program name with args.
14888set dummy lipo; ac_word=$2
14889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14890printf %s "checking for $ac_word... " >&6; }
14891if test ${ac_cv_prog_ac_ct_LIPO+y}
14892then :
14893  printf %s "(cached) " >&6
14894else case e in #(
14895  e) if test -n "$ac_ct_LIPO"; then
14896  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14897else
14898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14899for as_dir in $PATH
14900do
14901  IFS=$as_save_IFS
14902  case $as_dir in #(((
14903    '') as_dir=./ ;;
14904    */) ;;
14905    *) as_dir=$as_dir/ ;;
14906  esac
14907    for ac_exec_ext in '' $ac_executable_extensions; do
14908  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14909    ac_cv_prog_ac_ct_LIPO="lipo"
14910    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14911    break 2
14912  fi
14913done
14914  done
14915IFS=$as_save_IFS
14916
14917fi ;;
14918esac
14919fi
14920ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14921if test -n "$ac_ct_LIPO"; then
14922  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14923printf "%s\n" "$ac_ct_LIPO" >&6; }
14924else
14925  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14926printf "%s\n" "no" >&6; }
14927fi
14928
14929  if test "x$ac_ct_LIPO" = x; then
14930    LIPO=":"
14931  else
14932    case $cross_compiling:$ac_tool_warned in
14933yes:)
14934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14935printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14936ac_tool_warned=yes ;;
14937esac
14938    LIPO=$ac_ct_LIPO
14939  fi
14940else
14941  LIPO="$ac_cv_prog_LIPO"
14942fi
14943
14944    if test -n "$ac_tool_prefix"; then
14945  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14946set dummy ${ac_tool_prefix}otool; ac_word=$2
14947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14948printf %s "checking for $ac_word... " >&6; }
14949if test ${ac_cv_prog_OTOOL+y}
14950then :
14951  printf %s "(cached) " >&6
14952else case e in #(
14953  e) if test -n "$OTOOL"; then
14954  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14955else
14956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14957for as_dir in $PATH
14958do
14959  IFS=$as_save_IFS
14960  case $as_dir in #(((
14961    '') as_dir=./ ;;
14962    */) ;;
14963    *) as_dir=$as_dir/ ;;
14964  esac
14965    for ac_exec_ext in '' $ac_executable_extensions; do
14966  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14967    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14968    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14969    break 2
14970  fi
14971done
14972  done
14973IFS=$as_save_IFS
14974
14975fi ;;
14976esac
14977fi
14978OTOOL=$ac_cv_prog_OTOOL
14979if test -n "$OTOOL"; then
14980  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14981printf "%s\n" "$OTOOL" >&6; }
14982else
14983  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14984printf "%s\n" "no" >&6; }
14985fi
14986
14987
14988fi
14989if test -z "$ac_cv_prog_OTOOL"; then
14990  ac_ct_OTOOL=$OTOOL
14991  # Extract the first word of "otool", so it can be a program name with args.
14992set dummy otool; ac_word=$2
14993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14994printf %s "checking for $ac_word... " >&6; }
14995if test ${ac_cv_prog_ac_ct_OTOOL+y}
14996then :
14997  printf %s "(cached) " >&6
14998else case e in #(
14999  e) if test -n "$ac_ct_OTOOL"; then
15000  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15001else
15002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15003for as_dir in $PATH
15004do
15005  IFS=$as_save_IFS
15006  case $as_dir in #(((
15007    '') as_dir=./ ;;
15008    */) ;;
15009    *) as_dir=$as_dir/ ;;
15010  esac
15011    for ac_exec_ext in '' $ac_executable_extensions; do
15012  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15013    ac_cv_prog_ac_ct_OTOOL="otool"
15014    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15015    break 2
15016  fi
15017done
15018  done
15019IFS=$as_save_IFS
15020
15021fi ;;
15022esac
15023fi
15024ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15025if test -n "$ac_ct_OTOOL"; then
15026  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15027printf "%s\n" "$ac_ct_OTOOL" >&6; }
15028else
15029  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15030printf "%s\n" "no" >&6; }
15031fi
15032
15033  if test "x$ac_ct_OTOOL" = x; then
15034    OTOOL=":"
15035  else
15036    case $cross_compiling:$ac_tool_warned in
15037yes:)
15038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15039printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15040ac_tool_warned=yes ;;
15041esac
15042    OTOOL=$ac_ct_OTOOL
15043  fi
15044else
15045  OTOOL="$ac_cv_prog_OTOOL"
15046fi
15047
15048    if test -n "$ac_tool_prefix"; then
15049  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15050set dummy ${ac_tool_prefix}otool64; ac_word=$2
15051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15052printf %s "checking for $ac_word... " >&6; }
15053if test ${ac_cv_prog_OTOOL64+y}
15054then :
15055  printf %s "(cached) " >&6
15056else case e in #(
15057  e) if test -n "$OTOOL64"; then
15058  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15059else
15060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15061for as_dir in $PATH
15062do
15063  IFS=$as_save_IFS
15064  case $as_dir in #(((
15065    '') as_dir=./ ;;
15066    */) ;;
15067    *) as_dir=$as_dir/ ;;
15068  esac
15069    for ac_exec_ext in '' $ac_executable_extensions; do
15070  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15071    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15072    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15073    break 2
15074  fi
15075done
15076  done
15077IFS=$as_save_IFS
15078
15079fi ;;
15080esac
15081fi
15082OTOOL64=$ac_cv_prog_OTOOL64
15083if test -n "$OTOOL64"; then
15084  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15085printf "%s\n" "$OTOOL64" >&6; }
15086else
15087  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15088printf "%s\n" "no" >&6; }
15089fi
15090
15091
15092fi
15093if test -z "$ac_cv_prog_OTOOL64"; then
15094  ac_ct_OTOOL64=$OTOOL64
15095  # Extract the first word of "otool64", so it can be a program name with args.
15096set dummy otool64; ac_word=$2
15097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15098printf %s "checking for $ac_word... " >&6; }
15099if test ${ac_cv_prog_ac_ct_OTOOL64+y}
15100then :
15101  printf %s "(cached) " >&6
15102else case e in #(
15103  e) if test -n "$ac_ct_OTOOL64"; then
15104  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15105else
15106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15107for as_dir in $PATH
15108do
15109  IFS=$as_save_IFS
15110  case $as_dir in #(((
15111    '') as_dir=./ ;;
15112    */) ;;
15113    *) as_dir=$as_dir/ ;;
15114  esac
15115    for ac_exec_ext in '' $ac_executable_extensions; do
15116  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15117    ac_cv_prog_ac_ct_OTOOL64="otool64"
15118    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15119    break 2
15120  fi
15121done
15122  done
15123IFS=$as_save_IFS
15124
15125fi ;;
15126esac
15127fi
15128ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15129if test -n "$ac_ct_OTOOL64"; then
15130  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15131printf "%s\n" "$ac_ct_OTOOL64" >&6; }
15132else
15133  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15134printf "%s\n" "no" >&6; }
15135fi
15136
15137  if test "x$ac_ct_OTOOL64" = x; then
15138    OTOOL64=":"
15139  else
15140    case $cross_compiling:$ac_tool_warned in
15141yes:)
15142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15143printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15144ac_tool_warned=yes ;;
15145esac
15146    OTOOL64=$ac_ct_OTOOL64
15147  fi
15148else
15149  OTOOL64="$ac_cv_prog_OTOOL64"
15150fi
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15179printf %s "checking for -single_module linker flag... " >&6; }
15180if test ${lt_cv_apple_cc_single_mod+y}
15181then :
15182  printf %s "(cached) " >&6
15183else case e in #(
15184  e) lt_cv_apple_cc_single_mod=no
15185      if test -z "$LT_MULTI_MODULE"; then
15186	# By default we will add the -single_module flag. You can override
15187	# by either setting the environment variable LT_MULTI_MODULE
15188	# non-empty at configure time, or by adding -multi_module to the
15189	# link flags.
15190	rm -rf libconftest.dylib*
15191	echo "int foo(void){return 1;}" > conftest.c
15192	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15193-dynamiclib -Wl,-single_module conftest.c" >&5
15194	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15195	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15196        _lt_result=$?
15197	# If there is a non-empty error log, and "single_module"
15198	# appears in it, assume the flag caused a linker warning
15199        if test -s conftest.err && $GREP single_module conftest.err; then
15200	  cat conftest.err >&5
15201	# Otherwise, if the output was created with a 0 exit code from
15202	# the compiler, it worked.
15203	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
15204	  lt_cv_apple_cc_single_mod=yes
15205	else
15206	  cat conftest.err >&5
15207	fi
15208	rm -rf libconftest.dylib*
15209	rm -f conftest.*
15210      fi ;;
15211esac
15212fi
15213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15214printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
15215
15216    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15217printf %s "checking for -exported_symbols_list linker flag... " >&6; }
15218if test ${lt_cv_ld_exported_symbols_list+y}
15219then :
15220  printf %s "(cached) " >&6
15221else case e in #(
15222  e) lt_cv_ld_exported_symbols_list=no
15223      save_LDFLAGS=$LDFLAGS
15224      echo "_main" > conftest.sym
15225      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15226      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15227/* end confdefs.h.  */
15228
15229int
15230main (void)
15231{
15232
15233  ;
15234  return 0;
15235}
15236_ACEOF
15237if ac_fn_c_try_link "$LINENO"
15238then :
15239  lt_cv_ld_exported_symbols_list=yes
15240else case e in #(
15241  e) lt_cv_ld_exported_symbols_list=no ;;
15242esac
15243fi
15244rm -f core conftest.err conftest.$ac_objext conftest.beam \
15245    conftest$ac_exeext conftest.$ac_ext
15246	LDFLAGS=$save_LDFLAGS
15247     ;;
15248esac
15249fi
15250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15251printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
15252
15253    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15254printf %s "checking for -force_load linker flag... " >&6; }
15255if test ${lt_cv_ld_force_load+y}
15256then :
15257  printf %s "(cached) " >&6
15258else case e in #(
15259  e) lt_cv_ld_force_load=no
15260      cat > conftest.c << _LT_EOF
15261int forced_loaded() { return 2;}
15262_LT_EOF
15263      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15264      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15265      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
15266      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
15267      echo "$RANLIB libconftest.a" >&5
15268      $RANLIB libconftest.a 2>&5
15269      cat > conftest.c << _LT_EOF
15270int main() { return 0;}
15271_LT_EOF
15272      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15273      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15274      _lt_result=$?
15275      if test -s conftest.err && $GREP force_load conftest.err; then
15276	cat conftest.err >&5
15277      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
15278	lt_cv_ld_force_load=yes
15279      else
15280	cat conftest.err >&5
15281      fi
15282        rm -f conftest.err libconftest.a conftest conftest.c
15283        rm -rf conftest.dSYM
15284     ;;
15285esac
15286fi
15287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15288printf "%s\n" "$lt_cv_ld_force_load" >&6; }
15289    case $host_os in
15290    rhapsody* | darwin1.[012])
15291      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
15292    darwin1.*)
15293      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
15294    darwin*)
15295      case $MACOSX_DEPLOYMENT_TARGET,$host in
15296        10.[012],*|,*powerpc*-darwin[5-8]*)
15297          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
15298        *)
15299          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
15300      esac
15301    ;;
15302  esac
15303    if test yes = "$lt_cv_apple_cc_single_mod"; then
15304      _lt_dar_single_mod='$single_module'
15305    fi
15306    if test yes = "$lt_cv_ld_exported_symbols_list"; then
15307      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
15308    else
15309      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
15310    fi
15311    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
15312      _lt_dsymutil='~$DSYMUTIL $lib || :'
15313    else
15314      _lt_dsymutil=
15315    fi
15316    ;;
15317  esac
15318
15319# func_munge_path_list VARIABLE PATH
15320# -----------------------------------
15321# VARIABLE is name of variable containing _space_ separated list of
15322# directories to be munged by the contents of PATH, which is string
15323# having a format:
15324# "DIR[:DIR]:"
15325#       string "DIR[ DIR]" will be prepended to VARIABLE
15326# ":DIR[:DIR]"
15327#       string "DIR[ DIR]" will be appended to VARIABLE
15328# "DIRP[:DIRP]::[DIRA:]DIRA"
15329#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15330#       "DIRA[ DIRA]" will be appended to VARIABLE
15331# "DIR[:DIR]"
15332#       VARIABLE will be replaced by "DIR[ DIR]"
15333func_munge_path_list ()
15334{
15335    case x$2 in
15336    x)
15337        ;;
15338    *:)
15339        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15340        ;;
15341    x:*)
15342        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15343        ;;
15344    *::*)
15345        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15346        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15347        ;;
15348    *)
15349        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15350        ;;
15351    esac
15352}
15353
15354ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15355"
15356if test "x$ac_cv_header_dlfcn_h" = xyes
15357then :
15358  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
15359
15360fi
15361
15362
15363
15364
15365
15366# Set options
15367# Check whether --enable-static was given.
15368if test ${enable_static+y}
15369then :
15370  enableval=$enable_static; p=${PACKAGE-default}
15371    case $enableval in
15372    yes) enable_static=yes ;;
15373    no) enable_static=no ;;
15374    *)
15375     enable_static=no
15376      # Look at the argument we got.  We use all the common list separators.
15377      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15378      for pkg in $enableval; do
15379	IFS=$lt_save_ifs
15380	if test "X$pkg" = "X$p"; then
15381	  enable_static=yes
15382	fi
15383      done
15384      IFS=$lt_save_ifs
15385      ;;
15386    esac
15387else case e in #(
15388  e) enable_static=no ;;
15389esac
15390fi
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401        enable_dlopen=no
15402
15403
15404  enable_win32_dll=no
15405
15406
15407            # Check whether --enable-shared was given.
15408if test ${enable_shared+y}
15409then :
15410  enableval=$enable_shared; p=${PACKAGE-default}
15411    case $enableval in
15412    yes) enable_shared=yes ;;
15413    no) enable_shared=no ;;
15414    *)
15415      enable_shared=no
15416      # Look at the argument we got.  We use all the common list separators.
15417      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15418      for pkg in $enableval; do
15419	IFS=$lt_save_ifs
15420	if test "X$pkg" = "X$p"; then
15421	  enable_shared=yes
15422	fi
15423      done
15424      IFS=$lt_save_ifs
15425      ;;
15426    esac
15427else case e in #(
15428  e) enable_shared=yes ;;
15429esac
15430fi
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442# Check whether --with-pic was given.
15443if test ${with_pic+y}
15444then :
15445  withval=$with_pic; lt_p=${PACKAGE-default}
15446    case $withval in
15447    yes|no) pic_mode=$withval ;;
15448    *)
15449      pic_mode=default
15450      # Look at the argument we got.  We use all the common list separators.
15451      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15452      for lt_pkg in $withval; do
15453	IFS=$lt_save_ifs
15454	if test "X$lt_pkg" = "X$lt_p"; then
15455	  pic_mode=yes
15456	fi
15457      done
15458      IFS=$lt_save_ifs
15459      ;;
15460    esac
15461else case e in #(
15462  e) pic_mode=default ;;
15463esac
15464fi
15465
15466
15467
15468
15469
15470
15471
15472
15473  # Check whether --enable-fast-install was given.
15474if test ${enable_fast_install+y}
15475then :
15476  enableval=$enable_fast_install; p=${PACKAGE-default}
15477    case $enableval in
15478    yes) enable_fast_install=yes ;;
15479    no) enable_fast_install=no ;;
15480    *)
15481      enable_fast_install=no
15482      # Look at the argument we got.  We use all the common list separators.
15483      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15484      for pkg in $enableval; do
15485	IFS=$lt_save_ifs
15486	if test "X$pkg" = "X$p"; then
15487	  enable_fast_install=yes
15488	fi
15489      done
15490      IFS=$lt_save_ifs
15491      ;;
15492    esac
15493else case e in #(
15494  e) enable_fast_install=yes ;;
15495esac
15496fi
15497
15498
15499
15500
15501
15502
15503
15504
15505  shared_archive_member_spec=
15506case $host,$enable_shared in
15507power*-*-aix[5-9]*,yes)
15508  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
15509printf %s "checking which variant of shared library versioning to provide... " >&6; }
15510
15511# Check whether --with-aix-soname was given.
15512if test ${with_aix_soname+y}
15513then :
15514  withval=$with_aix_soname; case $withval in
15515    aix|svr4|both)
15516      ;;
15517    *)
15518      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
15519      ;;
15520    esac
15521    lt_cv_with_aix_soname=$with_aix_soname
15522else case e in #(
15523  e) if test ${lt_cv_with_aix_soname+y}
15524then :
15525  printf %s "(cached) " >&6
15526else case e in #(
15527  e) lt_cv_with_aix_soname=aix ;;
15528esac
15529fi
15530
15531    with_aix_soname=$lt_cv_with_aix_soname ;;
15532esac
15533fi
15534
15535  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
15536printf "%s\n" "$with_aix_soname" >&6; }
15537  if test aix != "$with_aix_soname"; then
15538    # For the AIX way of multilib, we name the shared archive member
15539    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
15540    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
15541    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
15542    # the AIX toolchain works better with OBJECT_MODE set (default 32).
15543    if test 64 = "${OBJECT_MODE-32}"; then
15544      shared_archive_member_spec=shr_64
15545    else
15546      shared_archive_member_spec=shr
15547    fi
15548  fi
15549  ;;
15550*)
15551  with_aix_soname=aix
15552  ;;
15553esac
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564# This can be used to rebuild libtool when needed
15565LIBTOOL_DEPS=$ltmain
15566
15567# Always use our own libtool.
15568LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599test -z "$LN_S" && LN_S="ln -s"
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614if test -n "${ZSH_VERSION+set}"; then
15615   setopt NO_GLOB_SUBST
15616fi
15617
15618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15619printf %s "checking for objdir... " >&6; }
15620if test ${lt_cv_objdir+y}
15621then :
15622  printf %s "(cached) " >&6
15623else case e in #(
15624  e) rm -f .libs 2>/dev/null
15625mkdir .libs 2>/dev/null
15626if test -d .libs; then
15627  lt_cv_objdir=.libs
15628else
15629  # MS-DOS does not allow filenames that begin with a dot.
15630  lt_cv_objdir=_libs
15631fi
15632rmdir .libs 2>/dev/null ;;
15633esac
15634fi
15635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15636printf "%s\n" "$lt_cv_objdir" >&6; }
15637objdir=$lt_cv_objdir
15638
15639
15640
15641
15642
15643printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
15644
15645
15646
15647
15648case $host_os in
15649aix3*)
15650  # AIX sometimes has problems with the GCC collect2 program.  For some
15651  # reason, if we set the COLLECT_NAMES environment variable, the problems
15652  # vanish in a puff of smoke.
15653  if test set != "${COLLECT_NAMES+set}"; then
15654    COLLECT_NAMES=
15655    export COLLECT_NAMES
15656  fi
15657  ;;
15658esac
15659
15660# Global variables:
15661ofile=libtool
15662can_build_shared=yes
15663
15664# All known linkers require a '.a' archive for static linking (except MSVC and
15665# ICC, which need '.lib').
15666libext=a
15667
15668with_gnu_ld=$lt_cv_prog_gnu_ld
15669
15670old_CC=$CC
15671old_CFLAGS=$CFLAGS
15672
15673# Set sane defaults for various variables
15674test -z "$CC" && CC=cc
15675test -z "$LTCC" && LTCC=$CC
15676test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15677test -z "$LD" && LD=ld
15678test -z "$ac_objext" && ac_objext=o
15679
15680func_cc_basename $compiler
15681cc_basename=$func_cc_basename_result
15682
15683
15684# Only perform the check for file, if the check method requires it
15685test -z "$MAGIC_CMD" && MAGIC_CMD=file
15686case $deplibs_check_method in
15687file_magic*)
15688  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15689    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15690printf %s "checking for ${ac_tool_prefix}file... " >&6; }
15691if test ${lt_cv_path_MAGIC_CMD+y}
15692then :
15693  printf %s "(cached) " >&6
15694else case e in #(
15695  e) case $MAGIC_CMD in
15696[\\/*] |  ?:[\\/]*)
15697  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15698  ;;
15699*)
15700  lt_save_MAGIC_CMD=$MAGIC_CMD
15701  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15702  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15703  for ac_dir in $ac_dummy; do
15704    IFS=$lt_save_ifs
15705    test -z "$ac_dir" && ac_dir=.
15706    if test -f "$ac_dir/${ac_tool_prefix}file"; then
15707      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
15708      if test -n "$file_magic_test_file"; then
15709	case $deplibs_check_method in
15710	"file_magic "*)
15711	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15712	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15713	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15714	    $EGREP "$file_magic_regex" > /dev/null; then
15715	    :
15716	  else
15717	    cat <<_LT_EOF 1>&2
15718
15719*** Warning: the command libtool uses to detect shared libraries,
15720*** $file_magic_cmd, produces output that libtool cannot recognize.
15721*** The result is that libtool may fail to recognize shared libraries
15722*** as such.  This will affect the creation of libtool libraries that
15723*** depend on shared libraries, but programs linked with such libtool
15724*** libraries will work regardless of this problem.  Nevertheless, you
15725*** may want to report the problem to your system manager and/or to
15726*** bug-libtool@gnu.org
15727
15728_LT_EOF
15729	  fi ;;
15730	esac
15731      fi
15732      break
15733    fi
15734  done
15735  IFS=$lt_save_ifs
15736  MAGIC_CMD=$lt_save_MAGIC_CMD
15737  ;;
15738esac ;;
15739esac
15740fi
15741
15742MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15743if test -n "$MAGIC_CMD"; then
15744  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15745printf "%s\n" "$MAGIC_CMD" >&6; }
15746else
15747  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15748printf "%s\n" "no" >&6; }
15749fi
15750
15751
15752
15753
15754
15755if test -z "$lt_cv_path_MAGIC_CMD"; then
15756  if test -n "$ac_tool_prefix"; then
15757    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15758printf %s "checking for file... " >&6; }
15759if test ${lt_cv_path_MAGIC_CMD+y}
15760then :
15761  printf %s "(cached) " >&6
15762else case e in #(
15763  e) case $MAGIC_CMD in
15764[\\/*] |  ?:[\\/]*)
15765  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15766  ;;
15767*)
15768  lt_save_MAGIC_CMD=$MAGIC_CMD
15769  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15770  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15771  for ac_dir in $ac_dummy; do
15772    IFS=$lt_save_ifs
15773    test -z "$ac_dir" && ac_dir=.
15774    if test -f "$ac_dir/file"; then
15775      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
15776      if test -n "$file_magic_test_file"; then
15777	case $deplibs_check_method in
15778	"file_magic "*)
15779	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15780	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15781	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15782	    $EGREP "$file_magic_regex" > /dev/null; then
15783	    :
15784	  else
15785	    cat <<_LT_EOF 1>&2
15786
15787*** Warning: the command libtool uses to detect shared libraries,
15788*** $file_magic_cmd, produces output that libtool cannot recognize.
15789*** The result is that libtool may fail to recognize shared libraries
15790*** as such.  This will affect the creation of libtool libraries that
15791*** depend on shared libraries, but programs linked with such libtool
15792*** libraries will work regardless of this problem.  Nevertheless, you
15793*** may want to report the problem to your system manager and/or to
15794*** bug-libtool@gnu.org
15795
15796_LT_EOF
15797	  fi ;;
15798	esac
15799      fi
15800      break
15801    fi
15802  done
15803  IFS=$lt_save_ifs
15804  MAGIC_CMD=$lt_save_MAGIC_CMD
15805  ;;
15806esac ;;
15807esac
15808fi
15809
15810MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15811if test -n "$MAGIC_CMD"; then
15812  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15813printf "%s\n" "$MAGIC_CMD" >&6; }
15814else
15815  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15816printf "%s\n" "no" >&6; }
15817fi
15818
15819
15820  else
15821    MAGIC_CMD=:
15822  fi
15823fi
15824
15825  fi
15826  ;;
15827esac
15828
15829# Use C for the default configuration in the libtool script
15830
15831lt_save_CC=$CC
15832ac_ext=c
15833ac_cpp='$CPP $CPPFLAGS'
15834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15836ac_compiler_gnu=$ac_cv_c_compiler_gnu
15837
15838
15839# Source file extension for C test sources.
15840ac_ext=c
15841
15842# Object file extension for compiled C test sources.
15843objext=o
15844objext=$objext
15845
15846# Code to be used in simple compile tests
15847lt_simple_compile_test_code="int some_variable = 0;"
15848
15849# Code to be used in simple link tests
15850lt_simple_link_test_code='int main(){return(0);}'
15851
15852
15853
15854
15855
15856
15857
15858# If no C compiler was specified, use CC.
15859LTCC=${LTCC-"$CC"}
15860
15861# If no C compiler flags were specified, use CFLAGS.
15862LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15863
15864# Allow CC to be a program name with arguments.
15865compiler=$CC
15866
15867# Save the default compiler, since it gets overwritten when the other
15868# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15869compiler_DEFAULT=$CC
15870
15871# save warnings/boilerplate of simple test code
15872ac_outfile=conftest.$ac_objext
15873echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15874eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15875_lt_compiler_boilerplate=`cat conftest.err`
15876$RM conftest*
15877
15878ac_outfile=conftest.$ac_objext
15879echo "$lt_simple_link_test_code" >conftest.$ac_ext
15880eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15881_lt_linker_boilerplate=`cat conftest.err`
15882$RM -r conftest*
15883
15884
15885if test -n "$compiler"; then
15886
15887lt_prog_compiler_no_builtin_flag=
15888
15889if test yes = "$GCC"; then
15890  case $cc_basename in
15891  nvcc*)
15892    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15893  *)
15894    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15895  esac
15896
15897  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15898printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15899if test ${lt_cv_prog_compiler_rtti_exceptions+y}
15900then :
15901  printf %s "(cached) " >&6
15902else case e in #(
15903  e) lt_cv_prog_compiler_rtti_exceptions=no
15904   ac_outfile=conftest.$ac_objext
15905   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15906   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
15907   # Insert the option either (1) after the last *FLAGS variable, or
15908   # (2) before a word containing "conftest.", or (3) at the end.
15909   # Note that $ac_compile itself does not contain backslashes and begins
15910   # with a dollar sign (not a hyphen), so the echo should work correctly.
15911   # The option is referenced via a variable to avoid confusing sed.
15912   lt_compile=`echo "$ac_compile" | $SED \
15913   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15914   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15915   -e 's:$: $lt_compiler_flag:'`
15916   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15917   (eval "$lt_compile" 2>conftest.err)
15918   ac_status=$?
15919   cat conftest.err >&5
15920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921   if (exit $ac_status) && test -s "$ac_outfile"; then
15922     # The compiler can only warn and ignore the option if not recognized
15923     # So say no if there are warnings other than the usual output.
15924     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15925     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15926     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15927       lt_cv_prog_compiler_rtti_exceptions=yes
15928     fi
15929   fi
15930   $RM conftest*
15931 ;;
15932esac
15933fi
15934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15935printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15936
15937if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
15938    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15939else
15940    :
15941fi
15942
15943fi
15944
15945
15946
15947
15948
15949
15950  lt_prog_compiler_wl=
15951lt_prog_compiler_pic=
15952lt_prog_compiler_static=
15953
15954
15955  if test yes = "$GCC"; then
15956    lt_prog_compiler_wl='-Wl,'
15957    lt_prog_compiler_static='-static'
15958
15959    case $host_os in
15960      aix*)
15961      # All AIX code is PIC.
15962      if test ia64 = "$host_cpu"; then
15963	# AIX 5 now supports IA64 processor
15964	lt_prog_compiler_static='-Bstatic'
15965      fi
15966      lt_prog_compiler_pic='-fPIC'
15967      ;;
15968
15969    amigaos*)
15970      case $host_cpu in
15971      powerpc)
15972            # see comment about AmigaOS4 .so support
15973            lt_prog_compiler_pic='-fPIC'
15974        ;;
15975      m68k)
15976            # FIXME: we need at least 68020 code to build shared libraries, but
15977            # adding the '-m68020' flag to GCC prevents building anything better,
15978            # like '-m68040'.
15979            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15980        ;;
15981      esac
15982      ;;
15983
15984    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15985      # PIC is the default for these OSes.
15986      ;;
15987
15988    mingw* | cygwin* | pw32* | os2* | cegcc*)
15989      # This hack is so that the source file can tell whether it is being
15990      # built for inclusion in a dll (and should export symbols for example).
15991      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15992      # (--disable-auto-import) libraries
15993      lt_prog_compiler_pic='-DDLL_EXPORT'
15994      case $host_os in
15995      os2*)
15996	lt_prog_compiler_static='$wl-static'
15997	;;
15998      esac
15999      ;;
16000
16001    darwin* | rhapsody*)
16002      # PIC is the default on this platform
16003      # Common symbols not allowed in MH_DYLIB files
16004      lt_prog_compiler_pic='-fno-common'
16005      ;;
16006
16007    haiku*)
16008      # PIC is the default for Haiku.
16009      # The "-static" flag exists, but is broken.
16010      lt_prog_compiler_static=
16011      ;;
16012
16013    hpux*)
16014      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16015      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16016      # sets the default TLS model and affects inlining.
16017      case $host_cpu in
16018      hppa*64*)
16019	# +Z the default
16020	;;
16021      *)
16022	lt_prog_compiler_pic='-fPIC'
16023	;;
16024      esac
16025      ;;
16026
16027    interix[3-9]*)
16028      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16029      # Instead, we relocate shared libraries at runtime.
16030      ;;
16031
16032    msdosdjgpp*)
16033      # Just because we use GCC doesn't mean we suddenly get shared libraries
16034      # on systems that don't support them.
16035      lt_prog_compiler_can_build_shared=no
16036      enable_shared=no
16037      ;;
16038
16039    *nto* | *qnx*)
16040      # QNX uses GNU C++, but need to define -shared option too, otherwise
16041      # it will coredump.
16042      lt_prog_compiler_pic='-fPIC -shared'
16043      ;;
16044
16045    sysv4*MP*)
16046      if test -d /usr/nec; then
16047	lt_prog_compiler_pic=-Kconform_pic
16048      fi
16049      ;;
16050
16051    *)
16052      lt_prog_compiler_pic='-fPIC'
16053      ;;
16054    esac
16055
16056    case $cc_basename in
16057    nvcc*) # Cuda Compiler Driver 2.2
16058      lt_prog_compiler_wl='-Xlinker '
16059      if test -n "$lt_prog_compiler_pic"; then
16060        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
16061      fi
16062      ;;
16063    esac
16064  else
16065    # PORTME Check for flag to pass linker flags through the system compiler.
16066    case $host_os in
16067    aix*)
16068      lt_prog_compiler_wl='-Wl,'
16069      if test ia64 = "$host_cpu"; then
16070	# AIX 5 now supports IA64 processor
16071	lt_prog_compiler_static='-Bstatic'
16072      else
16073	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16074      fi
16075      ;;
16076
16077    darwin* | rhapsody*)
16078      # PIC is the default on this platform
16079      # Common symbols not allowed in MH_DYLIB files
16080      lt_prog_compiler_pic='-fno-common'
16081      case $cc_basename in
16082      nagfor*)
16083        # NAG Fortran compiler
16084        lt_prog_compiler_wl='-Wl,-Wl,,'
16085        lt_prog_compiler_pic='-PIC'
16086        lt_prog_compiler_static='-Bstatic'
16087        ;;
16088      esac
16089      ;;
16090
16091    mingw* | cygwin* | pw32* | os2* | cegcc*)
16092      # This hack is so that the source file can tell whether it is being
16093      # built for inclusion in a dll (and should export symbols for example).
16094      lt_prog_compiler_pic='-DDLL_EXPORT'
16095      case $host_os in
16096      os2*)
16097	lt_prog_compiler_static='$wl-static'
16098	;;
16099      esac
16100      ;;
16101
16102    hpux9* | hpux10* | hpux11*)
16103      lt_prog_compiler_wl='-Wl,'
16104      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16105      # not for PA HP-UX.
16106      case $host_cpu in
16107      hppa*64*|ia64*)
16108	# +Z the default
16109	;;
16110      *)
16111	lt_prog_compiler_pic='+Z'
16112	;;
16113      esac
16114      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16115      lt_prog_compiler_static='$wl-a ${wl}archive'
16116      ;;
16117
16118    irix5* | irix6* | nonstopux*)
16119      lt_prog_compiler_wl='-Wl,'
16120      # PIC (with -KPIC) is the default.
16121      lt_prog_compiler_static='-non_shared'
16122      ;;
16123
16124    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16125      case $cc_basename in
16126      # old Intel for x86_64, which still supported -KPIC.
16127      ecc*)
16128	lt_prog_compiler_wl='-Wl,'
16129	lt_prog_compiler_pic='-KPIC'
16130	lt_prog_compiler_static='-static'
16131        ;;
16132      # icc used to be incompatible with GCC.
16133      # ICC 10 doesn't accept -KPIC any more.
16134      icc* | ifort*)
16135	lt_prog_compiler_wl='-Wl,'
16136	lt_prog_compiler_pic='-fPIC'
16137	lt_prog_compiler_static='-static'
16138        ;;
16139      # Lahey Fortran 8.1.
16140      lf95*)
16141	lt_prog_compiler_wl='-Wl,'
16142	lt_prog_compiler_pic='--shared'
16143	lt_prog_compiler_static='--static'
16144	;;
16145      nagfor*)
16146	# NAG Fortran compiler
16147	lt_prog_compiler_wl='-Wl,-Wl,,'
16148	lt_prog_compiler_pic='-PIC'
16149	lt_prog_compiler_static='-Bstatic'
16150	;;
16151      tcc*)
16152	# Fabrice Bellard et al's Tiny C Compiler
16153	lt_prog_compiler_wl='-Wl,'
16154	lt_prog_compiler_pic='-fPIC'
16155	lt_prog_compiler_static='-static'
16156	;;
16157      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16158        # Portland Group compilers (*not* the Pentium gcc compiler,
16159	# which looks to be a dead project)
16160	lt_prog_compiler_wl='-Wl,'
16161	lt_prog_compiler_pic='-fpic'
16162	lt_prog_compiler_static='-Bstatic'
16163        ;;
16164      ccc*)
16165        lt_prog_compiler_wl='-Wl,'
16166        # All Alpha code is PIC.
16167        lt_prog_compiler_static='-non_shared'
16168        ;;
16169      xl* | bgxl* | bgf* | mpixl*)
16170	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16171	lt_prog_compiler_wl='-Wl,'
16172	lt_prog_compiler_pic='-qpic'
16173	lt_prog_compiler_static='-qstaticlink'
16174	;;
16175      *)
16176	case `$CC -V 2>&1 | $SED 5q` in
16177	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
16178	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16179	  lt_prog_compiler_pic='-KPIC'
16180	  lt_prog_compiler_static='-Bstatic'
16181	  lt_prog_compiler_wl=''
16182	  ;;
16183	*Sun\ F* | *Sun*Fortran*)
16184	  lt_prog_compiler_pic='-KPIC'
16185	  lt_prog_compiler_static='-Bstatic'
16186	  lt_prog_compiler_wl='-Qoption ld '
16187	  ;;
16188	*Sun\ C*)
16189	  # Sun C 5.9
16190	  lt_prog_compiler_pic='-KPIC'
16191	  lt_prog_compiler_static='-Bstatic'
16192	  lt_prog_compiler_wl='-Wl,'
16193	  ;;
16194        *Intel*\ [CF]*Compiler*)
16195	  lt_prog_compiler_wl='-Wl,'
16196	  lt_prog_compiler_pic='-fPIC'
16197	  lt_prog_compiler_static='-static'
16198	  ;;
16199	*Portland\ Group*)
16200	  lt_prog_compiler_wl='-Wl,'
16201	  lt_prog_compiler_pic='-fpic'
16202	  lt_prog_compiler_static='-Bstatic'
16203	  ;;
16204	esac
16205	;;
16206      esac
16207      ;;
16208
16209    newsos6)
16210      lt_prog_compiler_pic='-KPIC'
16211      lt_prog_compiler_static='-Bstatic'
16212      ;;
16213
16214    *nto* | *qnx*)
16215      # QNX uses GNU C++, but need to define -shared option too, otherwise
16216      # it will coredump.
16217      lt_prog_compiler_pic='-fPIC -shared'
16218      ;;
16219
16220    osf3* | osf4* | osf5*)
16221      lt_prog_compiler_wl='-Wl,'
16222      # All OSF/1 code is PIC.
16223      lt_prog_compiler_static='-non_shared'
16224      ;;
16225
16226    rdos*)
16227      lt_prog_compiler_static='-non_shared'
16228      ;;
16229
16230    solaris*)
16231      lt_prog_compiler_pic='-KPIC'
16232      lt_prog_compiler_static='-Bstatic'
16233      case $cc_basename in
16234      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
16235	lt_prog_compiler_wl='-Qoption ld ';;
16236      *)
16237	lt_prog_compiler_wl='-Wl,';;
16238      esac
16239      ;;
16240
16241    sunos4*)
16242      lt_prog_compiler_wl='-Qoption ld '
16243      lt_prog_compiler_pic='-PIC'
16244      lt_prog_compiler_static='-Bstatic'
16245      ;;
16246
16247    sysv4 | sysv4.2uw2* | sysv4.3*)
16248      lt_prog_compiler_wl='-Wl,'
16249      lt_prog_compiler_pic='-KPIC'
16250      lt_prog_compiler_static='-Bstatic'
16251      ;;
16252
16253    sysv4*MP*)
16254      if test -d /usr/nec; then
16255	lt_prog_compiler_pic='-Kconform_pic'
16256	lt_prog_compiler_static='-Bstatic'
16257      fi
16258      ;;
16259
16260    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16261      lt_prog_compiler_wl='-Wl,'
16262      lt_prog_compiler_pic='-KPIC'
16263      lt_prog_compiler_static='-Bstatic'
16264      ;;
16265
16266    unicos*)
16267      lt_prog_compiler_wl='-Wl,'
16268      lt_prog_compiler_can_build_shared=no
16269      ;;
16270
16271    uts4*)
16272      lt_prog_compiler_pic='-pic'
16273      lt_prog_compiler_static='-Bstatic'
16274      ;;
16275
16276    *)
16277      lt_prog_compiler_can_build_shared=no
16278      ;;
16279    esac
16280  fi
16281
16282case $host_os in
16283  # For platforms that do not support PIC, -DPIC is meaningless:
16284  *djgpp*)
16285    lt_prog_compiler_pic=
16286    ;;
16287  *)
16288    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16289    ;;
16290esac
16291
16292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16293printf %s "checking for $compiler option to produce PIC... " >&6; }
16294if test ${lt_cv_prog_compiler_pic+y}
16295then :
16296  printf %s "(cached) " >&6
16297else case e in #(
16298  e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
16299esac
16300fi
16301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
16302printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
16303lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
16304
16305#
16306# Check to make sure the PIC flag actually works.
16307#
16308if test -n "$lt_prog_compiler_pic"; then
16309  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16310printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
16311if test ${lt_cv_prog_compiler_pic_works+y}
16312then :
16313  printf %s "(cached) " >&6
16314else case e in #(
16315  e) lt_cv_prog_compiler_pic_works=no
16316   ac_outfile=conftest.$ac_objext
16317   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16318   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
16319   # Insert the option either (1) after the last *FLAGS variable, or
16320   # (2) before a word containing "conftest.", or (3) at the end.
16321   # Note that $ac_compile itself does not contain backslashes and begins
16322   # with a dollar sign (not a hyphen), so the echo should work correctly.
16323   # The option is referenced via a variable to avoid confusing sed.
16324   lt_compile=`echo "$ac_compile" | $SED \
16325   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16326   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16327   -e 's:$: $lt_compiler_flag:'`
16328   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16329   (eval "$lt_compile" 2>conftest.err)
16330   ac_status=$?
16331   cat conftest.err >&5
16332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333   if (exit $ac_status) && test -s "$ac_outfile"; then
16334     # The compiler can only warn and ignore the option if not recognized
16335     # So say no if there are warnings other than the usual output.
16336     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16337     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16338     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16339       lt_cv_prog_compiler_pic_works=yes
16340     fi
16341   fi
16342   $RM conftest*
16343 ;;
16344esac
16345fi
16346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16347printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
16348
16349if test yes = "$lt_cv_prog_compiler_pic_works"; then
16350    case $lt_prog_compiler_pic in
16351     "" | " "*) ;;
16352     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16353     esac
16354else
16355    lt_prog_compiler_pic=
16356     lt_prog_compiler_can_build_shared=no
16357fi
16358
16359fi
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371#
16372# Check to make sure the static flag actually works.
16373#
16374wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16376printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16377if test ${lt_cv_prog_compiler_static_works+y}
16378then :
16379  printf %s "(cached) " >&6
16380else case e in #(
16381  e) lt_cv_prog_compiler_static_works=no
16382   save_LDFLAGS=$LDFLAGS
16383   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16384   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16385   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16386     # The linker can only warn and ignore the option if not recognized
16387     # So say no if there are warnings
16388     if test -s conftest.err; then
16389       # Append any errors to the config.log.
16390       cat conftest.err 1>&5
16391       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16392       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16393       if diff conftest.exp conftest.er2 >/dev/null; then
16394         lt_cv_prog_compiler_static_works=yes
16395       fi
16396     else
16397       lt_cv_prog_compiler_static_works=yes
16398     fi
16399   fi
16400   $RM -r conftest*
16401   LDFLAGS=$save_LDFLAGS
16402 ;;
16403esac
16404fi
16405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16406printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
16407
16408if test yes = "$lt_cv_prog_compiler_static_works"; then
16409    :
16410else
16411    lt_prog_compiler_static=
16412fi
16413
16414
16415
16416
16417
16418
16419
16420  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16421printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16422if test ${lt_cv_prog_compiler_c_o+y}
16423then :
16424  printf %s "(cached) " >&6
16425else case e in #(
16426  e) lt_cv_prog_compiler_c_o=no
16427   $RM -r conftest 2>/dev/null
16428   mkdir conftest
16429   cd conftest
16430   mkdir out
16431   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16432
16433   lt_compiler_flag="-o out/conftest2.$ac_objext"
16434   # Insert the option either (1) after the last *FLAGS variable, or
16435   # (2) before a word containing "conftest.", or (3) at the end.
16436   # Note that $ac_compile itself does not contain backslashes and begins
16437   # with a dollar sign (not a hyphen), so the echo should work correctly.
16438   lt_compile=`echo "$ac_compile" | $SED \
16439   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16440   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16441   -e 's:$: $lt_compiler_flag:'`
16442   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16443   (eval "$lt_compile" 2>out/conftest.err)
16444   ac_status=$?
16445   cat out/conftest.err >&5
16446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16448   then
16449     # The compiler can only warn and ignore the option if not recognized
16450     # So say no if there are warnings
16451     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16452     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16453     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16454       lt_cv_prog_compiler_c_o=yes
16455     fi
16456   fi
16457   chmod u+w . 2>&5
16458   $RM conftest*
16459   # SGI C++ compiler will create directory out/ii_files/ for
16460   # template instantiation
16461   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16462   $RM out/* && rmdir out
16463   cd ..
16464   $RM -r conftest
16465   $RM conftest*
16466 ;;
16467esac
16468fi
16469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16470printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16471
16472
16473
16474
16475
16476
16477  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16478printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16479if test ${lt_cv_prog_compiler_c_o+y}
16480then :
16481  printf %s "(cached) " >&6
16482else case e in #(
16483  e) lt_cv_prog_compiler_c_o=no
16484   $RM -r conftest 2>/dev/null
16485   mkdir conftest
16486   cd conftest
16487   mkdir out
16488   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16489
16490   lt_compiler_flag="-o out/conftest2.$ac_objext"
16491   # Insert the option either (1) after the last *FLAGS variable, or
16492   # (2) before a word containing "conftest.", or (3) at the end.
16493   # Note that $ac_compile itself does not contain backslashes and begins
16494   # with a dollar sign (not a hyphen), so the echo should work correctly.
16495   lt_compile=`echo "$ac_compile" | $SED \
16496   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16497   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16498   -e 's:$: $lt_compiler_flag:'`
16499   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16500   (eval "$lt_compile" 2>out/conftest.err)
16501   ac_status=$?
16502   cat out/conftest.err >&5
16503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16505   then
16506     # The compiler can only warn and ignore the option if not recognized
16507     # So say no if there are warnings
16508     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16509     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16510     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16511       lt_cv_prog_compiler_c_o=yes
16512     fi
16513   fi
16514   chmod u+w . 2>&5
16515   $RM conftest*
16516   # SGI C++ compiler will create directory out/ii_files/ for
16517   # template instantiation
16518   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16519   $RM out/* && rmdir out
16520   cd ..
16521   $RM -r conftest
16522   $RM conftest*
16523 ;;
16524esac
16525fi
16526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16527printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16528
16529
16530
16531
16532hard_links=nottested
16533if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
16534  # do not overwrite the value of need_locks provided by the user
16535  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16536printf %s "checking if we can lock with hard links... " >&6; }
16537  hard_links=yes
16538  $RM conftest*
16539  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16540  touch conftest.a
16541  ln conftest.a conftest.b 2>&5 || hard_links=no
16542  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16543  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16544printf "%s\n" "$hard_links" >&6; }
16545  if test no = "$hard_links"; then
16546    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16547printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16548    need_locks=warn
16549  fi
16550else
16551  need_locks=no
16552fi
16553
16554
16555
16556
16557
16558
16559  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16560printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16561
16562  runpath_var=
16563  allow_undefined_flag=
16564  always_export_symbols=no
16565  archive_cmds=
16566  archive_expsym_cmds=
16567  compiler_needs_object=no
16568  enable_shared_with_static_runtimes=no
16569  export_dynamic_flag_spec=
16570  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16571  hardcode_automatic=no
16572  hardcode_direct=no
16573  hardcode_direct_absolute=no
16574  hardcode_libdir_flag_spec=
16575  hardcode_libdir_separator=
16576  hardcode_minus_L=no
16577  hardcode_shlibpath_var=unsupported
16578  inherit_rpath=no
16579  link_all_deplibs=unknown
16580  module_cmds=
16581  module_expsym_cmds=
16582  old_archive_from_new_cmds=
16583  old_archive_from_expsyms_cmds=
16584  thread_safe_flag_spec=
16585  whole_archive_flag_spec=
16586  # include_expsyms should be a list of space-separated symbols to be *always*
16587  # included in the symbol list
16588  include_expsyms=
16589  # exclude_expsyms can be an extended regexp of symbols to exclude
16590  # it will be wrapped by ' (' and ')$', so one must not match beginning or
16591  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
16592  # as well as any symbol that contains 'd'.
16593  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16594  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16595  # platforms (ab)use it in PIC code, but their linkers get confused if
16596  # the symbol is explicitly referenced.  Since portable code cannot
16597  # rely on this symbol name, it's probably fine to never include it in
16598  # preloaded symbol tables.
16599  # Exclude shared library initialization/finalization symbols.
16600  extract_expsyms_cmds=
16601
16602  case $host_os in
16603  cygwin* | mingw* | pw32* | cegcc*)
16604    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
16605    # When not using gcc, we currently assume that we are using
16606    # Microsoft Visual C++ or Intel C++ Compiler.
16607    if test yes != "$GCC"; then
16608      with_gnu_ld=no
16609    fi
16610    ;;
16611  interix*)
16612    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
16613    with_gnu_ld=yes
16614    ;;
16615  openbsd* | bitrig*)
16616    with_gnu_ld=no
16617    ;;
16618  esac
16619
16620  ld_shlibs=yes
16621
16622  # On some targets, GNU ld is compatible enough with the native linker
16623  # that we're better off using the native interface for both.
16624  lt_use_gnu_ld_interface=no
16625  if test yes = "$with_gnu_ld"; then
16626    case $host_os in
16627      aix*)
16628	# The AIX port of GNU ld has always aspired to compatibility
16629	# with the native linker.  However, as the warning in the GNU ld
16630	# block says, versions before 2.19.5* couldn't really create working
16631	# shared libraries, regardless of the interface used.
16632	case `$LD -v 2>&1` in
16633	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16634	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16635	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16636	  *)
16637	    lt_use_gnu_ld_interface=yes
16638	    ;;
16639	esac
16640	;;
16641      *)
16642	lt_use_gnu_ld_interface=yes
16643	;;
16644    esac
16645  fi
16646
16647  if test yes = "$lt_use_gnu_ld_interface"; then
16648    # If archive_cmds runs LD, not CC, wlarc should be empty
16649    wlarc='$wl'
16650
16651    # Set some defaults for GNU ld with shared library support. These
16652    # are reset later if shared libraries are not supported. Putting them
16653    # here allows them to be overridden if necessary.
16654    runpath_var=LD_RUN_PATH
16655    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16656    export_dynamic_flag_spec='$wl--export-dynamic'
16657    # ancient GNU ld didn't support --whole-archive et. al.
16658    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16659      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16660    else
16661      whole_archive_flag_spec=
16662    fi
16663    supports_anon_versioning=no
16664    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
16665      *GNU\ gold*) supports_anon_versioning=yes ;;
16666      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16667      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16668      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16669      *\ 2.11.*) ;; # other 2.11 versions
16670      *) supports_anon_versioning=yes ;;
16671    esac
16672
16673    # See if GNU ld supports shared libraries.
16674    case $host_os in
16675    aix[3-9]*)
16676      # On AIX/PPC, the GNU linker is very broken
16677      if test ia64 != "$host_cpu"; then
16678	ld_shlibs=no
16679	cat <<_LT_EOF 1>&2
16680
16681*** Warning: the GNU linker, at least up to release 2.19, is reported
16682*** to be unable to reliably create shared libraries on AIX.
16683*** Therefore, libtool is disabling shared libraries support.  If you
16684*** really care for shared libraries, you may want to install binutils
16685*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16686*** You will then need to restart the configuration process.
16687
16688_LT_EOF
16689      fi
16690      ;;
16691
16692    amigaos*)
16693      case $host_cpu in
16694      powerpc)
16695            # see comment about AmigaOS4 .so support
16696            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16697            archive_expsym_cmds=''
16698        ;;
16699      m68k)
16700            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)'
16701            hardcode_libdir_flag_spec='-L$libdir'
16702            hardcode_minus_L=yes
16703        ;;
16704      esac
16705      ;;
16706
16707    beos*)
16708      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16709	allow_undefined_flag=unsupported
16710	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16711	# support --undefined.  This deserves some investigation.  FIXME
16712	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16713      else
16714	ld_shlibs=no
16715      fi
16716      ;;
16717
16718    cygwin* | mingw* | pw32* | cegcc*)
16719      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16720      # as there is no search path for DLLs.
16721      hardcode_libdir_flag_spec='-L$libdir'
16722      export_dynamic_flag_spec='$wl--export-all-symbols'
16723      allow_undefined_flag=unsupported
16724      always_export_symbols=no
16725      enable_shared_with_static_runtimes=yes
16726      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'
16727      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16728
16729      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16730        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16731	# If the export-symbols file already is a .def file, use it as
16732	# is; otherwise, prepend EXPORTS...
16733	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16734          cp $export_symbols $output_objdir/$soname.def;
16735        else
16736          echo EXPORTS > $output_objdir/$soname.def;
16737          cat $export_symbols >> $output_objdir/$soname.def;
16738        fi~
16739        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16740      else
16741	ld_shlibs=no
16742      fi
16743      ;;
16744
16745    haiku*)
16746      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16747      link_all_deplibs=yes
16748      ;;
16749
16750    os2*)
16751      hardcode_libdir_flag_spec='-L$libdir'
16752      hardcode_minus_L=yes
16753      allow_undefined_flag=unsupported
16754      shrext_cmds=.dll
16755      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16756	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16757	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16758	$ECHO EXPORTS >> $output_objdir/$libname.def~
16759	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16760	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16761	emximp -o $lib $output_objdir/$libname.def'
16762      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16763	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16764	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16765	$ECHO EXPORTS >> $output_objdir/$libname.def~
16766	prefix_cmds="$SED"~
16767	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16768	  prefix_cmds="$prefix_cmds -e 1d";
16769	fi~
16770	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16771	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16772	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16773	emximp -o $lib $output_objdir/$libname.def'
16774      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16775      enable_shared_with_static_runtimes=yes
16776      file_list_spec='@'
16777      ;;
16778
16779    interix[3-9]*)
16780      hardcode_direct=no
16781      hardcode_shlibpath_var=no
16782      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16783      export_dynamic_flag_spec='$wl-E'
16784      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16785      # Instead, shared libraries are loaded at an image base (0x10000000 by
16786      # default) and relocated if they conflict, which is a slow very memory
16787      # consuming and fragmenting process.  To avoid this, we pick a random,
16788      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16789      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16790      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16791      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'
16792      ;;
16793
16794    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16795      tmp_diet=no
16796      if test linux-dietlibc = "$host_os"; then
16797	case $cc_basename in
16798	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
16799	esac
16800      fi
16801      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16802	 && test no = "$tmp_diet"
16803      then
16804	tmp_addflag=' $pic_flag'
16805	tmp_sharedflag='-shared'
16806	case $cc_basename,$host_cpu in
16807        pgcc*)				# Portland Group C compiler
16808	  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'
16809	  tmp_addflag=' $pic_flag'
16810	  ;;
16811	pgf77* | pgf90* | pgf95* | pgfortran*)
16812					# Portland Group f77 and f90 compilers
16813	  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'
16814	  tmp_addflag=' $pic_flag -Mnomain' ;;
16815	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
16816	  tmp_addflag=' -i_dynamic' ;;
16817	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16818	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16819	ifc* | ifort*)			# Intel Fortran compiler
16820	  tmp_addflag=' -nofor_main' ;;
16821	lf95*)				# Lahey Fortran 8.1
16822	  whole_archive_flag_spec=
16823	  tmp_sharedflag='--shared' ;;
16824        nagfor*)                        # NAGFOR 5.3
16825          tmp_sharedflag='-Wl,-shared' ;;
16826	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16827	  tmp_sharedflag='-qmkshrobj'
16828	  tmp_addflag= ;;
16829	nvcc*)	# Cuda Compiler Driver 2.2
16830	  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'
16831	  compiler_needs_object=yes
16832	  ;;
16833	esac
16834	case `$CC -V 2>&1 | $SED 5q` in
16835	*Sun\ C*)			# Sun C 5.9
16836	  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'
16837	  compiler_needs_object=yes
16838	  tmp_sharedflag='-G' ;;
16839	*Sun\ F*)			# Sun Fortran 8.3
16840	  tmp_sharedflag='-G' ;;
16841	esac
16842	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16843
16844        if test yes = "$supports_anon_versioning"; then
16845          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16846            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16847            echo "local: *; };" >> $output_objdir/$libname.ver~
16848            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16849        fi
16850
16851	case $cc_basename in
16852	tcc*)
16853	  export_dynamic_flag_spec='-rdynamic'
16854	  ;;
16855	xlf* | bgf* | bgxlf* | mpixlf*)
16856	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16857	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16858	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16859	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16860	  if test yes = "$supports_anon_versioning"; then
16861	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16862              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16863              echo "local: *; };" >> $output_objdir/$libname.ver~
16864              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16865	  fi
16866	  ;;
16867	esac
16868      else
16869        ld_shlibs=no
16870      fi
16871      ;;
16872
16873    netbsd*)
16874      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16875	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16876	wlarc=
16877      else
16878	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16879	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16880      fi
16881      ;;
16882
16883    solaris*)
16884      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16885	ld_shlibs=no
16886	cat <<_LT_EOF 1>&2
16887
16888*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16889*** create shared libraries on Solaris systems.  Therefore, libtool
16890*** is disabling shared libraries support.  We urge you to upgrade GNU
16891*** binutils to release 2.9.1 or newer.  Another option is to modify
16892*** your PATH or compiler configuration so that the native linker is
16893*** used, and then restart.
16894
16895_LT_EOF
16896      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16897	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16898	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16899      else
16900	ld_shlibs=no
16901      fi
16902      ;;
16903
16904    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16905      case `$LD -v 2>&1` in
16906        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16907	ld_shlibs=no
16908	cat <<_LT_EOF 1>&2
16909
16910*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
16911*** reliably create shared libraries on SCO systems.  Therefore, libtool
16912*** is disabling shared libraries support.  We urge you to upgrade GNU
16913*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16914*** your PATH or compiler configuration so that the native linker is
16915*** used, and then restart.
16916
16917_LT_EOF
16918	;;
16919	*)
16920	  # For security reasons, it is highly recommended that you always
16921	  # use absolute paths for naming shared libraries, and exclude the
16922	  # DT_RUNPATH tag from executables and libraries.  But doing so
16923	  # requires that you compile everything twice, which is a pain.
16924	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16925	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16926	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16927	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16928	  else
16929	    ld_shlibs=no
16930	  fi
16931	;;
16932      esac
16933      ;;
16934
16935    sunos4*)
16936      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16937      wlarc=
16938      hardcode_direct=yes
16939      hardcode_shlibpath_var=no
16940      ;;
16941
16942    *)
16943      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16944	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16945	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16946      else
16947	ld_shlibs=no
16948      fi
16949      ;;
16950    esac
16951
16952    if test no = "$ld_shlibs"; then
16953      runpath_var=
16954      hardcode_libdir_flag_spec=
16955      export_dynamic_flag_spec=
16956      whole_archive_flag_spec=
16957    fi
16958  else
16959    # PORTME fill in a description of your system's linker (not GNU ld)
16960    case $host_os in
16961    aix3*)
16962      allow_undefined_flag=unsupported
16963      always_export_symbols=yes
16964      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'
16965      # Note: this linker hardcodes the directories in LIBPATH if there
16966      # are no directories specified by -L.
16967      hardcode_minus_L=yes
16968      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
16969	# Neither direct hardcoding nor static linking is supported with a
16970	# broken collect2.
16971	hardcode_direct=unsupported
16972      fi
16973      ;;
16974
16975    aix[4-9]*)
16976      if test ia64 = "$host_cpu"; then
16977	# On IA64, the linker does run time linking by default, so we don't
16978	# have to do anything special.
16979	aix_use_runtimelinking=no
16980	exp_sym_flag='-Bexport'
16981	no_entry_flag=
16982      else
16983	# If we're using GNU nm, then we don't want the "-C" option.
16984	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
16985	# Without the "-l" option, or with the "-B" option, AIX nm treats
16986	# weak defined symbols like other global defined symbols, whereas
16987	# GNU nm marks them as "W".
16988	# While the 'weak' keyword is ignored in the Export File, we need
16989	# it in the Import File for the 'aix-soname' feature, so we have
16990	# to replace the "-B" option with "-P" for AIX nm.
16991	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16992	  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'
16993	else
16994	  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'
16995	fi
16996	aix_use_runtimelinking=no
16997
16998	# Test if we are trying to use run time linking or normal
16999	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17000	# have runtime linking enabled, and use it for executables.
17001	# For shared libraries, we enable/disable runtime linking
17002	# depending on the kind of the shared library created -
17003	# when "with_aix_soname,aix_use_runtimelinking" is:
17004	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
17005	# "aix,yes"  lib.so          shared, rtl:yes, for executables
17006	#            lib.a           static archive
17007	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
17008	#            lib.a(lib.so.V) shared, rtl:no,  for executables
17009	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
17010	#            lib.a(lib.so.V) shared, rtl:no
17011	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
17012	#            lib.a           static archive
17013	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17014	  for ld_flag in $LDFLAGS; do
17015	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
17016	    aix_use_runtimelinking=yes
17017	    break
17018	  fi
17019	  done
17020	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
17021	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
17022	    # so we don't have lib.a shared libs to link our executables.
17023	    # We have to force runtime linking in this case.
17024	    aix_use_runtimelinking=yes
17025	    LDFLAGS="$LDFLAGS -Wl,-brtl"
17026	  fi
17027	  ;;
17028	esac
17029
17030	exp_sym_flag='-bexport'
17031	no_entry_flag='-bnoentry'
17032      fi
17033
17034      # When large executables or shared objects are built, AIX ld can
17035      # have problems creating the table of contents.  If linking a library
17036      # or program results in "error TOC overflow" add -mminimal-toc to
17037      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17038      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17039
17040      archive_cmds=''
17041      hardcode_direct=yes
17042      hardcode_direct_absolute=yes
17043      hardcode_libdir_separator=':'
17044      link_all_deplibs=yes
17045      file_list_spec='$wl-f,'
17046      case $with_aix_soname,$aix_use_runtimelinking in
17047      aix,*) ;; # traditional, no import file
17048      svr4,* | *,yes) # use import file
17049	# The Import File defines what to hardcode.
17050	hardcode_direct=no
17051	hardcode_direct_absolute=no
17052	;;
17053      esac
17054
17055      if test yes = "$GCC"; then
17056	case $host_os in aix4.[012]|aix4.[012].*)
17057	# We only want to do this on AIX 4.2 and lower, the check
17058	# below for broken collect2 doesn't work under 4.3+
17059	  collect2name=`$CC -print-prog-name=collect2`
17060	  if test -f "$collect2name" &&
17061	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17062	  then
17063	  # We have reworked collect2
17064	  :
17065	  else
17066	  # We have old collect2
17067	  hardcode_direct=unsupported
17068	  # It fails to find uninstalled libraries when the uninstalled
17069	  # path is not listed in the libpath.  Setting hardcode_minus_L
17070	  # to unsupported forces relinking
17071	  hardcode_minus_L=yes
17072	  hardcode_libdir_flag_spec='-L$libdir'
17073	  hardcode_libdir_separator=
17074	  fi
17075	  ;;
17076	esac
17077	shared_flag='-shared'
17078	if test yes = "$aix_use_runtimelinking"; then
17079	  shared_flag="$shared_flag "'$wl-G'
17080	fi
17081	# Need to ensure runtime linking is disabled for the traditional
17082	# shared library, or the linker may eventually find shared libraries
17083	# /with/ Import File - we do not want to mix them.
17084	shared_flag_aix='-shared'
17085	shared_flag_svr4='-shared $wl-G'
17086      else
17087	# not using gcc
17088	if test ia64 = "$host_cpu"; then
17089	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17090	# chokes on -Wl,-G. The following line is correct:
17091	  shared_flag='-G'
17092	else
17093	  if test yes = "$aix_use_runtimelinking"; then
17094	    shared_flag='$wl-G'
17095	  else
17096	    shared_flag='$wl-bM:SRE'
17097	  fi
17098	  shared_flag_aix='$wl-bM:SRE'
17099	  shared_flag_svr4='$wl-G'
17100	fi
17101      fi
17102
17103      export_dynamic_flag_spec='$wl-bexpall'
17104      # It seems that -bexpall does not export symbols beginning with
17105      # underscore (_), so it is better to generate a list of symbols to export.
17106      always_export_symbols=yes
17107      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
17108	# Warning - without using the other runtime loading flags (-brtl),
17109	# -berok will link without error, but may produce a broken library.
17110	allow_undefined_flag='-berok'
17111        # Determine the default libpath from the value encoded in an
17112        # empty executable.
17113        if test set = "${lt_cv_aix_libpath+set}"; then
17114  aix_libpath=$lt_cv_aix_libpath
17115else
17116  if test ${lt_cv_aix_libpath_+y}
17117then :
17118  printf %s "(cached) " >&6
17119else case e in #(
17120  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17121/* end confdefs.h.  */
17122
17123int
17124main (void)
17125{
17126
17127  ;
17128  return 0;
17129}
17130_ACEOF
17131if ac_fn_c_try_link "$LINENO"
17132then :
17133
17134  lt_aix_libpath_sed='
17135      /Import File Strings/,/^$/ {
17136	  /^0/ {
17137	      s/^0  *\([^ ]*\) *$/\1/
17138	      p
17139	  }
17140      }'
17141  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17142  # Check for a 64-bit object if we didn't find anything.
17143  if test -z "$lt_cv_aix_libpath_"; then
17144    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17145  fi
17146fi
17147rm -f core conftest.err conftest.$ac_objext conftest.beam \
17148    conftest$ac_exeext conftest.$ac_ext
17149  if test -z "$lt_cv_aix_libpath_"; then
17150    lt_cv_aix_libpath_=/usr/lib:/lib
17151  fi
17152   ;;
17153esac
17154fi
17155
17156  aix_libpath=$lt_cv_aix_libpath_
17157fi
17158
17159        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
17160        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
17161      else
17162	if test ia64 = "$host_cpu"; then
17163	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
17164	  allow_undefined_flag="-z nodefs"
17165	  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"
17166	else
17167	 # Determine the default libpath from the value encoded in an
17168	 # empty executable.
17169	 if test set = "${lt_cv_aix_libpath+set}"; then
17170  aix_libpath=$lt_cv_aix_libpath
17171else
17172  if test ${lt_cv_aix_libpath_+y}
17173then :
17174  printf %s "(cached) " >&6
17175else case e in #(
17176  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17177/* end confdefs.h.  */
17178
17179int
17180main (void)
17181{
17182
17183  ;
17184  return 0;
17185}
17186_ACEOF
17187if ac_fn_c_try_link "$LINENO"
17188then :
17189
17190  lt_aix_libpath_sed='
17191      /Import File Strings/,/^$/ {
17192	  /^0/ {
17193	      s/^0  *\([^ ]*\) *$/\1/
17194	      p
17195	  }
17196      }'
17197  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17198  # Check for a 64-bit object if we didn't find anything.
17199  if test -z "$lt_cv_aix_libpath_"; then
17200    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17201  fi
17202fi
17203rm -f core conftest.err conftest.$ac_objext conftest.beam \
17204    conftest$ac_exeext conftest.$ac_ext
17205  if test -z "$lt_cv_aix_libpath_"; then
17206    lt_cv_aix_libpath_=/usr/lib:/lib
17207  fi
17208   ;;
17209esac
17210fi
17211
17212  aix_libpath=$lt_cv_aix_libpath_
17213fi
17214
17215	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
17216	  # Warning - without using the other run time loading flags,
17217	  # -berok will link without error, but may produce a broken library.
17218	  no_undefined_flag=' $wl-bernotok'
17219	  allow_undefined_flag=' $wl-berok'
17220	  if test yes = "$with_gnu_ld"; then
17221	    # We only use this code for GNU lds that support --whole-archive.
17222	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
17223	  else
17224	    # Exported symbols can be pulled into shared objects from archives
17225	    whole_archive_flag_spec='$convenience'
17226	  fi
17227	  archive_cmds_need_lc=yes
17228	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
17229	  # -brtl affects multiple linker settings, -berok does not and is overridden later
17230	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
17231	  if test svr4 != "$with_aix_soname"; then
17232	    # This is similar to how AIX traditionally builds its shared libraries.
17233	    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'
17234	  fi
17235	  if test aix != "$with_aix_soname"; then
17236	    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'
17237	  else
17238	    # used by -dlpreopen to get the symbols
17239	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
17240	  fi
17241	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
17242	fi
17243      fi
17244      ;;
17245
17246    amigaos*)
17247      case $host_cpu in
17248      powerpc)
17249            # see comment about AmigaOS4 .so support
17250            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17251            archive_expsym_cmds=''
17252        ;;
17253      m68k)
17254            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)'
17255            hardcode_libdir_flag_spec='-L$libdir'
17256            hardcode_minus_L=yes
17257        ;;
17258      esac
17259      ;;
17260
17261    bsdi[45]*)
17262      export_dynamic_flag_spec=-rdynamic
17263      ;;
17264
17265    cygwin* | mingw* | pw32* | cegcc*)
17266      # When not using gcc, we currently assume that we are using
17267      # Microsoft Visual C++ or Intel C++ Compiler.
17268      # hardcode_libdir_flag_spec is actually meaningless, as there is
17269      # no search path for DLLs.
17270      case $cc_basename in
17271      cl* | icl*)
17272	# Native MSVC or ICC
17273	hardcode_libdir_flag_spec=' '
17274	allow_undefined_flag=unsupported
17275	always_export_symbols=yes
17276	file_list_spec='@'
17277	# Tell ltmain to make .lib files, not .a files.
17278	libext=lib
17279	# Tell ltmain to make .dll files, not .so files.
17280	shrext_cmds=.dll
17281	# FIXME: Setting linknames here is a bad hack.
17282	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
17283	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
17284            cp "$export_symbols" "$output_objdir/$soname.def";
17285            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
17286          else
17287            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
17288          fi~
17289          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17290          linknames='
17291	# The linker will not automatically build a static lib if we build a DLL.
17292	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
17293	enable_shared_with_static_runtimes=yes
17294	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17295	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17296	# Don't use ranlib
17297	old_postinstall_cmds='chmod 644 $oldlib'
17298	postlink_cmds='lt_outputfile="@OUTPUT@"~
17299          lt_tool_outputfile="@TOOL_OUTPUT@"~
17300          case $lt_outputfile in
17301            *.exe|*.EXE) ;;
17302            *)
17303              lt_outputfile=$lt_outputfile.exe
17304              lt_tool_outputfile=$lt_tool_outputfile.exe
17305              ;;
17306          esac~
17307          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
17308            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17309            $RM "$lt_outputfile.manifest";
17310          fi'
17311	;;
17312      *)
17313	# Assume MSVC and ICC wrapper
17314	hardcode_libdir_flag_spec=' '
17315	allow_undefined_flag=unsupported
17316	# Tell ltmain to make .lib files, not .a files.
17317	libext=lib
17318	# Tell ltmain to make .dll files, not .so files.
17319	shrext_cmds=.dll
17320	# FIXME: Setting linknames here is a bad hack.
17321	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17322	# The linker will automatically build a .lib file if we build a DLL.
17323	old_archive_from_new_cmds='true'
17324	# FIXME: Should let the user specify the lib program.
17325	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17326	enable_shared_with_static_runtimes=yes
17327	;;
17328      esac
17329      ;;
17330
17331    darwin* | rhapsody*)
17332
17333
17334  archive_cmds_need_lc=no
17335  hardcode_direct=no
17336  hardcode_automatic=yes
17337  hardcode_shlibpath_var=unsupported
17338  if test yes = "$lt_cv_ld_force_load"; then
17339    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\"`'
17340
17341  else
17342    whole_archive_flag_spec=''
17343  fi
17344  link_all_deplibs=yes
17345  allow_undefined_flag=$_lt_dar_allow_undefined
17346  case $cc_basename in
17347     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
17348     *) _lt_dar_can_shared=$GCC ;;
17349  esac
17350  if test yes = "$_lt_dar_can_shared"; then
17351    output_verbose_link_cmd=func_echo_all
17352    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
17353    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
17354    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"
17355    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"
17356
17357  else
17358  ld_shlibs=no
17359  fi
17360
17361      ;;
17362
17363    dgux*)
17364      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17365      hardcode_libdir_flag_spec='-L$libdir'
17366      hardcode_shlibpath_var=no
17367      ;;
17368
17369    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17370    # support.  Future versions do this automatically, but an explicit c++rt0.o
17371    # does not break anything, and helps significantly (at the cost of a little
17372    # extra space).
17373    freebsd2.2*)
17374      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17375      hardcode_libdir_flag_spec='-R$libdir'
17376      hardcode_direct=yes
17377      hardcode_shlibpath_var=no
17378      ;;
17379
17380    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17381    freebsd2.*)
17382      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17383      hardcode_direct=yes
17384      hardcode_minus_L=yes
17385      hardcode_shlibpath_var=no
17386      ;;
17387
17388    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17389    freebsd* | dragonfly* | midnightbsd*)
17390      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17391      hardcode_libdir_flag_spec='-R$libdir'
17392      hardcode_direct=yes
17393      hardcode_shlibpath_var=no
17394      ;;
17395
17396    hpux9*)
17397      if test yes = "$GCC"; then
17398	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'
17399      else
17400	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'
17401      fi
17402      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17403      hardcode_libdir_separator=:
17404      hardcode_direct=yes
17405
17406      # hardcode_minus_L: Not really in the search PATH,
17407      # but as the default location of the library.
17408      hardcode_minus_L=yes
17409      export_dynamic_flag_spec='$wl-E'
17410      ;;
17411
17412    hpux10*)
17413      if test yes,no = "$GCC,$with_gnu_ld"; then
17414	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17415      else
17416	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17417      fi
17418      if test no = "$with_gnu_ld"; then
17419	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17420	hardcode_libdir_separator=:
17421	hardcode_direct=yes
17422	hardcode_direct_absolute=yes
17423	export_dynamic_flag_spec='$wl-E'
17424	# hardcode_minus_L: Not really in the search PATH,
17425	# but as the default location of the library.
17426	hardcode_minus_L=yes
17427      fi
17428      ;;
17429
17430    hpux11*)
17431      if test yes,no = "$GCC,$with_gnu_ld"; then
17432	case $host_cpu in
17433	hppa*64*)
17434	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17435	  ;;
17436	ia64*)
17437	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17438	  ;;
17439	*)
17440	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17441	  ;;
17442	esac
17443      else
17444	case $host_cpu in
17445	hppa*64*)
17446	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17447	  ;;
17448	ia64*)
17449	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17450	  ;;
17451	*)
17452
17453	  # Older versions of the 11.00 compiler do not understand -b yet
17454	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17455	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17456printf %s "checking if $CC understands -b... " >&6; }
17457if test ${lt_cv_prog_compiler__b+y}
17458then :
17459  printf %s "(cached) " >&6
17460else case e in #(
17461  e) lt_cv_prog_compiler__b=no
17462   save_LDFLAGS=$LDFLAGS
17463   LDFLAGS="$LDFLAGS -b"
17464   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17465   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17466     # The linker can only warn and ignore the option if not recognized
17467     # So say no if there are warnings
17468     if test -s conftest.err; then
17469       # Append any errors to the config.log.
17470       cat conftest.err 1>&5
17471       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17472       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17473       if diff conftest.exp conftest.er2 >/dev/null; then
17474         lt_cv_prog_compiler__b=yes
17475       fi
17476     else
17477       lt_cv_prog_compiler__b=yes
17478     fi
17479   fi
17480   $RM -r conftest*
17481   LDFLAGS=$save_LDFLAGS
17482 ;;
17483esac
17484fi
17485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17486printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
17487
17488if test yes = "$lt_cv_prog_compiler__b"; then
17489    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17490else
17491    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17492fi
17493
17494	  ;;
17495	esac
17496      fi
17497      if test no = "$with_gnu_ld"; then
17498	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17499	hardcode_libdir_separator=:
17500
17501	case $host_cpu in
17502	hppa*64*|ia64*)
17503	  hardcode_direct=no
17504	  hardcode_shlibpath_var=no
17505	  ;;
17506	*)
17507	  hardcode_direct=yes
17508	  hardcode_direct_absolute=yes
17509	  export_dynamic_flag_spec='$wl-E'
17510
17511	  # hardcode_minus_L: Not really in the search PATH,
17512	  # but as the default location of the library.
17513	  hardcode_minus_L=yes
17514	  ;;
17515	esac
17516      fi
17517      ;;
17518
17519    irix5* | irix6* | nonstopux*)
17520      if test yes = "$GCC"; then
17521	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'
17522	# Try to use the -exported_symbol ld option, if it does not
17523	# work, assume that -exports_file does not work either and
17524	# implicitly export all symbols.
17525	# This should be the same for all languages, so no per-tag cache variable.
17526	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17527printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17528if test ${lt_cv_irix_exported_symbol+y}
17529then :
17530  printf %s "(cached) " >&6
17531else case e in #(
17532  e) save_LDFLAGS=$LDFLAGS
17533	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
17534	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17535/* end confdefs.h.  */
17536int foo (void) { return 0; }
17537_ACEOF
17538if ac_fn_c_try_link "$LINENO"
17539then :
17540  lt_cv_irix_exported_symbol=yes
17541else case e in #(
17542  e) lt_cv_irix_exported_symbol=no ;;
17543esac
17544fi
17545rm -f core conftest.err conftest.$ac_objext conftest.beam \
17546    conftest$ac_exeext conftest.$ac_ext
17547           LDFLAGS=$save_LDFLAGS ;;
17548esac
17549fi
17550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17551printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
17552	if test yes = "$lt_cv_irix_exported_symbol"; then
17553          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'
17554	fi
17555      else
17556	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'
17557	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'
17558      fi
17559      archive_cmds_need_lc='no'
17560      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17561      hardcode_libdir_separator=:
17562      inherit_rpath=yes
17563      link_all_deplibs=yes
17564      ;;
17565
17566    linux*)
17567      case $cc_basename in
17568      tcc*)
17569	# Fabrice Bellard et al's Tiny C Compiler
17570	ld_shlibs=yes
17571	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17572	;;
17573      esac
17574      ;;
17575
17576    netbsd*)
17577      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17578	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17579      else
17580	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17581      fi
17582      hardcode_libdir_flag_spec='-R$libdir'
17583      hardcode_direct=yes
17584      hardcode_shlibpath_var=no
17585      ;;
17586
17587    newsos6)
17588      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17589      hardcode_direct=yes
17590      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17591      hardcode_libdir_separator=:
17592      hardcode_shlibpath_var=no
17593      ;;
17594
17595    *nto* | *qnx*)
17596      ;;
17597
17598    openbsd* | bitrig*)
17599      if test -f /usr/libexec/ld.so; then
17600	hardcode_direct=yes
17601	hardcode_shlibpath_var=no
17602	hardcode_direct_absolute=yes
17603	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17604	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17605	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
17606	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17607	  export_dynamic_flag_spec='$wl-E'
17608	else
17609	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17610	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17611	fi
17612      else
17613	ld_shlibs=no
17614      fi
17615      ;;
17616
17617    os2*)
17618      hardcode_libdir_flag_spec='-L$libdir'
17619      hardcode_minus_L=yes
17620      allow_undefined_flag=unsupported
17621      shrext_cmds=.dll
17622      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17623	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17624	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17625	$ECHO EXPORTS >> $output_objdir/$libname.def~
17626	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17627	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17628	emximp -o $lib $output_objdir/$libname.def'
17629      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17630	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17631	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17632	$ECHO EXPORTS >> $output_objdir/$libname.def~
17633	prefix_cmds="$SED"~
17634	if test EXPORTS = "`$SED 1q $export_symbols`"; then
17635	  prefix_cmds="$prefix_cmds -e 1d";
17636	fi~
17637	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17638	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17639	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17640	emximp -o $lib $output_objdir/$libname.def'
17641      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17642      enable_shared_with_static_runtimes=yes
17643      file_list_spec='@'
17644      ;;
17645
17646    osf3*)
17647      if test yes = "$GCC"; then
17648	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17649	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'
17650      else
17651	allow_undefined_flag=' -expect_unresolved \*'
17652	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'
17653      fi
17654      archive_cmds_need_lc='no'
17655      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17656      hardcode_libdir_separator=:
17657      ;;
17658
17659    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17660      if test yes = "$GCC"; then
17661	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17662	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'
17663	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17664      else
17665	allow_undefined_flag=' -expect_unresolved \*'
17666	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'
17667	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~
17668          $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'
17669
17670	# Both c and cxx compiler support -rpath directly
17671	hardcode_libdir_flag_spec='-rpath $libdir'
17672      fi
17673      archive_cmds_need_lc='no'
17674      hardcode_libdir_separator=:
17675      ;;
17676
17677    solaris*)
17678      no_undefined_flag=' -z defs'
17679      if test yes = "$GCC"; then
17680	wlarc='$wl'
17681	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17682	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17683          $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'
17684      else
17685	case `$CC -V 2>&1` in
17686	*"Compilers 5.0"*)
17687	  wlarc=''
17688	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
17689	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17690            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17691	  ;;
17692	*)
17693	  wlarc='$wl'
17694	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17695	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17696            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17697	  ;;
17698	esac
17699      fi
17700      hardcode_libdir_flag_spec='-R$libdir'
17701      hardcode_shlibpath_var=no
17702      case $host_os in
17703      solaris2.[0-5] | solaris2.[0-5].*) ;;
17704      *)
17705	# The compiler driver will combine and reorder linker options,
17706	# but understands '-z linker_flag'.  GCC discards it without '$wl',
17707	# but is careful enough not to reorder.
17708	# Supported since Solaris 2.6 (maybe 2.5.1?)
17709	if test yes = "$GCC"; then
17710	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17711	else
17712	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17713	fi
17714	;;
17715      esac
17716      link_all_deplibs=yes
17717      ;;
17718
17719    sunos4*)
17720      if test sequent = "$host_vendor"; then
17721	# Use $CC to link under sequent, because it throws in some extra .o
17722	# files that make .init and .fini sections work.
17723	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17724      else
17725	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17726      fi
17727      hardcode_libdir_flag_spec='-L$libdir'
17728      hardcode_direct=yes
17729      hardcode_minus_L=yes
17730      hardcode_shlibpath_var=no
17731      ;;
17732
17733    sysv4)
17734      case $host_vendor in
17735	sni)
17736	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17737	  hardcode_direct=yes # is this really true???
17738	;;
17739	siemens)
17740	  ## LD is ld it makes a PLAMLIB
17741	  ## CC just makes a GrossModule.
17742	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17743	  reload_cmds='$CC -r -o $output$reload_objs'
17744	  hardcode_direct=no
17745        ;;
17746	motorola)
17747	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17748	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17749	;;
17750      esac
17751      runpath_var='LD_RUN_PATH'
17752      hardcode_shlibpath_var=no
17753      ;;
17754
17755    sysv4.3*)
17756      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17757      hardcode_shlibpath_var=no
17758      export_dynamic_flag_spec='-Bexport'
17759      ;;
17760
17761    sysv4*MP*)
17762      if test -d /usr/nec; then
17763	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17764	hardcode_shlibpath_var=no
17765	runpath_var=LD_RUN_PATH
17766	hardcode_runpath_var=yes
17767	ld_shlibs=yes
17768      fi
17769      ;;
17770
17771    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17772      no_undefined_flag='$wl-z,text'
17773      archive_cmds_need_lc=no
17774      hardcode_shlibpath_var=no
17775      runpath_var='LD_RUN_PATH'
17776
17777      if test yes = "$GCC"; then
17778	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17779	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17780      else
17781	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17782	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17783      fi
17784      ;;
17785
17786    sysv5* | sco3.2v5* | sco5v6*)
17787      # Note: We CANNOT use -z defs as we might desire, because we do not
17788      # link with -lc, and that would cause any symbols used from libc to
17789      # always be unresolved, which means just about no library would
17790      # ever link correctly.  If we're not using GNU ld we use -z text
17791      # though, which does catch some bad symbols but isn't as heavy-handed
17792      # as -z defs.
17793      no_undefined_flag='$wl-z,text'
17794      allow_undefined_flag='$wl-z,nodefs'
17795      archive_cmds_need_lc=no
17796      hardcode_shlibpath_var=no
17797      hardcode_libdir_flag_spec='$wl-R,$libdir'
17798      hardcode_libdir_separator=':'
17799      link_all_deplibs=yes
17800      export_dynamic_flag_spec='$wl-Bexport'
17801      runpath_var='LD_RUN_PATH'
17802
17803      if test yes = "$GCC"; then
17804	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17805	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17806      else
17807	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17808	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17809      fi
17810      ;;
17811
17812    uts4*)
17813      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17814      hardcode_libdir_flag_spec='-L$libdir'
17815      hardcode_shlibpath_var=no
17816      ;;
17817
17818    *)
17819      ld_shlibs=no
17820      ;;
17821    esac
17822
17823    if test sni = "$host_vendor"; then
17824      case $host in
17825      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17826	export_dynamic_flag_spec='$wl-Blargedynsym'
17827	;;
17828      esac
17829    fi
17830  fi
17831
17832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17833printf "%s\n" "$ld_shlibs" >&6; }
17834test no = "$ld_shlibs" && can_build_shared=no
17835
17836with_gnu_ld=$with_gnu_ld
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852#
17853# Do we need to explicitly link libc?
17854#
17855case "x$archive_cmds_need_lc" in
17856x|xyes)
17857  # Assume -lc should be added
17858  archive_cmds_need_lc=yes
17859
17860  if test yes,yes = "$GCC,$enable_shared"; then
17861    case $archive_cmds in
17862    *'~'*)
17863      # FIXME: we may have to deal with multi-command sequences.
17864      ;;
17865    '$CC '*)
17866      # Test whether the compiler implicitly links with -lc since on some
17867      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17868      # to ld, don't add -lc before -lgcc.
17869      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17870printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17871if test ${lt_cv_archive_cmds_need_lc+y}
17872then :
17873  printf %s "(cached) " >&6
17874else case e in #(
17875  e) $RM conftest*
17876	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17877
17878	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17879  (eval $ac_compile) 2>&5
17880  ac_status=$?
17881  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17882  test $ac_status = 0; } 2>conftest.err; then
17883	  soname=conftest
17884	  lib=conftest
17885	  libobjs=conftest.$ac_objext
17886	  deplibs=
17887	  wl=$lt_prog_compiler_wl
17888	  pic_flag=$lt_prog_compiler_pic
17889	  compiler_flags=-v
17890	  linker_flags=-v
17891	  verstring=
17892	  output_objdir=.
17893	  libname=conftest
17894	  lt_save_allow_undefined_flag=$allow_undefined_flag
17895	  allow_undefined_flag=
17896	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17897  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17898  ac_status=$?
17899  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17900  test $ac_status = 0; }
17901	  then
17902	    lt_cv_archive_cmds_need_lc=no
17903	  else
17904	    lt_cv_archive_cmds_need_lc=yes
17905	  fi
17906	  allow_undefined_flag=$lt_save_allow_undefined_flag
17907	else
17908	  cat conftest.err 1>&5
17909	fi
17910	$RM conftest*
17911	 ;;
17912esac
17913fi
17914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17915printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
17916      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17917      ;;
17918    esac
17919  fi
17920  ;;
17921esac
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18075printf %s "checking dynamic linker characteristics... " >&6; }
18076
18077if test yes = "$GCC"; then
18078  case $host_os in
18079    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
18080    *) lt_awk_arg='/^libraries:/' ;;
18081  esac
18082  case $host_os in
18083    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
18084    *) lt_sed_strip_eq='s|=/|/|g' ;;
18085  esac
18086  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18087  case $lt_search_path_spec in
18088  *\;*)
18089    # if the path contains ";" then we assume it to be the separator
18090    # otherwise default to the standard path separator (i.e. ":") - it is
18091    # assumed that no part of a normal pathname contains ";" but that should
18092    # okay in the real world where ";" in dirpaths is itself problematic.
18093    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18094    ;;
18095  *)
18096    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18097    ;;
18098  esac
18099  # Ok, now we have the path, separated by spaces, we can step through it
18100  # and add multilib dir if necessary...
18101  lt_tmp_lt_search_path_spec=
18102  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18103  # ...but if some path component already ends with the multilib dir we assume
18104  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
18105  case "$lt_multi_os_dir; $lt_search_path_spec " in
18106  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
18107    lt_multi_os_dir=
18108    ;;
18109  esac
18110  for lt_sys_path in $lt_search_path_spec; do
18111    if test -d "$lt_sys_path$lt_multi_os_dir"; then
18112      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
18113    elif test -n "$lt_multi_os_dir"; then
18114      test -d "$lt_sys_path" && \
18115	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18116    fi
18117  done
18118  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18119BEGIN {RS = " "; FS = "/|\n";} {
18120  lt_foo = "";
18121  lt_count = 0;
18122  for (lt_i = NF; lt_i > 0; lt_i--) {
18123    if ($lt_i != "" && $lt_i != ".") {
18124      if ($lt_i == "..") {
18125        lt_count++;
18126      } else {
18127        if (lt_count == 0) {
18128          lt_foo = "/" $lt_i lt_foo;
18129        } else {
18130          lt_count--;
18131        }
18132      }
18133    }
18134  }
18135  if (lt_foo != "") { lt_freq[lt_foo]++; }
18136  if (lt_freq[lt_foo] == 1) { print lt_foo; }
18137}'`
18138  # AWK program above erroneously prepends '/' to C:/dos/paths
18139  # for these hosts.
18140  case $host_os in
18141    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18142      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
18143  esac
18144  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18145else
18146  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18147fi
18148library_names_spec=
18149libname_spec='lib$name'
18150soname_spec=
18151shrext_cmds=.so
18152postinstall_cmds=
18153postuninstall_cmds=
18154finish_cmds=
18155finish_eval=
18156shlibpath_var=
18157shlibpath_overrides_runpath=unknown
18158version_type=none
18159dynamic_linker="$host_os ld.so"
18160sys_lib_dlsearch_path_spec="/lib /usr/lib"
18161need_lib_prefix=unknown
18162hardcode_into_libs=no
18163
18164# when you set need_version to no, make sure it does not cause -set_version
18165# flags to be left without arguments
18166need_version=unknown
18167
18168
18169
18170case $host_os in
18171aix3*)
18172  version_type=linux # correct to gnu/linux during the next big refactor
18173  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18174  shlibpath_var=LIBPATH
18175
18176  # AIX 3 has no versioning support, so we append a major version to the name.
18177  soname_spec='$libname$release$shared_ext$major'
18178  ;;
18179
18180aix[4-9]*)
18181  version_type=linux # correct to gnu/linux during the next big refactor
18182  need_lib_prefix=no
18183  need_version=no
18184  hardcode_into_libs=yes
18185  if test ia64 = "$host_cpu"; then
18186    # AIX 5 supports IA64
18187    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18188    shlibpath_var=LD_LIBRARY_PATH
18189  else
18190    # With GCC up to 2.95.x, collect2 would create an import file
18191    # for dependence libraries.  The import file would start with
18192    # the line '#! .'.  This would cause the generated library to
18193    # depend on '.', always an invalid library.  This was fixed in
18194    # development snapshots of GCC prior to 3.0.
18195    case $host_os in
18196      aix4 | aix4.[01] | aix4.[01].*)
18197      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18198	   echo ' yes '
18199	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18200	:
18201      else
18202	can_build_shared=no
18203      fi
18204      ;;
18205    esac
18206    # Using Import Files as archive members, it is possible to support
18207    # filename-based versioning of shared library archives on AIX. While
18208    # this would work for both with and without runtime linking, it will
18209    # prevent static linking of such archives. So we do filename-based
18210    # shared library versioning with .so extension only, which is used
18211    # when both runtime linking and shared linking is enabled.
18212    # Unfortunately, runtime linking may impact performance, so we do
18213    # not want this to be the default eventually. Also, we use the
18214    # versioned .so libs for executables only if there is the -brtl
18215    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
18216    # To allow for filename-based versioning support, we need to create
18217    # libNAME.so.V as an archive file, containing:
18218    # *) an Import File, referring to the versioned filename of the
18219    #    archive as well as the shared archive member, telling the
18220    #    bitwidth (32 or 64) of that shared object, and providing the
18221    #    list of exported symbols of that shared object, eventually
18222    #    decorated with the 'weak' keyword
18223    # *) the shared object with the F_LOADONLY flag set, to really avoid
18224    #    it being seen by the linker.
18225    # At run time we better use the real file rather than another symlink,
18226    # but for link time we create the symlink libNAME.so -> libNAME.so.V
18227
18228    case $with_aix_soname,$aix_use_runtimelinking in
18229    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18230    # soname into executable. Probably we can add versioning support to
18231    # collect2, so additional links can be useful in future.
18232    aix,yes) # traditional libtool
18233      dynamic_linker='AIX unversionable lib.so'
18234      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18235      # instead of lib<name>.a to let people know that these are not
18236      # typical AIX shared libraries.
18237      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18238      ;;
18239    aix,no) # traditional AIX only
18240      dynamic_linker='AIX lib.a(lib.so.V)'
18241      # We preserve .a as extension for shared libraries through AIX4.2
18242      # and later when we are not doing run time linking.
18243      library_names_spec='$libname$release.a $libname.a'
18244      soname_spec='$libname$release$shared_ext$major'
18245      ;;
18246    svr4,*) # full svr4 only
18247      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18248      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18249      # We do not specify a path in Import Files, so LIBPATH fires.
18250      shlibpath_overrides_runpath=yes
18251      ;;
18252    *,yes) # both, prefer svr4
18253      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18254      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18255      # unpreferred sharedlib libNAME.a needs extra handling
18256      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"'
18257      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"'
18258      # We do not specify a path in Import Files, so LIBPATH fires.
18259      shlibpath_overrides_runpath=yes
18260      ;;
18261    *,no) # both, prefer aix
18262      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18263      library_names_spec='$libname$release.a $libname.a'
18264      soname_spec='$libname$release$shared_ext$major'
18265      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18266      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)'
18267      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"'
18268      ;;
18269    esac
18270    shlibpath_var=LIBPATH
18271  fi
18272  ;;
18273
18274amigaos*)
18275  case $host_cpu in
18276  powerpc)
18277    # Since July 2007 AmigaOS4 officially supports .so libraries.
18278    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18279    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18280    ;;
18281  m68k)
18282    library_names_spec='$libname.ixlibrary $libname.a'
18283    # Create ${libname}_ixlibrary.a entries in /sys/libs.
18284    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'
18285    ;;
18286  esac
18287  ;;
18288
18289beos*)
18290  library_names_spec='$libname$shared_ext'
18291  dynamic_linker="$host_os ld.so"
18292  shlibpath_var=LIBRARY_PATH
18293  ;;
18294
18295bsdi[45]*)
18296  version_type=linux # correct to gnu/linux during the next big refactor
18297  need_version=no
18298  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18299  soname_spec='$libname$release$shared_ext$major'
18300  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18301  shlibpath_var=LD_LIBRARY_PATH
18302  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18303  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18304  # the default ld.so.conf also contains /usr/contrib/lib and
18305  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18306  # libtool to hard-code these into programs
18307  ;;
18308
18309cygwin* | mingw* | pw32* | cegcc*)
18310  version_type=windows
18311  shrext_cmds=.dll
18312  need_version=no
18313  need_lib_prefix=no
18314
18315  case $GCC,$cc_basename in
18316  yes,*)
18317    # gcc
18318    library_names_spec='$libname.dll.a'
18319    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18320    postinstall_cmds='base_file=`basename \$file`~
18321      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18322      dldir=$destdir/`dirname \$dlpath`~
18323      test -d \$dldir || mkdir -p \$dldir~
18324      $install_prog $dir/$dlname \$dldir/$dlname~
18325      chmod a+x \$dldir/$dlname~
18326      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18327        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18328      fi'
18329    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18330      dlpath=$dir/\$dldll~
18331       $RM \$dlpath'
18332    shlibpath_overrides_runpath=yes
18333
18334    case $host_os in
18335    cygwin*)
18336      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18337      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18338
18339      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18340      ;;
18341    mingw* | cegcc*)
18342      # MinGW DLLs use traditional 'lib' prefix
18343      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18344      ;;
18345    pw32*)
18346      # pw32 DLLs use 'pw' prefix rather than 'lib'
18347      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18348      ;;
18349    esac
18350    dynamic_linker='Win32 ld.exe'
18351    ;;
18352
18353  *,cl* | *,icl*)
18354    # Native MSVC or ICC
18355    libname_spec='$name'
18356    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18357    library_names_spec='$libname.dll.lib'
18358
18359    case $build_os in
18360    mingw*)
18361      sys_lib_search_path_spec=
18362      lt_save_ifs=$IFS
18363      IFS=';'
18364      for lt_path in $LIB
18365      do
18366        IFS=$lt_save_ifs
18367        # Let DOS variable expansion print the short 8.3 style file name.
18368        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18369        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18370      done
18371      IFS=$lt_save_ifs
18372      # Convert to MSYS style.
18373      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18374      ;;
18375    cygwin*)
18376      # Convert to unix form, then to dos form, then back to unix form
18377      # but this time dos style (no spaces!) so that the unix form looks
18378      # like /cygdrive/c/PROGRA~1:/cygdr...
18379      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18380      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18381      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18382      ;;
18383    *)
18384      sys_lib_search_path_spec=$LIB
18385      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18386        # It is most probably a Windows format PATH.
18387        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18388      else
18389        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18390      fi
18391      # FIXME: find the short name or the path components, as spaces are
18392      # common. (e.g. "Program Files" -> "PROGRA~1")
18393      ;;
18394    esac
18395
18396    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18397    postinstall_cmds='base_file=`basename \$file`~
18398      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18399      dldir=$destdir/`dirname \$dlpath`~
18400      test -d \$dldir || mkdir -p \$dldir~
18401      $install_prog $dir/$dlname \$dldir/$dlname'
18402    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18403      dlpath=$dir/\$dldll~
18404       $RM \$dlpath'
18405    shlibpath_overrides_runpath=yes
18406    dynamic_linker='Win32 link.exe'
18407    ;;
18408
18409  *)
18410    # Assume MSVC and ICC wrapper
18411    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18412    dynamic_linker='Win32 ld.exe'
18413    ;;
18414  esac
18415  # FIXME: first we should search . and the directory the executable is in
18416  shlibpath_var=PATH
18417  ;;
18418
18419darwin* | rhapsody*)
18420  dynamic_linker="$host_os dyld"
18421  version_type=darwin
18422  need_lib_prefix=no
18423  need_version=no
18424  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18425  soname_spec='$libname$release$major$shared_ext'
18426  shlibpath_overrides_runpath=yes
18427  shlibpath_var=DYLD_LIBRARY_PATH
18428  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18429
18430  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18431  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18432  ;;
18433
18434dgux*)
18435  version_type=linux # correct to gnu/linux during the next big refactor
18436  need_lib_prefix=no
18437  need_version=no
18438  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18439  soname_spec='$libname$release$shared_ext$major'
18440  shlibpath_var=LD_LIBRARY_PATH
18441  ;;
18442
18443freebsd* | dragonfly* | midnightbsd*)
18444  # DragonFly does not have aout.  When/if they implement a new
18445  # versioning mechanism, adjust this.
18446  if test -x /usr/bin/objformat; then
18447    objformat=`/usr/bin/objformat`
18448  else
18449    case $host_os in
18450    freebsd[23].*) objformat=aout ;;
18451    *) objformat=elf ;;
18452    esac
18453  fi
18454  version_type=freebsd-$objformat
18455  case $version_type in
18456    freebsd-elf*)
18457      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18458      soname_spec='$libname$release$shared_ext$major'
18459      need_version=no
18460      need_lib_prefix=no
18461      ;;
18462    freebsd-*)
18463      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18464      need_version=yes
18465      ;;
18466  esac
18467  shlibpath_var=LD_LIBRARY_PATH
18468  case $host_os in
18469  freebsd2.*)
18470    shlibpath_overrides_runpath=yes
18471    ;;
18472  freebsd3.[01]* | freebsdelf3.[01]*)
18473    shlibpath_overrides_runpath=yes
18474    hardcode_into_libs=yes
18475    ;;
18476  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18477  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18478    shlibpath_overrides_runpath=no
18479    hardcode_into_libs=yes
18480    ;;
18481  *) # from 4.6 on, and DragonFly
18482    shlibpath_overrides_runpath=yes
18483    hardcode_into_libs=yes
18484    ;;
18485  esac
18486  ;;
18487
18488haiku*)
18489  version_type=linux # correct to gnu/linux during the next big refactor
18490  need_lib_prefix=no
18491  need_version=no
18492  dynamic_linker="$host_os runtime_loader"
18493  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18494  soname_spec='$libname$release$shared_ext$major'
18495  shlibpath_var=LIBRARY_PATH
18496  shlibpath_overrides_runpath=no
18497  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18498  hardcode_into_libs=yes
18499  ;;
18500
18501hpux9* | hpux10* | hpux11*)
18502  # Give a soname corresponding to the major version so that dld.sl refuses to
18503  # link against other versions.
18504  version_type=sunos
18505  need_lib_prefix=no
18506  need_version=no
18507  case $host_cpu in
18508  ia64*)
18509    shrext_cmds='.so'
18510    hardcode_into_libs=yes
18511    dynamic_linker="$host_os dld.so"
18512    shlibpath_var=LD_LIBRARY_PATH
18513    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18514    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18515    soname_spec='$libname$release$shared_ext$major'
18516    if test 32 = "$HPUX_IA64_MODE"; then
18517      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18518      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18519    else
18520      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18521      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18522    fi
18523    ;;
18524  hppa*64*)
18525    shrext_cmds='.sl'
18526    hardcode_into_libs=yes
18527    dynamic_linker="$host_os dld.sl"
18528    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18529    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18530    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18531    soname_spec='$libname$release$shared_ext$major'
18532    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18533    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18534    ;;
18535  *)
18536    shrext_cmds='.sl'
18537    dynamic_linker="$host_os dld.sl"
18538    shlibpath_var=SHLIB_PATH
18539    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18540    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18541    soname_spec='$libname$release$shared_ext$major'
18542    ;;
18543  esac
18544  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18545  postinstall_cmds='chmod 555 $lib'
18546  # or fails outright, so override atomically:
18547  install_override_mode=555
18548  ;;
18549
18550interix[3-9]*)
18551  version_type=linux # correct to gnu/linux during the next big refactor
18552  need_lib_prefix=no
18553  need_version=no
18554  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18555  soname_spec='$libname$release$shared_ext$major'
18556  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18557  shlibpath_var=LD_LIBRARY_PATH
18558  shlibpath_overrides_runpath=no
18559  hardcode_into_libs=yes
18560  ;;
18561
18562irix5* | irix6* | nonstopux*)
18563  case $host_os in
18564    nonstopux*) version_type=nonstopux ;;
18565    *)
18566	if test yes = "$lt_cv_prog_gnu_ld"; then
18567		version_type=linux # correct to gnu/linux during the next big refactor
18568	else
18569		version_type=irix
18570	fi ;;
18571  esac
18572  need_lib_prefix=no
18573  need_version=no
18574  soname_spec='$libname$release$shared_ext$major'
18575  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18576  case $host_os in
18577  irix5* | nonstopux*)
18578    libsuff= shlibsuff=
18579    ;;
18580  *)
18581    case $LD in # libtool.m4 will add one of these switches to LD
18582    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18583      libsuff= shlibsuff= libmagic=32-bit;;
18584    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18585      libsuff=32 shlibsuff=N32 libmagic=N32;;
18586    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18587      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18588    *) libsuff= shlibsuff= libmagic=never-match;;
18589    esac
18590    ;;
18591  esac
18592  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18593  shlibpath_overrides_runpath=no
18594  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18595  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18596  hardcode_into_libs=yes
18597  ;;
18598
18599# No shared lib support for Linux oldld, aout, or coff.
18600linux*oldld* | linux*aout* | linux*coff*)
18601  dynamic_linker=no
18602  ;;
18603
18604linux*android*)
18605  version_type=none # Android doesn't support versioned libraries.
18606  need_lib_prefix=no
18607  need_version=no
18608  library_names_spec='$libname$release$shared_ext'
18609  soname_spec='$libname$release$shared_ext'
18610  finish_cmds=
18611  shlibpath_var=LD_LIBRARY_PATH
18612  shlibpath_overrides_runpath=yes
18613
18614  # This implies no fast_install, which is unacceptable.
18615  # Some rework will be needed to allow for fast_install
18616  # before this can be enabled.
18617  hardcode_into_libs=yes
18618
18619  dynamic_linker='Android linker'
18620  # Don't embed -rpath directories since the linker doesn't support them.
18621  hardcode_libdir_flag_spec='-L$libdir'
18622  ;;
18623
18624# This must be glibc/ELF.
18625linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18626  version_type=linux # correct to gnu/linux during the next big refactor
18627  need_lib_prefix=no
18628  need_version=no
18629  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18630  soname_spec='$libname$release$shared_ext$major'
18631  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18632  shlibpath_var=LD_LIBRARY_PATH
18633  shlibpath_overrides_runpath=no
18634
18635  # Some binutils ld are patched to set DT_RUNPATH
18636  if test ${lt_cv_shlibpath_overrides_runpath+y}
18637then :
18638  printf %s "(cached) " >&6
18639else case e in #(
18640  e) lt_cv_shlibpath_overrides_runpath=no
18641    save_LDFLAGS=$LDFLAGS
18642    save_libdir=$libdir
18643    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18644	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18645    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18646/* end confdefs.h.  */
18647
18648int
18649main (void)
18650{
18651
18652  ;
18653  return 0;
18654}
18655_ACEOF
18656if ac_fn_c_try_link "$LINENO"
18657then :
18658  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18659then :
18660  lt_cv_shlibpath_overrides_runpath=yes
18661fi
18662fi
18663rm -f core conftest.err conftest.$ac_objext conftest.beam \
18664    conftest$ac_exeext conftest.$ac_ext
18665    LDFLAGS=$save_LDFLAGS
18666    libdir=$save_libdir
18667     ;;
18668esac
18669fi
18670
18671  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18672
18673  # This implies no fast_install, which is unacceptable.
18674  # Some rework will be needed to allow for fast_install
18675  # before this can be enabled.
18676  hardcode_into_libs=yes
18677
18678  # Ideally, we could use ldconfig to report *all* directores which are
18679  # searched for libraries, however this is still not possible.  Aside from not
18680  # being certain /sbin/ldconfig is available, command
18681  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18682  # even though it is searched at run-time.  Try to do the best guess by
18683  # appending ld.so.conf contents (and includes) to the search path.
18684  if test -f /etc/ld.so.conf; then
18685    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' ' '`
18686    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18687  fi
18688
18689  # We used to test for /lib/ld.so.1 and disable shared libraries on
18690  # powerpc, because MkLinux only supported shared libraries with the
18691  # GNU dynamic linker.  Since this was broken with cross compilers,
18692  # most powerpc-linux boxes support dynamic linking these days and
18693  # people can always --disable-shared, the test was removed, and we
18694  # assume the GNU/Linux dynamic linker is in use.
18695  dynamic_linker='GNU/Linux ld.so'
18696  ;;
18697
18698netbsd*)
18699  version_type=sunos
18700  need_lib_prefix=no
18701  need_version=no
18702  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18703    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18704    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18705    dynamic_linker='NetBSD (a.out) ld.so'
18706  else
18707    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18708    soname_spec='$libname$release$shared_ext$major'
18709    dynamic_linker='NetBSD ld.elf_so'
18710  fi
18711  shlibpath_var=LD_LIBRARY_PATH
18712  shlibpath_overrides_runpath=yes
18713  hardcode_into_libs=yes
18714  ;;
18715
18716newsos6)
18717  version_type=linux # correct to gnu/linux during the next big refactor
18718  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18719  shlibpath_var=LD_LIBRARY_PATH
18720  shlibpath_overrides_runpath=yes
18721  ;;
18722
18723*nto* | *qnx*)
18724  version_type=qnx
18725  need_lib_prefix=no
18726  need_version=no
18727  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18728  soname_spec='$libname$release$shared_ext$major'
18729  shlibpath_var=LD_LIBRARY_PATH
18730  shlibpath_overrides_runpath=no
18731  hardcode_into_libs=yes
18732  dynamic_linker='ldqnx.so'
18733  ;;
18734
18735openbsd* | bitrig*)
18736  version_type=sunos
18737  sys_lib_dlsearch_path_spec=/usr/lib
18738  need_lib_prefix=no
18739  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18740    need_version=no
18741  else
18742    need_version=yes
18743  fi
18744  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18745  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18746  shlibpath_var=LD_LIBRARY_PATH
18747  shlibpath_overrides_runpath=yes
18748  ;;
18749
18750os2*)
18751  libname_spec='$name'
18752  version_type=windows
18753  shrext_cmds=.dll
18754  need_version=no
18755  need_lib_prefix=no
18756  # OS/2 can only load a DLL with a base name of 8 characters or less.
18757  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18758    v=$($ECHO $release$versuffix | tr -d .-);
18759    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18760    $ECHO $n$v`$shared_ext'
18761  library_names_spec='${libname}_dll.$libext'
18762  dynamic_linker='OS/2 ld.exe'
18763  shlibpath_var=BEGINLIBPATH
18764  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18765  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18766  postinstall_cmds='base_file=`basename \$file`~
18767    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18768    dldir=$destdir/`dirname \$dlpath`~
18769    test -d \$dldir || mkdir -p \$dldir~
18770    $install_prog $dir/$dlname \$dldir/$dlname~
18771    chmod a+x \$dldir/$dlname~
18772    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18773      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18774    fi'
18775  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18776    dlpath=$dir/\$dldll~
18777    $RM \$dlpath'
18778  ;;
18779
18780osf3* | osf4* | osf5*)
18781  version_type=osf
18782  need_lib_prefix=no
18783  need_version=no
18784  soname_spec='$libname$release$shared_ext$major'
18785  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18786  shlibpath_var=LD_LIBRARY_PATH
18787  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18788  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18789  ;;
18790
18791rdos*)
18792  dynamic_linker=no
18793  ;;
18794
18795solaris*)
18796  version_type=linux # correct to gnu/linux during the next big refactor
18797  need_lib_prefix=no
18798  need_version=no
18799  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18800  soname_spec='$libname$release$shared_ext$major'
18801  shlibpath_var=LD_LIBRARY_PATH
18802  shlibpath_overrides_runpath=yes
18803  hardcode_into_libs=yes
18804  # ldd complains unless libraries are executable
18805  postinstall_cmds='chmod +x $lib'
18806  ;;
18807
18808sunos4*)
18809  version_type=sunos
18810  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18811  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18812  shlibpath_var=LD_LIBRARY_PATH
18813  shlibpath_overrides_runpath=yes
18814  if test yes = "$with_gnu_ld"; then
18815    need_lib_prefix=no
18816  fi
18817  need_version=yes
18818  ;;
18819
18820sysv4 | sysv4.3*)
18821  version_type=linux # correct to gnu/linux during the next big refactor
18822  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18823  soname_spec='$libname$release$shared_ext$major'
18824  shlibpath_var=LD_LIBRARY_PATH
18825  case $host_vendor in
18826    sni)
18827      shlibpath_overrides_runpath=no
18828      need_lib_prefix=no
18829      runpath_var=LD_RUN_PATH
18830      ;;
18831    siemens)
18832      need_lib_prefix=no
18833      ;;
18834    motorola)
18835      need_lib_prefix=no
18836      need_version=no
18837      shlibpath_overrides_runpath=no
18838      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18839      ;;
18840  esac
18841  ;;
18842
18843sysv4*MP*)
18844  if test -d /usr/nec; then
18845    version_type=linux # correct to gnu/linux during the next big refactor
18846    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18847    soname_spec='$libname$shared_ext.$major'
18848    shlibpath_var=LD_LIBRARY_PATH
18849  fi
18850  ;;
18851
18852sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18853  version_type=sco
18854  need_lib_prefix=no
18855  need_version=no
18856  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18857  soname_spec='$libname$release$shared_ext$major'
18858  shlibpath_var=LD_LIBRARY_PATH
18859  shlibpath_overrides_runpath=yes
18860  hardcode_into_libs=yes
18861  if test yes = "$with_gnu_ld"; then
18862    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18863  else
18864    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18865    case $host_os in
18866      sco3.2v5*)
18867        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18868	;;
18869    esac
18870  fi
18871  sys_lib_dlsearch_path_spec='/usr/lib'
18872  ;;
18873
18874tpf*)
18875  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18876  version_type=linux # correct to gnu/linux during the next big refactor
18877  need_lib_prefix=no
18878  need_version=no
18879  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18880  shlibpath_var=LD_LIBRARY_PATH
18881  shlibpath_overrides_runpath=no
18882  hardcode_into_libs=yes
18883  ;;
18884
18885uts4*)
18886  version_type=linux # correct to gnu/linux during the next big refactor
18887  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18888  soname_spec='$libname$release$shared_ext$major'
18889  shlibpath_var=LD_LIBRARY_PATH
18890  ;;
18891
18892*)
18893  dynamic_linker=no
18894  ;;
18895esac
18896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18897printf "%s\n" "$dynamic_linker" >&6; }
18898test no = "$dynamic_linker" && can_build_shared=no
18899
18900variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18901if test yes = "$GCC"; then
18902  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18903fi
18904
18905if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18906  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18907fi
18908
18909if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18910  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18911fi
18912
18913# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18914configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18915
18916# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18917func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18918
18919# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18920configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19019printf %s "checking how to hardcode library paths into programs... " >&6; }
19020hardcode_action=
19021if test -n "$hardcode_libdir_flag_spec" ||
19022   test -n "$runpath_var" ||
19023   test yes = "$hardcode_automatic"; then
19024
19025  # We can hardcode non-existent directories.
19026  if test no != "$hardcode_direct" &&
19027     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19028     # have to relink, otherwise we might link with an installed library
19029     # when we should be linking with a yet-to-be-installed one
19030     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
19031     test no != "$hardcode_minus_L"; then
19032    # Linking always hardcodes the temporary library directory.
19033    hardcode_action=relink
19034  else
19035    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19036    hardcode_action=immediate
19037  fi
19038else
19039  # We cannot hardcode anything, or else we can only hardcode existing
19040  # directories.
19041  hardcode_action=unsupported
19042fi
19043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19044printf "%s\n" "$hardcode_action" >&6; }
19045
19046if test relink = "$hardcode_action" ||
19047   test yes = "$inherit_rpath"; then
19048  # Fast installation is not supported
19049  enable_fast_install=no
19050elif test yes = "$shlibpath_overrides_runpath" ||
19051     test no = "$enable_shared"; then
19052  # Fast installation is not necessary
19053  enable_fast_install=needless
19054fi
19055
19056
19057
19058
19059
19060
19061  if test yes != "$enable_dlopen"; then
19062  enable_dlopen=unknown
19063  enable_dlopen_self=unknown
19064  enable_dlopen_self_static=unknown
19065else
19066  lt_cv_dlopen=no
19067  lt_cv_dlopen_libs=
19068
19069  case $host_os in
19070  beos*)
19071    lt_cv_dlopen=load_add_on
19072    lt_cv_dlopen_libs=
19073    lt_cv_dlopen_self=yes
19074    ;;
19075
19076  mingw* | pw32* | cegcc*)
19077    lt_cv_dlopen=LoadLibrary
19078    lt_cv_dlopen_libs=
19079    ;;
19080
19081  cygwin*)
19082    lt_cv_dlopen=dlopen
19083    lt_cv_dlopen_libs=
19084    ;;
19085
19086  darwin*)
19087    # if libdl is installed we need to link against it
19088    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19089printf %s "checking for dlopen in -ldl... " >&6; }
19090if test ${ac_cv_lib_dl_dlopen+y}
19091then :
19092  printf %s "(cached) " >&6
19093else case e in #(
19094  e) ac_check_lib_save_LIBS=$LIBS
19095LIBS="-ldl  $LIBS"
19096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19097/* end confdefs.h.  */
19098
19099/* Override any GCC internal prototype to avoid an error.
19100   Use char because int might match the return type of a GCC
19101   builtin and then its argument prototype would still apply.
19102   The 'extern "C"' is for builds by C++ compilers;
19103   although this is not generally supported in C code supporting it here
19104   has little cost and some practical benefit (sr 110532).  */
19105#ifdef __cplusplus
19106extern "C"
19107#endif
19108char dlopen (void);
19109int
19110main (void)
19111{
19112return dlopen ();
19113  ;
19114  return 0;
19115}
19116_ACEOF
19117if ac_fn_c_try_link "$LINENO"
19118then :
19119  ac_cv_lib_dl_dlopen=yes
19120else case e in #(
19121  e) ac_cv_lib_dl_dlopen=no ;;
19122esac
19123fi
19124rm -f core conftest.err conftest.$ac_objext conftest.beam \
19125    conftest$ac_exeext conftest.$ac_ext
19126LIBS=$ac_check_lib_save_LIBS ;;
19127esac
19128fi
19129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19130printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
19131if test "x$ac_cv_lib_dl_dlopen" = xyes
19132then :
19133  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
19134else case e in #(
19135  e)
19136    lt_cv_dlopen=dyld
19137    lt_cv_dlopen_libs=
19138    lt_cv_dlopen_self=yes
19139     ;;
19140esac
19141fi
19142
19143    ;;
19144
19145  tpf*)
19146    # Don't try to run any link tests for TPF.  We know it's impossible
19147    # because TPF is a cross-compiler, and we know how we open DSOs.
19148    lt_cv_dlopen=dlopen
19149    lt_cv_dlopen_libs=
19150    lt_cv_dlopen_self=no
19151    ;;
19152
19153  *)
19154    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19155if test "x$ac_cv_func_shl_load" = xyes
19156then :
19157  lt_cv_dlopen=shl_load
19158else case e in #(
19159  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19160printf %s "checking for shl_load in -ldld... " >&6; }
19161if test ${ac_cv_lib_dld_shl_load+y}
19162then :
19163  printf %s "(cached) " >&6
19164else case e in #(
19165  e) ac_check_lib_save_LIBS=$LIBS
19166LIBS="-ldld  $LIBS"
19167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19168/* end confdefs.h.  */
19169
19170/* Override any GCC internal prototype to avoid an error.
19171   Use char because int might match the return type of a GCC
19172   builtin and then its argument prototype would still apply.
19173   The 'extern "C"' is for builds by C++ compilers;
19174   although this is not generally supported in C code supporting it here
19175   has little cost and some practical benefit (sr 110532).  */
19176#ifdef __cplusplus
19177extern "C"
19178#endif
19179char shl_load (void);
19180int
19181main (void)
19182{
19183return shl_load ();
19184  ;
19185  return 0;
19186}
19187_ACEOF
19188if ac_fn_c_try_link "$LINENO"
19189then :
19190  ac_cv_lib_dld_shl_load=yes
19191else case e in #(
19192  e) ac_cv_lib_dld_shl_load=no ;;
19193esac
19194fi
19195rm -f core conftest.err conftest.$ac_objext conftest.beam \
19196    conftest$ac_exeext conftest.$ac_ext
19197LIBS=$ac_check_lib_save_LIBS ;;
19198esac
19199fi
19200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19201printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
19202if test "x$ac_cv_lib_dld_shl_load" = xyes
19203then :
19204  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
19205else case e in #(
19206  e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19207if test "x$ac_cv_func_dlopen" = xyes
19208then :
19209  lt_cv_dlopen=dlopen
19210else case e in #(
19211  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19212printf %s "checking for dlopen in -ldl... " >&6; }
19213if test ${ac_cv_lib_dl_dlopen+y}
19214then :
19215  printf %s "(cached) " >&6
19216else case e in #(
19217  e) ac_check_lib_save_LIBS=$LIBS
19218LIBS="-ldl  $LIBS"
19219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19220/* end confdefs.h.  */
19221
19222/* Override any GCC internal prototype to avoid an error.
19223   Use char because int might match the return type of a GCC
19224   builtin and then its argument prototype would still apply.
19225   The 'extern "C"' is for builds by C++ compilers;
19226   although this is not generally supported in C code supporting it here
19227   has little cost and some practical benefit (sr 110532).  */
19228#ifdef __cplusplus
19229extern "C"
19230#endif
19231char dlopen (void);
19232int
19233main (void)
19234{
19235return dlopen ();
19236  ;
19237  return 0;
19238}
19239_ACEOF
19240if ac_fn_c_try_link "$LINENO"
19241then :
19242  ac_cv_lib_dl_dlopen=yes
19243else case e in #(
19244  e) ac_cv_lib_dl_dlopen=no ;;
19245esac
19246fi
19247rm -f core conftest.err conftest.$ac_objext conftest.beam \
19248    conftest$ac_exeext conftest.$ac_ext
19249LIBS=$ac_check_lib_save_LIBS ;;
19250esac
19251fi
19252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19253printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
19254if test "x$ac_cv_lib_dl_dlopen" = xyes
19255then :
19256  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
19257else case e in #(
19258  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19259printf %s "checking for dlopen in -lsvld... " >&6; }
19260if test ${ac_cv_lib_svld_dlopen+y}
19261then :
19262  printf %s "(cached) " >&6
19263else case e in #(
19264  e) ac_check_lib_save_LIBS=$LIBS
19265LIBS="-lsvld  $LIBS"
19266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19267/* end confdefs.h.  */
19268
19269/* Override any GCC internal prototype to avoid an error.
19270   Use char because int might match the return type of a GCC
19271   builtin and then its argument prototype would still apply.
19272   The 'extern "C"' is for builds by C++ compilers;
19273   although this is not generally supported in C code supporting it here
19274   has little cost and some practical benefit (sr 110532).  */
19275#ifdef __cplusplus
19276extern "C"
19277#endif
19278char dlopen (void);
19279int
19280main (void)
19281{
19282return dlopen ();
19283  ;
19284  return 0;
19285}
19286_ACEOF
19287if ac_fn_c_try_link "$LINENO"
19288then :
19289  ac_cv_lib_svld_dlopen=yes
19290else case e in #(
19291  e) ac_cv_lib_svld_dlopen=no ;;
19292esac
19293fi
19294rm -f core conftest.err conftest.$ac_objext conftest.beam \
19295    conftest$ac_exeext conftest.$ac_ext
19296LIBS=$ac_check_lib_save_LIBS ;;
19297esac
19298fi
19299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19300printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
19301if test "x$ac_cv_lib_svld_dlopen" = xyes
19302then :
19303  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
19304else case e in #(
19305  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19306printf %s "checking for dld_link in -ldld... " >&6; }
19307if test ${ac_cv_lib_dld_dld_link+y}
19308then :
19309  printf %s "(cached) " >&6
19310else case e in #(
19311  e) ac_check_lib_save_LIBS=$LIBS
19312LIBS="-ldld  $LIBS"
19313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19314/* end confdefs.h.  */
19315
19316/* Override any GCC internal prototype to avoid an error.
19317   Use char because int might match the return type of a GCC
19318   builtin and then its argument prototype would still apply.
19319   The 'extern "C"' is for builds by C++ compilers;
19320   although this is not generally supported in C code supporting it here
19321   has little cost and some practical benefit (sr 110532).  */
19322#ifdef __cplusplus
19323extern "C"
19324#endif
19325char dld_link (void);
19326int
19327main (void)
19328{
19329return dld_link ();
19330  ;
19331  return 0;
19332}
19333_ACEOF
19334if ac_fn_c_try_link "$LINENO"
19335then :
19336  ac_cv_lib_dld_dld_link=yes
19337else case e in #(
19338  e) ac_cv_lib_dld_dld_link=no ;;
19339esac
19340fi
19341rm -f core conftest.err conftest.$ac_objext conftest.beam \
19342    conftest$ac_exeext conftest.$ac_ext
19343LIBS=$ac_check_lib_save_LIBS ;;
19344esac
19345fi
19346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19347printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
19348if test "x$ac_cv_lib_dld_dld_link" = xyes
19349then :
19350  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
19351fi
19352
19353	       ;;
19354esac
19355fi
19356
19357	     ;;
19358esac
19359fi
19360
19361	   ;;
19362esac
19363fi
19364
19365	 ;;
19366esac
19367fi
19368
19369       ;;
19370esac
19371fi
19372
19373    ;;
19374  esac
19375
19376  if test no = "$lt_cv_dlopen"; then
19377    enable_dlopen=no
19378  else
19379    enable_dlopen=yes
19380  fi
19381
19382  case $lt_cv_dlopen in
19383  dlopen)
19384    save_CPPFLAGS=$CPPFLAGS
19385    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19386
19387    save_LDFLAGS=$LDFLAGS
19388    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19389
19390    save_LIBS=$LIBS
19391    LIBS="$lt_cv_dlopen_libs $LIBS"
19392
19393    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19394printf %s "checking whether a program can dlopen itself... " >&6; }
19395if test ${lt_cv_dlopen_self+y}
19396then :
19397  printf %s "(cached) " >&6
19398else case e in #(
19399  e) 	  if test yes = "$cross_compiling"; then :
19400  lt_cv_dlopen_self=cross
19401else
19402  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19403  lt_status=$lt_dlunknown
19404  cat > conftest.$ac_ext <<_LT_EOF
19405#line $LINENO "configure"
19406#include "confdefs.h"
19407
19408#if HAVE_DLFCN_H
19409#include <dlfcn.h>
19410#endif
19411
19412#include <stdio.h>
19413
19414#ifdef RTLD_GLOBAL
19415#  define LT_DLGLOBAL		RTLD_GLOBAL
19416#else
19417#  ifdef DL_GLOBAL
19418#    define LT_DLGLOBAL		DL_GLOBAL
19419#  else
19420#    define LT_DLGLOBAL		0
19421#  endif
19422#endif
19423
19424/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19425   find out it does not work in some platform. */
19426#ifndef LT_DLLAZY_OR_NOW
19427#  ifdef RTLD_LAZY
19428#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19429#  else
19430#    ifdef DL_LAZY
19431#      define LT_DLLAZY_OR_NOW		DL_LAZY
19432#    else
19433#      ifdef RTLD_NOW
19434#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19435#      else
19436#        ifdef DL_NOW
19437#          define LT_DLLAZY_OR_NOW	DL_NOW
19438#        else
19439#          define LT_DLLAZY_OR_NOW	0
19440#        endif
19441#      endif
19442#    endif
19443#  endif
19444#endif
19445
19446/* When -fvisibility=hidden is used, assume the code has been annotated
19447   correspondingly for the symbols needed.  */
19448#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19449int fnord () __attribute__((visibility("default")));
19450#endif
19451
19452int fnord () { return 42; }
19453int main ()
19454{
19455  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19456  int status = $lt_dlunknown;
19457
19458  if (self)
19459    {
19460      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19461      else
19462        {
19463	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19464          else puts (dlerror ());
19465	}
19466      /* dlclose (self); */
19467    }
19468  else
19469    puts (dlerror ());
19470
19471  return status;
19472}
19473_LT_EOF
19474  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19475  (eval $ac_link) 2>&5
19476  ac_status=$?
19477  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19478  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19479    (./conftest; exit; ) >&5 2>/dev/null
19480    lt_status=$?
19481    case x$lt_status in
19482      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19483      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19484      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19485    esac
19486  else :
19487    # compilation failed
19488    lt_cv_dlopen_self=no
19489  fi
19490fi
19491rm -fr conftest*
19492
19493     ;;
19494esac
19495fi
19496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19497printf "%s\n" "$lt_cv_dlopen_self" >&6; }
19498
19499    if test yes = "$lt_cv_dlopen_self"; then
19500      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19501      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19502printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
19503if test ${lt_cv_dlopen_self_static+y}
19504then :
19505  printf %s "(cached) " >&6
19506else case e in #(
19507  e) 	  if test yes = "$cross_compiling"; then :
19508  lt_cv_dlopen_self_static=cross
19509else
19510  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19511  lt_status=$lt_dlunknown
19512  cat > conftest.$ac_ext <<_LT_EOF
19513#line $LINENO "configure"
19514#include "confdefs.h"
19515
19516#if HAVE_DLFCN_H
19517#include <dlfcn.h>
19518#endif
19519
19520#include <stdio.h>
19521
19522#ifdef RTLD_GLOBAL
19523#  define LT_DLGLOBAL		RTLD_GLOBAL
19524#else
19525#  ifdef DL_GLOBAL
19526#    define LT_DLGLOBAL		DL_GLOBAL
19527#  else
19528#    define LT_DLGLOBAL		0
19529#  endif
19530#endif
19531
19532/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19533   find out it does not work in some platform. */
19534#ifndef LT_DLLAZY_OR_NOW
19535#  ifdef RTLD_LAZY
19536#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19537#  else
19538#    ifdef DL_LAZY
19539#      define LT_DLLAZY_OR_NOW		DL_LAZY
19540#    else
19541#      ifdef RTLD_NOW
19542#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19543#      else
19544#        ifdef DL_NOW
19545#          define LT_DLLAZY_OR_NOW	DL_NOW
19546#        else
19547#          define LT_DLLAZY_OR_NOW	0
19548#        endif
19549#      endif
19550#    endif
19551#  endif
19552#endif
19553
19554/* When -fvisibility=hidden is used, assume the code has been annotated
19555   correspondingly for the symbols needed.  */
19556#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19557int fnord () __attribute__((visibility("default")));
19558#endif
19559
19560int fnord () { return 42; }
19561int main ()
19562{
19563  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19564  int status = $lt_dlunknown;
19565
19566  if (self)
19567    {
19568      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19569      else
19570        {
19571	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19572          else puts (dlerror ());
19573	}
19574      /* dlclose (self); */
19575    }
19576  else
19577    puts (dlerror ());
19578
19579  return status;
19580}
19581_LT_EOF
19582  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19583  (eval $ac_link) 2>&5
19584  ac_status=$?
19585  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19586  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19587    (./conftest; exit; ) >&5 2>/dev/null
19588    lt_status=$?
19589    case x$lt_status in
19590      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19591      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19592      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19593    esac
19594  else :
19595    # compilation failed
19596    lt_cv_dlopen_self_static=no
19597  fi
19598fi
19599rm -fr conftest*
19600
19601       ;;
19602esac
19603fi
19604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19605printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
19606    fi
19607
19608    CPPFLAGS=$save_CPPFLAGS
19609    LDFLAGS=$save_LDFLAGS
19610    LIBS=$save_LIBS
19611    ;;
19612  esac
19613
19614  case $lt_cv_dlopen_self in
19615  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19616  *) enable_dlopen_self=unknown ;;
19617  esac
19618
19619  case $lt_cv_dlopen_self_static in
19620  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19621  *) enable_dlopen_self_static=unknown ;;
19622  esac
19623fi
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641striplib=
19642old_striplib=
19643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19644printf %s "checking whether stripping libraries is possible... " >&6; }
19645if test -z "$STRIP"; then
19646  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19647printf "%s\n" "no" >&6; }
19648else
19649  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19650    old_striplib="$STRIP --strip-debug"
19651    striplib="$STRIP --strip-unneeded"
19652    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19653printf "%s\n" "yes" >&6; }
19654  else
19655    case $host_os in
19656    darwin*)
19657      # FIXME - insert some real tests, host_os isn't really good enough
19658      striplib="$STRIP -x"
19659      old_striplib="$STRIP -S"
19660      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19661printf "%s\n" "yes" >&6; }
19662      ;;
19663    freebsd*)
19664      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
19665        old_striplib="$STRIP --strip-debug"
19666        striplib="$STRIP --strip-unneeded"
19667        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19668printf "%s\n" "yes" >&6; }
19669      else
19670        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19671printf "%s\n" "no" >&6; }
19672      fi
19673      ;;
19674    *)
19675      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19676printf "%s\n" "no" >&6; }
19677      ;;
19678    esac
19679  fi
19680fi
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693  # Report what library types will actually be built
19694  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19695printf %s "checking if libtool supports shared libraries... " >&6; }
19696  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19697printf "%s\n" "$can_build_shared" >&6; }
19698
19699  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19700printf %s "checking whether to build shared libraries... " >&6; }
19701  test no = "$can_build_shared" && enable_shared=no
19702
19703  # On AIX, shared libraries and static libraries use the same namespace, and
19704  # are all built from PIC.
19705  case $host_os in
19706  aix3*)
19707    test yes = "$enable_shared" && enable_static=no
19708    if test -n "$RANLIB"; then
19709      archive_cmds="$archive_cmds~\$RANLIB \$lib"
19710      postinstall_cmds='$RANLIB $lib'
19711    fi
19712    ;;
19713
19714  aix[4-9]*)
19715    if test ia64 != "$host_cpu"; then
19716      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
19717      yes,aix,yes) ;;			# shared object as lib.so file only
19718      yes,svr4,*) ;;			# shared object as lib.so archive member only
19719      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
19720      esac
19721    fi
19722    ;;
19723  esac
19724  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19725printf "%s\n" "$enable_shared" >&6; }
19726
19727  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19728printf %s "checking whether to build static libraries... " >&6; }
19729  # Make sure either enable_shared or enable_static is yes.
19730  test yes = "$enable_shared" || enable_static=yes
19731  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19732printf "%s\n" "$enable_static" >&6; }
19733
19734
19735
19736
19737fi
19738ac_ext=c
19739ac_cpp='$CPP $CPPFLAGS'
19740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19742ac_compiler_gnu=$ac_cv_c_compiler_gnu
19743
19744CC=$lt_save_CC
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760        ac_config_commands="$ac_config_commands libtool"
19761
19762
19763
19764
19765# Only expand once:
19766
19767
19768
19769
19770
19771
19772# Check whether --with-xorg-module-dir was given.
19773if test ${with_xorg_module_dir+y}
19774then :
19775  withval=$with_xorg_module_dir; moduledir="$withval"
19776else case e in #(
19777  e) moduledir="$libdir/xorg/modules" ;;
19778esac
19779fi
19780
19781inputdir=${moduledir}/input
19782
19783
19784# Checks for extensions
19785
19786
19787	SAVE_CFLAGS="$CFLAGS"
19788	CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
19789	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19790/* end confdefs.h.  */
19791
19792#include "xorg-server.h"
19793#if !defined RANDR
19794#error RANDR not defined
19795#endif
19796
19797int
19798main (void)
19799{
19800
19801  ;
19802  return 0;
19803}
19804_ACEOF
19805if ac_fn_c_try_compile "$LINENO"
19806then :
19807  _EXT_CHECK=yes
19808else case e in #(
19809  e) _EXT_CHECK=no ;;
19810esac
19811fi
19812rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19813	CFLAGS="$SAVE_CFLAGS"
19814	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
19815printf %s "checking if RANDR is defined... " >&6; }
19816	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19817printf "%s\n" "$_EXT_CHECK" >&6; }
19818	if test "$_EXT_CHECK" != no; then
19819		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19820	fi
19821
19822
19823
19824	SAVE_CFLAGS="$CFLAGS"
19825	CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
19826	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19827/* end confdefs.h.  */
19828
19829#include "xorg-server.h"
19830#if !defined XINPUT
19831#error XINPUT not defined
19832#endif
19833
19834int
19835main (void)
19836{
19837
19838  ;
19839  return 0;
19840}
19841_ACEOF
19842if ac_fn_c_try_compile "$LINENO"
19843then :
19844  _EXT_CHECK=yes
19845else case e in #(
19846  e) _EXT_CHECK=no ;;
19847esac
19848fi
19849rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19850	CFLAGS="$SAVE_CFLAGS"
19851	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XINPUT is defined" >&5
19852printf %s "checking if XINPUT is defined... " >&6; }
19853	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19854printf "%s\n" "$_EXT_CHECK" >&6; }
19855	if test "$_EXT_CHECK" != no; then
19856		REQUIRED_MODULES="$REQUIRED_MODULES inputproto"
19857	fi
19858
19859
19860# Checks for pkg-config packages
19861
19862pkg_failed=no
19863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
19864printf %s "checking for XORG... " >&6; }
19865
19866if test -n "$XORG_CFLAGS"; then
19867    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19868 elif test -n "$PKG_CONFIG"; then
19869    if test -n "$PKG_CONFIG" && \
19870    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.10.0 xproto \$REQUIRED_MODULES\""; } >&5
19871  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.10.0 xproto $REQUIRED_MODULES") 2>&5
19872  ac_status=$?
19873  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19874  test $ac_status = 0; }; then
19875  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.10.0 xproto $REQUIRED_MODULES" 2>/dev/null`
19876		      test "x$?" != "x0" && pkg_failed=yes
19877else
19878  pkg_failed=yes
19879fi
19880 else
19881    pkg_failed=untried
19882fi
19883if test -n "$XORG_LIBS"; then
19884    pkg_cv_XORG_LIBS="$XORG_LIBS"
19885 elif test -n "$PKG_CONFIG"; then
19886    if test -n "$PKG_CONFIG" && \
19887    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.10.0 xproto \$REQUIRED_MODULES\""; } >&5
19888  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.10.0 xproto $REQUIRED_MODULES") 2>&5
19889  ac_status=$?
19890  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19891  test $ac_status = 0; }; then
19892  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.10.0 xproto $REQUIRED_MODULES" 2>/dev/null`
19893		      test "x$?" != "x0" && pkg_failed=yes
19894else
19895  pkg_failed=yes
19896fi
19897 else
19898    pkg_failed=untried
19899fi
19900
19901
19902
19903if test $pkg_failed = yes; then
19904   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19905printf "%s\n" "no" >&6; }
19906
19907if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19908        _pkg_short_errors_supported=yes
19909else
19910        _pkg_short_errors_supported=no
19911fi
19912        if test $_pkg_short_errors_supported = yes; then
19913	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.10.0 xproto $REQUIRED_MODULES" 2>&1`
19914        else
19915	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.10.0 xproto $REQUIRED_MODULES" 2>&1`
19916        fi
19917	# Put the nasty error message in config.log where it belongs
19918	echo "$XORG_PKG_ERRORS" >&5
19919
19920	as_fn_error $? "Package requirements (xorg-server >= 1.10.0 xproto $REQUIRED_MODULES) were not met:
19921
19922$XORG_PKG_ERRORS
19923
19924Consider adjusting the PKG_CONFIG_PATH environment variable if you
19925installed software in a non-standard prefix.
19926
19927Alternatively, you may set the environment variables XORG_CFLAGS
19928and XORG_LIBS to avoid the need to call pkg-config.
19929See the pkg-config man page for more details." "$LINENO" 5
19930elif test $pkg_failed = untried; then
19931     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19932printf "%s\n" "no" >&6; }
19933	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19934printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19935as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19936is in your PATH or set the PKG_CONFIG environment variable to the full
19937path to pkg-config.
19938
19939Alternatively, you may set the environment variables XORG_CFLAGS
19940and XORG_LIBS to avoid the need to call pkg-config.
19941See the pkg-config man page for more details.
19942
19943To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19944See 'config.log' for more details" "$LINENO" 5; }
19945else
19946	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19947	XORG_LIBS=$pkg_cv_XORG_LIBS
19948        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19949printf "%s\n" "yes" >&6; }
19950
19951fi
19952sdkdir=$(pkg-config --variable=sdkdir xorg-server)
19953
19954# Checks for libraries.
19955
19956# Checks for header files.
19957
19958# Checks for library functions
19959# We don't use strlcat, strlcpy, or timingsafe_memcmp, but check to quiet
19960# -Wredundant-decls warning from xorg/os.h which will otherwise redefine them.
19961ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
19962if test "x$ac_cv_func_strlcat" = xyes
19963then :
19964  printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
19965
19966fi
19967ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
19968if test "x$ac_cv_func_strlcpy" = xyes
19969then :
19970  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
19971
19972fi
19973ac_fn_c_check_func "$LINENO" "timingsafe_memcmp" "ac_cv_func_timingsafe_memcmp"
19974if test "x$ac_cv_func_timingsafe_memcmp" = xyes
19975then :
19976  printf "%s\n" "#define HAVE_TIMINGSAFE_MEMCMP 1" >>confdefs.h
19977
19978fi
19979
19980
19981DRIVER_NAME=elographics
19982
19983
19984
19985ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
19986
19987cat >confcache <<\_ACEOF
19988# This file is a shell script that caches the results of configure
19989# tests run on this system so they can be shared between configure
19990# scripts and configure runs, see configure's option --config-cache.
19991# It is not useful on other systems.  If it contains results you don't
19992# want to keep, you may remove or edit it.
19993#
19994# config.status only pays attention to the cache file if you give it
19995# the --recheck option to rerun configure.
19996#
19997# 'ac_cv_env_foo' variables (set or unset) will be overridden when
19998# loading this file, other *unset* 'ac_cv_foo' will be assigned the
19999# following values.
20000
20001_ACEOF
20002
20003# The following way of writing the cache mishandles newlines in values,
20004# but we know of no workaround that is simple, portable, and efficient.
20005# So, we kill variables containing newlines.
20006# Ultrix sh set writes to stderr and can't be redirected directly,
20007# and sets the high bit in the cache file unless we assign to the vars.
20008(
20009  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20010    eval ac_val=\$$ac_var
20011    case $ac_val in #(
20012    *${as_nl}*)
20013      case $ac_var in #(
20014      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20015printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20016      esac
20017      case $ac_var in #(
20018      _ | IFS | as_nl) ;; #(
20019      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20020      *) { eval $ac_var=; unset $ac_var;} ;;
20021      esac ;;
20022    esac
20023  done
20024
20025  (set) 2>&1 |
20026    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20027    *${as_nl}ac_space=\ *)
20028      # 'set' does not quote correctly, so add quotes: double-quote
20029      # substitution turns \\\\ into \\, and sed turns \\ into \.
20030      sed -n \
20031	"s/'/'\\\\''/g;
20032	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20033      ;; #(
20034    *)
20035      # 'set' quotes correctly as required by POSIX, so do not add quotes.
20036      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20037      ;;
20038    esac |
20039    sort
20040) |
20041  sed '
20042     /^ac_cv_env_/b end
20043     t clear
20044     :clear
20045     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20046     t end
20047     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20048     :end' >>confcache
20049if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20050  if test -w "$cache_file"; then
20051    if test "x$cache_file" != "x/dev/null"; then
20052      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20053printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20054      if test ! -f "$cache_file" || test -h "$cache_file"; then
20055	cat confcache >"$cache_file"
20056      else
20057        case $cache_file in #(
20058        */* | ?:*)
20059	  mv -f confcache "$cache_file"$$ &&
20060	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20061        *)
20062	  mv -f confcache "$cache_file" ;;
20063	esac
20064      fi
20065    fi
20066  else
20067    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20068printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20069  fi
20070fi
20071rm -f confcache
20072
20073test "x$prefix" = xNONE && prefix=$ac_default_prefix
20074# Let make expand exec_prefix.
20075test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20076
20077DEFS=-DHAVE_CONFIG_H
20078
20079ac_libobjs=
20080ac_ltlibobjs=
20081U=
20082for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20083  # 1. Remove the extension, and $U if already installed.
20084  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20085  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20086  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20087  #    will be set to the directory where LIBOBJS objects are built.
20088  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20089  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20090done
20091LIBOBJS=$ac_libobjs
20092
20093LTLIBOBJS=$ac_ltlibobjs
20094
20095
20096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20097printf %s "checking that generated files are newer than configure... " >&6; }
20098   if test -n "$am_sleep_pid"; then
20099     # Hide warnings about reused PIDs.
20100     wait $am_sleep_pid 2>/dev/null
20101   fi
20102   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20103printf "%s\n" "done" >&6; }
20104 if test -n "$EXEEXT"; then
20105  am__EXEEXT_TRUE=
20106  am__EXEEXT_FALSE='#'
20107else
20108  am__EXEEXT_TRUE='#'
20109  am__EXEEXT_FALSE=
20110fi
20111
20112if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20113  as_fn_error $? "conditional \"AMDEP\" was never defined.
20114Usually this means the macro was only invoked conditionally." "$LINENO" 5
20115fi
20116if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20117  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20118Usually this means the macro was only invoked conditionally." "$LINENO" 5
20119fi
20120
20121: "${CONFIG_STATUS=./config.status}"
20122ac_write_fail=0
20123ac_clean_files_save=$ac_clean_files
20124ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20126printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20127as_write_fail=0
20128cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20129#! $SHELL
20130# Generated by $as_me.
20131# Run this file to recreate the current configuration.
20132# Compiler output produced by configure, useful for debugging
20133# configure, is in config.log if it exists.
20134
20135debug=false
20136ac_cs_recheck=false
20137ac_cs_silent=false
20138
20139SHELL=\${CONFIG_SHELL-$SHELL}
20140export SHELL
20141_ASEOF
20142cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20143## -------------------- ##
20144## M4sh Initialization. ##
20145## -------------------- ##
20146
20147# Be more Bourne compatible
20148DUALCASE=1; export DUALCASE # for MKS sh
20149if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20150then :
20151  emulate sh
20152  NULLCMD=:
20153  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20154  # is contrary to our usage.  Disable this feature.
20155  alias -g '${1+"$@"}'='"$@"'
20156  setopt NO_GLOB_SUBST
20157else case e in #(
20158  e) case `(set -o) 2>/dev/null` in #(
20159  *posix*) :
20160    set -o posix ;; #(
20161  *) :
20162     ;;
20163esac ;;
20164esac
20165fi
20166
20167
20168
20169# Reset variables that may have inherited troublesome values from
20170# the environment.
20171
20172# IFS needs to be set, to space, tab, and newline, in precisely that order.
20173# (If _AS_PATH_WALK were called with IFS unset, it would have the
20174# side effect of setting IFS to empty, thus disabling word splitting.)
20175# Quoting is to prevent editors from complaining about space-tab.
20176as_nl='
20177'
20178export as_nl
20179IFS=" ""	$as_nl"
20180
20181PS1='$ '
20182PS2='> '
20183PS4='+ '
20184
20185# Ensure predictable behavior from utilities with locale-dependent output.
20186LC_ALL=C
20187export LC_ALL
20188LANGUAGE=C
20189export LANGUAGE
20190
20191# We cannot yet rely on "unset" to work, but we need these variables
20192# to be unset--not just set to an empty or harmless value--now, to
20193# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
20194# also avoids known problems related to "unset" and subshell syntax
20195# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20196for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20197do eval test \${$as_var+y} \
20198  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20199done
20200
20201# Ensure that fds 0, 1, and 2 are open.
20202if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20203if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20204if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
20205
20206# The user is always right.
20207if ${PATH_SEPARATOR+false} :; then
20208  PATH_SEPARATOR=:
20209  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20210    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20211      PATH_SEPARATOR=';'
20212  }
20213fi
20214
20215
20216# Find who we are.  Look in the path if we contain no directory separator.
20217as_myself=
20218case $0 in #((
20219  *[\\/]* ) as_myself=$0 ;;
20220  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20221for as_dir in $PATH
20222do
20223  IFS=$as_save_IFS
20224  case $as_dir in #(((
20225    '') as_dir=./ ;;
20226    */) ;;
20227    *) as_dir=$as_dir/ ;;
20228  esac
20229    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20230  done
20231IFS=$as_save_IFS
20232
20233     ;;
20234esac
20235# We did not find ourselves, most probably we were run as 'sh COMMAND'
20236# in which case we are not to be found in the path.
20237if test "x$as_myself" = x; then
20238  as_myself=$0
20239fi
20240if test ! -f "$as_myself"; then
20241  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20242  exit 1
20243fi
20244
20245
20246
20247# as_fn_error STATUS ERROR [LINENO LOG_FD]
20248# ----------------------------------------
20249# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20250# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20251# script with STATUS, using 1 if that was 0.
20252as_fn_error ()
20253{
20254  as_status=$1; test $as_status -eq 0 && as_status=1
20255  if test "$4"; then
20256    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20257    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20258  fi
20259  printf "%s\n" "$as_me: error: $2" >&2
20260  as_fn_exit $as_status
20261} # as_fn_error
20262
20263
20264# as_fn_set_status STATUS
20265# -----------------------
20266# Set $? to STATUS, without forking.
20267as_fn_set_status ()
20268{
20269  return $1
20270} # as_fn_set_status
20271
20272# as_fn_exit STATUS
20273# -----------------
20274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20275as_fn_exit ()
20276{
20277  set +e
20278  as_fn_set_status $1
20279  exit $1
20280} # as_fn_exit
20281
20282# as_fn_unset VAR
20283# ---------------
20284# Portably unset VAR.
20285as_fn_unset ()
20286{
20287  { eval $1=; unset $1;}
20288}
20289as_unset=as_fn_unset
20290
20291# as_fn_append VAR VALUE
20292# ----------------------
20293# Append the text in VALUE to the end of the definition contained in VAR. Take
20294# advantage of any shell optimizations that allow amortized linear growth over
20295# repeated appends, instead of the typical quadratic growth present in naive
20296# implementations.
20297if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20298then :
20299  eval 'as_fn_append ()
20300  {
20301    eval $1+=\$2
20302  }'
20303else case e in #(
20304  e) as_fn_append ()
20305  {
20306    eval $1=\$$1\$2
20307  } ;;
20308esac
20309fi # as_fn_append
20310
20311# as_fn_arith ARG...
20312# ------------------
20313# Perform arithmetic evaluation on the ARGs, and store the result in the
20314# global $as_val. Take advantage of shells that can avoid forks. The arguments
20315# must be portable across $(()) and expr.
20316if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20317then :
20318  eval 'as_fn_arith ()
20319  {
20320    as_val=$(( $* ))
20321  }'
20322else case e in #(
20323  e) as_fn_arith ()
20324  {
20325    as_val=`expr "$@" || test $? -eq 1`
20326  } ;;
20327esac
20328fi # as_fn_arith
20329
20330
20331if expr a : '\(a\)' >/dev/null 2>&1 &&
20332   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20333  as_expr=expr
20334else
20335  as_expr=false
20336fi
20337
20338if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20339  as_basename=basename
20340else
20341  as_basename=false
20342fi
20343
20344if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20345  as_dirname=dirname
20346else
20347  as_dirname=false
20348fi
20349
20350as_me=`$as_basename -- "$0" ||
20351$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20352	 X"$0" : 'X\(//\)$' \| \
20353	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20354printf "%s\n" X/"$0" |
20355    sed '/^.*\/\([^/][^/]*\)\/*$/{
20356	    s//\1/
20357	    q
20358	  }
20359	  /^X\/\(\/\/\)$/{
20360	    s//\1/
20361	    q
20362	  }
20363	  /^X\/\(\/\).*/{
20364	    s//\1/
20365	    q
20366	  }
20367	  s/.*/./; q'`
20368
20369# Avoid depending upon Character Ranges.
20370as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20371as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20372as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20373as_cr_digits='0123456789'
20374as_cr_alnum=$as_cr_Letters$as_cr_digits
20375
20376
20377# Determine whether it's possible to make 'echo' print without a newline.
20378# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20379# for compatibility with existing Makefiles.
20380ECHO_C= ECHO_N= ECHO_T=
20381case `echo -n x` in #(((((
20382-n*)
20383  case `echo 'xy\c'` in
20384  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20385  xy)  ECHO_C='\c';;
20386  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20387       ECHO_T='	';;
20388  esac;;
20389*)
20390  ECHO_N='-n';;
20391esac
20392
20393# For backward compatibility with old third-party macros, we provide
20394# the shell variables $as_echo and $as_echo_n.  New code should use
20395# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20396as_echo='printf %s\n'
20397as_echo_n='printf %s'
20398
20399rm -f conf$$ conf$$.exe conf$$.file
20400if test -d conf$$.dir; then
20401  rm -f conf$$.dir/conf$$.file
20402else
20403  rm -f conf$$.dir
20404  mkdir conf$$.dir 2>/dev/null
20405fi
20406if (echo >conf$$.file) 2>/dev/null; then
20407  if ln -s conf$$.file conf$$ 2>/dev/null; then
20408    as_ln_s='ln -s'
20409    # ... but there are two gotchas:
20410    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
20411    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
20412    # In both cases, we have to default to 'cp -pR'.
20413    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20414      as_ln_s='cp -pR'
20415  elif ln conf$$.file conf$$ 2>/dev/null; then
20416    as_ln_s=ln
20417  else
20418    as_ln_s='cp -pR'
20419  fi
20420else
20421  as_ln_s='cp -pR'
20422fi
20423rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20424rmdir conf$$.dir 2>/dev/null
20425
20426
20427# as_fn_mkdir_p
20428# -------------
20429# Create "$as_dir" as a directory, including parents if necessary.
20430as_fn_mkdir_p ()
20431{
20432
20433  case $as_dir in #(
20434  -*) as_dir=./$as_dir;;
20435  esac
20436  test -d "$as_dir" || eval $as_mkdir_p || {
20437    as_dirs=
20438    while :; do
20439      case $as_dir in #(
20440      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20441      *) as_qdir=$as_dir;;
20442      esac
20443      as_dirs="'$as_qdir' $as_dirs"
20444      as_dir=`$as_dirname -- "$as_dir" ||
20445$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20446	 X"$as_dir" : 'X\(//\)[^/]' \| \
20447	 X"$as_dir" : 'X\(//\)$' \| \
20448	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20449printf "%s\n" X"$as_dir" |
20450    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20451	    s//\1/
20452	    q
20453	  }
20454	  /^X\(\/\/\)[^/].*/{
20455	    s//\1/
20456	    q
20457	  }
20458	  /^X\(\/\/\)$/{
20459	    s//\1/
20460	    q
20461	  }
20462	  /^X\(\/\).*/{
20463	    s//\1/
20464	    q
20465	  }
20466	  s/.*/./; q'`
20467      test -d "$as_dir" && break
20468    done
20469    test -z "$as_dirs" || eval "mkdir $as_dirs"
20470  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20471
20472
20473} # as_fn_mkdir_p
20474if mkdir -p . 2>/dev/null; then
20475  as_mkdir_p='mkdir -p "$as_dir"'
20476else
20477  test -d ./-p && rmdir ./-p
20478  as_mkdir_p=false
20479fi
20480
20481
20482# as_fn_executable_p FILE
20483# -----------------------
20484# Test if FILE is an executable regular file.
20485as_fn_executable_p ()
20486{
20487  test -f "$1" && test -x "$1"
20488} # as_fn_executable_p
20489as_test_x='test -x'
20490as_executable_p=as_fn_executable_p
20491
20492# Sed expression to map a string onto a valid CPP name.
20493as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
20494as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
20495
20496# Sed expression to map a string onto a valid variable name.
20497as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20498as_tr_sh="eval sed '$as_sed_sh'" # deprecated
20499
20500
20501exec 6>&1
20502## ----------------------------------- ##
20503## Main body of $CONFIG_STATUS script. ##
20504## ----------------------------------- ##
20505_ASEOF
20506test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20507
20508cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20509# Save the log message, to keep $0 and so on meaningful, and to
20510# report actual input values of CONFIG_FILES etc. instead of their
20511# values after options handling.
20512ac_log="
20513This file was extended by xf86-input-elographics $as_me 1.4.4, which was
20514generated by GNU Autoconf 2.72.  Invocation command line was
20515
20516  CONFIG_FILES    = $CONFIG_FILES
20517  CONFIG_HEADERS  = $CONFIG_HEADERS
20518  CONFIG_LINKS    = $CONFIG_LINKS
20519  CONFIG_COMMANDS = $CONFIG_COMMANDS
20520  $ $0 $@
20521
20522on `(hostname || uname -n) 2>/dev/null | sed 1q`
20523"
20524
20525_ACEOF
20526
20527case $ac_config_files in *"
20528"*) set x $ac_config_files; shift; ac_config_files=$*;;
20529esac
20530
20531case $ac_config_headers in *"
20532"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20533esac
20534
20535
20536cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20537# Files that config.status was made for.
20538config_files="$ac_config_files"
20539config_headers="$ac_config_headers"
20540config_commands="$ac_config_commands"
20541
20542_ACEOF
20543
20544cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20545ac_cs_usage="\
20546'$as_me' instantiates files and other configuration actions
20547from templates according to the current configuration.  Unless the files
20548and actions are specified as TAGs, all are instantiated by default.
20549
20550Usage: $0 [OPTION]... [TAG]...
20551
20552  -h, --help       print this help, then exit
20553  -V, --version    print version number and configuration settings, then exit
20554      --config     print configuration, then exit
20555  -q, --quiet, --silent
20556                   do not print progress messages
20557  -d, --debug      don't remove temporary files
20558      --recheck    update $as_me by reconfiguring in the same conditions
20559      --file=FILE[:TEMPLATE]
20560                   instantiate the configuration file FILE
20561      --header=FILE[:TEMPLATE]
20562                   instantiate the configuration header FILE
20563
20564Configuration files:
20565$config_files
20566
20567Configuration headers:
20568$config_headers
20569
20570Configuration commands:
20571$config_commands
20572
20573Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-input-elographics/-/issues>."
20574
20575_ACEOF
20576ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20577ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20578cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20579ac_cs_config='$ac_cs_config_escaped'
20580ac_cs_version="\\
20581xf86-input-elographics config.status 1.4.4
20582configured by $0, generated by GNU Autoconf 2.72,
20583  with options \\"\$ac_cs_config\\"
20584
20585Copyright (C) 2023 Free Software Foundation, Inc.
20586This config.status script is free software; the Free Software Foundation
20587gives unlimited permission to copy, distribute and modify it."
20588
20589ac_pwd='$ac_pwd'
20590srcdir='$srcdir'
20591INSTALL='$INSTALL'
20592MKDIR_P='$MKDIR_P'
20593AWK='$AWK'
20594test -n "\$AWK" || AWK=awk
20595_ACEOF
20596
20597cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20598# The default lists apply if the user does not specify any file.
20599ac_need_defaults=:
20600while test $# != 0
20601do
20602  case $1 in
20603  --*=?*)
20604    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20605    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20606    ac_shift=:
20607    ;;
20608  --*=)
20609    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20610    ac_optarg=
20611    ac_shift=:
20612    ;;
20613  *)
20614    ac_option=$1
20615    ac_optarg=$2
20616    ac_shift=shift
20617    ;;
20618  esac
20619
20620  case $ac_option in
20621  # Handling of the options.
20622  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20623    ac_cs_recheck=: ;;
20624  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20625    printf "%s\n" "$ac_cs_version"; exit ;;
20626  --config | --confi | --conf | --con | --co | --c )
20627    printf "%s\n" "$ac_cs_config"; exit ;;
20628  --debug | --debu | --deb | --de | --d | -d )
20629    debug=: ;;
20630  --file | --fil | --fi | --f )
20631    $ac_shift
20632    case $ac_optarg in
20633    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20634    '') as_fn_error $? "missing file argument" ;;
20635    esac
20636    as_fn_append CONFIG_FILES " '$ac_optarg'"
20637    ac_need_defaults=false;;
20638  --header | --heade | --head | --hea )
20639    $ac_shift
20640    case $ac_optarg in
20641    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20642    esac
20643    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20644    ac_need_defaults=false;;
20645  --he | --h)
20646    # Conflict between --help and --header
20647    as_fn_error $? "ambiguous option: '$1'
20648Try '$0 --help' for more information.";;
20649  --help | --hel | -h )
20650    printf "%s\n" "$ac_cs_usage"; exit ;;
20651  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20652  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20653    ac_cs_silent=: ;;
20654
20655  # This is an error.
20656  -*) as_fn_error $? "unrecognized option: '$1'
20657Try '$0 --help' for more information." ;;
20658
20659  *) as_fn_append ac_config_targets " $1"
20660     ac_need_defaults=false ;;
20661
20662  esac
20663  shift
20664done
20665
20666ac_configure_extra_args=
20667
20668if $ac_cs_silent; then
20669  exec 6>/dev/null
20670  ac_configure_extra_args="$ac_configure_extra_args --silent"
20671fi
20672
20673_ACEOF
20674cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20675if \$ac_cs_recheck; then
20676  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20677  shift
20678  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20679  CONFIG_SHELL='$SHELL'
20680  export CONFIG_SHELL
20681  exec "\$@"
20682fi
20683
20684_ACEOF
20685cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20686exec 5>>config.log
20687{
20688  echo
20689  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20690## Running $as_me. ##
20691_ASBOX
20692  printf "%s\n" "$ac_log"
20693} >&5
20694
20695_ACEOF
20696cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20697#
20698# INIT-COMMANDS
20699#
20700AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20701
20702
20703# The HP-UX ksh and POSIX shell print the target directory to stdout
20704# if CDPATH is set.
20705(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20706
20707sed_quote_subst='$sed_quote_subst'
20708double_quote_subst='$double_quote_subst'
20709delay_variable_subst='$delay_variable_subst'
20710macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20711macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20712enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20713enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20714pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20715enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20716shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20717SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20718ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20719PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20720host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20721host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20722host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20723build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20724build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20725build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20726SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20727Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20728GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20729EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20730FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20731LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20732NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20733LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20734max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20735ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20736exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20737lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20738lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20739lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20740lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20741lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20742reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20743reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20744FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20745OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20746deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20747file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20748file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20749want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20750DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20751sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20752AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20753lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20754AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20755archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20756STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20757RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20758old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20759old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20760old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20761lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20762CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20763CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20764compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20765GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20766lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20767lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20768lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20769lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20770lt_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"`'
20771lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20772nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20773lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20774lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20775objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20776MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20777lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20778lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20779lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20780lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20781lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20782need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20783MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20784DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20785NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20786LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20787OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20788OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20789libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20790shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20791extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20792archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20793enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20794export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20795whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20796compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20797old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20798old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20799archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20800archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20801module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20802module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20803with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20804allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20805no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20806hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20807hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20808hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20809hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20810hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20811hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20812hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20813inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20814link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20815always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20816export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20817exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20818include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20819prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20820postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20821file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20822variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20823need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20824need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20825version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20826runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20827shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20828shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20829libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20830library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20831soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20832install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20833postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20834postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20835finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20836finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20837hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20838sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20839configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20840configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20841hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20842enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20843enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20844enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20845old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20846striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20847
20848LTCC='$LTCC'
20849LTCFLAGS='$LTCFLAGS'
20850compiler='$compiler_DEFAULT'
20851
20852# A function that is used when there is no print builtin or printf.
20853func_fallback_echo ()
20854{
20855  eval 'cat <<_LTECHO_EOF
20856\$1
20857_LTECHO_EOF'
20858}
20859
20860# Quote evaled strings.
20861for var in SHELL \
20862ECHO \
20863PATH_SEPARATOR \
20864SED \
20865GREP \
20866EGREP \
20867FGREP \
20868LD \
20869NM \
20870LN_S \
20871lt_SP2NL \
20872lt_NL2SP \
20873reload_flag \
20874FILECMD \
20875OBJDUMP \
20876deplibs_check_method \
20877file_magic_cmd \
20878file_magic_glob \
20879want_nocaseglob \
20880DLLTOOL \
20881sharedlib_from_linklib_cmd \
20882AR \
20883archiver_list_spec \
20884STRIP \
20885RANLIB \
20886CC \
20887CFLAGS \
20888compiler \
20889lt_cv_sys_global_symbol_pipe \
20890lt_cv_sys_global_symbol_to_cdecl \
20891lt_cv_sys_global_symbol_to_import \
20892lt_cv_sys_global_symbol_to_c_name_address \
20893lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20894lt_cv_nm_interface \
20895nm_file_list_spec \
20896lt_cv_truncate_bin \
20897lt_prog_compiler_no_builtin_flag \
20898lt_prog_compiler_pic \
20899lt_prog_compiler_wl \
20900lt_prog_compiler_static \
20901lt_cv_prog_compiler_c_o \
20902need_locks \
20903MANIFEST_TOOL \
20904DSYMUTIL \
20905NMEDIT \
20906LIPO \
20907OTOOL \
20908OTOOL64 \
20909shrext_cmds \
20910export_dynamic_flag_spec \
20911whole_archive_flag_spec \
20912compiler_needs_object \
20913with_gnu_ld \
20914allow_undefined_flag \
20915no_undefined_flag \
20916hardcode_libdir_flag_spec \
20917hardcode_libdir_separator \
20918exclude_expsyms \
20919include_expsyms \
20920file_list_spec \
20921variables_saved_for_relink \
20922libname_spec \
20923library_names_spec \
20924soname_spec \
20925install_override_mode \
20926finish_eval \
20927old_striplib \
20928striplib; do
20929    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20930    *[\\\\\\\`\\"\\\$]*)
20931      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20932      ;;
20933    *)
20934      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20935      ;;
20936    esac
20937done
20938
20939# Double-quote double-evaled strings.
20940for var in reload_cmds \
20941old_postinstall_cmds \
20942old_postuninstall_cmds \
20943old_archive_cmds \
20944extract_expsyms_cmds \
20945old_archive_from_new_cmds \
20946old_archive_from_expsyms_cmds \
20947archive_cmds \
20948archive_expsym_cmds \
20949module_cmds \
20950module_expsym_cmds \
20951export_symbols_cmds \
20952prelink_cmds \
20953postlink_cmds \
20954postinstall_cmds \
20955postuninstall_cmds \
20956finish_cmds \
20957sys_lib_search_path_spec \
20958configure_time_dlsearch_path \
20959configure_time_lt_sys_library_path; do
20960    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20961    *[\\\\\\\`\\"\\\$]*)
20962      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20963      ;;
20964    *)
20965      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20966      ;;
20967    esac
20968done
20969
20970ac_aux_dir='$ac_aux_dir'
20971
20972# See if we are running on zsh, and set the options that allow our
20973# commands through without removal of \ escapes INIT.
20974if test -n "\${ZSH_VERSION+set}"; then
20975   setopt NO_GLOB_SUBST
20976fi
20977
20978
20979    PACKAGE='$PACKAGE'
20980    VERSION='$VERSION'
20981    RM='$RM'
20982    ofile='$ofile'
20983
20984
20985
20986
20987_ACEOF
20988
20989cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20990
20991# Handling of arguments.
20992for ac_config_target in $ac_config_targets
20993do
20994  case $ac_config_target in
20995    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20996    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20997    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20998    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20999    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21000    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21001
21002  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
21003  esac
21004done
21005
21006
21007# If the user did not use the arguments to specify the items to instantiate,
21008# then the envvar interface is used.  Set only those that are not.
21009# We use the long form for the default assignment because of an extremely
21010# bizarre bug on SunOS 4.1.3.
21011if $ac_need_defaults; then
21012  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21013  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21014  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21015fi
21016
21017# Have a temporary directory for convenience.  Make it in the build tree
21018# simply because there is no reason against having it here, and in addition,
21019# creating and moving files from /tmp can sometimes cause problems.
21020# Hook for its removal unless debugging.
21021# Note that there is a small window in which the directory will not be cleaned:
21022# after its creation but before its name has been assigned to '$tmp'.
21023$debug ||
21024{
21025  tmp= ac_tmp=
21026  trap 'exit_status=$?
21027  : "${ac_tmp:=$tmp}"
21028  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21029' 0
21030  trap 'as_fn_exit 1' 1 2 13 15
21031}
21032# Create a (secure) tmp directory for tmp files.
21033
21034{
21035  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21036  test -d "$tmp"
21037}  ||
21038{
21039  tmp=./conf$$-$RANDOM
21040  (umask 077 && mkdir "$tmp")
21041} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21042ac_tmp=$tmp
21043
21044# Set up the scripts for CONFIG_FILES section.
21045# No need to generate them if there are no CONFIG_FILES.
21046# This happens for instance with './config.status config.h'.
21047if test -n "$CONFIG_FILES"; then
21048
21049
21050ac_cr=`echo X | tr X '\015'`
21051# On cygwin, bash can eat \r inside `` if the user requested igncr.
21052# But we know of no other shell where ac_cr would be empty at this
21053# point, so we can use a bashism as a fallback.
21054if test "x$ac_cr" = x; then
21055  eval ac_cr=\$\'\\r\'
21056fi
21057ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21058if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21059  ac_cs_awk_cr='\\r'
21060else
21061  ac_cs_awk_cr=$ac_cr
21062fi
21063
21064echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21065_ACEOF
21066
21067
21068{
21069  echo "cat >conf$$subs.awk <<_ACEOF" &&
21070  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21071  echo "_ACEOF"
21072} >conf$$subs.sh ||
21073  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21074ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21075ac_delim='%!_!# '
21076for ac_last_try in false false false false false :; do
21077  . ./conf$$subs.sh ||
21078    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21079
21080  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21081  if test $ac_delim_n = $ac_delim_num; then
21082    break
21083  elif $ac_last_try; then
21084    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21085  else
21086    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21087  fi
21088done
21089rm -f conf$$subs.sh
21090
21091cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21092cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21093_ACEOF
21094sed -n '
21095h
21096s/^/S["/; s/!.*/"]=/
21097p
21098g
21099s/^[^!]*!//
21100:repl
21101t repl
21102s/'"$ac_delim"'$//
21103t delim
21104:nl
21105h
21106s/\(.\{148\}\)..*/\1/
21107t more1
21108s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21109p
21110n
21111b repl
21112:more1
21113s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21114p
21115g
21116s/.\{148\}//
21117t nl
21118:delim
21119h
21120s/\(.\{148\}\)..*/\1/
21121t more2
21122s/["\\]/\\&/g; s/^/"/; s/$/"/
21123p
21124b
21125:more2
21126s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21127p
21128g
21129s/.\{148\}//
21130t delim
21131' <conf$$subs.awk | sed '
21132/^[^""]/{
21133  N
21134  s/\n//
21135}
21136' >>$CONFIG_STATUS || ac_write_fail=1
21137rm -f conf$$subs.awk
21138cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21139_ACAWK
21140cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21141  for (key in S) S_is_set[key] = 1
21142  FS = ""
21143
21144}
21145{
21146  line = $ 0
21147  nfields = split(line, field, "@")
21148  substed = 0
21149  len = length(field[1])
21150  for (i = 2; i < nfields; i++) {
21151    key = field[i]
21152    keylen = length(key)
21153    if (S_is_set[key]) {
21154      value = S[key]
21155      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21156      len += length(value) + length(field[++i])
21157      substed = 1
21158    } else
21159      len += 1 + keylen
21160  }
21161
21162  print line
21163}
21164
21165_ACAWK
21166_ACEOF
21167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21168if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21169  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21170else
21171  cat
21172fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21173  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21174_ACEOF
21175
21176# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21177# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21178# trailing colons and then remove the whole line if VPATH becomes empty
21179# (actually we leave an empty line to preserve line numbers).
21180if test "x$srcdir" = x.; then
21181  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21182h
21183s///
21184s/^/:/
21185s/[	 ]*$/:/
21186s/:\$(srcdir):/:/g
21187s/:\${srcdir}:/:/g
21188s/:@srcdir@:/:/g
21189s/^:*//
21190s/:*$//
21191x
21192s/\(=[	 ]*\).*/\1/
21193G
21194s/\n//
21195s/^[^=]*=[	 ]*$//
21196}'
21197fi
21198
21199cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21200fi # test -n "$CONFIG_FILES"
21201
21202# Set up the scripts for CONFIG_HEADERS section.
21203# No need to generate them if there are no CONFIG_HEADERS.
21204# This happens for instance with './config.status Makefile'.
21205if test -n "$CONFIG_HEADERS"; then
21206cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21207BEGIN {
21208_ACEOF
21209
21210# Transform confdefs.h into an awk script 'defines.awk', embedded as
21211# here-document in config.status, that substitutes the proper values into
21212# config.h.in to produce config.h.
21213
21214# Create a delimiter string that does not exist in confdefs.h, to ease
21215# handling of long lines.
21216ac_delim='%!_!# '
21217for ac_last_try in false false :; do
21218  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21219  if test -z "$ac_tt"; then
21220    break
21221  elif $ac_last_try; then
21222    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21223  else
21224    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21225  fi
21226done
21227
21228# For the awk script, D is an array of macro values keyed by name,
21229# likewise P contains macro parameters if any.  Preserve backslash
21230# newline sequences.
21231
21232ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21233sed -n '
21234s/.\{148\}/&'"$ac_delim"'/g
21235t rset
21236:rset
21237s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21238t def
21239d
21240:def
21241s/\\$//
21242t bsnl
21243s/["\\]/\\&/g
21244s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21245D["\1"]=" \3"/p
21246s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21247d
21248:bsnl
21249s/["\\]/\\&/g
21250s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21251D["\1"]=" \3\\\\\\n"\\/p
21252t cont
21253s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21254t cont
21255d
21256:cont
21257n
21258s/.\{148\}/&'"$ac_delim"'/g
21259t clear
21260:clear
21261s/\\$//
21262t bsnlc
21263s/["\\]/\\&/g; s/^/"/; s/$/"/p
21264d
21265:bsnlc
21266s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21267b cont
21268' <confdefs.h | sed '
21269s/'"$ac_delim"'/"\\\
21270"/g' >>$CONFIG_STATUS || ac_write_fail=1
21271
21272cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21273  for (key in D) D_is_set[key] = 1
21274  FS = ""
21275}
21276/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21277  line = \$ 0
21278  split(line, arg, " ")
21279  if (arg[1] == "#") {
21280    defundef = arg[2]
21281    mac1 = arg[3]
21282  } else {
21283    defundef = substr(arg[1], 2)
21284    mac1 = arg[2]
21285  }
21286  split(mac1, mac2, "(") #)
21287  macro = mac2[1]
21288  prefix = substr(line, 1, index(line, defundef) - 1)
21289  if (D_is_set[macro]) {
21290    # Preserve the white space surrounding the "#".
21291    print prefix "define", macro P[macro] D[macro]
21292    next
21293  } else {
21294    # Replace #undef with comments.  This is necessary, for example,
21295    # in the case of _POSIX_SOURCE, which is predefined and required
21296    # on some systems where configure will not decide to define it.
21297    if (defundef == "undef") {
21298      print "/*", prefix defundef, macro, "*/"
21299      next
21300    }
21301  }
21302}
21303{ print }
21304_ACAWK
21305_ACEOF
21306cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21307  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21308fi # test -n "$CONFIG_HEADERS"
21309
21310
21311eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21312shift
21313for ac_tag
21314do
21315  case $ac_tag in
21316  :[FHLC]) ac_mode=$ac_tag; continue;;
21317  esac
21318  case $ac_mode$ac_tag in
21319  :[FHL]*:*);;
21320  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
21321  :[FH]-) ac_tag=-:-;;
21322  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21323  esac
21324  ac_save_IFS=$IFS
21325  IFS=:
21326  set x $ac_tag
21327  IFS=$ac_save_IFS
21328  shift
21329  ac_file=$1
21330  shift
21331
21332  case $ac_mode in
21333  :L) ac_source=$1;;
21334  :[FH])
21335    ac_file_inputs=
21336    for ac_f
21337    do
21338      case $ac_f in
21339      -) ac_f="$ac_tmp/stdin";;
21340      *) # Look for the file first in the build tree, then in the source tree
21341	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21342	 # because $ac_f cannot contain ':'.
21343	 test -f "$ac_f" ||
21344	   case $ac_f in
21345	   [\\/$]*) false;;
21346	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21347	   esac ||
21348	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
21349      esac
21350      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21351      as_fn_append ac_file_inputs " '$ac_f'"
21352    done
21353
21354    # Let's still pretend it is 'configure' which instantiates (i.e., don't
21355    # use $as_me), people would be surprised to read:
21356    #    /* config.h.  Generated by config.status.  */
21357    configure_input='Generated from '`
21358	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21359	`' by configure.'
21360    if test x"$ac_file" != x-; then
21361      configure_input="$ac_file.  $configure_input"
21362      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21363printf "%s\n" "$as_me: creating $ac_file" >&6;}
21364    fi
21365    # Neutralize special characters interpreted by sed in replacement strings.
21366    case $configure_input in #(
21367    *\&* | *\|* | *\\* )
21368       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21369       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21370    *) ac_sed_conf_input=$configure_input;;
21371    esac
21372
21373    case $ac_tag in
21374    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21375      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21376    esac
21377    ;;
21378  esac
21379
21380  ac_dir=`$as_dirname -- "$ac_file" ||
21381$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21382	 X"$ac_file" : 'X\(//\)[^/]' \| \
21383	 X"$ac_file" : 'X\(//\)$' \| \
21384	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21385printf "%s\n" X"$ac_file" |
21386    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21387	    s//\1/
21388	    q
21389	  }
21390	  /^X\(\/\/\)[^/].*/{
21391	    s//\1/
21392	    q
21393	  }
21394	  /^X\(\/\/\)$/{
21395	    s//\1/
21396	    q
21397	  }
21398	  /^X\(\/\).*/{
21399	    s//\1/
21400	    q
21401	  }
21402	  s/.*/./; q'`
21403  as_dir="$ac_dir"; as_fn_mkdir_p
21404  ac_builddir=.
21405
21406case "$ac_dir" in
21407.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21408*)
21409  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21410  # A ".." for each directory in $ac_dir_suffix.
21411  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21412  case $ac_top_builddir_sub in
21413  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21414  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21415  esac ;;
21416esac
21417ac_abs_top_builddir=$ac_pwd
21418ac_abs_builddir=$ac_pwd$ac_dir_suffix
21419# for backward compatibility:
21420ac_top_builddir=$ac_top_build_prefix
21421
21422case $srcdir in
21423  .)  # We are building in place.
21424    ac_srcdir=.
21425    ac_top_srcdir=$ac_top_builddir_sub
21426    ac_abs_top_srcdir=$ac_pwd ;;
21427  [\\/]* | ?:[\\/]* )  # Absolute name.
21428    ac_srcdir=$srcdir$ac_dir_suffix;
21429    ac_top_srcdir=$srcdir
21430    ac_abs_top_srcdir=$srcdir ;;
21431  *) # Relative name.
21432    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21433    ac_top_srcdir=$ac_top_build_prefix$srcdir
21434    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21435esac
21436ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21437
21438
21439  case $ac_mode in
21440  :F)
21441  #
21442  # CONFIG_FILE
21443  #
21444
21445  case $INSTALL in
21446  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21447  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21448  esac
21449  ac_MKDIR_P=$MKDIR_P
21450  case $MKDIR_P in
21451  [\\/$]* | ?:[\\/]* ) ;;
21452  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21453  esac
21454_ACEOF
21455
21456cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21457# If the template does not know about datarootdir, expand it.
21458# FIXME: This hack should be removed a few years after 2.60.
21459ac_datarootdir_hack=; ac_datarootdir_seen=
21460ac_sed_dataroot='
21461/datarootdir/ {
21462  p
21463  q
21464}
21465/@datadir@/p
21466/@docdir@/p
21467/@infodir@/p
21468/@localedir@/p
21469/@mandir@/p'
21470case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21471*datarootdir*) ac_datarootdir_seen=yes;;
21472*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21473  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21474printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21475_ACEOF
21476cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21477  ac_datarootdir_hack='
21478  s&@datadir@&$datadir&g
21479  s&@docdir@&$docdir&g
21480  s&@infodir@&$infodir&g
21481  s&@localedir@&$localedir&g
21482  s&@mandir@&$mandir&g
21483  s&\\\${datarootdir}&$datarootdir&g' ;;
21484esac
21485_ACEOF
21486
21487# Neutralize VPATH when '$srcdir' = '.'.
21488# Shell code in configure.ac might set extrasub.
21489# FIXME: do we really want to maintain this feature?
21490cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21491ac_sed_extra="$ac_vpsub
21492$extrasub
21493_ACEOF
21494cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21495:t
21496/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21497s|@configure_input@|$ac_sed_conf_input|;t t
21498s&@top_builddir@&$ac_top_builddir_sub&;t t
21499s&@top_build_prefix@&$ac_top_build_prefix&;t t
21500s&@srcdir@&$ac_srcdir&;t t
21501s&@abs_srcdir@&$ac_abs_srcdir&;t t
21502s&@top_srcdir@&$ac_top_srcdir&;t t
21503s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21504s&@builddir@&$ac_builddir&;t t
21505s&@abs_builddir@&$ac_abs_builddir&;t t
21506s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21507s&@INSTALL@&$ac_INSTALL&;t t
21508s&@MKDIR_P@&$ac_MKDIR_P&;t t
21509$ac_datarootdir_hack
21510"
21511eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21512  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21513
21514test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21515  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21516  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21517      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21518  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
21519which seems to be undefined.  Please make sure it is defined" >&5
21520printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
21521which seems to be undefined.  Please make sure it is defined" >&2;}
21522
21523  rm -f "$ac_tmp/stdin"
21524  case $ac_file in
21525  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21526  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21527  esac \
21528  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21529 ;;
21530  :H)
21531  #
21532  # CONFIG_HEADER
21533  #
21534  if test x"$ac_file" != x-; then
21535    {
21536      printf "%s\n" "/* $configure_input  */" >&1 \
21537      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21538    } >"$ac_tmp/config.h" \
21539      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21540    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21541      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21542printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21543    else
21544      rm -f "$ac_file"
21545      mv "$ac_tmp/config.h" "$ac_file" \
21546	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21547    fi
21548  else
21549    printf "%s\n" "/* $configure_input  */" >&1 \
21550      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21551      || as_fn_error $? "could not create -" "$LINENO" 5
21552  fi
21553# Compute "$ac_file"'s index in $config_headers.
21554_am_arg="$ac_file"
21555_am_stamp_count=1
21556for _am_header in $config_headers :; do
21557  case $_am_header in
21558    $_am_arg | $_am_arg:* )
21559      break ;;
21560    * )
21561      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21562  esac
21563done
21564echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21565$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21566	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21567	 X"$_am_arg" : 'X\(//\)$' \| \
21568	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21569printf "%s\n" X"$_am_arg" |
21570    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21571	    s//\1/
21572	    q
21573	  }
21574	  /^X\(\/\/\)[^/].*/{
21575	    s//\1/
21576	    q
21577	  }
21578	  /^X\(\/\/\)$/{
21579	    s//\1/
21580	    q
21581	  }
21582	  /^X\(\/\).*/{
21583	    s//\1/
21584	    q
21585	  }
21586	  s/.*/./; q'`/stamp-h$_am_stamp_count
21587 ;;
21588
21589  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21590printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21591 ;;
21592  esac
21593
21594
21595  case $ac_file$ac_mode in
21596    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21597  # Older Autoconf quotes --file arguments for eval, but not when files
21598  # are listed without --file.  Let's play safe and only enable the eval
21599  # if we detect the quoting.
21600  # TODO: see whether this extra hack can be removed once we start
21601  # requiring Autoconf 2.70 or later.
21602  case $CONFIG_FILES in #(
21603  *\'*) :
21604    eval set x "$CONFIG_FILES" ;; #(
21605  *) :
21606    set x $CONFIG_FILES ;; #(
21607  *) :
21608     ;;
21609esac
21610  shift
21611  # Used to flag and report bootstrapping failures.
21612  am_rc=0
21613  for am_mf
21614  do
21615    # Strip MF so we end up with the name of the file.
21616    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21617    # Check whether this is an Automake generated Makefile which includes
21618    # dependency-tracking related rules and includes.
21619    # Grep'ing the whole file directly is not great: AIX grep has a line
21620    # limit of 2048, but all sed's we know have understand at least 4000.
21621    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21622      || continue
21623    am_dirpart=`$as_dirname -- "$am_mf" ||
21624$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21625	 X"$am_mf" : 'X\(//\)[^/]' \| \
21626	 X"$am_mf" : 'X\(//\)$' \| \
21627	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21628printf "%s\n" X"$am_mf" |
21629    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21630	    s//\1/
21631	    q
21632	  }
21633	  /^X\(\/\/\)[^/].*/{
21634	    s//\1/
21635	    q
21636	  }
21637	  /^X\(\/\/\)$/{
21638	    s//\1/
21639	    q
21640	  }
21641	  /^X\(\/\).*/{
21642	    s//\1/
21643	    q
21644	  }
21645	  s/.*/./; q'`
21646    am_filepart=`$as_basename -- "$am_mf" ||
21647$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21648	 X"$am_mf" : 'X\(//\)$' \| \
21649	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21650printf "%s\n" X/"$am_mf" |
21651    sed '/^.*\/\([^/][^/]*\)\/*$/{
21652	    s//\1/
21653	    q
21654	  }
21655	  /^X\/\(\/\/\)$/{
21656	    s//\1/
21657	    q
21658	  }
21659	  /^X\/\(\/\).*/{
21660	    s//\1/
21661	    q
21662	  }
21663	  s/.*/./; q'`
21664    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21665      && sed -e '/# am--include-marker/d' "$am_filepart" \
21666        | $MAKE -f - am--depfiles" >&5
21667   (cd "$am_dirpart" \
21668      && sed -e '/# am--include-marker/d' "$am_filepart" \
21669        | $MAKE -f - am--depfiles) >&5 2>&5
21670   ac_status=$?
21671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672   (exit $ac_status); } || am_rc=$?
21673  done
21674  if test $am_rc -ne 0; then
21675    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21676printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21677as_fn_error $? "Something went wrong bootstrapping makefile fragments
21678    for automatic dependency tracking.  If GNU make was not used, consider
21679    re-running the configure script with MAKE=\"gmake\" (or whatever is
21680    necessary).  You can also try re-running configure with the
21681    '--disable-dependency-tracking' option to at least be able to build
21682    the package (albeit without support for automatic dependency tracking).
21683See 'config.log' for more details" "$LINENO" 5; }
21684  fi
21685  { am_dirpart=; unset am_dirpart;}
21686  { am_filepart=; unset am_filepart;}
21687  { am_mf=; unset am_mf;}
21688  { am_rc=; unset am_rc;}
21689  rm -f conftest-deps.mk
21690}
21691 ;;
21692    "libtool":C)
21693
21694    # See if we are running on zsh, and set the options that allow our
21695    # commands through without removal of \ escapes.
21696    if test -n "${ZSH_VERSION+set}"; then
21697      setopt NO_GLOB_SUBST
21698    fi
21699
21700    cfgfile=${ofile}T
21701    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21702    $RM "$cfgfile"
21703
21704    cat <<_LT_EOF >> "$cfgfile"
21705#! $SHELL
21706# Generated automatically by $as_me ($PACKAGE) $VERSION
21707# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21708# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21709
21710# Provide generalized library-building support services.
21711# Written by Gordon Matzigkeit, 1996
21712
21713# Copyright (C) 2014 Free Software Foundation, Inc.
21714# This is free software; see the source for copying conditions.  There is NO
21715# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21716
21717# GNU Libtool is free software; you can redistribute it and/or modify
21718# it under the terms of the GNU General Public License as published by
21719# the Free Software Foundation; either version 2 of of the License, or
21720# (at your option) any later version.
21721#
21722# As a special exception to the GNU General Public License, if you
21723# distribute this file as part of a program or library that is built
21724# using GNU Libtool, you may include this file under the  same
21725# distribution terms that you use for the rest of that program.
21726#
21727# GNU Libtool is distributed in the hope that it will be useful, but
21728# WITHOUT ANY WARRANTY; without even the implied warranty of
21729# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21730# GNU General Public License for more details.
21731#
21732# You should have received a copy of the GNU General Public License
21733# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21734
21735
21736# The names of the tagged configurations supported by this script.
21737available_tags=''
21738
21739# Configured defaults for sys_lib_dlsearch_path munging.
21740: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21741
21742# ### BEGIN LIBTOOL CONFIG
21743
21744# Which release of libtool.m4 was used?
21745macro_version=$macro_version
21746macro_revision=$macro_revision
21747
21748# Whether or not to build static libraries.
21749build_old_libs=$enable_static
21750
21751# Whether or not to build shared libraries.
21752build_libtool_libs=$enable_shared
21753
21754# What type of objects to build.
21755pic_mode=$pic_mode
21756
21757# Whether or not to optimize for fast installation.
21758fast_install=$enable_fast_install
21759
21760# Shared archive member basename,for filename based shared library versioning on AIX.
21761shared_archive_member_spec=$shared_archive_member_spec
21762
21763# Shell to use when invoking shell scripts.
21764SHELL=$lt_SHELL
21765
21766# An echo program that protects backslashes.
21767ECHO=$lt_ECHO
21768
21769# The PATH separator for the build system.
21770PATH_SEPARATOR=$lt_PATH_SEPARATOR
21771
21772# The host system.
21773host_alias=$host_alias
21774host=$host
21775host_os=$host_os
21776
21777# The build system.
21778build_alias=$build_alias
21779build=$build
21780build_os=$build_os
21781
21782# A sed program that does not truncate output.
21783SED=$lt_SED
21784
21785# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21786Xsed="\$SED -e 1s/^X//"
21787
21788# A grep program that handles long lines.
21789GREP=$lt_GREP
21790
21791# An ERE matcher.
21792EGREP=$lt_EGREP
21793
21794# A literal string matcher.
21795FGREP=$lt_FGREP
21796
21797# A BSD- or MS-compatible name lister.
21798NM=$lt_NM
21799
21800# Whether we need soft or hard links.
21801LN_S=$lt_LN_S
21802
21803# What is the maximum length of a command?
21804max_cmd_len=$max_cmd_len
21805
21806# Object file suffix (normally "o").
21807objext=$ac_objext
21808
21809# Executable file suffix (normally "").
21810exeext=$exeext
21811
21812# whether the shell understands "unset".
21813lt_unset=$lt_unset
21814
21815# turn spaces into newlines.
21816SP2NL=$lt_lt_SP2NL
21817
21818# turn newlines into spaces.
21819NL2SP=$lt_lt_NL2SP
21820
21821# convert \$build file names to \$host format.
21822to_host_file_cmd=$lt_cv_to_host_file_cmd
21823
21824# convert \$build files to toolchain format.
21825to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21826
21827# A file(cmd) program that detects file types.
21828FILECMD=$lt_FILECMD
21829
21830# An object symbol dumper.
21831OBJDUMP=$lt_OBJDUMP
21832
21833# Method to check whether dependent libraries are shared objects.
21834deplibs_check_method=$lt_deplibs_check_method
21835
21836# Command to use when deplibs_check_method = "file_magic".
21837file_magic_cmd=$lt_file_magic_cmd
21838
21839# How to find potential files when deplibs_check_method = "file_magic".
21840file_magic_glob=$lt_file_magic_glob
21841
21842# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21843want_nocaseglob=$lt_want_nocaseglob
21844
21845# DLL creation program.
21846DLLTOOL=$lt_DLLTOOL
21847
21848# Command to associate shared and link libraries.
21849sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21850
21851# The archiver.
21852AR=$lt_AR
21853
21854# Flags to create an archive (by configure).
21855lt_ar_flags=$lt_ar_flags
21856
21857# Flags to create an archive.
21858AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21859
21860# How to feed a file listing to the archiver.
21861archiver_list_spec=$lt_archiver_list_spec
21862
21863# A symbol stripping program.
21864STRIP=$lt_STRIP
21865
21866# Commands used to install an old-style archive.
21867RANLIB=$lt_RANLIB
21868old_postinstall_cmds=$lt_old_postinstall_cmds
21869old_postuninstall_cmds=$lt_old_postuninstall_cmds
21870
21871# Whether to use a lock for old archive extraction.
21872lock_old_archive_extraction=$lock_old_archive_extraction
21873
21874# A C compiler.
21875LTCC=$lt_CC
21876
21877# LTCC compiler flags.
21878LTCFLAGS=$lt_CFLAGS
21879
21880# Take the output of nm and produce a listing of raw symbols and C names.
21881global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21882
21883# Transform the output of nm in a proper C declaration.
21884global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21885
21886# Transform the output of nm into a list of symbols to manually relocate.
21887global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21888
21889# Transform the output of nm in a C name address pair.
21890global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21891
21892# Transform the output of nm in a C name address pair when lib prefix is needed.
21893global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21894
21895# The name lister interface.
21896nm_interface=$lt_lt_cv_nm_interface
21897
21898# Specify filename containing input files for \$NM.
21899nm_file_list_spec=$lt_nm_file_list_spec
21900
21901# The root where to search for dependent libraries,and where our libraries should be installed.
21902lt_sysroot=$lt_sysroot
21903
21904# Command to truncate a binary pipe.
21905lt_truncate_bin=$lt_lt_cv_truncate_bin
21906
21907# The name of the directory that contains temporary libtool files.
21908objdir=$objdir
21909
21910# Used to examine libraries when file_magic_cmd begins with "file".
21911MAGIC_CMD=$MAGIC_CMD
21912
21913# Must we lock files when doing compilation?
21914need_locks=$lt_need_locks
21915
21916# Manifest tool.
21917MANIFEST_TOOL=$lt_MANIFEST_TOOL
21918
21919# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21920DSYMUTIL=$lt_DSYMUTIL
21921
21922# Tool to change global to local symbols on Mac OS X.
21923NMEDIT=$lt_NMEDIT
21924
21925# Tool to manipulate fat objects and archives on Mac OS X.
21926LIPO=$lt_LIPO
21927
21928# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21929OTOOL=$lt_OTOOL
21930
21931# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21932OTOOL64=$lt_OTOOL64
21933
21934# Old archive suffix (normally "a").
21935libext=$libext
21936
21937# Shared library suffix (normally ".so").
21938shrext_cmds=$lt_shrext_cmds
21939
21940# The commands to extract the exported symbol list from a shared archive.
21941extract_expsyms_cmds=$lt_extract_expsyms_cmds
21942
21943# Variables whose values should be saved in libtool wrapper scripts and
21944# restored at link time.
21945variables_saved_for_relink=$lt_variables_saved_for_relink
21946
21947# Do we need the "lib" prefix for modules?
21948need_lib_prefix=$need_lib_prefix
21949
21950# Do we need a version for libraries?
21951need_version=$need_version
21952
21953# Library versioning type.
21954version_type=$version_type
21955
21956# Shared library runtime path variable.
21957runpath_var=$runpath_var
21958
21959# Shared library path variable.
21960shlibpath_var=$shlibpath_var
21961
21962# Is shlibpath searched before the hard-coded library search path?
21963shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21964
21965# Format of library name prefix.
21966libname_spec=$lt_libname_spec
21967
21968# List of archive names.  First name is the real one, the rest are links.
21969# The last name is the one that the linker finds with -lNAME
21970library_names_spec=$lt_library_names_spec
21971
21972# The coded name of the library, if different from the real name.
21973soname_spec=$lt_soname_spec
21974
21975# Permission mode override for installation of shared libraries.
21976install_override_mode=$lt_install_override_mode
21977
21978# Command to use after installation of a shared archive.
21979postinstall_cmds=$lt_postinstall_cmds
21980
21981# Command to use after uninstallation of a shared archive.
21982postuninstall_cmds=$lt_postuninstall_cmds
21983
21984# Commands used to finish a libtool library installation in a directory.
21985finish_cmds=$lt_finish_cmds
21986
21987# As "finish_cmds", except a single script fragment to be evaled but
21988# not shown.
21989finish_eval=$lt_finish_eval
21990
21991# Whether we should hardcode library paths into libraries.
21992hardcode_into_libs=$hardcode_into_libs
21993
21994# Compile-time system search path for libraries.
21995sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21996
21997# Detected run-time system search path for libraries.
21998sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21999
22000# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22001configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22002
22003# Whether dlopen is supported.
22004dlopen_support=$enable_dlopen
22005
22006# Whether dlopen of programs is supported.
22007dlopen_self=$enable_dlopen_self
22008
22009# Whether dlopen of statically linked programs is supported.
22010dlopen_self_static=$enable_dlopen_self_static
22011
22012# Commands to strip libraries.
22013old_striplib=$lt_old_striplib
22014striplib=$lt_striplib
22015
22016
22017# The linker used to build libraries.
22018LD=$lt_LD
22019
22020# How to create reloadable object files.
22021reload_flag=$lt_reload_flag
22022reload_cmds=$lt_reload_cmds
22023
22024# Commands used to build an old-style archive.
22025old_archive_cmds=$lt_old_archive_cmds
22026
22027# A language specific compiler.
22028CC=$lt_compiler
22029
22030# Is the compiler the GNU compiler?
22031with_gcc=$GCC
22032
22033# Compiler flag to turn off builtin functions.
22034no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22035
22036# Additional compiler flags for building library objects.
22037pic_flag=$lt_lt_prog_compiler_pic
22038
22039# How to pass a linker flag through the compiler.
22040wl=$lt_lt_prog_compiler_wl
22041
22042# Compiler flag to prevent dynamic linking.
22043link_static_flag=$lt_lt_prog_compiler_static
22044
22045# Does compiler simultaneously support -c and -o options?
22046compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22047
22048# Whether or not to add -lc for building shared libraries.
22049build_libtool_need_lc=$archive_cmds_need_lc
22050
22051# Whether or not to disallow shared libs when runtime libs are static.
22052allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22053
22054# Compiler flag to allow reflexive dlopens.
22055export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22056
22057# Compiler flag to generate shared objects directly from archives.
22058whole_archive_flag_spec=$lt_whole_archive_flag_spec
22059
22060# Whether the compiler copes with passing no objects directly.
22061compiler_needs_object=$lt_compiler_needs_object
22062
22063# Create an old-style archive from a shared archive.
22064old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22065
22066# Create a temporary old-style archive to link instead of a shared archive.
22067old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22068
22069# Commands used to build a shared archive.
22070archive_cmds=$lt_archive_cmds
22071archive_expsym_cmds=$lt_archive_expsym_cmds
22072
22073# Commands used to build a loadable module if different from building
22074# a shared archive.
22075module_cmds=$lt_module_cmds
22076module_expsym_cmds=$lt_module_expsym_cmds
22077
22078# Whether we are building with GNU ld or not.
22079with_gnu_ld=$lt_with_gnu_ld
22080
22081# Flag that allows shared libraries with undefined symbols to be built.
22082allow_undefined_flag=$lt_allow_undefined_flag
22083
22084# Flag that enforces no undefined symbols.
22085no_undefined_flag=$lt_no_undefined_flag
22086
22087# Flag to hardcode \$libdir into a binary during linking.
22088# This must work even if \$libdir does not exist
22089hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22090
22091# Whether we need a single "-rpath" flag with a separated argument.
22092hardcode_libdir_separator=$lt_hardcode_libdir_separator
22093
22094# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22095# DIR into the resulting binary.
22096hardcode_direct=$hardcode_direct
22097
22098# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22099# DIR into the resulting binary and the resulting library dependency is
22100# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22101# library is relocated.
22102hardcode_direct_absolute=$hardcode_direct_absolute
22103
22104# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22105# into the resulting binary.
22106hardcode_minus_L=$hardcode_minus_L
22107
22108# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22109# into the resulting binary.
22110hardcode_shlibpath_var=$hardcode_shlibpath_var
22111
22112# Set to "yes" if building a shared library automatically hardcodes DIR
22113# into the library and all subsequent libraries and executables linked
22114# against it.
22115hardcode_automatic=$hardcode_automatic
22116
22117# Set to yes if linker adds runtime paths of dependent libraries
22118# to runtime path list.
22119inherit_rpath=$inherit_rpath
22120
22121# Whether libtool must link a program against all its dependency libraries.
22122link_all_deplibs=$link_all_deplibs
22123
22124# Set to "yes" if exported symbols are required.
22125always_export_symbols=$always_export_symbols
22126
22127# The commands to list exported symbols.
22128export_symbols_cmds=$lt_export_symbols_cmds
22129
22130# Symbols that should not be listed in the preloaded symbols.
22131exclude_expsyms=$lt_exclude_expsyms
22132
22133# Symbols that must always be exported.
22134include_expsyms=$lt_include_expsyms
22135
22136# Commands necessary for linking programs (against libraries) with templates.
22137prelink_cmds=$lt_prelink_cmds
22138
22139# Commands necessary for finishing linking programs.
22140postlink_cmds=$lt_postlink_cmds
22141
22142# Specify filename containing input files.
22143file_list_spec=$lt_file_list_spec
22144
22145# How to hardcode a shared library path into an executable.
22146hardcode_action=$hardcode_action
22147
22148# ### END LIBTOOL CONFIG
22149
22150_LT_EOF
22151
22152    cat <<'_LT_EOF' >> "$cfgfile"
22153
22154# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22155
22156# func_munge_path_list VARIABLE PATH
22157# -----------------------------------
22158# VARIABLE is name of variable containing _space_ separated list of
22159# directories to be munged by the contents of PATH, which is string
22160# having a format:
22161# "DIR[:DIR]:"
22162#       string "DIR[ DIR]" will be prepended to VARIABLE
22163# ":DIR[:DIR]"
22164#       string "DIR[ DIR]" will be appended to VARIABLE
22165# "DIRP[:DIRP]::[DIRA:]DIRA"
22166#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22167#       "DIRA[ DIRA]" will be appended to VARIABLE
22168# "DIR[:DIR]"
22169#       VARIABLE will be replaced by "DIR[ DIR]"
22170func_munge_path_list ()
22171{
22172    case x$2 in
22173    x)
22174        ;;
22175    *:)
22176        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22177        ;;
22178    x:*)
22179        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22180        ;;
22181    *::*)
22182        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22183        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22184        ;;
22185    *)
22186        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22187        ;;
22188    esac
22189}
22190
22191
22192# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22193func_cc_basename ()
22194{
22195    for cc_temp in $*""; do
22196      case $cc_temp in
22197        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22198        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22199        \-*) ;;
22200        *) break;;
22201      esac
22202    done
22203    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22204}
22205
22206
22207# ### END FUNCTIONS SHARED WITH CONFIGURE
22208
22209_LT_EOF
22210
22211  case $host_os in
22212  aix3*)
22213    cat <<\_LT_EOF >> "$cfgfile"
22214# AIX sometimes has problems with the GCC collect2 program.  For some
22215# reason, if we set the COLLECT_NAMES environment variable, the problems
22216# vanish in a puff of smoke.
22217if test set != "${COLLECT_NAMES+set}"; then
22218  COLLECT_NAMES=
22219  export COLLECT_NAMES
22220fi
22221_LT_EOF
22222    ;;
22223  esac
22224
22225
22226
22227ltmain=$ac_aux_dir/ltmain.sh
22228
22229
22230  # We use sed instead of cat because bash on DJGPP gets confused if
22231  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22232  # text mode, it properly converts lines to CR/LF.  This bash problem
22233  # is reportedly fixed, but why not run on old versions too?
22234  $SED '$q' "$ltmain" >> "$cfgfile" \
22235     || (rm -f "$cfgfile"; exit 1)
22236
22237   mv -f "$cfgfile" "$ofile" ||
22238    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22239  chmod +x "$ofile"
22240
22241 ;;
22242
22243  esac
22244done # for ac_tag
22245
22246
22247as_fn_exit 0
22248_ACEOF
22249ac_clean_files=$ac_clean_files_save
22250
22251test $ac_write_fail = 0 ||
22252  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22253
22254
22255# configure is writing to config.log, and then calls config.status.
22256# config.status does its own redirection, appending to config.log.
22257# Unfortunately, on DOS this fails, as config.log is still kept open
22258# by configure, so config.status won't be able to write to it; its
22259# output is simply discarded.  So we exec the FD to /dev/null,
22260# effectively closing config.log, so it can be properly (re)opened and
22261# appended to by config.status.  When coming back to configure, we
22262# need to make the FD available again.
22263if test "$no_create" != yes; then
22264  ac_cs_success=:
22265  ac_config_status_args=
22266  test "$silent" = yes &&
22267    ac_config_status_args="$ac_config_status_args --quiet"
22268  exec 5>/dev/null
22269  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22270  exec 5>>config.log
22271  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22272  # would make configure fail if this is the last instruction.
22273  $ac_cs_success || as_fn_exit 1
22274fi
22275if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22276  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22277printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22278fi
22279
22280
22281