configure revision 84febdac
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for libXft 2.3.4.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXft/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    PATH=/empty FPATH=/empty; export PATH FPATH
192    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194test \$(( 1 + 1 )) = 2 || exit 1"
195  if (eval "$as_required") 2>/dev/null
196then :
197  as_have_required=yes
198else $as_nop
199  as_have_required=no
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  case $as_dir in #(((
211    '') as_dir=./ ;;
212    */) ;;
213    *) as_dir=$as_dir/ ;;
214  esac
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $as_nop
239  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247      if test "x$CONFIG_SHELL" != x
248then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno
271then :
272  printf "%s\n" "$0: This script requires a shell more modern than all"
273  printf "%s\n" "$0: the shells that I found on your system."
274  if test ${ZSH_VERSION+y} ; then
275    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279$0: https://gitlab.freedesktop.org/xorg/lib/libXft/issues
280$0: about your system, including any error possibly output
281$0: before this message. Then install a modern shell, or
282$0: manually run the script under such a shell if you do
283$0: have one."
284  fi
285  exit 1
286fi
287fi
288fi
289SHELL=${CONFIG_SHELL-/bin/sh}
290export SHELL
291# Unset more variables known to interfere with behavior of common tools.
292CLICOLOR_FORCE= GREP_OPTIONS=
293unset CLICOLOR_FORCE GREP_OPTIONS
294
295## --------------------- ##
296## M4sh Shell Functions. ##
297## --------------------- ##
298# as_fn_unset VAR
299# ---------------
300# Portably unset VAR.
301as_fn_unset ()
302{
303  { eval $1=; unset $1;}
304}
305as_unset=as_fn_unset
306
307
308# as_fn_set_status STATUS
309# -----------------------
310# Set $? to STATUS, without forking.
311as_fn_set_status ()
312{
313  return $1
314} # as_fn_set_status
315
316# as_fn_exit STATUS
317# -----------------
318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319as_fn_exit ()
320{
321  set +e
322  as_fn_set_status $1
323  exit $1
324} # as_fn_exit
325# as_fn_nop
326# ---------
327# Do nothing but, unlike ":", preserve the value of $?.
328as_fn_nop ()
329{
330  return $?
331}
332as_nop=as_fn_nop
333
334# as_fn_mkdir_p
335# -------------
336# Create "$as_dir" as a directory, including parents if necessary.
337as_fn_mkdir_p ()
338{
339
340  case $as_dir in #(
341  -*) as_dir=./$as_dir;;
342  esac
343  test -d "$as_dir" || eval $as_mkdir_p || {
344    as_dirs=
345    while :; do
346      case $as_dir in #(
347      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348      *) as_qdir=$as_dir;;
349      esac
350      as_dirs="'$as_qdir' $as_dirs"
351      as_dir=`$as_dirname -- "$as_dir" ||
352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353	 X"$as_dir" : 'X\(//\)[^/]' \| \
354	 X"$as_dir" : 'X\(//\)$' \| \
355	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356printf "%s\n" X"$as_dir" |
357    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\/\)[^/].*/{
362	    s//\1/
363	    q
364	  }
365	  /^X\(\/\/\)$/{
366	    s//\1/
367	    q
368	  }
369	  /^X\(\/\).*/{
370	    s//\1/
371	    q
372	  }
373	  s/.*/./; q'`
374      test -d "$as_dir" && break
375    done
376    test -z "$as_dirs" || eval "mkdir $as_dirs"
377  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380} # as_fn_mkdir_p
381
382# as_fn_executable_p FILE
383# -----------------------
384# Test if FILE is an executable regular file.
385as_fn_executable_p ()
386{
387  test -f "$1" && test -x "$1"
388} # as_fn_executable_p
389# as_fn_append VAR VALUE
390# ----------------------
391# Append the text in VALUE to the end of the definition contained in VAR. Take
392# advantage of any shell optimizations that allow amortized linear growth over
393# repeated appends, instead of the typical quadratic growth present in naive
394# implementations.
395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396then :
397  eval 'as_fn_append ()
398  {
399    eval $1+=\$2
400  }'
401else $as_nop
402  as_fn_append ()
403  {
404    eval $1=\$$1\$2
405  }
406fi # as_fn_append
407
408# as_fn_arith ARG...
409# ------------------
410# Perform arithmetic evaluation on the ARGs, and store the result in the
411# global $as_val. Take advantage of shells that can avoid forks. The arguments
412# must be portable across $(()) and expr.
413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414then :
415  eval 'as_fn_arith ()
416  {
417    as_val=$(( $* ))
418  }'
419else $as_nop
420  as_fn_arith ()
421  {
422    as_val=`expr "$@" || test $? -eq 1`
423  }
424fi # as_fn_arith
425
426# as_fn_nop
427# ---------
428# Do nothing but, unlike ":", preserve the value of $?.
429as_fn_nop ()
430{
431  return $?
432}
433as_nop=as_fn_nop
434
435# as_fn_error STATUS ERROR [LINENO LOG_FD]
436# ----------------------------------------
437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439# script with STATUS, using 1 if that was 0.
440as_fn_error ()
441{
442  as_status=$1; test $as_status -eq 0 && as_status=1
443  if test "$4"; then
444    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446  fi
447  printf "%s\n" "$as_me: error: $2" >&2
448  as_fn_exit $as_status
449} # as_fn_error
450
451if expr a : '\(a\)' >/dev/null 2>&1 &&
452   test "X`expr 00001 : '.*\(...\)'`" = X001; then
453  as_expr=expr
454else
455  as_expr=false
456fi
457
458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459  as_basename=basename
460else
461  as_basename=false
462fi
463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465  as_dirname=dirname
466else
467  as_dirname=false
468fi
469
470as_me=`$as_basename -- "$0" ||
471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472	 X"$0" : 'X\(//\)$' \| \
473	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474printf "%s\n" X/"$0" |
475    sed '/^.*\/\([^/][^/]*\)\/*$/{
476	    s//\1/
477	    q
478	  }
479	  /^X\/\(\/\/\)$/{
480	    s//\1/
481	    q
482	  }
483	  /^X\/\(\/\).*/{
484	    s//\1/
485	    q
486	  }
487	  s/.*/./; q'`
488
489# Avoid depending upon Character Ranges.
490as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493as_cr_digits='0123456789'
494as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497  as_lineno_1=$LINENO as_lineno_1a=$LINENO
498  as_lineno_2=$LINENO as_lineno_2a=$LINENO
499  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
502  sed -n '
503    p
504    /[$]LINENO/=
505  ' <$as_myself |
506    sed '
507      s/[$]LINENO.*/&-/
508      t lineno
509      b
510      :lineno
511      N
512      :loop
513      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514      t loop
515      s/-\n.*//
516    ' >$as_me.lineno &&
517  chmod +x "$as_me.lineno" ||
518    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521  # already done that, so ensure we don't try to do so again and fall
522  # in an infinite loop.  This has already happened in practice.
523  _as_can_reexec=no; export _as_can_reexec
524  # Don't try to exec as it changes $[0], causing all sort of problems
525  # (the dirname of $[0] is not the place where we might find the
526  # original and so on.  Autoconf is especially sensitive to this).
527  . "./$as_me.lineno"
528  # Exit status is that of the last command.
529  exit
530}
531
532
533# Determine whether it's possible to make 'echo' print without a newline.
534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535# for compatibility with existing Makefiles.
536ECHO_C= ECHO_N= ECHO_T=
537case `echo -n x` in #(((((
538-n*)
539  case `echo 'xy\c'` in
540  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
541  xy)  ECHO_C='\c';;
542  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
543       ECHO_T='	';;
544  esac;;
545*)
546  ECHO_N='-n';;
547esac
548
549# For backward compatibility with old third-party macros, we provide
550# the shell variables $as_echo and $as_echo_n.  New code should use
551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552as_echo='printf %s\n'
553as_echo_n='printf %s'
554
555
556rm -f conf$$ conf$$.exe conf$$.file
557if test -d conf$$.dir; then
558  rm -f conf$$.dir/conf$$.file
559else
560  rm -f conf$$.dir
561  mkdir conf$$.dir 2>/dev/null
562fi
563if (echo >conf$$.file) 2>/dev/null; then
564  if ln -s conf$$.file conf$$ 2>/dev/null; then
565    as_ln_s='ln -s'
566    # ... but there are two gotchas:
567    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569    # In both cases, we have to default to `cp -pR'.
570    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571      as_ln_s='cp -pR'
572  elif ln conf$$.file conf$$ 2>/dev/null; then
573    as_ln_s=ln
574  else
575    as_ln_s='cp -pR'
576  fi
577else
578  as_ln_s='cp -pR'
579fi
580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581rmdir conf$$.dir 2>/dev/null
582
583if mkdir -p . 2>/dev/null; then
584  as_mkdir_p='mkdir -p "$as_dir"'
585else
586  test -d ./-p && rmdir ./-p
587  as_mkdir_p=false
588fi
589
590as_test_x='test -x'
591as_executable_p=as_fn_executable_p
592
593# Sed expression to map a string onto a valid CPP name.
594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596# Sed expression to map a string onto a valid variable name.
597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599SHELL=${CONFIG_SHELL-/bin/sh}
600
601
602test -n "$DJDIR" || exec 7<&0 </dev/null
603exec 6>&1
604
605# Name of the host.
606# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607# so uname gets run too.
608ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609
610#
611# Initializations.
612#
613ac_default_prefix=/usr/local
614ac_clean_files=
615ac_config_libobj_dir=.
616LIBOBJS=
617cross_compiling=no
618subdirs=
619MFLAGS=
620MAKEFLAGS=
621
622# Identity of this package.
623PACKAGE_NAME='libXft'
624PACKAGE_TARNAME='libXft'
625PACKAGE_VERSION='2.3.4'
626PACKAGE_STRING='libXft 2.3.4'
627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libXft/issues'
628PACKAGE_URL=''
629
630ac_unique_file="Makefile.am"
631# Factoring default headers for most tests.
632ac_includes_default="\
633#include <stddef.h>
634#ifdef HAVE_STDIO_H
635# include <stdio.h>
636#endif
637#ifdef HAVE_STDLIB_H
638# include <stdlib.h>
639#endif
640#ifdef HAVE_STRING_H
641# include <string.h>
642#endif
643#ifdef HAVE_INTTYPES_H
644# include <inttypes.h>
645#endif
646#ifdef HAVE_STDINT_H
647# include <stdint.h>
648#endif
649#ifdef HAVE_STRINGS_H
650# include <strings.h>
651#endif
652#ifdef HAVE_SYS_TYPES_H
653# include <sys/types.h>
654#endif
655#ifdef HAVE_SYS_STAT_H
656# include <sys/stat.h>
657#endif
658#ifdef HAVE_UNISTD_H
659# include <unistd.h>
660#endif"
661
662ac_header_c_list=
663ac_subst_vars='am__EXEEXT_FALSE
664am__EXEEXT_TRUE
665LTLIBOBJS
666LIBOBJS
667FONTCONFIG_LIBS
668FONTCONFIG_CFLAGS
669FREETYPE_LIBS
670FREETYPE_CFLAGS
671XRENDER_LIBS
672XRENDER_CFLAGS
673XFT_LT_VERSION
674MAN_SUBSTS
675XORG_MAN_PAGE
676ADMIN_MAN_DIR
677DRIVER_MAN_DIR
678MISC_MAN_DIR
679FILE_MAN_DIR
680LIB_MAN_DIR
681APP_MAN_DIR
682ADMIN_MAN_SUFFIX
683DRIVER_MAN_SUFFIX
684MISC_MAN_SUFFIX
685FILE_MAN_SUFFIX
686LIB_MAN_SUFFIX
687APP_MAN_SUFFIX
688INSTALL_CMD
689PKG_CONFIG_LIBDIR
690PKG_CONFIG_PATH
691PKG_CONFIG
692CHANGELOG_CMD
693STRICT_CFLAGS
694CWARNFLAGS
695BASE_CFLAGS
696LT_SYS_LIBRARY_PATH
697OTOOL64
698OTOOL
699LIPO
700NMEDIT
701DSYMUTIL
702MANIFEST_TOOL
703RANLIB
704ac_ct_AR
705AR
706DLLTOOL
707OBJDUMP
708LN_S
709NM
710ac_ct_DUMPBIN
711DUMPBIN
712LD
713FGREP
714EGREP
715GREP
716SED
717am__fastdepCC_FALSE
718am__fastdepCC_TRUE
719CCDEPMODE
720am__nodep
721AMDEPBACKSLASH
722AMDEP_FALSE
723AMDEP_TRUE
724am__include
725DEPDIR
726OBJEXT
727EXEEXT
728ac_ct_CC
729CPPFLAGS
730LDFLAGS
731CFLAGS
732CC
733host_os
734host_vendor
735host_cpu
736host
737build_os
738build_vendor
739build_cpu
740build
741LIBTOOL
742AM_BACKSLASH
743AM_DEFAULT_VERBOSITY
744AM_DEFAULT_V
745AM_V
746CSCOPE
747ETAGS
748CTAGS
749am__untar
750am__tar
751AMTAR
752am__leading_dot
753SET_MAKE
754AWK
755mkdir_p
756MKDIR_P
757INSTALL_STRIP_PROGRAM
758STRIP
759install_sh
760MAKEINFO
761AUTOHEADER
762AUTOMAKE
763AUTOCONF
764ACLOCAL
765VERSION
766PACKAGE
767CYGPATH_W
768am__isrc
769INSTALL_DATA
770INSTALL_SCRIPT
771INSTALL_PROGRAM
772target_alias
773host_alias
774build_alias
775LIBS
776ECHO_T
777ECHO_N
778ECHO_C
779DEFS
780mandir
781localedir
782libdir
783psdir
784pdfdir
785dvidir
786htmldir
787infodir
788docdir
789oldincludedir
790includedir
791runstatedir
792localstatedir
793sharedstatedir
794sysconfdir
795datadir
796datarootdir
797libexecdir
798sbindir
799bindir
800program_transform_name
801prefix
802exec_prefix
803PACKAGE_URL
804PACKAGE_BUGREPORT
805PACKAGE_STRING
806PACKAGE_VERSION
807PACKAGE_TARNAME
808PACKAGE_NAME
809PATH_SEPARATOR
810SHELL
811am__quote'
812ac_subst_files=''
813ac_user_opts='
814enable_option_checking
815enable_silent_rules
816enable_shared
817enable_static
818with_pic
819enable_fast_install
820with_aix_soname
821enable_dependency_tracking
822with_gnu_ld
823with_sysroot
824enable_libtool_lock
825enable_selective_werror
826enable_strict_compilation
827'
828      ac_precious_vars='build_alias
829host_alias
830target_alias
831CC
832CFLAGS
833LDFLAGS
834LIBS
835CPPFLAGS
836LT_SYS_LIBRARY_PATH
837PKG_CONFIG
838PKG_CONFIG_PATH
839PKG_CONFIG_LIBDIR
840XRENDER_CFLAGS
841XRENDER_LIBS
842FREETYPE_CFLAGS
843FREETYPE_LIBS
844FONTCONFIG_CFLAGS
845FONTCONFIG_LIBS'
846
847
848# Initialize some variables set by options.
849ac_init_help=
850ac_init_version=false
851ac_unrecognized_opts=
852ac_unrecognized_sep=
853# The variables have the same names as the options, with
854# dashes changed to underlines.
855cache_file=/dev/null
856exec_prefix=NONE
857no_create=
858no_recursion=
859prefix=NONE
860program_prefix=NONE
861program_suffix=NONE
862program_transform_name=s,x,x,
863silent=
864site=
865srcdir=
866verbose=
867x_includes=NONE
868x_libraries=NONE
869
870# Installation directory options.
871# These are left unexpanded so users can "make install exec_prefix=/foo"
872# and all the variables that are supposed to be based on exec_prefix
873# by default will actually change.
874# Use braces instead of parens because sh, perl, etc. also accept them.
875# (The list follows the same order as the GNU Coding Standards.)
876bindir='${exec_prefix}/bin'
877sbindir='${exec_prefix}/sbin'
878libexecdir='${exec_prefix}/libexec'
879datarootdir='${prefix}/share'
880datadir='${datarootdir}'
881sysconfdir='${prefix}/etc'
882sharedstatedir='${prefix}/com'
883localstatedir='${prefix}/var'
884runstatedir='${localstatedir}/run'
885includedir='${prefix}/include'
886oldincludedir='/usr/include'
887docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
888infodir='${datarootdir}/info'
889htmldir='${docdir}'
890dvidir='${docdir}'
891pdfdir='${docdir}'
892psdir='${docdir}'
893libdir='${exec_prefix}/lib'
894localedir='${datarootdir}/locale'
895mandir='${datarootdir}/man'
896
897ac_prev=
898ac_dashdash=
899for ac_option
900do
901  # If the previous option needs an argument, assign it.
902  if test -n "$ac_prev"; then
903    eval $ac_prev=\$ac_option
904    ac_prev=
905    continue
906  fi
907
908  case $ac_option in
909  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
910  *=)   ac_optarg= ;;
911  *)    ac_optarg=yes ;;
912  esac
913
914  case $ac_dashdash$ac_option in
915  --)
916    ac_dashdash=yes ;;
917
918  -bindir | --bindir | --bindi | --bind | --bin | --bi)
919    ac_prev=bindir ;;
920  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
921    bindir=$ac_optarg ;;
922
923  -build | --build | --buil | --bui | --bu)
924    ac_prev=build_alias ;;
925  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
926    build_alias=$ac_optarg ;;
927
928  -cache-file | --cache-file | --cache-fil | --cache-fi \
929  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
930    ac_prev=cache_file ;;
931  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
932  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
933    cache_file=$ac_optarg ;;
934
935  --config-cache | -C)
936    cache_file=config.cache ;;
937
938  -datadir | --datadir | --datadi | --datad)
939    ac_prev=datadir ;;
940  -datadir=* | --datadir=* | --datadi=* | --datad=*)
941    datadir=$ac_optarg ;;
942
943  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
944  | --dataroo | --dataro | --datar)
945    ac_prev=datarootdir ;;
946  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
947  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
948    datarootdir=$ac_optarg ;;
949
950  -disable-* | --disable-*)
951    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
952    # Reject names that are not valid shell variable names.
953    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954      as_fn_error $? "invalid feature name: \`$ac_useropt'"
955    ac_useropt_orig=$ac_useropt
956    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
957    case $ac_user_opts in
958      *"
959"enable_$ac_useropt"
960"*) ;;
961      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
962	 ac_unrecognized_sep=', ';;
963    esac
964    eval enable_$ac_useropt=no ;;
965
966  -docdir | --docdir | --docdi | --doc | --do)
967    ac_prev=docdir ;;
968  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
969    docdir=$ac_optarg ;;
970
971  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
972    ac_prev=dvidir ;;
973  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
974    dvidir=$ac_optarg ;;
975
976  -enable-* | --enable-*)
977    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
978    # Reject names that are not valid shell variable names.
979    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980      as_fn_error $? "invalid feature name: \`$ac_useropt'"
981    ac_useropt_orig=$ac_useropt
982    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
983    case $ac_user_opts in
984      *"
985"enable_$ac_useropt"
986"*) ;;
987      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
988	 ac_unrecognized_sep=', ';;
989    esac
990    eval enable_$ac_useropt=\$ac_optarg ;;
991
992  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
993  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
994  | --exec | --exe | --ex)
995    ac_prev=exec_prefix ;;
996  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
997  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
998  | --exec=* | --exe=* | --ex=*)
999    exec_prefix=$ac_optarg ;;
1000
1001  -gas | --gas | --ga | --g)
1002    # Obsolete; use --with-gas.
1003    with_gas=yes ;;
1004
1005  -help | --help | --hel | --he | -h)
1006    ac_init_help=long ;;
1007  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1008    ac_init_help=recursive ;;
1009  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1010    ac_init_help=short ;;
1011
1012  -host | --host | --hos | --ho)
1013    ac_prev=host_alias ;;
1014  -host=* | --host=* | --hos=* | --ho=*)
1015    host_alias=$ac_optarg ;;
1016
1017  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1018    ac_prev=htmldir ;;
1019  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1020  | --ht=*)
1021    htmldir=$ac_optarg ;;
1022
1023  -includedir | --includedir | --includedi | --included | --include \
1024  | --includ | --inclu | --incl | --inc)
1025    ac_prev=includedir ;;
1026  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1027  | --includ=* | --inclu=* | --incl=* | --inc=*)
1028    includedir=$ac_optarg ;;
1029
1030  -infodir | --infodir | --infodi | --infod | --info | --inf)
1031    ac_prev=infodir ;;
1032  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1033    infodir=$ac_optarg ;;
1034
1035  -libdir | --libdir | --libdi | --libd)
1036    ac_prev=libdir ;;
1037  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1038    libdir=$ac_optarg ;;
1039
1040  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1041  | --libexe | --libex | --libe)
1042    ac_prev=libexecdir ;;
1043  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1044  | --libexe=* | --libex=* | --libe=*)
1045    libexecdir=$ac_optarg ;;
1046
1047  -localedir | --localedir | --localedi | --localed | --locale)
1048    ac_prev=localedir ;;
1049  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1050    localedir=$ac_optarg ;;
1051
1052  -localstatedir | --localstatedir | --localstatedi | --localstated \
1053  | --localstate | --localstat | --localsta | --localst | --locals)
1054    ac_prev=localstatedir ;;
1055  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1056  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1057    localstatedir=$ac_optarg ;;
1058
1059  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1060    ac_prev=mandir ;;
1061  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1062    mandir=$ac_optarg ;;
1063
1064  -nfp | --nfp | --nf)
1065    # Obsolete; use --without-fp.
1066    with_fp=no ;;
1067
1068  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1069  | --no-cr | --no-c | -n)
1070    no_create=yes ;;
1071
1072  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1073  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1074    no_recursion=yes ;;
1075
1076  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1077  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1078  | --oldin | --oldi | --old | --ol | --o)
1079    ac_prev=oldincludedir ;;
1080  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1081  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1082  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1083    oldincludedir=$ac_optarg ;;
1084
1085  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1086    ac_prev=prefix ;;
1087  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1088    prefix=$ac_optarg ;;
1089
1090  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1091  | --program-pre | --program-pr | --program-p)
1092    ac_prev=program_prefix ;;
1093  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1094  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1095    program_prefix=$ac_optarg ;;
1096
1097  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1098  | --program-suf | --program-su | --program-s)
1099    ac_prev=program_suffix ;;
1100  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1101  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1102    program_suffix=$ac_optarg ;;
1103
1104  -program-transform-name | --program-transform-name \
1105  | --program-transform-nam | --program-transform-na \
1106  | --program-transform-n | --program-transform- \
1107  | --program-transform | --program-transfor \
1108  | --program-transfo | --program-transf \
1109  | --program-trans | --program-tran \
1110  | --progr-tra | --program-tr | --program-t)
1111    ac_prev=program_transform_name ;;
1112  -program-transform-name=* | --program-transform-name=* \
1113  | --program-transform-nam=* | --program-transform-na=* \
1114  | --program-transform-n=* | --program-transform-=* \
1115  | --program-transform=* | --program-transfor=* \
1116  | --program-transfo=* | --program-transf=* \
1117  | --program-trans=* | --program-tran=* \
1118  | --progr-tra=* | --program-tr=* | --program-t=*)
1119    program_transform_name=$ac_optarg ;;
1120
1121  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1122    ac_prev=pdfdir ;;
1123  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1124    pdfdir=$ac_optarg ;;
1125
1126  -psdir | --psdir | --psdi | --psd | --ps)
1127    ac_prev=psdir ;;
1128  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1129    psdir=$ac_optarg ;;
1130
1131  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1132  | -silent | --silent | --silen | --sile | --sil)
1133    silent=yes ;;
1134
1135  -runstatedir | --runstatedir | --runstatedi | --runstated \
1136  | --runstate | --runstat | --runsta | --runst | --runs \
1137  | --run | --ru | --r)
1138    ac_prev=runstatedir ;;
1139  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1140  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1141  | --run=* | --ru=* | --r=*)
1142    runstatedir=$ac_optarg ;;
1143
1144  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1145    ac_prev=sbindir ;;
1146  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1147  | --sbi=* | --sb=*)
1148    sbindir=$ac_optarg ;;
1149
1150  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1151  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1152  | --sharedst | --shareds | --shared | --share | --shar \
1153  | --sha | --sh)
1154    ac_prev=sharedstatedir ;;
1155  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1156  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1157  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1158  | --sha=* | --sh=*)
1159    sharedstatedir=$ac_optarg ;;
1160
1161  -site | --site | --sit)
1162    ac_prev=site ;;
1163  -site=* | --site=* | --sit=*)
1164    site=$ac_optarg ;;
1165
1166  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1167    ac_prev=srcdir ;;
1168  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1169    srcdir=$ac_optarg ;;
1170
1171  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1172  | --syscon | --sysco | --sysc | --sys | --sy)
1173    ac_prev=sysconfdir ;;
1174  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1175  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1176    sysconfdir=$ac_optarg ;;
1177
1178  -target | --target | --targe | --targ | --tar | --ta | --t)
1179    ac_prev=target_alias ;;
1180  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1181    target_alias=$ac_optarg ;;
1182
1183  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1184    verbose=yes ;;
1185
1186  -version | --version | --versio | --versi | --vers | -V)
1187    ac_init_version=: ;;
1188
1189  -with-* | --with-*)
1190    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1191    # Reject names that are not valid shell variable names.
1192    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193      as_fn_error $? "invalid package name: \`$ac_useropt'"
1194    ac_useropt_orig=$ac_useropt
1195    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1196    case $ac_user_opts in
1197      *"
1198"with_$ac_useropt"
1199"*) ;;
1200      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1201	 ac_unrecognized_sep=', ';;
1202    esac
1203    eval with_$ac_useropt=\$ac_optarg ;;
1204
1205  -without-* | --without-*)
1206    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1207    # Reject names that are not valid shell variable names.
1208    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1209      as_fn_error $? "invalid package name: \`$ac_useropt'"
1210    ac_useropt_orig=$ac_useropt
1211    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1212    case $ac_user_opts in
1213      *"
1214"with_$ac_useropt"
1215"*) ;;
1216      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1217	 ac_unrecognized_sep=', ';;
1218    esac
1219    eval with_$ac_useropt=no ;;
1220
1221  --x)
1222    # Obsolete; use --with-x.
1223    with_x=yes ;;
1224
1225  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1226  | --x-incl | --x-inc | --x-in | --x-i)
1227    ac_prev=x_includes ;;
1228  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1229  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1230    x_includes=$ac_optarg ;;
1231
1232  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1233  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1234    ac_prev=x_libraries ;;
1235  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1236  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1237    x_libraries=$ac_optarg ;;
1238
1239  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1240Try \`$0 --help' for more information"
1241    ;;
1242
1243  *=*)
1244    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1245    # Reject names that are not valid shell variable names.
1246    case $ac_envvar in #(
1247      '' | [0-9]* | *[!_$as_cr_alnum]* )
1248      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1249    esac
1250    eval $ac_envvar=\$ac_optarg
1251    export $ac_envvar ;;
1252
1253  *)
1254    # FIXME: should be removed in autoconf 3.0.
1255    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1256    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1257      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1258    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1259    ;;
1260
1261  esac
1262done
1263
1264if test -n "$ac_prev"; then
1265  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1266  as_fn_error $? "missing argument to $ac_option"
1267fi
1268
1269if test -n "$ac_unrecognized_opts"; then
1270  case $enable_option_checking in
1271    no) ;;
1272    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1273    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1274  esac
1275fi
1276
1277# Check all directory arguments for consistency.
1278for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1279		datadir sysconfdir sharedstatedir localstatedir includedir \
1280		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1281		libdir localedir mandir runstatedir
1282do
1283  eval ac_val=\$$ac_var
1284  # Remove trailing slashes.
1285  case $ac_val in
1286    */ )
1287      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1288      eval $ac_var=\$ac_val;;
1289  esac
1290  # Be sure to have absolute directory names.
1291  case $ac_val in
1292    [\\/$]* | ?:[\\/]* )  continue;;
1293    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1294  esac
1295  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1296done
1297
1298# There might be people who depend on the old broken behavior: `$host'
1299# used to hold the argument of --host etc.
1300# FIXME: To remove some day.
1301build=$build_alias
1302host=$host_alias
1303target=$target_alias
1304
1305# FIXME: To remove some day.
1306if test "x$host_alias" != x; then
1307  if test "x$build_alias" = x; then
1308    cross_compiling=maybe
1309  elif test "x$build_alias" != "x$host_alias"; then
1310    cross_compiling=yes
1311  fi
1312fi
1313
1314ac_tool_prefix=
1315test -n "$host_alias" && ac_tool_prefix=$host_alias-
1316
1317test "$silent" = yes && exec 6>/dev/null
1318
1319
1320ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321ac_ls_di=`ls -di .` &&
1322ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1323  as_fn_error $? "working directory cannot be determined"
1324test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325  as_fn_error $? "pwd does not report name of working directory"
1326
1327
1328# Find the source files, if location was not specified.
1329if test -z "$srcdir"; then
1330  ac_srcdir_defaulted=yes
1331  # Try the directory containing this script, then the parent directory.
1332  ac_confdir=`$as_dirname -- "$as_myself" ||
1333$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334	 X"$as_myself" : 'X\(//\)[^/]' \| \
1335	 X"$as_myself" : 'X\(//\)$' \| \
1336	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1337printf "%s\n" X"$as_myself" |
1338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339	    s//\1/
1340	    q
1341	  }
1342	  /^X\(\/\/\)[^/].*/{
1343	    s//\1/
1344	    q
1345	  }
1346	  /^X\(\/\/\)$/{
1347	    s//\1/
1348	    q
1349	  }
1350	  /^X\(\/\).*/{
1351	    s//\1/
1352	    q
1353	  }
1354	  s/.*/./; q'`
1355  srcdir=$ac_confdir
1356  if test ! -r "$srcdir/$ac_unique_file"; then
1357    srcdir=..
1358  fi
1359else
1360  ac_srcdir_defaulted=no
1361fi
1362if test ! -r "$srcdir/$ac_unique_file"; then
1363  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1365fi
1366ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1367ac_abs_confdir=`(
1368	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1369	pwd)`
1370# When building in place, set srcdir=.
1371if test "$ac_abs_confdir" = "$ac_pwd"; then
1372  srcdir=.
1373fi
1374# Remove unnecessary trailing slashes from srcdir.
1375# Double slashes in file names in object file debugging info
1376# mess up M-x gdb in Emacs.
1377case $srcdir in
1378*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379esac
1380for ac_var in $ac_precious_vars; do
1381  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382  eval ac_env_${ac_var}_value=\$${ac_var}
1383  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385done
1386
1387#
1388# Report the --help message.
1389#
1390if test "$ac_init_help" = "long"; then
1391  # Omit some internal or obsolete options to make the list less imposing.
1392  # This message is too long to be a string in the A/UX 3.1 sh.
1393  cat <<_ACEOF
1394\`configure' configures libXft 2.3.4 to adapt to many kinds of systems.
1395
1396Usage: $0 [OPTION]... [VAR=VALUE]...
1397
1398To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399VAR=VALUE.  See below for descriptions of some of the useful variables.
1400
1401Defaults for the options are specified in brackets.
1402
1403Configuration:
1404  -h, --help              display this help and exit
1405      --help=short        display options specific to this package
1406      --help=recursive    display the short help of all the included packages
1407  -V, --version           display version information and exit
1408  -q, --quiet, --silent   do not print \`checking ...' messages
1409      --cache-file=FILE   cache test results in FILE [disabled]
1410  -C, --config-cache      alias for \`--cache-file=config.cache'
1411  -n, --no-create         do not create output files
1412      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1413
1414Installation directories:
1415  --prefix=PREFIX         install architecture-independent files in PREFIX
1416                          [$ac_default_prefix]
1417  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1418                          [PREFIX]
1419
1420By default, \`make install' will install all the files in
1421\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1422an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423for instance \`--prefix=\$HOME'.
1424
1425For better control, use the options below.
1426
1427Fine tuning of the installation directories:
1428  --bindir=DIR            user executables [EPREFIX/bin]
1429  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1430  --libexecdir=DIR        program executables [EPREFIX/libexec]
1431  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1432  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1433  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1434  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1435  --libdir=DIR            object code libraries [EPREFIX/lib]
1436  --includedir=DIR        C header files [PREFIX/include]
1437  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1438  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1439  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1440  --infodir=DIR           info documentation [DATAROOTDIR/info]
1441  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1442  --mandir=DIR            man documentation [DATAROOTDIR/man]
1443  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXft]
1444  --htmldir=DIR           html documentation [DOCDIR]
1445  --dvidir=DIR            dvi documentation [DOCDIR]
1446  --pdfdir=DIR            pdf documentation [DOCDIR]
1447  --psdir=DIR             ps documentation [DOCDIR]
1448_ACEOF
1449
1450  cat <<\_ACEOF
1451
1452Program names:
1453  --program-prefix=PREFIX            prepend PREFIX to installed program names
1454  --program-suffix=SUFFIX            append SUFFIX to installed program names
1455  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1456
1457System types:
1458  --build=BUILD     configure for building on BUILD [guessed]
1459  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1460_ACEOF
1461fi
1462
1463if test -n "$ac_init_help"; then
1464  case $ac_init_help in
1465     short | recursive ) echo "Configuration of libXft 2.3.4:";;
1466   esac
1467  cat <<\_ACEOF
1468
1469Optional Features:
1470  --disable-option-checking  ignore unrecognized --enable/--with options
1471  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1472  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1473  --enable-silent-rules   less verbose build output (undo: "make V=1")
1474  --disable-silent-rules  verbose build output (undo: "make V=0")
1475  --enable-shared[=PKGS]  build shared libraries [default=yes]
1476  --enable-static[=PKGS]  build static libraries [default=yes]
1477  --enable-fast-install[=PKGS]
1478                          optimize for fast installation [default=yes]
1479  --enable-dependency-tracking
1480                          do not reject slow dependency extractors
1481  --disable-dependency-tracking
1482                          speeds up one-time build
1483  --disable-libtool-lock  avoid locking (might break parallel builds)
1484  --disable-selective-werror
1485                          Turn off selective compiler errors. (default:
1486                          enabled)
1487  --enable-strict-compilation
1488                          Enable all warnings from compiler and make them
1489                          errors (default: disabled)
1490
1491Optional Packages:
1492  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1493  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1494  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1495                          both]
1496  --with-aix-soname=aix|svr4|both
1497                          shared library versioning (aka "SONAME") variant to
1498                          provide on AIX, [default=aix].
1499  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1500  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1501                          compiler's sysroot if not specified).
1502
1503Some influential environment variables:
1504  CC          C compiler command
1505  CFLAGS      C compiler flags
1506  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1507              nonstandard directory <lib dir>
1508  LIBS        libraries to pass to the linker, e.g. -l<library>
1509  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1510              you have headers in a nonstandard directory <include dir>
1511  LT_SYS_LIBRARY_PATH
1512              User-defined run-time library search path.
1513  PKG_CONFIG  path to pkg-config utility
1514  PKG_CONFIG_PATH
1515              directories to add to pkg-config's search path
1516  PKG_CONFIG_LIBDIR
1517              path overriding pkg-config's built-in search path
1518  XRENDER_CFLAGS
1519              C compiler flags for XRENDER, overriding pkg-config
1520  XRENDER_LIBS
1521              linker flags for XRENDER, overriding pkg-config
1522  FREETYPE_CFLAGS
1523              C compiler flags for FREETYPE, overriding pkg-config
1524  FREETYPE_LIBS
1525              linker flags for FREETYPE, overriding pkg-config
1526  FONTCONFIG_CFLAGS
1527              C compiler flags for FONTCONFIG, overriding pkg-config
1528  FONTCONFIG_LIBS
1529              linker flags for FONTCONFIG, overriding pkg-config
1530
1531Use these variables to override the choices made by `configure' or to help
1532it to find libraries and programs with nonstandard names/locations.
1533
1534Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXft/issues>.
1535_ACEOF
1536ac_status=$?
1537fi
1538
1539if test "$ac_init_help" = "recursive"; then
1540  # If there are subdirs, report their specific --help.
1541  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1542    test -d "$ac_dir" ||
1543      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1544      continue
1545    ac_builddir=.
1546
1547case "$ac_dir" in
1548.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549*)
1550  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1551  # A ".." for each directory in $ac_dir_suffix.
1552  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1553  case $ac_top_builddir_sub in
1554  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556  esac ;;
1557esac
1558ac_abs_top_builddir=$ac_pwd
1559ac_abs_builddir=$ac_pwd$ac_dir_suffix
1560# for backward compatibility:
1561ac_top_builddir=$ac_top_build_prefix
1562
1563case $srcdir in
1564  .)  # We are building in place.
1565    ac_srcdir=.
1566    ac_top_srcdir=$ac_top_builddir_sub
1567    ac_abs_top_srcdir=$ac_pwd ;;
1568  [\\/]* | ?:[\\/]* )  # Absolute name.
1569    ac_srcdir=$srcdir$ac_dir_suffix;
1570    ac_top_srcdir=$srcdir
1571    ac_abs_top_srcdir=$srcdir ;;
1572  *) # Relative name.
1573    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574    ac_top_srcdir=$ac_top_build_prefix$srcdir
1575    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576esac
1577ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1578
1579    cd "$ac_dir" || { ac_status=$?; continue; }
1580    # Check for configure.gnu first; this name is used for a wrapper for
1581    # Metaconfig's "Configure" on case-insensitive file systems.
1582    if test -f "$ac_srcdir/configure.gnu"; then
1583      echo &&
1584      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1585    elif test -f "$ac_srcdir/configure"; then
1586      echo &&
1587      $SHELL "$ac_srcdir/configure" --help=recursive
1588    else
1589      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1590    fi || ac_status=$?
1591    cd "$ac_pwd" || { ac_status=$?; break; }
1592  done
1593fi
1594
1595test -n "$ac_init_help" && exit $ac_status
1596if $ac_init_version; then
1597  cat <<\_ACEOF
1598libXft configure 2.3.4
1599generated by GNU Autoconf 2.71
1600
1601Copyright (C) 2021 Free Software Foundation, Inc.
1602This configure script is free software; the Free Software Foundation
1603gives unlimited permission to copy, distribute and modify it.
1604_ACEOF
1605  exit
1606fi
1607
1608## ------------------------ ##
1609## Autoconf initialization. ##
1610## ------------------------ ##
1611
1612# ac_fn_c_try_compile LINENO
1613# --------------------------
1614# Try to compile conftest.$ac_ext, and return whether this succeeded.
1615ac_fn_c_try_compile ()
1616{
1617  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618  rm -f conftest.$ac_objext conftest.beam
1619  if { { ac_try="$ac_compile"
1620case "(($ac_try" in
1621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622  *) ac_try_echo=$ac_try;;
1623esac
1624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625printf "%s\n" "$ac_try_echo"; } >&5
1626  (eval "$ac_compile") 2>conftest.err
1627  ac_status=$?
1628  if test -s conftest.err; then
1629    grep -v '^ *+' conftest.err >conftest.er1
1630    cat conftest.er1 >&5
1631    mv -f conftest.er1 conftest.err
1632  fi
1633  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634  test $ac_status = 0; } && {
1635	 test -z "$ac_c_werror_flag" ||
1636	 test ! -s conftest.err
1637       } && test -s conftest.$ac_objext
1638then :
1639  ac_retval=0
1640else $as_nop
1641  printf "%s\n" "$as_me: failed program was:" >&5
1642sed 's/^/| /' conftest.$ac_ext >&5
1643
1644	ac_retval=1
1645fi
1646  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647  as_fn_set_status $ac_retval
1648
1649} # ac_fn_c_try_compile
1650
1651# ac_fn_c_try_link LINENO
1652# -----------------------
1653# Try to link conftest.$ac_ext, and return whether this succeeded.
1654ac_fn_c_try_link ()
1655{
1656  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1658  if { { ac_try="$ac_link"
1659case "(($ac_try" in
1660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661  *) ac_try_echo=$ac_try;;
1662esac
1663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664printf "%s\n" "$ac_try_echo"; } >&5
1665  (eval "$ac_link") 2>conftest.err
1666  ac_status=$?
1667  if test -s conftest.err; then
1668    grep -v '^ *+' conftest.err >conftest.er1
1669    cat conftest.er1 >&5
1670    mv -f conftest.er1 conftest.err
1671  fi
1672  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673  test $ac_status = 0; } && {
1674	 test -z "$ac_c_werror_flag" ||
1675	 test ! -s conftest.err
1676       } && test -s conftest$ac_exeext && {
1677	 test "$cross_compiling" = yes ||
1678	 test -x conftest$ac_exeext
1679       }
1680then :
1681  ac_retval=0
1682else $as_nop
1683  printf "%s\n" "$as_me: failed program was:" >&5
1684sed 's/^/| /' conftest.$ac_ext >&5
1685
1686	ac_retval=1
1687fi
1688  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1689  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1690  # interfere with the next link command; also delete a directory that is
1691  # left behind by Apple's compiler.  We do this before executing the actions.
1692  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1693  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694  as_fn_set_status $ac_retval
1695
1696} # ac_fn_c_try_link
1697
1698# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1699# -------------------------------------------------------
1700# Tests whether HEADER exists and can be compiled using the include files in
1701# INCLUDES, setting the cache variable VAR accordingly.
1702ac_fn_c_check_header_compile ()
1703{
1704  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706printf %s "checking for $2... " >&6; }
1707if eval test \${$3+y}
1708then :
1709  printf %s "(cached) " >&6
1710else $as_nop
1711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1712/* end confdefs.h.  */
1713$4
1714#include <$2>
1715_ACEOF
1716if ac_fn_c_try_compile "$LINENO"
1717then :
1718  eval "$3=yes"
1719else $as_nop
1720  eval "$3=no"
1721fi
1722rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1723fi
1724eval ac_res=\$$3
1725	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726printf "%s\n" "$ac_res" >&6; }
1727  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728
1729} # ac_fn_c_check_header_compile
1730
1731# ac_fn_c_check_func LINENO FUNC VAR
1732# ----------------------------------
1733# Tests whether FUNC exists, setting the cache variable VAR accordingly
1734ac_fn_c_check_func ()
1735{
1736  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738printf %s "checking for $2... " >&6; }
1739if eval test \${$3+y}
1740then :
1741  printf %s "(cached) " >&6
1742else $as_nop
1743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744/* end confdefs.h.  */
1745/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1746   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1747#define $2 innocuous_$2
1748
1749/* System header to define __stub macros and hopefully few prototypes,
1750   which can conflict with char $2 (); below.  */
1751
1752#include <limits.h>
1753#undef $2
1754
1755/* Override any GCC internal prototype to avoid an error.
1756   Use char because int might match the return type of a GCC
1757   builtin and then its argument prototype would still apply.  */
1758#ifdef __cplusplus
1759extern "C"
1760#endif
1761char $2 ();
1762/* The GNU C library defines this for functions which it implements
1763    to always fail with ENOSYS.  Some functions are actually named
1764    something starting with __ and the normal name is an alias.  */
1765#if defined __stub_$2 || defined __stub___$2
1766choke me
1767#endif
1768
1769int
1770main (void)
1771{
1772return $2 ();
1773  ;
1774  return 0;
1775}
1776_ACEOF
1777if ac_fn_c_try_link "$LINENO"
1778then :
1779  eval "$3=yes"
1780else $as_nop
1781  eval "$3=no"
1782fi
1783rm -f core conftest.err conftest.$ac_objext conftest.beam \
1784    conftest$ac_exeext conftest.$ac_ext
1785fi
1786eval ac_res=\$$3
1787	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788printf "%s\n" "$ac_res" >&6; }
1789  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790
1791} # ac_fn_c_check_func
1792
1793# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1794# ------------------------------------------------------------------
1795# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1796# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1797ac_fn_check_decl ()
1798{
1799  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800  as_decl_name=`echo $2|sed 's/ *(.*//'`
1801  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1802printf %s "checking whether $as_decl_name is declared... " >&6; }
1803if eval test \${$3+y}
1804then :
1805  printf %s "(cached) " >&6
1806else $as_nop
1807  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1808  eval ac_save_FLAGS=\$$6
1809  as_fn_append $6 " $5"
1810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811/* end confdefs.h.  */
1812$4
1813int
1814main (void)
1815{
1816#ifndef $as_decl_name
1817#ifdef __cplusplus
1818  (void) $as_decl_use;
1819#else
1820  (void) $as_decl_name;
1821#endif
1822#endif
1823
1824  ;
1825  return 0;
1826}
1827_ACEOF
1828if ac_fn_c_try_compile "$LINENO"
1829then :
1830  eval "$3=yes"
1831else $as_nop
1832  eval "$3=no"
1833fi
1834rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1835  eval $6=\$ac_save_FLAGS
1836
1837fi
1838eval ac_res=\$$3
1839	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840printf "%s\n" "$ac_res" >&6; }
1841  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842
1843} # ac_fn_check_decl
1844ac_configure_args_raw=
1845for ac_arg
1846do
1847  case $ac_arg in
1848  *\'*)
1849    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1850  esac
1851  as_fn_append ac_configure_args_raw " '$ac_arg'"
1852done
1853
1854case $ac_configure_args_raw in
1855  *$as_nl*)
1856    ac_safe_unquote= ;;
1857  *)
1858    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1859    ac_unsafe_a="$ac_unsafe_z#~"
1860    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1861    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1862esac
1863
1864cat >config.log <<_ACEOF
1865This file contains any messages produced by compilers while
1866running configure, to aid debugging if configure makes a mistake.
1867
1868It was created by libXft $as_me 2.3.4, which was
1869generated by GNU Autoconf 2.71.  Invocation command line was
1870
1871  $ $0$ac_configure_args_raw
1872
1873_ACEOF
1874exec 5>>config.log
1875{
1876cat <<_ASUNAME
1877## --------- ##
1878## Platform. ##
1879## --------- ##
1880
1881hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1882uname -m = `(uname -m) 2>/dev/null || echo unknown`
1883uname -r = `(uname -r) 2>/dev/null || echo unknown`
1884uname -s = `(uname -s) 2>/dev/null || echo unknown`
1885uname -v = `(uname -v) 2>/dev/null || echo unknown`
1886
1887/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1888/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1889
1890/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1891/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1892/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1893/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1894/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1895/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1896/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1897
1898_ASUNAME
1899
1900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901for as_dir in $PATH
1902do
1903  IFS=$as_save_IFS
1904  case $as_dir in #(((
1905    '') as_dir=./ ;;
1906    */) ;;
1907    *) as_dir=$as_dir/ ;;
1908  esac
1909    printf "%s\n" "PATH: $as_dir"
1910  done
1911IFS=$as_save_IFS
1912
1913} >&5
1914
1915cat >&5 <<_ACEOF
1916
1917
1918## ----------- ##
1919## Core tests. ##
1920## ----------- ##
1921
1922_ACEOF
1923
1924
1925# Keep a trace of the command line.
1926# Strip out --no-create and --no-recursion so they do not pile up.
1927# Strip out --silent because we don't want to record it for future runs.
1928# Also quote any args containing shell meta-characters.
1929# Make two passes to allow for proper duplicate-argument suppression.
1930ac_configure_args=
1931ac_configure_args0=
1932ac_configure_args1=
1933ac_must_keep_next=false
1934for ac_pass in 1 2
1935do
1936  for ac_arg
1937  do
1938    case $ac_arg in
1939    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1940    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1941    | -silent | --silent | --silen | --sile | --sil)
1942      continue ;;
1943    *\'*)
1944      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1945    esac
1946    case $ac_pass in
1947    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1948    2)
1949      as_fn_append ac_configure_args1 " '$ac_arg'"
1950      if test $ac_must_keep_next = true; then
1951	ac_must_keep_next=false # Got value, back to normal.
1952      else
1953	case $ac_arg in
1954	  *=* | --config-cache | -C | -disable-* | --disable-* \
1955	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1956	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1957	  | -with-* | --with-* | -without-* | --without-* | --x)
1958	    case "$ac_configure_args0 " in
1959	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1960	    esac
1961	    ;;
1962	  -* ) ac_must_keep_next=true ;;
1963	esac
1964      fi
1965      as_fn_append ac_configure_args " '$ac_arg'"
1966      ;;
1967    esac
1968  done
1969done
1970{ ac_configure_args0=; unset ac_configure_args0;}
1971{ ac_configure_args1=; unset ac_configure_args1;}
1972
1973# When interrupted or exit'd, cleanup temporary files, and complete
1974# config.log.  We remove comments because anyway the quotes in there
1975# would cause problems or look ugly.
1976# WARNING: Use '\'' to represent an apostrophe within the trap.
1977# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1978trap 'exit_status=$?
1979  # Sanitize IFS.
1980  IFS=" ""	$as_nl"
1981  # Save into config.log some information that might help in debugging.
1982  {
1983    echo
1984
1985    printf "%s\n" "## ---------------- ##
1986## Cache variables. ##
1987## ---------------- ##"
1988    echo
1989    # The following way of writing the cache mishandles newlines in values,
1990(
1991  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1992    eval ac_val=\$$ac_var
1993    case $ac_val in #(
1994    *${as_nl}*)
1995      case $ac_var in #(
1996      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1997printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1998      esac
1999      case $ac_var in #(
2000      _ | IFS | as_nl) ;; #(
2001      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2002      *) { eval $ac_var=; unset $ac_var;} ;;
2003      esac ;;
2004    esac
2005  done
2006  (set) 2>&1 |
2007    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2008    *${as_nl}ac_space=\ *)
2009      sed -n \
2010	"s/'\''/'\''\\\\'\'''\''/g;
2011	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2012      ;; #(
2013    *)
2014      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2015      ;;
2016    esac |
2017    sort
2018)
2019    echo
2020
2021    printf "%s\n" "## ----------------- ##
2022## Output variables. ##
2023## ----------------- ##"
2024    echo
2025    for ac_var in $ac_subst_vars
2026    do
2027      eval ac_val=\$$ac_var
2028      case $ac_val in
2029      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2030      esac
2031      printf "%s\n" "$ac_var='\''$ac_val'\''"
2032    done | sort
2033    echo
2034
2035    if test -n "$ac_subst_files"; then
2036      printf "%s\n" "## ------------------- ##
2037## File substitutions. ##
2038## ------------------- ##"
2039      echo
2040      for ac_var in $ac_subst_files
2041      do
2042	eval ac_val=\$$ac_var
2043	case $ac_val in
2044	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2045	esac
2046	printf "%s\n" "$ac_var='\''$ac_val'\''"
2047      done | sort
2048      echo
2049    fi
2050
2051    if test -s confdefs.h; then
2052      printf "%s\n" "## ----------- ##
2053## confdefs.h. ##
2054## ----------- ##"
2055      echo
2056      cat confdefs.h
2057      echo
2058    fi
2059    test "$ac_signal" != 0 &&
2060      printf "%s\n" "$as_me: caught signal $ac_signal"
2061    printf "%s\n" "$as_me: exit $exit_status"
2062  } >&5
2063  rm -f core *.core core.conftest.* &&
2064    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2065    exit $exit_status
2066' 0
2067for ac_signal in 1 2 13 15; do
2068  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2069done
2070ac_signal=0
2071
2072# confdefs.h avoids OS command line length limits that DEFS can exceed.
2073rm -f -r conftest* confdefs.h
2074
2075printf "%s\n" "/* confdefs.h */" > confdefs.h
2076
2077# Predefined preprocessor variables.
2078
2079printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2080
2081printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2082
2083printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2084
2085printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2086
2087printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2088
2089printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2090
2091
2092# Let the site file select an alternate cache file if it wants to.
2093# Prefer an explicitly selected file to automatically selected ones.
2094if test -n "$CONFIG_SITE"; then
2095  ac_site_files="$CONFIG_SITE"
2096elif test "x$prefix" != xNONE; then
2097  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2098else
2099  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2100fi
2101
2102for ac_site_file in $ac_site_files
2103do
2104  case $ac_site_file in #(
2105  */*) :
2106     ;; #(
2107  *) :
2108    ac_site_file=./$ac_site_file ;;
2109esac
2110  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2111    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2112printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2113    sed 's/^/| /' "$ac_site_file" >&5
2114    . "$ac_site_file" \
2115      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2116printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2117as_fn_error $? "failed to load site script $ac_site_file
2118See \`config.log' for more details" "$LINENO" 5; }
2119  fi
2120done
2121
2122if test -r "$cache_file"; then
2123  # Some versions of bash will fail to source /dev/null (special files
2124  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2125  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2126    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2127printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2128    case $cache_file in
2129      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2130      *)                      . "./$cache_file";;
2131    esac
2132  fi
2133else
2134  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2135printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2136  >$cache_file
2137fi
2138
2139# Test code for whether the C compiler supports C89 (global declarations)
2140ac_c_conftest_c89_globals='
2141/* Does the compiler advertise C89 conformance?
2142   Do not test the value of __STDC__, because some compilers set it to 0
2143   while being otherwise adequately conformant. */
2144#if !defined __STDC__
2145# error "Compiler does not advertise C89 conformance"
2146#endif
2147
2148#include <stddef.h>
2149#include <stdarg.h>
2150struct stat;
2151/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2152struct buf { int x; };
2153struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2154static char *e (p, i)
2155     char **p;
2156     int i;
2157{
2158  return p[i];
2159}
2160static char *f (char * (*g) (char **, int), char **p, ...)
2161{
2162  char *s;
2163  va_list v;
2164  va_start (v,p);
2165  s = g (p, va_arg (v,int));
2166  va_end (v);
2167  return s;
2168}
2169
2170/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2171   function prototypes and stuff, but not \xHH hex character constants.
2172   These do not provoke an error unfortunately, instead are silently treated
2173   as an "x".  The following induces an error, until -std is added to get
2174   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2175   array size at least.  It is necessary to write \x00 == 0 to get something
2176   that is true only with -std.  */
2177int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2178
2179/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2180   inside strings and character constants.  */
2181#define FOO(x) '\''x'\''
2182int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2183
2184int test (int i, double x);
2185struct s1 {int (*f) (int a);};
2186struct s2 {int (*f) (double a);};
2187int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2188               int, int);'
2189
2190# Test code for whether the C compiler supports C89 (body of main).
2191ac_c_conftest_c89_main='
2192ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2193'
2194
2195# Test code for whether the C compiler supports C99 (global declarations)
2196ac_c_conftest_c99_globals='
2197// Does the compiler advertise C99 conformance?
2198#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2199# error "Compiler does not advertise C99 conformance"
2200#endif
2201
2202#include <stdbool.h>
2203extern int puts (const char *);
2204extern int printf (const char *, ...);
2205extern int dprintf (int, const char *, ...);
2206extern void *malloc (size_t);
2207
2208// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2209// dprintf is used instead of fprintf to avoid needing to declare
2210// FILE and stderr.
2211#define debug(...) dprintf (2, __VA_ARGS__)
2212#define showlist(...) puts (#__VA_ARGS__)
2213#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2214static void
2215test_varargs_macros (void)
2216{
2217  int x = 1234;
2218  int y = 5678;
2219  debug ("Flag");
2220  debug ("X = %d\n", x);
2221  showlist (The first, second, and third items.);
2222  report (x>y, "x is %d but y is %d", x, y);
2223}
2224
2225// Check long long types.
2226#define BIG64 18446744073709551615ull
2227#define BIG32 4294967295ul
2228#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2229#if !BIG_OK
2230  #error "your preprocessor is broken"
2231#endif
2232#if BIG_OK
2233#else
2234  #error "your preprocessor is broken"
2235#endif
2236static long long int bignum = -9223372036854775807LL;
2237static unsigned long long int ubignum = BIG64;
2238
2239struct incomplete_array
2240{
2241  int datasize;
2242  double data[];
2243};
2244
2245struct named_init {
2246  int number;
2247  const wchar_t *name;
2248  double average;
2249};
2250
2251typedef const char *ccp;
2252
2253static inline int
2254test_restrict (ccp restrict text)
2255{
2256  // See if C++-style comments work.
2257  // Iterate through items via the restricted pointer.
2258  // Also check for declarations in for loops.
2259  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2260    continue;
2261  return 0;
2262}
2263
2264// Check varargs and va_copy.
2265static bool
2266test_varargs (const char *format, ...)
2267{
2268  va_list args;
2269  va_start (args, format);
2270  va_list args_copy;
2271  va_copy (args_copy, args);
2272
2273  const char *str = "";
2274  int number = 0;
2275  float fnumber = 0;
2276
2277  while (*format)
2278    {
2279      switch (*format++)
2280	{
2281	case '\''s'\'': // string
2282	  str = va_arg (args_copy, const char *);
2283	  break;
2284	case '\''d'\'': // int
2285	  number = va_arg (args_copy, int);
2286	  break;
2287	case '\''f'\'': // float
2288	  fnumber = va_arg (args_copy, double);
2289	  break;
2290	default:
2291	  break;
2292	}
2293    }
2294  va_end (args_copy);
2295  va_end (args);
2296
2297  return *str && number && fnumber;
2298}
2299'
2300
2301# Test code for whether the C compiler supports C99 (body of main).
2302ac_c_conftest_c99_main='
2303  // Check bool.
2304  _Bool success = false;
2305  success |= (argc != 0);
2306
2307  // Check restrict.
2308  if (test_restrict ("String literal") == 0)
2309    success = true;
2310  char *restrict newvar = "Another string";
2311
2312  // Check varargs.
2313  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2314  test_varargs_macros ();
2315
2316  // Check flexible array members.
2317  struct incomplete_array *ia =
2318    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2319  ia->datasize = 10;
2320  for (int i = 0; i < ia->datasize; ++i)
2321    ia->data[i] = i * 1.234;
2322
2323  // Check named initializers.
2324  struct named_init ni = {
2325    .number = 34,
2326    .name = L"Test wide string",
2327    .average = 543.34343,
2328  };
2329
2330  ni.number = 58;
2331
2332  int dynamic_array[ni.number];
2333  dynamic_array[0] = argv[0][0];
2334  dynamic_array[ni.number - 1] = 543;
2335
2336  // work around unused variable warnings
2337  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2338	 || dynamic_array[ni.number - 1] != 543);
2339'
2340
2341# Test code for whether the C compiler supports C11 (global declarations)
2342ac_c_conftest_c11_globals='
2343// Does the compiler advertise C11 conformance?
2344#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2345# error "Compiler does not advertise C11 conformance"
2346#endif
2347
2348// Check _Alignas.
2349char _Alignas (double) aligned_as_double;
2350char _Alignas (0) no_special_alignment;
2351extern char aligned_as_int;
2352char _Alignas (0) _Alignas (int) aligned_as_int;
2353
2354// Check _Alignof.
2355enum
2356{
2357  int_alignment = _Alignof (int),
2358  int_array_alignment = _Alignof (int[100]),
2359  char_alignment = _Alignof (char)
2360};
2361_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2362
2363// Check _Noreturn.
2364int _Noreturn does_not_return (void) { for (;;) continue; }
2365
2366// Check _Static_assert.
2367struct test_static_assert
2368{
2369  int x;
2370  _Static_assert (sizeof (int) <= sizeof (long int),
2371                  "_Static_assert does not work in struct");
2372  long int y;
2373};
2374
2375// Check UTF-8 literals.
2376#define u8 syntax error!
2377char const utf8_literal[] = u8"happens to be ASCII" "another string";
2378
2379// Check duplicate typedefs.
2380typedef long *long_ptr;
2381typedef long int *long_ptr;
2382typedef long_ptr long_ptr;
2383
2384// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2385struct anonymous
2386{
2387  union {
2388    struct { int i; int j; };
2389    struct { int k; long int l; } w;
2390  };
2391  int m;
2392} v1;
2393'
2394
2395# Test code for whether the C compiler supports C11 (body of main).
2396ac_c_conftest_c11_main='
2397  _Static_assert ((offsetof (struct anonymous, i)
2398		   == offsetof (struct anonymous, w.k)),
2399		  "Anonymous union alignment botch");
2400  v1.i = 2;
2401  v1.w.k = 5;
2402  ok |= v1.i != 5;
2403'
2404
2405# Test code for whether the C compiler supports C11 (complete).
2406ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2407${ac_c_conftest_c99_globals}
2408${ac_c_conftest_c11_globals}
2409
2410int
2411main (int argc, char **argv)
2412{
2413  int ok = 0;
2414  ${ac_c_conftest_c89_main}
2415  ${ac_c_conftest_c99_main}
2416  ${ac_c_conftest_c11_main}
2417  return ok;
2418}
2419"
2420
2421# Test code for whether the C compiler supports C99 (complete).
2422ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2423${ac_c_conftest_c99_globals}
2424
2425int
2426main (int argc, char **argv)
2427{
2428  int ok = 0;
2429  ${ac_c_conftest_c89_main}
2430  ${ac_c_conftest_c99_main}
2431  return ok;
2432}
2433"
2434
2435# Test code for whether the C compiler supports C89 (complete).
2436ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2437
2438int
2439main (int argc, char **argv)
2440{
2441  int ok = 0;
2442  ${ac_c_conftest_c89_main}
2443  return ok;
2444}
2445"
2446
2447as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2448as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2449as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2450as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2451as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2452as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2453as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2454as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2455as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2456
2457# Auxiliary files required by this configure script.
2458ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2459
2460# Locations in which to look for auxiliary files.
2461ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2462
2463# Search for a directory containing all of the required auxiliary files,
2464# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2465# If we don't find one directory that contains all the files we need,
2466# we report the set of missing files from the *first* directory in
2467# $ac_aux_dir_candidates and give up.
2468ac_missing_aux_files=""
2469ac_first_candidate=:
2470printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472as_found=false
2473for as_dir in $ac_aux_dir_candidates
2474do
2475  IFS=$as_save_IFS
2476  case $as_dir in #(((
2477    '') as_dir=./ ;;
2478    */) ;;
2479    *) as_dir=$as_dir/ ;;
2480  esac
2481  as_found=:
2482
2483  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2484  ac_aux_dir_found=yes
2485  ac_install_sh=
2486  for ac_aux in $ac_aux_files
2487  do
2488    # As a special case, if "install-sh" is required, that requirement
2489    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2490    # and $ac_install_sh is set appropriately for whichever one is found.
2491    if test x"$ac_aux" = x"install-sh"
2492    then
2493      if test -f "${as_dir}install-sh"; then
2494        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2495        ac_install_sh="${as_dir}install-sh -c"
2496      elif test -f "${as_dir}install.sh"; then
2497        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2498        ac_install_sh="${as_dir}install.sh -c"
2499      elif test -f "${as_dir}shtool"; then
2500        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2501        ac_install_sh="${as_dir}shtool install -c"
2502      else
2503        ac_aux_dir_found=no
2504        if $ac_first_candidate; then
2505          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2506        else
2507          break
2508        fi
2509      fi
2510    else
2511      if test -f "${as_dir}${ac_aux}"; then
2512        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2513      else
2514        ac_aux_dir_found=no
2515        if $ac_first_candidate; then
2516          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2517        else
2518          break
2519        fi
2520      fi
2521    fi
2522  done
2523  if test "$ac_aux_dir_found" = yes; then
2524    ac_aux_dir="$as_dir"
2525    break
2526  fi
2527  ac_first_candidate=false
2528
2529  as_found=false
2530done
2531IFS=$as_save_IFS
2532if $as_found
2533then :
2534
2535else $as_nop
2536  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2537fi
2538
2539
2540# These three variables are undocumented and unsupported,
2541# and are intended to be withdrawn in a future Autoconf release.
2542# They can cause serious problems if a builder's source tree is in a directory
2543# whose full name contains unusual characters.
2544if test -f "${ac_aux_dir}config.guess"; then
2545  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2546fi
2547if test -f "${ac_aux_dir}config.sub"; then
2548  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2549fi
2550if test -f "$ac_aux_dir/configure"; then
2551  ac_configure="$SHELL ${ac_aux_dir}configure"
2552fi
2553
2554# Check that the precious variables saved in the cache have kept the same
2555# value.
2556ac_cache_corrupted=false
2557for ac_var in $ac_precious_vars; do
2558  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2559  eval ac_new_set=\$ac_env_${ac_var}_set
2560  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2561  eval ac_new_val=\$ac_env_${ac_var}_value
2562  case $ac_old_set,$ac_new_set in
2563    set,)
2564      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2565printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2566      ac_cache_corrupted=: ;;
2567    ,set)
2568      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2569printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2570      ac_cache_corrupted=: ;;
2571    ,);;
2572    *)
2573      if test "x$ac_old_val" != "x$ac_new_val"; then
2574	# differences in whitespace do not lead to failure.
2575	ac_old_val_w=`echo x $ac_old_val`
2576	ac_new_val_w=`echo x $ac_new_val`
2577	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2578	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2579printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2580	  ac_cache_corrupted=:
2581	else
2582	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2583printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2584	  eval $ac_var=\$ac_old_val
2585	fi
2586	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2587printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2588	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2589printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2590      fi;;
2591  esac
2592  # Pass precious variables to config.status.
2593  if test "$ac_new_set" = set; then
2594    case $ac_new_val in
2595    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2596    *) ac_arg=$ac_var=$ac_new_val ;;
2597    esac
2598    case " $ac_configure_args " in
2599      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2600      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2601    esac
2602  fi
2603done
2604if $ac_cache_corrupted; then
2605  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2606printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2607  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2608printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2609  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2610	    and start over" "$LINENO" 5
2611fi
2612## -------------------- ##
2613## Main body of script. ##
2614## -------------------- ##
2615
2616ac_ext=c
2617ac_cpp='$CPP $CPPFLAGS'
2618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2620ac_compiler_gnu=$ac_cv_c_compiler_gnu
2621
2622
2623
2624ac_config_headers="$ac_config_headers config.h"
2625
2626
2627# Initialize Automake
2628am__api_version='1.16'
2629
2630
2631
2632  # Find a good install program.  We prefer a C program (faster),
2633# so one script is as good as another.  But avoid the broken or
2634# incompatible versions:
2635# SysV /etc/install, /usr/sbin/install
2636# SunOS /usr/etc/install
2637# IRIX /sbin/install
2638# AIX /bin/install
2639# AmigaOS /C/install, which installs bootblocks on floppy discs
2640# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2641# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2642# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2643# OS/2's system install, which has a completely different semantic
2644# ./install, which can be erroneously created by make from ./install.sh.
2645# Reject install programs that cannot install multiple files.
2646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2647printf %s "checking for a BSD-compatible install... " >&6; }
2648if test -z "$INSTALL"; then
2649if test ${ac_cv_path_install+y}
2650then :
2651  printf %s "(cached) " >&6
2652else $as_nop
2653  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654for as_dir in $PATH
2655do
2656  IFS=$as_save_IFS
2657  case $as_dir in #(((
2658    '') as_dir=./ ;;
2659    */) ;;
2660    *) as_dir=$as_dir/ ;;
2661  esac
2662    # Account for fact that we put trailing slashes in our PATH walk.
2663case $as_dir in #((
2664  ./ | /[cC]/* | \
2665  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2666  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2667  /usr/ucb/* ) ;;
2668  *)
2669    # OSF1 and SCO ODT 3.0 have their own names for install.
2670    # Don't use installbsd from OSF since it installs stuff as root
2671    # by default.
2672    for ac_prog in ginstall scoinst install; do
2673      for ac_exec_ext in '' $ac_executable_extensions; do
2674	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2675	  if test $ac_prog = install &&
2676	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2677	    # AIX install.  It has an incompatible calling convention.
2678	    :
2679	  elif test $ac_prog = install &&
2680	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2681	    # program-specific install script used by HP pwplus--don't use.
2682	    :
2683	  else
2684	    rm -rf conftest.one conftest.two conftest.dir
2685	    echo one > conftest.one
2686	    echo two > conftest.two
2687	    mkdir conftest.dir
2688	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2689	      test -s conftest.one && test -s conftest.two &&
2690	      test -s conftest.dir/conftest.one &&
2691	      test -s conftest.dir/conftest.two
2692	    then
2693	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2694	      break 3
2695	    fi
2696	  fi
2697	fi
2698      done
2699    done
2700    ;;
2701esac
2702
2703  done
2704IFS=$as_save_IFS
2705
2706rm -rf conftest.one conftest.two conftest.dir
2707
2708fi
2709  if test ${ac_cv_path_install+y}; then
2710    INSTALL=$ac_cv_path_install
2711  else
2712    # As a last resort, use the slow shell script.  Don't cache a
2713    # value for INSTALL within a source directory, because that will
2714    # break other packages using the cache if that directory is
2715    # removed, or if the value is a relative name.
2716    INSTALL=$ac_install_sh
2717  fi
2718fi
2719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2720printf "%s\n" "$INSTALL" >&6; }
2721
2722# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2723# It thinks the first close brace ends the variable substitution.
2724test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2725
2726test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2727
2728test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2729
2730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2731printf %s "checking whether build environment is sane... " >&6; }
2732# Reject unsafe characters in $srcdir or the absolute working directory
2733# name.  Accept space and tab only in the latter.
2734am_lf='
2735'
2736case `pwd` in
2737  *[\\\"\#\$\&\'\`$am_lf]*)
2738    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2739esac
2740case $srcdir in
2741  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2742    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2743esac
2744
2745# Do 'set' in a subshell so we don't clobber the current shell's
2746# arguments.  Must try -L first in case configure is actually a
2747# symlink; some systems play weird games with the mod time of symlinks
2748# (eg FreeBSD returns the mod time of the symlink's containing
2749# directory).
2750if (
2751   am_has_slept=no
2752   for am_try in 1 2; do
2753     echo "timestamp, slept: $am_has_slept" > conftest.file
2754     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2755     if test "$*" = "X"; then
2756	# -L didn't work.
2757	set X `ls -t "$srcdir/configure" conftest.file`
2758     fi
2759     if test "$*" != "X $srcdir/configure conftest.file" \
2760	&& test "$*" != "X conftest.file $srcdir/configure"; then
2761
2762	# If neither matched, then we have a broken ls.  This can happen
2763	# if, for instance, CONFIG_SHELL is bash and it inherits a
2764	# broken ls alias from the environment.  This has actually
2765	# happened.  Such a system could not be considered "sane".
2766	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2767  alias in your environment" "$LINENO" 5
2768     fi
2769     if test "$2" = conftest.file || test $am_try -eq 2; then
2770       break
2771     fi
2772     # Just in case.
2773     sleep 1
2774     am_has_slept=yes
2775   done
2776   test "$2" = conftest.file
2777   )
2778then
2779   # Ok.
2780   :
2781else
2782   as_fn_error $? "newly created file is older than distributed files!
2783Check your system clock" "$LINENO" 5
2784fi
2785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2786printf "%s\n" "yes" >&6; }
2787# If we didn't sleep, we still need to ensure time stamps of config.status and
2788# generated files are strictly newer.
2789am_sleep_pid=
2790if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2791  ( sleep 1 ) &
2792  am_sleep_pid=$!
2793fi
2794
2795rm -f conftest.file
2796
2797test "$program_prefix" != NONE &&
2798  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2799# Use a double $ so make ignores it.
2800test "$program_suffix" != NONE &&
2801  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2802# Double any \ or $.
2803# By default was `s,x,x', remove it if useless.
2804ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2805program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2806
2807
2808# Expand $ac_aux_dir to an absolute path.
2809am_aux_dir=`cd "$ac_aux_dir" && pwd`
2810
2811
2812  if test x"${MISSING+set}" != xset; then
2813  MISSING="\${SHELL} '$am_aux_dir/missing'"
2814fi
2815# Use eval to expand $SHELL
2816if eval "$MISSING --is-lightweight"; then
2817  am_missing_run="$MISSING "
2818else
2819  am_missing_run=
2820  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2821printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2822fi
2823
2824if test x"${install_sh+set}" != xset; then
2825  case $am_aux_dir in
2826  *\ * | *\	*)
2827    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2828  *)
2829    install_sh="\${SHELL} $am_aux_dir/install-sh"
2830  esac
2831fi
2832
2833# Installed binaries are usually stripped using 'strip' when the user
2834# run "make install-strip".  However 'strip' might not be the right
2835# tool to use in cross-compilation environments, therefore Automake
2836# will honor the 'STRIP' environment variable to overrule this program.
2837if test "$cross_compiling" != no; then
2838  if test -n "$ac_tool_prefix"; then
2839  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2840set dummy ${ac_tool_prefix}strip; ac_word=$2
2841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842printf %s "checking for $ac_word... " >&6; }
2843if test ${ac_cv_prog_STRIP+y}
2844then :
2845  printf %s "(cached) " >&6
2846else $as_nop
2847  if test -n "$STRIP"; then
2848  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2849else
2850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851for as_dir in $PATH
2852do
2853  IFS=$as_save_IFS
2854  case $as_dir in #(((
2855    '') as_dir=./ ;;
2856    */) ;;
2857    *) as_dir=$as_dir/ ;;
2858  esac
2859    for ac_exec_ext in '' $ac_executable_extensions; do
2860  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2861    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2862    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2863    break 2
2864  fi
2865done
2866  done
2867IFS=$as_save_IFS
2868
2869fi
2870fi
2871STRIP=$ac_cv_prog_STRIP
2872if test -n "$STRIP"; then
2873  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2874printf "%s\n" "$STRIP" >&6; }
2875else
2876  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2877printf "%s\n" "no" >&6; }
2878fi
2879
2880
2881fi
2882if test -z "$ac_cv_prog_STRIP"; then
2883  ac_ct_STRIP=$STRIP
2884  # Extract the first word of "strip", so it can be a program name with args.
2885set dummy strip; ac_word=$2
2886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887printf %s "checking for $ac_word... " >&6; }
2888if test ${ac_cv_prog_ac_ct_STRIP+y}
2889then :
2890  printf %s "(cached) " >&6
2891else $as_nop
2892  if test -n "$ac_ct_STRIP"; then
2893  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2894else
2895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896for as_dir in $PATH
2897do
2898  IFS=$as_save_IFS
2899  case $as_dir in #(((
2900    '') as_dir=./ ;;
2901    */) ;;
2902    *) as_dir=$as_dir/ ;;
2903  esac
2904    for ac_exec_ext in '' $ac_executable_extensions; do
2905  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2906    ac_cv_prog_ac_ct_STRIP="strip"
2907    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2908    break 2
2909  fi
2910done
2911  done
2912IFS=$as_save_IFS
2913
2914fi
2915fi
2916ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2917if test -n "$ac_ct_STRIP"; then
2918  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2919printf "%s\n" "$ac_ct_STRIP" >&6; }
2920else
2921  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922printf "%s\n" "no" >&6; }
2923fi
2924
2925  if test "x$ac_ct_STRIP" = x; then
2926    STRIP=":"
2927  else
2928    case $cross_compiling:$ac_tool_warned in
2929yes:)
2930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2931printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2932ac_tool_warned=yes ;;
2933esac
2934    STRIP=$ac_ct_STRIP
2935  fi
2936else
2937  STRIP="$ac_cv_prog_STRIP"
2938fi
2939
2940fi
2941INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2942
2943
2944  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2945printf %s "checking for a race-free mkdir -p... " >&6; }
2946if test -z "$MKDIR_P"; then
2947  if test ${ac_cv_path_mkdir+y}
2948then :
2949  printf %s "(cached) " >&6
2950else $as_nop
2951  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2953do
2954  IFS=$as_save_IFS
2955  case $as_dir in #(((
2956    '') as_dir=./ ;;
2957    */) ;;
2958    *) as_dir=$as_dir/ ;;
2959  esac
2960    for ac_prog in mkdir gmkdir; do
2961	 for ac_exec_ext in '' $ac_executable_extensions; do
2962	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2963	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2964	     'mkdir ('*'coreutils) '* | \
2965	     'BusyBox '* | \
2966	     'mkdir (fileutils) '4.1*)
2967	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2968	       break 3;;
2969	   esac
2970	 done
2971       done
2972  done
2973IFS=$as_save_IFS
2974
2975fi
2976
2977  test -d ./--version && rmdir ./--version
2978  if test ${ac_cv_path_mkdir+y}; then
2979    MKDIR_P="$ac_cv_path_mkdir -p"
2980  else
2981    # As a last resort, use the slow shell script.  Don't cache a
2982    # value for MKDIR_P within a source directory, because that will
2983    # break other packages using the cache if that directory is
2984    # removed, or if the value is a relative name.
2985    MKDIR_P="$ac_install_sh -d"
2986  fi
2987fi
2988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2989printf "%s\n" "$MKDIR_P" >&6; }
2990
2991for ac_prog in gawk mawk nawk awk
2992do
2993  # Extract the first word of "$ac_prog", so it can be a program name with args.
2994set dummy $ac_prog; ac_word=$2
2995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996printf %s "checking for $ac_word... " >&6; }
2997if test ${ac_cv_prog_AWK+y}
2998then :
2999  printf %s "(cached) " >&6
3000else $as_nop
3001  if test -n "$AWK"; then
3002  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3003else
3004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005for as_dir in $PATH
3006do
3007  IFS=$as_save_IFS
3008  case $as_dir in #(((
3009    '') as_dir=./ ;;
3010    */) ;;
3011    *) as_dir=$as_dir/ ;;
3012  esac
3013    for ac_exec_ext in '' $ac_executable_extensions; do
3014  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3015    ac_cv_prog_AWK="$ac_prog"
3016    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3017    break 2
3018  fi
3019done
3020  done
3021IFS=$as_save_IFS
3022
3023fi
3024fi
3025AWK=$ac_cv_prog_AWK
3026if test -n "$AWK"; then
3027  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3028printf "%s\n" "$AWK" >&6; }
3029else
3030  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031printf "%s\n" "no" >&6; }
3032fi
3033
3034
3035  test -n "$AWK" && break
3036done
3037
3038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3039printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3040set x ${MAKE-make}
3041ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3042if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3043then :
3044  printf %s "(cached) " >&6
3045else $as_nop
3046  cat >conftest.make <<\_ACEOF
3047SHELL = /bin/sh
3048all:
3049	@echo '@@@%%%=$(MAKE)=@@@%%%'
3050_ACEOF
3051# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3052case `${MAKE-make} -f conftest.make 2>/dev/null` in
3053  *@@@%%%=?*=@@@%%%*)
3054    eval ac_cv_prog_make_${ac_make}_set=yes;;
3055  *)
3056    eval ac_cv_prog_make_${ac_make}_set=no;;
3057esac
3058rm -f conftest.make
3059fi
3060if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3061  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3062printf "%s\n" "yes" >&6; }
3063  SET_MAKE=
3064else
3065  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066printf "%s\n" "no" >&6; }
3067  SET_MAKE="MAKE=${MAKE-make}"
3068fi
3069
3070rm -rf .tst 2>/dev/null
3071mkdir .tst 2>/dev/null
3072if test -d .tst; then
3073  am__leading_dot=.
3074else
3075  am__leading_dot=_
3076fi
3077rmdir .tst 2>/dev/null
3078
3079# Check whether --enable-silent-rules was given.
3080if test ${enable_silent_rules+y}
3081then :
3082  enableval=$enable_silent_rules;
3083fi
3084
3085case $enable_silent_rules in # (((
3086  yes) AM_DEFAULT_VERBOSITY=0;;
3087   no) AM_DEFAULT_VERBOSITY=1;;
3088    *) AM_DEFAULT_VERBOSITY=1;;
3089esac
3090am_make=${MAKE-make}
3091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3092printf %s "checking whether $am_make supports nested variables... " >&6; }
3093if test ${am_cv_make_support_nested_variables+y}
3094then :
3095  printf %s "(cached) " >&6
3096else $as_nop
3097  if printf "%s\n" 'TRUE=$(BAR$(V))
3098BAR0=false
3099BAR1=true
3100V=1
3101am__doit:
3102	@$(TRUE)
3103.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3104  am_cv_make_support_nested_variables=yes
3105else
3106  am_cv_make_support_nested_variables=no
3107fi
3108fi
3109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3110printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3111if test $am_cv_make_support_nested_variables = yes; then
3112    AM_V='$(V)'
3113  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3114else
3115  AM_V=$AM_DEFAULT_VERBOSITY
3116  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3117fi
3118AM_BACKSLASH='\'
3119
3120if test "`cd $srcdir && pwd`" != "`pwd`"; then
3121  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3122  # is not polluted with repeated "-I."
3123  am__isrc=' -I$(srcdir)'
3124  # test to see if srcdir already configured
3125  if test -f $srcdir/config.status; then
3126    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3127  fi
3128fi
3129
3130# test whether we have cygpath
3131if test -z "$CYGPATH_W"; then
3132  if (cygpath --version) >/dev/null 2>/dev/null; then
3133    CYGPATH_W='cygpath -w'
3134  else
3135    CYGPATH_W=echo
3136  fi
3137fi
3138
3139
3140# Define the identity of the package.
3141 PACKAGE='libXft'
3142 VERSION='2.3.4'
3143
3144
3145printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3146
3147
3148printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3149
3150# Some tools Automake needs.
3151
3152ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3153
3154
3155AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3156
3157
3158AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3159
3160
3161AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3162
3163
3164MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3165
3166# For better backward compatibility.  To be removed once Automake 1.9.x
3167# dies out for good.  For more background, see:
3168# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3169# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3170mkdir_p='$(MKDIR_P)'
3171
3172# We need awk for the "check" target (and possibly the TAP driver).  The
3173# system "awk" is bad on some platforms.
3174# Always define AMTAR for backward compatibility.  Yes, it's still used
3175# in the wild :-(  We should find a proper way to deprecate it ...
3176AMTAR='$${TAR-tar}'
3177
3178
3179# We'll loop over all known methods to create a tar archive until one works.
3180_am_tools='gnutar  pax cpio none'
3181
3182am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3183
3184
3185
3186
3187
3188# Variables for tags utilities; see am/tags.am
3189if test -z "$CTAGS"; then
3190  CTAGS=ctags
3191fi
3192
3193if test -z "$ETAGS"; then
3194  ETAGS=etags
3195fi
3196
3197if test -z "$CSCOPE"; then
3198  CSCOPE=cscope
3199fi
3200
3201
3202
3203# POSIX will say in a future version that running "rm -f" with no argument
3204# is OK; and we want to be able to make that assumption in our Makefile
3205# recipes.  So use an aggressive probe to check that the usage we want is
3206# actually supported "in the wild" to an acceptable degree.
3207# See automake bug#10828.
3208# To make any issue more visible, cause the running configure to be aborted
3209# by default if the 'rm' program in use doesn't match our expectations; the
3210# user can still override this though.
3211if rm -f && rm -fr && rm -rf; then : OK; else
3212  cat >&2 <<'END'
3213Oops!
3214
3215Your 'rm' program seems unable to run without file operands specified
3216on the command line, even when the '-f' option is present.  This is contrary
3217to the behaviour of most rm programs out there, and not conforming with
3218the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3219
3220Please tell bug-automake@gnu.org about your system, including the value
3221of your $PATH and any error possibly output before this message.  This
3222can help us improve future automake versions.
3223
3224END
3225  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3226    echo 'Configuration will proceed anyway, since you have set the' >&2
3227    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3228    echo >&2
3229  else
3230    cat >&2 <<'END'
3231Aborting the configuration process, to ensure you take notice of the issue.
3232
3233You can download and install GNU coreutils to get an 'rm' implementation
3234that behaves properly: <https://www.gnu.org/software/coreutils/>.
3235
3236If you want to complete the configuration process using your problematic
3237'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3238to "yes", and re-run configure.
3239
3240END
3241    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3242  fi
3243fi
3244
3245
3246# Initialize libtool
3247case `pwd` in
3248  *\ * | *\	*)
3249    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3250printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3251esac
3252
3253
3254
3255macro_version='2.4.6'
3256macro_revision='2.4.6'
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271ltmain=$ac_aux_dir/ltmain.sh
3272
3273
3274
3275  # Make sure we can run config.sub.
3276$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3277  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3278
3279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3280printf %s "checking build system type... " >&6; }
3281if test ${ac_cv_build+y}
3282then :
3283  printf %s "(cached) " >&6
3284else $as_nop
3285  ac_build_alias=$build_alias
3286test "x$ac_build_alias" = x &&
3287  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3288test "x$ac_build_alias" = x &&
3289  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3290ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3291  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3292
3293fi
3294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3295printf "%s\n" "$ac_cv_build" >&6; }
3296case $ac_cv_build in
3297*-*-*) ;;
3298*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3299esac
3300build=$ac_cv_build
3301ac_save_IFS=$IFS; IFS='-'
3302set x $ac_cv_build
3303shift
3304build_cpu=$1
3305build_vendor=$2
3306shift; shift
3307# Remember, the first character of IFS is used to create $*,
3308# except with old shells:
3309build_os=$*
3310IFS=$ac_save_IFS
3311case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3312
3313
3314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3315printf %s "checking host system type... " >&6; }
3316if test ${ac_cv_host+y}
3317then :
3318  printf %s "(cached) " >&6
3319else $as_nop
3320  if test "x$host_alias" = x; then
3321  ac_cv_host=$ac_cv_build
3322else
3323  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3324    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3325fi
3326
3327fi
3328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3329printf "%s\n" "$ac_cv_host" >&6; }
3330case $ac_cv_host in
3331*-*-*) ;;
3332*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3333esac
3334host=$ac_cv_host
3335ac_save_IFS=$IFS; IFS='-'
3336set x $ac_cv_host
3337shift
3338host_cpu=$1
3339host_vendor=$2
3340shift; shift
3341# Remember, the first character of IFS is used to create $*,
3342# except with old shells:
3343host_os=$*
3344IFS=$ac_save_IFS
3345case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3346
3347
3348# Backslashify metacharacters that are still active within
3349# double-quoted strings.
3350sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3351
3352# Same as above, but do not quote variable references.
3353double_quote_subst='s/\(["`\\]\)/\\\1/g'
3354
3355# Sed substitution to delay expansion of an escaped shell variable in a
3356# double_quote_subst'ed string.
3357delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3358
3359# Sed substitution to delay expansion of an escaped single quote.
3360delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3361
3362# Sed substitution to avoid accidental globbing in evaled expressions
3363no_glob_subst='s/\*/\\\*/g'
3364
3365ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3366ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3367ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3368
3369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3370printf %s "checking how to print strings... " >&6; }
3371# Test print first, because it will be a builtin if present.
3372if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3373   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3374  ECHO='print -r --'
3375elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3376  ECHO='printf %s\n'
3377else
3378  # Use this function as a fallback that always works.
3379  func_fallback_echo ()
3380  {
3381    eval 'cat <<_LTECHO_EOF
3382$1
3383_LTECHO_EOF'
3384  }
3385  ECHO='func_fallback_echo'
3386fi
3387
3388# func_echo_all arg...
3389# Invoke $ECHO with all args, space-separated.
3390func_echo_all ()
3391{
3392    $ECHO ""
3393}
3394
3395case $ECHO in
3396  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3397printf "%s\n" "printf" >&6; } ;;
3398  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3399printf "%s\n" "print -r" >&6; } ;;
3400  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3401printf "%s\n" "cat" >&6; } ;;
3402esac
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426DEPDIR="${am__leading_dot}deps"
3427
3428ac_config_commands="$ac_config_commands depfiles"
3429
3430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3431printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3432cat > confinc.mk << 'END'
3433am__doit:
3434	@echo this is the am__doit target >confinc.out
3435.PHONY: am__doit
3436END
3437am__include="#"
3438am__quote=
3439# BSD make does it like this.
3440echo '.include "confinc.mk" # ignored' > confmf.BSD
3441# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3442echo 'include confinc.mk # ignored' > confmf.GNU
3443_am_result=no
3444for s in GNU BSD; do
3445  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3446   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3447   ac_status=$?
3448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449   (exit $ac_status); }
3450  case $?:`cat confinc.out 2>/dev/null` in #(
3451  '0:this is the am__doit target') :
3452    case $s in #(
3453  BSD) :
3454    am__include='.include' am__quote='"' ;; #(
3455  *) :
3456    am__include='include' am__quote='' ;;
3457esac ;; #(
3458  *) :
3459     ;;
3460esac
3461  if test "$am__include" != "#"; then
3462    _am_result="yes ($s style)"
3463    break
3464  fi
3465done
3466rm -f confinc.* confmf.*
3467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3468printf "%s\n" "${_am_result}" >&6; }
3469
3470# Check whether --enable-dependency-tracking was given.
3471if test ${enable_dependency_tracking+y}
3472then :
3473  enableval=$enable_dependency_tracking;
3474fi
3475
3476if test "x$enable_dependency_tracking" != xno; then
3477  am_depcomp="$ac_aux_dir/depcomp"
3478  AMDEPBACKSLASH='\'
3479  am__nodep='_no'
3480fi
3481 if test "x$enable_dependency_tracking" != xno; then
3482  AMDEP_TRUE=
3483  AMDEP_FALSE='#'
3484else
3485  AMDEP_TRUE='#'
3486  AMDEP_FALSE=
3487fi
3488
3489
3490ac_ext=c
3491ac_cpp='$CPP $CPPFLAGS'
3492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494ac_compiler_gnu=$ac_cv_c_compiler_gnu
3495if test -n "$ac_tool_prefix"; then
3496  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3497set dummy ${ac_tool_prefix}gcc; ac_word=$2
3498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3499printf %s "checking for $ac_word... " >&6; }
3500if test ${ac_cv_prog_CC+y}
3501then :
3502  printf %s "(cached) " >&6
3503else $as_nop
3504  if test -n "$CC"; then
3505  ac_cv_prog_CC="$CC" # Let the user override the test.
3506else
3507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508for as_dir in $PATH
3509do
3510  IFS=$as_save_IFS
3511  case $as_dir in #(((
3512    '') as_dir=./ ;;
3513    */) ;;
3514    *) as_dir=$as_dir/ ;;
3515  esac
3516    for ac_exec_ext in '' $ac_executable_extensions; do
3517  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3518    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3519    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3520    break 2
3521  fi
3522done
3523  done
3524IFS=$as_save_IFS
3525
3526fi
3527fi
3528CC=$ac_cv_prog_CC
3529if test -n "$CC"; then
3530  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3531printf "%s\n" "$CC" >&6; }
3532else
3533  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534printf "%s\n" "no" >&6; }
3535fi
3536
3537
3538fi
3539if test -z "$ac_cv_prog_CC"; then
3540  ac_ct_CC=$CC
3541  # Extract the first word of "gcc", so it can be a program name with args.
3542set dummy gcc; ac_word=$2
3543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3544printf %s "checking for $ac_word... " >&6; }
3545if test ${ac_cv_prog_ac_ct_CC+y}
3546then :
3547  printf %s "(cached) " >&6
3548else $as_nop
3549  if test -n "$ac_ct_CC"; then
3550  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3551else
3552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553for as_dir in $PATH
3554do
3555  IFS=$as_save_IFS
3556  case $as_dir in #(((
3557    '') as_dir=./ ;;
3558    */) ;;
3559    *) as_dir=$as_dir/ ;;
3560  esac
3561    for ac_exec_ext in '' $ac_executable_extensions; do
3562  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3563    ac_cv_prog_ac_ct_CC="gcc"
3564    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3565    break 2
3566  fi
3567done
3568  done
3569IFS=$as_save_IFS
3570
3571fi
3572fi
3573ac_ct_CC=$ac_cv_prog_ac_ct_CC
3574if test -n "$ac_ct_CC"; then
3575  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3576printf "%s\n" "$ac_ct_CC" >&6; }
3577else
3578  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579printf "%s\n" "no" >&6; }
3580fi
3581
3582  if test "x$ac_ct_CC" = x; then
3583    CC=""
3584  else
3585    case $cross_compiling:$ac_tool_warned in
3586yes:)
3587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3588printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3589ac_tool_warned=yes ;;
3590esac
3591    CC=$ac_ct_CC
3592  fi
3593else
3594  CC="$ac_cv_prog_CC"
3595fi
3596
3597if test -z "$CC"; then
3598          if test -n "$ac_tool_prefix"; then
3599    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3600set dummy ${ac_tool_prefix}cc; ac_word=$2
3601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3602printf %s "checking for $ac_word... " >&6; }
3603if test ${ac_cv_prog_CC+y}
3604then :
3605  printf %s "(cached) " >&6
3606else $as_nop
3607  if test -n "$CC"; then
3608  ac_cv_prog_CC="$CC" # Let the user override the test.
3609else
3610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611for as_dir in $PATH
3612do
3613  IFS=$as_save_IFS
3614  case $as_dir in #(((
3615    '') as_dir=./ ;;
3616    */) ;;
3617    *) as_dir=$as_dir/ ;;
3618  esac
3619    for ac_exec_ext in '' $ac_executable_extensions; do
3620  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3621    ac_cv_prog_CC="${ac_tool_prefix}cc"
3622    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3623    break 2
3624  fi
3625done
3626  done
3627IFS=$as_save_IFS
3628
3629fi
3630fi
3631CC=$ac_cv_prog_CC
3632if test -n "$CC"; then
3633  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3634printf "%s\n" "$CC" >&6; }
3635else
3636  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637printf "%s\n" "no" >&6; }
3638fi
3639
3640
3641  fi
3642fi
3643if test -z "$CC"; then
3644  # Extract the first word of "cc", so it can be a program name with args.
3645set dummy cc; ac_word=$2
3646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647printf %s "checking for $ac_word... " >&6; }
3648if test ${ac_cv_prog_CC+y}
3649then :
3650  printf %s "(cached) " >&6
3651else $as_nop
3652  if test -n "$CC"; then
3653  ac_cv_prog_CC="$CC" # Let the user override the test.
3654else
3655  ac_prog_rejected=no
3656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657for as_dir in $PATH
3658do
3659  IFS=$as_save_IFS
3660  case $as_dir in #(((
3661    '') as_dir=./ ;;
3662    */) ;;
3663    *) as_dir=$as_dir/ ;;
3664  esac
3665    for ac_exec_ext in '' $ac_executable_extensions; do
3666  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3667    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3668       ac_prog_rejected=yes
3669       continue
3670     fi
3671    ac_cv_prog_CC="cc"
3672    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3673    break 2
3674  fi
3675done
3676  done
3677IFS=$as_save_IFS
3678
3679if test $ac_prog_rejected = yes; then
3680  # We found a bogon in the path, so make sure we never use it.
3681  set dummy $ac_cv_prog_CC
3682  shift
3683  if test $# != 0; then
3684    # We chose a different compiler from the bogus one.
3685    # However, it has the same basename, so the bogon will be chosen
3686    # first if we set CC to just the basename; use the full file name.
3687    shift
3688    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3689  fi
3690fi
3691fi
3692fi
3693CC=$ac_cv_prog_CC
3694if test -n "$CC"; then
3695  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3696printf "%s\n" "$CC" >&6; }
3697else
3698  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3699printf "%s\n" "no" >&6; }
3700fi
3701
3702
3703fi
3704if test -z "$CC"; then
3705  if test -n "$ac_tool_prefix"; then
3706  for ac_prog in cl.exe
3707  do
3708    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3709set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3711printf %s "checking for $ac_word... " >&6; }
3712if test ${ac_cv_prog_CC+y}
3713then :
3714  printf %s "(cached) " >&6
3715else $as_nop
3716  if test -n "$CC"; then
3717  ac_cv_prog_CC="$CC" # Let the user override the test.
3718else
3719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720for as_dir in $PATH
3721do
3722  IFS=$as_save_IFS
3723  case $as_dir in #(((
3724    '') as_dir=./ ;;
3725    */) ;;
3726    *) as_dir=$as_dir/ ;;
3727  esac
3728    for ac_exec_ext in '' $ac_executable_extensions; do
3729  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3730    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3731    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3732    break 2
3733  fi
3734done
3735  done
3736IFS=$as_save_IFS
3737
3738fi
3739fi
3740CC=$ac_cv_prog_CC
3741if test -n "$CC"; then
3742  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3743printf "%s\n" "$CC" >&6; }
3744else
3745  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3746printf "%s\n" "no" >&6; }
3747fi
3748
3749
3750    test -n "$CC" && break
3751  done
3752fi
3753if test -z "$CC"; then
3754  ac_ct_CC=$CC
3755  for ac_prog in cl.exe
3756do
3757  # Extract the first word of "$ac_prog", so it can be a program name with args.
3758set dummy $ac_prog; ac_word=$2
3759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3760printf %s "checking for $ac_word... " >&6; }
3761if test ${ac_cv_prog_ac_ct_CC+y}
3762then :
3763  printf %s "(cached) " >&6
3764else $as_nop
3765  if test -n "$ac_ct_CC"; then
3766  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3767else
3768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769for as_dir in $PATH
3770do
3771  IFS=$as_save_IFS
3772  case $as_dir in #(((
3773    '') as_dir=./ ;;
3774    */) ;;
3775    *) as_dir=$as_dir/ ;;
3776  esac
3777    for ac_exec_ext in '' $ac_executable_extensions; do
3778  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3779    ac_cv_prog_ac_ct_CC="$ac_prog"
3780    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3781    break 2
3782  fi
3783done
3784  done
3785IFS=$as_save_IFS
3786
3787fi
3788fi
3789ac_ct_CC=$ac_cv_prog_ac_ct_CC
3790if test -n "$ac_ct_CC"; then
3791  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3792printf "%s\n" "$ac_ct_CC" >&6; }
3793else
3794  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795printf "%s\n" "no" >&6; }
3796fi
3797
3798
3799  test -n "$ac_ct_CC" && break
3800done
3801
3802  if test "x$ac_ct_CC" = x; then
3803    CC=""
3804  else
3805    case $cross_compiling:$ac_tool_warned in
3806yes:)
3807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3808printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3809ac_tool_warned=yes ;;
3810esac
3811    CC=$ac_ct_CC
3812  fi
3813fi
3814
3815fi
3816if test -z "$CC"; then
3817  if test -n "$ac_tool_prefix"; then
3818  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3819set dummy ${ac_tool_prefix}clang; ac_word=$2
3820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3821printf %s "checking for $ac_word... " >&6; }
3822if test ${ac_cv_prog_CC+y}
3823then :
3824  printf %s "(cached) " >&6
3825else $as_nop
3826  if test -n "$CC"; then
3827  ac_cv_prog_CC="$CC" # Let the user override the test.
3828else
3829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830for as_dir in $PATH
3831do
3832  IFS=$as_save_IFS
3833  case $as_dir in #(((
3834    '') as_dir=./ ;;
3835    */) ;;
3836    *) as_dir=$as_dir/ ;;
3837  esac
3838    for ac_exec_ext in '' $ac_executable_extensions; do
3839  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3840    ac_cv_prog_CC="${ac_tool_prefix}clang"
3841    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3842    break 2
3843  fi
3844done
3845  done
3846IFS=$as_save_IFS
3847
3848fi
3849fi
3850CC=$ac_cv_prog_CC
3851if test -n "$CC"; then
3852  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3853printf "%s\n" "$CC" >&6; }
3854else
3855  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3856printf "%s\n" "no" >&6; }
3857fi
3858
3859
3860fi
3861if test -z "$ac_cv_prog_CC"; then
3862  ac_ct_CC=$CC
3863  # Extract the first word of "clang", so it can be a program name with args.
3864set dummy clang; ac_word=$2
3865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3866printf %s "checking for $ac_word... " >&6; }
3867if test ${ac_cv_prog_ac_ct_CC+y}
3868then :
3869  printf %s "(cached) " >&6
3870else $as_nop
3871  if test -n "$ac_ct_CC"; then
3872  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3873else
3874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875for as_dir in $PATH
3876do
3877  IFS=$as_save_IFS
3878  case $as_dir in #(((
3879    '') as_dir=./ ;;
3880    */) ;;
3881    *) as_dir=$as_dir/ ;;
3882  esac
3883    for ac_exec_ext in '' $ac_executable_extensions; do
3884  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3885    ac_cv_prog_ac_ct_CC="clang"
3886    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3887    break 2
3888  fi
3889done
3890  done
3891IFS=$as_save_IFS
3892
3893fi
3894fi
3895ac_ct_CC=$ac_cv_prog_ac_ct_CC
3896if test -n "$ac_ct_CC"; then
3897  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3898printf "%s\n" "$ac_ct_CC" >&6; }
3899else
3900  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901printf "%s\n" "no" >&6; }
3902fi
3903
3904  if test "x$ac_ct_CC" = x; then
3905    CC=""
3906  else
3907    case $cross_compiling:$ac_tool_warned in
3908yes:)
3909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3910printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3911ac_tool_warned=yes ;;
3912esac
3913    CC=$ac_ct_CC
3914  fi
3915else
3916  CC="$ac_cv_prog_CC"
3917fi
3918
3919fi
3920
3921
3922test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3923printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3924as_fn_error $? "no acceptable C compiler found in \$PATH
3925See \`config.log' for more details" "$LINENO" 5; }
3926
3927# Provide some information about the compiler.
3928printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3929set X $ac_compile
3930ac_compiler=$2
3931for ac_option in --version -v -V -qversion -version; do
3932  { { ac_try="$ac_compiler $ac_option >&5"
3933case "(($ac_try" in
3934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3935  *) ac_try_echo=$ac_try;;
3936esac
3937eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3938printf "%s\n" "$ac_try_echo"; } >&5
3939  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3940  ac_status=$?
3941  if test -s conftest.err; then
3942    sed '10a\
3943... rest of stderr output deleted ...
3944         10q' conftest.err >conftest.er1
3945    cat conftest.er1 >&5
3946  fi
3947  rm -f conftest.er1 conftest.err
3948  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3949  test $ac_status = 0; }
3950done
3951
3952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953/* end confdefs.h.  */
3954
3955int
3956main (void)
3957{
3958
3959  ;
3960  return 0;
3961}
3962_ACEOF
3963ac_clean_files_save=$ac_clean_files
3964ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3965# Try to create an executable without -o first, disregard a.out.
3966# It will help us diagnose broken compilers, and finding out an intuition
3967# of exeext.
3968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3969printf %s "checking whether the C compiler works... " >&6; }
3970ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3971
3972# The possible output files:
3973ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3974
3975ac_rmfiles=
3976for ac_file in $ac_files
3977do
3978  case $ac_file in
3979    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3980    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3981  esac
3982done
3983rm -f $ac_rmfiles
3984
3985if { { ac_try="$ac_link_default"
3986case "(($ac_try" in
3987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988  *) ac_try_echo=$ac_try;;
3989esac
3990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3991printf "%s\n" "$ac_try_echo"; } >&5
3992  (eval "$ac_link_default") 2>&5
3993  ac_status=$?
3994  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3995  test $ac_status = 0; }
3996then :
3997  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3998# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3999# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4000# so that the user can short-circuit this test for compilers unknown to
4001# Autoconf.
4002for ac_file in $ac_files ''
4003do
4004  test -f "$ac_file" || continue
4005  case $ac_file in
4006    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4007	;;
4008    [ab].out )
4009	# We found the default executable, but exeext='' is most
4010	# certainly right.
4011	break;;
4012    *.* )
4013	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4014	then :; else
4015	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4016	fi
4017	# We set ac_cv_exeext here because the later test for it is not
4018	# safe: cross compilers may not add the suffix if given an `-o'
4019	# argument, so we may need to know it at that point already.
4020	# Even if this section looks crufty: it has the advantage of
4021	# actually working.
4022	break;;
4023    * )
4024	break;;
4025  esac
4026done
4027test "$ac_cv_exeext" = no && ac_cv_exeext=
4028
4029else $as_nop
4030  ac_file=''
4031fi
4032if test -z "$ac_file"
4033then :
4034  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4035printf "%s\n" "no" >&6; }
4036printf "%s\n" "$as_me: failed program was:" >&5
4037sed 's/^/| /' conftest.$ac_ext >&5
4038
4039{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4040printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4041as_fn_error 77 "C compiler cannot create executables
4042See \`config.log' for more details" "$LINENO" 5; }
4043else $as_nop
4044  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4045printf "%s\n" "yes" >&6; }
4046fi
4047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4048printf %s "checking for C compiler default output file name... " >&6; }
4049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4050printf "%s\n" "$ac_file" >&6; }
4051ac_exeext=$ac_cv_exeext
4052
4053rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4054ac_clean_files=$ac_clean_files_save
4055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4056printf %s "checking for suffix of executables... " >&6; }
4057if { { ac_try="$ac_link"
4058case "(($ac_try" in
4059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060  *) ac_try_echo=$ac_try;;
4061esac
4062eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4063printf "%s\n" "$ac_try_echo"; } >&5
4064  (eval "$ac_link") 2>&5
4065  ac_status=$?
4066  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4067  test $ac_status = 0; }
4068then :
4069  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4070# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4071# work properly (i.e., refer to `conftest.exe'), while it won't with
4072# `rm'.
4073for ac_file in conftest.exe conftest conftest.*; do
4074  test -f "$ac_file" || continue
4075  case $ac_file in
4076    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4077    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4078	  break;;
4079    * ) break;;
4080  esac
4081done
4082else $as_nop
4083  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4084printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4085as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4086See \`config.log' for more details" "$LINENO" 5; }
4087fi
4088rm -f conftest conftest$ac_cv_exeext
4089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4090printf "%s\n" "$ac_cv_exeext" >&6; }
4091
4092rm -f conftest.$ac_ext
4093EXEEXT=$ac_cv_exeext
4094ac_exeext=$EXEEXT
4095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096/* end confdefs.h.  */
4097#include <stdio.h>
4098int
4099main (void)
4100{
4101FILE *f = fopen ("conftest.out", "w");
4102 return ferror (f) || fclose (f) != 0;
4103
4104  ;
4105  return 0;
4106}
4107_ACEOF
4108ac_clean_files="$ac_clean_files conftest.out"
4109# Check that the compiler produces executables we can run.  If not, either
4110# the compiler is broken, or we cross compile.
4111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4112printf %s "checking whether we are cross compiling... " >&6; }
4113if test "$cross_compiling" != yes; then
4114  { { ac_try="$ac_link"
4115case "(($ac_try" in
4116  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117  *) ac_try_echo=$ac_try;;
4118esac
4119eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4120printf "%s\n" "$ac_try_echo"; } >&5
4121  (eval "$ac_link") 2>&5
4122  ac_status=$?
4123  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4124  test $ac_status = 0; }
4125  if { ac_try='./conftest$ac_cv_exeext'
4126  { { case "(($ac_try" in
4127  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128  *) ac_try_echo=$ac_try;;
4129esac
4130eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4131printf "%s\n" "$ac_try_echo"; } >&5
4132  (eval "$ac_try") 2>&5
4133  ac_status=$?
4134  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4135  test $ac_status = 0; }; }; then
4136    cross_compiling=no
4137  else
4138    if test "$cross_compiling" = maybe; then
4139	cross_compiling=yes
4140    else
4141	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4142printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4143as_fn_error 77 "cannot run C compiled programs.
4144If you meant to cross compile, use \`--host'.
4145See \`config.log' for more details" "$LINENO" 5; }
4146    fi
4147  fi
4148fi
4149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4150printf "%s\n" "$cross_compiling" >&6; }
4151
4152rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4153ac_clean_files=$ac_clean_files_save
4154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4155printf %s "checking for suffix of object files... " >&6; }
4156if test ${ac_cv_objext+y}
4157then :
4158  printf %s "(cached) " >&6
4159else $as_nop
4160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161/* end confdefs.h.  */
4162
4163int
4164main (void)
4165{
4166
4167  ;
4168  return 0;
4169}
4170_ACEOF
4171rm -f conftest.o conftest.obj
4172if { { ac_try="$ac_compile"
4173case "(($ac_try" in
4174  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175  *) ac_try_echo=$ac_try;;
4176esac
4177eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4178printf "%s\n" "$ac_try_echo"; } >&5
4179  (eval "$ac_compile") 2>&5
4180  ac_status=$?
4181  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4182  test $ac_status = 0; }
4183then :
4184  for ac_file in conftest.o conftest.obj conftest.*; do
4185  test -f "$ac_file" || continue;
4186  case $ac_file in
4187    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4188    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4189       break;;
4190  esac
4191done
4192else $as_nop
4193  printf "%s\n" "$as_me: failed program was:" >&5
4194sed 's/^/| /' conftest.$ac_ext >&5
4195
4196{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4197printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4198as_fn_error $? "cannot compute suffix of object files: cannot compile
4199See \`config.log' for more details" "$LINENO" 5; }
4200fi
4201rm -f conftest.$ac_cv_objext conftest.$ac_ext
4202fi
4203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4204printf "%s\n" "$ac_cv_objext" >&6; }
4205OBJEXT=$ac_cv_objext
4206ac_objext=$OBJEXT
4207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4208printf %s "checking whether the compiler supports GNU C... " >&6; }
4209if test ${ac_cv_c_compiler_gnu+y}
4210then :
4211  printf %s "(cached) " >&6
4212else $as_nop
4213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214/* end confdefs.h.  */
4215
4216int
4217main (void)
4218{
4219#ifndef __GNUC__
4220       choke me
4221#endif
4222
4223  ;
4224  return 0;
4225}
4226_ACEOF
4227if ac_fn_c_try_compile "$LINENO"
4228then :
4229  ac_compiler_gnu=yes
4230else $as_nop
4231  ac_compiler_gnu=no
4232fi
4233rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4234ac_cv_c_compiler_gnu=$ac_compiler_gnu
4235
4236fi
4237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4238printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4239ac_compiler_gnu=$ac_cv_c_compiler_gnu
4240
4241if test $ac_compiler_gnu = yes; then
4242  GCC=yes
4243else
4244  GCC=
4245fi
4246ac_test_CFLAGS=${CFLAGS+y}
4247ac_save_CFLAGS=$CFLAGS
4248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4249printf %s "checking whether $CC accepts -g... " >&6; }
4250if test ${ac_cv_prog_cc_g+y}
4251then :
4252  printf %s "(cached) " >&6
4253else $as_nop
4254  ac_save_c_werror_flag=$ac_c_werror_flag
4255   ac_c_werror_flag=yes
4256   ac_cv_prog_cc_g=no
4257   CFLAGS="-g"
4258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259/* end confdefs.h.  */
4260
4261int
4262main (void)
4263{
4264
4265  ;
4266  return 0;
4267}
4268_ACEOF
4269if ac_fn_c_try_compile "$LINENO"
4270then :
4271  ac_cv_prog_cc_g=yes
4272else $as_nop
4273  CFLAGS=""
4274      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275/* end confdefs.h.  */
4276
4277int
4278main (void)
4279{
4280
4281  ;
4282  return 0;
4283}
4284_ACEOF
4285if ac_fn_c_try_compile "$LINENO"
4286then :
4287
4288else $as_nop
4289  ac_c_werror_flag=$ac_save_c_werror_flag
4290	 CFLAGS="-g"
4291	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292/* end confdefs.h.  */
4293
4294int
4295main (void)
4296{
4297
4298  ;
4299  return 0;
4300}
4301_ACEOF
4302if ac_fn_c_try_compile "$LINENO"
4303then :
4304  ac_cv_prog_cc_g=yes
4305fi
4306rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4307fi
4308rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4309fi
4310rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4311   ac_c_werror_flag=$ac_save_c_werror_flag
4312fi
4313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4314printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4315if test $ac_test_CFLAGS; then
4316  CFLAGS=$ac_save_CFLAGS
4317elif test $ac_cv_prog_cc_g = yes; then
4318  if test "$GCC" = yes; then
4319    CFLAGS="-g -O2"
4320  else
4321    CFLAGS="-g"
4322  fi
4323else
4324  if test "$GCC" = yes; then
4325    CFLAGS="-O2"
4326  else
4327    CFLAGS=
4328  fi
4329fi
4330ac_prog_cc_stdc=no
4331if test x$ac_prog_cc_stdc = xno
4332then :
4333  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4334printf %s "checking for $CC option to enable C11 features... " >&6; }
4335if test ${ac_cv_prog_cc_c11+y}
4336then :
4337  printf %s "(cached) " >&6
4338else $as_nop
4339  ac_cv_prog_cc_c11=no
4340ac_save_CC=$CC
4341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342/* end confdefs.h.  */
4343$ac_c_conftest_c11_program
4344_ACEOF
4345for ac_arg in '' -std=gnu11
4346do
4347  CC="$ac_save_CC $ac_arg"
4348  if ac_fn_c_try_compile "$LINENO"
4349then :
4350  ac_cv_prog_cc_c11=$ac_arg
4351fi
4352rm -f core conftest.err conftest.$ac_objext conftest.beam
4353  test "x$ac_cv_prog_cc_c11" != "xno" && break
4354done
4355rm -f conftest.$ac_ext
4356CC=$ac_save_CC
4357fi
4358
4359if test "x$ac_cv_prog_cc_c11" = xno
4360then :
4361  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4362printf "%s\n" "unsupported" >&6; }
4363else $as_nop
4364  if test "x$ac_cv_prog_cc_c11" = x
4365then :
4366  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4367printf "%s\n" "none needed" >&6; }
4368else $as_nop
4369  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4370printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4371     CC="$CC $ac_cv_prog_cc_c11"
4372fi
4373  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4374  ac_prog_cc_stdc=c11
4375fi
4376fi
4377if test x$ac_prog_cc_stdc = xno
4378then :
4379  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4380printf %s "checking for $CC option to enable C99 features... " >&6; }
4381if test ${ac_cv_prog_cc_c99+y}
4382then :
4383  printf %s "(cached) " >&6
4384else $as_nop
4385  ac_cv_prog_cc_c99=no
4386ac_save_CC=$CC
4387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388/* end confdefs.h.  */
4389$ac_c_conftest_c99_program
4390_ACEOF
4391for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4392do
4393  CC="$ac_save_CC $ac_arg"
4394  if ac_fn_c_try_compile "$LINENO"
4395then :
4396  ac_cv_prog_cc_c99=$ac_arg
4397fi
4398rm -f core conftest.err conftest.$ac_objext conftest.beam
4399  test "x$ac_cv_prog_cc_c99" != "xno" && break
4400done
4401rm -f conftest.$ac_ext
4402CC=$ac_save_CC
4403fi
4404
4405if test "x$ac_cv_prog_cc_c99" = xno
4406then :
4407  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4408printf "%s\n" "unsupported" >&6; }
4409else $as_nop
4410  if test "x$ac_cv_prog_cc_c99" = x
4411then :
4412  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4413printf "%s\n" "none needed" >&6; }
4414else $as_nop
4415  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4416printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4417     CC="$CC $ac_cv_prog_cc_c99"
4418fi
4419  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4420  ac_prog_cc_stdc=c99
4421fi
4422fi
4423if test x$ac_prog_cc_stdc = xno
4424then :
4425  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4426printf %s "checking for $CC option to enable C89 features... " >&6; }
4427if test ${ac_cv_prog_cc_c89+y}
4428then :
4429  printf %s "(cached) " >&6
4430else $as_nop
4431  ac_cv_prog_cc_c89=no
4432ac_save_CC=$CC
4433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434/* end confdefs.h.  */
4435$ac_c_conftest_c89_program
4436_ACEOF
4437for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4438do
4439  CC="$ac_save_CC $ac_arg"
4440  if ac_fn_c_try_compile "$LINENO"
4441then :
4442  ac_cv_prog_cc_c89=$ac_arg
4443fi
4444rm -f core conftest.err conftest.$ac_objext conftest.beam
4445  test "x$ac_cv_prog_cc_c89" != "xno" && break
4446done
4447rm -f conftest.$ac_ext
4448CC=$ac_save_CC
4449fi
4450
4451if test "x$ac_cv_prog_cc_c89" = xno
4452then :
4453  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4454printf "%s\n" "unsupported" >&6; }
4455else $as_nop
4456  if test "x$ac_cv_prog_cc_c89" = x
4457then :
4458  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4459printf "%s\n" "none needed" >&6; }
4460else $as_nop
4461  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4462printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4463     CC="$CC $ac_cv_prog_cc_c89"
4464fi
4465  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4466  ac_prog_cc_stdc=c89
4467fi
4468fi
4469
4470ac_ext=c
4471ac_cpp='$CPP $CPPFLAGS'
4472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4474ac_compiler_gnu=$ac_cv_c_compiler_gnu
4475
4476
4477  ac_ext=c
4478ac_cpp='$CPP $CPPFLAGS'
4479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4481ac_compiler_gnu=$ac_cv_c_compiler_gnu
4482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4483printf %s "checking whether $CC understands -c and -o together... " >&6; }
4484if test ${am_cv_prog_cc_c_o+y}
4485then :
4486  printf %s "(cached) " >&6
4487else $as_nop
4488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489/* end confdefs.h.  */
4490
4491int
4492main (void)
4493{
4494
4495  ;
4496  return 0;
4497}
4498_ACEOF
4499  # Make sure it works both with $CC and with simple cc.
4500  # Following AC_PROG_CC_C_O, we do the test twice because some
4501  # compilers refuse to overwrite an existing .o file with -o,
4502  # though they will create one.
4503  am_cv_prog_cc_c_o=yes
4504  for am_i in 1 2; do
4505    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4506   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4507   ac_status=$?
4508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509   (exit $ac_status); } \
4510         && test -f conftest2.$ac_objext; then
4511      : OK
4512    else
4513      am_cv_prog_cc_c_o=no
4514      break
4515    fi
4516  done
4517  rm -f core conftest*
4518  unset am_i
4519fi
4520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4521printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4522if test "$am_cv_prog_cc_c_o" != yes; then
4523   # Losing compiler, so override with the script.
4524   # FIXME: It is wrong to rewrite CC.
4525   # But if we don't then we get into trouble of one sort or another.
4526   # A longer-term fix would be to have automake use am__CC in this case,
4527   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4528   CC="$am_aux_dir/compile $CC"
4529fi
4530ac_ext=c
4531ac_cpp='$CPP $CPPFLAGS'
4532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4534ac_compiler_gnu=$ac_cv_c_compiler_gnu
4535
4536
4537depcc="$CC"   am_compiler_list=
4538
4539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4540printf %s "checking dependency style of $depcc... " >&6; }
4541if test ${am_cv_CC_dependencies_compiler_type+y}
4542then :
4543  printf %s "(cached) " >&6
4544else $as_nop
4545  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4546  # We make a subdir and do the tests there.  Otherwise we can end up
4547  # making bogus files that we don't know about and never remove.  For
4548  # instance it was reported that on HP-UX the gcc test will end up
4549  # making a dummy file named 'D' -- because '-MD' means "put the output
4550  # in D".
4551  rm -rf conftest.dir
4552  mkdir conftest.dir
4553  # Copy depcomp to subdir because otherwise we won't find it if we're
4554  # using a relative directory.
4555  cp "$am_depcomp" conftest.dir
4556  cd conftest.dir
4557  # We will build objects and dependencies in a subdirectory because
4558  # it helps to detect inapplicable dependency modes.  For instance
4559  # both Tru64's cc and ICC support -MD to output dependencies as a
4560  # side effect of compilation, but ICC will put the dependencies in
4561  # the current directory while Tru64 will put them in the object
4562  # directory.
4563  mkdir sub
4564
4565  am_cv_CC_dependencies_compiler_type=none
4566  if test "$am_compiler_list" = ""; then
4567     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4568  fi
4569  am__universal=false
4570  case " $depcc " in #(
4571     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4572     esac
4573
4574  for depmode in $am_compiler_list; do
4575    # Setup a source with many dependencies, because some compilers
4576    # like to wrap large dependency lists on column 80 (with \), and
4577    # we should not choose a depcomp mode which is confused by this.
4578    #
4579    # We need to recreate these files for each test, as the compiler may
4580    # overwrite some of them when testing with obscure command lines.
4581    # This happens at least with the AIX C compiler.
4582    : > sub/conftest.c
4583    for i in 1 2 3 4 5 6; do
4584      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4585      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4586      # Solaris 10 /bin/sh.
4587      echo '/* dummy */' > sub/conftst$i.h
4588    done
4589    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4590
4591    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4592    # mode.  It turns out that the SunPro C++ compiler does not properly
4593    # handle '-M -o', and we need to detect this.  Also, some Intel
4594    # versions had trouble with output in subdirs.
4595    am__obj=sub/conftest.${OBJEXT-o}
4596    am__minus_obj="-o $am__obj"
4597    case $depmode in
4598    gcc)
4599      # This depmode causes a compiler race in universal mode.
4600      test "$am__universal" = false || continue
4601      ;;
4602    nosideeffect)
4603      # After this tag, mechanisms are not by side-effect, so they'll
4604      # only be used when explicitly requested.
4605      if test "x$enable_dependency_tracking" = xyes; then
4606	continue
4607      else
4608	break
4609      fi
4610      ;;
4611    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4612      # This compiler won't grok '-c -o', but also, the minuso test has
4613      # not run yet.  These depmodes are late enough in the game, and
4614      # so weak that their functioning should not be impacted.
4615      am__obj=conftest.${OBJEXT-o}
4616      am__minus_obj=
4617      ;;
4618    none) break ;;
4619    esac
4620    if depmode=$depmode \
4621       source=sub/conftest.c object=$am__obj \
4622       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4623       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4624         >/dev/null 2>conftest.err &&
4625       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4626       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4627       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4628       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4629      # icc doesn't choke on unknown options, it will just issue warnings
4630      # or remarks (even with -Werror).  So we grep stderr for any message
4631      # that says an option was ignored or not supported.
4632      # When given -MP, icc 7.0 and 7.1 complain thusly:
4633      #   icc: Command line warning: ignoring option '-M'; no argument required
4634      # The diagnosis changed in icc 8.0:
4635      #   icc: Command line remark: option '-MP' not supported
4636      if (grep 'ignoring option' conftest.err ||
4637          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4638        am_cv_CC_dependencies_compiler_type=$depmode
4639        break
4640      fi
4641    fi
4642  done
4643
4644  cd ..
4645  rm -rf conftest.dir
4646else
4647  am_cv_CC_dependencies_compiler_type=none
4648fi
4649
4650fi
4651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4652printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4653CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4654
4655 if
4656  test "x$enable_dependency_tracking" != xno \
4657  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4658  am__fastdepCC_TRUE=
4659  am__fastdepCC_FALSE='#'
4660else
4661  am__fastdepCC_TRUE='#'
4662  am__fastdepCC_FALSE=
4663fi
4664
4665
4666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4667printf %s "checking for a sed that does not truncate output... " >&6; }
4668if test ${ac_cv_path_SED+y}
4669then :
4670  printf %s "(cached) " >&6
4671else $as_nop
4672            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4673     for ac_i in 1 2 3 4 5 6 7; do
4674       ac_script="$ac_script$as_nl$ac_script"
4675     done
4676     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4677     { ac_script=; unset ac_script;}
4678     if test -z "$SED"; then
4679  ac_path_SED_found=false
4680  # Loop through the user's path and test for each of PROGNAME-LIST
4681  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682for as_dir in $PATH
4683do
4684  IFS=$as_save_IFS
4685  case $as_dir in #(((
4686    '') as_dir=./ ;;
4687    */) ;;
4688    *) as_dir=$as_dir/ ;;
4689  esac
4690    for ac_prog in sed gsed
4691   do
4692    for ac_exec_ext in '' $ac_executable_extensions; do
4693      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4694      as_fn_executable_p "$ac_path_SED" || continue
4695# Check for GNU ac_path_SED and select it if it is found.
4696  # Check for GNU $ac_path_SED
4697case `"$ac_path_SED" --version 2>&1` in
4698*GNU*)
4699  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4700*)
4701  ac_count=0
4702  printf %s 0123456789 >"conftest.in"
4703  while :
4704  do
4705    cat "conftest.in" "conftest.in" >"conftest.tmp"
4706    mv "conftest.tmp" "conftest.in"
4707    cp "conftest.in" "conftest.nl"
4708    printf "%s\n" '' >> "conftest.nl"
4709    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4710    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4711    as_fn_arith $ac_count + 1 && ac_count=$as_val
4712    if test $ac_count -gt ${ac_path_SED_max-0}; then
4713      # Best one so far, save it but keep looking for a better one
4714      ac_cv_path_SED="$ac_path_SED"
4715      ac_path_SED_max=$ac_count
4716    fi
4717    # 10*(2^10) chars as input seems more than enough
4718    test $ac_count -gt 10 && break
4719  done
4720  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4721esac
4722
4723      $ac_path_SED_found && break 3
4724    done
4725  done
4726  done
4727IFS=$as_save_IFS
4728  if test -z "$ac_cv_path_SED"; then
4729    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4730  fi
4731else
4732  ac_cv_path_SED=$SED
4733fi
4734
4735fi
4736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4737printf "%s\n" "$ac_cv_path_SED" >&6; }
4738 SED="$ac_cv_path_SED"
4739  rm -f conftest.sed
4740
4741test -z "$SED" && SED=sed
4742Xsed="$SED -e 1s/^X//"
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4755printf %s "checking for grep that handles long lines and -e... " >&6; }
4756if test ${ac_cv_path_GREP+y}
4757then :
4758  printf %s "(cached) " >&6
4759else $as_nop
4760  if test -z "$GREP"; then
4761  ac_path_GREP_found=false
4762  # Loop through the user's path and test for each of PROGNAME-LIST
4763  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4765do
4766  IFS=$as_save_IFS
4767  case $as_dir in #(((
4768    '') as_dir=./ ;;
4769    */) ;;
4770    *) as_dir=$as_dir/ ;;
4771  esac
4772    for ac_prog in grep ggrep
4773   do
4774    for ac_exec_ext in '' $ac_executable_extensions; do
4775      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4776      as_fn_executable_p "$ac_path_GREP" || continue
4777# Check for GNU ac_path_GREP and select it if it is found.
4778  # Check for GNU $ac_path_GREP
4779case `"$ac_path_GREP" --version 2>&1` in
4780*GNU*)
4781  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4782*)
4783  ac_count=0
4784  printf %s 0123456789 >"conftest.in"
4785  while :
4786  do
4787    cat "conftest.in" "conftest.in" >"conftest.tmp"
4788    mv "conftest.tmp" "conftest.in"
4789    cp "conftest.in" "conftest.nl"
4790    printf "%s\n" 'GREP' >> "conftest.nl"
4791    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4792    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4793    as_fn_arith $ac_count + 1 && ac_count=$as_val
4794    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4795      # Best one so far, save it but keep looking for a better one
4796      ac_cv_path_GREP="$ac_path_GREP"
4797      ac_path_GREP_max=$ac_count
4798    fi
4799    # 10*(2^10) chars as input seems more than enough
4800    test $ac_count -gt 10 && break
4801  done
4802  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4803esac
4804
4805      $ac_path_GREP_found && break 3
4806    done
4807  done
4808  done
4809IFS=$as_save_IFS
4810  if test -z "$ac_cv_path_GREP"; then
4811    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4812  fi
4813else
4814  ac_cv_path_GREP=$GREP
4815fi
4816
4817fi
4818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4819printf "%s\n" "$ac_cv_path_GREP" >&6; }
4820 GREP="$ac_cv_path_GREP"
4821
4822
4823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4824printf %s "checking for egrep... " >&6; }
4825if test ${ac_cv_path_EGREP+y}
4826then :
4827  printf %s "(cached) " >&6
4828else $as_nop
4829  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4830   then ac_cv_path_EGREP="$GREP -E"
4831   else
4832     if test -z "$EGREP"; then
4833  ac_path_EGREP_found=false
4834  # Loop through the user's path and test for each of PROGNAME-LIST
4835  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4837do
4838  IFS=$as_save_IFS
4839  case $as_dir in #(((
4840    '') as_dir=./ ;;
4841    */) ;;
4842    *) as_dir=$as_dir/ ;;
4843  esac
4844    for ac_prog in egrep
4845   do
4846    for ac_exec_ext in '' $ac_executable_extensions; do
4847      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4848      as_fn_executable_p "$ac_path_EGREP" || continue
4849# Check for GNU ac_path_EGREP and select it if it is found.
4850  # Check for GNU $ac_path_EGREP
4851case `"$ac_path_EGREP" --version 2>&1` in
4852*GNU*)
4853  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4854*)
4855  ac_count=0
4856  printf %s 0123456789 >"conftest.in"
4857  while :
4858  do
4859    cat "conftest.in" "conftest.in" >"conftest.tmp"
4860    mv "conftest.tmp" "conftest.in"
4861    cp "conftest.in" "conftest.nl"
4862    printf "%s\n" 'EGREP' >> "conftest.nl"
4863    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4864    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4865    as_fn_arith $ac_count + 1 && ac_count=$as_val
4866    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4867      # Best one so far, save it but keep looking for a better one
4868      ac_cv_path_EGREP="$ac_path_EGREP"
4869      ac_path_EGREP_max=$ac_count
4870    fi
4871    # 10*(2^10) chars as input seems more than enough
4872    test $ac_count -gt 10 && break
4873  done
4874  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4875esac
4876
4877      $ac_path_EGREP_found && break 3
4878    done
4879  done
4880  done
4881IFS=$as_save_IFS
4882  if test -z "$ac_cv_path_EGREP"; then
4883    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4884  fi
4885else
4886  ac_cv_path_EGREP=$EGREP
4887fi
4888
4889   fi
4890fi
4891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4892printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4893 EGREP="$ac_cv_path_EGREP"
4894
4895
4896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4897printf %s "checking for fgrep... " >&6; }
4898if test ${ac_cv_path_FGREP+y}
4899then :
4900  printf %s "(cached) " >&6
4901else $as_nop
4902  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4903   then ac_cv_path_FGREP="$GREP -F"
4904   else
4905     if test -z "$FGREP"; then
4906  ac_path_FGREP_found=false
4907  # Loop through the user's path and test for each of PROGNAME-LIST
4908  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4910do
4911  IFS=$as_save_IFS
4912  case $as_dir in #(((
4913    '') as_dir=./ ;;
4914    */) ;;
4915    *) as_dir=$as_dir/ ;;
4916  esac
4917    for ac_prog in fgrep
4918   do
4919    for ac_exec_ext in '' $ac_executable_extensions; do
4920      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4921      as_fn_executable_p "$ac_path_FGREP" || continue
4922# Check for GNU ac_path_FGREP and select it if it is found.
4923  # Check for GNU $ac_path_FGREP
4924case `"$ac_path_FGREP" --version 2>&1` in
4925*GNU*)
4926  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4927*)
4928  ac_count=0
4929  printf %s 0123456789 >"conftest.in"
4930  while :
4931  do
4932    cat "conftest.in" "conftest.in" >"conftest.tmp"
4933    mv "conftest.tmp" "conftest.in"
4934    cp "conftest.in" "conftest.nl"
4935    printf "%s\n" 'FGREP' >> "conftest.nl"
4936    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4937    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4938    as_fn_arith $ac_count + 1 && ac_count=$as_val
4939    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4940      # Best one so far, save it but keep looking for a better one
4941      ac_cv_path_FGREP="$ac_path_FGREP"
4942      ac_path_FGREP_max=$ac_count
4943    fi
4944    # 10*(2^10) chars as input seems more than enough
4945    test $ac_count -gt 10 && break
4946  done
4947  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4948esac
4949
4950      $ac_path_FGREP_found && break 3
4951    done
4952  done
4953  done
4954IFS=$as_save_IFS
4955  if test -z "$ac_cv_path_FGREP"; then
4956    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4957  fi
4958else
4959  ac_cv_path_FGREP=$FGREP
4960fi
4961
4962   fi
4963fi
4964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4965printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4966 FGREP="$ac_cv_path_FGREP"
4967
4968
4969test -z "$GREP" && GREP=grep
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989# Check whether --with-gnu-ld was given.
4990if test ${with_gnu_ld+y}
4991then :
4992  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4993else $as_nop
4994  with_gnu_ld=no
4995fi
4996
4997ac_prog=ld
4998if test yes = "$GCC"; then
4999  # Check if gcc -print-prog-name=ld gives a path.
5000  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5001printf %s "checking for ld used by $CC... " >&6; }
5002  case $host in
5003  *-*-mingw*)
5004    # gcc leaves a trailing carriage return, which upsets mingw
5005    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5006  *)
5007    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5008  esac
5009  case $ac_prog in
5010    # Accept absolute paths.
5011    [\\/]* | ?:[\\/]*)
5012      re_direlt='/[^/][^/]*/\.\./'
5013      # Canonicalize the pathname of ld
5014      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5015      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5016	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5017      done
5018      test -z "$LD" && LD=$ac_prog
5019      ;;
5020  "")
5021    # If it fails, then pretend we aren't using GCC.
5022    ac_prog=ld
5023    ;;
5024  *)
5025    # If it is relative, then search for the first ld in PATH.
5026    with_gnu_ld=unknown
5027    ;;
5028  esac
5029elif test yes = "$with_gnu_ld"; then
5030  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5031printf %s "checking for GNU ld... " >&6; }
5032else
5033  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5034printf %s "checking for non-GNU ld... " >&6; }
5035fi
5036if test ${lt_cv_path_LD+y}
5037then :
5038  printf %s "(cached) " >&6
5039else $as_nop
5040  if test -z "$LD"; then
5041  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5042  for ac_dir in $PATH; do
5043    IFS=$lt_save_ifs
5044    test -z "$ac_dir" && ac_dir=.
5045    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5046      lt_cv_path_LD=$ac_dir/$ac_prog
5047      # Check to see if the program is GNU ld.  I'd rather use --version,
5048      # but apparently some variants of GNU ld only accept -v.
5049      # Break only if it was the GNU/non-GNU ld that we prefer.
5050      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5051      *GNU* | *'with BFD'*)
5052	test no != "$with_gnu_ld" && break
5053	;;
5054      *)
5055	test yes != "$with_gnu_ld" && break
5056	;;
5057      esac
5058    fi
5059  done
5060  IFS=$lt_save_ifs
5061else
5062  lt_cv_path_LD=$LD # Let the user override the test with a path.
5063fi
5064fi
5065
5066LD=$lt_cv_path_LD
5067if test -n "$LD"; then
5068  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5069printf "%s\n" "$LD" >&6; }
5070else
5071  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5072printf "%s\n" "no" >&6; }
5073fi
5074test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5076printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5077if test ${lt_cv_prog_gnu_ld+y}
5078then :
5079  printf %s "(cached) " >&6
5080else $as_nop
5081  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5082case `$LD -v 2>&1 </dev/null` in
5083*GNU* | *'with BFD'*)
5084  lt_cv_prog_gnu_ld=yes
5085  ;;
5086*)
5087  lt_cv_prog_gnu_ld=no
5088  ;;
5089esac
5090fi
5091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5092printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5093with_gnu_ld=$lt_cv_prog_gnu_ld
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5104printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5105if test ${lt_cv_path_NM+y}
5106then :
5107  printf %s "(cached) " >&6
5108else $as_nop
5109  if test -n "$NM"; then
5110  # Let the user override the test.
5111  lt_cv_path_NM=$NM
5112else
5113  lt_nm_to_check=${ac_tool_prefix}nm
5114  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5115    lt_nm_to_check="$lt_nm_to_check nm"
5116  fi
5117  for lt_tmp_nm in $lt_nm_to_check; do
5118    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5119    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5120      IFS=$lt_save_ifs
5121      test -z "$ac_dir" && ac_dir=.
5122      tmp_nm=$ac_dir/$lt_tmp_nm
5123      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5124	# Check to see if the nm accepts a BSD-compat flag.
5125	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5126	#   nm: unknown option "B" ignored
5127	# Tru64's nm complains that /dev/null is an invalid object file
5128	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5129	case $build_os in
5130	mingw*) lt_bad_file=conftest.nm/nofile ;;
5131	*) lt_bad_file=/dev/null ;;
5132	esac
5133	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5134	*$lt_bad_file* | *'Invalid file or object type'*)
5135	  lt_cv_path_NM="$tmp_nm -B"
5136	  break 2
5137	  ;;
5138	*)
5139	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5140	  */dev/null*)
5141	    lt_cv_path_NM="$tmp_nm -p"
5142	    break 2
5143	    ;;
5144	  *)
5145	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5146	    continue # so that we can try to find one that supports BSD flags
5147	    ;;
5148	  esac
5149	  ;;
5150	esac
5151      fi
5152    done
5153    IFS=$lt_save_ifs
5154  done
5155  : ${lt_cv_path_NM=no}
5156fi
5157fi
5158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5159printf "%s\n" "$lt_cv_path_NM" >&6; }
5160if test no != "$lt_cv_path_NM"; then
5161  NM=$lt_cv_path_NM
5162else
5163  # Didn't find any BSD compatible name lister, look for dumpbin.
5164  if test -n "$DUMPBIN"; then :
5165    # Let the user override the test.
5166  else
5167    if test -n "$ac_tool_prefix"; then
5168  for ac_prog in dumpbin "link -dump"
5169  do
5170    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5171set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5173printf %s "checking for $ac_word... " >&6; }
5174if test ${ac_cv_prog_DUMPBIN+y}
5175then :
5176  printf %s "(cached) " >&6
5177else $as_nop
5178  if test -n "$DUMPBIN"; then
5179  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5180else
5181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182for as_dir in $PATH
5183do
5184  IFS=$as_save_IFS
5185  case $as_dir in #(((
5186    '') as_dir=./ ;;
5187    */) ;;
5188    *) as_dir=$as_dir/ ;;
5189  esac
5190    for ac_exec_ext in '' $ac_executable_extensions; do
5191  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5192    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5193    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5194    break 2
5195  fi
5196done
5197  done
5198IFS=$as_save_IFS
5199
5200fi
5201fi
5202DUMPBIN=$ac_cv_prog_DUMPBIN
5203if test -n "$DUMPBIN"; then
5204  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5205printf "%s\n" "$DUMPBIN" >&6; }
5206else
5207  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208printf "%s\n" "no" >&6; }
5209fi
5210
5211
5212    test -n "$DUMPBIN" && break
5213  done
5214fi
5215if test -z "$DUMPBIN"; then
5216  ac_ct_DUMPBIN=$DUMPBIN
5217  for ac_prog in dumpbin "link -dump"
5218do
5219  # Extract the first word of "$ac_prog", so it can be a program name with args.
5220set dummy $ac_prog; ac_word=$2
5221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222printf %s "checking for $ac_word... " >&6; }
5223if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5224then :
5225  printf %s "(cached) " >&6
5226else $as_nop
5227  if test -n "$ac_ct_DUMPBIN"; then
5228  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5229else
5230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231for as_dir in $PATH
5232do
5233  IFS=$as_save_IFS
5234  case $as_dir in #(((
5235    '') as_dir=./ ;;
5236    */) ;;
5237    *) as_dir=$as_dir/ ;;
5238  esac
5239    for ac_exec_ext in '' $ac_executable_extensions; do
5240  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5241    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5242    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5243    break 2
5244  fi
5245done
5246  done
5247IFS=$as_save_IFS
5248
5249fi
5250fi
5251ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5252if test -n "$ac_ct_DUMPBIN"; then
5253  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5254printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5255else
5256  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257printf "%s\n" "no" >&6; }
5258fi
5259
5260
5261  test -n "$ac_ct_DUMPBIN" && break
5262done
5263
5264  if test "x$ac_ct_DUMPBIN" = x; then
5265    DUMPBIN=":"
5266  else
5267    case $cross_compiling:$ac_tool_warned in
5268yes:)
5269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5270printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5271ac_tool_warned=yes ;;
5272esac
5273    DUMPBIN=$ac_ct_DUMPBIN
5274  fi
5275fi
5276
5277    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5278    *COFF*)
5279      DUMPBIN="$DUMPBIN -symbols -headers"
5280      ;;
5281    *)
5282      DUMPBIN=:
5283      ;;
5284    esac
5285  fi
5286
5287  if test : != "$DUMPBIN"; then
5288    NM=$DUMPBIN
5289  fi
5290fi
5291test -z "$NM" && NM=nm
5292
5293
5294
5295
5296
5297
5298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5299printf %s "checking the name lister ($NM) interface... " >&6; }
5300if test ${lt_cv_nm_interface+y}
5301then :
5302  printf %s "(cached) " >&6
5303else $as_nop
5304  lt_cv_nm_interface="BSD nm"
5305  echo "int some_variable = 0;" > conftest.$ac_ext
5306  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5307  (eval "$ac_compile" 2>conftest.err)
5308  cat conftest.err >&5
5309  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5310  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5311  cat conftest.err >&5
5312  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5313  cat conftest.out >&5
5314  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5315    lt_cv_nm_interface="MS dumpbin"
5316  fi
5317  rm -f conftest*
5318fi
5319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5320printf "%s\n" "$lt_cv_nm_interface" >&6; }
5321
5322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5323printf %s "checking whether ln -s works... " >&6; }
5324LN_S=$as_ln_s
5325if test "$LN_S" = "ln -s"; then
5326  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5327printf "%s\n" "yes" >&6; }
5328else
5329  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5330printf "%s\n" "no, using $LN_S" >&6; }
5331fi
5332
5333# find the maximum length of command line arguments
5334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5335printf %s "checking the maximum length of command line arguments... " >&6; }
5336if test ${lt_cv_sys_max_cmd_len+y}
5337then :
5338  printf %s "(cached) " >&6
5339else $as_nop
5340    i=0
5341  teststring=ABCD
5342
5343  case $build_os in
5344  msdosdjgpp*)
5345    # On DJGPP, this test can blow up pretty badly due to problems in libc
5346    # (any single argument exceeding 2000 bytes causes a buffer overrun
5347    # during glob expansion).  Even if it were fixed, the result of this
5348    # check would be larger than it should be.
5349    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5350    ;;
5351
5352  gnu*)
5353    # Under GNU Hurd, this test is not required because there is
5354    # no limit to the length of command line arguments.
5355    # Libtool will interpret -1 as no limit whatsoever
5356    lt_cv_sys_max_cmd_len=-1;
5357    ;;
5358
5359  cygwin* | mingw* | cegcc*)
5360    # On Win9x/ME, this test blows up -- it succeeds, but takes
5361    # about 5 minutes as the teststring grows exponentially.
5362    # Worse, since 9x/ME are not pre-emptively multitasking,
5363    # you end up with a "frozen" computer, even though with patience
5364    # the test eventually succeeds (with a max line length of 256k).
5365    # Instead, let's just punt: use the minimum linelength reported by
5366    # all of the supported platforms: 8192 (on NT/2K/XP).
5367    lt_cv_sys_max_cmd_len=8192;
5368    ;;
5369
5370  mint*)
5371    # On MiNT this can take a long time and run out of memory.
5372    lt_cv_sys_max_cmd_len=8192;
5373    ;;
5374
5375  amigaos*)
5376    # On AmigaOS with pdksh, this test takes hours, literally.
5377    # So we just punt and use a minimum line length of 8192.
5378    lt_cv_sys_max_cmd_len=8192;
5379    ;;
5380
5381  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5382    # This has been around since 386BSD, at least.  Likely further.
5383    if test -x /sbin/sysctl; then
5384      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5385    elif test -x /usr/sbin/sysctl; then
5386      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5387    else
5388      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5389    fi
5390    # And add a safety zone
5391    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5392    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5393    ;;
5394
5395  interix*)
5396    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5397    lt_cv_sys_max_cmd_len=196608
5398    ;;
5399
5400  os2*)
5401    # The test takes a long time on OS/2.
5402    lt_cv_sys_max_cmd_len=8192
5403    ;;
5404
5405  osf*)
5406    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5407    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5408    # nice to cause kernel panics so lets avoid the loop below.
5409    # First set a reasonable default.
5410    lt_cv_sys_max_cmd_len=16384
5411    #
5412    if test -x /sbin/sysconfig; then
5413      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5414        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5415      esac
5416    fi
5417    ;;
5418  sco3.2v5*)
5419    lt_cv_sys_max_cmd_len=102400
5420    ;;
5421  sysv5* | sco5v6* | sysv4.2uw2*)
5422    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5423    if test -n "$kargmax"; then
5424      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5425    else
5426      lt_cv_sys_max_cmd_len=32768
5427    fi
5428    ;;
5429  *)
5430    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5431    if test -n "$lt_cv_sys_max_cmd_len" && \
5432       test undefined != "$lt_cv_sys_max_cmd_len"; then
5433      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5434      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5435    else
5436      # Make teststring a little bigger before we do anything with it.
5437      # a 1K string should be a reasonable start.
5438      for i in 1 2 3 4 5 6 7 8; do
5439        teststring=$teststring$teststring
5440      done
5441      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5442      # If test is not a shell built-in, we'll probably end up computing a
5443      # maximum length that is only half of the actual maximum length, but
5444      # we can't tell.
5445      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5446	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5447	      test 17 != "$i" # 1/2 MB should be enough
5448      do
5449        i=`expr $i + 1`
5450        teststring=$teststring$teststring
5451      done
5452      # Only check the string length outside the loop.
5453      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5454      teststring=
5455      # Add a significant safety factor because C++ compilers can tack on
5456      # massive amounts of additional arguments before passing them to the
5457      # linker.  It appears as though 1/2 is a usable value.
5458      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5459    fi
5460    ;;
5461  esac
5462
5463fi
5464
5465if test -n "$lt_cv_sys_max_cmd_len"; then
5466  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5467printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5468else
5469  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5470printf "%s\n" "none" >&6; }
5471fi
5472max_cmd_len=$lt_cv_sys_max_cmd_len
5473
5474
5475
5476
5477
5478
5479: ${CP="cp -f"}
5480: ${MV="mv -f"}
5481: ${RM="rm -f"}
5482
5483if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5484  lt_unset=unset
5485else
5486  lt_unset=false
5487fi
5488
5489
5490
5491
5492
5493# test EBCDIC or ASCII
5494case `echo X|tr X '\101'` in
5495 A) # ASCII based system
5496    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5497  lt_SP2NL='tr \040 \012'
5498  lt_NL2SP='tr \015\012 \040\040'
5499  ;;
5500 *) # EBCDIC based system
5501  lt_SP2NL='tr \100 \n'
5502  lt_NL2SP='tr \r\n \100\100'
5503  ;;
5504esac
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5515printf %s "checking how to convert $build file names to $host format... " >&6; }
5516if test ${lt_cv_to_host_file_cmd+y}
5517then :
5518  printf %s "(cached) " >&6
5519else $as_nop
5520  case $host in
5521  *-*-mingw* )
5522    case $build in
5523      *-*-mingw* ) # actually msys
5524        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5525        ;;
5526      *-*-cygwin* )
5527        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5528        ;;
5529      * ) # otherwise, assume *nix
5530        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5531        ;;
5532    esac
5533    ;;
5534  *-*-cygwin* )
5535    case $build in
5536      *-*-mingw* ) # actually msys
5537        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5538        ;;
5539      *-*-cygwin* )
5540        lt_cv_to_host_file_cmd=func_convert_file_noop
5541        ;;
5542      * ) # otherwise, assume *nix
5543        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5544        ;;
5545    esac
5546    ;;
5547  * ) # unhandled hosts (and "normal" native builds)
5548    lt_cv_to_host_file_cmd=func_convert_file_noop
5549    ;;
5550esac
5551
5552fi
5553
5554to_host_file_cmd=$lt_cv_to_host_file_cmd
5555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5556printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5557
5558
5559
5560
5561
5562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5563printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5564if test ${lt_cv_to_tool_file_cmd+y}
5565then :
5566  printf %s "(cached) " >&6
5567else $as_nop
5568  #assume ordinary cross tools, or native build.
5569lt_cv_to_tool_file_cmd=func_convert_file_noop
5570case $host in
5571  *-*-mingw* )
5572    case $build in
5573      *-*-mingw* ) # actually msys
5574        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5575        ;;
5576    esac
5577    ;;
5578esac
5579
5580fi
5581
5582to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5584printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5585
5586
5587
5588
5589
5590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5591printf %s "checking for $LD option to reload object files... " >&6; }
5592if test ${lt_cv_ld_reload_flag+y}
5593then :
5594  printf %s "(cached) " >&6
5595else $as_nop
5596  lt_cv_ld_reload_flag='-r'
5597fi
5598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5599printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5600reload_flag=$lt_cv_ld_reload_flag
5601case $reload_flag in
5602"" | " "*) ;;
5603*) reload_flag=" $reload_flag" ;;
5604esac
5605reload_cmds='$LD$reload_flag -o $output$reload_objs'
5606case $host_os in
5607  cygwin* | mingw* | pw32* | cegcc*)
5608    if test yes != "$GCC"; then
5609      reload_cmds=false
5610    fi
5611    ;;
5612  darwin*)
5613    if test yes = "$GCC"; then
5614      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5615    else
5616      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5617    fi
5618    ;;
5619esac
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629if test -n "$ac_tool_prefix"; then
5630  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5631set dummy ${ac_tool_prefix}objdump; ac_word=$2
5632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5633printf %s "checking for $ac_word... " >&6; }
5634if test ${ac_cv_prog_OBJDUMP+y}
5635then :
5636  printf %s "(cached) " >&6
5637else $as_nop
5638  if test -n "$OBJDUMP"; then
5639  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5640else
5641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642for as_dir in $PATH
5643do
5644  IFS=$as_save_IFS
5645  case $as_dir in #(((
5646    '') as_dir=./ ;;
5647    */) ;;
5648    *) as_dir=$as_dir/ ;;
5649  esac
5650    for ac_exec_ext in '' $ac_executable_extensions; do
5651  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5652    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5653    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5654    break 2
5655  fi
5656done
5657  done
5658IFS=$as_save_IFS
5659
5660fi
5661fi
5662OBJDUMP=$ac_cv_prog_OBJDUMP
5663if test -n "$OBJDUMP"; then
5664  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5665printf "%s\n" "$OBJDUMP" >&6; }
5666else
5667  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668printf "%s\n" "no" >&6; }
5669fi
5670
5671
5672fi
5673if test -z "$ac_cv_prog_OBJDUMP"; then
5674  ac_ct_OBJDUMP=$OBJDUMP
5675  # Extract the first word of "objdump", so it can be a program name with args.
5676set dummy objdump; ac_word=$2
5677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5678printf %s "checking for $ac_word... " >&6; }
5679if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5680then :
5681  printf %s "(cached) " >&6
5682else $as_nop
5683  if test -n "$ac_ct_OBJDUMP"; then
5684  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5685else
5686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687for as_dir in $PATH
5688do
5689  IFS=$as_save_IFS
5690  case $as_dir in #(((
5691    '') as_dir=./ ;;
5692    */) ;;
5693    *) as_dir=$as_dir/ ;;
5694  esac
5695    for ac_exec_ext in '' $ac_executable_extensions; do
5696  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5697    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5698    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5699    break 2
5700  fi
5701done
5702  done
5703IFS=$as_save_IFS
5704
5705fi
5706fi
5707ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5708if test -n "$ac_ct_OBJDUMP"; then
5709  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5710printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5711else
5712  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5713printf "%s\n" "no" >&6; }
5714fi
5715
5716  if test "x$ac_ct_OBJDUMP" = x; then
5717    OBJDUMP="false"
5718  else
5719    case $cross_compiling:$ac_tool_warned in
5720yes:)
5721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5722printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5723ac_tool_warned=yes ;;
5724esac
5725    OBJDUMP=$ac_ct_OBJDUMP
5726  fi
5727else
5728  OBJDUMP="$ac_cv_prog_OBJDUMP"
5729fi
5730
5731test -z "$OBJDUMP" && OBJDUMP=objdump
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5742printf %s "checking how to recognize dependent libraries... " >&6; }
5743if test ${lt_cv_deplibs_check_method+y}
5744then :
5745  printf %s "(cached) " >&6
5746else $as_nop
5747  lt_cv_file_magic_cmd='$MAGIC_CMD'
5748lt_cv_file_magic_test_file=
5749lt_cv_deplibs_check_method='unknown'
5750# Need to set the preceding variable on all platforms that support
5751# interlibrary dependencies.
5752# 'none' -- dependencies not supported.
5753# 'unknown' -- same as none, but documents that we really don't know.
5754# 'pass_all' -- all dependencies passed with no checks.
5755# 'test_compile' -- check by making test program.
5756# 'file_magic [[regex]]' -- check by looking for files in library path
5757# that responds to the $file_magic_cmd with a given extended regex.
5758# If you have 'file' or equivalent on your system and you're not sure
5759# whether 'pass_all' will *always* work, you probably want this one.
5760
5761case $host_os in
5762aix[4-9]*)
5763  lt_cv_deplibs_check_method=pass_all
5764  ;;
5765
5766beos*)
5767  lt_cv_deplibs_check_method=pass_all
5768  ;;
5769
5770bsdi[45]*)
5771  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5772  lt_cv_file_magic_cmd='/usr/bin/file -L'
5773  lt_cv_file_magic_test_file=/shlib/libc.so
5774  ;;
5775
5776cygwin*)
5777  # func_win32_libid is a shell function defined in ltmain.sh
5778  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5779  lt_cv_file_magic_cmd='func_win32_libid'
5780  ;;
5781
5782mingw* | pw32*)
5783  # Base MSYS/MinGW do not provide the 'file' command needed by
5784  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5785  # unless we find 'file', for example because we are cross-compiling.
5786  if ( file / ) >/dev/null 2>&1; then
5787    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5788    lt_cv_file_magic_cmd='func_win32_libid'
5789  else
5790    # Keep this pattern in sync with the one in func_win32_libid.
5791    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5792    lt_cv_file_magic_cmd='$OBJDUMP -f'
5793  fi
5794  ;;
5795
5796cegcc*)
5797  # use the weaker test based on 'objdump'. See mingw*.
5798  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5799  lt_cv_file_magic_cmd='$OBJDUMP -f'
5800  ;;
5801
5802darwin* | rhapsody*)
5803  lt_cv_deplibs_check_method=pass_all
5804  ;;
5805
5806freebsd* | dragonfly*)
5807  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5808    case $host_cpu in
5809    i*86 )
5810      # Not sure whether the presence of OpenBSD here was a mistake.
5811      # Let's accept both of them until this is cleared up.
5812      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5813      lt_cv_file_magic_cmd=/usr/bin/file
5814      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5815      ;;
5816    esac
5817  else
5818    lt_cv_deplibs_check_method=pass_all
5819  fi
5820  ;;
5821
5822haiku*)
5823  lt_cv_deplibs_check_method=pass_all
5824  ;;
5825
5826hpux10.20* | hpux11*)
5827  lt_cv_file_magic_cmd=/usr/bin/file
5828  case $host_cpu in
5829  ia64*)
5830    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5831    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5832    ;;
5833  hppa*64*)
5834    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]'
5835    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5836    ;;
5837  *)
5838    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5839    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5840    ;;
5841  esac
5842  ;;
5843
5844interix[3-9]*)
5845  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5846  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5847  ;;
5848
5849irix5* | irix6* | nonstopux*)
5850  case $LD in
5851  *-32|*"-32 ") libmagic=32-bit;;
5852  *-n32|*"-n32 ") libmagic=N32;;
5853  *-64|*"-64 ") libmagic=64-bit;;
5854  *) libmagic=never-match;;
5855  esac
5856  lt_cv_deplibs_check_method=pass_all
5857  ;;
5858
5859# This must be glibc/ELF.
5860linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5861  lt_cv_deplibs_check_method=pass_all
5862  ;;
5863
5864netbsd*)
5865  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5866    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5867  else
5868    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5869  fi
5870  ;;
5871
5872newos6*)
5873  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5874  lt_cv_file_magic_cmd=/usr/bin/file
5875  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5876  ;;
5877
5878*nto* | *qnx*)
5879  lt_cv_deplibs_check_method=pass_all
5880  ;;
5881
5882openbsd* | bitrig*)
5883  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5884    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5885  else
5886    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5887  fi
5888  ;;
5889
5890osf3* | osf4* | osf5*)
5891  lt_cv_deplibs_check_method=pass_all
5892  ;;
5893
5894rdos*)
5895  lt_cv_deplibs_check_method=pass_all
5896  ;;
5897
5898solaris*)
5899  lt_cv_deplibs_check_method=pass_all
5900  ;;
5901
5902sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5903  lt_cv_deplibs_check_method=pass_all
5904  ;;
5905
5906sysv4 | sysv4.3*)
5907  case $host_vendor in
5908  motorola)
5909    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]'
5910    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5911    ;;
5912  ncr)
5913    lt_cv_deplibs_check_method=pass_all
5914    ;;
5915  sequent)
5916    lt_cv_file_magic_cmd='/bin/file'
5917    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5918    ;;
5919  sni)
5920    lt_cv_file_magic_cmd='/bin/file'
5921    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5922    lt_cv_file_magic_test_file=/lib/libc.so
5923    ;;
5924  siemens)
5925    lt_cv_deplibs_check_method=pass_all
5926    ;;
5927  pc)
5928    lt_cv_deplibs_check_method=pass_all
5929    ;;
5930  esac
5931  ;;
5932
5933tpf*)
5934  lt_cv_deplibs_check_method=pass_all
5935  ;;
5936os2*)
5937  lt_cv_deplibs_check_method=pass_all
5938  ;;
5939esac
5940
5941fi
5942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5943printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
5944
5945file_magic_glob=
5946want_nocaseglob=no
5947if test "$build" = "$host"; then
5948  case $host_os in
5949  mingw* | pw32*)
5950    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5951      want_nocaseglob=yes
5952    else
5953      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5954    fi
5955    ;;
5956  esac
5957fi
5958
5959file_magic_cmd=$lt_cv_file_magic_cmd
5960deplibs_check_method=$lt_cv_deplibs_check_method
5961test -z "$deplibs_check_method" && deplibs_check_method=unknown
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984if test -n "$ac_tool_prefix"; then
5985  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5986set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5988printf %s "checking for $ac_word... " >&6; }
5989if test ${ac_cv_prog_DLLTOOL+y}
5990then :
5991  printf %s "(cached) " >&6
5992else $as_nop
5993  if test -n "$DLLTOOL"; then
5994  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5995else
5996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997for as_dir in $PATH
5998do
5999  IFS=$as_save_IFS
6000  case $as_dir in #(((
6001    '') as_dir=./ ;;
6002    */) ;;
6003    *) as_dir=$as_dir/ ;;
6004  esac
6005    for ac_exec_ext in '' $ac_executable_extensions; do
6006  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6007    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6008    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6009    break 2
6010  fi
6011done
6012  done
6013IFS=$as_save_IFS
6014
6015fi
6016fi
6017DLLTOOL=$ac_cv_prog_DLLTOOL
6018if test -n "$DLLTOOL"; then
6019  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6020printf "%s\n" "$DLLTOOL" >&6; }
6021else
6022  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6023printf "%s\n" "no" >&6; }
6024fi
6025
6026
6027fi
6028if test -z "$ac_cv_prog_DLLTOOL"; then
6029  ac_ct_DLLTOOL=$DLLTOOL
6030  # Extract the first word of "dlltool", so it can be a program name with args.
6031set dummy dlltool; ac_word=$2
6032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6033printf %s "checking for $ac_word... " >&6; }
6034if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6035then :
6036  printf %s "(cached) " >&6
6037else $as_nop
6038  if test -n "$ac_ct_DLLTOOL"; then
6039  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6040else
6041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042for as_dir in $PATH
6043do
6044  IFS=$as_save_IFS
6045  case $as_dir in #(((
6046    '') as_dir=./ ;;
6047    */) ;;
6048    *) as_dir=$as_dir/ ;;
6049  esac
6050    for ac_exec_ext in '' $ac_executable_extensions; do
6051  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6052    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6053    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6054    break 2
6055  fi
6056done
6057  done
6058IFS=$as_save_IFS
6059
6060fi
6061fi
6062ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6063if test -n "$ac_ct_DLLTOOL"; then
6064  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6065printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6066else
6067  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068printf "%s\n" "no" >&6; }
6069fi
6070
6071  if test "x$ac_ct_DLLTOOL" = x; then
6072    DLLTOOL="false"
6073  else
6074    case $cross_compiling:$ac_tool_warned in
6075yes:)
6076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6077printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6078ac_tool_warned=yes ;;
6079esac
6080    DLLTOOL=$ac_ct_DLLTOOL
6081  fi
6082else
6083  DLLTOOL="$ac_cv_prog_DLLTOOL"
6084fi
6085
6086test -z "$DLLTOOL" && DLLTOOL=dlltool
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6098printf %s "checking how to associate runtime and link libraries... " >&6; }
6099if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6100then :
6101  printf %s "(cached) " >&6
6102else $as_nop
6103  lt_cv_sharedlib_from_linklib_cmd='unknown'
6104
6105case $host_os in
6106cygwin* | mingw* | pw32* | cegcc*)
6107  # two different shell functions defined in ltmain.sh;
6108  # decide which one to use based on capabilities of $DLLTOOL
6109  case `$DLLTOOL --help 2>&1` in
6110  *--identify-strict*)
6111    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6112    ;;
6113  *)
6114    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6115    ;;
6116  esac
6117  ;;
6118*)
6119  # fallback: assume linklib IS sharedlib
6120  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6121  ;;
6122esac
6123
6124fi
6125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6126printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6127sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6128test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6129
6130
6131
6132
6133
6134
6135
6136
6137if test -n "$ac_tool_prefix"; then
6138  for ac_prog in ar
6139  do
6140    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6141set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6143printf %s "checking for $ac_word... " >&6; }
6144if test ${ac_cv_prog_AR+y}
6145then :
6146  printf %s "(cached) " >&6
6147else $as_nop
6148  if test -n "$AR"; then
6149  ac_cv_prog_AR="$AR" # Let the user override the test.
6150else
6151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152for as_dir in $PATH
6153do
6154  IFS=$as_save_IFS
6155  case $as_dir in #(((
6156    '') as_dir=./ ;;
6157    */) ;;
6158    *) as_dir=$as_dir/ ;;
6159  esac
6160    for ac_exec_ext in '' $ac_executable_extensions; do
6161  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6162    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6163    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6164    break 2
6165  fi
6166done
6167  done
6168IFS=$as_save_IFS
6169
6170fi
6171fi
6172AR=$ac_cv_prog_AR
6173if test -n "$AR"; then
6174  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6175printf "%s\n" "$AR" >&6; }
6176else
6177  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6178printf "%s\n" "no" >&6; }
6179fi
6180
6181
6182    test -n "$AR" && break
6183  done
6184fi
6185if test -z "$AR"; then
6186  ac_ct_AR=$AR
6187  for ac_prog in ar
6188do
6189  # Extract the first word of "$ac_prog", so it can be a program name with args.
6190set dummy $ac_prog; ac_word=$2
6191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6192printf %s "checking for $ac_word... " >&6; }
6193if test ${ac_cv_prog_ac_ct_AR+y}
6194then :
6195  printf %s "(cached) " >&6
6196else $as_nop
6197  if test -n "$ac_ct_AR"; then
6198  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6199else
6200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201for as_dir in $PATH
6202do
6203  IFS=$as_save_IFS
6204  case $as_dir in #(((
6205    '') as_dir=./ ;;
6206    */) ;;
6207    *) as_dir=$as_dir/ ;;
6208  esac
6209    for ac_exec_ext in '' $ac_executable_extensions; do
6210  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6211    ac_cv_prog_ac_ct_AR="$ac_prog"
6212    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6213    break 2
6214  fi
6215done
6216  done
6217IFS=$as_save_IFS
6218
6219fi
6220fi
6221ac_ct_AR=$ac_cv_prog_ac_ct_AR
6222if test -n "$ac_ct_AR"; then
6223  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6224printf "%s\n" "$ac_ct_AR" >&6; }
6225else
6226  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227printf "%s\n" "no" >&6; }
6228fi
6229
6230
6231  test -n "$ac_ct_AR" && break
6232done
6233
6234  if test "x$ac_ct_AR" = x; then
6235    AR="false"
6236  else
6237    case $cross_compiling:$ac_tool_warned in
6238yes:)
6239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6240printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6241ac_tool_warned=yes ;;
6242esac
6243    AR=$ac_ct_AR
6244  fi
6245fi
6246
6247: ${AR=ar}
6248: ${AR_FLAGS=cru}
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6261printf %s "checking for archiver @FILE support... " >&6; }
6262if test ${lt_cv_ar_at_file+y}
6263then :
6264  printf %s "(cached) " >&6
6265else $as_nop
6266  lt_cv_ar_at_file=no
6267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6268/* end confdefs.h.  */
6269
6270int
6271main (void)
6272{
6273
6274  ;
6275  return 0;
6276}
6277_ACEOF
6278if ac_fn_c_try_compile "$LINENO"
6279then :
6280  echo conftest.$ac_objext > conftest.lst
6281      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6282      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6283  (eval $lt_ar_try) 2>&5
6284  ac_status=$?
6285  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6286  test $ac_status = 0; }
6287      if test 0 -eq "$ac_status"; then
6288	# Ensure the archiver fails upon bogus file names.
6289	rm -f conftest.$ac_objext libconftest.a
6290	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6291  (eval $lt_ar_try) 2>&5
6292  ac_status=$?
6293  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6294  test $ac_status = 0; }
6295	if test 0 -ne "$ac_status"; then
6296          lt_cv_ar_at_file=@
6297        fi
6298      fi
6299      rm -f conftest.* libconftest.a
6300
6301fi
6302rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6303
6304fi
6305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6306printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6307
6308if test no = "$lt_cv_ar_at_file"; then
6309  archiver_list_spec=
6310else
6311  archiver_list_spec=$lt_cv_ar_at_file
6312fi
6313
6314
6315
6316
6317
6318
6319
6320if test -n "$ac_tool_prefix"; then
6321  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6322set dummy ${ac_tool_prefix}strip; ac_word=$2
6323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6324printf %s "checking for $ac_word... " >&6; }
6325if test ${ac_cv_prog_STRIP+y}
6326then :
6327  printf %s "(cached) " >&6
6328else $as_nop
6329  if test -n "$STRIP"; then
6330  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6331else
6332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333for as_dir in $PATH
6334do
6335  IFS=$as_save_IFS
6336  case $as_dir in #(((
6337    '') as_dir=./ ;;
6338    */) ;;
6339    *) as_dir=$as_dir/ ;;
6340  esac
6341    for ac_exec_ext in '' $ac_executable_extensions; do
6342  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6343    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6344    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6345    break 2
6346  fi
6347done
6348  done
6349IFS=$as_save_IFS
6350
6351fi
6352fi
6353STRIP=$ac_cv_prog_STRIP
6354if test -n "$STRIP"; then
6355  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6356printf "%s\n" "$STRIP" >&6; }
6357else
6358  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6359printf "%s\n" "no" >&6; }
6360fi
6361
6362
6363fi
6364if test -z "$ac_cv_prog_STRIP"; then
6365  ac_ct_STRIP=$STRIP
6366  # Extract the first word of "strip", so it can be a program name with args.
6367set dummy strip; ac_word=$2
6368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6369printf %s "checking for $ac_word... " >&6; }
6370if test ${ac_cv_prog_ac_ct_STRIP+y}
6371then :
6372  printf %s "(cached) " >&6
6373else $as_nop
6374  if test -n "$ac_ct_STRIP"; then
6375  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6376else
6377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378for as_dir in $PATH
6379do
6380  IFS=$as_save_IFS
6381  case $as_dir in #(((
6382    '') as_dir=./ ;;
6383    */) ;;
6384    *) as_dir=$as_dir/ ;;
6385  esac
6386    for ac_exec_ext in '' $ac_executable_extensions; do
6387  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6388    ac_cv_prog_ac_ct_STRIP="strip"
6389    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6390    break 2
6391  fi
6392done
6393  done
6394IFS=$as_save_IFS
6395
6396fi
6397fi
6398ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6399if test -n "$ac_ct_STRIP"; then
6400  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6401printf "%s\n" "$ac_ct_STRIP" >&6; }
6402else
6403  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6404printf "%s\n" "no" >&6; }
6405fi
6406
6407  if test "x$ac_ct_STRIP" = x; then
6408    STRIP=":"
6409  else
6410    case $cross_compiling:$ac_tool_warned in
6411yes:)
6412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6413printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6414ac_tool_warned=yes ;;
6415esac
6416    STRIP=$ac_ct_STRIP
6417  fi
6418else
6419  STRIP="$ac_cv_prog_STRIP"
6420fi
6421
6422test -z "$STRIP" && STRIP=:
6423
6424
6425
6426
6427
6428
6429if test -n "$ac_tool_prefix"; then
6430  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6431set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433printf %s "checking for $ac_word... " >&6; }
6434if test ${ac_cv_prog_RANLIB+y}
6435then :
6436  printf %s "(cached) " >&6
6437else $as_nop
6438  if test -n "$RANLIB"; then
6439  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6440else
6441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442for as_dir in $PATH
6443do
6444  IFS=$as_save_IFS
6445  case $as_dir in #(((
6446    '') as_dir=./ ;;
6447    */) ;;
6448    *) as_dir=$as_dir/ ;;
6449  esac
6450    for ac_exec_ext in '' $ac_executable_extensions; do
6451  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6452    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6453    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6454    break 2
6455  fi
6456done
6457  done
6458IFS=$as_save_IFS
6459
6460fi
6461fi
6462RANLIB=$ac_cv_prog_RANLIB
6463if test -n "$RANLIB"; then
6464  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6465printf "%s\n" "$RANLIB" >&6; }
6466else
6467  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6468printf "%s\n" "no" >&6; }
6469fi
6470
6471
6472fi
6473if test -z "$ac_cv_prog_RANLIB"; then
6474  ac_ct_RANLIB=$RANLIB
6475  # Extract the first word of "ranlib", so it can be a program name with args.
6476set dummy ranlib; ac_word=$2
6477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6478printf %s "checking for $ac_word... " >&6; }
6479if test ${ac_cv_prog_ac_ct_RANLIB+y}
6480then :
6481  printf %s "(cached) " >&6
6482else $as_nop
6483  if test -n "$ac_ct_RANLIB"; then
6484  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6485else
6486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487for as_dir in $PATH
6488do
6489  IFS=$as_save_IFS
6490  case $as_dir in #(((
6491    '') as_dir=./ ;;
6492    */) ;;
6493    *) as_dir=$as_dir/ ;;
6494  esac
6495    for ac_exec_ext in '' $ac_executable_extensions; do
6496  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6497    ac_cv_prog_ac_ct_RANLIB="ranlib"
6498    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6499    break 2
6500  fi
6501done
6502  done
6503IFS=$as_save_IFS
6504
6505fi
6506fi
6507ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6508if test -n "$ac_ct_RANLIB"; then
6509  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6510printf "%s\n" "$ac_ct_RANLIB" >&6; }
6511else
6512  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513printf "%s\n" "no" >&6; }
6514fi
6515
6516  if test "x$ac_ct_RANLIB" = x; then
6517    RANLIB=":"
6518  else
6519    case $cross_compiling:$ac_tool_warned in
6520yes:)
6521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6522printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6523ac_tool_warned=yes ;;
6524esac
6525    RANLIB=$ac_ct_RANLIB
6526  fi
6527else
6528  RANLIB="$ac_cv_prog_RANLIB"
6529fi
6530
6531test -z "$RANLIB" && RANLIB=:
6532
6533
6534
6535
6536
6537
6538# Determine commands to create old-style static archives.
6539old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6540old_postinstall_cmds='chmod 644 $oldlib'
6541old_postuninstall_cmds=
6542
6543if test -n "$RANLIB"; then
6544  case $host_os in
6545  bitrig* | openbsd*)
6546    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6547    ;;
6548  *)
6549    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6550    ;;
6551  esac
6552  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6553fi
6554
6555case $host_os in
6556  darwin*)
6557    lock_old_archive_extraction=yes ;;
6558  *)
6559    lock_old_archive_extraction=no ;;
6560esac
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600# If no C compiler was specified, use CC.
6601LTCC=${LTCC-"$CC"}
6602
6603# If no C compiler flags were specified, use CFLAGS.
6604LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6605
6606# Allow CC to be a program name with arguments.
6607compiler=$CC
6608
6609
6610# Check for command to grab the raw symbol name followed by C symbol from nm.
6611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6612printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6613if test ${lt_cv_sys_global_symbol_pipe+y}
6614then :
6615  printf %s "(cached) " >&6
6616else $as_nop
6617
6618# These are sane defaults that work on at least a few old systems.
6619# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6620
6621# Character class describing NM global symbol codes.
6622symcode='[BCDEGRST]'
6623
6624# Regexp to match symbols that can be accessed directly from C.
6625sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6626
6627# Define system-specific variables.
6628case $host_os in
6629aix*)
6630  symcode='[BCDT]'
6631  ;;
6632cygwin* | mingw* | pw32* | cegcc*)
6633  symcode='[ABCDGISTW]'
6634  ;;
6635hpux*)
6636  if test ia64 = "$host_cpu"; then
6637    symcode='[ABCDEGRST]'
6638  fi
6639  ;;
6640irix* | nonstopux*)
6641  symcode='[BCDEGRST]'
6642  ;;
6643osf*)
6644  symcode='[BCDEGQRST]'
6645  ;;
6646solaris*)
6647  symcode='[BDRT]'
6648  ;;
6649sco3.2v5*)
6650  symcode='[DT]'
6651  ;;
6652sysv4.2uw2*)
6653  symcode='[DT]'
6654  ;;
6655sysv5* | sco5v6* | unixware* | OpenUNIX*)
6656  symcode='[ABDT]'
6657  ;;
6658sysv4)
6659  symcode='[DFNSTU]'
6660  ;;
6661esac
6662
6663# If we're using GNU nm, then use its standard symbol codes.
6664case `$NM -V 2>&1` in
6665*GNU* | *'with BFD'*)
6666  symcode='[ABCDGIRSTW]' ;;
6667esac
6668
6669if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6670  # Gets list of data symbols to import.
6671  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6672  # Adjust the below global symbol transforms to fixup imported variables.
6673  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6674  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6675  lt_c_name_lib_hook="\
6676  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6677  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6678else
6679  # Disable hooks by default.
6680  lt_cv_sys_global_symbol_to_import=
6681  lt_cdecl_hook=
6682  lt_c_name_hook=
6683  lt_c_name_lib_hook=
6684fi
6685
6686# Transform an extracted symbol line into a proper C declaration.
6687# Some systems (esp. on ia64) link data and code symbols differently,
6688# so use this general approach.
6689lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6690$lt_cdecl_hook\
6691" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6692" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6693
6694# Transform an extracted symbol line into symbol name and symbol address
6695lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6696$lt_c_name_hook\
6697" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6698" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6699
6700# Transform an extracted symbol line into symbol name with lib prefix and
6701# symbol address.
6702lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6703$lt_c_name_lib_hook\
6704" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6705" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6706" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6707
6708# Handle CRLF in mingw tool chain
6709opt_cr=
6710case $build_os in
6711mingw*)
6712  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6713  ;;
6714esac
6715
6716# Try without a prefix underscore, then with it.
6717for ac_symprfx in "" "_"; do
6718
6719  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6720  symxfrm="\\1 $ac_symprfx\\2 \\2"
6721
6722  # Write the raw and C identifiers.
6723  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6724    # Fake it for dumpbin and say T for any non-static function,
6725    # D for any global variable and I for any imported variable.
6726    # Also find C++ and __fastcall symbols from MSVC++,
6727    # which start with @ or ?.
6728    lt_cv_sys_global_symbol_pipe="$AWK '"\
6729"     {last_section=section; section=\$ 3};"\
6730"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6731"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6732"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6733"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6734"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6735"     \$ 0!~/External *\|/{next};"\
6736"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6737"     {if(hide[section]) next};"\
6738"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6739"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6740"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6741"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6742"     ' prfx=^$ac_symprfx"
6743  else
6744    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6745  fi
6746  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6747
6748  # Check to see that the pipe works correctly.
6749  pipe_works=no
6750
6751  rm -f conftest*
6752  cat > conftest.$ac_ext <<_LT_EOF
6753#ifdef __cplusplus
6754extern "C" {
6755#endif
6756char nm_test_var;
6757void nm_test_func(void);
6758void nm_test_func(void){}
6759#ifdef __cplusplus
6760}
6761#endif
6762int main(){nm_test_var='a';nm_test_func();return(0);}
6763_LT_EOF
6764
6765  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6766  (eval $ac_compile) 2>&5
6767  ac_status=$?
6768  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6769  test $ac_status = 0; }; then
6770    # Now try to grab the symbols.
6771    nlist=conftest.nm
6772    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6773  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6774  ac_status=$?
6775  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6776  test $ac_status = 0; } && test -s "$nlist"; then
6777      # Try sorting and uniquifying the output.
6778      if sort "$nlist" | uniq > "$nlist"T; then
6779	mv -f "$nlist"T "$nlist"
6780      else
6781	rm -f "$nlist"T
6782      fi
6783
6784      # Make sure that we snagged all the symbols we need.
6785      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6786	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6787	  cat <<_LT_EOF > conftest.$ac_ext
6788/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6789#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6790/* DATA imports from DLLs on WIN32 can't be const, because runtime
6791   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6792# define LT_DLSYM_CONST
6793#elif defined __osf__
6794/* This system does not cope well with relocations in const data.  */
6795# define LT_DLSYM_CONST
6796#else
6797# define LT_DLSYM_CONST const
6798#endif
6799
6800#ifdef __cplusplus
6801extern "C" {
6802#endif
6803
6804_LT_EOF
6805	  # Now generate the symbol file.
6806	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6807
6808	  cat <<_LT_EOF >> conftest.$ac_ext
6809
6810/* The mapping between symbol names and symbols.  */
6811LT_DLSYM_CONST struct {
6812  const char *name;
6813  void       *address;
6814}
6815lt__PROGRAM__LTX_preloaded_symbols[] =
6816{
6817  { "@PROGRAM@", (void *) 0 },
6818_LT_EOF
6819	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6820	  cat <<\_LT_EOF >> conftest.$ac_ext
6821  {0, (void *) 0}
6822};
6823
6824/* This works around a problem in FreeBSD linker */
6825#ifdef FREEBSD_WORKAROUND
6826static const void *lt_preloaded_setup() {
6827  return lt__PROGRAM__LTX_preloaded_symbols;
6828}
6829#endif
6830
6831#ifdef __cplusplus
6832}
6833#endif
6834_LT_EOF
6835	  # Now try linking the two files.
6836	  mv conftest.$ac_objext conftstm.$ac_objext
6837	  lt_globsym_save_LIBS=$LIBS
6838	  lt_globsym_save_CFLAGS=$CFLAGS
6839	  LIBS=conftstm.$ac_objext
6840	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6841	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6842  (eval $ac_link) 2>&5
6843  ac_status=$?
6844  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6845  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6846	    pipe_works=yes
6847	  fi
6848	  LIBS=$lt_globsym_save_LIBS
6849	  CFLAGS=$lt_globsym_save_CFLAGS
6850	else
6851	  echo "cannot find nm_test_func in $nlist" >&5
6852	fi
6853      else
6854	echo "cannot find nm_test_var in $nlist" >&5
6855      fi
6856    else
6857      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6858    fi
6859  else
6860    echo "$progname: failed program was:" >&5
6861    cat conftest.$ac_ext >&5
6862  fi
6863  rm -rf conftest* conftst*
6864
6865  # Do not use the global_symbol_pipe unless it works.
6866  if test yes = "$pipe_works"; then
6867    break
6868  else
6869    lt_cv_sys_global_symbol_pipe=
6870  fi
6871done
6872
6873fi
6874
6875if test -z "$lt_cv_sys_global_symbol_pipe"; then
6876  lt_cv_sys_global_symbol_to_cdecl=
6877fi
6878if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6879  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6880printf "%s\n" "failed" >&6; }
6881else
6882  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6883printf "%s\n" "ok" >&6; }
6884fi
6885
6886# Response file support.
6887if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6888  nm_file_list_spec='@'
6889elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6890  nm_file_list_spec='@'
6891fi
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6930printf %s "checking for sysroot... " >&6; }
6931
6932# Check whether --with-sysroot was given.
6933if test ${with_sysroot+y}
6934then :
6935  withval=$with_sysroot;
6936else $as_nop
6937  with_sysroot=no
6938fi
6939
6940
6941lt_sysroot=
6942case $with_sysroot in #(
6943 yes)
6944   if test yes = "$GCC"; then
6945     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6946   fi
6947   ;; #(
6948 /*)
6949   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6950   ;; #(
6951 no|'')
6952   ;; #(
6953 *)
6954   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6955printf "%s\n" "$with_sysroot" >&6; }
6956   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6957   ;;
6958esac
6959
6960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6961printf "%s\n" "${lt_sysroot:-no}" >&6; }
6962
6963
6964
6965
6966
6967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6968printf %s "checking for a working dd... " >&6; }
6969if test ${ac_cv_path_lt_DD+y}
6970then :
6971  printf %s "(cached) " >&6
6972else $as_nop
6973  printf 0123456789abcdef0123456789abcdef >conftest.i
6974cat conftest.i conftest.i >conftest2.i
6975: ${lt_DD:=$DD}
6976if test -z "$lt_DD"; then
6977  ac_path_lt_DD_found=false
6978  # Loop through the user's path and test for each of PROGNAME-LIST
6979  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980for as_dir in $PATH
6981do
6982  IFS=$as_save_IFS
6983  case $as_dir in #(((
6984    '') as_dir=./ ;;
6985    */) ;;
6986    *) as_dir=$as_dir/ ;;
6987  esac
6988    for ac_prog in dd
6989   do
6990    for ac_exec_ext in '' $ac_executable_extensions; do
6991      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
6992      as_fn_executable_p "$ac_path_lt_DD" || continue
6993if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6994  cmp -s conftest.i conftest.out \
6995  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6996fi
6997      $ac_path_lt_DD_found && break 3
6998    done
6999  done
7000  done
7001IFS=$as_save_IFS
7002  if test -z "$ac_cv_path_lt_DD"; then
7003    :
7004  fi
7005else
7006  ac_cv_path_lt_DD=$lt_DD
7007fi
7008
7009rm -f conftest.i conftest2.i conftest.out
7010fi
7011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7012printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7013
7014
7015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7016printf %s "checking how to truncate binary pipes... " >&6; }
7017if test ${lt_cv_truncate_bin+y}
7018then :
7019  printf %s "(cached) " >&6
7020else $as_nop
7021  printf 0123456789abcdef0123456789abcdef >conftest.i
7022cat conftest.i conftest.i >conftest2.i
7023lt_cv_truncate_bin=
7024if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7025  cmp -s conftest.i conftest.out \
7026  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7027fi
7028rm -f conftest.i conftest2.i conftest.out
7029test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7030fi
7031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7032printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7033
7034
7035
7036
7037
7038
7039
7040# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7041func_cc_basename ()
7042{
7043    for cc_temp in $*""; do
7044      case $cc_temp in
7045        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7046        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7047        \-*) ;;
7048        *) break;;
7049      esac
7050    done
7051    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7052}
7053
7054# Check whether --enable-libtool-lock was given.
7055if test ${enable_libtool_lock+y}
7056then :
7057  enableval=$enable_libtool_lock;
7058fi
7059
7060test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7061
7062# Some flags need to be propagated to the compiler or linker for good
7063# libtool support.
7064case $host in
7065ia64-*-hpux*)
7066  # Find out what ABI is being produced by ac_compile, and set mode
7067  # options accordingly.
7068  echo 'int i;' > conftest.$ac_ext
7069  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7070  (eval $ac_compile) 2>&5
7071  ac_status=$?
7072  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7073  test $ac_status = 0; }; then
7074    case `/usr/bin/file conftest.$ac_objext` in
7075      *ELF-32*)
7076	HPUX_IA64_MODE=32
7077	;;
7078      *ELF-64*)
7079	HPUX_IA64_MODE=64
7080	;;
7081    esac
7082  fi
7083  rm -rf conftest*
7084  ;;
7085*-*-irix6*)
7086  # Find out what ABI is being produced by ac_compile, and set linker
7087  # options accordingly.
7088  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7089  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7090  (eval $ac_compile) 2>&5
7091  ac_status=$?
7092  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7093  test $ac_status = 0; }; then
7094    if test yes = "$lt_cv_prog_gnu_ld"; then
7095      case `/usr/bin/file conftest.$ac_objext` in
7096	*32-bit*)
7097	  LD="${LD-ld} -melf32bsmip"
7098	  ;;
7099	*N32*)
7100	  LD="${LD-ld} -melf32bmipn32"
7101	  ;;
7102	*64-bit*)
7103	  LD="${LD-ld} -melf64bmip"
7104	;;
7105      esac
7106    else
7107      case `/usr/bin/file conftest.$ac_objext` in
7108	*32-bit*)
7109	  LD="${LD-ld} -32"
7110	  ;;
7111	*N32*)
7112	  LD="${LD-ld} -n32"
7113	  ;;
7114	*64-bit*)
7115	  LD="${LD-ld} -64"
7116	  ;;
7117      esac
7118    fi
7119  fi
7120  rm -rf conftest*
7121  ;;
7122
7123mips64*-*linux*)
7124  # Find out what ABI is being produced by ac_compile, and set linker
7125  # options accordingly.
7126  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7127  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7128  (eval $ac_compile) 2>&5
7129  ac_status=$?
7130  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7131  test $ac_status = 0; }; then
7132    emul=elf
7133    case `/usr/bin/file conftest.$ac_objext` in
7134      *32-bit*)
7135	emul="${emul}32"
7136	;;
7137      *64-bit*)
7138	emul="${emul}64"
7139	;;
7140    esac
7141    case `/usr/bin/file conftest.$ac_objext` in
7142      *MSB*)
7143	emul="${emul}btsmip"
7144	;;
7145      *LSB*)
7146	emul="${emul}ltsmip"
7147	;;
7148    esac
7149    case `/usr/bin/file conftest.$ac_objext` in
7150      *N32*)
7151	emul="${emul}n32"
7152	;;
7153    esac
7154    LD="${LD-ld} -m $emul"
7155  fi
7156  rm -rf conftest*
7157  ;;
7158
7159x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7160s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7161  # Find out what ABI is being produced by ac_compile, and set linker
7162  # options accordingly.  Note that the listed cases only cover the
7163  # situations where additional linker options are needed (such as when
7164  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7165  # vice versa); the common cases where no linker options are needed do
7166  # not appear in the list.
7167  echo 'int i;' > conftest.$ac_ext
7168  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7169  (eval $ac_compile) 2>&5
7170  ac_status=$?
7171  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7172  test $ac_status = 0; }; then
7173    case `/usr/bin/file conftest.o` in
7174      *32-bit*)
7175	case $host in
7176	  x86_64-*kfreebsd*-gnu)
7177	    LD="${LD-ld} -m elf_i386_fbsd"
7178	    ;;
7179	  x86_64-*linux*)
7180	    case `/usr/bin/file conftest.o` in
7181	      *x86-64*)
7182		LD="${LD-ld} -m elf32_x86_64"
7183		;;
7184	      *)
7185		LD="${LD-ld} -m elf_i386"
7186		;;
7187	    esac
7188	    ;;
7189	  powerpc64le-*linux*)
7190	    LD="${LD-ld} -m elf32lppclinux"
7191	    ;;
7192	  powerpc64-*linux*)
7193	    LD="${LD-ld} -m elf32ppclinux"
7194	    ;;
7195	  s390x-*linux*)
7196	    LD="${LD-ld} -m elf_s390"
7197	    ;;
7198	  sparc64-*linux*)
7199	    LD="${LD-ld} -m elf32_sparc"
7200	    ;;
7201	esac
7202	;;
7203      *64-bit*)
7204	case $host in
7205	  x86_64-*kfreebsd*-gnu)
7206	    LD="${LD-ld} -m elf_x86_64_fbsd"
7207	    ;;
7208	  x86_64-*linux*)
7209	    LD="${LD-ld} -m elf_x86_64"
7210	    ;;
7211	  powerpcle-*linux*)
7212	    LD="${LD-ld} -m elf64lppc"
7213	    ;;
7214	  powerpc-*linux*)
7215	    LD="${LD-ld} -m elf64ppc"
7216	    ;;
7217	  s390*-*linux*|s390*-*tpf*)
7218	    LD="${LD-ld} -m elf64_s390"
7219	    ;;
7220	  sparc*-*linux*)
7221	    LD="${LD-ld} -m elf64_sparc"
7222	    ;;
7223	esac
7224	;;
7225    esac
7226  fi
7227  rm -rf conftest*
7228  ;;
7229
7230*-*-sco3.2v5*)
7231  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7232  SAVE_CFLAGS=$CFLAGS
7233  CFLAGS="$CFLAGS -belf"
7234  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7235printf %s "checking whether the C compiler needs -belf... " >&6; }
7236if test ${lt_cv_cc_needs_belf+y}
7237then :
7238  printf %s "(cached) " >&6
7239else $as_nop
7240  ac_ext=c
7241ac_cpp='$CPP $CPPFLAGS'
7242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7244ac_compiler_gnu=$ac_cv_c_compiler_gnu
7245
7246     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247/* end confdefs.h.  */
7248
7249int
7250main (void)
7251{
7252
7253  ;
7254  return 0;
7255}
7256_ACEOF
7257if ac_fn_c_try_link "$LINENO"
7258then :
7259  lt_cv_cc_needs_belf=yes
7260else $as_nop
7261  lt_cv_cc_needs_belf=no
7262fi
7263rm -f core conftest.err conftest.$ac_objext conftest.beam \
7264    conftest$ac_exeext conftest.$ac_ext
7265     ac_ext=c
7266ac_cpp='$CPP $CPPFLAGS'
7267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7269ac_compiler_gnu=$ac_cv_c_compiler_gnu
7270
7271fi
7272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7273printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7274  if test yes != "$lt_cv_cc_needs_belf"; then
7275    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7276    CFLAGS=$SAVE_CFLAGS
7277  fi
7278  ;;
7279*-*solaris*)
7280  # Find out what ABI is being produced by ac_compile, and set linker
7281  # options accordingly.
7282  echo 'int i;' > conftest.$ac_ext
7283  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7284  (eval $ac_compile) 2>&5
7285  ac_status=$?
7286  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7287  test $ac_status = 0; }; then
7288    case `/usr/bin/file conftest.o` in
7289    *64-bit*)
7290      case $lt_cv_prog_gnu_ld in
7291      yes*)
7292        case $host in
7293        i?86-*-solaris*|x86_64-*-solaris*)
7294          LD="${LD-ld} -m elf_x86_64"
7295          ;;
7296        sparc*-*-solaris*)
7297          LD="${LD-ld} -m elf64_sparc"
7298          ;;
7299        esac
7300        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7301        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7302          LD=${LD-ld}_sol2
7303        fi
7304        ;;
7305      *)
7306	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7307	  LD="${LD-ld} -64"
7308	fi
7309	;;
7310      esac
7311      ;;
7312    esac
7313  fi
7314  rm -rf conftest*
7315  ;;
7316esac
7317
7318need_locks=$enable_libtool_lock
7319
7320if test -n "$ac_tool_prefix"; then
7321  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7322set dummy ${ac_tool_prefix}mt; ac_word=$2
7323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7324printf %s "checking for $ac_word... " >&6; }
7325if test ${ac_cv_prog_MANIFEST_TOOL+y}
7326then :
7327  printf %s "(cached) " >&6
7328else $as_nop
7329  if test -n "$MANIFEST_TOOL"; then
7330  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7331else
7332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333for as_dir in $PATH
7334do
7335  IFS=$as_save_IFS
7336  case $as_dir in #(((
7337    '') as_dir=./ ;;
7338    */) ;;
7339    *) as_dir=$as_dir/ ;;
7340  esac
7341    for ac_exec_ext in '' $ac_executable_extensions; do
7342  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7343    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7344    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7345    break 2
7346  fi
7347done
7348  done
7349IFS=$as_save_IFS
7350
7351fi
7352fi
7353MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7354if test -n "$MANIFEST_TOOL"; then
7355  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7356printf "%s\n" "$MANIFEST_TOOL" >&6; }
7357else
7358  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7359printf "%s\n" "no" >&6; }
7360fi
7361
7362
7363fi
7364if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7365  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7366  # Extract the first word of "mt", so it can be a program name with args.
7367set dummy mt; ac_word=$2
7368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7369printf %s "checking for $ac_word... " >&6; }
7370if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7371then :
7372  printf %s "(cached) " >&6
7373else $as_nop
7374  if test -n "$ac_ct_MANIFEST_TOOL"; then
7375  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7376else
7377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378for as_dir in $PATH
7379do
7380  IFS=$as_save_IFS
7381  case $as_dir in #(((
7382    '') as_dir=./ ;;
7383    */) ;;
7384    *) as_dir=$as_dir/ ;;
7385  esac
7386    for ac_exec_ext in '' $ac_executable_extensions; do
7387  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7388    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7389    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7390    break 2
7391  fi
7392done
7393  done
7394IFS=$as_save_IFS
7395
7396fi
7397fi
7398ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7399if test -n "$ac_ct_MANIFEST_TOOL"; then
7400  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7401printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7402else
7403  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7404printf "%s\n" "no" >&6; }
7405fi
7406
7407  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7408    MANIFEST_TOOL=":"
7409  else
7410    case $cross_compiling:$ac_tool_warned in
7411yes:)
7412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7413printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7414ac_tool_warned=yes ;;
7415esac
7416    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7417  fi
7418else
7419  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7420fi
7421
7422test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7424printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7425if test ${lt_cv_path_mainfest_tool+y}
7426then :
7427  printf %s "(cached) " >&6
7428else $as_nop
7429  lt_cv_path_mainfest_tool=no
7430  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7431  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7432  cat conftest.err >&5
7433  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7434    lt_cv_path_mainfest_tool=yes
7435  fi
7436  rm -f conftest*
7437fi
7438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7439printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7440if test yes != "$lt_cv_path_mainfest_tool"; then
7441  MANIFEST_TOOL=:
7442fi
7443
7444
7445
7446
7447
7448
7449  case $host_os in
7450    rhapsody* | darwin*)
7451    if test -n "$ac_tool_prefix"; then
7452  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7453set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7455printf %s "checking for $ac_word... " >&6; }
7456if test ${ac_cv_prog_DSYMUTIL+y}
7457then :
7458  printf %s "(cached) " >&6
7459else $as_nop
7460  if test -n "$DSYMUTIL"; then
7461  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7462else
7463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464for as_dir in $PATH
7465do
7466  IFS=$as_save_IFS
7467  case $as_dir in #(((
7468    '') as_dir=./ ;;
7469    */) ;;
7470    *) as_dir=$as_dir/ ;;
7471  esac
7472    for ac_exec_ext in '' $ac_executable_extensions; do
7473  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7474    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7475    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7476    break 2
7477  fi
7478done
7479  done
7480IFS=$as_save_IFS
7481
7482fi
7483fi
7484DSYMUTIL=$ac_cv_prog_DSYMUTIL
7485if test -n "$DSYMUTIL"; then
7486  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7487printf "%s\n" "$DSYMUTIL" >&6; }
7488else
7489  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7490printf "%s\n" "no" >&6; }
7491fi
7492
7493
7494fi
7495if test -z "$ac_cv_prog_DSYMUTIL"; then
7496  ac_ct_DSYMUTIL=$DSYMUTIL
7497  # Extract the first word of "dsymutil", so it can be a program name with args.
7498set dummy dsymutil; ac_word=$2
7499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7500printf %s "checking for $ac_word... " >&6; }
7501if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7502then :
7503  printf %s "(cached) " >&6
7504else $as_nop
7505  if test -n "$ac_ct_DSYMUTIL"; then
7506  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7507else
7508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509for as_dir in $PATH
7510do
7511  IFS=$as_save_IFS
7512  case $as_dir in #(((
7513    '') as_dir=./ ;;
7514    */) ;;
7515    *) as_dir=$as_dir/ ;;
7516  esac
7517    for ac_exec_ext in '' $ac_executable_extensions; do
7518  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7519    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7520    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7521    break 2
7522  fi
7523done
7524  done
7525IFS=$as_save_IFS
7526
7527fi
7528fi
7529ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7530if test -n "$ac_ct_DSYMUTIL"; then
7531  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7532printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7533else
7534  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535printf "%s\n" "no" >&6; }
7536fi
7537
7538  if test "x$ac_ct_DSYMUTIL" = x; then
7539    DSYMUTIL=":"
7540  else
7541    case $cross_compiling:$ac_tool_warned in
7542yes:)
7543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7544printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7545ac_tool_warned=yes ;;
7546esac
7547    DSYMUTIL=$ac_ct_DSYMUTIL
7548  fi
7549else
7550  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7551fi
7552
7553    if test -n "$ac_tool_prefix"; then
7554  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7555set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7557printf %s "checking for $ac_word... " >&6; }
7558if test ${ac_cv_prog_NMEDIT+y}
7559then :
7560  printf %s "(cached) " >&6
7561else $as_nop
7562  if test -n "$NMEDIT"; then
7563  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7564else
7565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566for as_dir in $PATH
7567do
7568  IFS=$as_save_IFS
7569  case $as_dir in #(((
7570    '') as_dir=./ ;;
7571    */) ;;
7572    *) as_dir=$as_dir/ ;;
7573  esac
7574    for ac_exec_ext in '' $ac_executable_extensions; do
7575  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7576    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7577    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7578    break 2
7579  fi
7580done
7581  done
7582IFS=$as_save_IFS
7583
7584fi
7585fi
7586NMEDIT=$ac_cv_prog_NMEDIT
7587if test -n "$NMEDIT"; then
7588  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7589printf "%s\n" "$NMEDIT" >&6; }
7590else
7591  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7592printf "%s\n" "no" >&6; }
7593fi
7594
7595
7596fi
7597if test -z "$ac_cv_prog_NMEDIT"; then
7598  ac_ct_NMEDIT=$NMEDIT
7599  # Extract the first word of "nmedit", so it can be a program name with args.
7600set dummy nmedit; ac_word=$2
7601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7602printf %s "checking for $ac_word... " >&6; }
7603if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7604then :
7605  printf %s "(cached) " >&6
7606else $as_nop
7607  if test -n "$ac_ct_NMEDIT"; then
7608  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7609else
7610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611for as_dir in $PATH
7612do
7613  IFS=$as_save_IFS
7614  case $as_dir in #(((
7615    '') as_dir=./ ;;
7616    */) ;;
7617    *) as_dir=$as_dir/ ;;
7618  esac
7619    for ac_exec_ext in '' $ac_executable_extensions; do
7620  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7621    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7622    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7623    break 2
7624  fi
7625done
7626  done
7627IFS=$as_save_IFS
7628
7629fi
7630fi
7631ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7632if test -n "$ac_ct_NMEDIT"; then
7633  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7634printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7635else
7636  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637printf "%s\n" "no" >&6; }
7638fi
7639
7640  if test "x$ac_ct_NMEDIT" = x; then
7641    NMEDIT=":"
7642  else
7643    case $cross_compiling:$ac_tool_warned in
7644yes:)
7645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7646printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7647ac_tool_warned=yes ;;
7648esac
7649    NMEDIT=$ac_ct_NMEDIT
7650  fi
7651else
7652  NMEDIT="$ac_cv_prog_NMEDIT"
7653fi
7654
7655    if test -n "$ac_tool_prefix"; then
7656  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7657set dummy ${ac_tool_prefix}lipo; ac_word=$2
7658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7659printf %s "checking for $ac_word... " >&6; }
7660if test ${ac_cv_prog_LIPO+y}
7661then :
7662  printf %s "(cached) " >&6
7663else $as_nop
7664  if test -n "$LIPO"; then
7665  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7666else
7667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668for as_dir in $PATH
7669do
7670  IFS=$as_save_IFS
7671  case $as_dir in #(((
7672    '') as_dir=./ ;;
7673    */) ;;
7674    *) as_dir=$as_dir/ ;;
7675  esac
7676    for ac_exec_ext in '' $ac_executable_extensions; do
7677  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7678    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7679    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7680    break 2
7681  fi
7682done
7683  done
7684IFS=$as_save_IFS
7685
7686fi
7687fi
7688LIPO=$ac_cv_prog_LIPO
7689if test -n "$LIPO"; then
7690  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7691printf "%s\n" "$LIPO" >&6; }
7692else
7693  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7694printf "%s\n" "no" >&6; }
7695fi
7696
7697
7698fi
7699if test -z "$ac_cv_prog_LIPO"; then
7700  ac_ct_LIPO=$LIPO
7701  # Extract the first word of "lipo", so it can be a program name with args.
7702set dummy lipo; ac_word=$2
7703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7704printf %s "checking for $ac_word... " >&6; }
7705if test ${ac_cv_prog_ac_ct_LIPO+y}
7706then :
7707  printf %s "(cached) " >&6
7708else $as_nop
7709  if test -n "$ac_ct_LIPO"; then
7710  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7711else
7712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713for as_dir in $PATH
7714do
7715  IFS=$as_save_IFS
7716  case $as_dir in #(((
7717    '') as_dir=./ ;;
7718    */) ;;
7719    *) as_dir=$as_dir/ ;;
7720  esac
7721    for ac_exec_ext in '' $ac_executable_extensions; do
7722  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7723    ac_cv_prog_ac_ct_LIPO="lipo"
7724    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7725    break 2
7726  fi
7727done
7728  done
7729IFS=$as_save_IFS
7730
7731fi
7732fi
7733ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7734if test -n "$ac_ct_LIPO"; then
7735  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7736printf "%s\n" "$ac_ct_LIPO" >&6; }
7737else
7738  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7739printf "%s\n" "no" >&6; }
7740fi
7741
7742  if test "x$ac_ct_LIPO" = x; then
7743    LIPO=":"
7744  else
7745    case $cross_compiling:$ac_tool_warned in
7746yes:)
7747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7748printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7749ac_tool_warned=yes ;;
7750esac
7751    LIPO=$ac_ct_LIPO
7752  fi
7753else
7754  LIPO="$ac_cv_prog_LIPO"
7755fi
7756
7757    if test -n "$ac_tool_prefix"; then
7758  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7759set dummy ${ac_tool_prefix}otool; ac_word=$2
7760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7761printf %s "checking for $ac_word... " >&6; }
7762if test ${ac_cv_prog_OTOOL+y}
7763then :
7764  printf %s "(cached) " >&6
7765else $as_nop
7766  if test -n "$OTOOL"; then
7767  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7768else
7769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770for as_dir in $PATH
7771do
7772  IFS=$as_save_IFS
7773  case $as_dir in #(((
7774    '') as_dir=./ ;;
7775    */) ;;
7776    *) as_dir=$as_dir/ ;;
7777  esac
7778    for ac_exec_ext in '' $ac_executable_extensions; do
7779  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7780    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7781    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7782    break 2
7783  fi
7784done
7785  done
7786IFS=$as_save_IFS
7787
7788fi
7789fi
7790OTOOL=$ac_cv_prog_OTOOL
7791if test -n "$OTOOL"; then
7792  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7793printf "%s\n" "$OTOOL" >&6; }
7794else
7795  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796printf "%s\n" "no" >&6; }
7797fi
7798
7799
7800fi
7801if test -z "$ac_cv_prog_OTOOL"; then
7802  ac_ct_OTOOL=$OTOOL
7803  # Extract the first word of "otool", so it can be a program name with args.
7804set dummy otool; ac_word=$2
7805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7806printf %s "checking for $ac_word... " >&6; }
7807if test ${ac_cv_prog_ac_ct_OTOOL+y}
7808then :
7809  printf %s "(cached) " >&6
7810else $as_nop
7811  if test -n "$ac_ct_OTOOL"; then
7812  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7813else
7814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815for as_dir in $PATH
7816do
7817  IFS=$as_save_IFS
7818  case $as_dir in #(((
7819    '') as_dir=./ ;;
7820    */) ;;
7821    *) as_dir=$as_dir/ ;;
7822  esac
7823    for ac_exec_ext in '' $ac_executable_extensions; do
7824  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7825    ac_cv_prog_ac_ct_OTOOL="otool"
7826    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7827    break 2
7828  fi
7829done
7830  done
7831IFS=$as_save_IFS
7832
7833fi
7834fi
7835ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7836if test -n "$ac_ct_OTOOL"; then
7837  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7838printf "%s\n" "$ac_ct_OTOOL" >&6; }
7839else
7840  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7841printf "%s\n" "no" >&6; }
7842fi
7843
7844  if test "x$ac_ct_OTOOL" = x; then
7845    OTOOL=":"
7846  else
7847    case $cross_compiling:$ac_tool_warned in
7848yes:)
7849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7850printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7851ac_tool_warned=yes ;;
7852esac
7853    OTOOL=$ac_ct_OTOOL
7854  fi
7855else
7856  OTOOL="$ac_cv_prog_OTOOL"
7857fi
7858
7859    if test -n "$ac_tool_prefix"; then
7860  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7861set dummy ${ac_tool_prefix}otool64; ac_word=$2
7862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7863printf %s "checking for $ac_word... " >&6; }
7864if test ${ac_cv_prog_OTOOL64+y}
7865then :
7866  printf %s "(cached) " >&6
7867else $as_nop
7868  if test -n "$OTOOL64"; then
7869  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7870else
7871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872for as_dir in $PATH
7873do
7874  IFS=$as_save_IFS
7875  case $as_dir in #(((
7876    '') as_dir=./ ;;
7877    */) ;;
7878    *) as_dir=$as_dir/ ;;
7879  esac
7880    for ac_exec_ext in '' $ac_executable_extensions; do
7881  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7882    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7883    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7884    break 2
7885  fi
7886done
7887  done
7888IFS=$as_save_IFS
7889
7890fi
7891fi
7892OTOOL64=$ac_cv_prog_OTOOL64
7893if test -n "$OTOOL64"; then
7894  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7895printf "%s\n" "$OTOOL64" >&6; }
7896else
7897  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7898printf "%s\n" "no" >&6; }
7899fi
7900
7901
7902fi
7903if test -z "$ac_cv_prog_OTOOL64"; then
7904  ac_ct_OTOOL64=$OTOOL64
7905  # Extract the first word of "otool64", so it can be a program name with args.
7906set dummy otool64; ac_word=$2
7907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7908printf %s "checking for $ac_word... " >&6; }
7909if test ${ac_cv_prog_ac_ct_OTOOL64+y}
7910then :
7911  printf %s "(cached) " >&6
7912else $as_nop
7913  if test -n "$ac_ct_OTOOL64"; then
7914  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7915else
7916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917for as_dir in $PATH
7918do
7919  IFS=$as_save_IFS
7920  case $as_dir in #(((
7921    '') as_dir=./ ;;
7922    */) ;;
7923    *) as_dir=$as_dir/ ;;
7924  esac
7925    for ac_exec_ext in '' $ac_executable_extensions; do
7926  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7927    ac_cv_prog_ac_ct_OTOOL64="otool64"
7928    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7929    break 2
7930  fi
7931done
7932  done
7933IFS=$as_save_IFS
7934
7935fi
7936fi
7937ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7938if test -n "$ac_ct_OTOOL64"; then
7939  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7940printf "%s\n" "$ac_ct_OTOOL64" >&6; }
7941else
7942  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7943printf "%s\n" "no" >&6; }
7944fi
7945
7946  if test "x$ac_ct_OTOOL64" = x; then
7947    OTOOL64=":"
7948  else
7949    case $cross_compiling:$ac_tool_warned in
7950yes:)
7951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7952printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7953ac_tool_warned=yes ;;
7954esac
7955    OTOOL64=$ac_ct_OTOOL64
7956  fi
7957else
7958  OTOOL64="$ac_cv_prog_OTOOL64"
7959fi
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7988printf %s "checking for -single_module linker flag... " >&6; }
7989if test ${lt_cv_apple_cc_single_mod+y}
7990then :
7991  printf %s "(cached) " >&6
7992else $as_nop
7993  lt_cv_apple_cc_single_mod=no
7994      if test -z "$LT_MULTI_MODULE"; then
7995	# By default we will add the -single_module flag. You can override
7996	# by either setting the environment variable LT_MULTI_MODULE
7997	# non-empty at configure time, or by adding -multi_module to the
7998	# link flags.
7999	rm -rf libconftest.dylib*
8000	echo "int foo(void){return 1;}" > conftest.c
8001	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8002-dynamiclib -Wl,-single_module conftest.c" >&5
8003	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8004	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8005        _lt_result=$?
8006	# If there is a non-empty error log, and "single_module"
8007	# appears in it, assume the flag caused a linker warning
8008        if test -s conftest.err && $GREP single_module conftest.err; then
8009	  cat conftest.err >&5
8010	# Otherwise, if the output was created with a 0 exit code from
8011	# the compiler, it worked.
8012	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8013	  lt_cv_apple_cc_single_mod=yes
8014	else
8015	  cat conftest.err >&5
8016	fi
8017	rm -rf libconftest.dylib*
8018	rm -f conftest.*
8019      fi
8020fi
8021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8022printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8023
8024    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8025printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8026if test ${lt_cv_ld_exported_symbols_list+y}
8027then :
8028  printf %s "(cached) " >&6
8029else $as_nop
8030  lt_cv_ld_exported_symbols_list=no
8031      save_LDFLAGS=$LDFLAGS
8032      echo "_main" > conftest.sym
8033      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8034      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8035/* end confdefs.h.  */
8036
8037int
8038main (void)
8039{
8040
8041  ;
8042  return 0;
8043}
8044_ACEOF
8045if ac_fn_c_try_link "$LINENO"
8046then :
8047  lt_cv_ld_exported_symbols_list=yes
8048else $as_nop
8049  lt_cv_ld_exported_symbols_list=no
8050fi
8051rm -f core conftest.err conftest.$ac_objext conftest.beam \
8052    conftest$ac_exeext conftest.$ac_ext
8053	LDFLAGS=$save_LDFLAGS
8054
8055fi
8056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8057printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8058
8059    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8060printf %s "checking for -force_load linker flag... " >&6; }
8061if test ${lt_cv_ld_force_load+y}
8062then :
8063  printf %s "(cached) " >&6
8064else $as_nop
8065  lt_cv_ld_force_load=no
8066      cat > conftest.c << _LT_EOF
8067int forced_loaded() { return 2;}
8068_LT_EOF
8069      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8070      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8071      echo "$AR cru libconftest.a conftest.o" >&5
8072      $AR cru libconftest.a conftest.o 2>&5
8073      echo "$RANLIB libconftest.a" >&5
8074      $RANLIB libconftest.a 2>&5
8075      cat > conftest.c << _LT_EOF
8076int main() { return 0;}
8077_LT_EOF
8078      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8079      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8080      _lt_result=$?
8081      if test -s conftest.err && $GREP force_load conftest.err; then
8082	cat conftest.err >&5
8083      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8084	lt_cv_ld_force_load=yes
8085      else
8086	cat conftest.err >&5
8087      fi
8088        rm -f conftest.err libconftest.a conftest conftest.c
8089        rm -rf conftest.dSYM
8090
8091fi
8092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8093printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8094    case $host_os in
8095    rhapsody* | darwin1.[012])
8096      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8097    darwin1.*)
8098      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8099    darwin*) # darwin 5.x on
8100      # if running on 10.5 or later, the deployment target defaults
8101      # to the OS version, if on x86, and 10.4, the deployment
8102      # target defaults to 10.4. Don't you love it?
8103      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8104	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8105	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8106	10.[012][,.]*)
8107	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8108	10.*)
8109	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8110      esac
8111    ;;
8112  esac
8113    if test yes = "$lt_cv_apple_cc_single_mod"; then
8114      _lt_dar_single_mod='$single_module'
8115    fi
8116    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8117      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8118    else
8119      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8120    fi
8121    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8122      _lt_dsymutil='~$DSYMUTIL $lib || :'
8123    else
8124      _lt_dsymutil=
8125    fi
8126    ;;
8127  esac
8128
8129# func_munge_path_list VARIABLE PATH
8130# -----------------------------------
8131# VARIABLE is name of variable containing _space_ separated list of
8132# directories to be munged by the contents of PATH, which is string
8133# having a format:
8134# "DIR[:DIR]:"
8135#       string "DIR[ DIR]" will be prepended to VARIABLE
8136# ":DIR[:DIR]"
8137#       string "DIR[ DIR]" will be appended to VARIABLE
8138# "DIRP[:DIRP]::[DIRA:]DIRA"
8139#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8140#       "DIRA[ DIRA]" will be appended to VARIABLE
8141# "DIR[:DIR]"
8142#       VARIABLE will be replaced by "DIR[ DIR]"
8143func_munge_path_list ()
8144{
8145    case x$2 in
8146    x)
8147        ;;
8148    *:)
8149        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8150        ;;
8151    x:*)
8152        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8153        ;;
8154    *::*)
8155        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8156        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8157        ;;
8158    *)
8159        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8160        ;;
8161    esac
8162}
8163
8164ac_header= ac_cache=
8165for ac_item in $ac_header_c_list
8166do
8167  if test $ac_cache; then
8168    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8169    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8170      printf "%s\n" "#define $ac_item 1" >> confdefs.h
8171    fi
8172    ac_header= ac_cache=
8173  elif test $ac_header; then
8174    ac_cache=$ac_item
8175  else
8176    ac_header=$ac_item
8177  fi
8178done
8179
8180
8181
8182
8183
8184
8185
8186
8187if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8188then :
8189
8190printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8191
8192fi
8193ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8194"
8195if test "x$ac_cv_header_dlfcn_h" = xyes
8196then :
8197  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8198
8199fi
8200
8201
8202
8203
8204
8205# Set options
8206
8207
8208
8209        enable_dlopen=no
8210
8211
8212  enable_win32_dll=no
8213
8214
8215            # Check whether --enable-shared was given.
8216if test ${enable_shared+y}
8217then :
8218  enableval=$enable_shared; p=${PACKAGE-default}
8219    case $enableval in
8220    yes) enable_shared=yes ;;
8221    no) enable_shared=no ;;
8222    *)
8223      enable_shared=no
8224      # Look at the argument we got.  We use all the common list separators.
8225      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8226      for pkg in $enableval; do
8227	IFS=$lt_save_ifs
8228	if test "X$pkg" = "X$p"; then
8229	  enable_shared=yes
8230	fi
8231      done
8232      IFS=$lt_save_ifs
8233      ;;
8234    esac
8235else $as_nop
8236  enable_shared=yes
8237fi
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247  # Check whether --enable-static was given.
8248if test ${enable_static+y}
8249then :
8250  enableval=$enable_static; p=${PACKAGE-default}
8251    case $enableval in
8252    yes) enable_static=yes ;;
8253    no) enable_static=no ;;
8254    *)
8255     enable_static=no
8256      # Look at the argument we got.  We use all the common list separators.
8257      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8258      for pkg in $enableval; do
8259	IFS=$lt_save_ifs
8260	if test "X$pkg" = "X$p"; then
8261	  enable_static=yes
8262	fi
8263      done
8264      IFS=$lt_save_ifs
8265      ;;
8266    esac
8267else $as_nop
8268  enable_static=yes
8269fi
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280# Check whether --with-pic was given.
8281if test ${with_pic+y}
8282then :
8283  withval=$with_pic; lt_p=${PACKAGE-default}
8284    case $withval in
8285    yes|no) pic_mode=$withval ;;
8286    *)
8287      pic_mode=default
8288      # Look at the argument we got.  We use all the common list separators.
8289      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8290      for lt_pkg in $withval; do
8291	IFS=$lt_save_ifs
8292	if test "X$lt_pkg" = "X$lt_p"; then
8293	  pic_mode=yes
8294	fi
8295      done
8296      IFS=$lt_save_ifs
8297      ;;
8298    esac
8299else $as_nop
8300  pic_mode=default
8301fi
8302
8303
8304
8305
8306
8307
8308
8309
8310  # Check whether --enable-fast-install was given.
8311if test ${enable_fast_install+y}
8312then :
8313  enableval=$enable_fast_install; p=${PACKAGE-default}
8314    case $enableval in
8315    yes) enable_fast_install=yes ;;
8316    no) enable_fast_install=no ;;
8317    *)
8318      enable_fast_install=no
8319      # Look at the argument we got.  We use all the common list separators.
8320      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8321      for pkg in $enableval; do
8322	IFS=$lt_save_ifs
8323	if test "X$pkg" = "X$p"; then
8324	  enable_fast_install=yes
8325	fi
8326      done
8327      IFS=$lt_save_ifs
8328      ;;
8329    esac
8330else $as_nop
8331  enable_fast_install=yes
8332fi
8333
8334
8335
8336
8337
8338
8339
8340
8341  shared_archive_member_spec=
8342case $host,$enable_shared in
8343power*-*-aix[5-9]*,yes)
8344  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8345printf %s "checking which variant of shared library versioning to provide... " >&6; }
8346
8347# Check whether --with-aix-soname was given.
8348if test ${with_aix_soname+y}
8349then :
8350  withval=$with_aix_soname; case $withval in
8351    aix|svr4|both)
8352      ;;
8353    *)
8354      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8355      ;;
8356    esac
8357    lt_cv_with_aix_soname=$with_aix_soname
8358else $as_nop
8359  if test ${lt_cv_with_aix_soname+y}
8360then :
8361  printf %s "(cached) " >&6
8362else $as_nop
8363  lt_cv_with_aix_soname=aix
8364fi
8365
8366    with_aix_soname=$lt_cv_with_aix_soname
8367fi
8368
8369  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8370printf "%s\n" "$with_aix_soname" >&6; }
8371  if test aix != "$with_aix_soname"; then
8372    # For the AIX way of multilib, we name the shared archive member
8373    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8374    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8375    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8376    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8377    if test 64 = "${OBJECT_MODE-32}"; then
8378      shared_archive_member_spec=shr_64
8379    else
8380      shared_archive_member_spec=shr
8381    fi
8382  fi
8383  ;;
8384*)
8385  with_aix_soname=aix
8386  ;;
8387esac
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398# This can be used to rebuild libtool when needed
8399LIBTOOL_DEPS=$ltmain
8400
8401# Always use our own libtool.
8402LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433test -z "$LN_S" && LN_S="ln -s"
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448if test -n "${ZSH_VERSION+set}"; then
8449   setopt NO_GLOB_SUBST
8450fi
8451
8452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8453printf %s "checking for objdir... " >&6; }
8454if test ${lt_cv_objdir+y}
8455then :
8456  printf %s "(cached) " >&6
8457else $as_nop
8458  rm -f .libs 2>/dev/null
8459mkdir .libs 2>/dev/null
8460if test -d .libs; then
8461  lt_cv_objdir=.libs
8462else
8463  # MS-DOS does not allow filenames that begin with a dot.
8464  lt_cv_objdir=_libs
8465fi
8466rmdir .libs 2>/dev/null
8467fi
8468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8469printf "%s\n" "$lt_cv_objdir" >&6; }
8470objdir=$lt_cv_objdir
8471
8472
8473
8474
8475
8476printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8477
8478
8479
8480
8481case $host_os in
8482aix3*)
8483  # AIX sometimes has problems with the GCC collect2 program.  For some
8484  # reason, if we set the COLLECT_NAMES environment variable, the problems
8485  # vanish in a puff of smoke.
8486  if test set != "${COLLECT_NAMES+set}"; then
8487    COLLECT_NAMES=
8488    export COLLECT_NAMES
8489  fi
8490  ;;
8491esac
8492
8493# Global variables:
8494ofile=libtool
8495can_build_shared=yes
8496
8497# All known linkers require a '.a' archive for static linking (except MSVC,
8498# which needs '.lib').
8499libext=a
8500
8501with_gnu_ld=$lt_cv_prog_gnu_ld
8502
8503old_CC=$CC
8504old_CFLAGS=$CFLAGS
8505
8506# Set sane defaults for various variables
8507test -z "$CC" && CC=cc
8508test -z "$LTCC" && LTCC=$CC
8509test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8510test -z "$LD" && LD=ld
8511test -z "$ac_objext" && ac_objext=o
8512
8513func_cc_basename $compiler
8514cc_basename=$func_cc_basename_result
8515
8516
8517# Only perform the check for file, if the check method requires it
8518test -z "$MAGIC_CMD" && MAGIC_CMD=file
8519case $deplibs_check_method in
8520file_magic*)
8521  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8522    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8523printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8524if test ${lt_cv_path_MAGIC_CMD+y}
8525then :
8526  printf %s "(cached) " >&6
8527else $as_nop
8528  case $MAGIC_CMD in
8529[\\/*] |  ?:[\\/]*)
8530  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8531  ;;
8532*)
8533  lt_save_MAGIC_CMD=$MAGIC_CMD
8534  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8535  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8536  for ac_dir in $ac_dummy; do
8537    IFS=$lt_save_ifs
8538    test -z "$ac_dir" && ac_dir=.
8539    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8540      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8541      if test -n "$file_magic_test_file"; then
8542	case $deplibs_check_method in
8543	"file_magic "*)
8544	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8545	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8546	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8547	    $EGREP "$file_magic_regex" > /dev/null; then
8548	    :
8549	  else
8550	    cat <<_LT_EOF 1>&2
8551
8552*** Warning: the command libtool uses to detect shared libraries,
8553*** $file_magic_cmd, produces output that libtool cannot recognize.
8554*** The result is that libtool may fail to recognize shared libraries
8555*** as such.  This will affect the creation of libtool libraries that
8556*** depend on shared libraries, but programs linked with such libtool
8557*** libraries will work regardless of this problem.  Nevertheless, you
8558*** may want to report the problem to your system manager and/or to
8559*** bug-libtool@gnu.org
8560
8561_LT_EOF
8562	  fi ;;
8563	esac
8564      fi
8565      break
8566    fi
8567  done
8568  IFS=$lt_save_ifs
8569  MAGIC_CMD=$lt_save_MAGIC_CMD
8570  ;;
8571esac
8572fi
8573
8574MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8575if test -n "$MAGIC_CMD"; then
8576  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8577printf "%s\n" "$MAGIC_CMD" >&6; }
8578else
8579  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8580printf "%s\n" "no" >&6; }
8581fi
8582
8583
8584
8585
8586
8587if test -z "$lt_cv_path_MAGIC_CMD"; then
8588  if test -n "$ac_tool_prefix"; then
8589    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8590printf %s "checking for file... " >&6; }
8591if test ${lt_cv_path_MAGIC_CMD+y}
8592then :
8593  printf %s "(cached) " >&6
8594else $as_nop
8595  case $MAGIC_CMD in
8596[\\/*] |  ?:[\\/]*)
8597  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8598  ;;
8599*)
8600  lt_save_MAGIC_CMD=$MAGIC_CMD
8601  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8602  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8603  for ac_dir in $ac_dummy; do
8604    IFS=$lt_save_ifs
8605    test -z "$ac_dir" && ac_dir=.
8606    if test -f "$ac_dir/file"; then
8607      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8608      if test -n "$file_magic_test_file"; then
8609	case $deplibs_check_method in
8610	"file_magic "*)
8611	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8612	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8613	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8614	    $EGREP "$file_magic_regex" > /dev/null; then
8615	    :
8616	  else
8617	    cat <<_LT_EOF 1>&2
8618
8619*** Warning: the command libtool uses to detect shared libraries,
8620*** $file_magic_cmd, produces output that libtool cannot recognize.
8621*** The result is that libtool may fail to recognize shared libraries
8622*** as such.  This will affect the creation of libtool libraries that
8623*** depend on shared libraries, but programs linked with such libtool
8624*** libraries will work regardless of this problem.  Nevertheless, you
8625*** may want to report the problem to your system manager and/or to
8626*** bug-libtool@gnu.org
8627
8628_LT_EOF
8629	  fi ;;
8630	esac
8631      fi
8632      break
8633    fi
8634  done
8635  IFS=$lt_save_ifs
8636  MAGIC_CMD=$lt_save_MAGIC_CMD
8637  ;;
8638esac
8639fi
8640
8641MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8642if test -n "$MAGIC_CMD"; then
8643  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8644printf "%s\n" "$MAGIC_CMD" >&6; }
8645else
8646  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8647printf "%s\n" "no" >&6; }
8648fi
8649
8650
8651  else
8652    MAGIC_CMD=:
8653  fi
8654fi
8655
8656  fi
8657  ;;
8658esac
8659
8660# Use C for the default configuration in the libtool script
8661
8662lt_save_CC=$CC
8663ac_ext=c
8664ac_cpp='$CPP $CPPFLAGS'
8665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8667ac_compiler_gnu=$ac_cv_c_compiler_gnu
8668
8669
8670# Source file extension for C test sources.
8671ac_ext=c
8672
8673# Object file extension for compiled C test sources.
8674objext=o
8675objext=$objext
8676
8677# Code to be used in simple compile tests
8678lt_simple_compile_test_code="int some_variable = 0;"
8679
8680# Code to be used in simple link tests
8681lt_simple_link_test_code='int main(){return(0);}'
8682
8683
8684
8685
8686
8687
8688
8689# If no C compiler was specified, use CC.
8690LTCC=${LTCC-"$CC"}
8691
8692# If no C compiler flags were specified, use CFLAGS.
8693LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8694
8695# Allow CC to be a program name with arguments.
8696compiler=$CC
8697
8698# Save the default compiler, since it gets overwritten when the other
8699# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8700compiler_DEFAULT=$CC
8701
8702# save warnings/boilerplate of simple test code
8703ac_outfile=conftest.$ac_objext
8704echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8705eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8706_lt_compiler_boilerplate=`cat conftest.err`
8707$RM conftest*
8708
8709ac_outfile=conftest.$ac_objext
8710echo "$lt_simple_link_test_code" >conftest.$ac_ext
8711eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8712_lt_linker_boilerplate=`cat conftest.err`
8713$RM -r conftest*
8714
8715
8716if test -n "$compiler"; then
8717
8718lt_prog_compiler_no_builtin_flag=
8719
8720if test yes = "$GCC"; then
8721  case $cc_basename in
8722  nvcc*)
8723    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8724  *)
8725    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8726  esac
8727
8728  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8729printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8730if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8731then :
8732  printf %s "(cached) " >&6
8733else $as_nop
8734  lt_cv_prog_compiler_rtti_exceptions=no
8735   ac_outfile=conftest.$ac_objext
8736   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8737   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8738   # Insert the option either (1) after the last *FLAGS variable, or
8739   # (2) before a word containing "conftest.", or (3) at the end.
8740   # Note that $ac_compile itself does not contain backslashes and begins
8741   # with a dollar sign (not a hyphen), so the echo should work correctly.
8742   # The option is referenced via a variable to avoid confusing sed.
8743   lt_compile=`echo "$ac_compile" | $SED \
8744   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8745   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8746   -e 's:$: $lt_compiler_flag:'`
8747   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8748   (eval "$lt_compile" 2>conftest.err)
8749   ac_status=$?
8750   cat conftest.err >&5
8751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752   if (exit $ac_status) && test -s "$ac_outfile"; then
8753     # The compiler can only warn and ignore the option if not recognized
8754     # So say no if there are warnings other than the usual output.
8755     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8756     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8757     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8758       lt_cv_prog_compiler_rtti_exceptions=yes
8759     fi
8760   fi
8761   $RM conftest*
8762
8763fi
8764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8765printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8766
8767if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8768    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8769else
8770    :
8771fi
8772
8773fi
8774
8775
8776
8777
8778
8779
8780  lt_prog_compiler_wl=
8781lt_prog_compiler_pic=
8782lt_prog_compiler_static=
8783
8784
8785  if test yes = "$GCC"; then
8786    lt_prog_compiler_wl='-Wl,'
8787    lt_prog_compiler_static='-static'
8788
8789    case $host_os in
8790      aix*)
8791      # All AIX code is PIC.
8792      if test ia64 = "$host_cpu"; then
8793	# AIX 5 now supports IA64 processor
8794	lt_prog_compiler_static='-Bstatic'
8795      fi
8796      lt_prog_compiler_pic='-fPIC'
8797      ;;
8798
8799    amigaos*)
8800      case $host_cpu in
8801      powerpc)
8802            # see comment about AmigaOS4 .so support
8803            lt_prog_compiler_pic='-fPIC'
8804        ;;
8805      m68k)
8806            # FIXME: we need at least 68020 code to build shared libraries, but
8807            # adding the '-m68020' flag to GCC prevents building anything better,
8808            # like '-m68040'.
8809            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8810        ;;
8811      esac
8812      ;;
8813
8814    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8815      # PIC is the default for these OSes.
8816      ;;
8817
8818    mingw* | cygwin* | pw32* | os2* | cegcc*)
8819      # This hack is so that the source file can tell whether it is being
8820      # built for inclusion in a dll (and should export symbols for example).
8821      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8822      # (--disable-auto-import) libraries
8823      lt_prog_compiler_pic='-DDLL_EXPORT'
8824      case $host_os in
8825      os2*)
8826	lt_prog_compiler_static='$wl-static'
8827	;;
8828      esac
8829      ;;
8830
8831    darwin* | rhapsody*)
8832      # PIC is the default on this platform
8833      # Common symbols not allowed in MH_DYLIB files
8834      lt_prog_compiler_pic='-fno-common'
8835      ;;
8836
8837    haiku*)
8838      # PIC is the default for Haiku.
8839      # The "-static" flag exists, but is broken.
8840      lt_prog_compiler_static=
8841      ;;
8842
8843    hpux*)
8844      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8845      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8846      # sets the default TLS model and affects inlining.
8847      case $host_cpu in
8848      hppa*64*)
8849	# +Z the default
8850	;;
8851      *)
8852	lt_prog_compiler_pic='-fPIC'
8853	;;
8854      esac
8855      ;;
8856
8857    interix[3-9]*)
8858      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8859      # Instead, we relocate shared libraries at runtime.
8860      ;;
8861
8862    msdosdjgpp*)
8863      # Just because we use GCC doesn't mean we suddenly get shared libraries
8864      # on systems that don't support them.
8865      lt_prog_compiler_can_build_shared=no
8866      enable_shared=no
8867      ;;
8868
8869    *nto* | *qnx*)
8870      # QNX uses GNU C++, but need to define -shared option too, otherwise
8871      # it will coredump.
8872      lt_prog_compiler_pic='-fPIC -shared'
8873      ;;
8874
8875    sysv4*MP*)
8876      if test -d /usr/nec; then
8877	lt_prog_compiler_pic=-Kconform_pic
8878      fi
8879      ;;
8880
8881    *)
8882      lt_prog_compiler_pic='-fPIC'
8883      ;;
8884    esac
8885
8886    case $cc_basename in
8887    nvcc*) # Cuda Compiler Driver 2.2
8888      lt_prog_compiler_wl='-Xlinker '
8889      if test -n "$lt_prog_compiler_pic"; then
8890        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8891      fi
8892      ;;
8893    esac
8894  else
8895    # PORTME Check for flag to pass linker flags through the system compiler.
8896    case $host_os in
8897    aix*)
8898      lt_prog_compiler_wl='-Wl,'
8899      if test ia64 = "$host_cpu"; then
8900	# AIX 5 now supports IA64 processor
8901	lt_prog_compiler_static='-Bstatic'
8902      else
8903	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8904      fi
8905      ;;
8906
8907    darwin* | rhapsody*)
8908      # PIC is the default on this platform
8909      # Common symbols not allowed in MH_DYLIB files
8910      lt_prog_compiler_pic='-fno-common'
8911      case $cc_basename in
8912      nagfor*)
8913        # NAG Fortran compiler
8914        lt_prog_compiler_wl='-Wl,-Wl,,'
8915        lt_prog_compiler_pic='-PIC'
8916        lt_prog_compiler_static='-Bstatic'
8917        ;;
8918      esac
8919      ;;
8920
8921    mingw* | cygwin* | pw32* | os2* | cegcc*)
8922      # This hack is so that the source file can tell whether it is being
8923      # built for inclusion in a dll (and should export symbols for example).
8924      lt_prog_compiler_pic='-DDLL_EXPORT'
8925      case $host_os in
8926      os2*)
8927	lt_prog_compiler_static='$wl-static'
8928	;;
8929      esac
8930      ;;
8931
8932    hpux9* | hpux10* | hpux11*)
8933      lt_prog_compiler_wl='-Wl,'
8934      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8935      # not for PA HP-UX.
8936      case $host_cpu in
8937      hppa*64*|ia64*)
8938	# +Z the default
8939	;;
8940      *)
8941	lt_prog_compiler_pic='+Z'
8942	;;
8943      esac
8944      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8945      lt_prog_compiler_static='$wl-a ${wl}archive'
8946      ;;
8947
8948    irix5* | irix6* | nonstopux*)
8949      lt_prog_compiler_wl='-Wl,'
8950      # PIC (with -KPIC) is the default.
8951      lt_prog_compiler_static='-non_shared'
8952      ;;
8953
8954    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8955      case $cc_basename in
8956      # old Intel for x86_64, which still supported -KPIC.
8957      ecc*)
8958	lt_prog_compiler_wl='-Wl,'
8959	lt_prog_compiler_pic='-KPIC'
8960	lt_prog_compiler_static='-static'
8961        ;;
8962      # icc used to be incompatible with GCC.
8963      # ICC 10 doesn't accept -KPIC any more.
8964      icc* | ifort*)
8965	lt_prog_compiler_wl='-Wl,'
8966	lt_prog_compiler_pic='-fPIC'
8967	lt_prog_compiler_static='-static'
8968        ;;
8969      # Lahey Fortran 8.1.
8970      lf95*)
8971	lt_prog_compiler_wl='-Wl,'
8972	lt_prog_compiler_pic='--shared'
8973	lt_prog_compiler_static='--static'
8974	;;
8975      nagfor*)
8976	# NAG Fortran compiler
8977	lt_prog_compiler_wl='-Wl,-Wl,,'
8978	lt_prog_compiler_pic='-PIC'
8979	lt_prog_compiler_static='-Bstatic'
8980	;;
8981      tcc*)
8982	# Fabrice Bellard et al's Tiny C Compiler
8983	lt_prog_compiler_wl='-Wl,'
8984	lt_prog_compiler_pic='-fPIC'
8985	lt_prog_compiler_static='-static'
8986	;;
8987      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8988        # Portland Group compilers (*not* the Pentium gcc compiler,
8989	# which looks to be a dead project)
8990	lt_prog_compiler_wl='-Wl,'
8991	lt_prog_compiler_pic='-fpic'
8992	lt_prog_compiler_static='-Bstatic'
8993        ;;
8994      ccc*)
8995        lt_prog_compiler_wl='-Wl,'
8996        # All Alpha code is PIC.
8997        lt_prog_compiler_static='-non_shared'
8998        ;;
8999      xl* | bgxl* | bgf* | mpixl*)
9000	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9001	lt_prog_compiler_wl='-Wl,'
9002	lt_prog_compiler_pic='-qpic'
9003	lt_prog_compiler_static='-qstaticlink'
9004	;;
9005      *)
9006	case `$CC -V 2>&1 | sed 5q` in
9007	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9008	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9009	  lt_prog_compiler_pic='-KPIC'
9010	  lt_prog_compiler_static='-Bstatic'
9011	  lt_prog_compiler_wl=''
9012	  ;;
9013	*Sun\ F* | *Sun*Fortran*)
9014	  lt_prog_compiler_pic='-KPIC'
9015	  lt_prog_compiler_static='-Bstatic'
9016	  lt_prog_compiler_wl='-Qoption ld '
9017	  ;;
9018	*Sun\ C*)
9019	  # Sun C 5.9
9020	  lt_prog_compiler_pic='-KPIC'
9021	  lt_prog_compiler_static='-Bstatic'
9022	  lt_prog_compiler_wl='-Wl,'
9023	  ;;
9024        *Intel*\ [CF]*Compiler*)
9025	  lt_prog_compiler_wl='-Wl,'
9026	  lt_prog_compiler_pic='-fPIC'
9027	  lt_prog_compiler_static='-static'
9028	  ;;
9029	*Portland\ Group*)
9030	  lt_prog_compiler_wl='-Wl,'
9031	  lt_prog_compiler_pic='-fpic'
9032	  lt_prog_compiler_static='-Bstatic'
9033	  ;;
9034	esac
9035	;;
9036      esac
9037      ;;
9038
9039    newsos6)
9040      lt_prog_compiler_pic='-KPIC'
9041      lt_prog_compiler_static='-Bstatic'
9042      ;;
9043
9044    *nto* | *qnx*)
9045      # QNX uses GNU C++, but need to define -shared option too, otherwise
9046      # it will coredump.
9047      lt_prog_compiler_pic='-fPIC -shared'
9048      ;;
9049
9050    osf3* | osf4* | osf5*)
9051      lt_prog_compiler_wl='-Wl,'
9052      # All OSF/1 code is PIC.
9053      lt_prog_compiler_static='-non_shared'
9054      ;;
9055
9056    rdos*)
9057      lt_prog_compiler_static='-non_shared'
9058      ;;
9059
9060    solaris*)
9061      lt_prog_compiler_pic='-KPIC'
9062      lt_prog_compiler_static='-Bstatic'
9063      case $cc_basename in
9064      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9065	lt_prog_compiler_wl='-Qoption ld ';;
9066      *)
9067	lt_prog_compiler_wl='-Wl,';;
9068      esac
9069      ;;
9070
9071    sunos4*)
9072      lt_prog_compiler_wl='-Qoption ld '
9073      lt_prog_compiler_pic='-PIC'
9074      lt_prog_compiler_static='-Bstatic'
9075      ;;
9076
9077    sysv4 | sysv4.2uw2* | sysv4.3*)
9078      lt_prog_compiler_wl='-Wl,'
9079      lt_prog_compiler_pic='-KPIC'
9080      lt_prog_compiler_static='-Bstatic'
9081      ;;
9082
9083    sysv4*MP*)
9084      if test -d /usr/nec; then
9085	lt_prog_compiler_pic='-Kconform_pic'
9086	lt_prog_compiler_static='-Bstatic'
9087      fi
9088      ;;
9089
9090    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9091      lt_prog_compiler_wl='-Wl,'
9092      lt_prog_compiler_pic='-KPIC'
9093      lt_prog_compiler_static='-Bstatic'
9094      ;;
9095
9096    unicos*)
9097      lt_prog_compiler_wl='-Wl,'
9098      lt_prog_compiler_can_build_shared=no
9099      ;;
9100
9101    uts4*)
9102      lt_prog_compiler_pic='-pic'
9103      lt_prog_compiler_static='-Bstatic'
9104      ;;
9105
9106    *)
9107      lt_prog_compiler_can_build_shared=no
9108      ;;
9109    esac
9110  fi
9111
9112case $host_os in
9113  # For platforms that do not support PIC, -DPIC is meaningless:
9114  *djgpp*)
9115    lt_prog_compiler_pic=
9116    ;;
9117  *)
9118    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9119    ;;
9120esac
9121
9122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9123printf %s "checking for $compiler option to produce PIC... " >&6; }
9124if test ${lt_cv_prog_compiler_pic+y}
9125then :
9126  printf %s "(cached) " >&6
9127else $as_nop
9128  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9129fi
9130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9131printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9132lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9133
9134#
9135# Check to make sure the PIC flag actually works.
9136#
9137if test -n "$lt_prog_compiler_pic"; then
9138  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9139printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9140if test ${lt_cv_prog_compiler_pic_works+y}
9141then :
9142  printf %s "(cached) " >&6
9143else $as_nop
9144  lt_cv_prog_compiler_pic_works=no
9145   ac_outfile=conftest.$ac_objext
9146   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9147   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9148   # Insert the option either (1) after the last *FLAGS variable, or
9149   # (2) before a word containing "conftest.", or (3) at the end.
9150   # Note that $ac_compile itself does not contain backslashes and begins
9151   # with a dollar sign (not a hyphen), so the echo should work correctly.
9152   # The option is referenced via a variable to avoid confusing sed.
9153   lt_compile=`echo "$ac_compile" | $SED \
9154   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9155   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9156   -e 's:$: $lt_compiler_flag:'`
9157   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9158   (eval "$lt_compile" 2>conftest.err)
9159   ac_status=$?
9160   cat conftest.err >&5
9161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162   if (exit $ac_status) && test -s "$ac_outfile"; then
9163     # The compiler can only warn and ignore the option if not recognized
9164     # So say no if there are warnings other than the usual output.
9165     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9166     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9167     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9168       lt_cv_prog_compiler_pic_works=yes
9169     fi
9170   fi
9171   $RM conftest*
9172
9173fi
9174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9175printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9176
9177if test yes = "$lt_cv_prog_compiler_pic_works"; then
9178    case $lt_prog_compiler_pic in
9179     "" | " "*) ;;
9180     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9181     esac
9182else
9183    lt_prog_compiler_pic=
9184     lt_prog_compiler_can_build_shared=no
9185fi
9186
9187fi
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199#
9200# Check to make sure the static flag actually works.
9201#
9202wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9204printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9205if test ${lt_cv_prog_compiler_static_works+y}
9206then :
9207  printf %s "(cached) " >&6
9208else $as_nop
9209  lt_cv_prog_compiler_static_works=no
9210   save_LDFLAGS=$LDFLAGS
9211   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9212   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9213   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9214     # The linker can only warn and ignore the option if not recognized
9215     # So say no if there are warnings
9216     if test -s conftest.err; then
9217       # Append any errors to the config.log.
9218       cat conftest.err 1>&5
9219       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9220       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9221       if diff conftest.exp conftest.er2 >/dev/null; then
9222         lt_cv_prog_compiler_static_works=yes
9223       fi
9224     else
9225       lt_cv_prog_compiler_static_works=yes
9226     fi
9227   fi
9228   $RM -r conftest*
9229   LDFLAGS=$save_LDFLAGS
9230
9231fi
9232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9233printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9234
9235if test yes = "$lt_cv_prog_compiler_static_works"; then
9236    :
9237else
9238    lt_prog_compiler_static=
9239fi
9240
9241
9242
9243
9244
9245
9246
9247  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9248printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9249if test ${lt_cv_prog_compiler_c_o+y}
9250then :
9251  printf %s "(cached) " >&6
9252else $as_nop
9253  lt_cv_prog_compiler_c_o=no
9254   $RM -r conftest 2>/dev/null
9255   mkdir conftest
9256   cd conftest
9257   mkdir out
9258   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9259
9260   lt_compiler_flag="-o out/conftest2.$ac_objext"
9261   # Insert the option either (1) after the last *FLAGS variable, or
9262   # (2) before a word containing "conftest.", or (3) at the end.
9263   # Note that $ac_compile itself does not contain backslashes and begins
9264   # with a dollar sign (not a hyphen), so the echo should work correctly.
9265   lt_compile=`echo "$ac_compile" | $SED \
9266   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9267   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9268   -e 's:$: $lt_compiler_flag:'`
9269   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9270   (eval "$lt_compile" 2>out/conftest.err)
9271   ac_status=$?
9272   cat out/conftest.err >&5
9273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9275   then
9276     # The compiler can only warn and ignore the option if not recognized
9277     # So say no if there are warnings
9278     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9279     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9280     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9281       lt_cv_prog_compiler_c_o=yes
9282     fi
9283   fi
9284   chmod u+w . 2>&5
9285   $RM conftest*
9286   # SGI C++ compiler will create directory out/ii_files/ for
9287   # template instantiation
9288   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9289   $RM out/* && rmdir out
9290   cd ..
9291   $RM -r conftest
9292   $RM conftest*
9293
9294fi
9295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9296printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9297
9298
9299
9300
9301
9302
9303  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9304printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9305if test ${lt_cv_prog_compiler_c_o+y}
9306then :
9307  printf %s "(cached) " >&6
9308else $as_nop
9309  lt_cv_prog_compiler_c_o=no
9310   $RM -r conftest 2>/dev/null
9311   mkdir conftest
9312   cd conftest
9313   mkdir out
9314   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9315
9316   lt_compiler_flag="-o out/conftest2.$ac_objext"
9317   # Insert the option either (1) after the last *FLAGS variable, or
9318   # (2) before a word containing "conftest.", or (3) at the end.
9319   # Note that $ac_compile itself does not contain backslashes and begins
9320   # with a dollar sign (not a hyphen), so the echo should work correctly.
9321   lt_compile=`echo "$ac_compile" | $SED \
9322   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9323   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9324   -e 's:$: $lt_compiler_flag:'`
9325   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9326   (eval "$lt_compile" 2>out/conftest.err)
9327   ac_status=$?
9328   cat out/conftest.err >&5
9329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9331   then
9332     # The compiler can only warn and ignore the option if not recognized
9333     # So say no if there are warnings
9334     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9335     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9336     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9337       lt_cv_prog_compiler_c_o=yes
9338     fi
9339   fi
9340   chmod u+w . 2>&5
9341   $RM conftest*
9342   # SGI C++ compiler will create directory out/ii_files/ for
9343   # template instantiation
9344   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9345   $RM out/* && rmdir out
9346   cd ..
9347   $RM -r conftest
9348   $RM conftest*
9349
9350fi
9351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9352printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9353
9354
9355
9356
9357hard_links=nottested
9358if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9359  # do not overwrite the value of need_locks provided by the user
9360  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9361printf %s "checking if we can lock with hard links... " >&6; }
9362  hard_links=yes
9363  $RM conftest*
9364  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9365  touch conftest.a
9366  ln conftest.a conftest.b 2>&5 || hard_links=no
9367  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9368  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9369printf "%s\n" "$hard_links" >&6; }
9370  if test no = "$hard_links"; then
9371    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9372printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9373    need_locks=warn
9374  fi
9375else
9376  need_locks=no
9377fi
9378
9379
9380
9381
9382
9383
9384  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9385printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9386
9387  runpath_var=
9388  allow_undefined_flag=
9389  always_export_symbols=no
9390  archive_cmds=
9391  archive_expsym_cmds=
9392  compiler_needs_object=no
9393  enable_shared_with_static_runtimes=no
9394  export_dynamic_flag_spec=
9395  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9396  hardcode_automatic=no
9397  hardcode_direct=no
9398  hardcode_direct_absolute=no
9399  hardcode_libdir_flag_spec=
9400  hardcode_libdir_separator=
9401  hardcode_minus_L=no
9402  hardcode_shlibpath_var=unsupported
9403  inherit_rpath=no
9404  link_all_deplibs=unknown
9405  module_cmds=
9406  module_expsym_cmds=
9407  old_archive_from_new_cmds=
9408  old_archive_from_expsyms_cmds=
9409  thread_safe_flag_spec=
9410  whole_archive_flag_spec=
9411  # include_expsyms should be a list of space-separated symbols to be *always*
9412  # included in the symbol list
9413  include_expsyms=
9414  # exclude_expsyms can be an extended regexp of symbols to exclude
9415  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9416  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9417  # as well as any symbol that contains 'd'.
9418  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9419  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9420  # platforms (ab)use it in PIC code, but their linkers get confused if
9421  # the symbol is explicitly referenced.  Since portable code cannot
9422  # rely on this symbol name, it's probably fine to never include it in
9423  # preloaded symbol tables.
9424  # Exclude shared library initialization/finalization symbols.
9425  extract_expsyms_cmds=
9426
9427  case $host_os in
9428  cygwin* | mingw* | pw32* | cegcc*)
9429    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9430    # When not using gcc, we currently assume that we are using
9431    # Microsoft Visual C++.
9432    if test yes != "$GCC"; then
9433      with_gnu_ld=no
9434    fi
9435    ;;
9436  interix*)
9437    # we just hope/assume this is gcc and not c89 (= MSVC++)
9438    with_gnu_ld=yes
9439    ;;
9440  openbsd* | bitrig*)
9441    with_gnu_ld=no
9442    ;;
9443  esac
9444
9445  ld_shlibs=yes
9446
9447  # On some targets, GNU ld is compatible enough with the native linker
9448  # that we're better off using the native interface for both.
9449  lt_use_gnu_ld_interface=no
9450  if test yes = "$with_gnu_ld"; then
9451    case $host_os in
9452      aix*)
9453	# The AIX port of GNU ld has always aspired to compatibility
9454	# with the native linker.  However, as the warning in the GNU ld
9455	# block says, versions before 2.19.5* couldn't really create working
9456	# shared libraries, regardless of the interface used.
9457	case `$LD -v 2>&1` in
9458	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9459	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9460	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9461	  *)
9462	    lt_use_gnu_ld_interface=yes
9463	    ;;
9464	esac
9465	;;
9466      *)
9467	lt_use_gnu_ld_interface=yes
9468	;;
9469    esac
9470  fi
9471
9472  if test yes = "$lt_use_gnu_ld_interface"; then
9473    # If archive_cmds runs LD, not CC, wlarc should be empty
9474    wlarc='$wl'
9475
9476    # Set some defaults for GNU ld with shared library support. These
9477    # are reset later if shared libraries are not supported. Putting them
9478    # here allows them to be overridden if necessary.
9479    runpath_var=LD_RUN_PATH
9480    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9481    export_dynamic_flag_spec='$wl--export-dynamic'
9482    # ancient GNU ld didn't support --whole-archive et. al.
9483    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9484      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9485    else
9486      whole_archive_flag_spec=
9487    fi
9488    supports_anon_versioning=no
9489    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9490      *GNU\ gold*) supports_anon_versioning=yes ;;
9491      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9492      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9493      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9494      *\ 2.11.*) ;; # other 2.11 versions
9495      *) supports_anon_versioning=yes ;;
9496    esac
9497
9498    # See if GNU ld supports shared libraries.
9499    case $host_os in
9500    aix[3-9]*)
9501      # On AIX/PPC, the GNU linker is very broken
9502      if test ia64 != "$host_cpu"; then
9503	ld_shlibs=no
9504	cat <<_LT_EOF 1>&2
9505
9506*** Warning: the GNU linker, at least up to release 2.19, is reported
9507*** to be unable to reliably create shared libraries on AIX.
9508*** Therefore, libtool is disabling shared libraries support.  If you
9509*** really care for shared libraries, you may want to install binutils
9510*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9511*** You will then need to restart the configuration process.
9512
9513_LT_EOF
9514      fi
9515      ;;
9516
9517    amigaos*)
9518      case $host_cpu in
9519      powerpc)
9520            # see comment about AmigaOS4 .so support
9521            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9522            archive_expsym_cmds=''
9523        ;;
9524      m68k)
9525            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)'
9526            hardcode_libdir_flag_spec='-L$libdir'
9527            hardcode_minus_L=yes
9528        ;;
9529      esac
9530      ;;
9531
9532    beos*)
9533      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9534	allow_undefined_flag=unsupported
9535	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9536	# support --undefined.  This deserves some investigation.  FIXME
9537	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9538      else
9539	ld_shlibs=no
9540      fi
9541      ;;
9542
9543    cygwin* | mingw* | pw32* | cegcc*)
9544      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9545      # as there is no search path for DLLs.
9546      hardcode_libdir_flag_spec='-L$libdir'
9547      export_dynamic_flag_spec='$wl--export-all-symbols'
9548      allow_undefined_flag=unsupported
9549      always_export_symbols=no
9550      enable_shared_with_static_runtimes=yes
9551      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'
9552      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9553
9554      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9555        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9556	# If the export-symbols file already is a .def file, use it as
9557	# is; otherwise, prepend EXPORTS...
9558	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9559          cp $export_symbols $output_objdir/$soname.def;
9560        else
9561          echo EXPORTS > $output_objdir/$soname.def;
9562          cat $export_symbols >> $output_objdir/$soname.def;
9563        fi~
9564        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9565      else
9566	ld_shlibs=no
9567      fi
9568      ;;
9569
9570    haiku*)
9571      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9572      link_all_deplibs=yes
9573      ;;
9574
9575    os2*)
9576      hardcode_libdir_flag_spec='-L$libdir'
9577      hardcode_minus_L=yes
9578      allow_undefined_flag=unsupported
9579      shrext_cmds=.dll
9580      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9581	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9582	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9583	$ECHO EXPORTS >> $output_objdir/$libname.def~
9584	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9585	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9586	emximp -o $lib $output_objdir/$libname.def'
9587      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9588	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9589	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9590	$ECHO EXPORTS >> $output_objdir/$libname.def~
9591	prefix_cmds="$SED"~
9592	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9593	  prefix_cmds="$prefix_cmds -e 1d";
9594	fi~
9595	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9596	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9597	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9598	emximp -o $lib $output_objdir/$libname.def'
9599      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9600      enable_shared_with_static_runtimes=yes
9601      ;;
9602
9603    interix[3-9]*)
9604      hardcode_direct=no
9605      hardcode_shlibpath_var=no
9606      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9607      export_dynamic_flag_spec='$wl-E'
9608      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9609      # Instead, shared libraries are loaded at an image base (0x10000000 by
9610      # default) and relocated if they conflict, which is a slow very memory
9611      # consuming and fragmenting process.  To avoid this, we pick a random,
9612      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9613      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9614      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9615      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'
9616      ;;
9617
9618    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9619      tmp_diet=no
9620      if test linux-dietlibc = "$host_os"; then
9621	case $cc_basename in
9622	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9623	esac
9624      fi
9625      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9626	 && test no = "$tmp_diet"
9627      then
9628	tmp_addflag=' $pic_flag'
9629	tmp_sharedflag='-shared'
9630	case $cc_basename,$host_cpu in
9631        pgcc*)				# Portland Group C compiler
9632	  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'
9633	  tmp_addflag=' $pic_flag'
9634	  ;;
9635	pgf77* | pgf90* | pgf95* | pgfortran*)
9636					# Portland Group f77 and f90 compilers
9637	  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'
9638	  tmp_addflag=' $pic_flag -Mnomain' ;;
9639	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9640	  tmp_addflag=' -i_dynamic' ;;
9641	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9642	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9643	ifc* | ifort*)			# Intel Fortran compiler
9644	  tmp_addflag=' -nofor_main' ;;
9645	lf95*)				# Lahey Fortran 8.1
9646	  whole_archive_flag_spec=
9647	  tmp_sharedflag='--shared' ;;
9648        nagfor*)                        # NAGFOR 5.3
9649          tmp_sharedflag='-Wl,-shared' ;;
9650	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9651	  tmp_sharedflag='-qmkshrobj'
9652	  tmp_addflag= ;;
9653	nvcc*)	# Cuda Compiler Driver 2.2
9654	  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'
9655	  compiler_needs_object=yes
9656	  ;;
9657	esac
9658	case `$CC -V 2>&1 | sed 5q` in
9659	*Sun\ C*)			# Sun C 5.9
9660	  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'
9661	  compiler_needs_object=yes
9662	  tmp_sharedflag='-G' ;;
9663	*Sun\ F*)			# Sun Fortran 8.3
9664	  tmp_sharedflag='-G' ;;
9665	esac
9666	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9667
9668        if test yes = "$supports_anon_versioning"; then
9669          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9670            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9671            echo "local: *; };" >> $output_objdir/$libname.ver~
9672            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9673        fi
9674
9675	case $cc_basename in
9676	tcc*)
9677	  export_dynamic_flag_spec='-rdynamic'
9678	  ;;
9679	xlf* | bgf* | bgxlf* | mpixlf*)
9680	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9681	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9682	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9683	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9684	  if test yes = "$supports_anon_versioning"; then
9685	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9686              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9687              echo "local: *; };" >> $output_objdir/$libname.ver~
9688              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9689	  fi
9690	  ;;
9691	esac
9692      else
9693        ld_shlibs=no
9694      fi
9695      ;;
9696
9697    netbsd*)
9698      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9699	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9700	wlarc=
9701      else
9702	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9703	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9704      fi
9705      ;;
9706
9707    solaris*)
9708      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9709	ld_shlibs=no
9710	cat <<_LT_EOF 1>&2
9711
9712*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9713*** create shared libraries on Solaris systems.  Therefore, libtool
9714*** is disabling shared libraries support.  We urge you to upgrade GNU
9715*** binutils to release 2.9.1 or newer.  Another option is to modify
9716*** your PATH or compiler configuration so that the native linker is
9717*** used, and then restart.
9718
9719_LT_EOF
9720      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9721	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9722	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9723      else
9724	ld_shlibs=no
9725      fi
9726      ;;
9727
9728    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9729      case `$LD -v 2>&1` in
9730        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9731	ld_shlibs=no
9732	cat <<_LT_EOF 1>&2
9733
9734*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9735*** reliably create shared libraries on SCO systems.  Therefore, libtool
9736*** is disabling shared libraries support.  We urge you to upgrade GNU
9737*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9738*** your PATH or compiler configuration so that the native linker is
9739*** used, and then restart.
9740
9741_LT_EOF
9742	;;
9743	*)
9744	  # For security reasons, it is highly recommended that you always
9745	  # use absolute paths for naming shared libraries, and exclude the
9746	  # DT_RUNPATH tag from executables and libraries.  But doing so
9747	  # requires that you compile everything twice, which is a pain.
9748	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9749	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9750	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9751	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9752	  else
9753	    ld_shlibs=no
9754	  fi
9755	;;
9756      esac
9757      ;;
9758
9759    sunos4*)
9760      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9761      wlarc=
9762      hardcode_direct=yes
9763      hardcode_shlibpath_var=no
9764      ;;
9765
9766    *)
9767      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9768	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9769	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9770      else
9771	ld_shlibs=no
9772      fi
9773      ;;
9774    esac
9775
9776    if test no = "$ld_shlibs"; then
9777      runpath_var=
9778      hardcode_libdir_flag_spec=
9779      export_dynamic_flag_spec=
9780      whole_archive_flag_spec=
9781    fi
9782  else
9783    # PORTME fill in a description of your system's linker (not GNU ld)
9784    case $host_os in
9785    aix3*)
9786      allow_undefined_flag=unsupported
9787      always_export_symbols=yes
9788      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'
9789      # Note: this linker hardcodes the directories in LIBPATH if there
9790      # are no directories specified by -L.
9791      hardcode_minus_L=yes
9792      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9793	# Neither direct hardcoding nor static linking is supported with a
9794	# broken collect2.
9795	hardcode_direct=unsupported
9796      fi
9797      ;;
9798
9799    aix[4-9]*)
9800      if test ia64 = "$host_cpu"; then
9801	# On IA64, the linker does run time linking by default, so we don't
9802	# have to do anything special.
9803	aix_use_runtimelinking=no
9804	exp_sym_flag='-Bexport'
9805	no_entry_flag=
9806      else
9807	# If we're using GNU nm, then we don't want the "-C" option.
9808	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9809	# Without the "-l" option, or with the "-B" option, AIX nm treats
9810	# weak defined symbols like other global defined symbols, whereas
9811	# GNU nm marks them as "W".
9812	# While the 'weak' keyword is ignored in the Export File, we need
9813	# it in the Import File for the 'aix-soname' feature, so we have
9814	# to replace the "-B" option with "-P" for AIX nm.
9815	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9816	  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'
9817	else
9818	  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 == "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'
9819	fi
9820	aix_use_runtimelinking=no
9821
9822	# Test if we are trying to use run time linking or normal
9823	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9824	# have runtime linking enabled, and use it for executables.
9825	# For shared libraries, we enable/disable runtime linking
9826	# depending on the kind of the shared library created -
9827	# when "with_aix_soname,aix_use_runtimelinking" is:
9828	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9829	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9830	#            lib.a           static archive
9831	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9832	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9833	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9834	#            lib.a(lib.so.V) shared, rtl:no
9835	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9836	#            lib.a           static archive
9837	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9838	  for ld_flag in $LDFLAGS; do
9839	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9840	    aix_use_runtimelinking=yes
9841	    break
9842	  fi
9843	  done
9844	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9845	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9846	    # so we don't have lib.a shared libs to link our executables.
9847	    # We have to force runtime linking in this case.
9848	    aix_use_runtimelinking=yes
9849	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9850	  fi
9851	  ;;
9852	esac
9853
9854	exp_sym_flag='-bexport'
9855	no_entry_flag='-bnoentry'
9856      fi
9857
9858      # When large executables or shared objects are built, AIX ld can
9859      # have problems creating the table of contents.  If linking a library
9860      # or program results in "error TOC overflow" add -mminimal-toc to
9861      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9862      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9863
9864      archive_cmds=''
9865      hardcode_direct=yes
9866      hardcode_direct_absolute=yes
9867      hardcode_libdir_separator=':'
9868      link_all_deplibs=yes
9869      file_list_spec='$wl-f,'
9870      case $with_aix_soname,$aix_use_runtimelinking in
9871      aix,*) ;; # traditional, no import file
9872      svr4,* | *,yes) # use import file
9873	# The Import File defines what to hardcode.
9874	hardcode_direct=no
9875	hardcode_direct_absolute=no
9876	;;
9877      esac
9878
9879      if test yes = "$GCC"; then
9880	case $host_os in aix4.[012]|aix4.[012].*)
9881	# We only want to do this on AIX 4.2 and lower, the check
9882	# below for broken collect2 doesn't work under 4.3+
9883	  collect2name=`$CC -print-prog-name=collect2`
9884	  if test -f "$collect2name" &&
9885	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9886	  then
9887	  # We have reworked collect2
9888	  :
9889	  else
9890	  # We have old collect2
9891	  hardcode_direct=unsupported
9892	  # It fails to find uninstalled libraries when the uninstalled
9893	  # path is not listed in the libpath.  Setting hardcode_minus_L
9894	  # to unsupported forces relinking
9895	  hardcode_minus_L=yes
9896	  hardcode_libdir_flag_spec='-L$libdir'
9897	  hardcode_libdir_separator=
9898	  fi
9899	  ;;
9900	esac
9901	shared_flag='-shared'
9902	if test yes = "$aix_use_runtimelinking"; then
9903	  shared_flag="$shared_flag "'$wl-G'
9904	fi
9905	# Need to ensure runtime linking is disabled for the traditional
9906	# shared library, or the linker may eventually find shared libraries
9907	# /with/ Import File - we do not want to mix them.
9908	shared_flag_aix='-shared'
9909	shared_flag_svr4='-shared $wl-G'
9910      else
9911	# not using gcc
9912	if test ia64 = "$host_cpu"; then
9913	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9914	# chokes on -Wl,-G. The following line is correct:
9915	  shared_flag='-G'
9916	else
9917	  if test yes = "$aix_use_runtimelinking"; then
9918	    shared_flag='$wl-G'
9919	  else
9920	    shared_flag='$wl-bM:SRE'
9921	  fi
9922	  shared_flag_aix='$wl-bM:SRE'
9923	  shared_flag_svr4='$wl-G'
9924	fi
9925      fi
9926
9927      export_dynamic_flag_spec='$wl-bexpall'
9928      # It seems that -bexpall does not export symbols beginning with
9929      # underscore (_), so it is better to generate a list of symbols to export.
9930      always_export_symbols=yes
9931      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9932	# Warning - without using the other runtime loading flags (-brtl),
9933	# -berok will link without error, but may produce a broken library.
9934	allow_undefined_flag='-berok'
9935        # Determine the default libpath from the value encoded in an
9936        # empty executable.
9937        if test set = "${lt_cv_aix_libpath+set}"; then
9938  aix_libpath=$lt_cv_aix_libpath
9939else
9940  if test ${lt_cv_aix_libpath_+y}
9941then :
9942  printf %s "(cached) " >&6
9943else $as_nop
9944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9945/* end confdefs.h.  */
9946
9947int
9948main (void)
9949{
9950
9951  ;
9952  return 0;
9953}
9954_ACEOF
9955if ac_fn_c_try_link "$LINENO"
9956then :
9957
9958  lt_aix_libpath_sed='
9959      /Import File Strings/,/^$/ {
9960	  /^0/ {
9961	      s/^0  *\([^ ]*\) *$/\1/
9962	      p
9963	  }
9964      }'
9965  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9966  # Check for a 64-bit object if we didn't find anything.
9967  if test -z "$lt_cv_aix_libpath_"; then
9968    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9969  fi
9970fi
9971rm -f core conftest.err conftest.$ac_objext conftest.beam \
9972    conftest$ac_exeext conftest.$ac_ext
9973  if test -z "$lt_cv_aix_libpath_"; then
9974    lt_cv_aix_libpath_=/usr/lib:/lib
9975  fi
9976
9977fi
9978
9979  aix_libpath=$lt_cv_aix_libpath_
9980fi
9981
9982        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9983        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
9984      else
9985	if test ia64 = "$host_cpu"; then
9986	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9987	  allow_undefined_flag="-z nodefs"
9988	  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"
9989	else
9990	 # Determine the default libpath from the value encoded in an
9991	 # empty executable.
9992	 if test set = "${lt_cv_aix_libpath+set}"; then
9993  aix_libpath=$lt_cv_aix_libpath
9994else
9995  if test ${lt_cv_aix_libpath_+y}
9996then :
9997  printf %s "(cached) " >&6
9998else $as_nop
9999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10000/* end confdefs.h.  */
10001
10002int
10003main (void)
10004{
10005
10006  ;
10007  return 0;
10008}
10009_ACEOF
10010if ac_fn_c_try_link "$LINENO"
10011then :
10012
10013  lt_aix_libpath_sed='
10014      /Import File Strings/,/^$/ {
10015	  /^0/ {
10016	      s/^0  *\([^ ]*\) *$/\1/
10017	      p
10018	  }
10019      }'
10020  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10021  # Check for a 64-bit object if we didn't find anything.
10022  if test -z "$lt_cv_aix_libpath_"; then
10023    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10024  fi
10025fi
10026rm -f core conftest.err conftest.$ac_objext conftest.beam \
10027    conftest$ac_exeext conftest.$ac_ext
10028  if test -z "$lt_cv_aix_libpath_"; then
10029    lt_cv_aix_libpath_=/usr/lib:/lib
10030  fi
10031
10032fi
10033
10034  aix_libpath=$lt_cv_aix_libpath_
10035fi
10036
10037	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10038	  # Warning - without using the other run time loading flags,
10039	  # -berok will link without error, but may produce a broken library.
10040	  no_undefined_flag=' $wl-bernotok'
10041	  allow_undefined_flag=' $wl-berok'
10042	  if test yes = "$with_gnu_ld"; then
10043	    # We only use this code for GNU lds that support --whole-archive.
10044	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10045	  else
10046	    # Exported symbols can be pulled into shared objects from archives
10047	    whole_archive_flag_spec='$convenience'
10048	  fi
10049	  archive_cmds_need_lc=yes
10050	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10051	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10052	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10053	  if test svr4 != "$with_aix_soname"; then
10054	    # This is similar to how AIX traditionally builds its shared libraries.
10055	    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'
10056	  fi
10057	  if test aix != "$with_aix_soname"; then
10058	    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'
10059	  else
10060	    # used by -dlpreopen to get the symbols
10061	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10062	  fi
10063	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10064	fi
10065      fi
10066      ;;
10067
10068    amigaos*)
10069      case $host_cpu in
10070      powerpc)
10071            # see comment about AmigaOS4 .so support
10072            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10073            archive_expsym_cmds=''
10074        ;;
10075      m68k)
10076            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)'
10077            hardcode_libdir_flag_spec='-L$libdir'
10078            hardcode_minus_L=yes
10079        ;;
10080      esac
10081      ;;
10082
10083    bsdi[45]*)
10084      export_dynamic_flag_spec=-rdynamic
10085      ;;
10086
10087    cygwin* | mingw* | pw32* | cegcc*)
10088      # When not using gcc, we currently assume that we are using
10089      # Microsoft Visual C++.
10090      # hardcode_libdir_flag_spec is actually meaningless, as there is
10091      # no search path for DLLs.
10092      case $cc_basename in
10093      cl*)
10094	# Native MSVC
10095	hardcode_libdir_flag_spec=' '
10096	allow_undefined_flag=unsupported
10097	always_export_symbols=yes
10098	file_list_spec='@'
10099	# Tell ltmain to make .lib files, not .a files.
10100	libext=lib
10101	# Tell ltmain to make .dll files, not .so files.
10102	shrext_cmds=.dll
10103	# FIXME: Setting linknames here is a bad hack.
10104	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10105	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10106            cp "$export_symbols" "$output_objdir/$soname.def";
10107            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10108          else
10109            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10110          fi~
10111          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10112          linknames='
10113	# The linker will not automatically build a static lib if we build a DLL.
10114	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10115	enable_shared_with_static_runtimes=yes
10116	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10117	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10118	# Don't use ranlib
10119	old_postinstall_cmds='chmod 644 $oldlib'
10120	postlink_cmds='lt_outputfile="@OUTPUT@"~
10121          lt_tool_outputfile="@TOOL_OUTPUT@"~
10122          case $lt_outputfile in
10123            *.exe|*.EXE) ;;
10124            *)
10125              lt_outputfile=$lt_outputfile.exe
10126              lt_tool_outputfile=$lt_tool_outputfile.exe
10127              ;;
10128          esac~
10129          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10130            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10131            $RM "$lt_outputfile.manifest";
10132          fi'
10133	;;
10134      *)
10135	# Assume MSVC wrapper
10136	hardcode_libdir_flag_spec=' '
10137	allow_undefined_flag=unsupported
10138	# Tell ltmain to make .lib files, not .a files.
10139	libext=lib
10140	# Tell ltmain to make .dll files, not .so files.
10141	shrext_cmds=.dll
10142	# FIXME: Setting linknames here is a bad hack.
10143	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10144	# The linker will automatically build a .lib file if we build a DLL.
10145	old_archive_from_new_cmds='true'
10146	# FIXME: Should let the user specify the lib program.
10147	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10148	enable_shared_with_static_runtimes=yes
10149	;;
10150      esac
10151      ;;
10152
10153    darwin* | rhapsody*)
10154
10155
10156  archive_cmds_need_lc=no
10157  hardcode_direct=no
10158  hardcode_automatic=yes
10159  hardcode_shlibpath_var=unsupported
10160  if test yes = "$lt_cv_ld_force_load"; then
10161    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\"`'
10162
10163  else
10164    whole_archive_flag_spec=''
10165  fi
10166  link_all_deplibs=yes
10167  allow_undefined_flag=$_lt_dar_allow_undefined
10168  case $cc_basename in
10169     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10170     *) _lt_dar_can_shared=$GCC ;;
10171  esac
10172  if test yes = "$_lt_dar_can_shared"; then
10173    output_verbose_link_cmd=func_echo_all
10174    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10175    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10176    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"
10177    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"
10178
10179  else
10180  ld_shlibs=no
10181  fi
10182
10183      ;;
10184
10185    dgux*)
10186      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10187      hardcode_libdir_flag_spec='-L$libdir'
10188      hardcode_shlibpath_var=no
10189      ;;
10190
10191    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10192    # support.  Future versions do this automatically, but an explicit c++rt0.o
10193    # does not break anything, and helps significantly (at the cost of a little
10194    # extra space).
10195    freebsd2.2*)
10196      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10197      hardcode_libdir_flag_spec='-R$libdir'
10198      hardcode_direct=yes
10199      hardcode_shlibpath_var=no
10200      ;;
10201
10202    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10203    freebsd2.*)
10204      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10205      hardcode_direct=yes
10206      hardcode_minus_L=yes
10207      hardcode_shlibpath_var=no
10208      ;;
10209
10210    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10211    freebsd* | dragonfly*)
10212      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10213      hardcode_libdir_flag_spec='-R$libdir'
10214      hardcode_direct=yes
10215      hardcode_shlibpath_var=no
10216      ;;
10217
10218    hpux9*)
10219      if test yes = "$GCC"; then
10220	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'
10221      else
10222	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'
10223      fi
10224      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10225      hardcode_libdir_separator=:
10226      hardcode_direct=yes
10227
10228      # hardcode_minus_L: Not really in the search PATH,
10229      # but as the default location of the library.
10230      hardcode_minus_L=yes
10231      export_dynamic_flag_spec='$wl-E'
10232      ;;
10233
10234    hpux10*)
10235      if test yes,no = "$GCC,$with_gnu_ld"; then
10236	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10237      else
10238	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10239      fi
10240      if test no = "$with_gnu_ld"; then
10241	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10242	hardcode_libdir_separator=:
10243	hardcode_direct=yes
10244	hardcode_direct_absolute=yes
10245	export_dynamic_flag_spec='$wl-E'
10246	# hardcode_minus_L: Not really in the search PATH,
10247	# but as the default location of the library.
10248	hardcode_minus_L=yes
10249      fi
10250      ;;
10251
10252    hpux11*)
10253      if test yes,no = "$GCC,$with_gnu_ld"; then
10254	case $host_cpu in
10255	hppa*64*)
10256	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10257	  ;;
10258	ia64*)
10259	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10260	  ;;
10261	*)
10262	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10263	  ;;
10264	esac
10265      else
10266	case $host_cpu in
10267	hppa*64*)
10268	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10269	  ;;
10270	ia64*)
10271	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10272	  ;;
10273	*)
10274
10275	  # Older versions of the 11.00 compiler do not understand -b yet
10276	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10277	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10278printf %s "checking if $CC understands -b... " >&6; }
10279if test ${lt_cv_prog_compiler__b+y}
10280then :
10281  printf %s "(cached) " >&6
10282else $as_nop
10283  lt_cv_prog_compiler__b=no
10284   save_LDFLAGS=$LDFLAGS
10285   LDFLAGS="$LDFLAGS -b"
10286   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10287   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10288     # The linker can only warn and ignore the option if not recognized
10289     # So say no if there are warnings
10290     if test -s conftest.err; then
10291       # Append any errors to the config.log.
10292       cat conftest.err 1>&5
10293       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10294       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10295       if diff conftest.exp conftest.er2 >/dev/null; then
10296         lt_cv_prog_compiler__b=yes
10297       fi
10298     else
10299       lt_cv_prog_compiler__b=yes
10300     fi
10301   fi
10302   $RM -r conftest*
10303   LDFLAGS=$save_LDFLAGS
10304
10305fi
10306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10307printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10308
10309if test yes = "$lt_cv_prog_compiler__b"; then
10310    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10311else
10312    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10313fi
10314
10315	  ;;
10316	esac
10317      fi
10318      if test no = "$with_gnu_ld"; then
10319	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10320	hardcode_libdir_separator=:
10321
10322	case $host_cpu in
10323	hppa*64*|ia64*)
10324	  hardcode_direct=no
10325	  hardcode_shlibpath_var=no
10326	  ;;
10327	*)
10328	  hardcode_direct=yes
10329	  hardcode_direct_absolute=yes
10330	  export_dynamic_flag_spec='$wl-E'
10331
10332	  # hardcode_minus_L: Not really in the search PATH,
10333	  # but as the default location of the library.
10334	  hardcode_minus_L=yes
10335	  ;;
10336	esac
10337      fi
10338      ;;
10339
10340    irix5* | irix6* | nonstopux*)
10341      if test yes = "$GCC"; then
10342	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'
10343	# Try to use the -exported_symbol ld option, if it does not
10344	# work, assume that -exports_file does not work either and
10345	# implicitly export all symbols.
10346	# This should be the same for all languages, so no per-tag cache variable.
10347	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10348printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10349if test ${lt_cv_irix_exported_symbol+y}
10350then :
10351  printf %s "(cached) " >&6
10352else $as_nop
10353  save_LDFLAGS=$LDFLAGS
10354	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10355	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10356/* end confdefs.h.  */
10357int foo (void) { return 0; }
10358_ACEOF
10359if ac_fn_c_try_link "$LINENO"
10360then :
10361  lt_cv_irix_exported_symbol=yes
10362else $as_nop
10363  lt_cv_irix_exported_symbol=no
10364fi
10365rm -f core conftest.err conftest.$ac_objext conftest.beam \
10366    conftest$ac_exeext conftest.$ac_ext
10367           LDFLAGS=$save_LDFLAGS
10368fi
10369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10370printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10371	if test yes = "$lt_cv_irix_exported_symbol"; then
10372          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'
10373	fi
10374      else
10375	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'
10376	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'
10377      fi
10378      archive_cmds_need_lc='no'
10379      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10380      hardcode_libdir_separator=:
10381      inherit_rpath=yes
10382      link_all_deplibs=yes
10383      ;;
10384
10385    linux*)
10386      case $cc_basename in
10387      tcc*)
10388	# Fabrice Bellard et al's Tiny C Compiler
10389	ld_shlibs=yes
10390	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10391	;;
10392      esac
10393      ;;
10394
10395    netbsd*)
10396      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10397	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10398      else
10399	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10400      fi
10401      hardcode_libdir_flag_spec='-R$libdir'
10402      hardcode_direct=yes
10403      hardcode_shlibpath_var=no
10404      ;;
10405
10406    newsos6)
10407      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10408      hardcode_direct=yes
10409      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10410      hardcode_libdir_separator=:
10411      hardcode_shlibpath_var=no
10412      ;;
10413
10414    *nto* | *qnx*)
10415      ;;
10416
10417    openbsd* | bitrig*)
10418      if test -f /usr/libexec/ld.so; then
10419	hardcode_direct=yes
10420	hardcode_shlibpath_var=no
10421	hardcode_direct_absolute=yes
10422	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10423	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10424	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10425	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10426	  export_dynamic_flag_spec='$wl-E'
10427	else
10428	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10429	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10430	fi
10431      else
10432	ld_shlibs=no
10433      fi
10434      ;;
10435
10436    os2*)
10437      hardcode_libdir_flag_spec='-L$libdir'
10438      hardcode_minus_L=yes
10439      allow_undefined_flag=unsupported
10440      shrext_cmds=.dll
10441      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10442	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10443	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10444	$ECHO EXPORTS >> $output_objdir/$libname.def~
10445	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10446	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10447	emximp -o $lib $output_objdir/$libname.def'
10448      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10449	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10450	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10451	$ECHO EXPORTS >> $output_objdir/$libname.def~
10452	prefix_cmds="$SED"~
10453	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10454	  prefix_cmds="$prefix_cmds -e 1d";
10455	fi~
10456	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10457	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10458	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10459	emximp -o $lib $output_objdir/$libname.def'
10460      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10461      enable_shared_with_static_runtimes=yes
10462      ;;
10463
10464    osf3*)
10465      if test yes = "$GCC"; then
10466	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10467	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'
10468      else
10469	allow_undefined_flag=' -expect_unresolved \*'
10470	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'
10471      fi
10472      archive_cmds_need_lc='no'
10473      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10474      hardcode_libdir_separator=:
10475      ;;
10476
10477    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10478      if test yes = "$GCC"; then
10479	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10480	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'
10481	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10482      else
10483	allow_undefined_flag=' -expect_unresolved \*'
10484	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'
10485	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~
10486          $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'
10487
10488	# Both c and cxx compiler support -rpath directly
10489	hardcode_libdir_flag_spec='-rpath $libdir'
10490      fi
10491      archive_cmds_need_lc='no'
10492      hardcode_libdir_separator=:
10493      ;;
10494
10495    solaris*)
10496      no_undefined_flag=' -z defs'
10497      if test yes = "$GCC"; then
10498	wlarc='$wl'
10499	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10500	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10501          $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'
10502      else
10503	case `$CC -V 2>&1` in
10504	*"Compilers 5.0"*)
10505	  wlarc=''
10506	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10507	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10508            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10509	  ;;
10510	*)
10511	  wlarc='$wl'
10512	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10513	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10514            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10515	  ;;
10516	esac
10517      fi
10518      hardcode_libdir_flag_spec='-R$libdir'
10519      hardcode_shlibpath_var=no
10520      case $host_os in
10521      solaris2.[0-5] | solaris2.[0-5].*) ;;
10522      *)
10523	# The compiler driver will combine and reorder linker options,
10524	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10525	# but is careful enough not to reorder.
10526	# Supported since Solaris 2.6 (maybe 2.5.1?)
10527	if test yes = "$GCC"; then
10528	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10529	else
10530	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10531	fi
10532	;;
10533      esac
10534      link_all_deplibs=yes
10535      ;;
10536
10537    sunos4*)
10538      if test sequent = "$host_vendor"; then
10539	# Use $CC to link under sequent, because it throws in some extra .o
10540	# files that make .init and .fini sections work.
10541	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10542      else
10543	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10544      fi
10545      hardcode_libdir_flag_spec='-L$libdir'
10546      hardcode_direct=yes
10547      hardcode_minus_L=yes
10548      hardcode_shlibpath_var=no
10549      ;;
10550
10551    sysv4)
10552      case $host_vendor in
10553	sni)
10554	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10555	  hardcode_direct=yes # is this really true???
10556	;;
10557	siemens)
10558	  ## LD is ld it makes a PLAMLIB
10559	  ## CC just makes a GrossModule.
10560	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10561	  reload_cmds='$CC -r -o $output$reload_objs'
10562	  hardcode_direct=no
10563        ;;
10564	motorola)
10565	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10566	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10567	;;
10568      esac
10569      runpath_var='LD_RUN_PATH'
10570      hardcode_shlibpath_var=no
10571      ;;
10572
10573    sysv4.3*)
10574      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10575      hardcode_shlibpath_var=no
10576      export_dynamic_flag_spec='-Bexport'
10577      ;;
10578
10579    sysv4*MP*)
10580      if test -d /usr/nec; then
10581	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10582	hardcode_shlibpath_var=no
10583	runpath_var=LD_RUN_PATH
10584	hardcode_runpath_var=yes
10585	ld_shlibs=yes
10586      fi
10587      ;;
10588
10589    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10590      no_undefined_flag='$wl-z,text'
10591      archive_cmds_need_lc=no
10592      hardcode_shlibpath_var=no
10593      runpath_var='LD_RUN_PATH'
10594
10595      if test yes = "$GCC"; then
10596	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10597	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10598      else
10599	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10600	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10601      fi
10602      ;;
10603
10604    sysv5* | sco3.2v5* | sco5v6*)
10605      # Note: We CANNOT use -z defs as we might desire, because we do not
10606      # link with -lc, and that would cause any symbols used from libc to
10607      # always be unresolved, which means just about no library would
10608      # ever link correctly.  If we're not using GNU ld we use -z text
10609      # though, which does catch some bad symbols but isn't as heavy-handed
10610      # as -z defs.
10611      no_undefined_flag='$wl-z,text'
10612      allow_undefined_flag='$wl-z,nodefs'
10613      archive_cmds_need_lc=no
10614      hardcode_shlibpath_var=no
10615      hardcode_libdir_flag_spec='$wl-R,$libdir'
10616      hardcode_libdir_separator=':'
10617      link_all_deplibs=yes
10618      export_dynamic_flag_spec='$wl-Bexport'
10619      runpath_var='LD_RUN_PATH'
10620
10621      if test yes = "$GCC"; then
10622	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10623	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10624      else
10625	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10626	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10627      fi
10628      ;;
10629
10630    uts4*)
10631      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10632      hardcode_libdir_flag_spec='-L$libdir'
10633      hardcode_shlibpath_var=no
10634      ;;
10635
10636    *)
10637      ld_shlibs=no
10638      ;;
10639    esac
10640
10641    if test sni = "$host_vendor"; then
10642      case $host in
10643      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10644	export_dynamic_flag_spec='$wl-Blargedynsym'
10645	;;
10646      esac
10647    fi
10648  fi
10649
10650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10651printf "%s\n" "$ld_shlibs" >&6; }
10652test no = "$ld_shlibs" && can_build_shared=no
10653
10654with_gnu_ld=$with_gnu_ld
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670#
10671# Do we need to explicitly link libc?
10672#
10673case "x$archive_cmds_need_lc" in
10674x|xyes)
10675  # Assume -lc should be added
10676  archive_cmds_need_lc=yes
10677
10678  if test yes,yes = "$GCC,$enable_shared"; then
10679    case $archive_cmds in
10680    *'~'*)
10681      # FIXME: we may have to deal with multi-command sequences.
10682      ;;
10683    '$CC '*)
10684      # Test whether the compiler implicitly links with -lc since on some
10685      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10686      # to ld, don't add -lc before -lgcc.
10687      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10688printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10689if test ${lt_cv_archive_cmds_need_lc+y}
10690then :
10691  printf %s "(cached) " >&6
10692else $as_nop
10693  $RM conftest*
10694	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10695
10696	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10697  (eval $ac_compile) 2>&5
10698  ac_status=$?
10699  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10700  test $ac_status = 0; } 2>conftest.err; then
10701	  soname=conftest
10702	  lib=conftest
10703	  libobjs=conftest.$ac_objext
10704	  deplibs=
10705	  wl=$lt_prog_compiler_wl
10706	  pic_flag=$lt_prog_compiler_pic
10707	  compiler_flags=-v
10708	  linker_flags=-v
10709	  verstring=
10710	  output_objdir=.
10711	  libname=conftest
10712	  lt_save_allow_undefined_flag=$allow_undefined_flag
10713	  allow_undefined_flag=
10714	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10715  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10716  ac_status=$?
10717  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10718  test $ac_status = 0; }
10719	  then
10720	    lt_cv_archive_cmds_need_lc=no
10721	  else
10722	    lt_cv_archive_cmds_need_lc=yes
10723	  fi
10724	  allow_undefined_flag=$lt_save_allow_undefined_flag
10725	else
10726	  cat conftest.err 1>&5
10727	fi
10728	$RM conftest*
10729
10730fi
10731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10732printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10733      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10734      ;;
10735    esac
10736  fi
10737  ;;
10738esac
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10892printf %s "checking dynamic linker characteristics... " >&6; }
10893
10894if test yes = "$GCC"; then
10895  case $host_os in
10896    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10897    *) lt_awk_arg='/^libraries:/' ;;
10898  esac
10899  case $host_os in
10900    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10901    *) lt_sed_strip_eq='s|=/|/|g' ;;
10902  esac
10903  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10904  case $lt_search_path_spec in
10905  *\;*)
10906    # if the path contains ";" then we assume it to be the separator
10907    # otherwise default to the standard path separator (i.e. ":") - it is
10908    # assumed that no part of a normal pathname contains ";" but that should
10909    # okay in the real world where ";" in dirpaths is itself problematic.
10910    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10911    ;;
10912  *)
10913    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10914    ;;
10915  esac
10916  # Ok, now we have the path, separated by spaces, we can step through it
10917  # and add multilib dir if necessary...
10918  lt_tmp_lt_search_path_spec=
10919  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10920  # ...but if some path component already ends with the multilib dir we assume
10921  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10922  case "$lt_multi_os_dir; $lt_search_path_spec " in
10923  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10924    lt_multi_os_dir=
10925    ;;
10926  esac
10927  for lt_sys_path in $lt_search_path_spec; do
10928    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10929      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10930    elif test -n "$lt_multi_os_dir"; then
10931      test -d "$lt_sys_path" && \
10932	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10933    fi
10934  done
10935  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10936BEGIN {RS = " "; FS = "/|\n";} {
10937  lt_foo = "";
10938  lt_count = 0;
10939  for (lt_i = NF; lt_i > 0; lt_i--) {
10940    if ($lt_i != "" && $lt_i != ".") {
10941      if ($lt_i == "..") {
10942        lt_count++;
10943      } else {
10944        if (lt_count == 0) {
10945          lt_foo = "/" $lt_i lt_foo;
10946        } else {
10947          lt_count--;
10948        }
10949      }
10950    }
10951  }
10952  if (lt_foo != "") { lt_freq[lt_foo]++; }
10953  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10954}'`
10955  # AWK program above erroneously prepends '/' to C:/dos/paths
10956  # for these hosts.
10957  case $host_os in
10958    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10959      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10960  esac
10961  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10962else
10963  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10964fi
10965library_names_spec=
10966libname_spec='lib$name'
10967soname_spec=
10968shrext_cmds=.so
10969postinstall_cmds=
10970postuninstall_cmds=
10971finish_cmds=
10972finish_eval=
10973shlibpath_var=
10974shlibpath_overrides_runpath=unknown
10975version_type=none
10976dynamic_linker="$host_os ld.so"
10977sys_lib_dlsearch_path_spec="/lib /usr/lib"
10978need_lib_prefix=unknown
10979hardcode_into_libs=no
10980
10981# when you set need_version to no, make sure it does not cause -set_version
10982# flags to be left without arguments
10983need_version=unknown
10984
10985
10986
10987case $host_os in
10988aix3*)
10989  version_type=linux # correct to gnu/linux during the next big refactor
10990  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10991  shlibpath_var=LIBPATH
10992
10993  # AIX 3 has no versioning support, so we append a major version to the name.
10994  soname_spec='$libname$release$shared_ext$major'
10995  ;;
10996
10997aix[4-9]*)
10998  version_type=linux # correct to gnu/linux during the next big refactor
10999  need_lib_prefix=no
11000  need_version=no
11001  hardcode_into_libs=yes
11002  if test ia64 = "$host_cpu"; then
11003    # AIX 5 supports IA64
11004    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11005    shlibpath_var=LD_LIBRARY_PATH
11006  else
11007    # With GCC up to 2.95.x, collect2 would create an import file
11008    # for dependence libraries.  The import file would start with
11009    # the line '#! .'.  This would cause the generated library to
11010    # depend on '.', always an invalid library.  This was fixed in
11011    # development snapshots of GCC prior to 3.0.
11012    case $host_os in
11013      aix4 | aix4.[01] | aix4.[01].*)
11014      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11015	   echo ' yes '
11016	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11017	:
11018      else
11019	can_build_shared=no
11020      fi
11021      ;;
11022    esac
11023    # Using Import Files as archive members, it is possible to support
11024    # filename-based versioning of shared library archives on AIX. While
11025    # this would work for both with and without runtime linking, it will
11026    # prevent static linking of such archives. So we do filename-based
11027    # shared library versioning with .so extension only, which is used
11028    # when both runtime linking and shared linking is enabled.
11029    # Unfortunately, runtime linking may impact performance, so we do
11030    # not want this to be the default eventually. Also, we use the
11031    # versioned .so libs for executables only if there is the -brtl
11032    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11033    # To allow for filename-based versioning support, we need to create
11034    # libNAME.so.V as an archive file, containing:
11035    # *) an Import File, referring to the versioned filename of the
11036    #    archive as well as the shared archive member, telling the
11037    #    bitwidth (32 or 64) of that shared object, and providing the
11038    #    list of exported symbols of that shared object, eventually
11039    #    decorated with the 'weak' keyword
11040    # *) the shared object with the F_LOADONLY flag set, to really avoid
11041    #    it being seen by the linker.
11042    # At run time we better use the real file rather than another symlink,
11043    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11044
11045    case $with_aix_soname,$aix_use_runtimelinking in
11046    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11047    # soname into executable. Probably we can add versioning support to
11048    # collect2, so additional links can be useful in future.
11049    aix,yes) # traditional libtool
11050      dynamic_linker='AIX unversionable lib.so'
11051      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11052      # instead of lib<name>.a to let people know that these are not
11053      # typical AIX shared libraries.
11054      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11055      ;;
11056    aix,no) # traditional AIX only
11057      dynamic_linker='AIX lib.a(lib.so.V)'
11058      # We preserve .a as extension for shared libraries through AIX4.2
11059      # and later when we are not doing run time linking.
11060      library_names_spec='$libname$release.a $libname.a'
11061      soname_spec='$libname$release$shared_ext$major'
11062      ;;
11063    svr4,*) # full svr4 only
11064      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11065      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11066      # We do not specify a path in Import Files, so LIBPATH fires.
11067      shlibpath_overrides_runpath=yes
11068      ;;
11069    *,yes) # both, prefer svr4
11070      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11071      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11072      # unpreferred sharedlib libNAME.a needs extra handling
11073      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"'
11074      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"'
11075      # We do not specify a path in Import Files, so LIBPATH fires.
11076      shlibpath_overrides_runpath=yes
11077      ;;
11078    *,no) # both, prefer aix
11079      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11080      library_names_spec='$libname$release.a $libname.a'
11081      soname_spec='$libname$release$shared_ext$major'
11082      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11083      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)'
11084      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"'
11085      ;;
11086    esac
11087    shlibpath_var=LIBPATH
11088  fi
11089  ;;
11090
11091amigaos*)
11092  case $host_cpu in
11093  powerpc)
11094    # Since July 2007 AmigaOS4 officially supports .so libraries.
11095    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11096    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11097    ;;
11098  m68k)
11099    library_names_spec='$libname.ixlibrary $libname.a'
11100    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11101    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'
11102    ;;
11103  esac
11104  ;;
11105
11106beos*)
11107  library_names_spec='$libname$shared_ext'
11108  dynamic_linker="$host_os ld.so"
11109  shlibpath_var=LIBRARY_PATH
11110  ;;
11111
11112bsdi[45]*)
11113  version_type=linux # correct to gnu/linux during the next big refactor
11114  need_version=no
11115  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11116  soname_spec='$libname$release$shared_ext$major'
11117  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11118  shlibpath_var=LD_LIBRARY_PATH
11119  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11120  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11121  # the default ld.so.conf also contains /usr/contrib/lib and
11122  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11123  # libtool to hard-code these into programs
11124  ;;
11125
11126cygwin* | mingw* | pw32* | cegcc*)
11127  version_type=windows
11128  shrext_cmds=.dll
11129  need_version=no
11130  need_lib_prefix=no
11131
11132  case $GCC,$cc_basename in
11133  yes,*)
11134    # gcc
11135    library_names_spec='$libname.dll.a'
11136    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11137    postinstall_cmds='base_file=`basename \$file`~
11138      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11139      dldir=$destdir/`dirname \$dlpath`~
11140      test -d \$dldir || mkdir -p \$dldir~
11141      $install_prog $dir/$dlname \$dldir/$dlname~
11142      chmod a+x \$dldir/$dlname~
11143      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11144        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11145      fi'
11146    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11147      dlpath=$dir/\$dldll~
11148       $RM \$dlpath'
11149    shlibpath_overrides_runpath=yes
11150
11151    case $host_os in
11152    cygwin*)
11153      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11154      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11155
11156      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11157      ;;
11158    mingw* | cegcc*)
11159      # MinGW DLLs use traditional 'lib' prefix
11160      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11161      ;;
11162    pw32*)
11163      # pw32 DLLs use 'pw' prefix rather than 'lib'
11164      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11165      ;;
11166    esac
11167    dynamic_linker='Win32 ld.exe'
11168    ;;
11169
11170  *,cl*)
11171    # Native MSVC
11172    libname_spec='$name'
11173    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11174    library_names_spec='$libname.dll.lib'
11175
11176    case $build_os in
11177    mingw*)
11178      sys_lib_search_path_spec=
11179      lt_save_ifs=$IFS
11180      IFS=';'
11181      for lt_path in $LIB
11182      do
11183        IFS=$lt_save_ifs
11184        # Let DOS variable expansion print the short 8.3 style file name.
11185        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11186        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11187      done
11188      IFS=$lt_save_ifs
11189      # Convert to MSYS style.
11190      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11191      ;;
11192    cygwin*)
11193      # Convert to unix form, then to dos form, then back to unix form
11194      # but this time dos style (no spaces!) so that the unix form looks
11195      # like /cygdrive/c/PROGRA~1:/cygdr...
11196      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11197      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11198      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11199      ;;
11200    *)
11201      sys_lib_search_path_spec=$LIB
11202      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11203        # It is most probably a Windows format PATH.
11204        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11205      else
11206        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11207      fi
11208      # FIXME: find the short name or the path components, as spaces are
11209      # common. (e.g. "Program Files" -> "PROGRA~1")
11210      ;;
11211    esac
11212
11213    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11214    postinstall_cmds='base_file=`basename \$file`~
11215      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11216      dldir=$destdir/`dirname \$dlpath`~
11217      test -d \$dldir || mkdir -p \$dldir~
11218      $install_prog $dir/$dlname \$dldir/$dlname'
11219    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11220      dlpath=$dir/\$dldll~
11221       $RM \$dlpath'
11222    shlibpath_overrides_runpath=yes
11223    dynamic_linker='Win32 link.exe'
11224    ;;
11225
11226  *)
11227    # Assume MSVC wrapper
11228    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11229    dynamic_linker='Win32 ld.exe'
11230    ;;
11231  esac
11232  # FIXME: first we should search . and the directory the executable is in
11233  shlibpath_var=PATH
11234  ;;
11235
11236darwin* | rhapsody*)
11237  dynamic_linker="$host_os dyld"
11238  version_type=darwin
11239  need_lib_prefix=no
11240  need_version=no
11241  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11242  soname_spec='$libname$release$major$shared_ext'
11243  shlibpath_overrides_runpath=yes
11244  shlibpath_var=DYLD_LIBRARY_PATH
11245  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11246
11247  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11248  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11249  ;;
11250
11251dgux*)
11252  version_type=linux # correct to gnu/linux during the next big refactor
11253  need_lib_prefix=no
11254  need_version=no
11255  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11256  soname_spec='$libname$release$shared_ext$major'
11257  shlibpath_var=LD_LIBRARY_PATH
11258  ;;
11259
11260freebsd* | dragonfly*)
11261  # DragonFly does not have aout.  When/if they implement a new
11262  # versioning mechanism, adjust this.
11263  if test -x /usr/bin/objformat; then
11264    objformat=`/usr/bin/objformat`
11265  else
11266    case $host_os in
11267    freebsd[23].*) objformat=aout ;;
11268    *) objformat=elf ;;
11269    esac
11270  fi
11271  version_type=freebsd-$objformat
11272  case $version_type in
11273    freebsd-elf*)
11274      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11275      soname_spec='$libname$release$shared_ext$major'
11276      need_version=no
11277      need_lib_prefix=no
11278      ;;
11279    freebsd-*)
11280      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11281      need_version=yes
11282      ;;
11283  esac
11284  shlibpath_var=LD_LIBRARY_PATH
11285  case $host_os in
11286  freebsd2.*)
11287    shlibpath_overrides_runpath=yes
11288    ;;
11289  freebsd3.[01]* | freebsdelf3.[01]*)
11290    shlibpath_overrides_runpath=yes
11291    hardcode_into_libs=yes
11292    ;;
11293  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11294  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11295    shlibpath_overrides_runpath=no
11296    hardcode_into_libs=yes
11297    ;;
11298  *) # from 4.6 on, and DragonFly
11299    shlibpath_overrides_runpath=yes
11300    hardcode_into_libs=yes
11301    ;;
11302  esac
11303  ;;
11304
11305haiku*)
11306  version_type=linux # correct to gnu/linux during the next big refactor
11307  need_lib_prefix=no
11308  need_version=no
11309  dynamic_linker="$host_os runtime_loader"
11310  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11311  soname_spec='$libname$release$shared_ext$major'
11312  shlibpath_var=LIBRARY_PATH
11313  shlibpath_overrides_runpath=no
11314  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11315  hardcode_into_libs=yes
11316  ;;
11317
11318hpux9* | hpux10* | hpux11*)
11319  # Give a soname corresponding to the major version so that dld.sl refuses to
11320  # link against other versions.
11321  version_type=sunos
11322  need_lib_prefix=no
11323  need_version=no
11324  case $host_cpu in
11325  ia64*)
11326    shrext_cmds='.so'
11327    hardcode_into_libs=yes
11328    dynamic_linker="$host_os dld.so"
11329    shlibpath_var=LD_LIBRARY_PATH
11330    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11331    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11332    soname_spec='$libname$release$shared_ext$major'
11333    if test 32 = "$HPUX_IA64_MODE"; then
11334      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11335      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11336    else
11337      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11338      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11339    fi
11340    ;;
11341  hppa*64*)
11342    shrext_cmds='.sl'
11343    hardcode_into_libs=yes
11344    dynamic_linker="$host_os dld.sl"
11345    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11346    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11347    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11348    soname_spec='$libname$release$shared_ext$major'
11349    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11350    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11351    ;;
11352  *)
11353    shrext_cmds='.sl'
11354    dynamic_linker="$host_os dld.sl"
11355    shlibpath_var=SHLIB_PATH
11356    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11357    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11358    soname_spec='$libname$release$shared_ext$major'
11359    ;;
11360  esac
11361  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11362  postinstall_cmds='chmod 555 $lib'
11363  # or fails outright, so override atomically:
11364  install_override_mode=555
11365  ;;
11366
11367interix[3-9]*)
11368  version_type=linux # correct to gnu/linux during the next big refactor
11369  need_lib_prefix=no
11370  need_version=no
11371  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11372  soname_spec='$libname$release$shared_ext$major'
11373  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11374  shlibpath_var=LD_LIBRARY_PATH
11375  shlibpath_overrides_runpath=no
11376  hardcode_into_libs=yes
11377  ;;
11378
11379irix5* | irix6* | nonstopux*)
11380  case $host_os in
11381    nonstopux*) version_type=nonstopux ;;
11382    *)
11383	if test yes = "$lt_cv_prog_gnu_ld"; then
11384		version_type=linux # correct to gnu/linux during the next big refactor
11385	else
11386		version_type=irix
11387	fi ;;
11388  esac
11389  need_lib_prefix=no
11390  need_version=no
11391  soname_spec='$libname$release$shared_ext$major'
11392  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11393  case $host_os in
11394  irix5* | nonstopux*)
11395    libsuff= shlibsuff=
11396    ;;
11397  *)
11398    case $LD in # libtool.m4 will add one of these switches to LD
11399    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11400      libsuff= shlibsuff= libmagic=32-bit;;
11401    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11402      libsuff=32 shlibsuff=N32 libmagic=N32;;
11403    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11404      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11405    *) libsuff= shlibsuff= libmagic=never-match;;
11406    esac
11407    ;;
11408  esac
11409  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11410  shlibpath_overrides_runpath=no
11411  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11412  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11413  hardcode_into_libs=yes
11414  ;;
11415
11416# No shared lib support for Linux oldld, aout, or coff.
11417linux*oldld* | linux*aout* | linux*coff*)
11418  dynamic_linker=no
11419  ;;
11420
11421linux*android*)
11422  version_type=none # Android doesn't support versioned libraries.
11423  need_lib_prefix=no
11424  need_version=no
11425  library_names_spec='$libname$release$shared_ext'
11426  soname_spec='$libname$release$shared_ext'
11427  finish_cmds=
11428  shlibpath_var=LD_LIBRARY_PATH
11429  shlibpath_overrides_runpath=yes
11430
11431  # This implies no fast_install, which is unacceptable.
11432  # Some rework will be needed to allow for fast_install
11433  # before this can be enabled.
11434  hardcode_into_libs=yes
11435
11436  dynamic_linker='Android linker'
11437  # Don't embed -rpath directories since the linker doesn't support them.
11438  hardcode_libdir_flag_spec='-L$libdir'
11439  ;;
11440
11441# This must be glibc/ELF.
11442linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11443  version_type=linux # correct to gnu/linux during the next big refactor
11444  need_lib_prefix=no
11445  need_version=no
11446  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11447  soname_spec='$libname$release$shared_ext$major'
11448  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11449  shlibpath_var=LD_LIBRARY_PATH
11450  shlibpath_overrides_runpath=no
11451
11452  # Some binutils ld are patched to set DT_RUNPATH
11453  if test ${lt_cv_shlibpath_overrides_runpath+y}
11454then :
11455  printf %s "(cached) " >&6
11456else $as_nop
11457  lt_cv_shlibpath_overrides_runpath=no
11458    save_LDFLAGS=$LDFLAGS
11459    save_libdir=$libdir
11460    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11461	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11462    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11463/* end confdefs.h.  */
11464
11465int
11466main (void)
11467{
11468
11469  ;
11470  return 0;
11471}
11472_ACEOF
11473if ac_fn_c_try_link "$LINENO"
11474then :
11475  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11476then :
11477  lt_cv_shlibpath_overrides_runpath=yes
11478fi
11479fi
11480rm -f core conftest.err conftest.$ac_objext conftest.beam \
11481    conftest$ac_exeext conftest.$ac_ext
11482    LDFLAGS=$save_LDFLAGS
11483    libdir=$save_libdir
11484
11485fi
11486
11487  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11488
11489  # This implies no fast_install, which is unacceptable.
11490  # Some rework will be needed to allow for fast_install
11491  # before this can be enabled.
11492  hardcode_into_libs=yes
11493
11494  # Ideally, we could use ldconfig to report *all* directores which are
11495  # searched for libraries, however this is still not possible.  Aside from not
11496  # being certain /sbin/ldconfig is available, command
11497  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11498  # even though it is searched at run-time.  Try to do the best guess by
11499  # appending ld.so.conf contents (and includes) to the search path.
11500  if test -f /etc/ld.so.conf; then
11501    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' ' '`
11502    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11503  fi
11504
11505  # We used to test for /lib/ld.so.1 and disable shared libraries on
11506  # powerpc, because MkLinux only supported shared libraries with the
11507  # GNU dynamic linker.  Since this was broken with cross compilers,
11508  # most powerpc-linux boxes support dynamic linking these days and
11509  # people can always --disable-shared, the test was removed, and we
11510  # assume the GNU/Linux dynamic linker is in use.
11511  dynamic_linker='GNU/Linux ld.so'
11512  ;;
11513
11514netbsd*)
11515  version_type=sunos
11516  need_lib_prefix=no
11517  need_version=no
11518  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11519    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11520    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11521    dynamic_linker='NetBSD (a.out) ld.so'
11522  else
11523    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11524    soname_spec='$libname$release$shared_ext$major'
11525    dynamic_linker='NetBSD ld.elf_so'
11526  fi
11527  shlibpath_var=LD_LIBRARY_PATH
11528  shlibpath_overrides_runpath=yes
11529  hardcode_into_libs=yes
11530  ;;
11531
11532newsos6)
11533  version_type=linux # correct to gnu/linux during the next big refactor
11534  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11535  shlibpath_var=LD_LIBRARY_PATH
11536  shlibpath_overrides_runpath=yes
11537  ;;
11538
11539*nto* | *qnx*)
11540  version_type=qnx
11541  need_lib_prefix=no
11542  need_version=no
11543  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11544  soname_spec='$libname$release$shared_ext$major'
11545  shlibpath_var=LD_LIBRARY_PATH
11546  shlibpath_overrides_runpath=no
11547  hardcode_into_libs=yes
11548  dynamic_linker='ldqnx.so'
11549  ;;
11550
11551openbsd* | bitrig*)
11552  version_type=sunos
11553  sys_lib_dlsearch_path_spec=/usr/lib
11554  need_lib_prefix=no
11555  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11556    need_version=no
11557  else
11558    need_version=yes
11559  fi
11560  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11561  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11562  shlibpath_var=LD_LIBRARY_PATH
11563  shlibpath_overrides_runpath=yes
11564  ;;
11565
11566os2*)
11567  libname_spec='$name'
11568  version_type=windows
11569  shrext_cmds=.dll
11570  need_version=no
11571  need_lib_prefix=no
11572  # OS/2 can only load a DLL with a base name of 8 characters or less.
11573  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11574    v=$($ECHO $release$versuffix | tr -d .-);
11575    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11576    $ECHO $n$v`$shared_ext'
11577  library_names_spec='${libname}_dll.$libext'
11578  dynamic_linker='OS/2 ld.exe'
11579  shlibpath_var=BEGINLIBPATH
11580  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11581  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11582  postinstall_cmds='base_file=`basename \$file`~
11583    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11584    dldir=$destdir/`dirname \$dlpath`~
11585    test -d \$dldir || mkdir -p \$dldir~
11586    $install_prog $dir/$dlname \$dldir/$dlname~
11587    chmod a+x \$dldir/$dlname~
11588    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11589      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11590    fi'
11591  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11592    dlpath=$dir/\$dldll~
11593    $RM \$dlpath'
11594  ;;
11595
11596osf3* | osf4* | osf5*)
11597  version_type=osf
11598  need_lib_prefix=no
11599  need_version=no
11600  soname_spec='$libname$release$shared_ext$major'
11601  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11602  shlibpath_var=LD_LIBRARY_PATH
11603  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11604  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11605  ;;
11606
11607rdos*)
11608  dynamic_linker=no
11609  ;;
11610
11611solaris*)
11612  version_type=linux # correct to gnu/linux during the next big refactor
11613  need_lib_prefix=no
11614  need_version=no
11615  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11616  soname_spec='$libname$release$shared_ext$major'
11617  shlibpath_var=LD_LIBRARY_PATH
11618  shlibpath_overrides_runpath=yes
11619  hardcode_into_libs=yes
11620  # ldd complains unless libraries are executable
11621  postinstall_cmds='chmod +x $lib'
11622  ;;
11623
11624sunos4*)
11625  version_type=sunos
11626  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11627  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11628  shlibpath_var=LD_LIBRARY_PATH
11629  shlibpath_overrides_runpath=yes
11630  if test yes = "$with_gnu_ld"; then
11631    need_lib_prefix=no
11632  fi
11633  need_version=yes
11634  ;;
11635
11636sysv4 | sysv4.3*)
11637  version_type=linux # correct to gnu/linux during the next big refactor
11638  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11639  soname_spec='$libname$release$shared_ext$major'
11640  shlibpath_var=LD_LIBRARY_PATH
11641  case $host_vendor in
11642    sni)
11643      shlibpath_overrides_runpath=no
11644      need_lib_prefix=no
11645      runpath_var=LD_RUN_PATH
11646      ;;
11647    siemens)
11648      need_lib_prefix=no
11649      ;;
11650    motorola)
11651      need_lib_prefix=no
11652      need_version=no
11653      shlibpath_overrides_runpath=no
11654      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11655      ;;
11656  esac
11657  ;;
11658
11659sysv4*MP*)
11660  if test -d /usr/nec; then
11661    version_type=linux # correct to gnu/linux during the next big refactor
11662    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11663    soname_spec='$libname$shared_ext.$major'
11664    shlibpath_var=LD_LIBRARY_PATH
11665  fi
11666  ;;
11667
11668sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11669  version_type=sco
11670  need_lib_prefix=no
11671  need_version=no
11672  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11673  soname_spec='$libname$release$shared_ext$major'
11674  shlibpath_var=LD_LIBRARY_PATH
11675  shlibpath_overrides_runpath=yes
11676  hardcode_into_libs=yes
11677  if test yes = "$with_gnu_ld"; then
11678    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11679  else
11680    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11681    case $host_os in
11682      sco3.2v5*)
11683        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11684	;;
11685    esac
11686  fi
11687  sys_lib_dlsearch_path_spec='/usr/lib'
11688  ;;
11689
11690tpf*)
11691  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11692  version_type=linux # correct to gnu/linux during the next big refactor
11693  need_lib_prefix=no
11694  need_version=no
11695  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11696  shlibpath_var=LD_LIBRARY_PATH
11697  shlibpath_overrides_runpath=no
11698  hardcode_into_libs=yes
11699  ;;
11700
11701uts4*)
11702  version_type=linux # correct to gnu/linux during the next big refactor
11703  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11704  soname_spec='$libname$release$shared_ext$major'
11705  shlibpath_var=LD_LIBRARY_PATH
11706  ;;
11707
11708*)
11709  dynamic_linker=no
11710  ;;
11711esac
11712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11713printf "%s\n" "$dynamic_linker" >&6; }
11714test no = "$dynamic_linker" && can_build_shared=no
11715
11716variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11717if test yes = "$GCC"; then
11718  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11719fi
11720
11721if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11722  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11723fi
11724
11725if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11726  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11727fi
11728
11729# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11730configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11731
11732# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11733func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11734
11735# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11736configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11835printf %s "checking how to hardcode library paths into programs... " >&6; }
11836hardcode_action=
11837if test -n "$hardcode_libdir_flag_spec" ||
11838   test -n "$runpath_var" ||
11839   test yes = "$hardcode_automatic"; then
11840
11841  # We can hardcode non-existent directories.
11842  if test no != "$hardcode_direct" &&
11843     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11844     # have to relink, otherwise we might link with an installed library
11845     # when we should be linking with a yet-to-be-installed one
11846     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11847     test no != "$hardcode_minus_L"; then
11848    # Linking always hardcodes the temporary library directory.
11849    hardcode_action=relink
11850  else
11851    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11852    hardcode_action=immediate
11853  fi
11854else
11855  # We cannot hardcode anything, or else we can only hardcode existing
11856  # directories.
11857  hardcode_action=unsupported
11858fi
11859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11860printf "%s\n" "$hardcode_action" >&6; }
11861
11862if test relink = "$hardcode_action" ||
11863   test yes = "$inherit_rpath"; then
11864  # Fast installation is not supported
11865  enable_fast_install=no
11866elif test yes = "$shlibpath_overrides_runpath" ||
11867     test no = "$enable_shared"; then
11868  # Fast installation is not necessary
11869  enable_fast_install=needless
11870fi
11871
11872
11873
11874
11875
11876
11877  if test yes != "$enable_dlopen"; then
11878  enable_dlopen=unknown
11879  enable_dlopen_self=unknown
11880  enable_dlopen_self_static=unknown
11881else
11882  lt_cv_dlopen=no
11883  lt_cv_dlopen_libs=
11884
11885  case $host_os in
11886  beos*)
11887    lt_cv_dlopen=load_add_on
11888    lt_cv_dlopen_libs=
11889    lt_cv_dlopen_self=yes
11890    ;;
11891
11892  mingw* | pw32* | cegcc*)
11893    lt_cv_dlopen=LoadLibrary
11894    lt_cv_dlopen_libs=
11895    ;;
11896
11897  cygwin*)
11898    lt_cv_dlopen=dlopen
11899    lt_cv_dlopen_libs=
11900    ;;
11901
11902  darwin*)
11903    # if libdl is installed we need to link against it
11904    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11905printf %s "checking for dlopen in -ldl... " >&6; }
11906if test ${ac_cv_lib_dl_dlopen+y}
11907then :
11908  printf %s "(cached) " >&6
11909else $as_nop
11910  ac_check_lib_save_LIBS=$LIBS
11911LIBS="-ldl  $LIBS"
11912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11913/* end confdefs.h.  */
11914
11915/* Override any GCC internal prototype to avoid an error.
11916   Use char because int might match the return type of a GCC
11917   builtin and then its argument prototype would still apply.  */
11918char dlopen ();
11919int
11920main (void)
11921{
11922return dlopen ();
11923  ;
11924  return 0;
11925}
11926_ACEOF
11927if ac_fn_c_try_link "$LINENO"
11928then :
11929  ac_cv_lib_dl_dlopen=yes
11930else $as_nop
11931  ac_cv_lib_dl_dlopen=no
11932fi
11933rm -f core conftest.err conftest.$ac_objext conftest.beam \
11934    conftest$ac_exeext conftest.$ac_ext
11935LIBS=$ac_check_lib_save_LIBS
11936fi
11937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11938printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
11939if test "x$ac_cv_lib_dl_dlopen" = xyes
11940then :
11941  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11942else $as_nop
11943
11944    lt_cv_dlopen=dyld
11945    lt_cv_dlopen_libs=
11946    lt_cv_dlopen_self=yes
11947
11948fi
11949
11950    ;;
11951
11952  tpf*)
11953    # Don't try to run any link tests for TPF.  We know it's impossible
11954    # because TPF is a cross-compiler, and we know how we open DSOs.
11955    lt_cv_dlopen=dlopen
11956    lt_cv_dlopen_libs=
11957    lt_cv_dlopen_self=no
11958    ;;
11959
11960  *)
11961    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11962if test "x$ac_cv_func_shl_load" = xyes
11963then :
11964  lt_cv_dlopen=shl_load
11965else $as_nop
11966  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11967printf %s "checking for shl_load in -ldld... " >&6; }
11968if test ${ac_cv_lib_dld_shl_load+y}
11969then :
11970  printf %s "(cached) " >&6
11971else $as_nop
11972  ac_check_lib_save_LIBS=$LIBS
11973LIBS="-ldld  $LIBS"
11974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11975/* end confdefs.h.  */
11976
11977/* Override any GCC internal prototype to avoid an error.
11978   Use char because int might match the return type of a GCC
11979   builtin and then its argument prototype would still apply.  */
11980char shl_load ();
11981int
11982main (void)
11983{
11984return shl_load ();
11985  ;
11986  return 0;
11987}
11988_ACEOF
11989if ac_fn_c_try_link "$LINENO"
11990then :
11991  ac_cv_lib_dld_shl_load=yes
11992else $as_nop
11993  ac_cv_lib_dld_shl_load=no
11994fi
11995rm -f core conftest.err conftest.$ac_objext conftest.beam \
11996    conftest$ac_exeext conftest.$ac_ext
11997LIBS=$ac_check_lib_save_LIBS
11998fi
11999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12000printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12001if test "x$ac_cv_lib_dld_shl_load" = xyes
12002then :
12003  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12004else $as_nop
12005  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12006if test "x$ac_cv_func_dlopen" = xyes
12007then :
12008  lt_cv_dlopen=dlopen
12009else $as_nop
12010  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12011printf %s "checking for dlopen in -ldl... " >&6; }
12012if test ${ac_cv_lib_dl_dlopen+y}
12013then :
12014  printf %s "(cached) " >&6
12015else $as_nop
12016  ac_check_lib_save_LIBS=$LIBS
12017LIBS="-ldl  $LIBS"
12018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019/* end confdefs.h.  */
12020
12021/* Override any GCC internal prototype to avoid an error.
12022   Use char because int might match the return type of a GCC
12023   builtin and then its argument prototype would still apply.  */
12024char dlopen ();
12025int
12026main (void)
12027{
12028return dlopen ();
12029  ;
12030  return 0;
12031}
12032_ACEOF
12033if ac_fn_c_try_link "$LINENO"
12034then :
12035  ac_cv_lib_dl_dlopen=yes
12036else $as_nop
12037  ac_cv_lib_dl_dlopen=no
12038fi
12039rm -f core conftest.err conftest.$ac_objext conftest.beam \
12040    conftest$ac_exeext conftest.$ac_ext
12041LIBS=$ac_check_lib_save_LIBS
12042fi
12043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12044printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12045if test "x$ac_cv_lib_dl_dlopen" = xyes
12046then :
12047  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12048else $as_nop
12049  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12050printf %s "checking for dlopen in -lsvld... " >&6; }
12051if test ${ac_cv_lib_svld_dlopen+y}
12052then :
12053  printf %s "(cached) " >&6
12054else $as_nop
12055  ac_check_lib_save_LIBS=$LIBS
12056LIBS="-lsvld  $LIBS"
12057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058/* end confdefs.h.  */
12059
12060/* Override any GCC internal prototype to avoid an error.
12061   Use char because int might match the return type of a GCC
12062   builtin and then its argument prototype would still apply.  */
12063char dlopen ();
12064int
12065main (void)
12066{
12067return dlopen ();
12068  ;
12069  return 0;
12070}
12071_ACEOF
12072if ac_fn_c_try_link "$LINENO"
12073then :
12074  ac_cv_lib_svld_dlopen=yes
12075else $as_nop
12076  ac_cv_lib_svld_dlopen=no
12077fi
12078rm -f core conftest.err conftest.$ac_objext conftest.beam \
12079    conftest$ac_exeext conftest.$ac_ext
12080LIBS=$ac_check_lib_save_LIBS
12081fi
12082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12083printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12084if test "x$ac_cv_lib_svld_dlopen" = xyes
12085then :
12086  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12087else $as_nop
12088  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12089printf %s "checking for dld_link in -ldld... " >&6; }
12090if test ${ac_cv_lib_dld_dld_link+y}
12091then :
12092  printf %s "(cached) " >&6
12093else $as_nop
12094  ac_check_lib_save_LIBS=$LIBS
12095LIBS="-ldld  $LIBS"
12096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12097/* end confdefs.h.  */
12098
12099/* Override any GCC internal prototype to avoid an error.
12100   Use char because int might match the return type of a GCC
12101   builtin and then its argument prototype would still apply.  */
12102char dld_link ();
12103int
12104main (void)
12105{
12106return dld_link ();
12107  ;
12108  return 0;
12109}
12110_ACEOF
12111if ac_fn_c_try_link "$LINENO"
12112then :
12113  ac_cv_lib_dld_dld_link=yes
12114else $as_nop
12115  ac_cv_lib_dld_dld_link=no
12116fi
12117rm -f core conftest.err conftest.$ac_objext conftest.beam \
12118    conftest$ac_exeext conftest.$ac_ext
12119LIBS=$ac_check_lib_save_LIBS
12120fi
12121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12122printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12123if test "x$ac_cv_lib_dld_dld_link" = xyes
12124then :
12125  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12126fi
12127
12128
12129fi
12130
12131
12132fi
12133
12134
12135fi
12136
12137
12138fi
12139
12140
12141fi
12142
12143    ;;
12144  esac
12145
12146  if test no = "$lt_cv_dlopen"; then
12147    enable_dlopen=no
12148  else
12149    enable_dlopen=yes
12150  fi
12151
12152  case $lt_cv_dlopen in
12153  dlopen)
12154    save_CPPFLAGS=$CPPFLAGS
12155    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12156
12157    save_LDFLAGS=$LDFLAGS
12158    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12159
12160    save_LIBS=$LIBS
12161    LIBS="$lt_cv_dlopen_libs $LIBS"
12162
12163    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12164printf %s "checking whether a program can dlopen itself... " >&6; }
12165if test ${lt_cv_dlopen_self+y}
12166then :
12167  printf %s "(cached) " >&6
12168else $as_nop
12169  	  if test yes = "$cross_compiling"; then :
12170  lt_cv_dlopen_self=cross
12171else
12172  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12173  lt_status=$lt_dlunknown
12174  cat > conftest.$ac_ext <<_LT_EOF
12175#line $LINENO "configure"
12176#include "confdefs.h"
12177
12178#if HAVE_DLFCN_H
12179#include <dlfcn.h>
12180#endif
12181
12182#include <stdio.h>
12183
12184#ifdef RTLD_GLOBAL
12185#  define LT_DLGLOBAL		RTLD_GLOBAL
12186#else
12187#  ifdef DL_GLOBAL
12188#    define LT_DLGLOBAL		DL_GLOBAL
12189#  else
12190#    define LT_DLGLOBAL		0
12191#  endif
12192#endif
12193
12194/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12195   find out it does not work in some platform. */
12196#ifndef LT_DLLAZY_OR_NOW
12197#  ifdef RTLD_LAZY
12198#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12199#  else
12200#    ifdef DL_LAZY
12201#      define LT_DLLAZY_OR_NOW		DL_LAZY
12202#    else
12203#      ifdef RTLD_NOW
12204#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12205#      else
12206#        ifdef DL_NOW
12207#          define LT_DLLAZY_OR_NOW	DL_NOW
12208#        else
12209#          define LT_DLLAZY_OR_NOW	0
12210#        endif
12211#      endif
12212#    endif
12213#  endif
12214#endif
12215
12216/* When -fvisibility=hidden is used, assume the code has been annotated
12217   correspondingly for the symbols needed.  */
12218#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12219int fnord () __attribute__((visibility("default")));
12220#endif
12221
12222int fnord () { return 42; }
12223int main ()
12224{
12225  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12226  int status = $lt_dlunknown;
12227
12228  if (self)
12229    {
12230      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12231      else
12232        {
12233	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12234          else puts (dlerror ());
12235	}
12236      /* dlclose (self); */
12237    }
12238  else
12239    puts (dlerror ());
12240
12241  return status;
12242}
12243_LT_EOF
12244  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12245  (eval $ac_link) 2>&5
12246  ac_status=$?
12247  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12248  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12249    (./conftest; exit; ) >&5 2>/dev/null
12250    lt_status=$?
12251    case x$lt_status in
12252      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12253      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12254      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12255    esac
12256  else :
12257    # compilation failed
12258    lt_cv_dlopen_self=no
12259  fi
12260fi
12261rm -fr conftest*
12262
12263
12264fi
12265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12266printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12267
12268    if test yes = "$lt_cv_dlopen_self"; then
12269      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12270      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12271printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12272if test ${lt_cv_dlopen_self_static+y}
12273then :
12274  printf %s "(cached) " >&6
12275else $as_nop
12276  	  if test yes = "$cross_compiling"; then :
12277  lt_cv_dlopen_self_static=cross
12278else
12279  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12280  lt_status=$lt_dlunknown
12281  cat > conftest.$ac_ext <<_LT_EOF
12282#line $LINENO "configure"
12283#include "confdefs.h"
12284
12285#if HAVE_DLFCN_H
12286#include <dlfcn.h>
12287#endif
12288
12289#include <stdio.h>
12290
12291#ifdef RTLD_GLOBAL
12292#  define LT_DLGLOBAL		RTLD_GLOBAL
12293#else
12294#  ifdef DL_GLOBAL
12295#    define LT_DLGLOBAL		DL_GLOBAL
12296#  else
12297#    define LT_DLGLOBAL		0
12298#  endif
12299#endif
12300
12301/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12302   find out it does not work in some platform. */
12303#ifndef LT_DLLAZY_OR_NOW
12304#  ifdef RTLD_LAZY
12305#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12306#  else
12307#    ifdef DL_LAZY
12308#      define LT_DLLAZY_OR_NOW		DL_LAZY
12309#    else
12310#      ifdef RTLD_NOW
12311#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12312#      else
12313#        ifdef DL_NOW
12314#          define LT_DLLAZY_OR_NOW	DL_NOW
12315#        else
12316#          define LT_DLLAZY_OR_NOW	0
12317#        endif
12318#      endif
12319#    endif
12320#  endif
12321#endif
12322
12323/* When -fvisibility=hidden is used, assume the code has been annotated
12324   correspondingly for the symbols needed.  */
12325#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12326int fnord () __attribute__((visibility("default")));
12327#endif
12328
12329int fnord () { return 42; }
12330int main ()
12331{
12332  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12333  int status = $lt_dlunknown;
12334
12335  if (self)
12336    {
12337      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12338      else
12339        {
12340	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12341          else puts (dlerror ());
12342	}
12343      /* dlclose (self); */
12344    }
12345  else
12346    puts (dlerror ());
12347
12348  return status;
12349}
12350_LT_EOF
12351  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12352  (eval $ac_link) 2>&5
12353  ac_status=$?
12354  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12355  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12356    (./conftest; exit; ) >&5 2>/dev/null
12357    lt_status=$?
12358    case x$lt_status in
12359      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12360      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12361      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12362    esac
12363  else :
12364    # compilation failed
12365    lt_cv_dlopen_self_static=no
12366  fi
12367fi
12368rm -fr conftest*
12369
12370
12371fi
12372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12373printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12374    fi
12375
12376    CPPFLAGS=$save_CPPFLAGS
12377    LDFLAGS=$save_LDFLAGS
12378    LIBS=$save_LIBS
12379    ;;
12380  esac
12381
12382  case $lt_cv_dlopen_self in
12383  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12384  *) enable_dlopen_self=unknown ;;
12385  esac
12386
12387  case $lt_cv_dlopen_self_static in
12388  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12389  *) enable_dlopen_self_static=unknown ;;
12390  esac
12391fi
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409striplib=
12410old_striplib=
12411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12412printf %s "checking whether stripping libraries is possible... " >&6; }
12413if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12414  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12415  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12416  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12417printf "%s\n" "yes" >&6; }
12418else
12419# FIXME - insert some real tests, host_os isn't really good enough
12420  case $host_os in
12421  darwin*)
12422    if test -n "$STRIP"; then
12423      striplib="$STRIP -x"
12424      old_striplib="$STRIP -S"
12425      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12426printf "%s\n" "yes" >&6; }
12427    else
12428      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12429printf "%s\n" "no" >&6; }
12430    fi
12431    ;;
12432  *)
12433    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12434printf "%s\n" "no" >&6; }
12435    ;;
12436  esac
12437fi
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450  # Report what library types will actually be built
12451  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12452printf %s "checking if libtool supports shared libraries... " >&6; }
12453  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12454printf "%s\n" "$can_build_shared" >&6; }
12455
12456  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12457printf %s "checking whether to build shared libraries... " >&6; }
12458  test no = "$can_build_shared" && enable_shared=no
12459
12460  # On AIX, shared libraries and static libraries use the same namespace, and
12461  # are all built from PIC.
12462  case $host_os in
12463  aix3*)
12464    test yes = "$enable_shared" && enable_static=no
12465    if test -n "$RANLIB"; then
12466      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12467      postinstall_cmds='$RANLIB $lib'
12468    fi
12469    ;;
12470
12471  aix[4-9]*)
12472    if test ia64 != "$host_cpu"; then
12473      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12474      yes,aix,yes) ;;			# shared object as lib.so file only
12475      yes,svr4,*) ;;			# shared object as lib.so archive member only
12476      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12477      esac
12478    fi
12479    ;;
12480  esac
12481  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12482printf "%s\n" "$enable_shared" >&6; }
12483
12484  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12485printf %s "checking whether to build static libraries... " >&6; }
12486  # Make sure either enable_shared or enable_static is yes.
12487  test yes = "$enable_shared" || enable_static=yes
12488  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12489printf "%s\n" "$enable_static" >&6; }
12490
12491
12492
12493
12494fi
12495ac_ext=c
12496ac_cpp='$CPP $CPPFLAGS'
12497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12499ac_compiler_gnu=$ac_cv_c_compiler_gnu
12500
12501CC=$lt_save_CC
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517        ac_config_commands="$ac_config_commands libtool"
12518
12519
12520
12521
12522# Only expand once:
12523
12524
12525
12526# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12540printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12541if test ${ac_cv_c_undeclared_builtin_options+y}
12542then :
12543  printf %s "(cached) " >&6
12544else $as_nop
12545  ac_save_CFLAGS=$CFLAGS
12546   ac_cv_c_undeclared_builtin_options='cannot detect'
12547   for ac_arg in '' -fno-builtin; do
12548     CFLAGS="$ac_save_CFLAGS $ac_arg"
12549     # This test program should *not* compile successfully.
12550     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12551/* end confdefs.h.  */
12552
12553int
12554main (void)
12555{
12556(void) strchr;
12557  ;
12558  return 0;
12559}
12560_ACEOF
12561if ac_fn_c_try_compile "$LINENO"
12562then :
12563
12564else $as_nop
12565  # This test program should compile successfully.
12566        # No library function is consistently available on
12567        # freestanding implementations, so test against a dummy
12568        # declaration.  Include always-available headers on the
12569        # off chance that they somehow elicit warnings.
12570        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12571/* end confdefs.h.  */
12572#include <float.h>
12573#include <limits.h>
12574#include <stdarg.h>
12575#include <stddef.h>
12576extern void ac_decl (int, char *);
12577
12578int
12579main (void)
12580{
12581(void) ac_decl (0, (char *) 0);
12582  (void) ac_decl;
12583
12584  ;
12585  return 0;
12586}
12587_ACEOF
12588if ac_fn_c_try_compile "$LINENO"
12589then :
12590  if test x"$ac_arg" = x
12591then :
12592  ac_cv_c_undeclared_builtin_options='none needed'
12593else $as_nop
12594  ac_cv_c_undeclared_builtin_options=$ac_arg
12595fi
12596          break
12597fi
12598rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12599fi
12600rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12601    done
12602    CFLAGS=$ac_save_CFLAGS
12603
12604fi
12605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12606printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12607  case $ac_cv_c_undeclared_builtin_options in #(
12608  'cannot detect') :
12609    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12610printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12611as_fn_error $? "cannot make $CC report undeclared builtins
12612See \`config.log' for more details" "$LINENO" 5; } ;; #(
12613  'none needed') :
12614    ac_c_undeclared_builtin_options='' ;; #(
12615  *) :
12616    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12617esac
12618
12619
12620
12621
12622
12623ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12624if test "x$ac_cv_have_decl___clang__" = xyes
12625then :
12626  CLANGCC="yes"
12627else $as_nop
12628  CLANGCC="no"
12629fi
12630ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12631if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
12632then :
12633  INTELCC="yes"
12634else $as_nop
12635  INTELCC="no"
12636fi
12637ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12638if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
12639then :
12640  SUNCC="yes"
12641else $as_nop
12642  SUNCC="no"
12643fi
12644
12645
12646
12647
12648
12649
12650
12651
12652if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12653	if test -n "$ac_tool_prefix"; then
12654  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12655set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12657printf %s "checking for $ac_word... " >&6; }
12658if test ${ac_cv_path_PKG_CONFIG+y}
12659then :
12660  printf %s "(cached) " >&6
12661else $as_nop
12662  case $PKG_CONFIG in
12663  [\\/]* | ?:[\\/]*)
12664  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12665  ;;
12666  *)
12667  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12668for as_dir in $PATH
12669do
12670  IFS=$as_save_IFS
12671  case $as_dir in #(((
12672    '') as_dir=./ ;;
12673    */) ;;
12674    *) as_dir=$as_dir/ ;;
12675  esac
12676    for ac_exec_ext in '' $ac_executable_extensions; do
12677  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12678    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12679    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12680    break 2
12681  fi
12682done
12683  done
12684IFS=$as_save_IFS
12685
12686  ;;
12687esac
12688fi
12689PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12690if test -n "$PKG_CONFIG"; then
12691  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12692printf "%s\n" "$PKG_CONFIG" >&6; }
12693else
12694  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12695printf "%s\n" "no" >&6; }
12696fi
12697
12698
12699fi
12700if test -z "$ac_cv_path_PKG_CONFIG"; then
12701  ac_pt_PKG_CONFIG=$PKG_CONFIG
12702  # Extract the first word of "pkg-config", so it can be a program name with args.
12703set dummy pkg-config; ac_word=$2
12704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12705printf %s "checking for $ac_word... " >&6; }
12706if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12707then :
12708  printf %s "(cached) " >&6
12709else $as_nop
12710  case $ac_pt_PKG_CONFIG in
12711  [\\/]* | ?:[\\/]*)
12712  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12713  ;;
12714  *)
12715  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12716for as_dir in $PATH
12717do
12718  IFS=$as_save_IFS
12719  case $as_dir in #(((
12720    '') as_dir=./ ;;
12721    */) ;;
12722    *) as_dir=$as_dir/ ;;
12723  esac
12724    for ac_exec_ext in '' $ac_executable_extensions; do
12725  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12726    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12727    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12728    break 2
12729  fi
12730done
12731  done
12732IFS=$as_save_IFS
12733
12734  ;;
12735esac
12736fi
12737ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12738if test -n "$ac_pt_PKG_CONFIG"; then
12739  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12740printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
12741else
12742  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12743printf "%s\n" "no" >&6; }
12744fi
12745
12746  if test "x$ac_pt_PKG_CONFIG" = x; then
12747    PKG_CONFIG=""
12748  else
12749    case $cross_compiling:$ac_tool_warned in
12750yes:)
12751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12752printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12753ac_tool_warned=yes ;;
12754esac
12755    PKG_CONFIG=$ac_pt_PKG_CONFIG
12756  fi
12757else
12758  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12759fi
12760
12761fi
12762if test -n "$PKG_CONFIG"; then
12763	_pkg_min_version=0.9.0
12764	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12765printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12766	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12767		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12768printf "%s\n" "yes" >&6; }
12769	else
12770		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12771printf "%s\n" "no" >&6; }
12772		PKG_CONFIG=""
12773	fi
12774fi
12775
12776
12777
12778
12779
12780# Check whether --enable-selective-werror was given.
12781if test ${enable_selective_werror+y}
12782then :
12783  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12784else $as_nop
12785  SELECTIVE_WERROR=yes
12786fi
12787
12788
12789
12790
12791
12792# -v is too short to test reliably with XORG_TESTSET_CFLAG
12793if test "x$SUNCC" = "xyes"; then
12794    BASE_CFLAGS="-v"
12795else
12796    BASE_CFLAGS=""
12797fi
12798
12799# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813xorg_testset_save_CFLAGS="$CFLAGS"
12814
12815if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12816	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12817	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12818printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12819if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12820then :
12821  printf %s "(cached) " >&6
12822else $as_nop
12823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12824/* end confdefs.h.  */
12825int i;
12826_ACEOF
12827if ac_fn_c_try_compile "$LINENO"
12828then :
12829  xorg_cv_cc_flag_unknown_warning_option=yes
12830else $as_nop
12831  xorg_cv_cc_flag_unknown_warning_option=no
12832fi
12833rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12834fi
12835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12836printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12837	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12838	CFLAGS="$xorg_testset_save_CFLAGS"
12839fi
12840
12841if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12842	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12843		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12844	fi
12845	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12846	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12847printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12848if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
12849then :
12850  printf %s "(cached) " >&6
12851else $as_nop
12852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12853/* end confdefs.h.  */
12854int i;
12855_ACEOF
12856if ac_fn_c_try_compile "$LINENO"
12857then :
12858  xorg_cv_cc_flag_unused_command_line_argument=yes
12859else $as_nop
12860  xorg_cv_cc_flag_unused_command_line_argument=no
12861fi
12862rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12863fi
12864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12865printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12866	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12867	CFLAGS="$xorg_testset_save_CFLAGS"
12868fi
12869
12870found="no"
12871
12872	if test $found = "no" ; then
12873		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12874			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12875		fi
12876
12877		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12878			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12879		fi
12880
12881		CFLAGS="$CFLAGS -Wall"
12882
12883		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12884printf %s "checking if $CC supports -Wall... " >&6; }
12885		cacheid=xorg_cv_cc_flag__Wall
12886		if eval test \${$cacheid+y}
12887then :
12888  printf %s "(cached) " >&6
12889else $as_nop
12890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12891/* end confdefs.h.  */
12892int i;
12893int
12894main (void)
12895{
12896
12897  ;
12898  return 0;
12899}
12900_ACEOF
12901if ac_fn_c_try_link "$LINENO"
12902then :
12903  eval $cacheid=yes
12904else $as_nop
12905  eval $cacheid=no
12906fi
12907rm -f core conftest.err conftest.$ac_objext conftest.beam \
12908    conftest$ac_exeext conftest.$ac_ext
12909fi
12910
12911
12912		CFLAGS="$xorg_testset_save_CFLAGS"
12913
12914		eval supported=\$$cacheid
12915		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12916printf "%s\n" "$supported" >&6; }
12917		if test "$supported" = "yes" ; then
12918			BASE_CFLAGS="$BASE_CFLAGS -Wall"
12919			found="yes"
12920		fi
12921	fi
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937xorg_testset_save_CFLAGS="$CFLAGS"
12938
12939if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12940	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12941	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12942printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12943if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12944then :
12945  printf %s "(cached) " >&6
12946else $as_nop
12947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12948/* end confdefs.h.  */
12949int i;
12950_ACEOF
12951if ac_fn_c_try_compile "$LINENO"
12952then :
12953  xorg_cv_cc_flag_unknown_warning_option=yes
12954else $as_nop
12955  xorg_cv_cc_flag_unknown_warning_option=no
12956fi
12957rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12958fi
12959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12960printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12961	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12962	CFLAGS="$xorg_testset_save_CFLAGS"
12963fi
12964
12965if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12966	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12967		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12968	fi
12969	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12970	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12971printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12972if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
12973then :
12974  printf %s "(cached) " >&6
12975else $as_nop
12976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977/* end confdefs.h.  */
12978int i;
12979_ACEOF
12980if ac_fn_c_try_compile "$LINENO"
12981then :
12982  xorg_cv_cc_flag_unused_command_line_argument=yes
12983else $as_nop
12984  xorg_cv_cc_flag_unused_command_line_argument=no
12985fi
12986rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12987fi
12988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12989printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12990	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12991	CFLAGS="$xorg_testset_save_CFLAGS"
12992fi
12993
12994found="no"
12995
12996	if test $found = "no" ; then
12997		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12998			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12999		fi
13000
13001		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13002			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13003		fi
13004
13005		CFLAGS="$CFLAGS -Wpointer-arith"
13006
13007		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13008printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13009		cacheid=xorg_cv_cc_flag__Wpointer_arith
13010		if eval test \${$cacheid+y}
13011then :
13012  printf %s "(cached) " >&6
13013else $as_nop
13014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13015/* end confdefs.h.  */
13016int i;
13017int
13018main (void)
13019{
13020
13021  ;
13022  return 0;
13023}
13024_ACEOF
13025if ac_fn_c_try_link "$LINENO"
13026then :
13027  eval $cacheid=yes
13028else $as_nop
13029  eval $cacheid=no
13030fi
13031rm -f core conftest.err conftest.$ac_objext conftest.beam \
13032    conftest$ac_exeext conftest.$ac_ext
13033fi
13034
13035
13036		CFLAGS="$xorg_testset_save_CFLAGS"
13037
13038		eval supported=\$$cacheid
13039		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13040printf "%s\n" "$supported" >&6; }
13041		if test "$supported" = "yes" ; then
13042			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13043			found="yes"
13044		fi
13045	fi
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061xorg_testset_save_CFLAGS="$CFLAGS"
13062
13063if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13064	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13065	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13066printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13067if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13068then :
13069  printf %s "(cached) " >&6
13070else $as_nop
13071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13072/* end confdefs.h.  */
13073int i;
13074_ACEOF
13075if ac_fn_c_try_compile "$LINENO"
13076then :
13077  xorg_cv_cc_flag_unknown_warning_option=yes
13078else $as_nop
13079  xorg_cv_cc_flag_unknown_warning_option=no
13080fi
13081rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13082fi
13083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13084printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13085	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13086	CFLAGS="$xorg_testset_save_CFLAGS"
13087fi
13088
13089if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13090	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13091		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13092	fi
13093	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13094	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13095printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13096if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13097then :
13098  printf %s "(cached) " >&6
13099else $as_nop
13100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13101/* end confdefs.h.  */
13102int i;
13103_ACEOF
13104if ac_fn_c_try_compile "$LINENO"
13105then :
13106  xorg_cv_cc_flag_unused_command_line_argument=yes
13107else $as_nop
13108  xorg_cv_cc_flag_unused_command_line_argument=no
13109fi
13110rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13111fi
13112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13113printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13114	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13115	CFLAGS="$xorg_testset_save_CFLAGS"
13116fi
13117
13118found="no"
13119
13120	if test $found = "no" ; then
13121		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13122			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13123		fi
13124
13125		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13126			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13127		fi
13128
13129		CFLAGS="$CFLAGS -Wmissing-declarations"
13130
13131		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13132printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13133		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13134		if eval test \${$cacheid+y}
13135then :
13136  printf %s "(cached) " >&6
13137else $as_nop
13138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13139/* end confdefs.h.  */
13140int i;
13141int
13142main (void)
13143{
13144
13145  ;
13146  return 0;
13147}
13148_ACEOF
13149if ac_fn_c_try_link "$LINENO"
13150then :
13151  eval $cacheid=yes
13152else $as_nop
13153  eval $cacheid=no
13154fi
13155rm -f core conftest.err conftest.$ac_objext conftest.beam \
13156    conftest$ac_exeext conftest.$ac_ext
13157fi
13158
13159
13160		CFLAGS="$xorg_testset_save_CFLAGS"
13161
13162		eval supported=\$$cacheid
13163		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13164printf "%s\n" "$supported" >&6; }
13165		if test "$supported" = "yes" ; then
13166			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13167			found="yes"
13168		fi
13169	fi
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185xorg_testset_save_CFLAGS="$CFLAGS"
13186
13187if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13188	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13189	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13190printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13191if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13192then :
13193  printf %s "(cached) " >&6
13194else $as_nop
13195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13196/* end confdefs.h.  */
13197int i;
13198_ACEOF
13199if ac_fn_c_try_compile "$LINENO"
13200then :
13201  xorg_cv_cc_flag_unknown_warning_option=yes
13202else $as_nop
13203  xorg_cv_cc_flag_unknown_warning_option=no
13204fi
13205rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13206fi
13207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13208printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13209	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13210	CFLAGS="$xorg_testset_save_CFLAGS"
13211fi
13212
13213if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13214	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13215		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13216	fi
13217	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13218	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13219printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13220if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13221then :
13222  printf %s "(cached) " >&6
13223else $as_nop
13224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13225/* end confdefs.h.  */
13226int i;
13227_ACEOF
13228if ac_fn_c_try_compile "$LINENO"
13229then :
13230  xorg_cv_cc_flag_unused_command_line_argument=yes
13231else $as_nop
13232  xorg_cv_cc_flag_unused_command_line_argument=no
13233fi
13234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13235fi
13236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13237printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13238	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13239	CFLAGS="$xorg_testset_save_CFLAGS"
13240fi
13241
13242found="no"
13243
13244	if test $found = "no" ; then
13245		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13246			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13247		fi
13248
13249		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13250			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13251		fi
13252
13253		CFLAGS="$CFLAGS -Wformat=2"
13254
13255		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13256printf %s "checking if $CC supports -Wformat=2... " >&6; }
13257		cacheid=xorg_cv_cc_flag__Wformat_2
13258		if eval test \${$cacheid+y}
13259then :
13260  printf %s "(cached) " >&6
13261else $as_nop
13262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13263/* end confdefs.h.  */
13264int i;
13265int
13266main (void)
13267{
13268
13269  ;
13270  return 0;
13271}
13272_ACEOF
13273if ac_fn_c_try_link "$LINENO"
13274then :
13275  eval $cacheid=yes
13276else $as_nop
13277  eval $cacheid=no
13278fi
13279rm -f core conftest.err conftest.$ac_objext conftest.beam \
13280    conftest$ac_exeext conftest.$ac_ext
13281fi
13282
13283
13284		CFLAGS="$xorg_testset_save_CFLAGS"
13285
13286		eval supported=\$$cacheid
13287		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13288printf "%s\n" "$supported" >&6; }
13289		if test "$supported" = "yes" ; then
13290			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13291			found="yes"
13292		fi
13293	fi
13294
13295	if test $found = "no" ; then
13296		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13297			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13298		fi
13299
13300		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13301			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13302		fi
13303
13304		CFLAGS="$CFLAGS -Wformat"
13305
13306		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13307printf %s "checking if $CC supports -Wformat... " >&6; }
13308		cacheid=xorg_cv_cc_flag__Wformat
13309		if eval test \${$cacheid+y}
13310then :
13311  printf %s "(cached) " >&6
13312else $as_nop
13313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13314/* end confdefs.h.  */
13315int i;
13316int
13317main (void)
13318{
13319
13320  ;
13321  return 0;
13322}
13323_ACEOF
13324if ac_fn_c_try_link "$LINENO"
13325then :
13326  eval $cacheid=yes
13327else $as_nop
13328  eval $cacheid=no
13329fi
13330rm -f core conftest.err conftest.$ac_objext conftest.beam \
13331    conftest$ac_exeext conftest.$ac_ext
13332fi
13333
13334
13335		CFLAGS="$xorg_testset_save_CFLAGS"
13336
13337		eval supported=\$$cacheid
13338		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13339printf "%s\n" "$supported" >&6; }
13340		if test "$supported" = "yes" ; then
13341			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13342			found="yes"
13343		fi
13344	fi
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362xorg_testset_save_CFLAGS="$CFLAGS"
13363
13364if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13365	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13366	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13367printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13368if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13369then :
13370  printf %s "(cached) " >&6
13371else $as_nop
13372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13373/* end confdefs.h.  */
13374int i;
13375_ACEOF
13376if ac_fn_c_try_compile "$LINENO"
13377then :
13378  xorg_cv_cc_flag_unknown_warning_option=yes
13379else $as_nop
13380  xorg_cv_cc_flag_unknown_warning_option=no
13381fi
13382rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13383fi
13384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13385printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13386	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13387	CFLAGS="$xorg_testset_save_CFLAGS"
13388fi
13389
13390if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13391	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13392		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13393	fi
13394	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13395	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13396printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13397if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13398then :
13399  printf %s "(cached) " >&6
13400else $as_nop
13401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13402/* end confdefs.h.  */
13403int i;
13404_ACEOF
13405if ac_fn_c_try_compile "$LINENO"
13406then :
13407  xorg_cv_cc_flag_unused_command_line_argument=yes
13408else $as_nop
13409  xorg_cv_cc_flag_unused_command_line_argument=no
13410fi
13411rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13412fi
13413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13414printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13415	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13416	CFLAGS="$xorg_testset_save_CFLAGS"
13417fi
13418
13419found="no"
13420
13421	if test $found = "no" ; then
13422		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13423			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13424		fi
13425
13426		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13427			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13428		fi
13429
13430		CFLAGS="$CFLAGS -Wstrict-prototypes"
13431
13432		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13433printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13434		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13435		if eval test \${$cacheid+y}
13436then :
13437  printf %s "(cached) " >&6
13438else $as_nop
13439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13440/* end confdefs.h.  */
13441int i;
13442int
13443main (void)
13444{
13445
13446  ;
13447  return 0;
13448}
13449_ACEOF
13450if ac_fn_c_try_link "$LINENO"
13451then :
13452  eval $cacheid=yes
13453else $as_nop
13454  eval $cacheid=no
13455fi
13456rm -f core conftest.err conftest.$ac_objext conftest.beam \
13457    conftest$ac_exeext conftest.$ac_ext
13458fi
13459
13460
13461		CFLAGS="$xorg_testset_save_CFLAGS"
13462
13463		eval supported=\$$cacheid
13464		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13465printf "%s\n" "$supported" >&6; }
13466		if test "$supported" = "yes" ; then
13467			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13468			found="yes"
13469		fi
13470	fi
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486xorg_testset_save_CFLAGS="$CFLAGS"
13487
13488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13489	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13490	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13491printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13492if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13493then :
13494  printf %s "(cached) " >&6
13495else $as_nop
13496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13497/* end confdefs.h.  */
13498int i;
13499_ACEOF
13500if ac_fn_c_try_compile "$LINENO"
13501then :
13502  xorg_cv_cc_flag_unknown_warning_option=yes
13503else $as_nop
13504  xorg_cv_cc_flag_unknown_warning_option=no
13505fi
13506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13507fi
13508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13509printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13510	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13511	CFLAGS="$xorg_testset_save_CFLAGS"
13512fi
13513
13514if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13515	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13516		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13517	fi
13518	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13519	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13520printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13521if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13522then :
13523  printf %s "(cached) " >&6
13524else $as_nop
13525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13526/* end confdefs.h.  */
13527int i;
13528_ACEOF
13529if ac_fn_c_try_compile "$LINENO"
13530then :
13531  xorg_cv_cc_flag_unused_command_line_argument=yes
13532else $as_nop
13533  xorg_cv_cc_flag_unused_command_line_argument=no
13534fi
13535rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13536fi
13537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13538printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13539	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13540	CFLAGS="$xorg_testset_save_CFLAGS"
13541fi
13542
13543found="no"
13544
13545	if test $found = "no" ; then
13546		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13547			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13548		fi
13549
13550		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13551			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13552		fi
13553
13554		CFLAGS="$CFLAGS -Wmissing-prototypes"
13555
13556		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13557printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13558		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13559		if eval test \${$cacheid+y}
13560then :
13561  printf %s "(cached) " >&6
13562else $as_nop
13563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13564/* end confdefs.h.  */
13565int i;
13566int
13567main (void)
13568{
13569
13570  ;
13571  return 0;
13572}
13573_ACEOF
13574if ac_fn_c_try_link "$LINENO"
13575then :
13576  eval $cacheid=yes
13577else $as_nop
13578  eval $cacheid=no
13579fi
13580rm -f core conftest.err conftest.$ac_objext conftest.beam \
13581    conftest$ac_exeext conftest.$ac_ext
13582fi
13583
13584
13585		CFLAGS="$xorg_testset_save_CFLAGS"
13586
13587		eval supported=\$$cacheid
13588		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13589printf "%s\n" "$supported" >&6; }
13590		if test "$supported" = "yes" ; then
13591			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13592			found="yes"
13593		fi
13594	fi
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610xorg_testset_save_CFLAGS="$CFLAGS"
13611
13612if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13613	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13614	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13615printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13616if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13617then :
13618  printf %s "(cached) " >&6
13619else $as_nop
13620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13621/* end confdefs.h.  */
13622int i;
13623_ACEOF
13624if ac_fn_c_try_compile "$LINENO"
13625then :
13626  xorg_cv_cc_flag_unknown_warning_option=yes
13627else $as_nop
13628  xorg_cv_cc_flag_unknown_warning_option=no
13629fi
13630rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13631fi
13632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13633printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13634	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13635	CFLAGS="$xorg_testset_save_CFLAGS"
13636fi
13637
13638if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13639	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13640		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13641	fi
13642	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13643	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13644printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13645if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13646then :
13647  printf %s "(cached) " >&6
13648else $as_nop
13649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13650/* end confdefs.h.  */
13651int i;
13652_ACEOF
13653if ac_fn_c_try_compile "$LINENO"
13654then :
13655  xorg_cv_cc_flag_unused_command_line_argument=yes
13656else $as_nop
13657  xorg_cv_cc_flag_unused_command_line_argument=no
13658fi
13659rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13660fi
13661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13662printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13663	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13664	CFLAGS="$xorg_testset_save_CFLAGS"
13665fi
13666
13667found="no"
13668
13669	if test $found = "no" ; then
13670		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13671			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13672		fi
13673
13674		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13675			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13676		fi
13677
13678		CFLAGS="$CFLAGS -Wnested-externs"
13679
13680		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13681printf %s "checking if $CC supports -Wnested-externs... " >&6; }
13682		cacheid=xorg_cv_cc_flag__Wnested_externs
13683		if eval test \${$cacheid+y}
13684then :
13685  printf %s "(cached) " >&6
13686else $as_nop
13687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13688/* end confdefs.h.  */
13689int i;
13690int
13691main (void)
13692{
13693
13694  ;
13695  return 0;
13696}
13697_ACEOF
13698if ac_fn_c_try_link "$LINENO"
13699then :
13700  eval $cacheid=yes
13701else $as_nop
13702  eval $cacheid=no
13703fi
13704rm -f core conftest.err conftest.$ac_objext conftest.beam \
13705    conftest$ac_exeext conftest.$ac_ext
13706fi
13707
13708
13709		CFLAGS="$xorg_testset_save_CFLAGS"
13710
13711		eval supported=\$$cacheid
13712		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13713printf "%s\n" "$supported" >&6; }
13714		if test "$supported" = "yes" ; then
13715			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13716			found="yes"
13717		fi
13718	fi
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734xorg_testset_save_CFLAGS="$CFLAGS"
13735
13736if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13737	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13738	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13739printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13740if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13741then :
13742  printf %s "(cached) " >&6
13743else $as_nop
13744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13745/* end confdefs.h.  */
13746int i;
13747_ACEOF
13748if ac_fn_c_try_compile "$LINENO"
13749then :
13750  xorg_cv_cc_flag_unknown_warning_option=yes
13751else $as_nop
13752  xorg_cv_cc_flag_unknown_warning_option=no
13753fi
13754rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13755fi
13756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13757printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13758	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13759	CFLAGS="$xorg_testset_save_CFLAGS"
13760fi
13761
13762if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13763	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13764		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13765	fi
13766	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13767	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13768printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13769if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13770then :
13771  printf %s "(cached) " >&6
13772else $as_nop
13773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13774/* end confdefs.h.  */
13775int i;
13776_ACEOF
13777if ac_fn_c_try_compile "$LINENO"
13778then :
13779  xorg_cv_cc_flag_unused_command_line_argument=yes
13780else $as_nop
13781  xorg_cv_cc_flag_unused_command_line_argument=no
13782fi
13783rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13784fi
13785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13786printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13787	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13788	CFLAGS="$xorg_testset_save_CFLAGS"
13789fi
13790
13791found="no"
13792
13793	if test $found = "no" ; then
13794		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13795			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13796		fi
13797
13798		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13799			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13800		fi
13801
13802		CFLAGS="$CFLAGS -Wbad-function-cast"
13803
13804		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13805printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
13806		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13807		if eval test \${$cacheid+y}
13808then :
13809  printf %s "(cached) " >&6
13810else $as_nop
13811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13812/* end confdefs.h.  */
13813int i;
13814int
13815main (void)
13816{
13817
13818  ;
13819  return 0;
13820}
13821_ACEOF
13822if ac_fn_c_try_link "$LINENO"
13823then :
13824  eval $cacheid=yes
13825else $as_nop
13826  eval $cacheid=no
13827fi
13828rm -f core conftest.err conftest.$ac_objext conftest.beam \
13829    conftest$ac_exeext conftest.$ac_ext
13830fi
13831
13832
13833		CFLAGS="$xorg_testset_save_CFLAGS"
13834
13835		eval supported=\$$cacheid
13836		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13837printf "%s\n" "$supported" >&6; }
13838		if test "$supported" = "yes" ; then
13839			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13840			found="yes"
13841		fi
13842	fi
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858xorg_testset_save_CFLAGS="$CFLAGS"
13859
13860if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13861	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13862	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13863printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13864if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13865then :
13866  printf %s "(cached) " >&6
13867else $as_nop
13868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13869/* end confdefs.h.  */
13870int i;
13871_ACEOF
13872if ac_fn_c_try_compile "$LINENO"
13873then :
13874  xorg_cv_cc_flag_unknown_warning_option=yes
13875else $as_nop
13876  xorg_cv_cc_flag_unknown_warning_option=no
13877fi
13878rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13879fi
13880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13881printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13882	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13883	CFLAGS="$xorg_testset_save_CFLAGS"
13884fi
13885
13886if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13887	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13888		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13889	fi
13890	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13891	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13892printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13893if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13894then :
13895  printf %s "(cached) " >&6
13896else $as_nop
13897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13898/* end confdefs.h.  */
13899int i;
13900_ACEOF
13901if ac_fn_c_try_compile "$LINENO"
13902then :
13903  xorg_cv_cc_flag_unused_command_line_argument=yes
13904else $as_nop
13905  xorg_cv_cc_flag_unused_command_line_argument=no
13906fi
13907rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13908fi
13909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13910printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13911	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13912	CFLAGS="$xorg_testset_save_CFLAGS"
13913fi
13914
13915found="no"
13916
13917	if test $found = "no" ; then
13918		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13919			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13920		fi
13921
13922		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13923			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13924		fi
13925
13926		CFLAGS="$CFLAGS -Wold-style-definition"
13927
13928		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13929printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
13930		cacheid=xorg_cv_cc_flag__Wold_style_definition
13931		if eval test \${$cacheid+y}
13932then :
13933  printf %s "(cached) " >&6
13934else $as_nop
13935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13936/* end confdefs.h.  */
13937int i;
13938int
13939main (void)
13940{
13941
13942  ;
13943  return 0;
13944}
13945_ACEOF
13946if ac_fn_c_try_link "$LINENO"
13947then :
13948  eval $cacheid=yes
13949else $as_nop
13950  eval $cacheid=no
13951fi
13952rm -f core conftest.err conftest.$ac_objext conftest.beam \
13953    conftest$ac_exeext conftest.$ac_ext
13954fi
13955
13956
13957		CFLAGS="$xorg_testset_save_CFLAGS"
13958
13959		eval supported=\$$cacheid
13960		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13961printf "%s\n" "$supported" >&6; }
13962		if test "$supported" = "yes" ; then
13963			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13964			found="yes"
13965		fi
13966	fi
13967
13968	if test $found = "no" ; then
13969		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13970			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13971		fi
13972
13973		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13974			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13975		fi
13976
13977		CFLAGS="$CFLAGS -fd"
13978
13979		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13980printf %s "checking if $CC supports -fd... " >&6; }
13981		cacheid=xorg_cv_cc_flag__fd
13982		if eval test \${$cacheid+y}
13983then :
13984  printf %s "(cached) " >&6
13985else $as_nop
13986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13987/* end confdefs.h.  */
13988int i;
13989int
13990main (void)
13991{
13992
13993  ;
13994  return 0;
13995}
13996_ACEOF
13997if ac_fn_c_try_link "$LINENO"
13998then :
13999  eval $cacheid=yes
14000else $as_nop
14001  eval $cacheid=no
14002fi
14003rm -f core conftest.err conftest.$ac_objext conftest.beam \
14004    conftest$ac_exeext conftest.$ac_ext
14005fi
14006
14007
14008		CFLAGS="$xorg_testset_save_CFLAGS"
14009
14010		eval supported=\$$cacheid
14011		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14012printf "%s\n" "$supported" >&6; }
14013		if test "$supported" = "yes" ; then
14014			BASE_CFLAGS="$BASE_CFLAGS -fd"
14015			found="yes"
14016		fi
14017	fi
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033xorg_testset_save_CFLAGS="$CFLAGS"
14034
14035if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14036	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14037	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14038printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14039if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14040then :
14041  printf %s "(cached) " >&6
14042else $as_nop
14043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14044/* end confdefs.h.  */
14045int i;
14046_ACEOF
14047if ac_fn_c_try_compile "$LINENO"
14048then :
14049  xorg_cv_cc_flag_unknown_warning_option=yes
14050else $as_nop
14051  xorg_cv_cc_flag_unknown_warning_option=no
14052fi
14053rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14054fi
14055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14056printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14057	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14058	CFLAGS="$xorg_testset_save_CFLAGS"
14059fi
14060
14061if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14062	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14063		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14064	fi
14065	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14066	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14067printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14068if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14069then :
14070  printf %s "(cached) " >&6
14071else $as_nop
14072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14073/* end confdefs.h.  */
14074int i;
14075_ACEOF
14076if ac_fn_c_try_compile "$LINENO"
14077then :
14078  xorg_cv_cc_flag_unused_command_line_argument=yes
14079else $as_nop
14080  xorg_cv_cc_flag_unused_command_line_argument=no
14081fi
14082rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14083fi
14084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14085printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14086	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14087	CFLAGS="$xorg_testset_save_CFLAGS"
14088fi
14089
14090found="no"
14091
14092	if test $found = "no" ; then
14093		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14094			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14095		fi
14096
14097		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14098			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14099		fi
14100
14101		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14102
14103		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14104printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14105		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14106		if eval test \${$cacheid+y}
14107then :
14108  printf %s "(cached) " >&6
14109else $as_nop
14110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14111/* end confdefs.h.  */
14112int i;
14113int
14114main (void)
14115{
14116
14117  ;
14118  return 0;
14119}
14120_ACEOF
14121if ac_fn_c_try_link "$LINENO"
14122then :
14123  eval $cacheid=yes
14124else $as_nop
14125  eval $cacheid=no
14126fi
14127rm -f core conftest.err conftest.$ac_objext conftest.beam \
14128    conftest$ac_exeext conftest.$ac_ext
14129fi
14130
14131
14132		CFLAGS="$xorg_testset_save_CFLAGS"
14133
14134		eval supported=\$$cacheid
14135		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14136printf "%s\n" "$supported" >&6; }
14137		if test "$supported" = "yes" ; then
14138			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14139			found="yes"
14140		fi
14141	fi
14142
14143
14144
14145
14146
14147# This chunk adds additional warnings that could catch undesired effects.
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161xorg_testset_save_CFLAGS="$CFLAGS"
14162
14163if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14164	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14165	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14166printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14167if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14168then :
14169  printf %s "(cached) " >&6
14170else $as_nop
14171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14172/* end confdefs.h.  */
14173int i;
14174_ACEOF
14175if ac_fn_c_try_compile "$LINENO"
14176then :
14177  xorg_cv_cc_flag_unknown_warning_option=yes
14178else $as_nop
14179  xorg_cv_cc_flag_unknown_warning_option=no
14180fi
14181rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14182fi
14183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14184printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14185	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14186	CFLAGS="$xorg_testset_save_CFLAGS"
14187fi
14188
14189if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14190	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14191		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14192	fi
14193	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14194	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14195printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14196if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14197then :
14198  printf %s "(cached) " >&6
14199else $as_nop
14200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14201/* end confdefs.h.  */
14202int i;
14203_ACEOF
14204if ac_fn_c_try_compile "$LINENO"
14205then :
14206  xorg_cv_cc_flag_unused_command_line_argument=yes
14207else $as_nop
14208  xorg_cv_cc_flag_unused_command_line_argument=no
14209fi
14210rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14211fi
14212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14213printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14214	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14215	CFLAGS="$xorg_testset_save_CFLAGS"
14216fi
14217
14218found="no"
14219
14220	if test $found = "no" ; then
14221		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14222			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14223		fi
14224
14225		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14226			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14227		fi
14228
14229		CFLAGS="$CFLAGS -Wunused"
14230
14231		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14232printf %s "checking if $CC supports -Wunused... " >&6; }
14233		cacheid=xorg_cv_cc_flag__Wunused
14234		if eval test \${$cacheid+y}
14235then :
14236  printf %s "(cached) " >&6
14237else $as_nop
14238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14239/* end confdefs.h.  */
14240int i;
14241int
14242main (void)
14243{
14244
14245  ;
14246  return 0;
14247}
14248_ACEOF
14249if ac_fn_c_try_link "$LINENO"
14250then :
14251  eval $cacheid=yes
14252else $as_nop
14253  eval $cacheid=no
14254fi
14255rm -f core conftest.err conftest.$ac_objext conftest.beam \
14256    conftest$ac_exeext conftest.$ac_ext
14257fi
14258
14259
14260		CFLAGS="$xorg_testset_save_CFLAGS"
14261
14262		eval supported=\$$cacheid
14263		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14264printf "%s\n" "$supported" >&6; }
14265		if test "$supported" = "yes" ; then
14266			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14267			found="yes"
14268		fi
14269	fi
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285xorg_testset_save_CFLAGS="$CFLAGS"
14286
14287if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14288	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14289	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14290printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14291if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14292then :
14293  printf %s "(cached) " >&6
14294else $as_nop
14295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14296/* end confdefs.h.  */
14297int i;
14298_ACEOF
14299if ac_fn_c_try_compile "$LINENO"
14300then :
14301  xorg_cv_cc_flag_unknown_warning_option=yes
14302else $as_nop
14303  xorg_cv_cc_flag_unknown_warning_option=no
14304fi
14305rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14306fi
14307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14308printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14309	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14310	CFLAGS="$xorg_testset_save_CFLAGS"
14311fi
14312
14313if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14314	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14315		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14316	fi
14317	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14318	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14319printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14320if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14321then :
14322  printf %s "(cached) " >&6
14323else $as_nop
14324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14325/* end confdefs.h.  */
14326int i;
14327_ACEOF
14328if ac_fn_c_try_compile "$LINENO"
14329then :
14330  xorg_cv_cc_flag_unused_command_line_argument=yes
14331else $as_nop
14332  xorg_cv_cc_flag_unused_command_line_argument=no
14333fi
14334rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14335fi
14336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14337printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14338	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14339	CFLAGS="$xorg_testset_save_CFLAGS"
14340fi
14341
14342found="no"
14343
14344	if test $found = "no" ; then
14345		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14346			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14347		fi
14348
14349		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14350			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14351		fi
14352
14353		CFLAGS="$CFLAGS -Wuninitialized"
14354
14355		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14356printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14357		cacheid=xorg_cv_cc_flag__Wuninitialized
14358		if eval test \${$cacheid+y}
14359then :
14360  printf %s "(cached) " >&6
14361else $as_nop
14362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14363/* end confdefs.h.  */
14364int i;
14365int
14366main (void)
14367{
14368
14369  ;
14370  return 0;
14371}
14372_ACEOF
14373if ac_fn_c_try_link "$LINENO"
14374then :
14375  eval $cacheid=yes
14376else $as_nop
14377  eval $cacheid=no
14378fi
14379rm -f core conftest.err conftest.$ac_objext conftest.beam \
14380    conftest$ac_exeext conftest.$ac_ext
14381fi
14382
14383
14384		CFLAGS="$xorg_testset_save_CFLAGS"
14385
14386		eval supported=\$$cacheid
14387		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14388printf "%s\n" "$supported" >&6; }
14389		if test "$supported" = "yes" ; then
14390			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14391			found="yes"
14392		fi
14393	fi
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409xorg_testset_save_CFLAGS="$CFLAGS"
14410
14411if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14412	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14413	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14414printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14415if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14416then :
14417  printf %s "(cached) " >&6
14418else $as_nop
14419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14420/* end confdefs.h.  */
14421int i;
14422_ACEOF
14423if ac_fn_c_try_compile "$LINENO"
14424then :
14425  xorg_cv_cc_flag_unknown_warning_option=yes
14426else $as_nop
14427  xorg_cv_cc_flag_unknown_warning_option=no
14428fi
14429rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14430fi
14431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14432printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14433	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14434	CFLAGS="$xorg_testset_save_CFLAGS"
14435fi
14436
14437if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14438	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14439		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14440	fi
14441	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14442	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14443printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14444if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14445then :
14446  printf %s "(cached) " >&6
14447else $as_nop
14448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14449/* end confdefs.h.  */
14450int i;
14451_ACEOF
14452if ac_fn_c_try_compile "$LINENO"
14453then :
14454  xorg_cv_cc_flag_unused_command_line_argument=yes
14455else $as_nop
14456  xorg_cv_cc_flag_unused_command_line_argument=no
14457fi
14458rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14459fi
14460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14461printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14462	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14463	CFLAGS="$xorg_testset_save_CFLAGS"
14464fi
14465
14466found="no"
14467
14468	if test $found = "no" ; then
14469		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14470			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14471		fi
14472
14473		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14474			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14475		fi
14476
14477		CFLAGS="$CFLAGS -Wshadow"
14478
14479		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14480printf %s "checking if $CC supports -Wshadow... " >&6; }
14481		cacheid=xorg_cv_cc_flag__Wshadow
14482		if eval test \${$cacheid+y}
14483then :
14484  printf %s "(cached) " >&6
14485else $as_nop
14486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14487/* end confdefs.h.  */
14488int i;
14489int
14490main (void)
14491{
14492
14493  ;
14494  return 0;
14495}
14496_ACEOF
14497if ac_fn_c_try_link "$LINENO"
14498then :
14499  eval $cacheid=yes
14500else $as_nop
14501  eval $cacheid=no
14502fi
14503rm -f core conftest.err conftest.$ac_objext conftest.beam \
14504    conftest$ac_exeext conftest.$ac_ext
14505fi
14506
14507
14508		CFLAGS="$xorg_testset_save_CFLAGS"
14509
14510		eval supported=\$$cacheid
14511		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14512printf "%s\n" "$supported" >&6; }
14513		if test "$supported" = "yes" ; then
14514			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14515			found="yes"
14516		fi
14517	fi
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533xorg_testset_save_CFLAGS="$CFLAGS"
14534
14535if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14536	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14537	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14538printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14539if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14540then :
14541  printf %s "(cached) " >&6
14542else $as_nop
14543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14544/* end confdefs.h.  */
14545int i;
14546_ACEOF
14547if ac_fn_c_try_compile "$LINENO"
14548then :
14549  xorg_cv_cc_flag_unknown_warning_option=yes
14550else $as_nop
14551  xorg_cv_cc_flag_unknown_warning_option=no
14552fi
14553rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14554fi
14555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14556printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14557	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14558	CFLAGS="$xorg_testset_save_CFLAGS"
14559fi
14560
14561if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14562	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14563		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14564	fi
14565	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14566	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14567printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14568if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14569then :
14570  printf %s "(cached) " >&6
14571else $as_nop
14572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14573/* end confdefs.h.  */
14574int i;
14575_ACEOF
14576if ac_fn_c_try_compile "$LINENO"
14577then :
14578  xorg_cv_cc_flag_unused_command_line_argument=yes
14579else $as_nop
14580  xorg_cv_cc_flag_unused_command_line_argument=no
14581fi
14582rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14583fi
14584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14585printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14586	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14587	CFLAGS="$xorg_testset_save_CFLAGS"
14588fi
14589
14590found="no"
14591
14592	if test $found = "no" ; then
14593		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14594			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14595		fi
14596
14597		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14598			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14599		fi
14600
14601		CFLAGS="$CFLAGS -Wmissing-noreturn"
14602
14603		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14604printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14605		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14606		if eval test \${$cacheid+y}
14607then :
14608  printf %s "(cached) " >&6
14609else $as_nop
14610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14611/* end confdefs.h.  */
14612int i;
14613int
14614main (void)
14615{
14616
14617  ;
14618  return 0;
14619}
14620_ACEOF
14621if ac_fn_c_try_link "$LINENO"
14622then :
14623  eval $cacheid=yes
14624else $as_nop
14625  eval $cacheid=no
14626fi
14627rm -f core conftest.err conftest.$ac_objext conftest.beam \
14628    conftest$ac_exeext conftest.$ac_ext
14629fi
14630
14631
14632		CFLAGS="$xorg_testset_save_CFLAGS"
14633
14634		eval supported=\$$cacheid
14635		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14636printf "%s\n" "$supported" >&6; }
14637		if test "$supported" = "yes" ; then
14638			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14639			found="yes"
14640		fi
14641	fi
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657xorg_testset_save_CFLAGS="$CFLAGS"
14658
14659if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14660	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14661	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14662printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14663if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14664then :
14665  printf %s "(cached) " >&6
14666else $as_nop
14667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14668/* end confdefs.h.  */
14669int i;
14670_ACEOF
14671if ac_fn_c_try_compile "$LINENO"
14672then :
14673  xorg_cv_cc_flag_unknown_warning_option=yes
14674else $as_nop
14675  xorg_cv_cc_flag_unknown_warning_option=no
14676fi
14677rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14678fi
14679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14680printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14681	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14682	CFLAGS="$xorg_testset_save_CFLAGS"
14683fi
14684
14685if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14686	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14687		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14688	fi
14689	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14690	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14691printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14692if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14693then :
14694  printf %s "(cached) " >&6
14695else $as_nop
14696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14697/* end confdefs.h.  */
14698int i;
14699_ACEOF
14700if ac_fn_c_try_compile "$LINENO"
14701then :
14702  xorg_cv_cc_flag_unused_command_line_argument=yes
14703else $as_nop
14704  xorg_cv_cc_flag_unused_command_line_argument=no
14705fi
14706rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14707fi
14708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14709printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14710	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14711	CFLAGS="$xorg_testset_save_CFLAGS"
14712fi
14713
14714found="no"
14715
14716	if test $found = "no" ; then
14717		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14718			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14719		fi
14720
14721		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14722			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14723		fi
14724
14725		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14726
14727		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14728printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14729		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14730		if eval test \${$cacheid+y}
14731then :
14732  printf %s "(cached) " >&6
14733else $as_nop
14734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14735/* end confdefs.h.  */
14736int i;
14737int
14738main (void)
14739{
14740
14741  ;
14742  return 0;
14743}
14744_ACEOF
14745if ac_fn_c_try_link "$LINENO"
14746then :
14747  eval $cacheid=yes
14748else $as_nop
14749  eval $cacheid=no
14750fi
14751rm -f core conftest.err conftest.$ac_objext conftest.beam \
14752    conftest$ac_exeext conftest.$ac_ext
14753fi
14754
14755
14756		CFLAGS="$xorg_testset_save_CFLAGS"
14757
14758		eval supported=\$$cacheid
14759		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14760printf "%s\n" "$supported" >&6; }
14761		if test "$supported" = "yes" ; then
14762			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14763			found="yes"
14764		fi
14765	fi
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781xorg_testset_save_CFLAGS="$CFLAGS"
14782
14783if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14784	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14785	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14786printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14787if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14788then :
14789  printf %s "(cached) " >&6
14790else $as_nop
14791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14792/* end confdefs.h.  */
14793int i;
14794_ACEOF
14795if ac_fn_c_try_compile "$LINENO"
14796then :
14797  xorg_cv_cc_flag_unknown_warning_option=yes
14798else $as_nop
14799  xorg_cv_cc_flag_unknown_warning_option=no
14800fi
14801rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14802fi
14803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14804printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14805	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14806	CFLAGS="$xorg_testset_save_CFLAGS"
14807fi
14808
14809if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14810	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14811		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14812	fi
14813	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14814	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14815printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14816if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14817then :
14818  printf %s "(cached) " >&6
14819else $as_nop
14820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14821/* end confdefs.h.  */
14822int i;
14823_ACEOF
14824if ac_fn_c_try_compile "$LINENO"
14825then :
14826  xorg_cv_cc_flag_unused_command_line_argument=yes
14827else $as_nop
14828  xorg_cv_cc_flag_unused_command_line_argument=no
14829fi
14830rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14831fi
14832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14833printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14834	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14835	CFLAGS="$xorg_testset_save_CFLAGS"
14836fi
14837
14838found="no"
14839
14840	if test $found = "no" ; then
14841		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14842			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14843		fi
14844
14845		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14846			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14847		fi
14848
14849		CFLAGS="$CFLAGS -Wredundant-decls"
14850
14851		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14852printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
14853		cacheid=xorg_cv_cc_flag__Wredundant_decls
14854		if eval test \${$cacheid+y}
14855then :
14856  printf %s "(cached) " >&6
14857else $as_nop
14858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14859/* end confdefs.h.  */
14860int i;
14861int
14862main (void)
14863{
14864
14865  ;
14866  return 0;
14867}
14868_ACEOF
14869if ac_fn_c_try_link "$LINENO"
14870then :
14871  eval $cacheid=yes
14872else $as_nop
14873  eval $cacheid=no
14874fi
14875rm -f core conftest.err conftest.$ac_objext conftest.beam \
14876    conftest$ac_exeext conftest.$ac_ext
14877fi
14878
14879
14880		CFLAGS="$xorg_testset_save_CFLAGS"
14881
14882		eval supported=\$$cacheid
14883		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14884printf "%s\n" "$supported" >&6; }
14885		if test "$supported" = "yes" ; then
14886			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14887			found="yes"
14888		fi
14889	fi
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905xorg_testset_save_CFLAGS="$CFLAGS"
14906
14907if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14908	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14909	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14910printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14911if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14912then :
14913  printf %s "(cached) " >&6
14914else $as_nop
14915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14916/* end confdefs.h.  */
14917int i;
14918_ACEOF
14919if ac_fn_c_try_compile "$LINENO"
14920then :
14921  xorg_cv_cc_flag_unknown_warning_option=yes
14922else $as_nop
14923  xorg_cv_cc_flag_unknown_warning_option=no
14924fi
14925rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14926fi
14927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14928printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14929	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14930	CFLAGS="$xorg_testset_save_CFLAGS"
14931fi
14932
14933if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14934	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14935		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14936	fi
14937	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14938	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14939printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14940if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14941then :
14942  printf %s "(cached) " >&6
14943else $as_nop
14944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14945/* end confdefs.h.  */
14946int i;
14947_ACEOF
14948if ac_fn_c_try_compile "$LINENO"
14949then :
14950  xorg_cv_cc_flag_unused_command_line_argument=yes
14951else $as_nop
14952  xorg_cv_cc_flag_unused_command_line_argument=no
14953fi
14954rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14955fi
14956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14957printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14958	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14959	CFLAGS="$xorg_testset_save_CFLAGS"
14960fi
14961
14962found="no"
14963
14964	if test $found = "no" ; then
14965		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14966			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14967		fi
14968
14969		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14970			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14971		fi
14972
14973		CFLAGS="$CFLAGS -Wlogical-op"
14974
14975		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14976printf %s "checking if $CC supports -Wlogical-op... " >&6; }
14977		cacheid=xorg_cv_cc_flag__Wlogical_op
14978		if eval test \${$cacheid+y}
14979then :
14980  printf %s "(cached) " >&6
14981else $as_nop
14982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14983/* end confdefs.h.  */
14984int i;
14985int
14986main (void)
14987{
14988
14989  ;
14990  return 0;
14991}
14992_ACEOF
14993if ac_fn_c_try_link "$LINENO"
14994then :
14995  eval $cacheid=yes
14996else $as_nop
14997  eval $cacheid=no
14998fi
14999rm -f core conftest.err conftest.$ac_objext conftest.beam \
15000    conftest$ac_exeext conftest.$ac_ext
15001fi
15002
15003
15004		CFLAGS="$xorg_testset_save_CFLAGS"
15005
15006		eval supported=\$$cacheid
15007		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15008printf "%s\n" "$supported" >&6; }
15009		if test "$supported" = "yes" ; then
15010			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15011			found="yes"
15012		fi
15013	fi
15014
15015
15016
15017# These are currently disabled because they are noisy.  They will be enabled
15018# in the future once the codebase is sufficiently modernized to silence
15019# them.  For now, I don't want them to drown out the other warnings.
15020# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15021# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15022# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15023
15024# Turn some warnings into errors, so we don't accidently get successful builds
15025# when there are problems that should be fixed.
15026
15027if test "x$SELECTIVE_WERROR" = "xyes" ; then
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041xorg_testset_save_CFLAGS="$CFLAGS"
15042
15043if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15044	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15045	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15046printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15047if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15048then :
15049  printf %s "(cached) " >&6
15050else $as_nop
15051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15052/* end confdefs.h.  */
15053int i;
15054_ACEOF
15055if ac_fn_c_try_compile "$LINENO"
15056then :
15057  xorg_cv_cc_flag_unknown_warning_option=yes
15058else $as_nop
15059  xorg_cv_cc_flag_unknown_warning_option=no
15060fi
15061rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15062fi
15063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15064printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15065	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15066	CFLAGS="$xorg_testset_save_CFLAGS"
15067fi
15068
15069if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15070	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15071		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15072	fi
15073	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15074	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15075printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15076if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15077then :
15078  printf %s "(cached) " >&6
15079else $as_nop
15080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15081/* end confdefs.h.  */
15082int i;
15083_ACEOF
15084if ac_fn_c_try_compile "$LINENO"
15085then :
15086  xorg_cv_cc_flag_unused_command_line_argument=yes
15087else $as_nop
15088  xorg_cv_cc_flag_unused_command_line_argument=no
15089fi
15090rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15091fi
15092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15093printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15094	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15095	CFLAGS="$xorg_testset_save_CFLAGS"
15096fi
15097
15098found="no"
15099
15100	if test $found = "no" ; then
15101		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15102			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15103		fi
15104
15105		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15106			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15107		fi
15108
15109		CFLAGS="$CFLAGS -Werror=implicit"
15110
15111		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15112printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15113		cacheid=xorg_cv_cc_flag__Werror_implicit
15114		if eval test \${$cacheid+y}
15115then :
15116  printf %s "(cached) " >&6
15117else $as_nop
15118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15119/* end confdefs.h.  */
15120int i;
15121int
15122main (void)
15123{
15124
15125  ;
15126  return 0;
15127}
15128_ACEOF
15129if ac_fn_c_try_link "$LINENO"
15130then :
15131  eval $cacheid=yes
15132else $as_nop
15133  eval $cacheid=no
15134fi
15135rm -f core conftest.err conftest.$ac_objext conftest.beam \
15136    conftest$ac_exeext conftest.$ac_ext
15137fi
15138
15139
15140		CFLAGS="$xorg_testset_save_CFLAGS"
15141
15142		eval supported=\$$cacheid
15143		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15144printf "%s\n" "$supported" >&6; }
15145		if test "$supported" = "yes" ; then
15146			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15147			found="yes"
15148		fi
15149	fi
15150
15151	if test $found = "no" ; then
15152		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15153			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15154		fi
15155
15156		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15157			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15158		fi
15159
15160		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15161
15162		{ 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
15163printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15164		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15165		if eval test \${$cacheid+y}
15166then :
15167  printf %s "(cached) " >&6
15168else $as_nop
15169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15170/* end confdefs.h.  */
15171int i;
15172int
15173main (void)
15174{
15175
15176  ;
15177  return 0;
15178}
15179_ACEOF
15180if ac_fn_c_try_link "$LINENO"
15181then :
15182  eval $cacheid=yes
15183else $as_nop
15184  eval $cacheid=no
15185fi
15186rm -f core conftest.err conftest.$ac_objext conftest.beam \
15187    conftest$ac_exeext conftest.$ac_ext
15188fi
15189
15190
15191		CFLAGS="$xorg_testset_save_CFLAGS"
15192
15193		eval supported=\$$cacheid
15194		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15195printf "%s\n" "$supported" >&6; }
15196		if test "$supported" = "yes" ; then
15197			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15198			found="yes"
15199		fi
15200	fi
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216xorg_testset_save_CFLAGS="$CFLAGS"
15217
15218if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15219	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15220	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15221printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15222if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15223then :
15224  printf %s "(cached) " >&6
15225else $as_nop
15226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15227/* end confdefs.h.  */
15228int i;
15229_ACEOF
15230if ac_fn_c_try_compile "$LINENO"
15231then :
15232  xorg_cv_cc_flag_unknown_warning_option=yes
15233else $as_nop
15234  xorg_cv_cc_flag_unknown_warning_option=no
15235fi
15236rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15237fi
15238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15239printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15240	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15241	CFLAGS="$xorg_testset_save_CFLAGS"
15242fi
15243
15244if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15245	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15246		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15247	fi
15248	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15249	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15250printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15251if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15252then :
15253  printf %s "(cached) " >&6
15254else $as_nop
15255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15256/* end confdefs.h.  */
15257int i;
15258_ACEOF
15259if ac_fn_c_try_compile "$LINENO"
15260then :
15261  xorg_cv_cc_flag_unused_command_line_argument=yes
15262else $as_nop
15263  xorg_cv_cc_flag_unused_command_line_argument=no
15264fi
15265rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15266fi
15267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15268printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15269	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15270	CFLAGS="$xorg_testset_save_CFLAGS"
15271fi
15272
15273found="no"
15274
15275	if test $found = "no" ; then
15276		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15277			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15278		fi
15279
15280		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15281			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15282		fi
15283
15284		CFLAGS="$CFLAGS -Werror=nonnull"
15285
15286		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15287printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15288		cacheid=xorg_cv_cc_flag__Werror_nonnull
15289		if eval test \${$cacheid+y}
15290then :
15291  printf %s "(cached) " >&6
15292else $as_nop
15293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15294/* end confdefs.h.  */
15295int i;
15296int
15297main (void)
15298{
15299
15300  ;
15301  return 0;
15302}
15303_ACEOF
15304if ac_fn_c_try_link "$LINENO"
15305then :
15306  eval $cacheid=yes
15307else $as_nop
15308  eval $cacheid=no
15309fi
15310rm -f core conftest.err conftest.$ac_objext conftest.beam \
15311    conftest$ac_exeext conftest.$ac_ext
15312fi
15313
15314
15315		CFLAGS="$xorg_testset_save_CFLAGS"
15316
15317		eval supported=\$$cacheid
15318		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15319printf "%s\n" "$supported" >&6; }
15320		if test "$supported" = "yes" ; then
15321			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15322			found="yes"
15323		fi
15324	fi
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340xorg_testset_save_CFLAGS="$CFLAGS"
15341
15342if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15343	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15344	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15345printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15346if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15347then :
15348  printf %s "(cached) " >&6
15349else $as_nop
15350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15351/* end confdefs.h.  */
15352int i;
15353_ACEOF
15354if ac_fn_c_try_compile "$LINENO"
15355then :
15356  xorg_cv_cc_flag_unknown_warning_option=yes
15357else $as_nop
15358  xorg_cv_cc_flag_unknown_warning_option=no
15359fi
15360rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15361fi
15362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15363printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15364	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15365	CFLAGS="$xorg_testset_save_CFLAGS"
15366fi
15367
15368if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15369	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15370		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15371	fi
15372	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15373	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15374printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15375if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15376then :
15377  printf %s "(cached) " >&6
15378else $as_nop
15379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15380/* end confdefs.h.  */
15381int i;
15382_ACEOF
15383if ac_fn_c_try_compile "$LINENO"
15384then :
15385  xorg_cv_cc_flag_unused_command_line_argument=yes
15386else $as_nop
15387  xorg_cv_cc_flag_unused_command_line_argument=no
15388fi
15389rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15390fi
15391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15392printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15393	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15394	CFLAGS="$xorg_testset_save_CFLAGS"
15395fi
15396
15397found="no"
15398
15399	if test $found = "no" ; then
15400		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15401			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15402		fi
15403
15404		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15405			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15406		fi
15407
15408		CFLAGS="$CFLAGS -Werror=init-self"
15409
15410		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15411printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15412		cacheid=xorg_cv_cc_flag__Werror_init_self
15413		if eval test \${$cacheid+y}
15414then :
15415  printf %s "(cached) " >&6
15416else $as_nop
15417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15418/* end confdefs.h.  */
15419int i;
15420int
15421main (void)
15422{
15423
15424  ;
15425  return 0;
15426}
15427_ACEOF
15428if ac_fn_c_try_link "$LINENO"
15429then :
15430  eval $cacheid=yes
15431else $as_nop
15432  eval $cacheid=no
15433fi
15434rm -f core conftest.err conftest.$ac_objext conftest.beam \
15435    conftest$ac_exeext conftest.$ac_ext
15436fi
15437
15438
15439		CFLAGS="$xorg_testset_save_CFLAGS"
15440
15441		eval supported=\$$cacheid
15442		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15443printf "%s\n" "$supported" >&6; }
15444		if test "$supported" = "yes" ; then
15445			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15446			found="yes"
15447		fi
15448	fi
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464xorg_testset_save_CFLAGS="$CFLAGS"
15465
15466if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15467	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15468	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15469printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15470if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15471then :
15472  printf %s "(cached) " >&6
15473else $as_nop
15474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15475/* end confdefs.h.  */
15476int i;
15477_ACEOF
15478if ac_fn_c_try_compile "$LINENO"
15479then :
15480  xorg_cv_cc_flag_unknown_warning_option=yes
15481else $as_nop
15482  xorg_cv_cc_flag_unknown_warning_option=no
15483fi
15484rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15485fi
15486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15487printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15488	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15489	CFLAGS="$xorg_testset_save_CFLAGS"
15490fi
15491
15492if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15493	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15494		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15495	fi
15496	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15497	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15498printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15499if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15500then :
15501  printf %s "(cached) " >&6
15502else $as_nop
15503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15504/* end confdefs.h.  */
15505int i;
15506_ACEOF
15507if ac_fn_c_try_compile "$LINENO"
15508then :
15509  xorg_cv_cc_flag_unused_command_line_argument=yes
15510else $as_nop
15511  xorg_cv_cc_flag_unused_command_line_argument=no
15512fi
15513rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15514fi
15515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15516printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15517	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15518	CFLAGS="$xorg_testset_save_CFLAGS"
15519fi
15520
15521found="no"
15522
15523	if test $found = "no" ; then
15524		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15525			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15526		fi
15527
15528		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15529			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15530		fi
15531
15532		CFLAGS="$CFLAGS -Werror=main"
15533
15534		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15535printf %s "checking if $CC supports -Werror=main... " >&6; }
15536		cacheid=xorg_cv_cc_flag__Werror_main
15537		if eval test \${$cacheid+y}
15538then :
15539  printf %s "(cached) " >&6
15540else $as_nop
15541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15542/* end confdefs.h.  */
15543int i;
15544int
15545main (void)
15546{
15547
15548  ;
15549  return 0;
15550}
15551_ACEOF
15552if ac_fn_c_try_link "$LINENO"
15553then :
15554  eval $cacheid=yes
15555else $as_nop
15556  eval $cacheid=no
15557fi
15558rm -f core conftest.err conftest.$ac_objext conftest.beam \
15559    conftest$ac_exeext conftest.$ac_ext
15560fi
15561
15562
15563		CFLAGS="$xorg_testset_save_CFLAGS"
15564
15565		eval supported=\$$cacheid
15566		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15567printf "%s\n" "$supported" >&6; }
15568		if test "$supported" = "yes" ; then
15569			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15570			found="yes"
15571		fi
15572	fi
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588xorg_testset_save_CFLAGS="$CFLAGS"
15589
15590if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15591	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15592	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15593printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15594if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15595then :
15596  printf %s "(cached) " >&6
15597else $as_nop
15598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15599/* end confdefs.h.  */
15600int i;
15601_ACEOF
15602if ac_fn_c_try_compile "$LINENO"
15603then :
15604  xorg_cv_cc_flag_unknown_warning_option=yes
15605else $as_nop
15606  xorg_cv_cc_flag_unknown_warning_option=no
15607fi
15608rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15609fi
15610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15611printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15612	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15613	CFLAGS="$xorg_testset_save_CFLAGS"
15614fi
15615
15616if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15617	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15618		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15619	fi
15620	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15621	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15622printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15623if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15624then :
15625  printf %s "(cached) " >&6
15626else $as_nop
15627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15628/* end confdefs.h.  */
15629int i;
15630_ACEOF
15631if ac_fn_c_try_compile "$LINENO"
15632then :
15633  xorg_cv_cc_flag_unused_command_line_argument=yes
15634else $as_nop
15635  xorg_cv_cc_flag_unused_command_line_argument=no
15636fi
15637rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15638fi
15639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15640printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15641	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15642	CFLAGS="$xorg_testset_save_CFLAGS"
15643fi
15644
15645found="no"
15646
15647	if test $found = "no" ; then
15648		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15649			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15650		fi
15651
15652		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15653			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15654		fi
15655
15656		CFLAGS="$CFLAGS -Werror=missing-braces"
15657
15658		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15659printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
15660		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15661		if eval test \${$cacheid+y}
15662then :
15663  printf %s "(cached) " >&6
15664else $as_nop
15665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15666/* end confdefs.h.  */
15667int i;
15668int
15669main (void)
15670{
15671
15672  ;
15673  return 0;
15674}
15675_ACEOF
15676if ac_fn_c_try_link "$LINENO"
15677then :
15678  eval $cacheid=yes
15679else $as_nop
15680  eval $cacheid=no
15681fi
15682rm -f core conftest.err conftest.$ac_objext conftest.beam \
15683    conftest$ac_exeext conftest.$ac_ext
15684fi
15685
15686
15687		CFLAGS="$xorg_testset_save_CFLAGS"
15688
15689		eval supported=\$$cacheid
15690		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15691printf "%s\n" "$supported" >&6; }
15692		if test "$supported" = "yes" ; then
15693			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15694			found="yes"
15695		fi
15696	fi
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712xorg_testset_save_CFLAGS="$CFLAGS"
15713
15714if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15715	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15716	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15717printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15718if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15719then :
15720  printf %s "(cached) " >&6
15721else $as_nop
15722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15723/* end confdefs.h.  */
15724int i;
15725_ACEOF
15726if ac_fn_c_try_compile "$LINENO"
15727then :
15728  xorg_cv_cc_flag_unknown_warning_option=yes
15729else $as_nop
15730  xorg_cv_cc_flag_unknown_warning_option=no
15731fi
15732rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15733fi
15734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15735printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15736	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15737	CFLAGS="$xorg_testset_save_CFLAGS"
15738fi
15739
15740if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15741	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15742		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15743	fi
15744	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15745	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15746printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15747if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15748then :
15749  printf %s "(cached) " >&6
15750else $as_nop
15751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15752/* end confdefs.h.  */
15753int i;
15754_ACEOF
15755if ac_fn_c_try_compile "$LINENO"
15756then :
15757  xorg_cv_cc_flag_unused_command_line_argument=yes
15758else $as_nop
15759  xorg_cv_cc_flag_unused_command_line_argument=no
15760fi
15761rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15762fi
15763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15764printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15765	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15766	CFLAGS="$xorg_testset_save_CFLAGS"
15767fi
15768
15769found="no"
15770
15771	if test $found = "no" ; then
15772		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15773			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15774		fi
15775
15776		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15777			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15778		fi
15779
15780		CFLAGS="$CFLAGS -Werror=sequence-point"
15781
15782		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15783printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
15784		cacheid=xorg_cv_cc_flag__Werror_sequence_point
15785		if eval test \${$cacheid+y}
15786then :
15787  printf %s "(cached) " >&6
15788else $as_nop
15789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15790/* end confdefs.h.  */
15791int i;
15792int
15793main (void)
15794{
15795
15796  ;
15797  return 0;
15798}
15799_ACEOF
15800if ac_fn_c_try_link "$LINENO"
15801then :
15802  eval $cacheid=yes
15803else $as_nop
15804  eval $cacheid=no
15805fi
15806rm -f core conftest.err conftest.$ac_objext conftest.beam \
15807    conftest$ac_exeext conftest.$ac_ext
15808fi
15809
15810
15811		CFLAGS="$xorg_testset_save_CFLAGS"
15812
15813		eval supported=\$$cacheid
15814		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15815printf "%s\n" "$supported" >&6; }
15816		if test "$supported" = "yes" ; then
15817			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15818			found="yes"
15819		fi
15820	fi
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836xorg_testset_save_CFLAGS="$CFLAGS"
15837
15838if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15839	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15840	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15841printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15842if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15843then :
15844  printf %s "(cached) " >&6
15845else $as_nop
15846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15847/* end confdefs.h.  */
15848int i;
15849_ACEOF
15850if ac_fn_c_try_compile "$LINENO"
15851then :
15852  xorg_cv_cc_flag_unknown_warning_option=yes
15853else $as_nop
15854  xorg_cv_cc_flag_unknown_warning_option=no
15855fi
15856rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15857fi
15858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15859printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15860	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15861	CFLAGS="$xorg_testset_save_CFLAGS"
15862fi
15863
15864if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15865	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15866		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15867	fi
15868	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15869	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15870printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15871if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15872then :
15873  printf %s "(cached) " >&6
15874else $as_nop
15875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15876/* end confdefs.h.  */
15877int i;
15878_ACEOF
15879if ac_fn_c_try_compile "$LINENO"
15880then :
15881  xorg_cv_cc_flag_unused_command_line_argument=yes
15882else $as_nop
15883  xorg_cv_cc_flag_unused_command_line_argument=no
15884fi
15885rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15886fi
15887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15888printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15889	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15890	CFLAGS="$xorg_testset_save_CFLAGS"
15891fi
15892
15893found="no"
15894
15895	if test $found = "no" ; then
15896		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15897			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15898		fi
15899
15900		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15901			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15902		fi
15903
15904		CFLAGS="$CFLAGS -Werror=return-type"
15905
15906		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15907printf %s "checking if $CC supports -Werror=return-type... " >&6; }
15908		cacheid=xorg_cv_cc_flag__Werror_return_type
15909		if eval test \${$cacheid+y}
15910then :
15911  printf %s "(cached) " >&6
15912else $as_nop
15913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15914/* end confdefs.h.  */
15915int i;
15916int
15917main (void)
15918{
15919
15920  ;
15921  return 0;
15922}
15923_ACEOF
15924if ac_fn_c_try_link "$LINENO"
15925then :
15926  eval $cacheid=yes
15927else $as_nop
15928  eval $cacheid=no
15929fi
15930rm -f core conftest.err conftest.$ac_objext conftest.beam \
15931    conftest$ac_exeext conftest.$ac_ext
15932fi
15933
15934
15935		CFLAGS="$xorg_testset_save_CFLAGS"
15936
15937		eval supported=\$$cacheid
15938		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15939printf "%s\n" "$supported" >&6; }
15940		if test "$supported" = "yes" ; then
15941			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15942			found="yes"
15943		fi
15944	fi
15945
15946	if test $found = "no" ; then
15947		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15948			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15949		fi
15950
15951		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15952			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15953		fi
15954
15955		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15956
15957		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15958printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15959		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15960		if eval test \${$cacheid+y}
15961then :
15962  printf %s "(cached) " >&6
15963else $as_nop
15964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15965/* end confdefs.h.  */
15966int i;
15967int
15968main (void)
15969{
15970
15971  ;
15972  return 0;
15973}
15974_ACEOF
15975if ac_fn_c_try_link "$LINENO"
15976then :
15977  eval $cacheid=yes
15978else $as_nop
15979  eval $cacheid=no
15980fi
15981rm -f core conftest.err conftest.$ac_objext conftest.beam \
15982    conftest$ac_exeext conftest.$ac_ext
15983fi
15984
15985
15986		CFLAGS="$xorg_testset_save_CFLAGS"
15987
15988		eval supported=\$$cacheid
15989		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15990printf "%s\n" "$supported" >&6; }
15991		if test "$supported" = "yes" ; then
15992			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15993			found="yes"
15994		fi
15995	fi
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011xorg_testset_save_CFLAGS="$CFLAGS"
16012
16013if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16014	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16015	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16016printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16017if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16018then :
16019  printf %s "(cached) " >&6
16020else $as_nop
16021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16022/* end confdefs.h.  */
16023int i;
16024_ACEOF
16025if ac_fn_c_try_compile "$LINENO"
16026then :
16027  xorg_cv_cc_flag_unknown_warning_option=yes
16028else $as_nop
16029  xorg_cv_cc_flag_unknown_warning_option=no
16030fi
16031rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16032fi
16033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16034printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16035	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16036	CFLAGS="$xorg_testset_save_CFLAGS"
16037fi
16038
16039if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16040	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16041		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16042	fi
16043	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16044	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16045printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16046if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16047then :
16048  printf %s "(cached) " >&6
16049else $as_nop
16050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16051/* end confdefs.h.  */
16052int i;
16053_ACEOF
16054if ac_fn_c_try_compile "$LINENO"
16055then :
16056  xorg_cv_cc_flag_unused_command_line_argument=yes
16057else $as_nop
16058  xorg_cv_cc_flag_unused_command_line_argument=no
16059fi
16060rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16061fi
16062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16063printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16064	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16065	CFLAGS="$xorg_testset_save_CFLAGS"
16066fi
16067
16068found="no"
16069
16070	if test $found = "no" ; then
16071		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16072			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16073		fi
16074
16075		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16076			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16077		fi
16078
16079		CFLAGS="$CFLAGS -Werror=trigraphs"
16080
16081		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16082printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16083		cacheid=xorg_cv_cc_flag__Werror_trigraphs
16084		if eval test \${$cacheid+y}
16085then :
16086  printf %s "(cached) " >&6
16087else $as_nop
16088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16089/* end confdefs.h.  */
16090int i;
16091int
16092main (void)
16093{
16094
16095  ;
16096  return 0;
16097}
16098_ACEOF
16099if ac_fn_c_try_link "$LINENO"
16100then :
16101  eval $cacheid=yes
16102else $as_nop
16103  eval $cacheid=no
16104fi
16105rm -f core conftest.err conftest.$ac_objext conftest.beam \
16106    conftest$ac_exeext conftest.$ac_ext
16107fi
16108
16109
16110		CFLAGS="$xorg_testset_save_CFLAGS"
16111
16112		eval supported=\$$cacheid
16113		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16114printf "%s\n" "$supported" >&6; }
16115		if test "$supported" = "yes" ; then
16116			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16117			found="yes"
16118		fi
16119	fi
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135xorg_testset_save_CFLAGS="$CFLAGS"
16136
16137if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16138	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16139	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16140printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16141if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16142then :
16143  printf %s "(cached) " >&6
16144else $as_nop
16145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16146/* end confdefs.h.  */
16147int i;
16148_ACEOF
16149if ac_fn_c_try_compile "$LINENO"
16150then :
16151  xorg_cv_cc_flag_unknown_warning_option=yes
16152else $as_nop
16153  xorg_cv_cc_flag_unknown_warning_option=no
16154fi
16155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16156fi
16157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16158printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16159	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16160	CFLAGS="$xorg_testset_save_CFLAGS"
16161fi
16162
16163if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16164	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16165		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16166	fi
16167	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16168	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16169printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16170if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16171then :
16172  printf %s "(cached) " >&6
16173else $as_nop
16174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16175/* end confdefs.h.  */
16176int i;
16177_ACEOF
16178if ac_fn_c_try_compile "$LINENO"
16179then :
16180  xorg_cv_cc_flag_unused_command_line_argument=yes
16181else $as_nop
16182  xorg_cv_cc_flag_unused_command_line_argument=no
16183fi
16184rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16185fi
16186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16187printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16188	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16189	CFLAGS="$xorg_testset_save_CFLAGS"
16190fi
16191
16192found="no"
16193
16194	if test $found = "no" ; then
16195		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16196			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16197		fi
16198
16199		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16200			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16201		fi
16202
16203		CFLAGS="$CFLAGS -Werror=array-bounds"
16204
16205		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16206printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16207		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16208		if eval test \${$cacheid+y}
16209then :
16210  printf %s "(cached) " >&6
16211else $as_nop
16212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16213/* end confdefs.h.  */
16214int i;
16215int
16216main (void)
16217{
16218
16219  ;
16220  return 0;
16221}
16222_ACEOF
16223if ac_fn_c_try_link "$LINENO"
16224then :
16225  eval $cacheid=yes
16226else $as_nop
16227  eval $cacheid=no
16228fi
16229rm -f core conftest.err conftest.$ac_objext conftest.beam \
16230    conftest$ac_exeext conftest.$ac_ext
16231fi
16232
16233
16234		CFLAGS="$xorg_testset_save_CFLAGS"
16235
16236		eval supported=\$$cacheid
16237		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16238printf "%s\n" "$supported" >&6; }
16239		if test "$supported" = "yes" ; then
16240			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16241			found="yes"
16242		fi
16243	fi
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259xorg_testset_save_CFLAGS="$CFLAGS"
16260
16261if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16262	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16263	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16264printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16265if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16266then :
16267  printf %s "(cached) " >&6
16268else $as_nop
16269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16270/* end confdefs.h.  */
16271int i;
16272_ACEOF
16273if ac_fn_c_try_compile "$LINENO"
16274then :
16275  xorg_cv_cc_flag_unknown_warning_option=yes
16276else $as_nop
16277  xorg_cv_cc_flag_unknown_warning_option=no
16278fi
16279rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16280fi
16281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16282printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16283	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16284	CFLAGS="$xorg_testset_save_CFLAGS"
16285fi
16286
16287if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16288	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16289		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16290	fi
16291	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16292	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16293printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16294if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16295then :
16296  printf %s "(cached) " >&6
16297else $as_nop
16298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16299/* end confdefs.h.  */
16300int i;
16301_ACEOF
16302if ac_fn_c_try_compile "$LINENO"
16303then :
16304  xorg_cv_cc_flag_unused_command_line_argument=yes
16305else $as_nop
16306  xorg_cv_cc_flag_unused_command_line_argument=no
16307fi
16308rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16309fi
16310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16311printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16312	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16313	CFLAGS="$xorg_testset_save_CFLAGS"
16314fi
16315
16316found="no"
16317
16318	if test $found = "no" ; then
16319		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16320			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16321		fi
16322
16323		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16324			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16325		fi
16326
16327		CFLAGS="$CFLAGS -Werror=write-strings"
16328
16329		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16330printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16331		cacheid=xorg_cv_cc_flag__Werror_write_strings
16332		if eval test \${$cacheid+y}
16333then :
16334  printf %s "(cached) " >&6
16335else $as_nop
16336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16337/* end confdefs.h.  */
16338int i;
16339int
16340main (void)
16341{
16342
16343  ;
16344  return 0;
16345}
16346_ACEOF
16347if ac_fn_c_try_link "$LINENO"
16348then :
16349  eval $cacheid=yes
16350else $as_nop
16351  eval $cacheid=no
16352fi
16353rm -f core conftest.err conftest.$ac_objext conftest.beam \
16354    conftest$ac_exeext conftest.$ac_ext
16355fi
16356
16357
16358		CFLAGS="$xorg_testset_save_CFLAGS"
16359
16360		eval supported=\$$cacheid
16361		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16362printf "%s\n" "$supported" >&6; }
16363		if test "$supported" = "yes" ; then
16364			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16365			found="yes"
16366		fi
16367	fi
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383xorg_testset_save_CFLAGS="$CFLAGS"
16384
16385if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16386	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16387	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16388printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16389if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16390then :
16391  printf %s "(cached) " >&6
16392else $as_nop
16393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16394/* end confdefs.h.  */
16395int i;
16396_ACEOF
16397if ac_fn_c_try_compile "$LINENO"
16398then :
16399  xorg_cv_cc_flag_unknown_warning_option=yes
16400else $as_nop
16401  xorg_cv_cc_flag_unknown_warning_option=no
16402fi
16403rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16404fi
16405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16406printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16407	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16408	CFLAGS="$xorg_testset_save_CFLAGS"
16409fi
16410
16411if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16412	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16413		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16414	fi
16415	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16416	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16417printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16418if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16419then :
16420  printf %s "(cached) " >&6
16421else $as_nop
16422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16423/* end confdefs.h.  */
16424int i;
16425_ACEOF
16426if ac_fn_c_try_compile "$LINENO"
16427then :
16428  xorg_cv_cc_flag_unused_command_line_argument=yes
16429else $as_nop
16430  xorg_cv_cc_flag_unused_command_line_argument=no
16431fi
16432rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16433fi
16434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16435printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16436	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16437	CFLAGS="$xorg_testset_save_CFLAGS"
16438fi
16439
16440found="no"
16441
16442	if test $found = "no" ; then
16443		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16444			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16445		fi
16446
16447		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16448			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16449		fi
16450
16451		CFLAGS="$CFLAGS -Werror=address"
16452
16453		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16454printf %s "checking if $CC supports -Werror=address... " >&6; }
16455		cacheid=xorg_cv_cc_flag__Werror_address
16456		if eval test \${$cacheid+y}
16457then :
16458  printf %s "(cached) " >&6
16459else $as_nop
16460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16461/* end confdefs.h.  */
16462int i;
16463int
16464main (void)
16465{
16466
16467  ;
16468  return 0;
16469}
16470_ACEOF
16471if ac_fn_c_try_link "$LINENO"
16472then :
16473  eval $cacheid=yes
16474else $as_nop
16475  eval $cacheid=no
16476fi
16477rm -f core conftest.err conftest.$ac_objext conftest.beam \
16478    conftest$ac_exeext conftest.$ac_ext
16479fi
16480
16481
16482		CFLAGS="$xorg_testset_save_CFLAGS"
16483
16484		eval supported=\$$cacheid
16485		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16486printf "%s\n" "$supported" >&6; }
16487		if test "$supported" = "yes" ; then
16488			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16489			found="yes"
16490		fi
16491	fi
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507xorg_testset_save_CFLAGS="$CFLAGS"
16508
16509if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16510	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16511	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16512printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16513if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16514then :
16515  printf %s "(cached) " >&6
16516else $as_nop
16517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16518/* end confdefs.h.  */
16519int i;
16520_ACEOF
16521if ac_fn_c_try_compile "$LINENO"
16522then :
16523  xorg_cv_cc_flag_unknown_warning_option=yes
16524else $as_nop
16525  xorg_cv_cc_flag_unknown_warning_option=no
16526fi
16527rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16528fi
16529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16530printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16531	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16532	CFLAGS="$xorg_testset_save_CFLAGS"
16533fi
16534
16535if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16536	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16537		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16538	fi
16539	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16540	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16541printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16542if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16543then :
16544  printf %s "(cached) " >&6
16545else $as_nop
16546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16547/* end confdefs.h.  */
16548int i;
16549_ACEOF
16550if ac_fn_c_try_compile "$LINENO"
16551then :
16552  xorg_cv_cc_flag_unused_command_line_argument=yes
16553else $as_nop
16554  xorg_cv_cc_flag_unused_command_line_argument=no
16555fi
16556rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16557fi
16558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16559printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16560	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16561	CFLAGS="$xorg_testset_save_CFLAGS"
16562fi
16563
16564found="no"
16565
16566	if test $found = "no" ; then
16567		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16568			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16569		fi
16570
16571		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16572			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16573		fi
16574
16575		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16576
16577		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16578printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16579		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16580		if eval test \${$cacheid+y}
16581then :
16582  printf %s "(cached) " >&6
16583else $as_nop
16584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16585/* end confdefs.h.  */
16586int i;
16587int
16588main (void)
16589{
16590
16591  ;
16592  return 0;
16593}
16594_ACEOF
16595if ac_fn_c_try_link "$LINENO"
16596then :
16597  eval $cacheid=yes
16598else $as_nop
16599  eval $cacheid=no
16600fi
16601rm -f core conftest.err conftest.$ac_objext conftest.beam \
16602    conftest$ac_exeext conftest.$ac_ext
16603fi
16604
16605
16606		CFLAGS="$xorg_testset_save_CFLAGS"
16607
16608		eval supported=\$$cacheid
16609		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16610printf "%s\n" "$supported" >&6; }
16611		if test "$supported" = "yes" ; then
16612			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16613			found="yes"
16614		fi
16615	fi
16616
16617	if test $found = "no" ; then
16618		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16619			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16620		fi
16621
16622		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16623			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16624		fi
16625
16626		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16627
16628		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16629printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16630		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16631		if eval test \${$cacheid+y}
16632then :
16633  printf %s "(cached) " >&6
16634else $as_nop
16635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16636/* end confdefs.h.  */
16637int i;
16638int
16639main (void)
16640{
16641
16642  ;
16643  return 0;
16644}
16645_ACEOF
16646if ac_fn_c_try_link "$LINENO"
16647then :
16648  eval $cacheid=yes
16649else $as_nop
16650  eval $cacheid=no
16651fi
16652rm -f core conftest.err conftest.$ac_objext conftest.beam \
16653    conftest$ac_exeext conftest.$ac_ext
16654fi
16655
16656
16657		CFLAGS="$xorg_testset_save_CFLAGS"
16658
16659		eval supported=\$$cacheid
16660		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16661printf "%s\n" "$supported" >&6; }
16662		if test "$supported" = "yes" ; then
16663			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16664			found="yes"
16665		fi
16666	fi
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682xorg_testset_save_CFLAGS="$CFLAGS"
16683
16684if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16685	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16686	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16687printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16688if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16689then :
16690  printf %s "(cached) " >&6
16691else $as_nop
16692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16693/* end confdefs.h.  */
16694int i;
16695_ACEOF
16696if ac_fn_c_try_compile "$LINENO"
16697then :
16698  xorg_cv_cc_flag_unknown_warning_option=yes
16699else $as_nop
16700  xorg_cv_cc_flag_unknown_warning_option=no
16701fi
16702rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16703fi
16704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16705printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16706	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16707	CFLAGS="$xorg_testset_save_CFLAGS"
16708fi
16709
16710if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16711	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16712		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16713	fi
16714	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16715	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16716printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16717if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16718then :
16719  printf %s "(cached) " >&6
16720else $as_nop
16721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16722/* end confdefs.h.  */
16723int i;
16724_ACEOF
16725if ac_fn_c_try_compile "$LINENO"
16726then :
16727  xorg_cv_cc_flag_unused_command_line_argument=yes
16728else $as_nop
16729  xorg_cv_cc_flag_unused_command_line_argument=no
16730fi
16731rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16732fi
16733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16734printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16735	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16736	CFLAGS="$xorg_testset_save_CFLAGS"
16737fi
16738
16739found="no"
16740
16741	if test $found = "no" ; then
16742		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16743			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16744		fi
16745
16746		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16747			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16748		fi
16749
16750		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16751
16752		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16753printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16754		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16755		if eval test \${$cacheid+y}
16756then :
16757  printf %s "(cached) " >&6
16758else $as_nop
16759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16760/* end confdefs.h.  */
16761int i;
16762int
16763main (void)
16764{
16765
16766  ;
16767  return 0;
16768}
16769_ACEOF
16770if ac_fn_c_try_link "$LINENO"
16771then :
16772  eval $cacheid=yes
16773else $as_nop
16774  eval $cacheid=no
16775fi
16776rm -f core conftest.err conftest.$ac_objext conftest.beam \
16777    conftest$ac_exeext conftest.$ac_ext
16778fi
16779
16780
16781		CFLAGS="$xorg_testset_save_CFLAGS"
16782
16783		eval supported=\$$cacheid
16784		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16785printf "%s\n" "$supported" >&6; }
16786		if test "$supported" = "yes" ; then
16787			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16788			found="yes"
16789		fi
16790	fi
16791
16792 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16793else
16794{ 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
16795printf "%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;}
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809xorg_testset_save_CFLAGS="$CFLAGS"
16810
16811if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16812	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16813	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16814printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16815if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16816then :
16817  printf %s "(cached) " >&6
16818else $as_nop
16819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16820/* end confdefs.h.  */
16821int i;
16822_ACEOF
16823if ac_fn_c_try_compile "$LINENO"
16824then :
16825  xorg_cv_cc_flag_unknown_warning_option=yes
16826else $as_nop
16827  xorg_cv_cc_flag_unknown_warning_option=no
16828fi
16829rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16830fi
16831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16832printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16833	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16834	CFLAGS="$xorg_testset_save_CFLAGS"
16835fi
16836
16837if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16838	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16839		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16840	fi
16841	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16842	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16843printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16844if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16845then :
16846  printf %s "(cached) " >&6
16847else $as_nop
16848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16849/* end confdefs.h.  */
16850int i;
16851_ACEOF
16852if ac_fn_c_try_compile "$LINENO"
16853then :
16854  xorg_cv_cc_flag_unused_command_line_argument=yes
16855else $as_nop
16856  xorg_cv_cc_flag_unused_command_line_argument=no
16857fi
16858rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16859fi
16860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16861printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16862	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16863	CFLAGS="$xorg_testset_save_CFLAGS"
16864fi
16865
16866found="no"
16867
16868	if test $found = "no" ; then
16869		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16870			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16871		fi
16872
16873		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16874			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16875		fi
16876
16877		CFLAGS="$CFLAGS -Wimplicit"
16878
16879		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16880printf %s "checking if $CC supports -Wimplicit... " >&6; }
16881		cacheid=xorg_cv_cc_flag__Wimplicit
16882		if eval test \${$cacheid+y}
16883then :
16884  printf %s "(cached) " >&6
16885else $as_nop
16886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16887/* end confdefs.h.  */
16888int i;
16889int
16890main (void)
16891{
16892
16893  ;
16894  return 0;
16895}
16896_ACEOF
16897if ac_fn_c_try_link "$LINENO"
16898then :
16899  eval $cacheid=yes
16900else $as_nop
16901  eval $cacheid=no
16902fi
16903rm -f core conftest.err conftest.$ac_objext conftest.beam \
16904    conftest$ac_exeext conftest.$ac_ext
16905fi
16906
16907
16908		CFLAGS="$xorg_testset_save_CFLAGS"
16909
16910		eval supported=\$$cacheid
16911		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16912printf "%s\n" "$supported" >&6; }
16913		if test "$supported" = "yes" ; then
16914			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16915			found="yes"
16916		fi
16917	fi
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933xorg_testset_save_CFLAGS="$CFLAGS"
16934
16935if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16936	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16937	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16938printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16939if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16940then :
16941  printf %s "(cached) " >&6
16942else $as_nop
16943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16944/* end confdefs.h.  */
16945int i;
16946_ACEOF
16947if ac_fn_c_try_compile "$LINENO"
16948then :
16949  xorg_cv_cc_flag_unknown_warning_option=yes
16950else $as_nop
16951  xorg_cv_cc_flag_unknown_warning_option=no
16952fi
16953rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16954fi
16955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16956printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16957	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16958	CFLAGS="$xorg_testset_save_CFLAGS"
16959fi
16960
16961if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16962	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16963		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16964	fi
16965	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16966	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16967printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16968if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16969then :
16970  printf %s "(cached) " >&6
16971else $as_nop
16972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16973/* end confdefs.h.  */
16974int i;
16975_ACEOF
16976if ac_fn_c_try_compile "$LINENO"
16977then :
16978  xorg_cv_cc_flag_unused_command_line_argument=yes
16979else $as_nop
16980  xorg_cv_cc_flag_unused_command_line_argument=no
16981fi
16982rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16983fi
16984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16985printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16986	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16987	CFLAGS="$xorg_testset_save_CFLAGS"
16988fi
16989
16990found="no"
16991
16992	if test $found = "no" ; then
16993		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16994			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16995		fi
16996
16997		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16998			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16999		fi
17000
17001		CFLAGS="$CFLAGS -Wnonnull"
17002
17003		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17004printf %s "checking if $CC supports -Wnonnull... " >&6; }
17005		cacheid=xorg_cv_cc_flag__Wnonnull
17006		if eval test \${$cacheid+y}
17007then :
17008  printf %s "(cached) " >&6
17009else $as_nop
17010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17011/* end confdefs.h.  */
17012int i;
17013int
17014main (void)
17015{
17016
17017  ;
17018  return 0;
17019}
17020_ACEOF
17021if ac_fn_c_try_link "$LINENO"
17022then :
17023  eval $cacheid=yes
17024else $as_nop
17025  eval $cacheid=no
17026fi
17027rm -f core conftest.err conftest.$ac_objext conftest.beam \
17028    conftest$ac_exeext conftest.$ac_ext
17029fi
17030
17031
17032		CFLAGS="$xorg_testset_save_CFLAGS"
17033
17034		eval supported=\$$cacheid
17035		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17036printf "%s\n" "$supported" >&6; }
17037		if test "$supported" = "yes" ; then
17038			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17039			found="yes"
17040		fi
17041	fi
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057xorg_testset_save_CFLAGS="$CFLAGS"
17058
17059if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17060	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17061	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17062printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17063if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17064then :
17065  printf %s "(cached) " >&6
17066else $as_nop
17067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17068/* end confdefs.h.  */
17069int i;
17070_ACEOF
17071if ac_fn_c_try_compile "$LINENO"
17072then :
17073  xorg_cv_cc_flag_unknown_warning_option=yes
17074else $as_nop
17075  xorg_cv_cc_flag_unknown_warning_option=no
17076fi
17077rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17078fi
17079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17080printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17081	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17082	CFLAGS="$xorg_testset_save_CFLAGS"
17083fi
17084
17085if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17086	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17087		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17088	fi
17089	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17090	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17091printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17092if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17093then :
17094  printf %s "(cached) " >&6
17095else $as_nop
17096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17097/* end confdefs.h.  */
17098int i;
17099_ACEOF
17100if ac_fn_c_try_compile "$LINENO"
17101then :
17102  xorg_cv_cc_flag_unused_command_line_argument=yes
17103else $as_nop
17104  xorg_cv_cc_flag_unused_command_line_argument=no
17105fi
17106rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17107fi
17108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17109printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17110	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17111	CFLAGS="$xorg_testset_save_CFLAGS"
17112fi
17113
17114found="no"
17115
17116	if test $found = "no" ; then
17117		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17118			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17119		fi
17120
17121		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17122			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17123		fi
17124
17125		CFLAGS="$CFLAGS -Winit-self"
17126
17127		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17128printf %s "checking if $CC supports -Winit-self... " >&6; }
17129		cacheid=xorg_cv_cc_flag__Winit_self
17130		if eval test \${$cacheid+y}
17131then :
17132  printf %s "(cached) " >&6
17133else $as_nop
17134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17135/* end confdefs.h.  */
17136int i;
17137int
17138main (void)
17139{
17140
17141  ;
17142  return 0;
17143}
17144_ACEOF
17145if ac_fn_c_try_link "$LINENO"
17146then :
17147  eval $cacheid=yes
17148else $as_nop
17149  eval $cacheid=no
17150fi
17151rm -f core conftest.err conftest.$ac_objext conftest.beam \
17152    conftest$ac_exeext conftest.$ac_ext
17153fi
17154
17155
17156		CFLAGS="$xorg_testset_save_CFLAGS"
17157
17158		eval supported=\$$cacheid
17159		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17160printf "%s\n" "$supported" >&6; }
17161		if test "$supported" = "yes" ; then
17162			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17163			found="yes"
17164		fi
17165	fi
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181xorg_testset_save_CFLAGS="$CFLAGS"
17182
17183if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17184	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17185	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17186printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17187if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17188then :
17189  printf %s "(cached) " >&6
17190else $as_nop
17191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17192/* end confdefs.h.  */
17193int i;
17194_ACEOF
17195if ac_fn_c_try_compile "$LINENO"
17196then :
17197  xorg_cv_cc_flag_unknown_warning_option=yes
17198else $as_nop
17199  xorg_cv_cc_flag_unknown_warning_option=no
17200fi
17201rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17202fi
17203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17204printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17205	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17206	CFLAGS="$xorg_testset_save_CFLAGS"
17207fi
17208
17209if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17210	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17211		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17212	fi
17213	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17214	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17215printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17216if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17217then :
17218  printf %s "(cached) " >&6
17219else $as_nop
17220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17221/* end confdefs.h.  */
17222int i;
17223_ACEOF
17224if ac_fn_c_try_compile "$LINENO"
17225then :
17226  xorg_cv_cc_flag_unused_command_line_argument=yes
17227else $as_nop
17228  xorg_cv_cc_flag_unused_command_line_argument=no
17229fi
17230rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17231fi
17232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17233printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17234	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17235	CFLAGS="$xorg_testset_save_CFLAGS"
17236fi
17237
17238found="no"
17239
17240	if test $found = "no" ; then
17241		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17242			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17243		fi
17244
17245		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17246			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17247		fi
17248
17249		CFLAGS="$CFLAGS -Wmain"
17250
17251		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17252printf %s "checking if $CC supports -Wmain... " >&6; }
17253		cacheid=xorg_cv_cc_flag__Wmain
17254		if eval test \${$cacheid+y}
17255then :
17256  printf %s "(cached) " >&6
17257else $as_nop
17258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17259/* end confdefs.h.  */
17260int i;
17261int
17262main (void)
17263{
17264
17265  ;
17266  return 0;
17267}
17268_ACEOF
17269if ac_fn_c_try_link "$LINENO"
17270then :
17271  eval $cacheid=yes
17272else $as_nop
17273  eval $cacheid=no
17274fi
17275rm -f core conftest.err conftest.$ac_objext conftest.beam \
17276    conftest$ac_exeext conftest.$ac_ext
17277fi
17278
17279
17280		CFLAGS="$xorg_testset_save_CFLAGS"
17281
17282		eval supported=\$$cacheid
17283		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17284printf "%s\n" "$supported" >&6; }
17285		if test "$supported" = "yes" ; then
17286			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17287			found="yes"
17288		fi
17289	fi
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305xorg_testset_save_CFLAGS="$CFLAGS"
17306
17307if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17308	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17309	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17310printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17311if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17312then :
17313  printf %s "(cached) " >&6
17314else $as_nop
17315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17316/* end confdefs.h.  */
17317int i;
17318_ACEOF
17319if ac_fn_c_try_compile "$LINENO"
17320then :
17321  xorg_cv_cc_flag_unknown_warning_option=yes
17322else $as_nop
17323  xorg_cv_cc_flag_unknown_warning_option=no
17324fi
17325rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17326fi
17327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17328printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17329	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17330	CFLAGS="$xorg_testset_save_CFLAGS"
17331fi
17332
17333if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17334	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17335		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17336	fi
17337	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17338	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17339printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17340if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17341then :
17342  printf %s "(cached) " >&6
17343else $as_nop
17344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17345/* end confdefs.h.  */
17346int i;
17347_ACEOF
17348if ac_fn_c_try_compile "$LINENO"
17349then :
17350  xorg_cv_cc_flag_unused_command_line_argument=yes
17351else $as_nop
17352  xorg_cv_cc_flag_unused_command_line_argument=no
17353fi
17354rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17355fi
17356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17357printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17358	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17359	CFLAGS="$xorg_testset_save_CFLAGS"
17360fi
17361
17362found="no"
17363
17364	if test $found = "no" ; then
17365		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17366			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17367		fi
17368
17369		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17370			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17371		fi
17372
17373		CFLAGS="$CFLAGS -Wmissing-braces"
17374
17375		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17376printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17377		cacheid=xorg_cv_cc_flag__Wmissing_braces
17378		if eval test \${$cacheid+y}
17379then :
17380  printf %s "(cached) " >&6
17381else $as_nop
17382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17383/* end confdefs.h.  */
17384int i;
17385int
17386main (void)
17387{
17388
17389  ;
17390  return 0;
17391}
17392_ACEOF
17393if ac_fn_c_try_link "$LINENO"
17394then :
17395  eval $cacheid=yes
17396else $as_nop
17397  eval $cacheid=no
17398fi
17399rm -f core conftest.err conftest.$ac_objext conftest.beam \
17400    conftest$ac_exeext conftest.$ac_ext
17401fi
17402
17403
17404		CFLAGS="$xorg_testset_save_CFLAGS"
17405
17406		eval supported=\$$cacheid
17407		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17408printf "%s\n" "$supported" >&6; }
17409		if test "$supported" = "yes" ; then
17410			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17411			found="yes"
17412		fi
17413	fi
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429xorg_testset_save_CFLAGS="$CFLAGS"
17430
17431if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17432	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17433	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17434printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17435if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17436then :
17437  printf %s "(cached) " >&6
17438else $as_nop
17439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17440/* end confdefs.h.  */
17441int i;
17442_ACEOF
17443if ac_fn_c_try_compile "$LINENO"
17444then :
17445  xorg_cv_cc_flag_unknown_warning_option=yes
17446else $as_nop
17447  xorg_cv_cc_flag_unknown_warning_option=no
17448fi
17449rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17450fi
17451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17452printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17453	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17454	CFLAGS="$xorg_testset_save_CFLAGS"
17455fi
17456
17457if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17458	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17459		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17460	fi
17461	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17462	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17463printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17464if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17465then :
17466  printf %s "(cached) " >&6
17467else $as_nop
17468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17469/* end confdefs.h.  */
17470int i;
17471_ACEOF
17472if ac_fn_c_try_compile "$LINENO"
17473then :
17474  xorg_cv_cc_flag_unused_command_line_argument=yes
17475else $as_nop
17476  xorg_cv_cc_flag_unused_command_line_argument=no
17477fi
17478rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17479fi
17480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17481printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17482	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17483	CFLAGS="$xorg_testset_save_CFLAGS"
17484fi
17485
17486found="no"
17487
17488	if test $found = "no" ; then
17489		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17490			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17491		fi
17492
17493		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17494			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17495		fi
17496
17497		CFLAGS="$CFLAGS -Wsequence-point"
17498
17499		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17500printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17501		cacheid=xorg_cv_cc_flag__Wsequence_point
17502		if eval test \${$cacheid+y}
17503then :
17504  printf %s "(cached) " >&6
17505else $as_nop
17506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17507/* end confdefs.h.  */
17508int i;
17509int
17510main (void)
17511{
17512
17513  ;
17514  return 0;
17515}
17516_ACEOF
17517if ac_fn_c_try_link "$LINENO"
17518then :
17519  eval $cacheid=yes
17520else $as_nop
17521  eval $cacheid=no
17522fi
17523rm -f core conftest.err conftest.$ac_objext conftest.beam \
17524    conftest$ac_exeext conftest.$ac_ext
17525fi
17526
17527
17528		CFLAGS="$xorg_testset_save_CFLAGS"
17529
17530		eval supported=\$$cacheid
17531		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17532printf "%s\n" "$supported" >&6; }
17533		if test "$supported" = "yes" ; then
17534			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17535			found="yes"
17536		fi
17537	fi
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553xorg_testset_save_CFLAGS="$CFLAGS"
17554
17555if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17556	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17557	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17558printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17559if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17560then :
17561  printf %s "(cached) " >&6
17562else $as_nop
17563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17564/* end confdefs.h.  */
17565int i;
17566_ACEOF
17567if ac_fn_c_try_compile "$LINENO"
17568then :
17569  xorg_cv_cc_flag_unknown_warning_option=yes
17570else $as_nop
17571  xorg_cv_cc_flag_unknown_warning_option=no
17572fi
17573rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17574fi
17575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17576printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17577	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17578	CFLAGS="$xorg_testset_save_CFLAGS"
17579fi
17580
17581if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17582	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17583		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17584	fi
17585	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17586	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17587printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17588if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17589then :
17590  printf %s "(cached) " >&6
17591else $as_nop
17592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17593/* end confdefs.h.  */
17594int i;
17595_ACEOF
17596if ac_fn_c_try_compile "$LINENO"
17597then :
17598  xorg_cv_cc_flag_unused_command_line_argument=yes
17599else $as_nop
17600  xorg_cv_cc_flag_unused_command_line_argument=no
17601fi
17602rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17603fi
17604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17605printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17606	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17607	CFLAGS="$xorg_testset_save_CFLAGS"
17608fi
17609
17610found="no"
17611
17612	if test $found = "no" ; then
17613		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17614			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17615		fi
17616
17617		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17618			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17619		fi
17620
17621		CFLAGS="$CFLAGS -Wreturn-type"
17622
17623		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17624printf %s "checking if $CC supports -Wreturn-type... " >&6; }
17625		cacheid=xorg_cv_cc_flag__Wreturn_type
17626		if eval test \${$cacheid+y}
17627then :
17628  printf %s "(cached) " >&6
17629else $as_nop
17630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17631/* end confdefs.h.  */
17632int i;
17633int
17634main (void)
17635{
17636
17637  ;
17638  return 0;
17639}
17640_ACEOF
17641if ac_fn_c_try_link "$LINENO"
17642then :
17643  eval $cacheid=yes
17644else $as_nop
17645  eval $cacheid=no
17646fi
17647rm -f core conftest.err conftest.$ac_objext conftest.beam \
17648    conftest$ac_exeext conftest.$ac_ext
17649fi
17650
17651
17652		CFLAGS="$xorg_testset_save_CFLAGS"
17653
17654		eval supported=\$$cacheid
17655		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17656printf "%s\n" "$supported" >&6; }
17657		if test "$supported" = "yes" ; then
17658			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17659			found="yes"
17660		fi
17661	fi
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677xorg_testset_save_CFLAGS="$CFLAGS"
17678
17679if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17680	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17681	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17682printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17683if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17684then :
17685  printf %s "(cached) " >&6
17686else $as_nop
17687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17688/* end confdefs.h.  */
17689int i;
17690_ACEOF
17691if ac_fn_c_try_compile "$LINENO"
17692then :
17693  xorg_cv_cc_flag_unknown_warning_option=yes
17694else $as_nop
17695  xorg_cv_cc_flag_unknown_warning_option=no
17696fi
17697rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17698fi
17699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17700printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17701	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17702	CFLAGS="$xorg_testset_save_CFLAGS"
17703fi
17704
17705if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17706	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17707		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17708	fi
17709	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17710	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17711printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17712if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17713then :
17714  printf %s "(cached) " >&6
17715else $as_nop
17716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17717/* end confdefs.h.  */
17718int i;
17719_ACEOF
17720if ac_fn_c_try_compile "$LINENO"
17721then :
17722  xorg_cv_cc_flag_unused_command_line_argument=yes
17723else $as_nop
17724  xorg_cv_cc_flag_unused_command_line_argument=no
17725fi
17726rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17727fi
17728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17729printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17730	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17731	CFLAGS="$xorg_testset_save_CFLAGS"
17732fi
17733
17734found="no"
17735
17736	if test $found = "no" ; then
17737		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17738			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17739		fi
17740
17741		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17742			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17743		fi
17744
17745		CFLAGS="$CFLAGS -Wtrigraphs"
17746
17747		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17748printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
17749		cacheid=xorg_cv_cc_flag__Wtrigraphs
17750		if eval test \${$cacheid+y}
17751then :
17752  printf %s "(cached) " >&6
17753else $as_nop
17754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17755/* end confdefs.h.  */
17756int i;
17757int
17758main (void)
17759{
17760
17761  ;
17762  return 0;
17763}
17764_ACEOF
17765if ac_fn_c_try_link "$LINENO"
17766then :
17767  eval $cacheid=yes
17768else $as_nop
17769  eval $cacheid=no
17770fi
17771rm -f core conftest.err conftest.$ac_objext conftest.beam \
17772    conftest$ac_exeext conftest.$ac_ext
17773fi
17774
17775
17776		CFLAGS="$xorg_testset_save_CFLAGS"
17777
17778		eval supported=\$$cacheid
17779		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17780printf "%s\n" "$supported" >&6; }
17781		if test "$supported" = "yes" ; then
17782			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17783			found="yes"
17784		fi
17785	fi
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801xorg_testset_save_CFLAGS="$CFLAGS"
17802
17803if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17804	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17805	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17806printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17807if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17808then :
17809  printf %s "(cached) " >&6
17810else $as_nop
17811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17812/* end confdefs.h.  */
17813int i;
17814_ACEOF
17815if ac_fn_c_try_compile "$LINENO"
17816then :
17817  xorg_cv_cc_flag_unknown_warning_option=yes
17818else $as_nop
17819  xorg_cv_cc_flag_unknown_warning_option=no
17820fi
17821rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17822fi
17823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17824printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17825	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17826	CFLAGS="$xorg_testset_save_CFLAGS"
17827fi
17828
17829if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17830	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17831		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17832	fi
17833	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17834	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17835printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17836if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17837then :
17838  printf %s "(cached) " >&6
17839else $as_nop
17840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17841/* end confdefs.h.  */
17842int i;
17843_ACEOF
17844if ac_fn_c_try_compile "$LINENO"
17845then :
17846  xorg_cv_cc_flag_unused_command_line_argument=yes
17847else $as_nop
17848  xorg_cv_cc_flag_unused_command_line_argument=no
17849fi
17850rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17851fi
17852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17853printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17854	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17855	CFLAGS="$xorg_testset_save_CFLAGS"
17856fi
17857
17858found="no"
17859
17860	if test $found = "no" ; then
17861		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17862			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17863		fi
17864
17865		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17866			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17867		fi
17868
17869		CFLAGS="$CFLAGS -Warray-bounds"
17870
17871		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17872printf %s "checking if $CC supports -Warray-bounds... " >&6; }
17873		cacheid=xorg_cv_cc_flag__Warray_bounds
17874		if eval test \${$cacheid+y}
17875then :
17876  printf %s "(cached) " >&6
17877else $as_nop
17878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17879/* end confdefs.h.  */
17880int i;
17881int
17882main (void)
17883{
17884
17885  ;
17886  return 0;
17887}
17888_ACEOF
17889if ac_fn_c_try_link "$LINENO"
17890then :
17891  eval $cacheid=yes
17892else $as_nop
17893  eval $cacheid=no
17894fi
17895rm -f core conftest.err conftest.$ac_objext conftest.beam \
17896    conftest$ac_exeext conftest.$ac_ext
17897fi
17898
17899
17900		CFLAGS="$xorg_testset_save_CFLAGS"
17901
17902		eval supported=\$$cacheid
17903		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17904printf "%s\n" "$supported" >&6; }
17905		if test "$supported" = "yes" ; then
17906			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17907			found="yes"
17908		fi
17909	fi
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925xorg_testset_save_CFLAGS="$CFLAGS"
17926
17927if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17928	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17929	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17930printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17931if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17932then :
17933  printf %s "(cached) " >&6
17934else $as_nop
17935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17936/* end confdefs.h.  */
17937int i;
17938_ACEOF
17939if ac_fn_c_try_compile "$LINENO"
17940then :
17941  xorg_cv_cc_flag_unknown_warning_option=yes
17942else $as_nop
17943  xorg_cv_cc_flag_unknown_warning_option=no
17944fi
17945rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17946fi
17947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17948printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17949	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17950	CFLAGS="$xorg_testset_save_CFLAGS"
17951fi
17952
17953if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17954	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17955		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17956	fi
17957	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17958	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17959printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17960if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17961then :
17962  printf %s "(cached) " >&6
17963else $as_nop
17964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17965/* end confdefs.h.  */
17966int i;
17967_ACEOF
17968if ac_fn_c_try_compile "$LINENO"
17969then :
17970  xorg_cv_cc_flag_unused_command_line_argument=yes
17971else $as_nop
17972  xorg_cv_cc_flag_unused_command_line_argument=no
17973fi
17974rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17975fi
17976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17977printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17978	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17979	CFLAGS="$xorg_testset_save_CFLAGS"
17980fi
17981
17982found="no"
17983
17984	if test $found = "no" ; then
17985		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17986			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17987		fi
17988
17989		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17990			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17991		fi
17992
17993		CFLAGS="$CFLAGS -Wwrite-strings"
17994
17995		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17996printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
17997		cacheid=xorg_cv_cc_flag__Wwrite_strings
17998		if eval test \${$cacheid+y}
17999then :
18000  printf %s "(cached) " >&6
18001else $as_nop
18002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18003/* end confdefs.h.  */
18004int i;
18005int
18006main (void)
18007{
18008
18009  ;
18010  return 0;
18011}
18012_ACEOF
18013if ac_fn_c_try_link "$LINENO"
18014then :
18015  eval $cacheid=yes
18016else $as_nop
18017  eval $cacheid=no
18018fi
18019rm -f core conftest.err conftest.$ac_objext conftest.beam \
18020    conftest$ac_exeext conftest.$ac_ext
18021fi
18022
18023
18024		CFLAGS="$xorg_testset_save_CFLAGS"
18025
18026		eval supported=\$$cacheid
18027		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18028printf "%s\n" "$supported" >&6; }
18029		if test "$supported" = "yes" ; then
18030			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18031			found="yes"
18032		fi
18033	fi
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049xorg_testset_save_CFLAGS="$CFLAGS"
18050
18051if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18052	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18053	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18054printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18055if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18056then :
18057  printf %s "(cached) " >&6
18058else $as_nop
18059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18060/* end confdefs.h.  */
18061int i;
18062_ACEOF
18063if ac_fn_c_try_compile "$LINENO"
18064then :
18065  xorg_cv_cc_flag_unknown_warning_option=yes
18066else $as_nop
18067  xorg_cv_cc_flag_unknown_warning_option=no
18068fi
18069rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18070fi
18071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18072printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18073	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18074	CFLAGS="$xorg_testset_save_CFLAGS"
18075fi
18076
18077if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18078	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18079		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18080	fi
18081	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18082	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18083printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18084if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18085then :
18086  printf %s "(cached) " >&6
18087else $as_nop
18088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18089/* end confdefs.h.  */
18090int i;
18091_ACEOF
18092if ac_fn_c_try_compile "$LINENO"
18093then :
18094  xorg_cv_cc_flag_unused_command_line_argument=yes
18095else $as_nop
18096  xorg_cv_cc_flag_unused_command_line_argument=no
18097fi
18098rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18099fi
18100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18101printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18102	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18103	CFLAGS="$xorg_testset_save_CFLAGS"
18104fi
18105
18106found="no"
18107
18108	if test $found = "no" ; then
18109		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18110			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18111		fi
18112
18113		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18114			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18115		fi
18116
18117		CFLAGS="$CFLAGS -Waddress"
18118
18119		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18120printf %s "checking if $CC supports -Waddress... " >&6; }
18121		cacheid=xorg_cv_cc_flag__Waddress
18122		if eval test \${$cacheid+y}
18123then :
18124  printf %s "(cached) " >&6
18125else $as_nop
18126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18127/* end confdefs.h.  */
18128int i;
18129int
18130main (void)
18131{
18132
18133  ;
18134  return 0;
18135}
18136_ACEOF
18137if ac_fn_c_try_link "$LINENO"
18138then :
18139  eval $cacheid=yes
18140else $as_nop
18141  eval $cacheid=no
18142fi
18143rm -f core conftest.err conftest.$ac_objext conftest.beam \
18144    conftest$ac_exeext conftest.$ac_ext
18145fi
18146
18147
18148		CFLAGS="$xorg_testset_save_CFLAGS"
18149
18150		eval supported=\$$cacheid
18151		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18152printf "%s\n" "$supported" >&6; }
18153		if test "$supported" = "yes" ; then
18154			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18155			found="yes"
18156		fi
18157	fi
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173xorg_testset_save_CFLAGS="$CFLAGS"
18174
18175if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18176	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18177	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18178printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18179if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18180then :
18181  printf %s "(cached) " >&6
18182else $as_nop
18183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18184/* end confdefs.h.  */
18185int i;
18186_ACEOF
18187if ac_fn_c_try_compile "$LINENO"
18188then :
18189  xorg_cv_cc_flag_unknown_warning_option=yes
18190else $as_nop
18191  xorg_cv_cc_flag_unknown_warning_option=no
18192fi
18193rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18194fi
18195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18196printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18197	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18198	CFLAGS="$xorg_testset_save_CFLAGS"
18199fi
18200
18201if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18202	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18203		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18204	fi
18205	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18206	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18207printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18208if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18209then :
18210  printf %s "(cached) " >&6
18211else $as_nop
18212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18213/* end confdefs.h.  */
18214int i;
18215_ACEOF
18216if ac_fn_c_try_compile "$LINENO"
18217then :
18218  xorg_cv_cc_flag_unused_command_line_argument=yes
18219else $as_nop
18220  xorg_cv_cc_flag_unused_command_line_argument=no
18221fi
18222rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18223fi
18224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18225printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18226	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18227	CFLAGS="$xorg_testset_save_CFLAGS"
18228fi
18229
18230found="no"
18231
18232	if test $found = "no" ; then
18233		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18234			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18235		fi
18236
18237		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18238			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18239		fi
18240
18241		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18242
18243		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18244printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18245		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18246		if eval test \${$cacheid+y}
18247then :
18248  printf %s "(cached) " >&6
18249else $as_nop
18250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18251/* end confdefs.h.  */
18252int i;
18253int
18254main (void)
18255{
18256
18257  ;
18258  return 0;
18259}
18260_ACEOF
18261if ac_fn_c_try_link "$LINENO"
18262then :
18263  eval $cacheid=yes
18264else $as_nop
18265  eval $cacheid=no
18266fi
18267rm -f core conftest.err conftest.$ac_objext conftest.beam \
18268    conftest$ac_exeext conftest.$ac_ext
18269fi
18270
18271
18272		CFLAGS="$xorg_testset_save_CFLAGS"
18273
18274		eval supported=\$$cacheid
18275		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18276printf "%s\n" "$supported" >&6; }
18277		if test "$supported" = "yes" ; then
18278			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18279			found="yes"
18280		fi
18281	fi
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297xorg_testset_save_CFLAGS="$CFLAGS"
18298
18299if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18300	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18301	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18302printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18303if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18304then :
18305  printf %s "(cached) " >&6
18306else $as_nop
18307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18308/* end confdefs.h.  */
18309int i;
18310_ACEOF
18311if ac_fn_c_try_compile "$LINENO"
18312then :
18313  xorg_cv_cc_flag_unknown_warning_option=yes
18314else $as_nop
18315  xorg_cv_cc_flag_unknown_warning_option=no
18316fi
18317rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18318fi
18319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18320printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18321	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18322	CFLAGS="$xorg_testset_save_CFLAGS"
18323fi
18324
18325if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18326	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18327		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18328	fi
18329	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18330	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18331printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18332if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18333then :
18334  printf %s "(cached) " >&6
18335else $as_nop
18336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18337/* end confdefs.h.  */
18338int i;
18339_ACEOF
18340if ac_fn_c_try_compile "$LINENO"
18341then :
18342  xorg_cv_cc_flag_unused_command_line_argument=yes
18343else $as_nop
18344  xorg_cv_cc_flag_unused_command_line_argument=no
18345fi
18346rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18347fi
18348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18349printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18350	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18351	CFLAGS="$xorg_testset_save_CFLAGS"
18352fi
18353
18354found="no"
18355
18356	if test $found = "no" ; then
18357		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18358			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18359		fi
18360
18361		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18362			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18363		fi
18364
18365		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18366
18367		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18368printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18369		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18370		if eval test \${$cacheid+y}
18371then :
18372  printf %s "(cached) " >&6
18373else $as_nop
18374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18375/* end confdefs.h.  */
18376int i;
18377int
18378main (void)
18379{
18380
18381  ;
18382  return 0;
18383}
18384_ACEOF
18385if ac_fn_c_try_link "$LINENO"
18386then :
18387  eval $cacheid=yes
18388else $as_nop
18389  eval $cacheid=no
18390fi
18391rm -f core conftest.err conftest.$ac_objext conftest.beam \
18392    conftest$ac_exeext conftest.$ac_ext
18393fi
18394
18395
18396		CFLAGS="$xorg_testset_save_CFLAGS"
18397
18398		eval supported=\$$cacheid
18399		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18400printf "%s\n" "$supported" >&6; }
18401		if test "$supported" = "yes" ; then
18402			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18403			found="yes"
18404		fi
18405	fi
18406
18407
18408fi
18409
18410
18411
18412
18413
18414
18415
18416		CWARNFLAGS="$BASE_CFLAGS"
18417		if  test "x$GCC" = xyes ; then
18418		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18419		fi
18420
18421
18422
18423
18424
18425
18426
18427
18428# Check whether --enable-strict-compilation was given.
18429if test ${enable_strict_compilation+y}
18430then :
18431  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18432else $as_nop
18433  STRICT_COMPILE=no
18434fi
18435
18436
18437
18438
18439
18440
18441STRICT_CFLAGS=""
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455xorg_testset_save_CFLAGS="$CFLAGS"
18456
18457if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18458	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18459	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18460printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18461if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18462then :
18463  printf %s "(cached) " >&6
18464else $as_nop
18465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18466/* end confdefs.h.  */
18467int i;
18468_ACEOF
18469if ac_fn_c_try_compile "$LINENO"
18470then :
18471  xorg_cv_cc_flag_unknown_warning_option=yes
18472else $as_nop
18473  xorg_cv_cc_flag_unknown_warning_option=no
18474fi
18475rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18476fi
18477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18478printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18479	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18480	CFLAGS="$xorg_testset_save_CFLAGS"
18481fi
18482
18483if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18484	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18485		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18486	fi
18487	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18488	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18489printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18490if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18491then :
18492  printf %s "(cached) " >&6
18493else $as_nop
18494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18495/* end confdefs.h.  */
18496int i;
18497_ACEOF
18498if ac_fn_c_try_compile "$LINENO"
18499then :
18500  xorg_cv_cc_flag_unused_command_line_argument=yes
18501else $as_nop
18502  xorg_cv_cc_flag_unused_command_line_argument=no
18503fi
18504rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18505fi
18506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18507printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18508	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18509	CFLAGS="$xorg_testset_save_CFLAGS"
18510fi
18511
18512found="no"
18513
18514	if test $found = "no" ; then
18515		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18516			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18517		fi
18518
18519		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18520			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18521		fi
18522
18523		CFLAGS="$CFLAGS -pedantic"
18524
18525		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18526printf %s "checking if $CC supports -pedantic... " >&6; }
18527		cacheid=xorg_cv_cc_flag__pedantic
18528		if eval test \${$cacheid+y}
18529then :
18530  printf %s "(cached) " >&6
18531else $as_nop
18532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18533/* end confdefs.h.  */
18534int i;
18535int
18536main (void)
18537{
18538
18539  ;
18540  return 0;
18541}
18542_ACEOF
18543if ac_fn_c_try_link "$LINENO"
18544then :
18545  eval $cacheid=yes
18546else $as_nop
18547  eval $cacheid=no
18548fi
18549rm -f core conftest.err conftest.$ac_objext conftest.beam \
18550    conftest$ac_exeext conftest.$ac_ext
18551fi
18552
18553
18554		CFLAGS="$xorg_testset_save_CFLAGS"
18555
18556		eval supported=\$$cacheid
18557		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18558printf "%s\n" "$supported" >&6; }
18559		if test "$supported" = "yes" ; then
18560			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18561			found="yes"
18562		fi
18563	fi
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579xorg_testset_save_CFLAGS="$CFLAGS"
18580
18581if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18582	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18583	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18584printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18585if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18586then :
18587  printf %s "(cached) " >&6
18588else $as_nop
18589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18590/* end confdefs.h.  */
18591int i;
18592_ACEOF
18593if ac_fn_c_try_compile "$LINENO"
18594then :
18595  xorg_cv_cc_flag_unknown_warning_option=yes
18596else $as_nop
18597  xorg_cv_cc_flag_unknown_warning_option=no
18598fi
18599rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18600fi
18601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18602printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18603	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18604	CFLAGS="$xorg_testset_save_CFLAGS"
18605fi
18606
18607if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18608	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18609		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18610	fi
18611	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18612	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18613printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18614if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18615then :
18616  printf %s "(cached) " >&6
18617else $as_nop
18618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18619/* end confdefs.h.  */
18620int i;
18621_ACEOF
18622if ac_fn_c_try_compile "$LINENO"
18623then :
18624  xorg_cv_cc_flag_unused_command_line_argument=yes
18625else $as_nop
18626  xorg_cv_cc_flag_unused_command_line_argument=no
18627fi
18628rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18629fi
18630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18631printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18632	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18633	CFLAGS="$xorg_testset_save_CFLAGS"
18634fi
18635
18636found="no"
18637
18638	if test $found = "no" ; then
18639		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18640			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18641		fi
18642
18643		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18644			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18645		fi
18646
18647		CFLAGS="$CFLAGS -Werror"
18648
18649		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18650printf %s "checking if $CC supports -Werror... " >&6; }
18651		cacheid=xorg_cv_cc_flag__Werror
18652		if eval test \${$cacheid+y}
18653then :
18654  printf %s "(cached) " >&6
18655else $as_nop
18656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18657/* end confdefs.h.  */
18658int i;
18659int
18660main (void)
18661{
18662
18663  ;
18664  return 0;
18665}
18666_ACEOF
18667if ac_fn_c_try_link "$LINENO"
18668then :
18669  eval $cacheid=yes
18670else $as_nop
18671  eval $cacheid=no
18672fi
18673rm -f core conftest.err conftest.$ac_objext conftest.beam \
18674    conftest$ac_exeext conftest.$ac_ext
18675fi
18676
18677
18678		CFLAGS="$xorg_testset_save_CFLAGS"
18679
18680		eval supported=\$$cacheid
18681		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18682printf "%s\n" "$supported" >&6; }
18683		if test "$supported" = "yes" ; then
18684			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18685			found="yes"
18686		fi
18687	fi
18688
18689	if test $found = "no" ; then
18690		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18691			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18692		fi
18693
18694		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18695			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18696		fi
18697
18698		CFLAGS="$CFLAGS -errwarn"
18699
18700		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18701printf %s "checking if $CC supports -errwarn... " >&6; }
18702		cacheid=xorg_cv_cc_flag__errwarn
18703		if eval test \${$cacheid+y}
18704then :
18705  printf %s "(cached) " >&6
18706else $as_nop
18707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18708/* end confdefs.h.  */
18709int i;
18710int
18711main (void)
18712{
18713
18714  ;
18715  return 0;
18716}
18717_ACEOF
18718if ac_fn_c_try_link "$LINENO"
18719then :
18720  eval $cacheid=yes
18721else $as_nop
18722  eval $cacheid=no
18723fi
18724rm -f core conftest.err conftest.$ac_objext conftest.beam \
18725    conftest$ac_exeext conftest.$ac_ext
18726fi
18727
18728
18729		CFLAGS="$xorg_testset_save_CFLAGS"
18730
18731		eval supported=\$$cacheid
18732		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18733printf "%s\n" "$supported" >&6; }
18734		if test "$supported" = "yes" ; then
18735			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18736			found="yes"
18737		fi
18738	fi
18739
18740
18741
18742# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18743# activate it with -Werror, so we add it here explicitly.
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757xorg_testset_save_CFLAGS="$CFLAGS"
18758
18759if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18760	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18761	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18762printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18763if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18764then :
18765  printf %s "(cached) " >&6
18766else $as_nop
18767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18768/* end confdefs.h.  */
18769int i;
18770_ACEOF
18771if ac_fn_c_try_compile "$LINENO"
18772then :
18773  xorg_cv_cc_flag_unknown_warning_option=yes
18774else $as_nop
18775  xorg_cv_cc_flag_unknown_warning_option=no
18776fi
18777rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18778fi
18779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18780printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18781	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18782	CFLAGS="$xorg_testset_save_CFLAGS"
18783fi
18784
18785if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18786	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18787		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18788	fi
18789	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18790	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18791printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18792if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18793then :
18794  printf %s "(cached) " >&6
18795else $as_nop
18796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18797/* end confdefs.h.  */
18798int i;
18799_ACEOF
18800if ac_fn_c_try_compile "$LINENO"
18801then :
18802  xorg_cv_cc_flag_unused_command_line_argument=yes
18803else $as_nop
18804  xorg_cv_cc_flag_unused_command_line_argument=no
18805fi
18806rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18807fi
18808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18809printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18810	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18811	CFLAGS="$xorg_testset_save_CFLAGS"
18812fi
18813
18814found="no"
18815
18816	if test $found = "no" ; then
18817		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18818			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18819		fi
18820
18821		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18822			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18823		fi
18824
18825		CFLAGS="$CFLAGS -Werror=attributes"
18826
18827		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18828printf %s "checking if $CC supports -Werror=attributes... " >&6; }
18829		cacheid=xorg_cv_cc_flag__Werror_attributes
18830		if eval test \${$cacheid+y}
18831then :
18832  printf %s "(cached) " >&6
18833else $as_nop
18834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18835/* end confdefs.h.  */
18836int i;
18837int
18838main (void)
18839{
18840
18841  ;
18842  return 0;
18843}
18844_ACEOF
18845if ac_fn_c_try_link "$LINENO"
18846then :
18847  eval $cacheid=yes
18848else $as_nop
18849  eval $cacheid=no
18850fi
18851rm -f core conftest.err conftest.$ac_objext conftest.beam \
18852    conftest$ac_exeext conftest.$ac_ext
18853fi
18854
18855
18856		CFLAGS="$xorg_testset_save_CFLAGS"
18857
18858		eval supported=\$$cacheid
18859		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18860printf "%s\n" "$supported" >&6; }
18861		if test "$supported" = "yes" ; then
18862			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18863			found="yes"
18864		fi
18865	fi
18866
18867
18868
18869if test "x$STRICT_COMPILE" = "xyes"; then
18870    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18871    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18872fi
18873
18874
18875
18876
18877
18878
18879cat >>confdefs.h <<_ACEOF
18880#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18881_ACEOF
18882
18883	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18884	if test "x$PVM" = "x"; then
18885		PVM="0"
18886	fi
18887
18888printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
18889
18890	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18891	if test "x$PVP" = "x"; then
18892		PVP="0"
18893	fi
18894
18895printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
18896
18897
18898
18899CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
18900mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18901|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
18902touch \$(top_srcdir)/ChangeLog; \
18903echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
18904
18905
18906
18907
18908macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18909INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18910mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18911|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
18912touch \$(top_srcdir)/INSTALL; \
18913echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
18914
18915
18916
18917
18918
18919
18920case $host_os in
18921    solaris*)
18922        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
18923        # check for a man page file found in later versions that use
18924        # traditional section numbers instead
18925        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
18926printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
18927if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
18928then :
18929  printf %s "(cached) " >&6
18930else $as_nop
18931  test "$cross_compiling" = yes &&
18932  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18933if test -r "/usr/share/man/man7/attributes.7"; then
18934  ac_cv_file__usr_share_man_man7_attributes_7=yes
18935else
18936  ac_cv_file__usr_share_man_man7_attributes_7=no
18937fi
18938fi
18939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
18940printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
18941if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
18942then :
18943  SYSV_MAN_SECTIONS=false
18944else $as_nop
18945  SYSV_MAN_SECTIONS=true
18946fi
18947
18948        ;;
18949    *) SYSV_MAN_SECTIONS=false ;;
18950esac
18951
18952if test x$APP_MAN_SUFFIX = x    ; then
18953    APP_MAN_SUFFIX=1
18954fi
18955if test x$APP_MAN_DIR = x    ; then
18956    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18957fi
18958
18959if test x$LIB_MAN_SUFFIX = x    ; then
18960    LIB_MAN_SUFFIX=3
18961fi
18962if test x$LIB_MAN_DIR = x    ; then
18963    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18964fi
18965
18966if test x$FILE_MAN_SUFFIX = x    ; then
18967    case $SYSV_MAN_SECTIONS in
18968	true)				FILE_MAN_SUFFIX=4  ;;
18969	*)				FILE_MAN_SUFFIX=5  ;;
18970    esac
18971fi
18972if test x$FILE_MAN_DIR = x    ; then
18973    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18974fi
18975
18976if test x$MISC_MAN_SUFFIX = x    ; then
18977    case $SYSV_MAN_SECTIONS in
18978	true)				MISC_MAN_SUFFIX=5  ;;
18979	*)				MISC_MAN_SUFFIX=7  ;;
18980    esac
18981fi
18982if test x$MISC_MAN_DIR = x    ; then
18983    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18984fi
18985
18986if test x$DRIVER_MAN_SUFFIX = x    ; then
18987    case $SYSV_MAN_SECTIONS in
18988	true)				DRIVER_MAN_SUFFIX=7  ;;
18989	*)				DRIVER_MAN_SUFFIX=4  ;;
18990    esac
18991fi
18992if test x$DRIVER_MAN_DIR = x    ; then
18993    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18994fi
18995
18996if test x$ADMIN_MAN_SUFFIX = x    ; then
18997    case $SYSV_MAN_SECTIONS in
18998	true)				ADMIN_MAN_SUFFIX=1m ;;
18999	*)				ADMIN_MAN_SUFFIX=8  ;;
19000    esac
19001fi
19002if test x$ADMIN_MAN_DIR = x    ; then
19003    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19004fi
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020XORG_MAN_PAGE="X Version 11"
19021
19022MAN_SUBSTS="\
19023	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19024	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19025	-e 's|__xservername__|Xorg|g' \
19026	-e 's|__xconfigfile__|xorg.conf|g' \
19027	-e 's|__projectroot__|\$(prefix)|g' \
19028	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
19029	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19030	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19031	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19032	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19033	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19034	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19035
19036
19037
19038# Check whether --enable-silent-rules was given.
19039if test ${enable_silent_rules+y}
19040then :
19041  enableval=$enable_silent_rules;
19042fi
19043
19044case $enable_silent_rules in # (((
19045  yes) AM_DEFAULT_VERBOSITY=0;;
19046   no) AM_DEFAULT_VERBOSITY=1;;
19047    *) AM_DEFAULT_VERBOSITY=0;;
19048esac
19049am_make=${MAKE-make}
19050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19051printf %s "checking whether $am_make supports nested variables... " >&6; }
19052if test ${am_cv_make_support_nested_variables+y}
19053then :
19054  printf %s "(cached) " >&6
19055else $as_nop
19056  if printf "%s\n" 'TRUE=$(BAR$(V))
19057BAR0=false
19058BAR1=true
19059V=1
19060am__doit:
19061	@$(TRUE)
19062.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19063  am_cv_make_support_nested_variables=yes
19064else
19065  am_cv_make_support_nested_variables=no
19066fi
19067fi
19068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19069printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19070if test $am_cv_make_support_nested_variables = yes; then
19071    AM_V='$(V)'
19072  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19073else
19074  AM_V=$AM_DEFAULT_VERBOSITY
19075  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19076fi
19077AM_BACKSLASH='\'
19078
19079
19080
19081# Set library version for Xft.h from package version set in AC_INIT
19082# copied from PACKAGE_VERSION_* settings in XORG_VERSION
19083ac_config_headers="$ac_config_headers include/X11/Xft/Xft.h"
19084
19085
19086cat >>confdefs.h <<_ACEOF
19087#define XFT_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19088_ACEOF
19089
19090
19091cat >>confdefs.h <<_ACEOF
19092#define XFT_MINOR `echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19093_ACEOF
19094
19095
19096cat >>confdefs.h <<_ACEOF
19097#define XFT_REVISION `echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19098_ACEOF
19099
19100
19101XFT_LT_VERSION=`echo $PACKAGE_VERSION | tr '.' ':'`
19102
19103
19104#
19105# Check for Xrender
19106#
19107
19108pkg_failed=no
19109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRENDER" >&5
19110printf %s "checking for XRENDER... " >&6; }
19111
19112if test -n "$XRENDER_CFLAGS"; then
19113    pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS"
19114 elif test -n "$PKG_CONFIG"; then
19115    if test -n "$PKG_CONFIG" && \
19116    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 x11\""; } >&5
19117  ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 x11") 2>&5
19118  ac_status=$?
19119  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19120  test $ac_status = 0; }; then
19121  pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender >= 0.8.2 x11" 2>/dev/null`
19122		      test "x$?" != "x0" && pkg_failed=yes
19123else
19124  pkg_failed=yes
19125fi
19126 else
19127    pkg_failed=untried
19128fi
19129if test -n "$XRENDER_LIBS"; then
19130    pkg_cv_XRENDER_LIBS="$XRENDER_LIBS"
19131 elif test -n "$PKG_CONFIG"; then
19132    if test -n "$PKG_CONFIG" && \
19133    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 x11\""; } >&5
19134  ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 x11") 2>&5
19135  ac_status=$?
19136  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19137  test $ac_status = 0; }; then
19138  pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender >= 0.8.2 x11" 2>/dev/null`
19139		      test "x$?" != "x0" && pkg_failed=yes
19140else
19141  pkg_failed=yes
19142fi
19143 else
19144    pkg_failed=untried
19145fi
19146
19147
19148
19149if test $pkg_failed = yes; then
19150   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19151printf "%s\n" "no" >&6; }
19152
19153if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19154        _pkg_short_errors_supported=yes
19155else
19156        _pkg_short_errors_supported=no
19157fi
19158        if test $_pkg_short_errors_supported = yes; then
19159	        XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrender >= 0.8.2 x11" 2>&1`
19160        else
19161	        XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrender >= 0.8.2 x11" 2>&1`
19162        fi
19163	# Put the nasty error message in config.log where it belongs
19164	echo "$XRENDER_PKG_ERRORS" >&5
19165
19166	as_fn_error $? "Package requirements (xrender >= 0.8.2 x11) were not met:
19167
19168$XRENDER_PKG_ERRORS
19169
19170Consider adjusting the PKG_CONFIG_PATH environment variable if you
19171installed software in a non-standard prefix.
19172
19173Alternatively, you may set the environment variables XRENDER_CFLAGS
19174and XRENDER_LIBS to avoid the need to call pkg-config.
19175See the pkg-config man page for more details." "$LINENO" 5
19176elif test $pkg_failed = untried; then
19177     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19178printf "%s\n" "no" >&6; }
19179	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19180printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19181as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19182is in your PATH or set the PKG_CONFIG environment variable to the full
19183path to pkg-config.
19184
19185Alternatively, you may set the environment variables XRENDER_CFLAGS
19186and XRENDER_LIBS to avoid the need to call pkg-config.
19187See the pkg-config man page for more details.
19188
19189To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19190See \`config.log' for more details" "$LINENO" 5; }
19191else
19192	XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS
19193	XRENDER_LIBS=$pkg_cv_XRENDER_LIBS
19194        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19195printf "%s\n" "yes" >&6; }
19196
19197fi
19198
19199# Check freetype configuration
19200
19201pkg_failed=no
19202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
19203printf %s "checking for FREETYPE... " >&6; }
19204
19205if test -n "$FREETYPE_CFLAGS"; then
19206    pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
19207 elif test -n "$PKG_CONFIG"; then
19208    if test -n "$PKG_CONFIG" && \
19209    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.1.6\""; } >&5
19210  ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.1.6") 2>&5
19211  ac_status=$?
19212  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19213  test $ac_status = 0; }; then
19214  pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.1.6" 2>/dev/null`
19215		      test "x$?" != "x0" && pkg_failed=yes
19216else
19217  pkg_failed=yes
19218fi
19219 else
19220    pkg_failed=untried
19221fi
19222if test -n "$FREETYPE_LIBS"; then
19223    pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
19224 elif test -n "$PKG_CONFIG"; then
19225    if test -n "$PKG_CONFIG" && \
19226    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.1.6\""; } >&5
19227  ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.1.6") 2>&5
19228  ac_status=$?
19229  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19230  test $ac_status = 0; }; then
19231  pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.1.6" 2>/dev/null`
19232		      test "x$?" != "x0" && pkg_failed=yes
19233else
19234  pkg_failed=yes
19235fi
19236 else
19237    pkg_failed=untried
19238fi
19239
19240
19241
19242if test $pkg_failed = yes; then
19243   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19244printf "%s\n" "no" >&6; }
19245
19246if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19247        _pkg_short_errors_supported=yes
19248else
19249        _pkg_short_errors_supported=no
19250fi
19251        if test $_pkg_short_errors_supported = yes; then
19252	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2 >= 2.1.6" 2>&1`
19253        else
19254	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2 >= 2.1.6" 2>&1`
19255        fi
19256	# Put the nasty error message in config.log where it belongs
19257	echo "$FREETYPE_PKG_ERRORS" >&5
19258
19259	as_fn_error $? "Package requirements (freetype2 >= 2.1.6) were not met:
19260
19261$FREETYPE_PKG_ERRORS
19262
19263Consider adjusting the PKG_CONFIG_PATH environment variable if you
19264installed software in a non-standard prefix.
19265
19266Alternatively, you may set the environment variables FREETYPE_CFLAGS
19267and FREETYPE_LIBS to avoid the need to call pkg-config.
19268See the pkg-config man page for more details." "$LINENO" 5
19269elif test $pkg_failed = untried; then
19270     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19271printf "%s\n" "no" >&6; }
19272	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19273printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19274as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19275is in your PATH or set the PKG_CONFIG environment variable to the full
19276path to pkg-config.
19277
19278Alternatively, you may set the environment variables FREETYPE_CFLAGS
19279and FREETYPE_LIBS to avoid the need to call pkg-config.
19280See the pkg-config man page for more details.
19281
19282To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19283See \`config.log' for more details" "$LINENO" 5; }
19284else
19285	FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
19286	FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
19287        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19288printf "%s\n" "yes" >&6; }
19289
19290fi
19291
19292# Check fontconfig configuration
19293
19294pkg_failed=no
19295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
19296printf %s "checking for FONTCONFIG... " >&6; }
19297
19298if test -n "$FONTCONFIG_CFLAGS"; then
19299    pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
19300 elif test -n "$PKG_CONFIG"; then
19301    if test -n "$PKG_CONFIG" && \
19302    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.5.92\""; } >&5
19303  ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.5.92") 2>&5
19304  ac_status=$?
19305  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19306  test $ac_status = 0; }; then
19307  pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.5.92" 2>/dev/null`
19308		      test "x$?" != "x0" && pkg_failed=yes
19309else
19310  pkg_failed=yes
19311fi
19312 else
19313    pkg_failed=untried
19314fi
19315if test -n "$FONTCONFIG_LIBS"; then
19316    pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
19317 elif test -n "$PKG_CONFIG"; then
19318    if test -n "$PKG_CONFIG" && \
19319    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.5.92\""; } >&5
19320  ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.5.92") 2>&5
19321  ac_status=$?
19322  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19323  test $ac_status = 0; }; then
19324  pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.5.92" 2>/dev/null`
19325		      test "x$?" != "x0" && pkg_failed=yes
19326else
19327  pkg_failed=yes
19328fi
19329 else
19330    pkg_failed=untried
19331fi
19332
19333
19334
19335if test $pkg_failed = yes; then
19336   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19337printf "%s\n" "no" >&6; }
19338
19339if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19340        _pkg_short_errors_supported=yes
19341else
19342        _pkg_short_errors_supported=no
19343fi
19344        if test $_pkg_short_errors_supported = yes; then
19345	        FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.5.92" 2>&1`
19346        else
19347	        FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.5.92" 2>&1`
19348        fi
19349	# Put the nasty error message in config.log where it belongs
19350	echo "$FONTCONFIG_PKG_ERRORS" >&5
19351
19352	as_fn_error $? "Package requirements (fontconfig >= 2.5.92) were not met:
19353
19354$FONTCONFIG_PKG_ERRORS
19355
19356Consider adjusting the PKG_CONFIG_PATH environment variable if you
19357installed software in a non-standard prefix.
19358
19359Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
19360and FONTCONFIG_LIBS to avoid the need to call pkg-config.
19361See the pkg-config man page for more details." "$LINENO" 5
19362elif test $pkg_failed = untried; then
19363     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19364printf "%s\n" "no" >&6; }
19365	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19366printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19367as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19368is in your PATH or set the PKG_CONFIG environment variable to the full
19369path to pkg-config.
19370
19371Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
19372and FONTCONFIG_LIBS to avoid the need to call pkg-config.
19373See the pkg-config man page for more details.
19374
19375To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19376See \`config.log' for more details" "$LINENO" 5; }
19377else
19378	FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
19379	FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
19380        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19381printf "%s\n" "yes" >&6; }
19382
19383fi
19384
19385
19386
19387
19388
19389
19390
19391
19392if test "$VERSION" = "" ; then
19393       VERSION=$PACKAGE_VERSION;
19394fi
19395
19396ac_config_files="$ac_config_files Makefile xft.pc src/Makefile man/Makefile"
19397
19398cat >confcache <<\_ACEOF
19399# This file is a shell script that caches the results of configure
19400# tests run on this system so they can be shared between configure
19401# scripts and configure runs, see configure's option --config-cache.
19402# It is not useful on other systems.  If it contains results you don't
19403# want to keep, you may remove or edit it.
19404#
19405# config.status only pays attention to the cache file if you give it
19406# the --recheck option to rerun configure.
19407#
19408# `ac_cv_env_foo' variables (set or unset) will be overridden when
19409# loading this file, other *unset* `ac_cv_foo' will be assigned the
19410# following values.
19411
19412_ACEOF
19413
19414# The following way of writing the cache mishandles newlines in values,
19415# but we know of no workaround that is simple, portable, and efficient.
19416# So, we kill variables containing newlines.
19417# Ultrix sh set writes to stderr and can't be redirected directly,
19418# and sets the high bit in the cache file unless we assign to the vars.
19419(
19420  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19421    eval ac_val=\$$ac_var
19422    case $ac_val in #(
19423    *${as_nl}*)
19424      case $ac_var in #(
19425      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19426printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19427      esac
19428      case $ac_var in #(
19429      _ | IFS | as_nl) ;; #(
19430      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19431      *) { eval $ac_var=; unset $ac_var;} ;;
19432      esac ;;
19433    esac
19434  done
19435
19436  (set) 2>&1 |
19437    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19438    *${as_nl}ac_space=\ *)
19439      # `set' does not quote correctly, so add quotes: double-quote
19440      # substitution turns \\\\ into \\, and sed turns \\ into \.
19441      sed -n \
19442	"s/'/'\\\\''/g;
19443	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19444      ;; #(
19445    *)
19446      # `set' quotes correctly as required by POSIX, so do not add quotes.
19447      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19448      ;;
19449    esac |
19450    sort
19451) |
19452  sed '
19453     /^ac_cv_env_/b end
19454     t clear
19455     :clear
19456     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19457     t end
19458     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19459     :end' >>confcache
19460if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19461  if test -w "$cache_file"; then
19462    if test "x$cache_file" != "x/dev/null"; then
19463      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19464printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19465      if test ! -f "$cache_file" || test -h "$cache_file"; then
19466	cat confcache >"$cache_file"
19467      else
19468        case $cache_file in #(
19469        */* | ?:*)
19470	  mv -f confcache "$cache_file"$$ &&
19471	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19472        *)
19473	  mv -f confcache "$cache_file" ;;
19474	esac
19475      fi
19476    fi
19477  else
19478    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19479printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19480  fi
19481fi
19482rm -f confcache
19483
19484test "x$prefix" = xNONE && prefix=$ac_default_prefix
19485# Let make expand exec_prefix.
19486test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19487
19488DEFS=-DHAVE_CONFIG_H
19489
19490ac_libobjs=
19491ac_ltlibobjs=
19492U=
19493for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19494  # 1. Remove the extension, and $U if already installed.
19495  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19496  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19497  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19498  #    will be set to the directory where LIBOBJS objects are built.
19499  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19500  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19501done
19502LIBOBJS=$ac_libobjs
19503
19504LTLIBOBJS=$ac_ltlibobjs
19505
19506
19507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19508printf %s "checking that generated files are newer than configure... " >&6; }
19509   if test -n "$am_sleep_pid"; then
19510     # Hide warnings about reused PIDs.
19511     wait $am_sleep_pid 2>/dev/null
19512   fi
19513   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19514printf "%s\n" "done" >&6; }
19515 if test -n "$EXEEXT"; then
19516  am__EXEEXT_TRUE=
19517  am__EXEEXT_FALSE='#'
19518else
19519  am__EXEEXT_TRUE='#'
19520  am__EXEEXT_FALSE=
19521fi
19522
19523if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19524  as_fn_error $? "conditional \"AMDEP\" was never defined.
19525Usually this means the macro was only invoked conditionally." "$LINENO" 5
19526fi
19527if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19528  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19529Usually this means the macro was only invoked conditionally." "$LINENO" 5
19530fi
19531
19532: "${CONFIG_STATUS=./config.status}"
19533ac_write_fail=0
19534ac_clean_files_save=$ac_clean_files
19535ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19537printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19538as_write_fail=0
19539cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19540#! $SHELL
19541# Generated by $as_me.
19542# Run this file to recreate the current configuration.
19543# Compiler output produced by configure, useful for debugging
19544# configure, is in config.log if it exists.
19545
19546debug=false
19547ac_cs_recheck=false
19548ac_cs_silent=false
19549
19550SHELL=\${CONFIG_SHELL-$SHELL}
19551export SHELL
19552_ASEOF
19553cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19554## -------------------- ##
19555## M4sh Initialization. ##
19556## -------------------- ##
19557
19558# Be more Bourne compatible
19559DUALCASE=1; export DUALCASE # for MKS sh
19560as_nop=:
19561if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19562then :
19563  emulate sh
19564  NULLCMD=:
19565  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19566  # is contrary to our usage.  Disable this feature.
19567  alias -g '${1+"$@"}'='"$@"'
19568  setopt NO_GLOB_SUBST
19569else $as_nop
19570  case `(set -o) 2>/dev/null` in #(
19571  *posix*) :
19572    set -o posix ;; #(
19573  *) :
19574     ;;
19575esac
19576fi
19577
19578
19579
19580# Reset variables that may have inherited troublesome values from
19581# the environment.
19582
19583# IFS needs to be set, to space, tab, and newline, in precisely that order.
19584# (If _AS_PATH_WALK were called with IFS unset, it would have the
19585# side effect of setting IFS to empty, thus disabling word splitting.)
19586# Quoting is to prevent editors from complaining about space-tab.
19587as_nl='
19588'
19589export as_nl
19590IFS=" ""	$as_nl"
19591
19592PS1='$ '
19593PS2='> '
19594PS4='+ '
19595
19596# Ensure predictable behavior from utilities with locale-dependent output.
19597LC_ALL=C
19598export LC_ALL
19599LANGUAGE=C
19600export LANGUAGE
19601
19602# We cannot yet rely on "unset" to work, but we need these variables
19603# to be unset--not just set to an empty or harmless value--now, to
19604# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
19605# also avoids known problems related to "unset" and subshell syntax
19606# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19607for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19608do eval test \${$as_var+y} \
19609  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19610done
19611
19612# Ensure that fds 0, 1, and 2 are open.
19613if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19614if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19615if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
19616
19617# The user is always right.
19618if ${PATH_SEPARATOR+false} :; then
19619  PATH_SEPARATOR=:
19620  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19621    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19622      PATH_SEPARATOR=';'
19623  }
19624fi
19625
19626
19627# Find who we are.  Look in the path if we contain no directory separator.
19628as_myself=
19629case $0 in #((
19630  *[\\/]* ) as_myself=$0 ;;
19631  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19632for as_dir in $PATH
19633do
19634  IFS=$as_save_IFS
19635  case $as_dir in #(((
19636    '') as_dir=./ ;;
19637    */) ;;
19638    *) as_dir=$as_dir/ ;;
19639  esac
19640    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19641  done
19642IFS=$as_save_IFS
19643
19644     ;;
19645esac
19646# We did not find ourselves, most probably we were run as `sh COMMAND'
19647# in which case we are not to be found in the path.
19648if test "x$as_myself" = x; then
19649  as_myself=$0
19650fi
19651if test ! -f "$as_myself"; then
19652  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19653  exit 1
19654fi
19655
19656
19657
19658# as_fn_error STATUS ERROR [LINENO LOG_FD]
19659# ----------------------------------------
19660# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19661# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19662# script with STATUS, using 1 if that was 0.
19663as_fn_error ()
19664{
19665  as_status=$1; test $as_status -eq 0 && as_status=1
19666  if test "$4"; then
19667    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19668    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19669  fi
19670  printf "%s\n" "$as_me: error: $2" >&2
19671  as_fn_exit $as_status
19672} # as_fn_error
19673
19674
19675
19676# as_fn_set_status STATUS
19677# -----------------------
19678# Set $? to STATUS, without forking.
19679as_fn_set_status ()
19680{
19681  return $1
19682} # as_fn_set_status
19683
19684# as_fn_exit STATUS
19685# -----------------
19686# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19687as_fn_exit ()
19688{
19689  set +e
19690  as_fn_set_status $1
19691  exit $1
19692} # as_fn_exit
19693
19694# as_fn_unset VAR
19695# ---------------
19696# Portably unset VAR.
19697as_fn_unset ()
19698{
19699  { eval $1=; unset $1;}
19700}
19701as_unset=as_fn_unset
19702
19703# as_fn_append VAR VALUE
19704# ----------------------
19705# Append the text in VALUE to the end of the definition contained in VAR. Take
19706# advantage of any shell optimizations that allow amortized linear growth over
19707# repeated appends, instead of the typical quadratic growth present in naive
19708# implementations.
19709if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19710then :
19711  eval 'as_fn_append ()
19712  {
19713    eval $1+=\$2
19714  }'
19715else $as_nop
19716  as_fn_append ()
19717  {
19718    eval $1=\$$1\$2
19719  }
19720fi # as_fn_append
19721
19722# as_fn_arith ARG...
19723# ------------------
19724# Perform arithmetic evaluation on the ARGs, and store the result in the
19725# global $as_val. Take advantage of shells that can avoid forks. The arguments
19726# must be portable across $(()) and expr.
19727if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19728then :
19729  eval 'as_fn_arith ()
19730  {
19731    as_val=$(( $* ))
19732  }'
19733else $as_nop
19734  as_fn_arith ()
19735  {
19736    as_val=`expr "$@" || test $? -eq 1`
19737  }
19738fi # as_fn_arith
19739
19740
19741if expr a : '\(a\)' >/dev/null 2>&1 &&
19742   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19743  as_expr=expr
19744else
19745  as_expr=false
19746fi
19747
19748if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19749  as_basename=basename
19750else
19751  as_basename=false
19752fi
19753
19754if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19755  as_dirname=dirname
19756else
19757  as_dirname=false
19758fi
19759
19760as_me=`$as_basename -- "$0" ||
19761$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19762	 X"$0" : 'X\(//\)$' \| \
19763	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19764printf "%s\n" X/"$0" |
19765    sed '/^.*\/\([^/][^/]*\)\/*$/{
19766	    s//\1/
19767	    q
19768	  }
19769	  /^X\/\(\/\/\)$/{
19770	    s//\1/
19771	    q
19772	  }
19773	  /^X\/\(\/\).*/{
19774	    s//\1/
19775	    q
19776	  }
19777	  s/.*/./; q'`
19778
19779# Avoid depending upon Character Ranges.
19780as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19781as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19782as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19783as_cr_digits='0123456789'
19784as_cr_alnum=$as_cr_Letters$as_cr_digits
19785
19786
19787# Determine whether it's possible to make 'echo' print without a newline.
19788# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19789# for compatibility with existing Makefiles.
19790ECHO_C= ECHO_N= ECHO_T=
19791case `echo -n x` in #(((((
19792-n*)
19793  case `echo 'xy\c'` in
19794  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19795  xy)  ECHO_C='\c';;
19796  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19797       ECHO_T='	';;
19798  esac;;
19799*)
19800  ECHO_N='-n';;
19801esac
19802
19803# For backward compatibility with old third-party macros, we provide
19804# the shell variables $as_echo and $as_echo_n.  New code should use
19805# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19806as_echo='printf %s\n'
19807as_echo_n='printf %s'
19808
19809rm -f conf$$ conf$$.exe conf$$.file
19810if test -d conf$$.dir; then
19811  rm -f conf$$.dir/conf$$.file
19812else
19813  rm -f conf$$.dir
19814  mkdir conf$$.dir 2>/dev/null
19815fi
19816if (echo >conf$$.file) 2>/dev/null; then
19817  if ln -s conf$$.file conf$$ 2>/dev/null; then
19818    as_ln_s='ln -s'
19819    # ... but there are two gotchas:
19820    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19821    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19822    # In both cases, we have to default to `cp -pR'.
19823    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19824      as_ln_s='cp -pR'
19825  elif ln conf$$.file conf$$ 2>/dev/null; then
19826    as_ln_s=ln
19827  else
19828    as_ln_s='cp -pR'
19829  fi
19830else
19831  as_ln_s='cp -pR'
19832fi
19833rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19834rmdir conf$$.dir 2>/dev/null
19835
19836
19837# as_fn_mkdir_p
19838# -------------
19839# Create "$as_dir" as a directory, including parents if necessary.
19840as_fn_mkdir_p ()
19841{
19842
19843  case $as_dir in #(
19844  -*) as_dir=./$as_dir;;
19845  esac
19846  test -d "$as_dir" || eval $as_mkdir_p || {
19847    as_dirs=
19848    while :; do
19849      case $as_dir in #(
19850      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19851      *) as_qdir=$as_dir;;
19852      esac
19853      as_dirs="'$as_qdir' $as_dirs"
19854      as_dir=`$as_dirname -- "$as_dir" ||
19855$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19856	 X"$as_dir" : 'X\(//\)[^/]' \| \
19857	 X"$as_dir" : 'X\(//\)$' \| \
19858	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19859printf "%s\n" X"$as_dir" |
19860    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19861	    s//\1/
19862	    q
19863	  }
19864	  /^X\(\/\/\)[^/].*/{
19865	    s//\1/
19866	    q
19867	  }
19868	  /^X\(\/\/\)$/{
19869	    s//\1/
19870	    q
19871	  }
19872	  /^X\(\/\).*/{
19873	    s//\1/
19874	    q
19875	  }
19876	  s/.*/./; q'`
19877      test -d "$as_dir" && break
19878    done
19879    test -z "$as_dirs" || eval "mkdir $as_dirs"
19880  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19881
19882
19883} # as_fn_mkdir_p
19884if mkdir -p . 2>/dev/null; then
19885  as_mkdir_p='mkdir -p "$as_dir"'
19886else
19887  test -d ./-p && rmdir ./-p
19888  as_mkdir_p=false
19889fi
19890
19891
19892# as_fn_executable_p FILE
19893# -----------------------
19894# Test if FILE is an executable regular file.
19895as_fn_executable_p ()
19896{
19897  test -f "$1" && test -x "$1"
19898} # as_fn_executable_p
19899as_test_x='test -x'
19900as_executable_p=as_fn_executable_p
19901
19902# Sed expression to map a string onto a valid CPP name.
19903as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19904
19905# Sed expression to map a string onto a valid variable name.
19906as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19907
19908
19909exec 6>&1
19910## ----------------------------------- ##
19911## Main body of $CONFIG_STATUS script. ##
19912## ----------------------------------- ##
19913_ASEOF
19914test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19915
19916cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19917# Save the log message, to keep $0 and so on meaningful, and to
19918# report actual input values of CONFIG_FILES etc. instead of their
19919# values after options handling.
19920ac_log="
19921This file was extended by libXft $as_me 2.3.4, which was
19922generated by GNU Autoconf 2.71.  Invocation command line was
19923
19924  CONFIG_FILES    = $CONFIG_FILES
19925  CONFIG_HEADERS  = $CONFIG_HEADERS
19926  CONFIG_LINKS    = $CONFIG_LINKS
19927  CONFIG_COMMANDS = $CONFIG_COMMANDS
19928  $ $0 $@
19929
19930on `(hostname || uname -n) 2>/dev/null | sed 1q`
19931"
19932
19933_ACEOF
19934
19935case $ac_config_files in *"
19936"*) set x $ac_config_files; shift; ac_config_files=$*;;
19937esac
19938
19939case $ac_config_headers in *"
19940"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19941esac
19942
19943
19944cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19945# Files that config.status was made for.
19946config_files="$ac_config_files"
19947config_headers="$ac_config_headers"
19948config_commands="$ac_config_commands"
19949
19950_ACEOF
19951
19952cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19953ac_cs_usage="\
19954\`$as_me' instantiates files and other configuration actions
19955from templates according to the current configuration.  Unless the files
19956and actions are specified as TAGs, all are instantiated by default.
19957
19958Usage: $0 [OPTION]... [TAG]...
19959
19960  -h, --help       print this help, then exit
19961  -V, --version    print version number and configuration settings, then exit
19962      --config     print configuration, then exit
19963  -q, --quiet, --silent
19964                   do not print progress messages
19965  -d, --debug      don't remove temporary files
19966      --recheck    update $as_me by reconfiguring in the same conditions
19967      --file=FILE[:TEMPLATE]
19968                   instantiate the configuration file FILE
19969      --header=FILE[:TEMPLATE]
19970                   instantiate the configuration header FILE
19971
19972Configuration files:
19973$config_files
19974
19975Configuration headers:
19976$config_headers
19977
19978Configuration commands:
19979$config_commands
19980
19981Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXft/issues>."
19982
19983_ACEOF
19984ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
19985ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
19986cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19987ac_cs_config='$ac_cs_config_escaped'
19988ac_cs_version="\\
19989libXft config.status 2.3.4
19990configured by $0, generated by GNU Autoconf 2.71,
19991  with options \\"\$ac_cs_config\\"
19992
19993Copyright (C) 2021 Free Software Foundation, Inc.
19994This config.status script is free software; the Free Software Foundation
19995gives unlimited permission to copy, distribute and modify it."
19996
19997ac_pwd='$ac_pwd'
19998srcdir='$srcdir'
19999INSTALL='$INSTALL'
20000MKDIR_P='$MKDIR_P'
20001AWK='$AWK'
20002test -n "\$AWK" || AWK=awk
20003_ACEOF
20004
20005cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20006# The default lists apply if the user does not specify any file.
20007ac_need_defaults=:
20008while test $# != 0
20009do
20010  case $1 in
20011  --*=?*)
20012    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20013    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20014    ac_shift=:
20015    ;;
20016  --*=)
20017    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20018    ac_optarg=
20019    ac_shift=:
20020    ;;
20021  *)
20022    ac_option=$1
20023    ac_optarg=$2
20024    ac_shift=shift
20025    ;;
20026  esac
20027
20028  case $ac_option in
20029  # Handling of the options.
20030  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20031    ac_cs_recheck=: ;;
20032  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20033    printf "%s\n" "$ac_cs_version"; exit ;;
20034  --config | --confi | --conf | --con | --co | --c )
20035    printf "%s\n" "$ac_cs_config"; exit ;;
20036  --debug | --debu | --deb | --de | --d | -d )
20037    debug=: ;;
20038  --file | --fil | --fi | --f )
20039    $ac_shift
20040    case $ac_optarg in
20041    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20042    '') as_fn_error $? "missing file argument" ;;
20043    esac
20044    as_fn_append CONFIG_FILES " '$ac_optarg'"
20045    ac_need_defaults=false;;
20046  --header | --heade | --head | --hea )
20047    $ac_shift
20048    case $ac_optarg in
20049    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20050    esac
20051    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20052    ac_need_defaults=false;;
20053  --he | --h)
20054    # Conflict between --help and --header
20055    as_fn_error $? "ambiguous option: \`$1'
20056Try \`$0 --help' for more information.";;
20057  --help | --hel | -h )
20058    printf "%s\n" "$ac_cs_usage"; exit ;;
20059  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20060  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20061    ac_cs_silent=: ;;
20062
20063  # This is an error.
20064  -*) as_fn_error $? "unrecognized option: \`$1'
20065Try \`$0 --help' for more information." ;;
20066
20067  *) as_fn_append ac_config_targets " $1"
20068     ac_need_defaults=false ;;
20069
20070  esac
20071  shift
20072done
20073
20074ac_configure_extra_args=
20075
20076if $ac_cs_silent; then
20077  exec 6>/dev/null
20078  ac_configure_extra_args="$ac_configure_extra_args --silent"
20079fi
20080
20081_ACEOF
20082cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20083if \$ac_cs_recheck; then
20084  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20085  shift
20086  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20087  CONFIG_SHELL='$SHELL'
20088  export CONFIG_SHELL
20089  exec "\$@"
20090fi
20091
20092_ACEOF
20093cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20094exec 5>>config.log
20095{
20096  echo
20097  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20098## Running $as_me. ##
20099_ASBOX
20100  printf "%s\n" "$ac_log"
20101} >&5
20102
20103_ACEOF
20104cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20105#
20106# INIT-COMMANDS
20107#
20108AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20109
20110
20111# The HP-UX ksh and POSIX shell print the target directory to stdout
20112# if CDPATH is set.
20113(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20114
20115sed_quote_subst='$sed_quote_subst'
20116double_quote_subst='$double_quote_subst'
20117delay_variable_subst='$delay_variable_subst'
20118macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20119macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20120enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20121enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20122pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20123enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20124shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20125SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20126ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20127PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20128host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20129host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20130host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20131build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20132build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20133build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20134SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20135Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20136GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20137EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20138FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20139LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20140NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20141LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20142max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20143ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20144exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20145lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20146lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20147lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20148lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20149lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20150reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20151reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20152OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20153deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20154file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20155file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20156want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20157DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20158sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20159AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20160AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20161archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20162STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20163RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20164old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20165old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20166old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20167lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20168CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20169CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20170compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20171GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20172lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20173lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20174lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20175lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20176lt_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"`'
20177lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20178nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20179lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20180lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20181objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20182MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20183lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20184lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20185lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20186lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20187lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20188need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20189MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20190DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20191NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20192LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20193OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20194OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20195libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20196shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20197extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20198archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20199enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20200export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20201whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20202compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20203old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20204old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20205archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20206archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20207module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20208module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20209with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20210allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20211no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20212hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20213hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20214hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20215hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20216hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20217hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20218hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20219inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20220link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20221always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20222export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20223exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20224include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20225prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20226postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20227file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20228variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20229need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20230need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20231version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20232runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20233shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20234shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20235libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20236library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20237soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20238install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20239postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20240postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20241finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20242finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20243hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20244sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20245configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20246configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20247hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20248enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20249enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20250enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20251old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20252striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20253
20254LTCC='$LTCC'
20255LTCFLAGS='$LTCFLAGS'
20256compiler='$compiler_DEFAULT'
20257
20258# A function that is used when there is no print builtin or printf.
20259func_fallback_echo ()
20260{
20261  eval 'cat <<_LTECHO_EOF
20262\$1
20263_LTECHO_EOF'
20264}
20265
20266# Quote evaled strings.
20267for var in SHELL \
20268ECHO \
20269PATH_SEPARATOR \
20270SED \
20271GREP \
20272EGREP \
20273FGREP \
20274LD \
20275NM \
20276LN_S \
20277lt_SP2NL \
20278lt_NL2SP \
20279reload_flag \
20280OBJDUMP \
20281deplibs_check_method \
20282file_magic_cmd \
20283file_magic_glob \
20284want_nocaseglob \
20285DLLTOOL \
20286sharedlib_from_linklib_cmd \
20287AR \
20288AR_FLAGS \
20289archiver_list_spec \
20290STRIP \
20291RANLIB \
20292CC \
20293CFLAGS \
20294compiler \
20295lt_cv_sys_global_symbol_pipe \
20296lt_cv_sys_global_symbol_to_cdecl \
20297lt_cv_sys_global_symbol_to_import \
20298lt_cv_sys_global_symbol_to_c_name_address \
20299lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20300lt_cv_nm_interface \
20301nm_file_list_spec \
20302lt_cv_truncate_bin \
20303lt_prog_compiler_no_builtin_flag \
20304lt_prog_compiler_pic \
20305lt_prog_compiler_wl \
20306lt_prog_compiler_static \
20307lt_cv_prog_compiler_c_o \
20308need_locks \
20309MANIFEST_TOOL \
20310DSYMUTIL \
20311NMEDIT \
20312LIPO \
20313OTOOL \
20314OTOOL64 \
20315shrext_cmds \
20316export_dynamic_flag_spec \
20317whole_archive_flag_spec \
20318compiler_needs_object \
20319with_gnu_ld \
20320allow_undefined_flag \
20321no_undefined_flag \
20322hardcode_libdir_flag_spec \
20323hardcode_libdir_separator \
20324exclude_expsyms \
20325include_expsyms \
20326file_list_spec \
20327variables_saved_for_relink \
20328libname_spec \
20329library_names_spec \
20330soname_spec \
20331install_override_mode \
20332finish_eval \
20333old_striplib \
20334striplib; do
20335    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20336    *[\\\\\\\`\\"\\\$]*)
20337      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20338      ;;
20339    *)
20340      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20341      ;;
20342    esac
20343done
20344
20345# Double-quote double-evaled strings.
20346for var in reload_cmds \
20347old_postinstall_cmds \
20348old_postuninstall_cmds \
20349old_archive_cmds \
20350extract_expsyms_cmds \
20351old_archive_from_new_cmds \
20352old_archive_from_expsyms_cmds \
20353archive_cmds \
20354archive_expsym_cmds \
20355module_cmds \
20356module_expsym_cmds \
20357export_symbols_cmds \
20358prelink_cmds \
20359postlink_cmds \
20360postinstall_cmds \
20361postuninstall_cmds \
20362finish_cmds \
20363sys_lib_search_path_spec \
20364configure_time_dlsearch_path \
20365configure_time_lt_sys_library_path; do
20366    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20367    *[\\\\\\\`\\"\\\$]*)
20368      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20369      ;;
20370    *)
20371      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20372      ;;
20373    esac
20374done
20375
20376ac_aux_dir='$ac_aux_dir'
20377
20378# See if we are running on zsh, and set the options that allow our
20379# commands through without removal of \ escapes INIT.
20380if test -n "\${ZSH_VERSION+set}"; then
20381   setopt NO_GLOB_SUBST
20382fi
20383
20384
20385    PACKAGE='$PACKAGE'
20386    VERSION='$VERSION'
20387    RM='$RM'
20388    ofile='$ofile'
20389
20390
20391
20392
20393_ACEOF
20394
20395cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20396
20397# Handling of arguments.
20398for ac_config_target in $ac_config_targets
20399do
20400  case $ac_config_target in
20401    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20402    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20403    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20404    "include/X11/Xft/Xft.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/Xft/Xft.h" ;;
20405    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20406    "xft.pc") CONFIG_FILES="$CONFIG_FILES xft.pc" ;;
20407    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20408    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20409
20410  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20411  esac
20412done
20413
20414
20415# If the user did not use the arguments to specify the items to instantiate,
20416# then the envvar interface is used.  Set only those that are not.
20417# We use the long form for the default assignment because of an extremely
20418# bizarre bug on SunOS 4.1.3.
20419if $ac_need_defaults; then
20420  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20421  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20422  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20423fi
20424
20425# Have a temporary directory for convenience.  Make it in the build tree
20426# simply because there is no reason against having it here, and in addition,
20427# creating and moving files from /tmp can sometimes cause problems.
20428# Hook for its removal unless debugging.
20429# Note that there is a small window in which the directory will not be cleaned:
20430# after its creation but before its name has been assigned to `$tmp'.
20431$debug ||
20432{
20433  tmp= ac_tmp=
20434  trap 'exit_status=$?
20435  : "${ac_tmp:=$tmp}"
20436  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20437' 0
20438  trap 'as_fn_exit 1' 1 2 13 15
20439}
20440# Create a (secure) tmp directory for tmp files.
20441
20442{
20443  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20444  test -d "$tmp"
20445}  ||
20446{
20447  tmp=./conf$$-$RANDOM
20448  (umask 077 && mkdir "$tmp")
20449} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20450ac_tmp=$tmp
20451
20452# Set up the scripts for CONFIG_FILES section.
20453# No need to generate them if there are no CONFIG_FILES.
20454# This happens for instance with `./config.status config.h'.
20455if test -n "$CONFIG_FILES"; then
20456
20457
20458ac_cr=`echo X | tr X '\015'`
20459# On cygwin, bash can eat \r inside `` if the user requested igncr.
20460# But we know of no other shell where ac_cr would be empty at this
20461# point, so we can use a bashism as a fallback.
20462if test "x$ac_cr" = x; then
20463  eval ac_cr=\$\'\\r\'
20464fi
20465ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20466if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20467  ac_cs_awk_cr='\\r'
20468else
20469  ac_cs_awk_cr=$ac_cr
20470fi
20471
20472echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20473_ACEOF
20474
20475
20476{
20477  echo "cat >conf$$subs.awk <<_ACEOF" &&
20478  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20479  echo "_ACEOF"
20480} >conf$$subs.sh ||
20481  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20482ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20483ac_delim='%!_!# '
20484for ac_last_try in false false false false false :; do
20485  . ./conf$$subs.sh ||
20486    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20487
20488  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20489  if test $ac_delim_n = $ac_delim_num; then
20490    break
20491  elif $ac_last_try; then
20492    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20493  else
20494    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20495  fi
20496done
20497rm -f conf$$subs.sh
20498
20499cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20500cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20501_ACEOF
20502sed -n '
20503h
20504s/^/S["/; s/!.*/"]=/
20505p
20506g
20507s/^[^!]*!//
20508:repl
20509t repl
20510s/'"$ac_delim"'$//
20511t delim
20512:nl
20513h
20514s/\(.\{148\}\)..*/\1/
20515t more1
20516s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20517p
20518n
20519b repl
20520:more1
20521s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20522p
20523g
20524s/.\{148\}//
20525t nl
20526:delim
20527h
20528s/\(.\{148\}\)..*/\1/
20529t more2
20530s/["\\]/\\&/g; s/^/"/; s/$/"/
20531p
20532b
20533:more2
20534s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20535p
20536g
20537s/.\{148\}//
20538t delim
20539' <conf$$subs.awk | sed '
20540/^[^""]/{
20541  N
20542  s/\n//
20543}
20544' >>$CONFIG_STATUS || ac_write_fail=1
20545rm -f conf$$subs.awk
20546cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20547_ACAWK
20548cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20549  for (key in S) S_is_set[key] = 1
20550  FS = ""
20551
20552}
20553{
20554  line = $ 0
20555  nfields = split(line, field, "@")
20556  substed = 0
20557  len = length(field[1])
20558  for (i = 2; i < nfields; i++) {
20559    key = field[i]
20560    keylen = length(key)
20561    if (S_is_set[key]) {
20562      value = S[key]
20563      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20564      len += length(value) + length(field[++i])
20565      substed = 1
20566    } else
20567      len += 1 + keylen
20568  }
20569
20570  print line
20571}
20572
20573_ACAWK
20574_ACEOF
20575cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20576if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20577  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20578else
20579  cat
20580fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20581  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20582_ACEOF
20583
20584# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20585# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20586# trailing colons and then remove the whole line if VPATH becomes empty
20587# (actually we leave an empty line to preserve line numbers).
20588if test "x$srcdir" = x.; then
20589  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20590h
20591s///
20592s/^/:/
20593s/[	 ]*$/:/
20594s/:\$(srcdir):/:/g
20595s/:\${srcdir}:/:/g
20596s/:@srcdir@:/:/g
20597s/^:*//
20598s/:*$//
20599x
20600s/\(=[	 ]*\).*/\1/
20601G
20602s/\n//
20603s/^[^=]*=[	 ]*$//
20604}'
20605fi
20606
20607cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20608fi # test -n "$CONFIG_FILES"
20609
20610# Set up the scripts for CONFIG_HEADERS section.
20611# No need to generate them if there are no CONFIG_HEADERS.
20612# This happens for instance with `./config.status Makefile'.
20613if test -n "$CONFIG_HEADERS"; then
20614cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20615BEGIN {
20616_ACEOF
20617
20618# Transform confdefs.h into an awk script `defines.awk', embedded as
20619# here-document in config.status, that substitutes the proper values into
20620# config.h.in to produce config.h.
20621
20622# Create a delimiter string that does not exist in confdefs.h, to ease
20623# handling of long lines.
20624ac_delim='%!_!# '
20625for ac_last_try in false false :; do
20626  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20627  if test -z "$ac_tt"; then
20628    break
20629  elif $ac_last_try; then
20630    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20631  else
20632    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20633  fi
20634done
20635
20636# For the awk script, D is an array of macro values keyed by name,
20637# likewise P contains macro parameters if any.  Preserve backslash
20638# newline sequences.
20639
20640ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20641sed -n '
20642s/.\{148\}/&'"$ac_delim"'/g
20643t rset
20644:rset
20645s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20646t def
20647d
20648:def
20649s/\\$//
20650t bsnl
20651s/["\\]/\\&/g
20652s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20653D["\1"]=" \3"/p
20654s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20655d
20656:bsnl
20657s/["\\]/\\&/g
20658s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20659D["\1"]=" \3\\\\\\n"\\/p
20660t cont
20661s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20662t cont
20663d
20664:cont
20665n
20666s/.\{148\}/&'"$ac_delim"'/g
20667t clear
20668:clear
20669s/\\$//
20670t bsnlc
20671s/["\\]/\\&/g; s/^/"/; s/$/"/p
20672d
20673:bsnlc
20674s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20675b cont
20676' <confdefs.h | sed '
20677s/'"$ac_delim"'/"\\\
20678"/g' >>$CONFIG_STATUS || ac_write_fail=1
20679
20680cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20681  for (key in D) D_is_set[key] = 1
20682  FS = ""
20683}
20684/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20685  line = \$ 0
20686  split(line, arg, " ")
20687  if (arg[1] == "#") {
20688    defundef = arg[2]
20689    mac1 = arg[3]
20690  } else {
20691    defundef = substr(arg[1], 2)
20692    mac1 = arg[2]
20693  }
20694  split(mac1, mac2, "(") #)
20695  macro = mac2[1]
20696  prefix = substr(line, 1, index(line, defundef) - 1)
20697  if (D_is_set[macro]) {
20698    # Preserve the white space surrounding the "#".
20699    print prefix "define", macro P[macro] D[macro]
20700    next
20701  } else {
20702    # Replace #undef with comments.  This is necessary, for example,
20703    # in the case of _POSIX_SOURCE, which is predefined and required
20704    # on some systems where configure will not decide to define it.
20705    if (defundef == "undef") {
20706      print "/*", prefix defundef, macro, "*/"
20707      next
20708    }
20709  }
20710}
20711{ print }
20712_ACAWK
20713_ACEOF
20714cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20715  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20716fi # test -n "$CONFIG_HEADERS"
20717
20718
20719eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20720shift
20721for ac_tag
20722do
20723  case $ac_tag in
20724  :[FHLC]) ac_mode=$ac_tag; continue;;
20725  esac
20726  case $ac_mode$ac_tag in
20727  :[FHL]*:*);;
20728  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20729  :[FH]-) ac_tag=-:-;;
20730  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20731  esac
20732  ac_save_IFS=$IFS
20733  IFS=:
20734  set x $ac_tag
20735  IFS=$ac_save_IFS
20736  shift
20737  ac_file=$1
20738  shift
20739
20740  case $ac_mode in
20741  :L) ac_source=$1;;
20742  :[FH])
20743    ac_file_inputs=
20744    for ac_f
20745    do
20746      case $ac_f in
20747      -) ac_f="$ac_tmp/stdin";;
20748      *) # Look for the file first in the build tree, then in the source tree
20749	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20750	 # because $ac_f cannot contain `:'.
20751	 test -f "$ac_f" ||
20752	   case $ac_f in
20753	   [\\/$]*) false;;
20754	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20755	   esac ||
20756	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20757      esac
20758      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20759      as_fn_append ac_file_inputs " '$ac_f'"
20760    done
20761
20762    # Let's still pretend it is `configure' which instantiates (i.e., don't
20763    # use $as_me), people would be surprised to read:
20764    #    /* config.h.  Generated by config.status.  */
20765    configure_input='Generated from '`
20766	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20767	`' by configure.'
20768    if test x"$ac_file" != x-; then
20769      configure_input="$ac_file.  $configure_input"
20770      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20771printf "%s\n" "$as_me: creating $ac_file" >&6;}
20772    fi
20773    # Neutralize special characters interpreted by sed in replacement strings.
20774    case $configure_input in #(
20775    *\&* | *\|* | *\\* )
20776       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20777       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20778    *) ac_sed_conf_input=$configure_input;;
20779    esac
20780
20781    case $ac_tag in
20782    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20783      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20784    esac
20785    ;;
20786  esac
20787
20788  ac_dir=`$as_dirname -- "$ac_file" ||
20789$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20790	 X"$ac_file" : 'X\(//\)[^/]' \| \
20791	 X"$ac_file" : 'X\(//\)$' \| \
20792	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20793printf "%s\n" X"$ac_file" |
20794    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20795	    s//\1/
20796	    q
20797	  }
20798	  /^X\(\/\/\)[^/].*/{
20799	    s//\1/
20800	    q
20801	  }
20802	  /^X\(\/\/\)$/{
20803	    s//\1/
20804	    q
20805	  }
20806	  /^X\(\/\).*/{
20807	    s//\1/
20808	    q
20809	  }
20810	  s/.*/./; q'`
20811  as_dir="$ac_dir"; as_fn_mkdir_p
20812  ac_builddir=.
20813
20814case "$ac_dir" in
20815.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20816*)
20817  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
20818  # A ".." for each directory in $ac_dir_suffix.
20819  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20820  case $ac_top_builddir_sub in
20821  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20822  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20823  esac ;;
20824esac
20825ac_abs_top_builddir=$ac_pwd
20826ac_abs_builddir=$ac_pwd$ac_dir_suffix
20827# for backward compatibility:
20828ac_top_builddir=$ac_top_build_prefix
20829
20830case $srcdir in
20831  .)  # We are building in place.
20832    ac_srcdir=.
20833    ac_top_srcdir=$ac_top_builddir_sub
20834    ac_abs_top_srcdir=$ac_pwd ;;
20835  [\\/]* | ?:[\\/]* )  # Absolute name.
20836    ac_srcdir=$srcdir$ac_dir_suffix;
20837    ac_top_srcdir=$srcdir
20838    ac_abs_top_srcdir=$srcdir ;;
20839  *) # Relative name.
20840    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20841    ac_top_srcdir=$ac_top_build_prefix$srcdir
20842    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20843esac
20844ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20845
20846
20847  case $ac_mode in
20848  :F)
20849  #
20850  # CONFIG_FILE
20851  #
20852
20853  case $INSTALL in
20854  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20855  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20856  esac
20857  ac_MKDIR_P=$MKDIR_P
20858  case $MKDIR_P in
20859  [\\/$]* | ?:[\\/]* ) ;;
20860  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20861  esac
20862_ACEOF
20863
20864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20865# If the template does not know about datarootdir, expand it.
20866# FIXME: This hack should be removed a few years after 2.60.
20867ac_datarootdir_hack=; ac_datarootdir_seen=
20868ac_sed_dataroot='
20869/datarootdir/ {
20870  p
20871  q
20872}
20873/@datadir@/p
20874/@docdir@/p
20875/@infodir@/p
20876/@localedir@/p
20877/@mandir@/p'
20878case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20879*datarootdir*) ac_datarootdir_seen=yes;;
20880*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20881  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20882printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20883_ACEOF
20884cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20885  ac_datarootdir_hack='
20886  s&@datadir@&$datadir&g
20887  s&@docdir@&$docdir&g
20888  s&@infodir@&$infodir&g
20889  s&@localedir@&$localedir&g
20890  s&@mandir@&$mandir&g
20891  s&\\\${datarootdir}&$datarootdir&g' ;;
20892esac
20893_ACEOF
20894
20895# Neutralize VPATH when `$srcdir' = `.'.
20896# Shell code in configure.ac might set extrasub.
20897# FIXME: do we really want to maintain this feature?
20898cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20899ac_sed_extra="$ac_vpsub
20900$extrasub
20901_ACEOF
20902cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20903:t
20904/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20905s|@configure_input@|$ac_sed_conf_input|;t t
20906s&@top_builddir@&$ac_top_builddir_sub&;t t
20907s&@top_build_prefix@&$ac_top_build_prefix&;t t
20908s&@srcdir@&$ac_srcdir&;t t
20909s&@abs_srcdir@&$ac_abs_srcdir&;t t
20910s&@top_srcdir@&$ac_top_srcdir&;t t
20911s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20912s&@builddir@&$ac_builddir&;t t
20913s&@abs_builddir@&$ac_abs_builddir&;t t
20914s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20915s&@INSTALL@&$ac_INSTALL&;t t
20916s&@MKDIR_P@&$ac_MKDIR_P&;t t
20917$ac_datarootdir_hack
20918"
20919eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20920  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20921
20922test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20923  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20924  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20925      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20926  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20927which seems to be undefined.  Please make sure it is defined" >&5
20928printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20929which seems to be undefined.  Please make sure it is defined" >&2;}
20930
20931  rm -f "$ac_tmp/stdin"
20932  case $ac_file in
20933  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20934  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20935  esac \
20936  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20937 ;;
20938  :H)
20939  #
20940  # CONFIG_HEADER
20941  #
20942  if test x"$ac_file" != x-; then
20943    {
20944      printf "%s\n" "/* $configure_input  */" >&1 \
20945      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20946    } >"$ac_tmp/config.h" \
20947      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20948    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20949      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20950printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
20951    else
20952      rm -f "$ac_file"
20953      mv "$ac_tmp/config.h" "$ac_file" \
20954	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20955    fi
20956  else
20957    printf "%s\n" "/* $configure_input  */" >&1 \
20958      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20959      || as_fn_error $? "could not create -" "$LINENO" 5
20960  fi
20961# Compute "$ac_file"'s index in $config_headers.
20962_am_arg="$ac_file"
20963_am_stamp_count=1
20964for _am_header in $config_headers :; do
20965  case $_am_header in
20966    $_am_arg | $_am_arg:* )
20967      break ;;
20968    * )
20969      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20970  esac
20971done
20972echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20973$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20974	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20975	 X"$_am_arg" : 'X\(//\)$' \| \
20976	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20977printf "%s\n" X"$_am_arg" |
20978    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20979	    s//\1/
20980	    q
20981	  }
20982	  /^X\(\/\/\)[^/].*/{
20983	    s//\1/
20984	    q
20985	  }
20986	  /^X\(\/\/\)$/{
20987	    s//\1/
20988	    q
20989	  }
20990	  /^X\(\/\).*/{
20991	    s//\1/
20992	    q
20993	  }
20994	  s/.*/./; q'`/stamp-h$_am_stamp_count
20995 ;;
20996
20997  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20998printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
20999 ;;
21000  esac
21001
21002
21003  case $ac_file$ac_mode in
21004    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21005  # Older Autoconf quotes --file arguments for eval, but not when files
21006  # are listed without --file.  Let's play safe and only enable the eval
21007  # if we detect the quoting.
21008  # TODO: see whether this extra hack can be removed once we start
21009  # requiring Autoconf 2.70 or later.
21010  case $CONFIG_FILES in #(
21011  *\'*) :
21012    eval set x "$CONFIG_FILES" ;; #(
21013  *) :
21014    set x $CONFIG_FILES ;; #(
21015  *) :
21016     ;;
21017esac
21018  shift
21019  # Used to flag and report bootstrapping failures.
21020  am_rc=0
21021  for am_mf
21022  do
21023    # Strip MF so we end up with the name of the file.
21024    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21025    # Check whether this is an Automake generated Makefile which includes
21026    # dependency-tracking related rules and includes.
21027    # Grep'ing the whole file directly is not great: AIX grep has a line
21028    # limit of 2048, but all sed's we know have understand at least 4000.
21029    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21030      || continue
21031    am_dirpart=`$as_dirname -- "$am_mf" ||
21032$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21033	 X"$am_mf" : 'X\(//\)[^/]' \| \
21034	 X"$am_mf" : 'X\(//\)$' \| \
21035	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21036printf "%s\n" X"$am_mf" |
21037    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21038	    s//\1/
21039	    q
21040	  }
21041	  /^X\(\/\/\)[^/].*/{
21042	    s//\1/
21043	    q
21044	  }
21045	  /^X\(\/\/\)$/{
21046	    s//\1/
21047	    q
21048	  }
21049	  /^X\(\/\).*/{
21050	    s//\1/
21051	    q
21052	  }
21053	  s/.*/./; q'`
21054    am_filepart=`$as_basename -- "$am_mf" ||
21055$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21056	 X"$am_mf" : 'X\(//\)$' \| \
21057	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21058printf "%s\n" X/"$am_mf" |
21059    sed '/^.*\/\([^/][^/]*\)\/*$/{
21060	    s//\1/
21061	    q
21062	  }
21063	  /^X\/\(\/\/\)$/{
21064	    s//\1/
21065	    q
21066	  }
21067	  /^X\/\(\/\).*/{
21068	    s//\1/
21069	    q
21070	  }
21071	  s/.*/./; q'`
21072    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21073      && sed -e '/# am--include-marker/d' "$am_filepart" \
21074        | $MAKE -f - am--depfiles" >&5
21075   (cd "$am_dirpart" \
21076      && sed -e '/# am--include-marker/d' "$am_filepart" \
21077        | $MAKE -f - am--depfiles) >&5 2>&5
21078   ac_status=$?
21079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080   (exit $ac_status); } || am_rc=$?
21081  done
21082  if test $am_rc -ne 0; then
21083    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21084printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21085as_fn_error $? "Something went wrong bootstrapping makefile fragments
21086    for automatic dependency tracking.  If GNU make was not used, consider
21087    re-running the configure script with MAKE=\"gmake\" (or whatever is
21088    necessary).  You can also try re-running configure with the
21089    '--disable-dependency-tracking' option to at least be able to build
21090    the package (albeit without support for automatic dependency tracking).
21091See \`config.log' for more details" "$LINENO" 5; }
21092  fi
21093  { am_dirpart=; unset am_dirpart;}
21094  { am_filepart=; unset am_filepart;}
21095  { am_mf=; unset am_mf;}
21096  { am_rc=; unset am_rc;}
21097  rm -f conftest-deps.mk
21098}
21099 ;;
21100    "libtool":C)
21101
21102    # See if we are running on zsh, and set the options that allow our
21103    # commands through without removal of \ escapes.
21104    if test -n "${ZSH_VERSION+set}"; then
21105      setopt NO_GLOB_SUBST
21106    fi
21107
21108    cfgfile=${ofile}T
21109    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21110    $RM "$cfgfile"
21111
21112    cat <<_LT_EOF >> "$cfgfile"
21113#! $SHELL
21114# Generated automatically by $as_me ($PACKAGE) $VERSION
21115# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21116# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21117
21118# Provide generalized library-building support services.
21119# Written by Gordon Matzigkeit, 1996
21120
21121# Copyright (C) 2014 Free Software Foundation, Inc.
21122# This is free software; see the source for copying conditions.  There is NO
21123# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21124
21125# GNU Libtool is free software; you can redistribute it and/or modify
21126# it under the terms of the GNU General Public License as published by
21127# the Free Software Foundation; either version 2 of of the License, or
21128# (at your option) any later version.
21129#
21130# As a special exception to the GNU General Public License, if you
21131# distribute this file as part of a program or library that is built
21132# using GNU Libtool, you may include this file under the  same
21133# distribution terms that you use for the rest of that program.
21134#
21135# GNU Libtool is distributed in the hope that it will be useful, but
21136# WITHOUT ANY WARRANTY; without even the implied warranty of
21137# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21138# GNU General Public License for more details.
21139#
21140# You should have received a copy of the GNU General Public License
21141# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21142
21143
21144# The names of the tagged configurations supported by this script.
21145available_tags=''
21146
21147# Configured defaults for sys_lib_dlsearch_path munging.
21148: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21149
21150# ### BEGIN LIBTOOL CONFIG
21151
21152# Which release of libtool.m4 was used?
21153macro_version=$macro_version
21154macro_revision=$macro_revision
21155
21156# Whether or not to build shared libraries.
21157build_libtool_libs=$enable_shared
21158
21159# Whether or not to build static libraries.
21160build_old_libs=$enable_static
21161
21162# What type of objects to build.
21163pic_mode=$pic_mode
21164
21165# Whether or not to optimize for fast installation.
21166fast_install=$enable_fast_install
21167
21168# Shared archive member basename,for filename based shared library versioning on AIX.
21169shared_archive_member_spec=$shared_archive_member_spec
21170
21171# Shell to use when invoking shell scripts.
21172SHELL=$lt_SHELL
21173
21174# An echo program that protects backslashes.
21175ECHO=$lt_ECHO
21176
21177# The PATH separator for the build system.
21178PATH_SEPARATOR=$lt_PATH_SEPARATOR
21179
21180# The host system.
21181host_alias=$host_alias
21182host=$host
21183host_os=$host_os
21184
21185# The build system.
21186build_alias=$build_alias
21187build=$build
21188build_os=$build_os
21189
21190# A sed program that does not truncate output.
21191SED=$lt_SED
21192
21193# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21194Xsed="\$SED -e 1s/^X//"
21195
21196# A grep program that handles long lines.
21197GREP=$lt_GREP
21198
21199# An ERE matcher.
21200EGREP=$lt_EGREP
21201
21202# A literal string matcher.
21203FGREP=$lt_FGREP
21204
21205# A BSD- or MS-compatible name lister.
21206NM=$lt_NM
21207
21208# Whether we need soft or hard links.
21209LN_S=$lt_LN_S
21210
21211# What is the maximum length of a command?
21212max_cmd_len=$max_cmd_len
21213
21214# Object file suffix (normally "o").
21215objext=$ac_objext
21216
21217# Executable file suffix (normally "").
21218exeext=$exeext
21219
21220# whether the shell understands "unset".
21221lt_unset=$lt_unset
21222
21223# turn spaces into newlines.
21224SP2NL=$lt_lt_SP2NL
21225
21226# turn newlines into spaces.
21227NL2SP=$lt_lt_NL2SP
21228
21229# convert \$build file names to \$host format.
21230to_host_file_cmd=$lt_cv_to_host_file_cmd
21231
21232# convert \$build files to toolchain format.
21233to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21234
21235# An object symbol dumper.
21236OBJDUMP=$lt_OBJDUMP
21237
21238# Method to check whether dependent libraries are shared objects.
21239deplibs_check_method=$lt_deplibs_check_method
21240
21241# Command to use when deplibs_check_method = "file_magic".
21242file_magic_cmd=$lt_file_magic_cmd
21243
21244# How to find potential files when deplibs_check_method = "file_magic".
21245file_magic_glob=$lt_file_magic_glob
21246
21247# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21248want_nocaseglob=$lt_want_nocaseglob
21249
21250# DLL creation program.
21251DLLTOOL=$lt_DLLTOOL
21252
21253# Command to associate shared and link libraries.
21254sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21255
21256# The archiver.
21257AR=$lt_AR
21258
21259# Flags to create an archive.
21260AR_FLAGS=$lt_AR_FLAGS
21261
21262# How to feed a file listing to the archiver.
21263archiver_list_spec=$lt_archiver_list_spec
21264
21265# A symbol stripping program.
21266STRIP=$lt_STRIP
21267
21268# Commands used to install an old-style archive.
21269RANLIB=$lt_RANLIB
21270old_postinstall_cmds=$lt_old_postinstall_cmds
21271old_postuninstall_cmds=$lt_old_postuninstall_cmds
21272
21273# Whether to use a lock for old archive extraction.
21274lock_old_archive_extraction=$lock_old_archive_extraction
21275
21276# A C compiler.
21277LTCC=$lt_CC
21278
21279# LTCC compiler flags.
21280LTCFLAGS=$lt_CFLAGS
21281
21282# Take the output of nm and produce a listing of raw symbols and C names.
21283global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21284
21285# Transform the output of nm in a proper C declaration.
21286global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21287
21288# Transform the output of nm into a list of symbols to manually relocate.
21289global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21290
21291# Transform the output of nm in a C name address pair.
21292global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21293
21294# Transform the output of nm in a C name address pair when lib prefix is needed.
21295global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21296
21297# The name lister interface.
21298nm_interface=$lt_lt_cv_nm_interface
21299
21300# Specify filename containing input files for \$NM.
21301nm_file_list_spec=$lt_nm_file_list_spec
21302
21303# The root where to search for dependent libraries,and where our libraries should be installed.
21304lt_sysroot=$lt_sysroot
21305
21306# Command to truncate a binary pipe.
21307lt_truncate_bin=$lt_lt_cv_truncate_bin
21308
21309# The name of the directory that contains temporary libtool files.
21310objdir=$objdir
21311
21312# Used to examine libraries when file_magic_cmd begins with "file".
21313MAGIC_CMD=$MAGIC_CMD
21314
21315# Must we lock files when doing compilation?
21316need_locks=$lt_need_locks
21317
21318# Manifest tool.
21319MANIFEST_TOOL=$lt_MANIFEST_TOOL
21320
21321# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21322DSYMUTIL=$lt_DSYMUTIL
21323
21324# Tool to change global to local symbols on Mac OS X.
21325NMEDIT=$lt_NMEDIT
21326
21327# Tool to manipulate fat objects and archives on Mac OS X.
21328LIPO=$lt_LIPO
21329
21330# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21331OTOOL=$lt_OTOOL
21332
21333# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21334OTOOL64=$lt_OTOOL64
21335
21336# Old archive suffix (normally "a").
21337libext=$libext
21338
21339# Shared library suffix (normally ".so").
21340shrext_cmds=$lt_shrext_cmds
21341
21342# The commands to extract the exported symbol list from a shared archive.
21343extract_expsyms_cmds=$lt_extract_expsyms_cmds
21344
21345# Variables whose values should be saved in libtool wrapper scripts and
21346# restored at link time.
21347variables_saved_for_relink=$lt_variables_saved_for_relink
21348
21349# Do we need the "lib" prefix for modules?
21350need_lib_prefix=$need_lib_prefix
21351
21352# Do we need a version for libraries?
21353need_version=$need_version
21354
21355# Library versioning type.
21356version_type=$version_type
21357
21358# Shared library runtime path variable.
21359runpath_var=$runpath_var
21360
21361# Shared library path variable.
21362shlibpath_var=$shlibpath_var
21363
21364# Is shlibpath searched before the hard-coded library search path?
21365shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21366
21367# Format of library name prefix.
21368libname_spec=$lt_libname_spec
21369
21370# List of archive names.  First name is the real one, the rest are links.
21371# The last name is the one that the linker finds with -lNAME
21372library_names_spec=$lt_library_names_spec
21373
21374# The coded name of the library, if different from the real name.
21375soname_spec=$lt_soname_spec
21376
21377# Permission mode override for installation of shared libraries.
21378install_override_mode=$lt_install_override_mode
21379
21380# Command to use after installation of a shared archive.
21381postinstall_cmds=$lt_postinstall_cmds
21382
21383# Command to use after uninstallation of a shared archive.
21384postuninstall_cmds=$lt_postuninstall_cmds
21385
21386# Commands used to finish a libtool library installation in a directory.
21387finish_cmds=$lt_finish_cmds
21388
21389# As "finish_cmds", except a single script fragment to be evaled but
21390# not shown.
21391finish_eval=$lt_finish_eval
21392
21393# Whether we should hardcode library paths into libraries.
21394hardcode_into_libs=$hardcode_into_libs
21395
21396# Compile-time system search path for libraries.
21397sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21398
21399# Detected run-time system search path for libraries.
21400sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21401
21402# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21403configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21404
21405# Whether dlopen is supported.
21406dlopen_support=$enable_dlopen
21407
21408# Whether dlopen of programs is supported.
21409dlopen_self=$enable_dlopen_self
21410
21411# Whether dlopen of statically linked programs is supported.
21412dlopen_self_static=$enable_dlopen_self_static
21413
21414# Commands to strip libraries.
21415old_striplib=$lt_old_striplib
21416striplib=$lt_striplib
21417
21418
21419# The linker used to build libraries.
21420LD=$lt_LD
21421
21422# How to create reloadable object files.
21423reload_flag=$lt_reload_flag
21424reload_cmds=$lt_reload_cmds
21425
21426# Commands used to build an old-style archive.
21427old_archive_cmds=$lt_old_archive_cmds
21428
21429# A language specific compiler.
21430CC=$lt_compiler
21431
21432# Is the compiler the GNU compiler?
21433with_gcc=$GCC
21434
21435# Compiler flag to turn off builtin functions.
21436no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21437
21438# Additional compiler flags for building library objects.
21439pic_flag=$lt_lt_prog_compiler_pic
21440
21441# How to pass a linker flag through the compiler.
21442wl=$lt_lt_prog_compiler_wl
21443
21444# Compiler flag to prevent dynamic linking.
21445link_static_flag=$lt_lt_prog_compiler_static
21446
21447# Does compiler simultaneously support -c and -o options?
21448compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21449
21450# Whether or not to add -lc for building shared libraries.
21451build_libtool_need_lc=$archive_cmds_need_lc
21452
21453# Whether or not to disallow shared libs when runtime libs are static.
21454allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21455
21456# Compiler flag to allow reflexive dlopens.
21457export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21458
21459# Compiler flag to generate shared objects directly from archives.
21460whole_archive_flag_spec=$lt_whole_archive_flag_spec
21461
21462# Whether the compiler copes with passing no objects directly.
21463compiler_needs_object=$lt_compiler_needs_object
21464
21465# Create an old-style archive from a shared archive.
21466old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21467
21468# Create a temporary old-style archive to link instead of a shared archive.
21469old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21470
21471# Commands used to build a shared archive.
21472archive_cmds=$lt_archive_cmds
21473archive_expsym_cmds=$lt_archive_expsym_cmds
21474
21475# Commands used to build a loadable module if different from building
21476# a shared archive.
21477module_cmds=$lt_module_cmds
21478module_expsym_cmds=$lt_module_expsym_cmds
21479
21480# Whether we are building with GNU ld or not.
21481with_gnu_ld=$lt_with_gnu_ld
21482
21483# Flag that allows shared libraries with undefined symbols to be built.
21484allow_undefined_flag=$lt_allow_undefined_flag
21485
21486# Flag that enforces no undefined symbols.
21487no_undefined_flag=$lt_no_undefined_flag
21488
21489# Flag to hardcode \$libdir into a binary during linking.
21490# This must work even if \$libdir does not exist
21491hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21492
21493# Whether we need a single "-rpath" flag with a separated argument.
21494hardcode_libdir_separator=$lt_hardcode_libdir_separator
21495
21496# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21497# DIR into the resulting binary.
21498hardcode_direct=$hardcode_direct
21499
21500# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21501# DIR into the resulting binary and the resulting library dependency is
21502# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21503# library is relocated.
21504hardcode_direct_absolute=$hardcode_direct_absolute
21505
21506# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21507# into the resulting binary.
21508hardcode_minus_L=$hardcode_minus_L
21509
21510# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21511# into the resulting binary.
21512hardcode_shlibpath_var=$hardcode_shlibpath_var
21513
21514# Set to "yes" if building a shared library automatically hardcodes DIR
21515# into the library and all subsequent libraries and executables linked
21516# against it.
21517hardcode_automatic=$hardcode_automatic
21518
21519# Set to yes if linker adds runtime paths of dependent libraries
21520# to runtime path list.
21521inherit_rpath=$inherit_rpath
21522
21523# Whether libtool must link a program against all its dependency libraries.
21524link_all_deplibs=$link_all_deplibs
21525
21526# Set to "yes" if exported symbols are required.
21527always_export_symbols=$always_export_symbols
21528
21529# The commands to list exported symbols.
21530export_symbols_cmds=$lt_export_symbols_cmds
21531
21532# Symbols that should not be listed in the preloaded symbols.
21533exclude_expsyms=$lt_exclude_expsyms
21534
21535# Symbols that must always be exported.
21536include_expsyms=$lt_include_expsyms
21537
21538# Commands necessary for linking programs (against libraries) with templates.
21539prelink_cmds=$lt_prelink_cmds
21540
21541# Commands necessary for finishing linking programs.
21542postlink_cmds=$lt_postlink_cmds
21543
21544# Specify filename containing input files.
21545file_list_spec=$lt_file_list_spec
21546
21547# How to hardcode a shared library path into an executable.
21548hardcode_action=$hardcode_action
21549
21550# ### END LIBTOOL CONFIG
21551
21552_LT_EOF
21553
21554    cat <<'_LT_EOF' >> "$cfgfile"
21555
21556# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21557
21558# func_munge_path_list VARIABLE PATH
21559# -----------------------------------
21560# VARIABLE is name of variable containing _space_ separated list of
21561# directories to be munged by the contents of PATH, which is string
21562# having a format:
21563# "DIR[:DIR]:"
21564#       string "DIR[ DIR]" will be prepended to VARIABLE
21565# ":DIR[:DIR]"
21566#       string "DIR[ DIR]" will be appended to VARIABLE
21567# "DIRP[:DIRP]::[DIRA:]DIRA"
21568#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21569#       "DIRA[ DIRA]" will be appended to VARIABLE
21570# "DIR[:DIR]"
21571#       VARIABLE will be replaced by "DIR[ DIR]"
21572func_munge_path_list ()
21573{
21574    case x$2 in
21575    x)
21576        ;;
21577    *:)
21578        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21579        ;;
21580    x:*)
21581        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21582        ;;
21583    *::*)
21584        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21585        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21586        ;;
21587    *)
21588        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21589        ;;
21590    esac
21591}
21592
21593
21594# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21595func_cc_basename ()
21596{
21597    for cc_temp in $*""; do
21598      case $cc_temp in
21599        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21600        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21601        \-*) ;;
21602        *) break;;
21603      esac
21604    done
21605    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21606}
21607
21608
21609# ### END FUNCTIONS SHARED WITH CONFIGURE
21610
21611_LT_EOF
21612
21613  case $host_os in
21614  aix3*)
21615    cat <<\_LT_EOF >> "$cfgfile"
21616# AIX sometimes has problems with the GCC collect2 program.  For some
21617# reason, if we set the COLLECT_NAMES environment variable, the problems
21618# vanish in a puff of smoke.
21619if test set != "${COLLECT_NAMES+set}"; then
21620  COLLECT_NAMES=
21621  export COLLECT_NAMES
21622fi
21623_LT_EOF
21624    ;;
21625  esac
21626
21627
21628
21629ltmain=$ac_aux_dir/ltmain.sh
21630
21631
21632  # We use sed instead of cat because bash on DJGPP gets confused if
21633  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21634  # text mode, it properly converts lines to CR/LF.  This bash problem
21635  # is reportedly fixed, but why not run on old versions too?
21636  sed '$q' "$ltmain" >> "$cfgfile" \
21637     || (rm -f "$cfgfile"; exit 1)
21638
21639   mv -f "$cfgfile" "$ofile" ||
21640    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21641  chmod +x "$ofile"
21642
21643 ;;
21644
21645  esac
21646done # for ac_tag
21647
21648
21649as_fn_exit 0
21650_ACEOF
21651ac_clean_files=$ac_clean_files_save
21652
21653test $ac_write_fail = 0 ||
21654  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21655
21656
21657# configure is writing to config.log, and then calls config.status.
21658# config.status does its own redirection, appending to config.log.
21659# Unfortunately, on DOS this fails, as config.log is still kept open
21660# by configure, so config.status won't be able to write to it; its
21661# output is simply discarded.  So we exec the FD to /dev/null,
21662# effectively closing config.log, so it can be properly (re)opened and
21663# appended to by config.status.  When coming back to configure, we
21664# need to make the FD available again.
21665if test "$no_create" != yes; then
21666  ac_cs_success=:
21667  ac_config_status_args=
21668  test "$silent" = yes &&
21669    ac_config_status_args="$ac_config_status_args --quiet"
21670  exec 5>/dev/null
21671  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21672  exec 5>>config.log
21673  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21674  # would make configure fail if this is the last instruction.
21675  $ac_cs_success || as_fn_exit 1
21676fi
21677if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21678  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21679printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21680fi
21681
21682
21683